@templatical/editor 0.33.0 → 0.34.0

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 (149) hide show
  1. package/dist/{AiChatSidebar-J7WsHRDS.js → AiChatSidebar-CkHJ28sf.js} +3 -3
  2. package/dist/{AiFeatureMenu-C9mxL_7U.js → AiFeatureMenu-DWdKguDN.js} +3 -3
  3. package/dist/{BlockIssueBadge-BI6v_eol.js → BlockIssueBadge-DcyHTAqw.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-mZIr9mY2.js → BlockPreviewCanvas-B621ANn9.js} +4 -4
  5. package/dist/{CloudHeaderExtras-CLtTtK12.js → CloudHeaderExtras-BJ3Cebhv.js} +2 -2
  6. package/dist/{CloudPanels-BbLAX1jH.js → CloudPanels-BGz9ygo6.js} +6 -6
  7. package/dist/{CollaboratorBar-OBbLOhLK.js → CollaboratorBar-KphmSQeZ.js} +2 -2
  8. package/dist/{ColorPicker-Cs7iK01u.js → ColorPicker-C6EOwtHC.js} +5 -5
  9. package/dist/{CommentsPanel-G_uNzi1a.js → CommentsPanel-DmWh8f08.js} +1 -1
  10. package/dist/{CommentsSidebar-DlFlpfkU.js → CommentsSidebar-CL_tffzT.js} +4 -4
  11. package/dist/{CountdownBlock-Bdt8qZi1.js → CountdownBlock-D1fsNsyS.js} +1 -1
  12. package/dist/{CountdownToolbar-BWLYViOm.js → CountdownToolbar-B8J4i5Xp.js} +2 -2
  13. package/dist/{DesignReferenceSidebar-CK_xTLh2.js → DesignReferenceSidebar-BDhEeaAh.js} +4 -4
  14. package/dist/{IssuesPanel-DIbJ_jaa.js → IssuesPanel-CiOjeRFI.js} +4 -4
  15. package/dist/MergeTagInput-RytOlh1A.js +448 -0
  16. package/dist/{MergeTagModeToggle-DeI65T5k.js → MergeTagModeToggle-Bi-FydXj.js} +2 -2
  17. package/dist/{ParagraphEditor-Dr-u72hu.js → ParagraphEditor-C87tkmtE.js} +12 -12
  18. package/dist/{RestoreVersionDialog-6sBYYt9f.js → RestoreVersionDialog-Db5rZRMA.js} +2 -2
  19. package/dist/RichTextEditorContent-BmTcV2-a.js +152 -0
  20. package/dist/{SaveBlockDialog-DABN4-Jf.js → SaveBlockDialog-CDCzx6Bo.js} +16 -16
  21. package/dist/{SavedBlocksBrowserModal-BoylzTEq.js → SavedBlocksBrowserModal-DQR6kJB1.js} +101 -101
  22. package/dist/{SavedBlocksPanels-2np4Yu1H.js → SavedBlocksPanels-DFzV0CRD.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-BM7aTSK2.js → SavedBlocksPickBar-XyXmnSnO.js} +2 -2
  24. package/dist/{TemplateScoringPanel-CzWoSM1V.js → TemplateScoringPanel-CpyEKMzC.js} +4 -4
  25. package/dist/{TestEmailModal-Cb0n7Dhj.js → TestEmailModal-DIfJy9eE.js} +8 -8
  26. package/dist/{TestEmailPanel-52HjvuU7.js → TestEmailPanel-C8Wx5yPS.js} +1 -1
  27. package/dist/{TitleEditor-_taBpBfB.js → TitleEditor-iNFOisr4.js} +11 -11
  28. package/dist/{TplModal-CEYnwBBk.js → TplModal-CowM3o_F.js} +5 -5
  29. package/dist/{VersionHistoryMenu-CsGlLSO8.js → VersionHistoryMenu-CV90OhXs.js} +2 -2
  30. package/dist/{VersionHistoryPanels-DPmYk00L.js → VersionHistoryPanels-BE3pplJG.js} +1 -1
  31. package/dist/{VersionPreviewBanner-VGJbEoXj.js → VersionPreviewBanner-BwUWBtlH.js} +1 -1
  32. package/dist/{blockTypeIcons-IhdBwbxp.js → blockTypeIcons-DQsKtHik.js} +1 -1
  33. package/dist/bundle-stats.json +6 -6
  34. package/dist/cdn/chunks/{AiChatSidebar-6S5LPyRW.js → AiChatSidebar-BEnIWn6s.js} +4 -4
  35. package/dist/cdn/chunks/AiChatSidebar-BEnIWn6s.js.map +1 -0
  36. package/dist/cdn/chunks/{AiFeatureMenu-BHCtjIfV.js → AiFeatureMenu-DMl23akc.js} +4 -4
  37. package/dist/cdn/chunks/{AiFeatureMenu-BHCtjIfV.js.map → AiFeatureMenu-DMl23akc.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-2-os120N.js → BlockIssueBadge-CloK4k3M.js} +3 -3
  39. package/dist/cdn/chunks/{BlockIssueBadge-2-os120N.js.map → BlockIssueBadge-CloK4k3M.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-CYNs-Yn-.js → BlockPreviewCanvas-DSiJFJa0.js} +5 -5
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-CYNs-Yn-.js.map → BlockPreviewCanvas-DSiJFJa0.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-DrbFk6Fy.js → CloudHeaderExtras-b4KpVeUN.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-DrbFk6Fy.js.map → CloudHeaderExtras-b4KpVeUN.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-CpzYrAPQ.js → CloudPanels-DzwOq9lp.js} +7 -7
  45. package/dist/cdn/chunks/CloudPanels-DzwOq9lp.js.map +1 -0
  46. package/dist/cdn/chunks/{CollaboratorBar-VMTCYn_z.js → CollaboratorBar-WXKvpoGK.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-VMTCYn_z.js.map → CollaboratorBar-WXKvpoGK.js.map} +1 -1
  48. package/dist/cdn/chunks/{ColorPicker-B0l_UF8G.js → ColorPicker-BubTDiS1.js} +6 -6
  49. package/dist/cdn/chunks/{ColorPicker-B0l_UF8G.js.map → ColorPicker-BubTDiS1.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsPanel-CXMMdLrO.js → CommentsPanel-DAA2VqX4.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsPanel-CXMMdLrO.js.map → CommentsPanel-DAA2VqX4.js.map} +1 -1
  52. package/dist/cdn/chunks/{CommentsSidebar-CGkhAJUW.js → CommentsSidebar-Ci0M2ePp.js} +5 -5
  53. package/dist/cdn/chunks/CommentsSidebar-Ci0M2ePp.js.map +1 -0
  54. package/dist/cdn/chunks/{CountdownBlock-CPe1ulzk.js → CountdownBlock-rK055jpy.js} +2 -2
  55. package/dist/cdn/chunks/{CountdownBlock-CPe1ulzk.js.map → CountdownBlock-rK055jpy.js.map} +1 -1
  56. package/dist/cdn/chunks/{CountdownToolbar-D5xyNd5V.js → CountdownToolbar-CzZq26Vp.js} +3 -3
  57. package/dist/cdn/chunks/{CountdownToolbar-D5xyNd5V.js.map → CountdownToolbar-CzZq26Vp.js.map} +1 -1
  58. package/dist/cdn/chunks/{DesignReferenceSidebar-D1NH1WRv.js → DesignReferenceSidebar-C_ehdX5C.js} +5 -5
  59. package/dist/cdn/chunks/DesignReferenceSidebar-C_ehdX5C.js.map +1 -0
  60. package/dist/cdn/chunks/{IssuesPanel-07SBSZVN.js → IssuesPanel-BXAN2_al.js} +5 -5
  61. package/dist/cdn/chunks/{IssuesPanel-07SBSZVN.js.map → IssuesPanel-BXAN2_al.js.map} +1 -1
  62. package/dist/cdn/chunks/MergeTagInput-1vcI9uQH.js +419 -0
  63. package/dist/cdn/chunks/MergeTagInput-1vcI9uQH.js.map +1 -0
  64. package/dist/cdn/chunks/{MergeTagModeToggle-Bg8eO5nc.js → MergeTagModeToggle-B_mUYJo4.js} +3 -3
  65. package/dist/cdn/chunks/{MergeTagModeToggle-Bg8eO5nc.js.map → MergeTagModeToggle-B_mUYJo4.js.map} +1 -1
  66. package/dist/cdn/chunks/{ParagraphEditor-x2LTi6DN.js → ParagraphEditor-DCDHMcmx.js} +10 -10
  67. package/dist/cdn/chunks/ParagraphEditor-DCDHMcmx.js.map +1 -0
  68. package/dist/cdn/chunks/{RestoreVersionDialog--SjTV0_4.js → RestoreVersionDialog-BkSSwf-Q.js} +3 -3
  69. package/dist/cdn/chunks/{RestoreVersionDialog--SjTV0_4.js.map → RestoreVersionDialog-BkSSwf-Q.js.map} +1 -1
  70. package/dist/cdn/chunks/RichTextEditorContent-S4KogjIj.js +122 -0
  71. package/dist/cdn/chunks/RichTextEditorContent-S4KogjIj.js.map +1 -0
  72. package/dist/cdn/chunks/{SaveBlockDialog-CS1lqdsQ.js → SaveBlockDialog-BH774Nt0.js} +14 -14
  73. package/dist/cdn/chunks/{SaveBlockDialog-CS1lqdsQ.js.map → SaveBlockDialog-BH774Nt0.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D6nDZ4rq.js → SavedBlocksBrowserModal-CSUqw_dD.js} +6 -6
  75. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D6nDZ4rq.js.map → SavedBlocksBrowserModal-CSUqw_dD.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksPanels-DdkwvYRR.js → SavedBlocksPanels-B6ApbCjG.js} +2 -2
  77. package/dist/cdn/chunks/{SavedBlocksPanels-DdkwvYRR.js.map → SavedBlocksPanels-B6ApbCjG.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPickBar-BLQr_6WM.js → SavedBlocksPickBar-C9MXSRcR.js} +3 -3
  79. package/dist/cdn/chunks/{SavedBlocksPickBar-BLQr_6WM.js.map → SavedBlocksPickBar-C9MXSRcR.js.map} +1 -1
  80. package/dist/cdn/chunks/{TemplateScoringPanel-CDC-JC6C.js → TemplateScoringPanel-QVOxc9TZ.js} +50 -50
  81. package/dist/cdn/chunks/TemplateScoringPanel-QVOxc9TZ.js.map +1 -0
  82. package/dist/cdn/chunks/{TestEmailModal-B2LcU11Y.js → TestEmailModal-_CZvaO58.js} +9 -9
  83. package/dist/cdn/chunks/{TestEmailModal-B2LcU11Y.js.map → TestEmailModal-_CZvaO58.js.map} +1 -1
  84. package/dist/cdn/chunks/{TestEmailPanel-ByqDSx8B.js → TestEmailPanel-DXLxvyrD.js} +2 -2
  85. package/dist/cdn/chunks/{TestEmailPanel-ByqDSx8B.js.map → TestEmailPanel-DXLxvyrD.js.map} +1 -1
  86. package/dist/cdn/chunks/{TitleEditor-DCoulgN8.js → TitleEditor-BuCOahW3.js} +9 -9
  87. package/dist/cdn/chunks/TitleEditor-BuCOahW3.js.map +1 -0
  88. package/dist/cdn/chunks/{TplModal-CxQDl-tN.js → TplModal-CqY8R3hn.js} +6 -6
  89. package/dist/cdn/chunks/TplModal-CqY8R3hn.js.map +1 -0
  90. package/dist/cdn/chunks/{VersionHistoryMenu-BOy8aMB6.js → VersionHistoryMenu-DDjIBvad.js} +3 -3
  91. package/dist/cdn/chunks/{VersionHistoryMenu-BOy8aMB6.js.map → VersionHistoryMenu-DDjIBvad.js.map} +1 -1
  92. package/dist/cdn/chunks/{VersionHistoryPanels-BPLhzW9c.js → VersionHistoryPanels-BuTw04T5.js} +2 -2
  93. package/dist/cdn/chunks/{VersionHistoryPanels-BPLhzW9c.js.map → VersionHistoryPanels-BuTw04T5.js.map} +1 -1
  94. package/dist/cdn/chunks/{VersionPreviewBanner-CYC9qP2i.js → VersionPreviewBanner-fGAv20qI.js} +2 -2
  95. package/dist/cdn/chunks/{VersionPreviewBanner-CYC9qP2i.js.map → VersionPreviewBanner-fGAv20qI.js.map} +1 -1
  96. package/dist/cdn/chunks/{createCloudRuntime-CbSqoOba.js → createCloudRuntime-JFE-sxbT.js} +2 -2
  97. package/dist/cdn/chunks/{createCloudRuntime-CbSqoOba.js.map → createCloudRuntime-JFE-sxbT.js.map} +1 -1
  98. package/dist/cdn/chunks/{extensions-CeP0iOPC.js → extensions-7z04EIGg.js} +3 -3
  99. package/dist/cdn/chunks/{extensions-CeP0iOPC.js.map → extensions-7z04EIGg.js.map} +1 -1
  100. package/dist/cdn/chunks/{keys-O8clwJ41.js → keys-DQp8x7Nx.js} +4 -4
  101. package/dist/cdn/chunks/{keys-O8clwJ41.js.map → keys-DQp8x7Nx.js.map} +1 -1
  102. package/dist/cdn/chunks/{src-C1lP5sIe.js → src-CiAi5oRe.js} +2 -2
  103. package/dist/cdn/chunks/{src-C1lP5sIe.js.map → src-CiAi5oRe.js.map} +1 -1
  104. package/dist/cdn/chunks/{useCloudI18n-ZBEJvkf4.js → useCloudI18n-MxgHWrV6.js} +2 -2
  105. package/dist/cdn/chunks/{useCloudI18n-ZBEJvkf4.js.map → useCloudI18n-MxgHWrV6.js.map} +1 -1
  106. package/dist/cdn/chunks/{useEditorCore-CZxGbZmY.js → useEditorCore-ehUSEsbw.js} +503 -500
  107. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +1 -0
  108. package/dist/cdn/chunks/{useEditorRoot-DVV-EsNI.js → useEditorRoot-CteADR3y.js} +2 -2
  109. package/dist/cdn/chunks/{useEditorRoot-DVV-EsNI.js.map → useEditorRoot-CteADR3y.js.map} +1 -1
  110. package/dist/cdn/chunks/{useI18n-DCbvHv6W.js → useI18n-Ct1VIFcf.js} +2 -2
  111. package/dist/cdn/chunks/{useI18n-DCbvHv6W.js.map → useI18n-Ct1VIFcf.js.map} +1 -1
  112. package/dist/cdn/chunks/useMergeTag-TLhF2fGK.js +46 -0
  113. package/dist/cdn/chunks/useMergeTag-TLhF2fGK.js.map +1 -0
  114. package/dist/cdn/chunks/{usePopoverPosition-Ozg5iU3y.js → usePopoverPosition-BxVWE5_0.js} +2 -2
  115. package/dist/cdn/chunks/{usePopoverPosition-Ozg5iU3y.js.map → usePopoverPosition-BxVWE5_0.js.map} +1 -1
  116. package/dist/cdn/chunks/{useScrollToBlock-CrUCYsIc.js → useScrollToBlock-Cz3fpgTK.js} +2 -2
  117. package/dist/cdn/chunks/{useScrollToBlock-CrUCYsIc.js.map → useScrollToBlock-Cz3fpgTK.js.map} +1 -1
  118. package/dist/cdn/editor.css +1 -1
  119. package/dist/cdn/editor.js +1672 -2075
  120. package/dist/cdn/editor.js.map +1 -1
  121. package/dist/{createCloudRuntime-j6a9Z-vL.js → createCloudRuntime-DbTFm1ES.js} +1 -1
  122. package/dist/{extensions-5xeZR9U9.js → extensions-Mf8iHey9.js} +2 -2
  123. package/dist/{keys-BJJ4hJ4z.js → keys-C3P1yxnr.js} +3 -3
  124. package/dist/style.css +1 -1
  125. package/dist/templatical-editor.js +1835 -2239
  126. package/dist/{useCloudI18n-DaKcDMDz.js → useCloudI18n-BKoiYsWZ.js} +1 -1
  127. package/dist/{useEditorCore-BWrxHVKW.js → useEditorCore-DdkQuTHl.js} +1068 -1065
  128. package/dist/{useEditorRoot-E-oxHaEI.js → useEditorRoot-DkRGTQRs.js} +1 -1
  129. package/dist/{useI18n-DUVIAju4.js → useI18n-CL6RfPzK.js} +1 -1
  130. package/dist/useMergeTag-gSuYus-M.js +44 -0
  131. package/dist/{usePopoverPosition-APlWgXoQ.js → usePopoverPosition-CWxaIWd3.js} +1 -1
  132. package/dist/{useScrollToBlock--AzCOzlg.js → useScrollToBlock-CdI8fGqt.js} +1 -1
  133. package/package.json +7 -7
  134. package/dist/RichTextEditorContent-DKLVe6Io.js +0 -153
  135. package/dist/cdn/chunks/AiChatSidebar-6S5LPyRW.js.map +0 -1
  136. package/dist/cdn/chunks/CloudPanels-CpzYrAPQ.js.map +0 -1
  137. package/dist/cdn/chunks/CommentsSidebar-CGkhAJUW.js.map +0 -1
  138. package/dist/cdn/chunks/DesignReferenceSidebar-D1NH1WRv.js.map +0 -1
  139. package/dist/cdn/chunks/ParagraphEditor-x2LTi6DN.js.map +0 -1
  140. package/dist/cdn/chunks/RichTextEditorContent-CzdMJ1c9.js +0 -123
  141. package/dist/cdn/chunks/RichTextEditorContent-CzdMJ1c9.js.map +0 -1
  142. package/dist/cdn/chunks/TemplateScoringPanel-CDC-JC6C.js.map +0 -1
  143. package/dist/cdn/chunks/TitleEditor-DCoulgN8.js.map +0 -1
  144. package/dist/cdn/chunks/TplModal-CxQDl-tN.js.map +0 -1
  145. package/dist/cdn/chunks/useEditorCore-CZxGbZmY.js.map +0 -1
  146. package/dist/cdn/chunks/useMergeTag-CbuagYNK.js +0 -46
  147. package/dist/cdn/chunks/useMergeTag-CbuagYNK.js.map +0 -1
  148. package/dist/scan-line-E7w4yQyv.js +0 -31
  149. package/dist/useMergeTag-CuZZeiSE.js +0 -44
@@ -1,42 +1,42 @@
1
- import { A as e, B as t, D as n, Dt as r, E as i, G as a, J as o, L as s, M as c, O as l, Ot as u, P as d, Q as f, S as p, T as m, U as h, V as g, X as _, Y as v, _ as y, b, c as x, d as S, et as C, g as w, h as T, it as E, j as D, k as O, kt as k, l as A, nt as j, q as M, r as N, rt as P, s as F, tt as ee, u as I, v as L, y as te, z as ne } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
- import { c as R, o as re, s as ie } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
- import { A as ae, B as oe, C as se, D as ce, E as le, F as ue, H as de, I as fe, L as pe, M as me, N as he, O as ge, P as _e, R as ve, S as ye, T as be, U as xe, V as Se, _ as Ce, a as we, b as Te, d as Ee, f as De, g as Oe, h as ke, i as Ae, k as je, l as Me, m as Ne, n as Pe, o as Fe, p as Ie, r as Le, s as Re, t as ze, u as Be, v as Ve, w as He, x as Ue, y as We, z as Ge } from "./dist-PL6vP4SC.js";
4
- import { f as Ke, g as qe, h as Je, m as Ye } from "./dist-heatwAdo.js";
5
- import { a as Xe, i as Ze, n as Qe, r as $e } from "./dist-dNiknO7j.js";
6
- import { A as et, B as tt, C as nt, D as rt, E as it, F as at, G as ot, H as st, I as ct, K as lt, M as ut, N as dt, O as ft, P as pt, S as mt, T as ht, U as gt, V as _t, W as vt, _ as yt, a as bt, b as xt, c as St, d as Ct, f as wt, g as Tt, h as Et, j as Dt, k as Ot, m as kt, n as At, o as jt, p as Mt, r as Nt, s as Pt, u as Ft, v as It, w as Lt, x as Rt, y as zt, z as Bt } from "./keys-BJJ4hJ4z.js";
7
- import { t as Vt } from "./useI18n-DUVIAju4.js";
8
- import { t as Ht } from "./logger-BBlvSn6q.js";
9
- import { a as Ut, i as Wt, o as Gt, r as Kt, t as qt } from "./usePopoverPosition-APlWgXoQ.js";
10
- import { t as Jt } from "./createLucideIcon-Bvw1Zx56.js";
11
- import { t as Yt } from "./loader-circle-t-SVgmJ3.js";
12
- import { t as Xt } from "./message-circle-DtwKrlhN.js";
13
- import { t as Zt } from "./trash-rYMzzHZd.js";
14
- import { t as Qt } from "./triangle-alert-DxnFj4-B.js";
15
- import { t as $t } from "./upload-DZu1adQz.js";
16
- import { t as en } from "./LoadingTrack-SQXoZVf2.js";
17
- import { t as tn } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { t as nn } from "./useEditorRoot-E-oxHaEI.js";
19
- import "./useCloudI18n-DaKcDMDz.js";
20
- import { t as rn } from "./useMergeTag-CuZZeiSE.js";
21
- import { t as an } from "./useAliveFlag-PVmp95MT.js";
1
+ import { A as e, B as t, D as n, Dt as r, E as i, G as a, J as o, L as s, M as c, O as l, Ot as u, P as d, Q as f, S as p, T as m, U as h, V as g, X as _, Y as v, _ as y, b, c as x, d as S, et as C, g as w, h as T, it as E, j as D, k as O, kt as k, l as A, nt as ee, q as j, r as M, rt as N, s as P, tt as te, u as F, v as I, y as ne, z as re } from "./vue.runtime.esm-bundler-D9JUcKrV.js";
2
+ import { c as L, o as ie, s as ae } from "./runtime-dom.esm-bundler-BuG03jBM.js";
3
+ import { A as oe, B as se, C as ce, D as le, E as ue, F as de, H as fe, I as pe, L as me, M as he, N as ge, O as _e, P as ve, R as ye, S as be, T as xe, U as Se, V as Ce, _ as we, a as Te, b as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, k as Me, l as Ne, m as Pe, n as Fe, o as Ie, p as Le, r as Re, s as ze, t as Be, u as Ve, v as He, w as Ue, x as We, y as Ge, z as Ke } from "./dist-PL6vP4SC.js";
4
+ import { f as qe, g as Je, h as Ye, m as Xe } from "./dist-heatwAdo.js";
5
+ import { a as Ze, i as Qe, n as $e, r as et } from "./dist-dNiknO7j.js";
6
+ import { A as tt, C as nt, D as rt, E as it, F as at, G as ot, H as st, I as ct, J as lt, K as ut, L as dt, M as ft, N as pt, O as mt, P as ht, R as gt, S as _t, T as vt, U as yt, V as bt, W as xt, _ as St, a as Ct, b as wt, c as Tt, d as Et, f as Dt, g as Ot, h as kt, j as At, k as jt, m as Mt, n as Nt, o as Pt, p as Ft, q as It, r as Lt, s as Rt, u as zt, v as Bt, w as Vt, x as Ht, y as Ut } from "./keys-C3P1yxnr.js";
7
+ import { t as Wt } from "./useI18n-CL6RfPzK.js";
8
+ import { t as Gt } from "./logger-BBlvSn6q.js";
9
+ import { a as Kt, i as qt, o as Jt, r as Yt, t as Xt } from "./usePopoverPosition-CWxaIWd3.js";
10
+ import { t as Zt } from "./createLucideIcon-Bvw1Zx56.js";
11
+ import { t as Qt } from "./loader-circle-t-SVgmJ3.js";
12
+ import { t as $t } from "./message-circle-DtwKrlhN.js";
13
+ import { t as en } from "./trash-rYMzzHZd.js";
14
+ import { t as tn } from "./triangle-alert-DxnFj4-B.js";
15
+ import { t as nn } from "./upload-DZu1adQz.js";
16
+ import { t as rn } from "./LoadingTrack-SQXoZVf2.js";
17
+ import { t as an } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { t as on } from "./useEditorRoot-DkRGTQRs.js";
19
+ import "./useCloudI18n-BKoiYsWZ.js";
20
+ import { t as sn } from "./useMergeTag-gSuYus-M.js";
21
+ import { t as cn } from "./useAliveFlag-PVmp95MT.js";
22
22
  //#region ../core/dist/index.js
23
- function on(e) {
23
+ function ln(e) {
24
24
  return e instanceof Error ? e : Error(String(e), { cause: e });
25
25
  }
26
- function sn(e, t) {
26
+ function un(e, t) {
27
27
  try {
28
28
  t();
29
29
  } catch (t) {
30
- e?.(on(t));
30
+ e?.(ln(t));
31
31
  }
32
32
  }
33
- function cn(e) {
33
+ function dn(e) {
34
34
  return e === "1" ? 1 : e === "3" ? 3 : 2;
35
35
  }
36
- function ln(e) {
36
+ function fn(e) {
37
37
  let t = o({
38
38
  template: null,
39
- content: e.content ?? Ne(e.defaultFontFamily, e.templateDefaults),
39
+ content: e.content ?? Pe(e.defaultFontFamily, e.templateDefaults),
40
40
  selectedBlockId: null,
41
41
  viewport: "desktop",
42
42
  darkMode: !1,
@@ -131,7 +131,7 @@ function ln(e) {
131
131
  if (u(n)) return;
132
132
  let r = s(t.content.blocks, n);
133
133
  if (r && r.type === "section") {
134
- if (i < 0 || i >= cn(r.columns)) return;
134
+ if (i < 0 || i >= dn(r.columns)) return;
135
135
  r.children[i] = r.children[i] || [];
136
136
  let t = r.children[i];
137
137
  a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
@@ -164,7 +164,7 @@ function ln(e) {
164
164
  let d;
165
165
  if (i) {
166
166
  let e = s(t.content.blocks, i);
167
- if (!e || e.type !== "section" || a < 0 || a >= cn(e.columns)) return;
167
+ if (!e || e.type !== "section" || a < 0 || a >= dn(e.columns)) return;
168
168
  e.children[a] = e.children[a] || [], d = e.children[a];
169
169
  } else d = t.content.blocks;
170
170
  let [f] = o.blocks.splice(c, 1);
@@ -174,10 +174,10 @@ function ln(e) {
174
174
  r();
175
175
  }
176
176
  function E(e, t) {
177
- throw new Re(`[Templatical] Templates: ${e} ${t}`);
177
+ throw new ze(`[Templatical] Templates: ${e} ${t}`);
178
178
  }
179
179
  function D(t) {
180
- sn(e.onError, t);
180
+ un(e.onError, t);
181
181
  }
182
182
  function O(t) {
183
183
  let { templates: n } = e;
@@ -208,7 +208,7 @@ function ln(e) {
208
208
  }
209
209
  return D(() => i.onCreated?.(o)), o;
210
210
  }
211
- async function j(n) {
211
+ async function ee(n) {
212
212
  let r = O("load()"), i;
213
213
  t.isLoading = !0;
214
214
  try {
@@ -220,7 +220,7 @@ function ln(e) {
220
220
  }
221
221
  return D(() => r.onLoaded?.(i)), i;
222
222
  }
223
- async function M(r = "api") {
223
+ async function j(r = "api") {
224
224
  let i = O("save()"), { save: a } = i;
225
225
  typeof a != "function" && E("save()", "is disabled by the provider — its `save` is `false`.");
226
226
  let o = t.template;
@@ -247,7 +247,7 @@ function ln(e) {
247
247
  }
248
248
  return D(() => i.onSaved?.(c, { trigger: r })), c;
249
249
  }
250
- function N() {
250
+ function M() {
251
251
  return t.template?.id !== void 0;
252
252
  }
253
253
  return {
@@ -270,16 +270,16 @@ function ln(e) {
270
270
  findBlockLocation: d,
271
271
  setName: k,
272
272
  create: A,
273
- load: j,
274
- save: M,
275
- hasTemplate: N
273
+ load: ee,
274
+ save: j,
275
+ hasTemplate: M
276
276
  };
277
277
  }
278
- var un = 50, dn = 300, fn = 1500;
279
- function pn(e) {
280
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = un } = e, a = _([]), o = _([]), s = _(!1), c = null, l = null, u = g(() => a.value.length > 0), d = g(() => o.value.length > 0);
278
+ var pn = 50, mn = 300, hn = 1500;
279
+ function gn(e) {
280
+ let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = pn } = e, a = _([]), o = _([]), s = _(!1), c = null, l = null, u = g(() => a.value.length > 0), d = g(() => o.value.length > 0);
281
281
  function f() {
282
- return Se(t.value);
282
+ return Ce(t.value);
283
283
  }
284
284
  function p(e) {
285
285
  a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
@@ -295,21 +295,21 @@ function pn(e) {
295
295
  if (l && l.blockId === e) {
296
296
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
297
297
  l = null;
298
- }, dn);
298
+ }, mn);
299
299
  return;
300
300
  }
301
301
  m(), p(f()), o.value = [], l = {
302
302
  blockId: e,
303
303
  timeoutId: setTimeout(() => {
304
304
  l = null;
305
- }, dn)
305
+ }, mn)
306
306
  };
307
307
  }
308
308
  }
309
309
  function y() {
310
310
  s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
311
311
  s.value = !1, c = null;
312
- }, fn);
312
+ }, hn);
313
313
  }
314
314
  function b() {
315
315
  if (a.value.length === 0) return;
@@ -341,33 +341,33 @@ function pn(e) {
341
341
  destroy: C
342
342
  };
343
343
  }
344
- function mn(e) {
344
+ function _n(e) {
345
345
  e.type === "table" ? e.rows = e.rows.map((e) => ({
346
346
  ...e,
347
- id: ce(),
347
+ id: le(),
348
348
  cells: e.cells.map((e) => ({
349
349
  ...e,
350
- id: ce()
350
+ id: le()
351
351
  }))
352
352
  })) : e.type === "social" ? e.icons = e.icons.map((e) => ({
353
353
  ...e,
354
- id: ce()
354
+ id: le()
355
355
  })) : e.type === "menu" && (e.items = e.items.map((e) => ({
356
356
  ...e,
357
- id: ce()
357
+ id: le()
358
358
  })));
359
359
  }
360
- function hn(e) {
360
+ function vn(e) {
361
361
  let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
362
362
  function o(n, r, a) {
363
- let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = Be(n, o);
363
+ let o = typeof e.blockDefaults == "function" ? e.blockDefaults() : e.blockDefaults, s = Ve(n, o);
364
364
  return t(s, r, a), i(s.id), s;
365
365
  }
366
366
  function s(e, n, r) {
367
367
  let o = JSON.parse(JSON.stringify(e));
368
- if (o.id = ce(), mn(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
368
+ if (o.id = le(), _n(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
369
369
  let t = JSON.parse(JSON.stringify(e));
370
- return t.id = ce(), mn(t), t;
370
+ return t.id = le(), _n(t), t;
371
371
  }))), n !== void 0 || r !== void 0) t(o, n, r);
372
372
  else {
373
373
  let i = a?.(e.id) ?? null;
@@ -388,9 +388,9 @@ function hn(e) {
388
388
  updateBlockProperty: l
389
389
  };
390
390
  }
391
- var gn = 2e3;
392
- function _n(e) {
393
- let { content: t, isDirty: n, onChange: r, debounce: i = gn, enabled: a = !0 } = e, o = null, s = !1;
391
+ var yn = 2e3;
392
+ function bn(e) {
393
+ let { content: t, isDirty: n, onChange: r, debounce: i = yn, enabled: a = !0 } = e, o = null, s = !1;
394
394
  function c() {
395
395
  return typeof a == "function" ? a() : a;
396
396
  }
@@ -425,7 +425,7 @@ function _n(e) {
425
425
  destroy: h
426
426
  };
427
427
  }
428
- function vn(e) {
428
+ function xn(e) {
429
429
  let t = o(/* @__PURE__ */ new Set()), n = g(() => t.size > 0);
430
430
  function r(e) {
431
431
  return t.has(e);
@@ -443,7 +443,7 @@ function vn(e) {
443
443
  hasHiddenBlocks: n
444
444
  };
445
445
  }
446
- function yn(e) {
446
+ function Sn(e) {
447
447
  let t = _(!1), n = _(!1), r = g(() => !!e.definition.value?.dataSource), i = g(() => r.value && !e.block.value.dataSourceFetched);
448
448
  async function a() {
449
449
  let r = e.definition.value;
@@ -473,7 +473,7 @@ function yn(e) {
473
473
  needsFetch: i
474
474
  };
475
475
  }
476
- function bn(e, t) {
476
+ function Cn(e, t) {
477
477
  let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
478
478
  e.addBlock = (r, i, a, o) => {
479
479
  i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
@@ -487,15 +487,15 @@ function bn(e, t) {
487
487
  t.record(), o(e);
488
488
  };
489
489
  }
490
- function xn(e) {
491
- let { provider: t } = e, n = _([]), r = _(!1), i = F(() => {
490
+ function wn(e) {
491
+ let { provider: t } = e, n = _([]), r = _(!1), i = P(() => {
492
492
  let e = /* @__PURE__ */ new Set();
493
493
  for (let t of n.value) {
494
494
  let n = t.category?.trim();
495
495
  n && e.add(n);
496
496
  }
497
497
  return [...e].sort((e, t) => e.localeCompare(t));
498
- }), a = F(() => typeof t.create == "function"), o = F(() => typeof t.update == "function"), s = F(() => typeof t.delete == "function");
498
+ }), a = P(() => typeof t.create == "function"), o = P(() => typeof t.update == "function"), s = P(() => typeof t.delete == "function");
499
499
  function c(e) {
500
500
  return o.value && e.canUpdate !== !1;
501
501
  }
@@ -503,10 +503,10 @@ function xn(e) {
503
503
  return s.value && e.canDelete !== !1;
504
504
  }
505
505
  function u(e, t) {
506
- throw new Re(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
506
+ throw new ze(`[Templatical] Saved blocks: ${e} is ${t}. Check the capability before calling — the editor's own UI hides the action.`);
507
507
  }
508
508
  function d(t) {
509
- sn(e.onError, t);
509
+ un(e.onError, t);
510
510
  }
511
511
  async function f(i) {
512
512
  r.value = !0;
@@ -573,9 +573,9 @@ function xn(e) {
573
573
  remove: h
574
574
  };
575
575
  }
576
- var Sn = "templatical:saved-blocks";
577
- function Cn(e = {}) {
578
- let t = e.key ?? Sn;
576
+ var Tn = "templatical:saved-blocks";
577
+ function En(e = {}) {
578
+ let t = e.key ?? Tn;
579
579
  function n() {
580
580
  if (typeof localStorage > "u") throw Error("[Templatical] createLocalStorageSavedBlocksProvider requires a browser environment with localStorage. Supply your own SavedBlocksProvider for server-side or non-browser use.");
581
581
  return localStorage;
@@ -600,7 +600,7 @@ function Cn(e = {}) {
600
600
  },
601
601
  async create(e) {
602
602
  let t = (/* @__PURE__ */ new Date()).toISOString(), n = {
603
- id: ce(),
603
+ id: le(),
604
604
  name: e.name,
605
605
  content: e.content,
606
606
  ...e.category ? { category: e.category } : {},
@@ -626,18 +626,18 @@ function Cn(e = {}) {
626
626
  }
627
627
  };
628
628
  }
629
- function wn(e) {
630
- let { provider: t, getTemplateId: n } = e, r = _([]), i = _(!1), a = _(void 0), o = _(!1), s = /* @__PURE__ */ new Map(), c = F(() => typeof t.create == "function"), l = F(() => typeof t.restore == "function");
629
+ function Dn(e) {
630
+ let { provider: t, getTemplateId: n } = e, r = _([]), i = _(!1), a = _(void 0), o = _(!1), s = /* @__PURE__ */ new Map(), c = P(() => typeof t.create == "function"), l = P(() => typeof t.restore == "function");
631
631
  function u(e) {
632
632
  let t = n();
633
- if (!t) throw new Re(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
633
+ if (!t) throw new ze(`[Templatical] Version history: ${e} needs a template. Call create() or load() first.`);
634
634
  return t;
635
635
  }
636
636
  function d(e) {
637
- throw new Re(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
637
+ throw new ze(`[Templatical] Version history: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
638
638
  }
639
639
  function f(t) {
640
- sn(e.onError, t);
640
+ un(e.onError, t);
641
641
  }
642
642
  async function p(n) {
643
643
  let o = u("list");
@@ -704,24 +704,24 @@ function wn(e) {
704
704
  restore: v
705
705
  };
706
706
  }
707
- function Tn(e) {
708
- let { provider: t, getTemplateId: n, getUser: r } = e, i = _([]), a = _(!1), o = _(!1), s = F(() => typeof t.create == "function"), c = F(() => typeof t.update == "function"), l = F(() => typeof t.delete == "function"), u = F(() => typeof t.setResolved == "function"), d = F(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), f = F(() => i.value.filter((e) => !e.resolvedAt).length), p = F(() => {
707
+ function On(e) {
708
+ let { provider: t, getTemplateId: n, getUser: r } = e, i = _([]), a = _(!1), o = _(!1), s = P(() => typeof t.create == "function"), c = P(() => typeof t.update == "function"), l = P(() => typeof t.delete == "function"), u = P(() => typeof t.setResolved == "function"), d = P(() => i.value.reduce((e, t) => e + 1 + (t.replies?.length ?? 0), 0)), f = P(() => i.value.filter((e) => !e.resolvedAt).length), p = P(() => {
709
709
  let e = /* @__PURE__ */ new Map();
710
710
  for (let t of i.value) t.blockId && e.set(t.blockId, (e.get(t.blockId) ?? 0) + 1 + (t.replies?.length ?? 0));
711
711
  return e;
712
712
  });
713
713
  function m(e) {
714
714
  let t = n();
715
- if (!t) throw new Re(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
715
+ if (!t) throw new ze(`[Templatical] Comments: ${e} needs a template. Call create() or load() first.`);
716
716
  return t;
717
717
  }
718
718
  function h(e) {
719
719
  let t = r();
720
- if (!t) throw new Re(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
720
+ if (!t) throw new ze(`[Templatical] Comments: ${e} needs to know who is commenting. Pass init({ user: { id, name } }) — an unattributed comment is not written.`);
721
721
  return t;
722
722
  }
723
723
  function g(e) {
724
- throw new Re(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
724
+ throw new ze(`[Templatical] Comments: ${e} is disabled by the provider. Check the capability before calling — the editor's own UI hides the action.`);
725
725
  }
726
726
  function v(e) {
727
727
  for (let t of i.value) {
@@ -735,11 +735,11 @@ function Tn(e) {
735
735
  return t !== null && e.author.id === t.id;
736
736
  }
737
737
  function b(t) {
738
- let n = on(t);
738
+ let n = ln(t);
739
739
  throw e.onError?.(n), n;
740
740
  }
741
741
  function x(t) {
742
- sn(e.onError, t);
742
+ un(e.onError, t);
743
743
  }
744
744
  function S(e, t, n) {
745
745
  return [
@@ -846,13 +846,13 @@ function Tn(e) {
846
846
  o.value = !1;
847
847
  }
848
848
  }
849
- function j(e) {
849
+ function ee(e) {
850
850
  w(e) && x(() => t.onCreated?.(e, { origin: "remote" }));
851
851
  }
852
- function M(e) {
852
+ function j(e) {
853
853
  w(e) && x(() => (e.resolvedAt ? t.onResolved : t.onUpdated)?.(e, { origin: "remote" }));
854
854
  }
855
- function N(e, n) {
855
+ function M(e, n) {
856
856
  let r = T(e, n);
857
857
  r && x(() => t.onDeleted?.(r, { origin: "remote" }));
858
858
  }
@@ -874,12 +874,12 @@ function Tn(e) {
874
874
  setResolved: A,
875
875
  find: v,
876
876
  isOwn: y,
877
- applyRemoteCreate: j,
878
- applyRemoteUpdate: M,
879
- applyRemoteDelete: N
877
+ applyRemoteCreate: ee,
878
+ applyRemoteUpdate: j,
879
+ applyRemoteDelete: M
880
880
  };
881
881
  }
882
- function En(e) {
882
+ function kn(e) {
883
883
  let { comments: t, provider: n, getTemplateId: r } = e, { subscribe: i } = n;
884
884
  if (typeof i != "function") return;
885
885
  let a = null;
@@ -898,31 +898,31 @@ function En(e) {
898
898
  case "deleted": t.applyRemoteDelete(e.commentId, e.parentId);
899
899
  }
900
900
  }));
901
- }, { immediate: !0 }), M(o);
901
+ }, { immediate: !0 }), j(o);
902
902
  }
903
903
  //#endregion
904
904
  //#region src/utils/activeEditorTracker.ts
905
- var Dn = /* @__PURE__ */ new Set(), On = 0, kn = 0;
906
- function An() {
907
- let e = ++kn;
908
- return Dn.add(e), On === 0 && (On = e), {
905
+ var An = /* @__PURE__ */ new Set(), jn = 0, Mn = 0;
906
+ function Nn() {
907
+ let e = ++Mn;
908
+ return An.add(e), jn === 0 && (jn = e), {
909
909
  id: e,
910
- isActive: () => Dn.size <= 1 || On === e,
910
+ isActive: () => An.size <= 1 || jn === e,
911
911
  claim: () => {
912
- On = e;
912
+ jn = e;
913
913
  },
914
914
  dispose: () => {
915
- if (Dn.delete(e), On === e) {
916
- let e = Array.from(Dn);
917
- On = e[e.length - 1] ?? 0;
915
+ if (An.delete(e), jn === e) {
916
+ let e = Array.from(An);
917
+ jn = e[e.length - 1] ?? 0;
918
918
  }
919
919
  }
920
920
  };
921
921
  }
922
922
  //#endregion
923
923
  //#region src/composables/usePreviewResolution.ts
924
- var jn = 500;
925
- function Mn(e) {
924
+ var Pn = 500;
925
+ function Fn(e) {
926
926
  let t = typeof e.resolvePreview == "function", n = _(null), r = _(!1), i = _(!1), a = 0, o = null;
927
927
  function c() {
928
928
  o !== null && (clearTimeout(o), o = null);
@@ -933,13 +933,13 @@ function Mn(e) {
933
933
  let o = ++a;
934
934
  r.value = !0;
935
935
  let s = {
936
- content: Se(e.getContent()),
936
+ content: Ce(e.getContent()),
937
937
  ...e.getRecipient?.() === void 0 ? {} : { recipient: e.getRecipient() }
938
938
  };
939
939
  try {
940
940
  let e = await t(s);
941
941
  if (o !== a) return;
942
- if (!pe(e)) {
942
+ if (!me(e)) {
943
943
  i.value = !0;
944
944
  return;
945
945
  }
@@ -959,7 +959,7 @@ function Mn(e) {
959
959
  }
960
960
  o = setTimeout(() => {
961
961
  o = null, l();
962
- }, jn);
962
+ }, Pn);
963
963
  }
964
964
  }
965
965
  return s(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
@@ -968,20 +968,20 @@ function Mn(e) {
968
968
  return;
969
969
  }
970
970
  u();
971
- }, { immediate: !0 }), M(() => {
971
+ }, { immediate: !0 }), j(() => {
972
972
  c(), a++;
973
973
  }), {
974
974
  isConfigured: t,
975
- content: F(() => n.value ?? e.getContent()),
975
+ content: P(() => n.value ?? e.getContent()),
976
976
  isResolving: r,
977
- isInitialResolve: F(() => r.value && n.value === null),
977
+ isInitialResolve: P(() => r.value && n.value === null),
978
978
  hasFailed: i,
979
- supersedesSamples: F(() => t)
979
+ supersedesSamples: P(() => t)
980
980
  };
981
981
  }
982
982
  //#endregion
983
983
  //#region src/composables/useImageUrlResolver.ts
984
- function Nn(e) {
984
+ function In(e) {
985
985
  let t = o(/* @__PURE__ */ new Map()), n = /* @__PURE__ */ new Set();
986
986
  function r(e) {
987
987
  return t.get(e);
@@ -1014,14 +1014,14 @@ function Nn(e) {
1014
1014
  lookup: a
1015
1015
  };
1016
1016
  }
1017
- function Pn(e) {
1018
- let t = p(xt, null), n = F(e);
1017
+ function Ln(e) {
1018
+ let t = p(wt, null), n = P(e);
1019
1019
  if (!t) return n;
1020
1020
  let r;
1021
1021
  function i() {
1022
1022
  r !== void 0 && (clearTimeout(r), r = void 0);
1023
1023
  }
1024
- h() && M(i);
1024
+ h() && j(i);
1025
1025
  let a = !0;
1026
1026
  return s(n, (e) => {
1027
1027
  i();
@@ -1035,7 +1035,7 @@ function Pn(e) {
1035
1035
  r = void 0, t.lookup(e);
1036
1036
  }, 300);
1037
1037
  }
1038
- }, { immediate: !0 }), F(() => {
1038
+ }, { immediate: !0 }), P(() => {
1039
1039
  let e = n.value;
1040
1040
  if (!e) return e;
1041
1041
  let r = t.get(e);
@@ -1044,7 +1044,7 @@ function Pn(e) {
1044
1044
  }
1045
1045
  //#endregion
1046
1046
  //#region src/composables/useMergeTagPicker.ts
1047
- function Fn() {
1047
+ function Rn() {
1048
1048
  let e = _(!1), t = _([]), n = null;
1049
1049
  function r(r) {
1050
1050
  if (n) {
@@ -1059,7 +1059,7 @@ function Fn() {
1059
1059
  let i = n;
1060
1060
  n = null, e.value = !1, t.value = [], i && i(r);
1061
1061
  }
1062
- return h() && M(() => {
1062
+ return h() && j(() => {
1063
1063
  if (n) {
1064
1064
  let e = n;
1065
1065
  n = null, e(null);
@@ -1074,7 +1074,7 @@ function Fn() {
1074
1074
  }
1075
1075
  //#endregion
1076
1076
  //#region src/composables/useLogicTagPicker.ts
1077
- function In() {
1077
+ function zn() {
1078
1078
  let e = _(!1), t = _([]), n = _([]), r = null;
1079
1079
  function i(i, a) {
1080
1080
  if (r) {
@@ -1089,7 +1089,7 @@ function In() {
1089
1089
  let a = r;
1090
1090
  r = null, e.value = !1, t.value = [], n.value = [], a && a(i);
1091
1091
  }
1092
- return h() && M(() => {
1092
+ return h() && j(() => {
1093
1093
  if (r) {
1094
1094
  let e = r;
1095
1095
  r = null, e(null);
@@ -1105,17 +1105,17 @@ function In() {
1105
1105
  }
1106
1106
  //#endregion
1107
1107
  //#region src/composables/useTemplateLint.ts
1108
- function Ln(e) {
1108
+ function Bn(e) {
1109
1109
  return e ? e.disabled === !0 || e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
1110
1110
  }
1111
- function Rn(e) {
1112
- let t = _([]), n = _(!1), r = _(!1), i = f(null), a = Ln(e.options), o = null, c = !1;
1111
+ function Vn(e) {
1112
+ let t = _([]), n = _(!1), r = _(!1), i = f(null), a = Bn(e.options), o = null, c = !1;
1113
1113
  a || l();
1114
1114
  async function l() {
1115
1115
  try {
1116
1116
  let t = await import("@templatical/quality");
1117
1117
  if (c) return;
1118
- i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = qe(e.content, u, {
1118
+ i.value = { lintTemplate: t.lintTemplate }, n.value = !0, u(), o = Je(e.content, u, {
1119
1119
  debounce: e.debounce ?? 500,
1120
1120
  deep: !0
1121
1121
  });
@@ -1150,17 +1150,17 @@ function Rn(e) {
1150
1150
  }
1151
1151
  //#endregion
1152
1152
  //#region src/utils/blockTypeLabels.ts
1153
- function zn(e, t) {
1153
+ function Hn(e, t) {
1154
1154
  return t.blocks[e] ?? e;
1155
1155
  }
1156
- function Bn(e, t, n = []) {
1157
- if (e.type !== "custom") return zn(e.type, t);
1156
+ function Un(e, t, n = []) {
1157
+ if (e.type !== "custom") return Hn(e.type, t);
1158
1158
  let { customType: r } = e;
1159
1159
  return n.find((e) => e.type === r)?.name ?? r;
1160
1160
  }
1161
1161
  //#endregion
1162
1162
  //#region src/composables/useKeyboardReorder.ts
1163
- function Vn(e, t, n = []) {
1163
+ function Wn(e, t, n = []) {
1164
1164
  let r = _(null), i = _(""), a = null;
1165
1165
  function o(t) {
1166
1166
  let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
@@ -1187,7 +1187,7 @@ function Vn(e, t, n = []) {
1187
1187
  let i = o(r);
1188
1188
  if (!i) return "";
1189
1189
  let a = (i.sectionId ? c(i.sectionId, i.columnIndex ?? 0) : e.content.value.blocks)?.[i.index];
1190
- return a ? Bn(a, t.t, n) : "";
1190
+ return a ? Un(a, t.t, n) : "";
1191
1191
  }
1192
1192
  function c(t, n) {
1193
1193
  return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
@@ -1256,13 +1256,13 @@ function Vn(e, t, n = []) {
1256
1256
  }
1257
1257
  //#endregion
1258
1258
  //#region src/composables/useUiTheme.ts
1259
- function Hn(e) {
1260
- let t = Xe("(prefers-color-scheme: dark)");
1261
- return { resolvedTheme: F(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
1259
+ function Gn(e) {
1260
+ let t = Ze("(prefers-color-scheme: dark)");
1261
+ return { resolvedTheme: P(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
1262
1262
  }
1263
1263
  //#endregion
1264
1264
  //#region src/composables/useThemeStyles.ts
1265
- var Un = {
1265
+ var Kn = {
1266
1266
  bg: "--tpl-bg",
1267
1267
  bgElevated: "--tpl-bg-elevated",
1268
1268
  bgHover: "--tpl-bg-hover",
@@ -1286,10 +1286,10 @@ var Un = {
1286
1286
  dangerLight: "--tpl-danger-light",
1287
1287
  canvasBg: "--tpl-canvas-bg"
1288
1288
  };
1289
- function Wn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1290
- return { themeStyles: F(() => {
1289
+ function qn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1290
+ return { themeStyles: P(() => {
1291
1291
  let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
1292
- if (a) for (let [e, t] of Object.entries(Un)) {
1292
+ if (a) for (let [e, t] of Object.entries(Kn)) {
1293
1293
  let n = a[e];
1294
1294
  n && (r[t] = n);
1295
1295
  }
@@ -1298,18 +1298,18 @@ function Wn({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1298
1298
  }
1299
1299
  //#endregion
1300
1300
  //#region src/composables/useBlockRegistry.ts
1301
- function Gn() {
1301
+ function Jn() {
1302
1302
  let e = f(/* @__PURE__ */ new Map());
1303
1303
  function t(t, n) {
1304
- e.value.set(t, n), j(e);
1304
+ e.value.set(t, n), ee(e);
1305
1305
  }
1306
1306
  function n(t, n) {
1307
1307
  let r = `custom:${t.type}`, i = {
1308
1308
  component: n,
1309
- createBlock: () => Ie(t),
1309
+ createBlock: () => Le(t),
1310
1310
  definition: t
1311
1311
  };
1312
- e.value.set(r, i), j(e);
1312
+ e.value.set(r, i), ee(e);
1313
1313
  }
1314
1314
  function r(t) {
1315
1315
  if (t.type === "custom") {
@@ -1338,7 +1338,7 @@ function Gn() {
1338
1338
  strictFilters: !1
1339
1339
  }).parseAndRender(t.template, e.fieldValues);
1340
1340
  } catch (t) {
1341
- return Ht.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
1341
+ return Gt.error(`Failed to render custom block "${e.customType}":`, t), o(`Render error: ${e.customType}`);
1342
1342
  }
1343
1343
  }
1344
1344
  function c(t) {
@@ -1356,9 +1356,9 @@ function Gn() {
1356
1356
  }
1357
1357
  //#endregion
1358
1358
  //#region src/composables/useCustomBlockStylesheets.ts
1359
- function Kn(e, t) {
1360
- return F(() => {
1361
- let n = qn(e.value.blocks);
1359
+ function Yn(e, t) {
1360
+ return P(() => {
1361
+ let n = Xn(e.value.blocks);
1362
1362
  if (n.size === 0) return [];
1363
1363
  let r = /* @__PURE__ */ new Set(), i = [];
1364
1364
  for (let e of n) {
@@ -1370,81 +1370,81 @@ function Kn(e, t) {
1370
1370
  return i;
1371
1371
  });
1372
1372
  }
1373
- function qn(e) {
1373
+ function Xn(e) {
1374
1374
  let t = /* @__PURE__ */ new Set();
1375
- return Jn(e, t), t;
1375
+ return Zn(e, t), t;
1376
1376
  }
1377
- function Jn(e, t) {
1377
+ function Zn(e, t) {
1378
1378
  for (let n of e) {
1379
- if (_e(n)) {
1379
+ if (ve(n)) {
1380
1380
  t.add(n.customType);
1381
1381
  continue;
1382
1382
  }
1383
1383
  if (n.type === "section") {
1384
1384
  let e = n.children;
1385
1385
  if (!e) continue;
1386
- for (let n of e) Jn(n, t);
1386
+ for (let n of e) Zn(n, t);
1387
1387
  }
1388
1388
  }
1389
1389
  }
1390
1390
  //#endregion
1391
1391
  //#region src/utils/registerBuiltInBlocks.ts
1392
- var Yn = [
1392
+ var Qn = [
1393
1393
  {
1394
1394
  type: "section",
1395
- createBlock: Te
1395
+ createBlock: Ee
1396
1396
  },
1397
1397
  {
1398
1398
  type: "title",
1399
- createBlock: He
1399
+ createBlock: Ue
1400
1400
  },
1401
1401
  {
1402
1402
  type: "paragraph",
1403
- createBlock: We
1403
+ createBlock: Ge
1404
1404
  },
1405
1405
  {
1406
1406
  type: "image",
1407
- createBlock: Ce
1407
+ createBlock: we
1408
1408
  },
1409
1409
  {
1410
1410
  type: "button",
1411
- createBlock: Ee
1411
+ createBlock: De
1412
1412
  },
1413
1413
  {
1414
1414
  type: "divider",
1415
- createBlock: ke
1415
+ createBlock: Ae
1416
1416
  },
1417
1417
  {
1418
1418
  type: "video",
1419
- createBlock: be
1419
+ createBlock: xe
1420
1420
  },
1421
1421
  {
1422
1422
  type: "social",
1423
- createBlock: Ue
1423
+ createBlock: We
1424
1424
  },
1425
1425
  {
1426
1426
  type: "menu",
1427
- createBlock: Ve
1427
+ createBlock: He
1428
1428
  },
1429
1429
  {
1430
1430
  type: "table",
1431
- createBlock: se
1431
+ createBlock: ce
1432
1432
  },
1433
1433
  {
1434
1434
  type: "spacer",
1435
- createBlock: ye
1435
+ createBlock: be
1436
1436
  },
1437
1437
  {
1438
1438
  type: "html",
1439
- createBlock: Oe
1439
+ createBlock: ke
1440
1440
  },
1441
1441
  {
1442
1442
  type: "countdown",
1443
- createBlock: De
1443
+ createBlock: Oe
1444
1444
  }
1445
1445
  ];
1446
- function Xn(e, t) {
1447
- for (let n of Yn) {
1446
+ function $n(e, t) {
1447
+ for (let n of Qn) {
1448
1448
  let r = t[n.type];
1449
1449
  r && e.registerBuiltIn(n.type, {
1450
1450
  component: r,
@@ -1454,12 +1454,12 @@ function Xn(e, t) {
1454
1454
  }
1455
1455
  //#endregion
1456
1456
  //#region src/utils/resolveHtmlBlockPreview.ts
1457
- function Zn(e) {
1457
+ function er(e) {
1458
1458
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1459
1459
  }
1460
1460
  //#endregion
1461
1461
  //#region src/utils/templateSettingsFields.ts
1462
- var Qn = {
1462
+ var tr = {
1463
1463
  width: "layout",
1464
1464
  backgroundColor: "appearance",
1465
1465
  textColor: "appearance",
@@ -1468,14 +1468,14 @@ var Qn = {
1468
1468
  fontFamily: "appearance",
1469
1469
  locale: "language",
1470
1470
  preheaderText: "preheader"
1471
- }, $n = Object.keys(Qn);
1472
- function er(e) {
1473
- return Object.prototype.hasOwnProperty.call(Qn, e);
1471
+ }, nr = Object.keys(tr);
1472
+ function rr(e) {
1473
+ return Object.prototype.hasOwnProperty.call(tr, e);
1474
1474
  }
1475
- function tr(e) {
1475
+ function ir(e) {
1476
1476
  let t = e?.fields;
1477
1477
  if (t === void 0 || t === !0) return {
1478
- fields: new Set($n),
1478
+ fields: new Set(nr),
1479
1479
  unknown: []
1480
1480
  };
1481
1481
  if (t === !1) return {
@@ -1483,7 +1483,7 @@ function tr(e) {
1483
1483
  unknown: []
1484
1484
  };
1485
1485
  let n = /* @__PURE__ */ new Set(), r = [];
1486
- for (let e of t) er(e) ? n.add(e) : r.push(String(e));
1486
+ for (let e of t) rr(e) ? n.add(e) : r.push(String(e));
1487
1487
  return {
1488
1488
  fields: n,
1489
1489
  unknown: r
@@ -1491,28 +1491,28 @@ function tr(e) {
1491
1491
  }
1492
1492
  //#endregion
1493
1493
  //#region src/utils/collectOffPaletteDefaults.ts
1494
- function nr(e) {
1494
+ function ar(e) {
1495
1495
  return typeof e == "object" && !!e && !Array.isArray(e);
1496
1496
  }
1497
- function rr(e, t, n) {
1498
- let r = new Set(e.map((e) => Kt(e))), i = [], a = (e, t) => {
1499
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Kt(o)) && i.push(`${t}.${n}: ${o}`) : nr(o) && a(o, `${t}.${n}`);
1497
+ function or(e, t, n) {
1498
+ let r = new Set(e.map((e) => Yt(e))), i = [], a = (e, t) => {
1499
+ for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Yt(o)) && i.push(`${t}.${n}: ${o}`) : ar(o) && a(o, `${t}.${n}`);
1500
1500
  }, o = t;
1501
- for (let [e, t] of Object.entries(ze)) {
1501
+ for (let [e, t] of Object.entries(Be)) {
1502
1502
  let n = o?.[e];
1503
1503
  a({
1504
1504
  ...t,
1505
- ...nr(n) ? n : {}
1505
+ ...ar(n) ? n : {}
1506
1506
  }, e);
1507
1507
  }
1508
1508
  return a({
1509
- ...Pe,
1509
+ ...Fe,
1510
1510
  ...n ?? {}
1511
1511
  }, "template"), i;
1512
1512
  }
1513
1513
  //#endregion
1514
1514
  //#region src/utils/localizedBlockDefaults.ts
1515
- function ir(e) {
1515
+ function sr(e) {
1516
1516
  return {
1517
1517
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1518
1518
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1521,7 +1521,7 @@ function ir(e) {
1521
1521
  }
1522
1522
  //#endregion
1523
1523
  //#region src/i18n/index.ts
1524
- var ar = /* #__PURE__ */ Object.assign({
1524
+ var cr = /* #__PURE__ */ Object.assign({
1525
1525
  "./locales/ca.ts": () => import("./ca-C0hfqt4U.js"),
1526
1526
  "./locales/de.ts": () => import("./de-C6J2Iae8.js"),
1527
1527
  "./locales/en.ts": () => import("./en-BaUYOQi8.js"),
@@ -1529,54 +1529,54 @@ var ar = /* #__PURE__ */ Object.assign({
1529
1529
  "./locales/fr.ts": () => import("./fr-L8DR73mK.js"),
1530
1530
  "./locales/nl.ts": () => import("./nl-GDWeuX18.js"),
1531
1531
  "./locales/pt-BR.ts": () => import("./pt-BR-B1AVVhWj.js")
1532
- }), or = /* #__PURE__ */ Object.assign({
1532
+ }), lr = /* #__PURE__ */ Object.assign({
1533
1533
  "./locales/cloud/de.ts": () => import("./de-BytZwgn6.js"),
1534
1534
  "./locales/cloud/en.ts": () => import("./en-DyOSV0lY.js"),
1535
1535
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-C1WLSGDh.js")
1536
1536
  });
1537
- function sr(e) {
1537
+ function ur(e) {
1538
1538
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1539
1539
  }
1540
- var cr = sr(ar), lr = sr(or);
1541
- function ur(e) {
1540
+ var dr = ur(cr), fr = ur(lr);
1541
+ function pr(e) {
1542
1542
  return e.trim().replace(/_/g, "-").toLowerCase();
1543
1543
  }
1544
- function dr(e, t) {
1545
- let n = ur(e);
1546
- return t.find((e) => ur(e) === n);
1544
+ function mr(e, t) {
1545
+ let n = pr(e);
1546
+ return t.find((e) => pr(e) === n);
1547
1547
  }
1548
- function fr(e) {
1549
- return ur(e).split("-")[0];
1548
+ function hr(e) {
1549
+ return pr(e).split("-")[0];
1550
1550
  }
1551
- function pr(e, t) {
1552
- return dr(e, t) ?? dr(fr(e), t);
1551
+ function gr(e, t) {
1552
+ return mr(e, t) ?? mr(hr(e), t);
1553
1553
  }
1554
- function mr(e, t) {
1555
- return pr(e, t) ?? "en";
1554
+ function _r(e, t) {
1555
+ return gr(e, t) ?? "en";
1556
1556
  }
1557
- async function hr(e) {
1558
- let t = ar[`./locales/${mr(e, cr)}.ts`];
1557
+ async function vr(e) {
1558
+ let t = cr[`./locales/${_r(e, dr)}.ts`];
1559
1559
  return (await t()).default;
1560
1560
  }
1561
- async function gr(e) {
1562
- let t = or[`./locales/cloud/${mr(e, lr)}.ts`];
1561
+ async function yr(e) {
1562
+ let t = lr[`./locales/cloud/${_r(e, fr)}.ts`];
1563
1563
  return (await t()).default;
1564
1564
  }
1565
- function _r(e) {
1566
- return pr(e, cr) !== void 0;
1565
+ function br(e) {
1566
+ return gr(e, dr) !== void 0;
1567
1567
  }
1568
- function vr(e) {
1569
- return pr(e, lr) !== void 0;
1568
+ function xr(e) {
1569
+ return gr(e, fr) !== void 0;
1570
1570
  }
1571
- function yr() {
1572
- return [...cr];
1571
+ function Sr() {
1572
+ return [...dr];
1573
1573
  }
1574
- function br() {
1575
- return [...lr];
1574
+ function Cr() {
1575
+ return [...fr];
1576
1576
  }
1577
1577
  //#endregion
1578
1578
  //#region src/i18n/contentDefaults.ts
1579
- var xr = {
1579
+ var wr = {
1580
1580
  en: {
1581
1581
  video: "Video",
1582
1582
  days: "Days",
@@ -1634,17 +1634,17 @@ var xr = {
1634
1634
  expired: "Aquesta oferta ha caducat"
1635
1635
  }
1636
1636
  };
1637
- Object.keys(xr);
1638
- var Sr = new Map(Object.keys(xr).map((e) => [e.toLowerCase(), e]));
1639
- function Cr(e) {
1640
- if (!e) return xr.en;
1641
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Sr.get(t);
1642
- if (n) return xr[n];
1643
- let r = Sr.get(fr(t));
1644
- return r ? xr[r] : xr.en;
1645
- }
1646
- function wr(e) {
1647
- let t = Cr(e);
1637
+ Object.keys(wr);
1638
+ var Tr = new Map(Object.keys(wr).map((e) => [e.toLowerCase(), e]));
1639
+ function Er(e) {
1640
+ if (!e) return wr.en;
1641
+ let t = e.trim().replace(/_/g, "-").toLowerCase(), n = Tr.get(t);
1642
+ if (n) return wr[n];
1643
+ let r = Tr.get(hr(t));
1644
+ return r ? wr[r] : wr.en;
1645
+ }
1646
+ function Dr(e) {
1647
+ let t = Er(e);
1648
1648
  return {
1649
1649
  video: { alt: t.video },
1650
1650
  countdown: {
@@ -1658,8 +1658,8 @@ function wr(e) {
1658
1658
  }
1659
1659
  //#endregion
1660
1660
  //#region src/utils/resolveFieldColors.ts
1661
- function Tr(e, t) {
1662
- let n = Gt({ presets: e.presets }, Ut), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1661
+ function Or(e, t) {
1662
+ let n = Jt({ presets: e.presets }, Kt), r = n.presets.length === 0, i = e.allowCustom ?? t.allowCustom;
1663
1663
  return {
1664
1664
  presets: r ? t.presets : n.presets,
1665
1665
  allowCustom: t.allowCustom !== !1 && i,
@@ -1671,9 +1671,9 @@ function Tr(e, t) {
1671
1671
  }
1672
1672
  //#endregion
1673
1673
  //#region src/utils/collectColorFieldIssues.ts
1674
- function Er(e, t) {
1674
+ function kr(e, t) {
1675
1675
  let n = [], r = (r, i) => {
1676
- let a = Tr(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1676
+ let a = Or(r, t), o = `custom block "${e.type}" field "${i}"`, s = (t) => `${e.type}:${i}:${t}`;
1677
1677
  if (a.invalidPresets.length > 0 && n.push({
1678
1678
  id: s("invalid-presets"),
1679
1679
  message: `${o}: presets skipped invalid entries: ${a.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).` + (a.presetsInherited ? " No valid entries are left, so the field inherits colors.presets." : "")
@@ -1684,8 +1684,8 @@ function Er(e, t) {
1684
1684
  id: s("allow-custom-ignored"),
1685
1685
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1686
1686
  }), !a.allowCustom && a.presets.length > 0) {
1687
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Kt(e)));
1688
- e !== "" && !t.has(Kt(e)) && n.push({
1687
+ let e = r.default ?? "", t = new Set(a.presets.map((e) => Yt(e)));
1688
+ e !== "" && !t.has(Yt(e)) && n.push({
1689
1689
  id: s("off-palette-default"),
1690
1690
  message: `${o} locks custom colours, but its default ${e} falls outside the field's presets: ${a.presets.join(", ")}. New blocks start on a colour the picker can't reselect — set the default from the same palette.`
1691
1691
  });
@@ -1697,7 +1697,7 @@ function Er(e, t) {
1697
1697
  }
1698
1698
  //#endregion
1699
1699
  //#region src/utils/keyboardShortcuts.ts
1700
- function Dr(e) {
1700
+ function Ar(e) {
1701
1701
  for (let t of e.composedPath()) {
1702
1702
  if (!(t instanceof HTMLElement)) continue;
1703
1703
  if (t.isContentEditable) return !0;
@@ -1706,18 +1706,18 @@ function Dr(e) {
1706
1706
  }
1707
1707
  return !1;
1708
1708
  }
1709
- function Or(e, t) {
1709
+ function jr(e, t) {
1710
1710
  let n = e.metaKey || e.ctrlKey;
1711
1711
  if (n && e.key.toLowerCase() === "s") {
1712
1712
  e.preventDefault(), t.onSave?.();
1713
1713
  return;
1714
1714
  }
1715
1715
  if (n && e.key.toLowerCase() === "z") {
1716
- if (Dr(e)) return;
1716
+ if (Ar(e)) return;
1717
1717
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1718
1718
  return;
1719
1719
  }
1720
- if (t.isPicking?.() && !Dr(e)) {
1720
+ if (t.isPicking?.() && !Ar(e)) {
1721
1721
  if (e.key === "Escape") {
1722
1722
  e.preventDefault(), t.onCancelPick?.();
1723
1723
  return;
@@ -1735,11 +1735,11 @@ function Or(e, t) {
1735
1735
  t.selectBlock(null);
1736
1736
  return;
1737
1737
  }
1738
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Dr(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1738
+ (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ar(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
1739
1739
  }
1740
1740
  //#endregion
1741
1741
  //#region src/utils/mergeTagLabelSegments.ts
1742
- function kr(e, t, n, r = !1) {
1742
+ function Mr(e, t, n, r = !1) {
1743
1743
  if (!e) return [];
1744
1744
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1745
1745
  for (; (s = i.exec(e)) !== null;) {
@@ -1748,18 +1748,18 @@ function kr(e, t, n, r = !1) {
1748
1748
  value: e.slice(o, s.index)
1749
1749
  });
1750
1750
  let i = s[0];
1751
- if (fe(i, n)) {
1752
- let e = r ? ae(i, t) : void 0;
1751
+ if (pe(i, n)) {
1752
+ let e = r ? oe(i, t) : void 0;
1753
1753
  a.push(e === void 0 ? {
1754
1754
  type: "tag",
1755
- value: je(i, t)
1755
+ value: Me(i, t)
1756
1756
  } : {
1757
1757
  type: "text",
1758
1758
  value: e
1759
1759
  });
1760
- } else ue(i, n) ? a.push({
1760
+ } else de(i, n) ? a.push({
1761
1761
  type: "tag",
1762
- value: ge(i, n)
1762
+ value: _e(i, n)
1763
1763
  }) : a.push({
1764
1764
  type: "text",
1765
1765
  value: i
@@ -1773,27 +1773,27 @@ function kr(e, t, n, r = !1) {
1773
1773
  }
1774
1774
  //#endregion
1775
1775
  //#region src/components/MergeTagPreviewText.vue
1776
- var Ar = L({
1776
+ var Nr = I({
1777
1777
  name: "MergeTagPreviewText",
1778
1778
  props: { text: {
1779
1779
  type: String,
1780
1780
  required: !0
1781
1781
  } },
1782
1782
  setup(e) {
1783
- let t = p(ht, []), n = p(Ot, Fe.liquid), r = p(ot, null), i = F(() => kr(e.text, t, n, r?.value ?? !1));
1783
+ let t = p(it, []), n = p(At, Ie.liquid), r = p(It, null), i = P(() => Mr(e.text, t, n, r?.value ?? !1));
1784
1784
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
1785
1785
  key: t,
1786
1786
  class: "tpl-merge-tag-label"
1787
1787
  }, e.value) : e.value);
1788
1788
  }
1789
- }), jr = ["href"], Mr = /* @__PURE__ */ L({
1789
+ }), Pr = ["href"], Fr = /* @__PURE__ */ I({
1790
1790
  __name: "ButtonBlock",
1791
1791
  props: {
1792
1792
  block: {},
1793
1793
  viewport: {}
1794
1794
  },
1795
1795
  setup(e) {
1796
- let t = e, n = F(() => {
1796
+ let t = e, n = P(() => {
1797
1797
  let e = {
1798
1798
  display: "inline-block",
1799
1799
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -1806,18 +1806,18 @@ var Ar = L({
1806
1806
  textAlign: "center"
1807
1807
  };
1808
1808
  return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), t.block.width === "full" ? (e.display = "block", e.width = "100%", e.boxSizing = "border-box") : typeof t.block.width == "number" && (e.width = `${t.block.width}px`, e.boxSizing = "border-box"), e;
1809
- }), r = F(() => ({ textAlign: t.block.align ?? "center" }));
1809
+ }), r = P(() => ({ textAlign: t.block.align ?? "center" }));
1810
1810
  return (t, i) => (O(), S("div", { style: u(r.value) }, [x("a", {
1811
1811
  href: e.block.url || "#",
1812
1812
  style: u(n.value),
1813
1813
  class: "tpl:cursor-default",
1814
- onClick: i[0] ||= R(() => {}, ["prevent"])
1815
- }, [w(Ar, { text: e.block.text }, null, 8, ["text"])], 12, jr)], 4));
1814
+ onClick: i[0] ||= L(() => {}, ["prevent"])
1815
+ }, [w(Nr, { text: e.block.text }, null, 8, ["text"])], 12, Pr)], 4));
1816
1816
  }
1817
- }), Nr = Jt("bookmark", [["path", {
1817
+ }), Ir = Zt("bookmark", [["path", {
1818
1818
  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",
1819
1819
  key: "oz39mx"
1820
- }]]), Pr = Jt("box", [
1820
+ }]]), Lr = Zt("box", [
1821
1821
  ["path", {
1822
1822
  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",
1823
1823
  key: "hh9hay"
@@ -1830,13 +1830,13 @@ var Ar = L({
1830
1830
  d: "M12 22V12",
1831
1831
  key: "d0xqtd"
1832
1832
  }]
1833
- ]), Fr = Jt("code", [["path", {
1833
+ ]), Rr = Zt("code", [["path", {
1834
1834
  d: "m16 18 6-6-6-6",
1835
1835
  key: "eg8j8"
1836
1836
  }], ["path", {
1837
1837
  d: "m8 6-6 6 6 6",
1838
1838
  key: "ppft3o"
1839
- }]]), Ir = Jt("copy", [["rect", {
1839
+ }]]), zr = Zt("copy", [["rect", {
1840
1840
  width: "14",
1841
1841
  height: "14",
1842
1842
  x: "8",
@@ -1847,7 +1847,7 @@ var Ar = L({
1847
1847
  }], ["path", {
1848
1848
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1849
1849
  key: "zix9uf"
1850
- }]]), Lr = Jt("eye-off", [
1850
+ }]]), Br = Zt("eye-off", [
1851
1851
  ["path", {
1852
1852
  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",
1853
1853
  key: "ct8e1f"
@@ -1864,10 +1864,10 @@ var Ar = L({
1864
1864
  d: "m2 2 20 20",
1865
1865
  key: "1ooewy"
1866
1866
  }]
1867
- ]), Rr = Jt("funnel", [["path", {
1867
+ ]), Vr = Zt("funnel", [["path", {
1868
1868
  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",
1869
1869
  key: "sc7q7i"
1870
- }]]), zr = Jt("grip-vertical", [
1870
+ }]]), Hr = Zt("grip-vertical", [
1871
1871
  ["circle", {
1872
1872
  cx: "9",
1873
1873
  cy: "12",
@@ -1904,7 +1904,7 @@ var Ar = L({
1904
1904
  r: "1",
1905
1905
  key: "f4zoj3"
1906
1906
  }]
1907
- ]), Br = Jt("image", [
1907
+ ]), Ur = Zt("image", [
1908
1908
  ["rect", {
1909
1909
  width: "18",
1910
1910
  height: "18",
@@ -1924,13 +1924,13 @@ var Ar = L({
1924
1924
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1925
1925
  key: "1xmnt7"
1926
1926
  }]
1927
- ]), Vr = Jt("navigation", [["polygon", {
1927
+ ]), Wr = Zt("navigation", [["polygon", {
1928
1928
  points: "3 11 22 2 13 21 11 13 3 11",
1929
1929
  key: "1ltx0t"
1930
- }]]), Hr = Jt("puzzle", [["path", {
1930
+ }]]), Gr = Zt("puzzle", [["path", {
1931
1931
  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",
1932
1932
  key: "w46dr5"
1933
- }]]), Ur = Jt("share-2", [
1933
+ }]]), Kr = Zt("share-2", [
1934
1934
  ["circle", {
1935
1935
  cx: "18",
1936
1936
  cy: "5",
@@ -1963,7 +1963,7 @@ var Ar = L({
1963
1963
  y2: "10.49",
1964
1964
  key: "1n3mei"
1965
1965
  }]
1966
- ]), Wr = Jt("table", [
1966
+ ]), qr = Zt("table", [
1967
1967
  ["path", {
1968
1968
  d: "M12 3v18",
1969
1969
  key: "108xh3"
@@ -1984,7 +1984,7 @@ var Ar = L({
1984
1984
  d: "M3 15h18",
1985
1985
  key: "5xshup"
1986
1986
  }]
1987
- ]), Gr = Jt("video", [["path", {
1987
+ ]), Jr = Zt("video", [["path", {
1988
1988
  d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
1989
1989
  key: "ftymec"
1990
1990
  }], ["rect", {
@@ -1994,18 +1994,18 @@ var Ar = L({
1994
1994
  height: "12",
1995
1995
  rx: "2",
1996
1996
  key: "158x01"
1997
- }]]), Kr = ["innerHTML"], qr = [
1997
+ }]]), Yr = ["innerHTML"], Xr = [
1998
1998
  "src",
1999
1999
  "width",
2000
2000
  "height"
2001
- ], Jr = /* @__PURE__ */ L({
2001
+ ], Zr = /* @__PURE__ */ I({
2002
2002
  __name: "CustomBlockIcon",
2003
2003
  props: {
2004
2004
  icon: {},
2005
2005
  size: {}
2006
2006
  },
2007
2007
  setup(e) {
2008
- let t = e, n = F(() => t.size ?? 20), r = F(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = F(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
2008
+ let t = e, n = P(() => t.size ?? 20), r = P(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = P(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
2009
2009
  return (t, a) => r.value ? (O(), S("span", {
2010
2010
  key: 0,
2011
2011
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -2014,24 +2014,24 @@ var Ar = L({
2014
2014
  height: `${n.value}px`
2015
2015
  }),
2016
2016
  innerHTML: e.icon
2017
- }, null, 12, Kr)) : i.value ? (O(), S("img", {
2017
+ }, null, 12, Yr)) : i.value ? (O(), S("img", {
2018
2018
  key: 1,
2019
2019
  src: e.icon,
2020
2020
  width: n.value,
2021
2021
  height: n.value,
2022
2022
  class: "tpl:inline-block",
2023
2023
  alt: ""
2024
- }, null, 8, qr)) : (O(), A(P(Pr), {
2024
+ }, null, 8, Xr)) : (O(), A(N(Lr), {
2025
2025
  key: 2,
2026
2026
  size: n.value,
2027
2027
  "stroke-width": 1.5
2028
2028
  }, null, 8, ["size"]));
2029
2029
  }
2030
- }), Yr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2031
- function Xr(e, t) {
2032
- let n = nn(), r = null, i = null, a = null;
2030
+ }), Qr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
2031
+ function $r(e, t) {
2032
+ let n = on(), r = null, i = null, a = null;
2033
2033
  function o() {
2034
- return e.value ? Array.from(e.value.querySelectorAll(Yr)).filter((e) => e.offsetParent !== null) : [];
2034
+ return e.value ? Array.from(e.value.querySelectorAll(Qr)).filter((e) => e.offsetParent !== null) : [];
2035
2035
  }
2036
2036
  function c(e) {
2037
2037
  if (e.key !== "Tab") return;
@@ -2046,7 +2046,7 @@ function Xr(e, t) {
2046
2046
  a = null;
2047
2047
  let t = o();
2048
2048
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
2049
- }), i = Ze(e, "keydown", c);
2049
+ }), i = Qe(e, "keydown", c);
2050
2050
  }
2051
2051
  function u(e = {}) {
2052
2052
  let t = e.restoreFocus !== !1;
@@ -2055,15 +2055,15 @@ function Xr(e, t) {
2055
2055
  let d = s([t, e], ([e, t]) => {
2056
2056
  e && t ? l() : u();
2057
2057
  }, { flush: "post" });
2058
- M(() => {
2058
+ j(() => {
2059
2059
  d(), u();
2060
2060
  });
2061
2061
  }
2062
2062
  //#endregion
2063
2063
  //#region src/composables/useEmoji.ts
2064
- function Zr() {
2065
- let [e, t] = Je(!1), n = f([]), r = !1;
2066
- M(() => {
2064
+ function ei() {
2065
+ let [e, t] = Ye(!1), n = f([]), r = !1;
2066
+ j(() => {
2067
2067
  r = !0;
2068
2068
  }), s(e, async (e) => {
2069
2069
  if (e && n.value.length === 0) {
@@ -2087,7 +2087,7 @@ function Zr() {
2087
2087
  }
2088
2088
  //#endregion
2089
2089
  //#region src/composables/useFonts.ts
2090
- var Qr = [
2090
+ var ti = [
2091
2091
  {
2092
2092
  value: "Arial",
2093
2093
  label: "Arial"
@@ -2116,7 +2116,7 @@ var Qr = [
2116
2116
  value: "Courier New",
2117
2117
  label: "Courier New"
2118
2118
  }
2119
- ], $r = {
2119
+ ], ni = {
2120
2120
  arial: "Arial, sans-serif",
2121
2121
  helvetica: "Helvetica, sans-serif",
2122
2122
  georgia: "Georgia, serif",
@@ -2124,23 +2124,23 @@ var Qr = [
2124
2124
  verdana: "Verdana, sans-serif",
2125
2125
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2126
2126
  "courier new": "'Courier New', monospace"
2127
- }, ei = "Arial, sans-serif";
2128
- function ti(e) {
2129
- if (e === void 0 || e === !0) return [...Qr];
2127
+ }, ri = "Arial, sans-serif";
2128
+ function ii(e) {
2129
+ if (e === void 0 || e === !0) return [...ti];
2130
2130
  if (e === !1) return [];
2131
2131
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
2132
2132
  for (let i of e) {
2133
- let e = i.toLowerCase(), a = Qr.find((t) => t.value.toLowerCase() === e);
2133
+ let e = i.toLowerCase(), a = ti.find((t) => t.value.toLowerCase() === e);
2134
2134
  if (!a) {
2135
- r.has(e) || (r.add(e), Ht.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${Qr.map((e) => e.value).join(", ")}.`));
2135
+ r.has(e) || (r.add(e), Gt.warn(`config.fonts.builtIns: "${i}" is not a built-in font — skipping it. Built-in fonts are: ${ti.map((e) => e.value).join(", ")}.`));
2136
2136
  continue;
2137
2137
  }
2138
2138
  n.has(a.value) || (n.add(a.value), t.push(a));
2139
2139
  }
2140
2140
  return t;
2141
2141
  }
2142
- function ni(e) {
2143
- let t = _(e?.customFonts ?? []), n = _(!1), r = ti(e?.builtIns), i = F(() => e?.defaultFallback ?? ei), a = F(() => {
2142
+ function ai(e) {
2143
+ let t = _(e?.customFonts ?? []), n = _(!1), r = ii(e?.builtIns), i = P(() => e?.defaultFallback ?? ri), a = P(() => {
2144
2144
  let e = [...r], n = t.value.map((e) => ({
2145
2145
  value: e.name,
2146
2146
  label: e.name,
@@ -2151,16 +2151,16 @@ function ni(e) {
2151
2151
  function o(e) {
2152
2152
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
2153
2153
  }
2154
- let s = e?.defaultFont ?? ei.split(",")[0].trim();
2155
- o(s) || Ht.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
2154
+ let s = e?.defaultFont ?? ri.split(",")[0].trim();
2155
+ o(s) || Gt.warn(`config.fonts: new templates seed "${s}", which the font picker doesn't offer — authors can't reselect it. Either add it to fonts.builtIns, or set fonts.defaultFont to an offered font.`);
2156
2156
  function c() {
2157
2157
  if (e?.defaultFont && o(e.defaultFont)) {
2158
2158
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
2159
2159
  if (t) return t.value;
2160
2160
  }
2161
- return ei;
2161
+ return ri;
2162
2162
  }
2163
- let l = F(() => c());
2163
+ let l = P(() => c());
2164
2164
  function u(e) {
2165
2165
  if (!e) return i.value;
2166
2166
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
@@ -2168,7 +2168,7 @@ function ni(e) {
2168
2168
  let e = n.fallback ?? i.value;
2169
2169
  return `'${n.name}', ${e}`;
2170
2170
  }
2171
- return $r[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2171
+ return ni[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2172
2172
  }
2173
2173
  let d = [], f = !1;
2174
2174
  async function p() {
@@ -2184,7 +2184,7 @@ function ni(e) {
2184
2184
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
2185
2185
  });
2186
2186
  } catch (t) {
2187
- Ht.warn(`Failed to load custom font "${e.name}":`, t);
2187
+ Gt.warn(`Failed to load custom font "${e.name}":`, t);
2188
2188
  }
2189
2189
  });
2190
2190
  await Promise.allSettled(e), !f && (n.value = !0);
@@ -2193,7 +2193,7 @@ function ni(e) {
2193
2193
  for (let e of d) e.remove();
2194
2194
  d.length = 0;
2195
2195
  }
2196
- return h() && M(() => {
2196
+ return h() && j(() => {
2197
2197
  f = !0, m();
2198
2198
  }), {
2199
2199
  fonts: a,
@@ -2209,8 +2209,8 @@ function ni(e) {
2209
2209
  }
2210
2210
  //#endregion
2211
2211
  //#region src/composables/useLogicTag.ts
2212
- function ri() {
2213
- let e = p(nt, []), t = p(mt, []), n = p(Ot, Fe.liquid), r = p(et, null), i = p(Lt, null), a = _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2212
+ function oi() {
2213
+ let e = p(nt, []), t = p(_t, []), n = p(At, Ie.liquid), r = p(ft, null), i = p(Vt, null), a = p(vt, null) ?? _(!1), o = !!r || e.length > 0 || t.length > 0, s = e.length > 0 || t.length > 0;
2214
2214
  async function c() {
2215
2215
  if (r) {
2216
2216
  a.value = !0;
@@ -2241,12 +2241,12 @@ function ri() {
2241
2241
  }
2242
2242
  //#endregion
2243
2243
  //#region src/utils/mergeTagNodeSpec.ts
2244
- function ii(e, t, n) {
2245
- return ue(e, n) ? {
2244
+ function si(e, t, n) {
2245
+ return de(e, n) ? {
2246
2246
  type: "logicMergeTagNode",
2247
2247
  attrs: {
2248
2248
  value: e,
2249
- keyword: ge(e, n)
2249
+ keyword: _e(e, n)
2250
2250
  }
2251
2251
  } : {
2252
2252
  type: "mergeTagNode",
@@ -2258,15 +2258,15 @@ function ii(e, t, n) {
2258
2258
  }
2259
2259
  //#endregion
2260
2260
  //#region src/utils/insertLogicTag.ts
2261
- function ai(e) {
2261
+ function ci(e) {
2262
2262
  return "before" in e && "after" in e;
2263
2263
  }
2264
- function oi(e, t, n) {
2265
- if (!ai(t)) {
2266
- e.chain().focus().insertContent(ii(t.value, t.label, n)).run();
2264
+ function li(e, t, n) {
2265
+ if (!ci(t)) {
2266
+ e.chain().focus().insertContent(si(t.value, t.label, n)).run();
2267
2267
  return;
2268
2268
  }
2269
- let r = ii(t.before, t.label, n), i = ii(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2269
+ let r = si(t.before, t.label, n), i = si(t.after, t.label, n), { from: a, to: o } = e.state.selection;
2270
2270
  if (a !== o) {
2271
2271
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
2272
2272
  return;
@@ -2275,20 +2275,20 @@ function oi(e, t, n) {
2275
2275
  }
2276
2276
  //#endregion
2277
2277
  //#region src/utils/linkColorExtension.ts
2278
- function si(e) {
2278
+ function ui(e) {
2279
2279
  if (!e) return null;
2280
2280
  let t = e.trim();
2281
2281
  return /^#[0-9a-f]{3,8}$/i.test(t) || /^(rgb|rgba|hsl|hsla)\(\s*[0-9.,%/\s]+\)$/i.test(t) || /^[a-z]+$/i.test(t) ? t : null;
2282
2282
  }
2283
- function ci(e) {
2283
+ function di(e) {
2284
2284
  return e.extend({ addAttributes() {
2285
2285
  return {
2286
2286
  ...this.parent?.(),
2287
2287
  color: {
2288
2288
  default: null,
2289
- parseHTML: (e) => si(Wt(e.style.color)),
2289
+ parseHTML: (e) => ui(qt(e.style.color)),
2290
2290
  renderHTML: (e) => {
2291
- let t = si(e.color);
2291
+ let t = ui(e.color);
2292
2292
  return t ? { style: `color: ${t}` } : {};
2293
2293
  }
2294
2294
  }
@@ -2297,24 +2297,24 @@ function ci(e) {
2297
2297
  }
2298
2298
  //#endregion
2299
2299
  //#region src/composables/useRichTextLinkDialog.ts
2300
- function li(e) {
2301
- let t = _(!1), n = _(""), r = _(""), i = _(null);
2302
- Xr(i, t);
2303
- function a() {
2304
- let i = e.value?.getAttributes("link") ?? {};
2305
- n.value = i.href || "", r.value = i.color || "", t.value = !0;
2306
- }
2300
+ function fi(e, t = Ie.liquid) {
2301
+ let n = _(!1), r = _(""), i = _(""), a = _(null);
2302
+ $r(a, n);
2307
2303
  function o() {
2308
- if (n.value) {
2309
- let t = c(n.value);
2304
+ let t = e.value?.getAttributes("link") ?? {};
2305
+ r.value = t.href || "", i.value = t.color || "", n.value = !0;
2306
+ }
2307
+ function s() {
2308
+ if (r.value) {
2309
+ let t = u(r.value);
2310
2310
  if (t !== null) {
2311
- let n = si(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2312
- n && typeof e.value?.commands.unsetColor == "function" && i?.unsetColor(), i?.run();
2311
+ let n = ui(i.value), r = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2312
+ n && typeof e.value?.commands.unsetColor == "function" && r?.unsetColor(), r?.run();
2313
2313
  }
2314
2314
  }
2315
- u();
2315
+ f();
2316
2316
  }
2317
- let s = /* @__PURE__ */ new Set([
2317
+ let c = /* @__PURE__ */ new Set([
2318
2318
  "http",
2319
2319
  "https",
2320
2320
  "mailto",
@@ -2325,40 +2325,43 @@ function li(e) {
2325
2325
  "xmpp",
2326
2326
  "cid"
2327
2327
  ]);
2328
- function c(e) {
2328
+ function l(e) {
2329
+ return RegExp(`^(?:${t.value.source})`).test(e);
2330
+ }
2331
+ function u(e) {
2329
2332
  let t = e.trim();
2330
2333
  if (!t) return null;
2331
2334
  if (t.startsWith("#")) return t;
2332
2335
  let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
2333
- return n ? s.has(n[1].toLowerCase()) ? t : null : `https://${t}`;
2336
+ return n ? c.has(n[1].toLowerCase()) ? t : null : l(t) ? t : `https://${t}`;
2334
2337
  }
2335
- function l() {
2336
- e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), u();
2338
+ function d() {
2339
+ e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), f();
2337
2340
  }
2338
- function u() {
2339
- t.value = !1, n.value = "", r.value = "";
2341
+ function f() {
2342
+ n.value = !1, r.value = "", i.value = "";
2340
2343
  }
2341
- function d(e) {
2342
- e.key === "Enter" ? (e.preventDefault(), o()) : e.key === "Escape" && u();
2344
+ function p(e) {
2345
+ e.key === "Enter" ? (e.preventDefault(), s()) : e.key === "Escape" && f();
2343
2346
  }
2344
2347
  return {
2345
- showLinkDialog: t,
2346
- linkUrl: n,
2347
- linkColor: r,
2348
- linkDialogRef: i,
2349
- openLinkDialog: a,
2350
- insertLink: o,
2351
- removeLink: l,
2352
- closeLinkDialog: u,
2353
- handleLinkKeydown: d
2348
+ showLinkDialog: n,
2349
+ linkUrl: r,
2350
+ linkColor: i,
2351
+ linkDialogRef: a,
2352
+ openLinkDialog: o,
2353
+ insertLink: s,
2354
+ removeLink: d,
2355
+ closeLinkDialog: f,
2356
+ handleLinkKeydown: p
2354
2357
  };
2355
2358
  }
2356
2359
  //#endregion
2357
2360
  //#region src/composables/useRichTextEditor.ts
2358
- function ui(e) {
2359
- let t = p(Et, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = rn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = ri(), g = p(st, null), v = (a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = me(l), b = f(null), { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = li(b), { start: A, stop: j } = Ye(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), M = f(null), N = _(!0), P = _(null), F = !1;
2360
- async function ee() {
2361
- P.value = null, N.value = !0;
2361
+ function pi(e) {
2362
+ let t = p(kt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = sn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = oi(), g = p(xt, null), v = (a(g) ? g.value : g)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", y = he(l), b = f(null), { showLinkDialog: x, linkUrl: S, linkColor: C, linkDialogRef: w, openLinkDialog: T, insertLink: E, removeLink: D, closeLinkDialog: O, handleLinkKeydown: k } = fi(b, l), { start: A, stop: ee } = Xe(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), j = f(null), M = _(!0), N = _(null), P = !1;
2363
+ async function te() {
2364
+ N.value = null, M.value = !0;
2362
2365
  try {
2363
2366
  let { TiptapEditor: r, EC: i, extensions: a } = await e.loadExtensions({
2364
2367
  mergeTags: n,
@@ -2367,8 +2370,8 @@ function ui(e) {
2367
2370
  autocompleteEnabled: u,
2368
2371
  suggestionEmptyText: v
2369
2372
  });
2370
- if (F) return;
2371
- M.value = i;
2373
+ if (P) return;
2374
+ j.value = i;
2372
2375
  let o = /* @__PURE__ */ new Map();
2373
2376
  a.forEach((e, t) => o.set(e.name, t));
2374
2377
  let s = new r({
@@ -2376,27 +2379,27 @@ function ui(e) {
2376
2379
  content: e.blockContent(),
2377
2380
  editable: !0,
2378
2381
  onUpdate: ({ editor: n }) => {
2379
- F || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2382
+ P || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2380
2383
  }
2381
2384
  });
2382
- if (F) {
2385
+ if (P) {
2383
2386
  s.destroy();
2384
2387
  return;
2385
2388
  }
2386
- b.value = s, N.value = !1, A();
2389
+ b.value = s, M.value = !1, A();
2387
2390
  } catch (t) {
2388
- if (F) return;
2389
- Ht.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), P.value = t instanceof Error ? t.message : "Failed to load editor", N.value = !1;
2391
+ if (P) return;
2392
+ Gt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), N.value = t instanceof Error ? t.message : "Failed to load editor", M.value = !1;
2390
2393
  }
2391
2394
  }
2392
- function I() {
2393
- b.value?.destroy(), b.value = null, ee();
2395
+ function F() {
2396
+ b.value?.destroy(), b.value = null, te();
2394
2397
  }
2395
- ee();
2396
- let L = s(() => e.blockContent(), (e) => {
2398
+ te();
2399
+ let I = s(() => e.blockContent(), (e) => {
2397
2400
  b.value && b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 });
2398
2401
  });
2399
- function te(t) {
2402
+ function ne(t) {
2400
2403
  if (o.value || m.value) return;
2401
2404
  let n = t.composedPath(), r = n.find((e) => e instanceof HTMLElement);
2402
2405
  if (!r) return;
@@ -2404,26 +2407,26 @@ function ui(e) {
2404
2407
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
2405
2408
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
2406
2409
  }
2407
- Ze(document, "mousedown", te), i(() => {
2408
- F = !0, L(), j(), b.value?.destroy();
2410
+ Qe(document, "mousedown", ne), i(() => {
2411
+ P = !0, I(), ee(), b.value?.destroy();
2409
2412
  });
2410
- async function ne() {
2413
+ async function re() {
2411
2414
  let e = await c();
2412
- F || (e && b.value ? b.value.chain().focus().insertMergeTag({
2415
+ P || (e && b.value ? b.value.chain().focus().insertMergeTag({
2413
2416
  label: e.label,
2414
2417
  value: e.value
2415
2418
  }).run() : b.value?.commands.focus());
2416
2419
  }
2417
- async function R() {
2420
+ async function L() {
2418
2421
  let e = await h();
2419
- F || (e && b.value ? oi(b.value, e, l) : b.value?.commands.focus());
2422
+ P || (e && b.value ? li(b.value, e, l) : b.value?.commands.focus());
2420
2423
  }
2421
2424
  return {
2422
2425
  editor: b,
2423
- EditorContent: M,
2424
- isLoading: N,
2425
- initError: P,
2426
- retry: I,
2426
+ EditorContent: j,
2427
+ isLoading: M,
2428
+ initError: N,
2429
+ retry: F,
2427
2430
  showLinkDialog: x,
2428
2431
  linkUrl: S,
2429
2432
  linkColor: C,
@@ -2439,36 +2442,36 @@ function ui(e) {
2439
2442
  removeLink: D,
2440
2443
  closeLinkDialog: O,
2441
2444
  handleLinkKeydown: k,
2442
- handleAddMergeTag: ne,
2443
- handleAddLogicTag: R
2445
+ handleAddMergeTag: re,
2446
+ handleAddLogicTag: L
2444
2447
  };
2445
2448
  }
2446
2449
  //#endregion
2447
2450
  //#region src/composables/useSmallScreenNotice.ts
2448
- var di = "(max-width: 767px)";
2449
- function fi(e) {
2450
- let t = Xe(di);
2451
+ var mi = "(max-width: 767px)";
2452
+ function hi(e) {
2453
+ let t = Ze(mi);
2451
2454
  return {
2452
2455
  isSmallScreen: t,
2453
- showNotice: F(() => (ee(e) ?? !0) && t.value)
2456
+ showNotice: P(() => (te(e) ?? !0) && t.value)
2454
2457
  };
2455
2458
  }
2456
2459
  //#endregion
2457
2460
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
2458
- var pi = { class: "tpl:w-full" }, mi = {
2461
+ var gi = { class: "tpl:w-full" }, _i = {
2459
2462
  key: 0,
2460
2463
  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)]"
2461
- }, hi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, gi = {
2464
+ }, vi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, yi = {
2462
2465
  key: 1,
2463
2466
  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)]"
2464
- }, _i = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, vi = {
2467
+ }, bi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xi = {
2465
2468
  key: 2,
2466
2469
  class: "tpl:relative"
2467
- }, yi = ["innerHTML"], bi = {
2470
+ }, Si = ["innerHTML"], Ci = {
2468
2471
  key: 0,
2469
2472
  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]",
2470
2473
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
2471
- }, xi = /* @__PURE__ */ L({
2474
+ }, wi = /* @__PURE__ */ I({
2472
2475
  __name: "CustomBlock",
2473
2476
  props: {
2474
2477
  block: {},
@@ -2476,19 +2479,19 @@ var pi = { class: "tpl:w-full" }, mi = {
2476
2479
  },
2477
2480
  emits: ["fetchData"],
2478
2481
  setup(e, { emit: t }) {
2479
- let r = e, i = t, { t: a } = Vt(), o = p(Pt, null), c = _(""), l = _(!1), u = F(() => o?.getDefinition(r.block.customType)), d = F(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = yn({
2482
+ let r = e, i = t, { t: a } = Wt(), o = p(Rt, null), c = _(""), l = _(!1), u = P(() => o?.getDefinition(r.block.customType)), d = P(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = Sn({
2480
2483
  definition: u,
2481
- block: F(() => r.block),
2484
+ block: P(() => r.block),
2482
2485
  onUpdate: (e, t) => {
2483
2486
  i("fetchData", {
2484
2487
  fieldValues: e,
2485
2488
  dataSourceFetched: t
2486
2489
  });
2487
2490
  }
2488
- }), v = p(ht, []), y = p(ot, null), b = F(() => {
2491
+ }), v = p(it, []), y = p(It, null), b = P(() => {
2489
2492
  if (!y?.value) return r.block;
2490
2493
  let e = {};
2491
- for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? xe(n, v) : n;
2494
+ for (let [t, n] of Object.entries(r.block.fieldValues)) e[t] = typeof n == "string" ? Se(n, v) : n;
2492
2495
  return {
2493
2496
  ...r.block,
2494
2497
  fieldValues: e
@@ -2505,67 +2508,67 @@ var pi = { class: "tpl:w-full" }, mi = {
2505
2508
  }
2506
2509
  }
2507
2510
  }
2508
- let E = Ke(C, 150);
2511
+ let E = qe(C, 150);
2509
2512
  return n(() => {
2510
2513
  C();
2511
2514
  }), s(() => r.block.fieldValues, () => {
2512
2515
  E();
2513
2516
  }, { deep: !0 }), s(() => y?.value, () => {
2514
2517
  E();
2515
- }), (e, t) => (O(), S("div", pi, [d.value ? l.value ? (O(), S("div", gi, [w(P(Qt), {
2518
+ }), (e, t) => (O(), S("div", gi, [d.value ? l.value ? (O(), S("div", yi, [w(N(tn), {
2516
2519
  size: 24,
2517
2520
  class: "tpl:text-[var(--tpl-danger)]"
2518
- }), x("span", _i, k(P(a).customBlocks.renderError), 1)])) : (O(), S("div", vi, [x("div", { innerHTML: c.value }, null, 8, yi), P(g) && P(h) ? (O(), S("div", bi, [P(f) ? (O(), A(en, {
2521
+ }), x("span", bi, k(N(a).customBlocks.renderError), 1)])) : (O(), S("div", xi, [x("div", { innerHTML: c.value }, null, 8, Si), N(g) && N(h) ? (O(), S("div", Ci, [N(f) ? (O(), A(rn, {
2519
2522
  key: 1,
2520
2523
  class: "tpl:w-48"
2521
2524
  })) : (O(), S("button", {
2522
2525
  key: 0,
2523
2526
  type: "button",
2524
2527
  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-[var(--tpl-shadow)] tpl:transition-all tpl:hover:border-[var(--tpl-primary)] tpl:hover:shadow-[var(--tpl-shadow-md)] tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
2525
- onClick: t[0] ||= R((...e) => P(m) && P(m)(...e), ["stop"])
2526
- }, [u.value?.icon ? (O(), A(Jr, {
2528
+ onClick: t[0] ||= L((...e) => N(m) && N(m)(...e), ["stop"])
2529
+ }, [u.value?.icon ? (O(), A(Zr, {
2527
2530
  key: 0,
2528
2531
  icon: u.value.icon,
2529
2532
  size: 16
2530
- }, null, 8, ["icon"])) : I("", !0), T(" " + k(u.value?.dataSource?.label || P(a).customBlocks.dataSource.fetchButton), 1)]))])) : I("", !0)])) : (O(), S("div", mi, [w(P(Hr), {
2533
+ }, null, 8, ["icon"])) : F("", !0), T(" " + k(u.value?.dataSource?.label || N(a).customBlocks.dataSource.fetchButton), 1)]))])) : F("", !0)])) : (O(), S("div", _i, [w(N(Gr), {
2531
2534
  size: 24,
2532
2535
  class: "tpl:text-[var(--tpl-warning)]"
2533
- }), x("span", hi, k(P(a).customBlocks.definitionNotFound), 1)]))]));
2536
+ }), x("span", vi, k(N(a).customBlocks.definitionNotFound), 1)]))]));
2534
2537
  }
2535
- }), Si = { class: "tpl:w-full" }, Ci = /* @__PURE__ */ L({
2538
+ }), Ti = { class: "tpl:w-full" }, Ei = /* @__PURE__ */ I({
2536
2539
  __name: "DividerBlock",
2537
2540
  props: {
2538
2541
  block: {},
2539
2542
  viewport: {}
2540
2543
  },
2541
2544
  setup(e) {
2542
- let t = e, n = F(() => ({
2545
+ let t = e, n = P(() => ({
2543
2546
  borderTop: `${t.block.thickness}px ${t.block.lineStyle} ${t.block.color}`,
2544
2547
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
2545
2548
  margin: t.block.width === "full" ? "0" : "0 auto"
2546
2549
  }));
2547
- return (e, t) => (O(), S("div", Si, [x("hr", {
2550
+ return (e, t) => (O(), S("div", Ti, [x("hr", {
2548
2551
  class: "tpl:m-0 tpl:border-none",
2549
2552
  style: u(n.value)
2550
2553
  }, null, 4)]));
2551
2554
  }
2552
- }), wi = { class: "tpl:w-full" }, Ti = ["srcdoc", "title"], Ei = {
2555
+ }), Di = { class: "tpl:w-full" }, Oi = ["srcdoc", "title"], ki = {
2553
2556
  key: 1,
2554
2557
  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)]"
2555
- }, Di = {
2558
+ }, Ai = {
2556
2559
  key: 0,
2557
2560
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2558
- }, Oi = {
2561
+ }, ji = {
2559
2562
  key: 1,
2560
2563
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2561
- }, ki = /* @__PURE__ */ L({
2564
+ }, Mi = /* @__PURE__ */ I({
2562
2565
  __name: "HtmlBlock",
2563
2566
  props: {
2564
2567
  block: {},
2565
2568
  viewport: {}
2566
2569
  },
2567
2570
  setup(e) {
2568
- let t = e, { t: n } = Vt(), r = p(zt, !1), a = F(() => t.block.content.trim().length > 0), o = F(() => r && a.value), c = p(ht, []), l = p(ot, null), d = F(() => l?.value ? xe(t.block.content, c) : t.block.content), f = _(null), m = _(60), h = null;
2571
+ let t = e, { t: n } = Wt(), r = p(Ut, !1), a = P(() => t.block.content.trim().length > 0), o = P(() => r && a.value), c = p(it, []), l = p(It, null), d = P(() => l?.value ? Se(t.block.content, c) : t.block.content), f = _(null), m = _(60), h = null;
2569
2572
  function g() {
2570
2573
  let e = f.value?.contentDocument;
2571
2574
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2579,46 +2582,46 @@ var pi = { class: "tpl:w-full" }, mi = {
2579
2582
  e || (h?.disconnect(), h = null);
2580
2583
  }), i(() => {
2581
2584
  h?.disconnect(), h = null;
2582
- }), (e, t) => (O(), S("div", wi, [o.value ? (O(), S("iframe", {
2585
+ }), (e, t) => (O(), S("div", Di, [o.value ? (O(), S("iframe", {
2583
2586
  key: 0,
2584
2587
  ref_key: "iframeRef",
2585
2588
  ref: f,
2586
2589
  srcdoc: d.value,
2587
2590
  sandbox: "allow-same-origin",
2588
- title: P(n).html.preview,
2591
+ title: N(n).html.preview,
2589
2592
  class: "tpl:block tpl:w-full tpl:border-0",
2590
2593
  style: u({ height: `${m.value}px` }),
2591
2594
  onLoad: v
2592
- }, null, 44, Ti)) : (O(), S("div", Ei, [w(P(Fr), {
2595
+ }, null, 44, Oi)) : (O(), S("div", ki, [w(N(Rr), {
2593
2596
  size: 24,
2594
2597
  class: "tpl:text-[var(--tpl-text-dim)]"
2595
- }), a.value ? (O(), S("span", Di, k(P(n).html.preview), 1)) : (O(), S("span", Oi, k(P(n).html.empty), 1))]))]));
2598
+ }), a.value ? (O(), S("span", Ai, k(N(n).html.preview), 1)) : (O(), S("span", ji, k(N(n).html.empty), 1))]))]));
2596
2599
  }
2597
- }), Ai = "image/";
2598
- function ji(e) {
2599
- let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || ee(r), { isOverDropZone: a } = Qe(t, {
2600
+ }), Ni = "image/";
2601
+ function Pi(e) {
2602
+ let { target: t, onFiles: n, enabled: r } = e, i = () => r === void 0 || te(r), { isOverDropZone: a } = $e(t, {
2600
2603
  preventDefaultForUnhandled: !0,
2601
2604
  onDrop: (e) => {
2602
2605
  if (!i()) return;
2603
- let t = (e ?? []).filter((e) => e.type.startsWith(Ai));
2606
+ let t = (e ?? []).filter((e) => e.type.startsWith(Ni));
2604
2607
  t.length > 0 && n([t[0]]);
2605
2608
  }
2606
2609
  });
2607
- return { isOver: F(() => i() && a.value) };
2610
+ return { isOver: P(() => i() && a.value) };
2608
2611
  }
2609
2612
  //#endregion
2610
2613
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2611
- var Mi = {
2614
+ var Fi = {
2612
2615
  key: 0,
2613
2616
  class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-xs tpl:font-medium tpl:border-[var(--tpl-primary)] tpl:text-[var(--tpl-primary)]",
2614
2617
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2615
- }, Ni = ["href"], Pi = ["src", "alt"], Fi = ["src", "alt"], Ii = {
2618
+ }, Ii = ["href"], Li = ["src", "alt"], Ri = ["src", "alt"], zi = {
2616
2619
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2617
2620
  style: { opacity: "0.7" }
2618
- }, Li = ["href"], Ri = ["src", "alt"], zi = ["src", "alt"], Bi = {
2621
+ }, Bi = ["href"], Vi = ["src", "alt"], Hi = ["src", "alt"], Ui = {
2619
2622
  key: 4,
2620
2623
  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)]"
2621
- }, Vi = ["aria-label"], Hi = { key: 1 }, Ui = /* @__PURE__ */ L({
2624
+ }, Wi = ["aria-label"], Gi = { key: 1 }, Ki = /* @__PURE__ */ I({
2622
2625
  __name: "ImageBlock",
2623
2626
  props: {
2624
2627
  block: {},
@@ -2626,7 +2629,7 @@ var Mi = {
2626
2629
  },
2627
2630
  emits: ["update"],
2628
2631
  setup(e, { emit: t }) {
2629
- let n = e, r = t, { t: i } = Vt(), { syntax: a } = rn(), o = p(Dt, null), s = F(() => !!o), c = an();
2632
+ let n = e, r = t, { t: i } = Wt(), { syntax: a } = sn(), o = p(pt, null), s = P(() => !!o), c = cn();
2630
2633
  async function l() {
2631
2634
  let e = await o?.({ accept: ["images"] });
2632
2635
  if (c.alive && e) {
@@ -2634,7 +2637,7 @@ var Mi = {
2634
2637
  e.alt && (t.alt = e.alt), r("update", t);
2635
2638
  }
2636
2639
  }
2637
- let d = _(), f = _(!1), m = F(() => s.value && !f.value && !b.value);
2640
+ let d = _(), f = _(!1), m = P(() => s.value && !f.value && !b.value);
2638
2641
  async function h(e) {
2639
2642
  if (o) {
2640
2643
  f.value = !0;
@@ -2653,11 +2656,11 @@ var Mi = {
2653
2656
  }
2654
2657
  }
2655
2658
  }
2656
- let { isOver: g } = ji({
2659
+ let { isOver: g } = Pi({
2657
2660
  target: d,
2658
2661
  enabled: m,
2659
2662
  onFiles: h
2660
- }), v = F(() => ({ textAlign: n.block.align })), y = F(() => {
2663
+ }), v = P(() => ({ textAlign: n.block.align })), y = P(() => {
2661
2664
  let e = n.block.align;
2662
2665
  return {
2663
2666
  maxWidth: "100%",
@@ -2668,86 +2671,86 @@ var Mi = {
2668
2671
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2669
2672
  marginRight: e === "center" ? "auto" : void 0
2670
2673
  };
2671
- }), b = F(() => Me(n.block.src, a)), C = Pn(() => b.value ? void 0 : n.block.src), E = Pn(() => b.value ? n.block.placeholderUrl : void 0);
2674
+ }), b = P(() => Ne(n.block.src, a)), C = Ln(() => b.value ? void 0 : n.block.src), E = Ln(() => b.value ? n.block.placeholderUrl : void 0);
2672
2675
  return (t, n) => (O(), S("div", {
2673
2676
  ref_key: "dropZoneRef",
2674
2677
  ref: d,
2675
2678
  "data-testid": "image-drop-zone",
2676
2679
  class: "tpl:relative tpl:w-full",
2677
2680
  style: u(v.value)
2678
- }, [m.value && (P(g) || f.value) ? (O(), S("div", Mi, [f.value ? (O(), S(N, { key: 0 }, [w(P(Yt), {
2681
+ }, [m.value && (N(g) || f.value) ? (O(), S("div", Fi, [f.value ? (O(), S(M, { key: 0 }, [w(N(Qt), {
2679
2682
  class: "tpl-spinner",
2680
2683
  size: 20,
2681
2684
  "stroke-width": 2
2682
- }), T(" " + k(P(i).image.uploading), 1)], 64)) : (O(), S(N, { key: 1 }, [w(P($t), {
2685
+ }), T(" " + k(N(i).image.uploading), 1)], 64)) : (O(), S(M, { key: 1 }, [w(N(nn), {
2683
2686
  size: 20,
2684
2687
  "stroke-width": 1.5
2685
- }), T(" " + k(P(i).image.dropToUpload), 1)], 64))])) : I("", !0), e.block.src && b.value && e.block.placeholderUrl ? (O(), S(N, { key: 1 }, [e.block.linkUrl ? (O(), S("a", {
2688
+ }), T(" " + k(N(i).image.dropToUpload), 1)], 64))])) : F("", !0), e.block.src && b.value && e.block.placeholderUrl ? (O(), S(M, { key: 1 }, [e.block.linkUrl ? (O(), S("a", {
2686
2689
  key: 0,
2687
2690
  href: e.block.linkUrl,
2688
2691
  target: "_blank",
2689
2692
  rel: "noopener noreferrer",
2690
- onClick: n[0] ||= R(() => {}, ["prevent"])
2693
+ onClick: n[0] ||= L(() => {}, ["prevent"])
2691
2694
  }, [x("img", {
2692
2695
  class: "tpl:border-0",
2693
2696
  loading: "lazy",
2694
- src: P(E),
2695
- alt: e.block.alt || P(i).image.altTextPlaceholder,
2697
+ src: N(E),
2698
+ alt: e.block.alt || N(i).image.altTextPlaceholder,
2696
2699
  style: u(y.value)
2697
- }, null, 12, Pi)], 8, Ni)) : (O(), S("img", {
2700
+ }, null, 12, Li)], 8, Ii)) : (O(), S("img", {
2698
2701
  key: 1,
2699
2702
  class: "tpl:border-0",
2700
- src: P(E),
2703
+ src: N(E),
2701
2704
  alt: e.block.alt,
2702
2705
  style: u(y.value)
2703
- }, null, 12, Fi))], 64)) : e.block.src && b.value ? (O(), S("div", {
2706
+ }, null, 12, Ri))], 64)) : e.block.src && b.value ? (O(), S("div", {
2704
2707
  key: 2,
2705
2708
  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)]",
2706
2709
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
2707
- }, [w(P(Br), {
2710
+ }, [w(N(Ur), {
2708
2711
  size: 32,
2709
2712
  "stroke-width": 1.5,
2710
2713
  class: "tpl:text-[var(--tpl-primary)]",
2711
2714
  style: { opacity: "0.5" }
2712
- }), x("span", Ii, [w(Ar, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (O(), S(N, { key: 3 }, [e.block.linkUrl ? (O(), S("a", {
2715
+ }), x("span", zi, [w(Nr, { text: e.block.src }, null, 8, ["text"])])], 4)) : e.block.src ? (O(), S(M, { key: 3 }, [e.block.linkUrl ? (O(), S("a", {
2713
2716
  key: 0,
2714
2717
  href: e.block.linkUrl,
2715
2718
  target: "_blank",
2716
2719
  rel: "noopener noreferrer",
2717
- onClick: n[1] ||= R(() => {}, ["prevent"])
2720
+ onClick: n[1] ||= L(() => {}, ["prevent"])
2718
2721
  }, [x("img", {
2719
2722
  class: "tpl:border-0",
2720
2723
  loading: "lazy",
2721
- src: P(C),
2722
- alt: e.block.alt || P(i).image.altTextPlaceholder,
2724
+ src: N(C),
2725
+ alt: e.block.alt || N(i).image.altTextPlaceholder,
2723
2726
  style: u(y.value)
2724
- }, null, 12, Ri)], 8, Li)) : (O(), S("img", {
2727
+ }, null, 12, Vi)], 8, Bi)) : (O(), S("img", {
2725
2728
  key: 1,
2726
2729
  class: "tpl:border-0",
2727
- src: P(C),
2730
+ src: N(C),
2728
2731
  alt: e.block.alt,
2729
2732
  style: u(y.value)
2730
- }, null, 12, zi))], 64)) : (O(), S("div", Bi, [s.value ? (O(), S("button", {
2733
+ }, null, 12, Hi))], 64)) : (O(), S("div", Ui, [s.value ? (O(), S("button", {
2731
2734
  key: 0,
2732
- "aria-label": P(i).image.browseMedia,
2735
+ "aria-label": N(i).image.browseMedia,
2733
2736
  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:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
2734
- onClick: R(l, ["stop"])
2735
- }, [w(P(Br), {
2737
+ onClick: L(l, ["stop"])
2738
+ }, [w(N(Ur), {
2736
2739
  size: 14,
2737
2740
  "stroke-width": 1.5
2738
- }), T(" " + k(P(i).image.browseMedia), 1)], 8, Vi)) : (O(), S("span", Hi, k(P(i).image.clickToAdd), 1))]))], 4));
2741
+ }), T(" " + k(N(i).image.browseMedia), 1)], 8, Wi)) : (O(), S("span", Gi, k(N(i).image.clickToAdd), 1))]))], 4));
2739
2742
  }
2740
- }), Wi = { class: "tpl:w-full" }, Gi = ["href"], Ki = {
2743
+ }), qi = { class: "tpl:w-full" }, Ji = ["href"], Yi = {
2741
2744
  key: 1,
2742
2745
  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)]"
2743
- }, qi = /* @__PURE__ */ L({
2746
+ }, Xi = /* @__PURE__ */ I({
2744
2747
  __name: "MenuBlock",
2745
2748
  props: {
2746
2749
  block: {},
2747
2750
  viewport: {}
2748
2751
  },
2749
2752
  setup(e) {
2750
- let t = e, { t: n } = Vt(), r = F(() => ({
2753
+ let t = e, { t: n } = Wt(), r = P(() => ({
2751
2754
  display: "flex",
2752
2755
  flexWrap: "wrap",
2753
2756
  gap: `0 ${t.block.spacing}px`,
@@ -2755,14 +2758,14 @@ var Mi = {
2755
2758
  fontSize: `${t.block.fontSize}px`,
2756
2759
  fontFamily: t.block.fontFamily || "inherit",
2757
2760
  alignItems: "center"
2758
- })), i = F(() => t.block.items.length > 0);
2761
+ })), i = P(() => t.block.items.length > 0);
2759
2762
  function a(e) {
2760
2763
  return e || t.block.linkColor || t.block.color;
2761
2764
  }
2762
- return (t, o) => (O(), S("div", Wi, [i.value ? (O(), S("div", {
2765
+ return (t, o) => (O(), S("div", qi, [i.value ? (O(), S("div", {
2763
2766
  key: 0,
2764
2767
  style: u(r.value)
2765
- }, [(O(!0), S(N, null, D(e.block.items, (t, n) => (O(), S(N, { key: t.id }, [x("a", {
2768
+ }, [(O(!0), S(M, null, D(e.block.items, (t, n) => (O(), S(M, { key: t.id }, [x("a", {
2766
2769
  href: t.url || "#",
2767
2770
  class: "tpl:cursor-default tpl:no-underline",
2768
2771
  style: u({
@@ -2770,16 +2773,16 @@ var Mi = {
2770
2773
  fontWeight: t.bold ? "bold" : "normal",
2771
2774
  textDecoration: t.underline ? "underline" : "none"
2772
2775
  }),
2773
- onClick: o[0] ||= R(() => {}, ["prevent"])
2774
- }, [w(Ar, { text: t.text || "..." }, null, 8, ["text"])], 12, Gi), n < e.block.items.length - 1 ? (O(), S("span", {
2776
+ onClick: o[0] ||= L(() => {}, ["prevent"])
2777
+ }, [w(Nr, { text: t.text || "..." }, null, 8, ["text"])], 12, Ji), n < e.block.items.length - 1 ? (O(), S("span", {
2775
2778
  key: 0,
2776
2779
  style: u({
2777
2780
  color: e.block.separatorColor,
2778
2781
  padding: `0 ${e.block.spacing}px`
2779
2782
  })
2780
- }, k(e.block.separator), 5)) : I("", !0)], 64))), 128))], 4)) : (O(), S("div", Ki, [w(P(Vr), { size: 16 }), x("span", null, k(P(n).menu.addLinks), 1)]))]));
2783
+ }, k(e.block.separator), 5)) : F("", !0)], 64))), 128))], 4)) : (O(), S("div", Yi, [w(N(Wr), { size: 16 }), x("span", null, k(N(n).menu.addLinks), 1)]))]));
2781
2784
  }
2782
- }), Ji = /* @__PURE__ */ new Set([
2785
+ }), Zi = /* @__PURE__ */ new Set([
2783
2786
  "http",
2784
2787
  "https",
2785
2788
  "mailto",
@@ -2789,7 +2792,7 @@ var Mi = {
2789
2792
  "sms",
2790
2793
  "xmpp",
2791
2794
  "cid"
2792
- ]), Yi = /* @__PURE__ */ new Set([
2795
+ ]), Qi = /* @__PURE__ */ new Set([
2793
2796
  "SCRIPT",
2794
2797
  "STYLE",
2795
2798
  "IFRAME",
@@ -2799,7 +2802,7 @@ var Mi = {
2799
2802
  "META",
2800
2803
  "BASE",
2801
2804
  "FORM"
2802
- ]), Xi = /* @__PURE__ */ new Set([
2805
+ ]), $i = /* @__PURE__ */ new Set([
2803
2806
  "href",
2804
2807
  "xlink:href",
2805
2808
  "formaction",
@@ -2808,16 +2811,16 @@ var Mi = {
2808
2811
  "background",
2809
2812
  "poster"
2810
2813
  ]);
2811
- function Zi(e, t) {
2814
+ function ea(e, t) {
2812
2815
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2813
2816
  if (!n || n.startsWith("#")) return !0;
2814
2817
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2815
2818
  if (!r) return !0;
2816
2819
  let i = r[1].toLowerCase();
2817
- return Ji.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2820
+ return Zi.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
2818
2821
  }
2819
- function Qi(e) {
2820
- if (Yi.has(e.tagName)) {
2822
+ function ta(e) {
2823
+ if (Qi.has(e.tagName)) {
2821
2824
  e.remove();
2822
2825
  return;
2823
2826
  }
@@ -2829,29 +2832,29 @@ function Qi(e) {
2829
2832
  e.removeAttribute(n);
2830
2833
  continue;
2831
2834
  }
2832
- if (Xi.has(t)) {
2833
- Zi(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2835
+ if ($i.has(t)) {
2836
+ ea(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2834
2837
  continue;
2835
2838
  }
2836
2839
  if (t === "src") {
2837
- Zi(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2840
+ ea(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2838
2841
  continue;
2839
2842
  }
2840
2843
  t === "srcdoc" && e.removeAttribute(n);
2841
2844
  }
2842
2845
  let n = Array.from(e.children);
2843
- for (let e of n) Qi(e);
2846
+ for (let e of n) ta(e);
2844
2847
  }
2845
- function $i(e) {
2848
+ function na(e) {
2846
2849
  if (typeof DOMParser > "u") return e;
2847
2850
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2848
- for (let e of n) Qi(e);
2851
+ for (let e of n) ta(e);
2849
2852
  return t.innerHTML;
2850
2853
  }
2851
2854
  //#endregion
2852
2855
  //#region src/composables/useEditableTextBlock.ts
2853
- function ea(e) {
2854
- let t = p(ht, []), n = p(ot, null), { syntax: r } = rn(), i = F(() => n?.value ? de(e(), t) : Ge(e(), t)), a = F(() => $i(ve(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = $e(s), { toLocal: u } = qt(), d = F(() => u({
2856
+ function ra(e) {
2857
+ let t = p(it, []), n = p(It, null), { syntax: r } = sn(), i = P(() => n?.value ? fe(e(), t) : Ke(e(), t)), a = P(() => na(ye(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = et(s), { toLocal: u } = Xt(), d = P(() => u({
2855
2858
  top: c.value - 8,
2856
2859
  left: l.value
2857
2860
  }));
@@ -2872,24 +2875,24 @@ function ea(e) {
2872
2875
  }
2873
2876
  //#endregion
2874
2877
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
2875
- var ta = ["innerHTML"], na = /* @__PURE__ */ L({
2878
+ var ia = ["innerHTML"], aa = /* @__PURE__ */ I({
2876
2879
  __name: "ParagraphBlock",
2877
2880
  props: {
2878
2881
  block: {},
2879
2882
  viewport: {}
2880
2883
  },
2881
2884
  setup(e) {
2882
- let t = e, n = y(() => import("./ParagraphEditor-Dr-u72hu.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ea(() => t.block.content);
2885
+ let t = e, n = y(() => import("./ParagraphEditor-C87tkmtE.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content);
2883
2886
  return (t, l) => (O(), S("div", {
2884
2887
  ref_key: "blockRef",
2885
2888
  ref: i,
2886
2889
  class: "tpl:min-h-[1em] tpl:w-full",
2887
- onDblclick: l[0] ||= (...e) => P(s) && P(s)(...e)
2888
- }, [P(r) ? (O(), A(P(n), {
2890
+ onDblclick: l[0] ||= (...e) => N(s) && N(s)(...e)
2891
+ }, [N(r) ? (O(), A(N(n), {
2889
2892
  key: 0,
2890
2893
  block: e.block,
2891
- "toolbar-position": P(a),
2892
- onDone: P(c)
2894
+ "toolbar-position": N(a),
2895
+ onDone: N(c)
2893
2896
  }, null, 8, [
2894
2897
  "block",
2895
2898
  "toolbar-position",
@@ -2897,55 +2900,55 @@ var ta = ["innerHTML"], na = /* @__PURE__ */ L({
2897
2900
  ])) : (O(), S("div", {
2898
2901
  key: 1,
2899
2902
  class: "tpl-text-content tpl:outline-none",
2900
- innerHTML: P(o)
2901
- }, null, 8, ta))], 544));
2903
+ innerHTML: N(o)
2904
+ }, null, 8, ia))], 544));
2902
2905
  }
2903
2906
  });
2904
2907
  //#endregion
2905
2908
  //#region src/utils/blockComponentResolver.ts
2906
- function ra(e) {
2909
+ function oa(e) {
2907
2910
  let t = { fontFamily: e.fontFamily };
2908
2911
  return e.textColor && (t.color = e.textColor), e.linkColor && (t["--tpl-doc-link-color"] = e.linkColor), e.linkUnderline && (t["--tpl-doc-link-underline"] = "underline"), t;
2909
2912
  }
2910
- function ia(e, t, n) {
2913
+ function sa(e, t, n) {
2911
2914
  if (t) {
2912
2915
  let n = t.getComponent(e);
2913
2916
  if (n) return n;
2914
2917
  }
2915
2918
  return n[e.type] ?? null;
2916
2919
  }
2917
- function aa(e) {
2920
+ function ca(e) {
2918
2921
  let { padding: t, backgroundColor: n } = e.styles, r = {
2919
2922
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
2920
2923
  backgroundColor: n || "transparent"
2921
2924
  };
2922
- return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? Ae.paragraphGap : Ae.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2925
+ return (e.type === "paragraph" || e.type === "title") && (r["--tpl-doc-paragraph-spacing"] = `${e.type === "paragraph" ? e.paragraphSpacing ?? je.paragraphGap : je.paragraphGap}px`), e.type === "section" && e.borderRadius && e.borderRadius > 0 && (r.borderRadius = `${e.borderRadius}px`), r;
2923
2926
  }
2924
- function oa(e) {
2927
+ function la(e) {
2925
2928
  if (e.type !== "section" || !e.wrapper) return null;
2926
2929
  let t = e.wrapper, n = {};
2927
2930
  return t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.padding && (n.padding = `${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`), t.borderRadius && t.borderRadius > 0 && (n.borderRadius = `${t.borderRadius}px`), n;
2928
2931
  }
2929
2932
  //#endregion
2930
2933
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
2931
- var sa = [
2934
+ var ua = [
2932
2935
  "data-block-id",
2933
2936
  "data-block-type",
2934
2937
  "data-tpl-picked"
2935
- ], ca = ["aria-label"], la = [
2938
+ ], da = ["aria-label"], fa = [
2936
2939
  "aria-label",
2937
2940
  "aria-pressed",
2938
2941
  "title"
2939
- ], ua = ["aria-label", "title"], da = ["aria-label", "title"], fa = ["aria-label", "title"], pa = {
2942
+ ], pa = ["aria-label", "title"], ma = ["aria-label", "title"], ha = ["aria-label", "title"], ga = {
2940
2943
  key: 1,
2941
2944
  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"
2942
- }, ma = { 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-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, ha = {
2945
+ }, _a = { 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-chrome-bg-elevated)] tpl:text-[var(--tpl-chrome-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, va = {
2943
2946
  key: 2,
2944
2947
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2945
- }, ga = ["aria-label", "title"], _a = {
2948
+ }, ya = ["aria-label", "title"], ba = {
2946
2949
  key: 3,
2947
2950
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
2948
- }, va = ["aria-label"], ya = /*#__PURE__*/ tn(/* @__PURE__ */ L({
2951
+ }, xa = ["aria-label"], Sa = /*#__PURE__*/ an(/* @__PURE__ */ I({
2949
2952
  __name: "BlockWrapper",
2950
2953
  props: {
2951
2954
  block: {},
@@ -2957,7 +2960,7 @@ var sa = [
2957
2960
  },
2958
2961
  emits: ["select"],
2959
2962
  setup(e, { emit: t }) {
2960
- let n = y(() => import("./BlockIssueBadge-BI6v_eol.js")), i = e, a = t, { t: o, format: s } = Vt(), l = p(Rt, null), d = _(null), f = F(() => l?.liftedBlockId.value === i.block.id), h = F(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
2963
+ let n = y(() => import("./BlockIssueBadge-DcyHTAqw.js")), i = e, a = t, { t: o, format: s } = Wt(), l = p(Ht, null), d = _(null), f = P(() => l?.liftedBlockId.value === i.block.id), h = P(() => f.value ? s(o.blockActions.dragLifted, { block: i.block.type }) : o.blockActions.drag);
2961
2964
  async function g() {
2962
2965
  await m(), d.value?.focus();
2963
2966
  }
@@ -2980,26 +2983,26 @@ var sa = [
2980
2983
  }
2981
2984
  }
2982
2985
  }
2983
- let b = F(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), C = F(() => i.previewMode === !0 && b.value), E = F(() => i.viewport ? {
2986
+ let b = P(() => !i.viewport || !i.block.visibility ? !1 : i.block.visibility[i.viewport] === !1), C = P(() => i.previewMode === !0 && b.value), E = P(() => i.viewport ? {
2984
2987
  desktop: o.viewport.desktop,
2985
2988
  mobile: o.viewport.mobile
2986
- }[i.viewport] ?? i.viewport : ""), D = F(() => !!i.block.displayCondition), A = p(bt, null), j = p(Ct, null), M = p(St, {}), N = F(() => M.savedBlocks?.isPicking.value === !0), ee = F(() => !i.nested && M.savedBlocks?.isAvailable.value === !0 && M.savedBlocks?.canCreate.value === !0), L = F(() => i.isSelected && !N.value), te = F(() => M.comments?.getBlockCount(i.block.id) ?? 0), ne = F(() => aa(i.block)), re = F(() => oa(i.block));
2987
- function ie(e) {
2989
+ }[i.viewport] ?? i.viewport : ""), D = P(() => !!i.block.displayCondition), A = p(Ct, null), ee = p(Et, null), j = p(Tt, {}), M = P(() => j.savedBlocks?.isPicking.value === !0), te = P(() => !i.nested && j.savedBlocks?.isAvailable.value === !0 && j.savedBlocks?.canCreate.value === !0), I = P(() => i.isSelected && !M.value), ne = P(() => j.comments?.getBlockCount(i.block.id) ?? 0), re = P(() => ca(i.block)), ie = P(() => la(i.block));
2990
+ function ae(e) {
2988
2991
  i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
2989
2992
  }
2990
- function ae() {
2991
- A?.deleteBlock(i.block.id);
2992
- }
2993
2993
  function oe() {
2994
- A?.duplicateBlock(i.block);
2994
+ A?.deleteBlock(i.block.id);
2995
2995
  }
2996
2996
  function se() {
2997
- M.savedBlocks?.startPicking(i.block.id);
2997
+ A?.duplicateBlock(i.block);
2998
2998
  }
2999
2999
  function ce() {
3000
- j?.toggleBlock(i.block.id);
3000
+ j.savedBlocks?.startPicking(i.block.id);
3001
3001
  }
3002
- return (t, i) => C.value ? I("", !0) : (O(), S("div", {
3002
+ function le() {
3003
+ ee?.toggleBlock(i.block.id);
3004
+ }
3005
+ return (t, i) => C.value ? F("", !0) : (O(), S("div", {
3003
3006
  key: 0,
3004
3007
  class: r(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
3005
3008
  "tpl-block--selected": e.isSelected,
@@ -3010,13 +3013,13 @@ var sa = [
3010
3013
  "data-block-id": e.block.id,
3011
3014
  "data-block-type": e.block.type,
3012
3015
  "data-tpl-picked": e.picked || void 0,
3013
- onClick: ie
3016
+ onClick: ae
3014
3017
  }, [
3015
- w(P(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
3016
- L.value ? (O(), S("div", {
3018
+ w(N(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
3019
+ I.value ? (O(), S("div", {
3017
3020
  key: 0,
3018
3021
  role: "toolbar",
3019
- "aria-label": P(o).blockActions.drag,
3022
+ "aria-label": N(o).blockActions.drag,
3020
3023
  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-chrome-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
3021
3024
  }, [
3022
3025
  x("button", {
@@ -3026,111 +3029,111 @@ var sa = [
3026
3029
  "aria-label": h.value,
3027
3030
  "aria-pressed": f.value,
3028
3031
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
3029
- title: P(o).blockActions.drag,
3032
+ title: N(o).blockActions.drag,
3030
3033
  onKeydown: v
3031
- }, [w(P(zr), {
3034
+ }, [w(N(Hr), {
3032
3035
  size: 14,
3033
3036
  "stroke-width": 1.5
3034
- })], 40, la),
3037
+ })], 40, fa),
3035
3038
  x("button", {
3036
3039
  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",
3037
- "aria-label": P(o).blockActions.duplicate,
3038
- title: P(o).blockActions.duplicate,
3039
- onClick: R(oe, ["stop"])
3040
- }, [w(P(Ir), {
3040
+ "aria-label": N(o).blockActions.duplicate,
3041
+ title: N(o).blockActions.duplicate,
3042
+ onClick: L(se, ["stop"])
3043
+ }, [w(N(zr), {
3041
3044
  size: 14,
3042
3045
  "stroke-width": 1.5
3043
- })], 8, ua),
3044
- ee.value ? (O(), S("button", {
3046
+ })], 8, pa),
3047
+ te.value ? (O(), S("button", {
3045
3048
  key: 0,
3046
3049
  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",
3047
- "aria-label": P(o).blockActions.saveAsBlock,
3048
- title: P(o).blockActions.saveAsBlock,
3049
- onClick: R(se, ["stop"])
3050
- }, [w(P(Nr), {
3050
+ "aria-label": N(o).blockActions.saveAsBlock,
3051
+ title: N(o).blockActions.saveAsBlock,
3052
+ onClick: L(ce, ["stop"])
3053
+ }, [w(N(Ir), {
3051
3054
  size: 14,
3052
3055
  "stroke-width": 1.5
3053
- })], 8, da)) : I("", !0),
3056
+ })], 8, ma)) : F("", !0),
3054
3057
  x("button", {
3055
3058
  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",
3056
- "aria-label": P(o).blockActions.delete,
3057
- title: P(o).blockActions.delete,
3058
- onClick: R(ae, ["stop"])
3059
- }, [w(P(Zt), {
3059
+ "aria-label": N(o).blockActions.delete,
3060
+ title: N(o).blockActions.delete,
3061
+ onClick: L(oe, ["stop"])
3062
+ }, [w(N(en), {
3060
3063
  size: 14,
3061
3064
  "stroke-width": 1.5
3062
- })], 8, fa)
3063
- ], 8, ca)) : I("", !0),
3064
- b.value ? (O(), S("div", pa, [x("span", ma, [w(P(Lr), {
3065
+ })], 8, ha)
3066
+ ], 8, da)) : F("", !0),
3067
+ b.value ? (O(), S("div", ga, [x("span", _a, [w(N(Br), {
3065
3068
  size: 12,
3066
3069
  "stroke-width": 1.5
3067
- }), T(" " + k(P(s)(P(o).blockActions.hiddenOnViewport, { viewport: E.value })), 1)])])) : I("", !0),
3068
- D.value && !b.value ? (O(), S("div", ha, [x("button", {
3070
+ }), T(" " + k(N(s)(N(o).blockActions.hiddenOnViewport, { viewport: E.value })), 1)])])) : F("", !0),
3071
+ D.value && !b.value ? (O(), S("div", va, [x("button", {
3069
3072
  "data-testid": "condition-toggle",
3070
3073
  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:bg-[var(--tpl-chrome-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
3071
- "aria-label": P(o).blockActions.conditionToggle,
3074
+ "aria-label": N(o).blockActions.conditionToggle,
3072
3075
  title: e.block.displayCondition?.label,
3073
- onClick: R(ce, ["stop"])
3074
- }, [w(P(Rr), {
3076
+ onClick: L(le, ["stop"])
3077
+ }, [w(N(Vr), {
3075
3078
  size: 12,
3076
3079
  "stroke-width": 2
3077
- })], 8, ga)])) : I("", !0),
3078
- te.value > 0 && !b.value ? (O(), S("div", _a, [x("button", {
3080
+ })], 8, ya)])) : F("", !0),
3081
+ ne.value > 0 && !b.value ? (O(), S("div", ba, [x("button", {
3079
3082
  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:bg-[var(--tpl-chrome-primary-light)] tpl:text-[var(--tpl-primary)]",
3080
- "aria-label": P(s)(P(o).blockActions.comments, { count: String(te.value) }),
3081
- onClick: i[0] ||= R((t) => P(M).comments?.openForBlock(e.block.id), ["stop"])
3082
- }, [w(P(Xt), {
3083
+ "aria-label": N(s)(N(o).blockActions.comments, { count: String(ne.value) }),
3084
+ onClick: i[0] ||= L((t) => N(j).comments?.openForBlock(e.block.id), ["stop"])
3085
+ }, [w(N($t), {
3083
3086
  size: 12,
3084
3087
  "stroke-width": 2.5
3085
- }), T(" " + k(te.value), 1)], 8, va)])) : I("", !0),
3086
- re.value ? (O(), S("div", {
3088
+ }), T(" " + k(ne.value), 1)], 8, xa)])) : F("", !0),
3089
+ ie.value ? (O(), S("div", {
3087
3090
  key: 4,
3088
3091
  class: "tpl-section-wrapper",
3089
- style: u(re.value)
3092
+ style: u(ie.value)
3090
3093
  }, [x("div", {
3091
3094
  class: "tpl-block-content",
3092
- style: u(ne.value)
3095
+ style: u(re.value)
3093
3096
  }, [c(t.$slots, "default", {}, void 0, !0)], 4)], 4)) : (O(), S("div", {
3094
3097
  key: 5,
3095
3098
  class: "tpl-block-content",
3096
- style: u(ne.value)
3099
+ style: u(re.value)
3097
3100
  }, [c(t.$slots, "default", {}, void 0, !0)], 4))
3098
- ], 10, sa));
3101
+ ], 10, ua));
3099
3102
  }
3100
3103
  }), [["__scopeId", "data-v-2c239048"]]);
3101
3104
  //#endregion
3102
3105
  //#region src/utils/unwrapParagraph.ts
3103
- function ba(e) {
3106
+ function Ca(e) {
3104
3107
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
3105
3108
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
3106
3109
  }
3107
3110
  //#endregion
3108
3111
  //#region src/components/blocks/TitleBlock.vue
3109
- var xa = /* @__PURE__ */ L({
3112
+ var wa = /* @__PURE__ */ I({
3110
3113
  __name: "TitleBlock",
3111
3114
  props: {
3112
3115
  block: {},
3113
3116
  viewport: {}
3114
3117
  },
3115
3118
  setup(e) {
3116
- let t = e, n = y(() => import("./TitleEditor-_taBpBfB.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ea(() => t.block.content), l = F(() => {
3119
+ let t = e, n = y(() => import("./TitleEditor-iNFOisr4.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = ra(() => t.block.content), l = P(() => {
3117
3120
  let e = {
3118
- fontSize: `${Le[t.block.level]}px`,
3121
+ fontSize: `${Re[t.block.level]}px`,
3119
3122
  textAlign: t.block.textAlign
3120
3123
  };
3121
3124
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
3122
- }), f = F(() => `h${t.block.level}`), p = F(() => ba(o.value));
3125
+ }), f = P(() => `h${t.block.level}`), p = P(() => Ca(o.value));
3123
3126
  return (t, o) => (O(), S("div", {
3124
3127
  ref_key: "blockRef",
3125
3128
  ref: i,
3126
3129
  class: "tpl:min-h-[1em] tpl:w-full",
3127
3130
  style: u(l.value),
3128
- onDblclick: o[0] ||= (...e) => P(s) && P(s)(...e)
3129
- }, [P(r) ? (O(), A(P(n), {
3131
+ onDblclick: o[0] ||= (...e) => N(s) && N(s)(...e)
3132
+ }, [N(r) ? (O(), A(N(n), {
3130
3133
  key: 0,
3131
3134
  block: e.block,
3132
- "toolbar-position": P(a),
3133
- onDone: P(c)
3135
+ "toolbar-position": N(a),
3136
+ onDone: N(c)
3134
3137
  }, null, 8, [
3135
3138
  "block",
3136
3139
  "toolbar-position",
@@ -3145,88 +3148,88 @@ var xa = /* @__PURE__ */ L({
3145
3148
  });
3146
3149
  //#endregion
3147
3150
  //#region src/utils/sectionColumnDrop.ts
3148
- function Sa(e) {
3151
+ function Ta(e) {
3149
3152
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
3150
3153
  }
3151
3154
  //#endregion
3152
3155
  //#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
3153
- var Ca = Object.defineProperty, wa = Object.getOwnPropertySymbols, Ta = Object.prototype.hasOwnProperty, Ea = Object.prototype.propertyIsEnumerable, Da = (e, t, n) => t in e ? Ca(e, t, {
3156
+ var Ea = Object.defineProperty, Da = Object.getOwnPropertySymbols, Oa = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Aa = (e, t, n) => t in e ? Ea(e, t, {
3154
3157
  enumerable: !0,
3155
3158
  configurable: !0,
3156
3159
  writable: !0,
3157
3160
  value: n
3158
- }) : e[t] = n, Oa = (e, t) => {
3159
- for (var n in t ||= {}) Ta.call(t, n) && Da(e, n, t[n]);
3160
- if (wa) for (var n of wa(t)) Ea.call(t, n) && Da(e, n, t[n]);
3161
+ }) : e[t] = n, ja = (e, t) => {
3162
+ for (var n in t ||= {}) Oa.call(t, n) && Aa(e, n, t[n]);
3163
+ if (Da) for (var n of Da(t)) ka.call(t, n) && Aa(e, n, t[n]);
3161
3164
  return e;
3162
- }, ka = (e, t) => {
3165
+ }, Ma = (e, t) => {
3163
3166
  var n = {};
3164
- for (var r in e) Ta.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3165
- if (e != null && wa) for (var r of wa(e)) t.indexOf(r) < 0 && Ea.call(e, r) && (n[r] = e[r]);
3167
+ for (var r in e) Oa.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3168
+ if (e != null && Da) for (var r of Da(e)) t.indexOf(r) < 0 && ka.call(e, r) && (n[r] = e[r]);
3166
3169
  return n;
3167
- }, Aa = "[vue-draggable-plus]: ";
3168
- function ja(e) {
3169
- console.warn(Aa + e);
3170
+ }, Na = "[vue-draggable-plus]: ";
3171
+ function Pa(e) {
3172
+ console.warn(Na + e);
3170
3173
  }
3171
- function Ma(e) {
3172
- console.error(Aa + e);
3174
+ function Fa(e) {
3175
+ console.error(Na + e);
3173
3176
  }
3174
- function Na(e, t, n) {
3177
+ function Ia(e, t, n) {
3175
3178
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
3176
3179
  }
3177
- function Pa(e) {
3180
+ function La(e) {
3178
3181
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
3179
3182
  }
3180
- function Fa(e) {
3181
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[Pa(n)] = e[n]), t), {});
3183
+ function Ra(e) {
3184
+ return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[La(n)] = e[n]), t), {});
3182
3185
  }
3183
- function Ia(e, t) {
3186
+ function za(e, t) {
3184
3187
  return Array.isArray(e) && e.splice(t, 1), e;
3185
3188
  }
3186
- function La(e, t, n) {
3189
+ function Ba(e, t, n) {
3187
3190
  return Array.isArray(e) && e.splice(t, 0, n), e;
3188
3191
  }
3189
- function Ra(e) {
3192
+ function Va(e) {
3190
3193
  return e === void 0;
3191
3194
  }
3192
- function za(e) {
3195
+ function Ha(e) {
3193
3196
  return typeof e == "string";
3194
3197
  }
3195
- function Ba(e, t, n) {
3198
+ function Ua(e, t, n) {
3196
3199
  let r = e.children[n];
3197
3200
  e.insertBefore(t, r);
3198
3201
  }
3199
- function Va(e) {
3202
+ function Wa(e) {
3200
3203
  e.parentNode && e.parentNode.removeChild(e);
3201
3204
  }
3202
- function Ha(e, t = document) {
3205
+ function Ga(e, t = document) {
3203
3206
  let n = null;
3204
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || ja(`Element not found: ${e}`), n;
3207
+ return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Pa(`Element not found: ${e}`), n;
3205
3208
  }
3206
- function Ua(e, t, n = null) {
3209
+ function Ka(e, t, n = null) {
3207
3210
  return function(...r) {
3208
3211
  return e.apply(n, r), t.apply(n, r);
3209
3212
  };
3210
3213
  }
3211
- function Wa(e, t) {
3212
- let n = Oa({}, e);
3214
+ function qa(e, t) {
3215
+ let n = ja({}, e);
3213
3216
  return Object.keys(t).forEach((r) => {
3214
- n[r] ? n[r] = Ua(e[r], t[r]) : n[r] = t[r];
3217
+ n[r] ? n[r] = Ka(e[r], t[r]) : n[r] = t[r];
3215
3218
  }), n;
3216
3219
  }
3217
- function Ga(e) {
3220
+ function Ja(e) {
3218
3221
  return e instanceof HTMLElement;
3219
3222
  }
3220
- function Ka(e, t) {
3223
+ function Ya(e, t) {
3221
3224
  Object.keys(e).forEach((n) => {
3222
3225
  t(n, e[n]);
3223
3226
  });
3224
3227
  }
3225
- function qa(e) {
3228
+ function Xa(e) {
3226
3229
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
3227
3230
  }
3228
- var Ja = Object.assign;
3229
- function Ya(e, t) {
3231
+ var Za = Object.assign;
3232
+ function Qa(e, t) {
3230
3233
  var n = Object.keys(e);
3231
3234
  if (Object.getOwnPropertySymbols) {
3232
3235
  var r = Object.getOwnPropertySymbols(e);
@@ -3236,26 +3239,26 @@ function Ya(e, t) {
3236
3239
  }
3237
3240
  return n;
3238
3241
  }
3239
- function Xa(e) {
3242
+ function $a(e) {
3240
3243
  for (var t = 1; t < arguments.length; t++) {
3241
3244
  var n = arguments[t] == null ? {} : arguments[t];
3242
- t % 2 ? Ya(Object(n), !0).forEach(function(t) {
3243
- Qa(e, t, n[t]);
3244
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ya(Object(n)).forEach(function(t) {
3245
+ t % 2 ? Qa(Object(n), !0).forEach(function(t) {
3246
+ to(e, t, n[t]);
3247
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qa(Object(n)).forEach(function(t) {
3245
3248
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
3246
3249
  });
3247
3250
  }
3248
3251
  return e;
3249
3252
  }
3250
- function Za(e) {
3253
+ function eo(e) {
3251
3254
  "@babel/helpers - typeof";
3252
- return Za = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3255
+ return eo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3253
3256
  return typeof e;
3254
3257
  } : function(e) {
3255
3258
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3256
- }, Za(e);
3259
+ }, eo(e);
3257
3260
  }
3258
- function Qa(e, t, n) {
3261
+ function to(e, t, n) {
3259
3262
  return t in e ? Object.defineProperty(e, t, {
3260
3263
  value: n,
3261
3264
  enumerable: !0,
@@ -3263,44 +3266,44 @@ function Qa(e, t, n) {
3263
3266
  writable: !0
3264
3267
  }) : e[t] = n, e;
3265
3268
  }
3266
- function $a() {
3267
- return $a = Object.assign || function(e) {
3269
+ function no() {
3270
+ return no = Object.assign || function(e) {
3268
3271
  for (var t = 1; t < arguments.length; t++) {
3269
3272
  var n = arguments[t];
3270
3273
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3271
3274
  }
3272
3275
  return e;
3273
- }, $a.apply(this, arguments);
3276
+ }, no.apply(this, arguments);
3274
3277
  }
3275
- function eo(e, t) {
3278
+ function ro(e, t) {
3276
3279
  if (e == null) return {};
3277
3280
  for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
3278
3281
  return n;
3279
3282
  }
3280
- function to(e, t) {
3283
+ function io(e, t) {
3281
3284
  if (e == null) return {};
3282
- var n = eo(e, t), r, i;
3285
+ var n = ro(e, t), r, i;
3283
3286
  if (Object.getOwnPropertySymbols) {
3284
3287
  var a = Object.getOwnPropertySymbols(e);
3285
3288
  for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
3286
3289
  }
3287
3290
  return n;
3288
3291
  }
3289
- var no = "1.15.2";
3290
- function ro(e) {
3292
+ var ao = "1.15.2";
3293
+ function oo(e) {
3291
3294
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
3292
3295
  }
3293
- var io = ro(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ao = ro(/Edge/i), oo = ro(/firefox/i), so = ro(/safari/i) && !ro(/chrome/i) && !ro(/android/i), co = ro(/iP(ad|od|hone)/i), lo = ro(/chrome/i) && ro(/android/i), uo = {
3296
+ var so = oo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), co = oo(/Edge/i), lo = oo(/firefox/i), uo = oo(/safari/i) && !oo(/chrome/i) && !oo(/android/i), fo = oo(/iP(ad|od|hone)/i), po = oo(/chrome/i) && oo(/android/i), mo = {
3294
3297
  capture: !1,
3295
3298
  passive: !1
3296
3299
  };
3297
- function z(e, t, n) {
3298
- e.addEventListener(t, n, !io && uo);
3300
+ function R(e, t, n) {
3301
+ e.addEventListener(t, n, !so && mo);
3299
3302
  }
3300
- function B(e, t, n) {
3301
- e.removeEventListener(t, n, !io && uo);
3303
+ function z(e, t, n) {
3304
+ e.removeEventListener(t, n, !so && mo);
3302
3305
  }
3303
- function fo(e, t) {
3306
+ function ho(e, t) {
3304
3307
  if (t) {
3305
3308
  if (t[0] === ">" && (t = t.substring(1)), e) try {
3306
3309
  if (e.matches) return e.matches(t);
@@ -3312,22 +3315,22 @@ function fo(e, t) {
3312
3315
  return !1;
3313
3316
  }
3314
3317
  }
3315
- function po(e) {
3318
+ function go(e) {
3316
3319
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
3317
3320
  }
3318
- function mo(e, t, n, r) {
3321
+ function _o(e, t, n, r) {
3319
3322
  if (e) {
3320
3323
  n ||= document;
3321
3324
  do {
3322
- if (t != null && (t[0] === ">" ? e.parentNode === n && fo(e, t) : fo(e, t)) || r && e === n) return e;
3325
+ if (t != null && (t[0] === ">" ? e.parentNode === n && ho(e, t) : ho(e, t)) || r && e === n) return e;
3323
3326
  if (e === n) break;
3324
- } while (e = po(e));
3327
+ } while (e = go(e));
3325
3328
  }
3326
3329
  return null;
3327
3330
  }
3328
- var ho = /\s+/g;
3329
- function go(e, t, n) {
3330
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(ho, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(ho, " "));
3331
+ var vo = /\s+/g;
3332
+ function B(e, t, n) {
3333
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(vo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(vo, " "));
3331
3334
  }
3332
3335
  function V(e, t, n) {
3333
3336
  var r = e && e.style;
@@ -3336,7 +3339,7 @@ function V(e, t, n) {
3336
3339
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
3337
3340
  }
3338
3341
  }
3339
- function _o(e, t) {
3342
+ function yo(e, t) {
3340
3343
  var n = "";
3341
3344
  if (typeof e == "string") n = e;
3342
3345
  else do {
@@ -3346,7 +3349,7 @@ function _o(e, t) {
3346
3349
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
3347
3350
  return i && new i(n);
3348
3351
  }
3349
- function vo(e, t, n) {
3352
+ function bo(e, t, n) {
3350
3353
  if (e) {
3351
3354
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
3352
3355
  if (n) for (; i < a; i++) n(r[i], i);
@@ -3354,13 +3357,13 @@ function vo(e, t, n) {
3354
3357
  }
3355
3358
  return [];
3356
3359
  }
3357
- function yo() {
3360
+ function xo() {
3358
3361
  return document.scrollingElement || document.documentElement;
3359
3362
  }
3360
3363
  function H(e, t, n, r, i) {
3361
3364
  if (e.getBoundingClientRect || e === window) {
3362
3365
  var a, o, s, c, l, u, d;
3363
- if (e !== window && e.parentNode && e !== yo() ? (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, !io)) do
3366
+ if (e !== window && e.parentNode && e !== xo() ? (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, !so)) do
3364
3367
  if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
3365
3368
  var f = i.getBoundingClientRect();
3366
3369
  o -= f.top + parseInt(V(i, "border-top-width")), s -= f.left + parseInt(V(i, "border-left-width")), c = o + a.height, l = s + a.width;
@@ -3368,7 +3371,7 @@ function H(e, t, n, r, i) {
3368
3371
  }
3369
3372
  while (i = i.parentNode);
3370
3373
  if (r && e !== window) {
3371
- var p = _o(i || e), m = p && p.a, h = p && p.d;
3374
+ var p = yo(i || e), m = p && p.a, h = p && p.d;
3372
3375
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
3373
3376
  }
3374
3377
  return {
@@ -3381,18 +3384,18 @@ function H(e, t, n, r, i) {
3381
3384
  };
3382
3385
  }
3383
3386
  }
3384
- function bo(e, t, n) {
3385
- for (var r = Eo(e, !0), i = H(e)[t]; r;) {
3387
+ function So(e, t, n) {
3388
+ for (var r = Oo(e, !0), i = H(e)[t]; r;) {
3386
3389
  var a = H(r)[n], o = void 0;
3387
3390
  if (o = i >= a, !o) return r;
3388
- if (r === yo()) break;
3389
- r = Eo(r, !1);
3391
+ if (r === xo()) break;
3392
+ r = Oo(r, !1);
3390
3393
  }
3391
3394
  return !1;
3392
3395
  }
3393
- function xo(e, t, n, r) {
3396
+ function Co(e, t, n, r) {
3394
3397
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
3395
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && mo(o[a], n.draggable, e, !1)) {
3398
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && _o(o[a], n.draggable, e, !1)) {
3396
3399
  if (i === t) return o[a];
3397
3400
  i++;
3398
3401
  }
@@ -3400,84 +3403,84 @@ function xo(e, t, n, r) {
3400
3403
  }
3401
3404
  return null;
3402
3405
  }
3403
- function So(e, t) {
3404
- for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !fo(n, t));) n = n.previousElementSibling;
3406
+ function wo(e, t) {
3407
+ for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !ho(n, t));) n = n.previousElementSibling;
3405
3408
  return n || null;
3406
3409
  }
3407
- function Co(e, t) {
3410
+ function To(e, t) {
3408
3411
  var n = 0;
3409
3412
  if (!e || !e.parentNode) return -1;
3410
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || fo(e, t)) && n++;
3413
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ho(e, t)) && n++;
3411
3414
  return n;
3412
3415
  }
3413
- function wo(e) {
3414
- var t = 0, n = 0, r = yo();
3416
+ function Eo(e) {
3417
+ var t = 0, n = 0, r = xo();
3415
3418
  if (e) do {
3416
- var i = _o(e), a = i.a, o = i.d;
3419
+ var i = yo(e), a = i.a, o = i.d;
3417
3420
  t += e.scrollLeft * a, n += e.scrollTop * o;
3418
3421
  } while (e !== r && (e = e.parentNode));
3419
3422
  return [t, n];
3420
3423
  }
3421
- function To(e, t) {
3424
+ function Do(e, t) {
3422
3425
  for (var n in e) if (e.hasOwnProperty(n)) {
3423
3426
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
3424
3427
  }
3425
3428
  return -1;
3426
3429
  }
3427
- function Eo(e, t) {
3428
- if (!e || !e.getBoundingClientRect) return yo();
3430
+ function Oo(e, t) {
3431
+ if (!e || !e.getBoundingClientRect) return xo();
3429
3432
  var n = e, r = !1;
3430
3433
  do
3431
3434
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
3432
3435
  var i = V(n);
3433
3436
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
3434
- if (!n.getBoundingClientRect || n === document.body) return yo();
3437
+ if (!n.getBoundingClientRect || n === document.body) return xo();
3435
3438
  if (r || t) return n;
3436
3439
  r = !0;
3437
3440
  }
3438
3441
  }
3439
3442
  while (n = n.parentNode);
3440
- return yo();
3443
+ return xo();
3441
3444
  }
3442
- function Do(e, t) {
3445
+ function ko(e, t) {
3443
3446
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
3444
3447
  return e;
3445
3448
  }
3446
- function Oo(e, t) {
3449
+ function Ao(e, t) {
3447
3450
  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);
3448
3451
  }
3449
- var ko;
3450
- function Ao(e, t) {
3452
+ var jo;
3453
+ function Mo(e, t) {
3451
3454
  return function() {
3452
- if (!ko) {
3455
+ if (!jo) {
3453
3456
  var n = arguments, r = this;
3454
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), ko = setTimeout(function() {
3455
- ko = void 0;
3457
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), jo = setTimeout(function() {
3458
+ jo = void 0;
3456
3459
  }, t);
3457
3460
  }
3458
3461
  };
3459
3462
  }
3460
- function jo() {
3461
- clearTimeout(ko), ko = void 0;
3463
+ function No() {
3464
+ clearTimeout(jo), jo = void 0;
3462
3465
  }
3463
- function Mo(e, t, n) {
3466
+ function Po(e, t, n) {
3464
3467
  e.scrollLeft += t, e.scrollTop += n;
3465
3468
  }
3466
- function No(e) {
3469
+ function Fo(e) {
3467
3470
  var t = window.Polymer, n = window.jQuery || window.Zepto;
3468
3471
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
3469
3472
  }
3470
- function Po(e, t, n) {
3473
+ function Io(e, t, n) {
3471
3474
  var r = {};
3472
3475
  return Array.from(e.children).forEach(function(i) {
3473
- if (mo(i, t.draggable, e, !1) && !i.animated && i !== n) {
3476
+ if (_o(i, t.draggable, e, !1) && !i.animated && i !== n) {
3474
3477
  var a = H(i);
3475
3478
  r.left = Math.min(r.left ?? 1 / 0, a.left), r.top = Math.min(r.top ?? 1 / 0, a.top), r.right = Math.max(r.right ?? -1 / 0, a.right), r.bottom = Math.max(r.bottom ?? -1 / 0, a.bottom);
3476
3479
  }
3477
3480
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
3478
3481
  }
3479
- var Fo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3480
- function Io() {
3482
+ var Lo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3483
+ function Ro() {
3481
3484
  var e = [], t;
3482
3485
  return {
3483
3486
  captureAnimationState: function() {
@@ -3487,9 +3490,9 @@ function Io() {
3487
3490
  target: t,
3488
3491
  rect: H(t)
3489
3492
  });
3490
- var n = Xa({}, e[e.length - 1].rect);
3493
+ var n = $a({}, e[e.length - 1].rect);
3491
3494
  if (t.thisAnimationDuration) {
3492
- var r = _o(t, !0);
3495
+ var r = yo(t, !0);
3493
3496
  r && (n.top -= r.f, n.left -= r.e);
3494
3497
  }
3495
3498
  t.fromRect = n;
@@ -3500,7 +3503,7 @@ function Io() {
3500
3503
  e.push(t);
3501
3504
  },
3502
3505
  removeAnimationState: function(t) {
3503
- e.splice(To(e, { target: t }), 1);
3506
+ e.splice(Do(e, { target: t }), 1);
3504
3507
  },
3505
3508
  animateAll: function(n) {
3506
3509
  var r = this;
@@ -3510,8 +3513,8 @@ function Io() {
3510
3513
  }
3511
3514
  var i = !1, a = 0;
3512
3515
  e.forEach(function(e) {
3513
- var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = _o(n, !0);
3514
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Oo(c, s) && !Oo(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Ro(u, c, l, r.options)), Oo(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() {
3516
+ var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = yo(n, !0);
3517
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ao(c, s) && !Ao(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Bo(u, c, l, r.options)), Ao(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() {
3515
3518
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
3516
3519
  }, t), n.thisAnimationDuration = t);
3517
3520
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -3521,26 +3524,26 @@ function Io() {
3521
3524
  animate: function(e, t, n, r) {
3522
3525
  if (r) {
3523
3526
  V(e, "transition", ""), V(e, "transform", "");
3524
- var i = _o(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3525
- e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Lo(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3527
+ var i = yo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3528
+ e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = zo(e), V(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
3526
3529
  V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3527
3530
  }, r);
3528
3531
  }
3529
3532
  }
3530
3533
  };
3531
3534
  }
3532
- function Lo(e) {
3535
+ function zo(e) {
3533
3536
  return e.offsetWidth;
3534
3537
  }
3535
- function Ro(e, t, n, r) {
3538
+ function Bo(e, t, n, r) {
3536
3539
  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;
3537
3540
  }
3538
- var zo = [], Bo = { initializeByDefault: !0 }, Vo = {
3541
+ var Vo = [], Ho = { initializeByDefault: !0 }, Uo = {
3539
3542
  mount: function(e) {
3540
- for (var t in Bo) Bo.hasOwnProperty(t) && !(t in e) && (e[t] = Bo[t]);
3541
- zo.forEach(function(t) {
3543
+ for (var t in Ho) Ho.hasOwnProperty(t) && !(t in e) && (e[t] = Ho[t]);
3544
+ Vo.forEach(function(t) {
3542
3545
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3543
- }), zo.push(e);
3546
+ }), Vo.push(e);
3544
3547
  },
3545
3548
  pluginEvent: function(e, t, n) {
3546
3549
  var r = this;
@@ -3548,16 +3551,16 @@ var zo = [], Bo = { initializeByDefault: !0 }, Vo = {
3548
3551
  r.eventCanceled = !0;
3549
3552
  };
3550
3553
  var i = e + "Global";
3551
- zo.forEach(function(r) {
3552
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Xa({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Xa({ sortable: t }, n)));
3554
+ Vo.forEach(function(r) {
3555
+ t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i]($a({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e]($a({ sortable: t }, n)));
3553
3556
  });
3554
3557
  },
3555
3558
  initializePlugins: function(e, t, n, r) {
3556
- for (var i in zo.forEach(function(r) {
3559
+ for (var i in Vo.forEach(function(r) {
3557
3560
  var i = r.pluginName;
3558
3561
  if (e.options[i] || r.initializeByDefault) {
3559
3562
  var a = new r(e, t, e.options);
3560
- a.sortable = e, a.options = e.options, e[i] = a, $a(n, a.defaults);
3563
+ a.sortable = e, a.options = e.options, e[i] = a, no(n, a.defaults);
3561
3564
  }
3562
3565
  }), e.options) if (e.options.hasOwnProperty(i)) {
3563
3566
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3566,56 +3569,56 @@ var zo = [], Bo = { initializeByDefault: !0 }, Vo = {
3566
3569
  },
3567
3570
  getEventProperties: function(e, t) {
3568
3571
  var n = {};
3569
- return zo.forEach(function(r) {
3570
- typeof r.eventProperties == "function" && $a(n, r.eventProperties.call(t[r.pluginName], e));
3572
+ return Vo.forEach(function(r) {
3573
+ typeof r.eventProperties == "function" && no(n, r.eventProperties.call(t[r.pluginName], e));
3571
3574
  }), n;
3572
3575
  },
3573
3576
  modifyOption: function(e, t, n) {
3574
3577
  var r;
3575
- return zo.forEach(function(i) {
3578
+ return Vo.forEach(function(i) {
3576
3579
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3577
3580
  }), r;
3578
3581
  }
3579
3582
  };
3580
- function Ho(e) {
3583
+ function Wo(e) {
3581
3584
  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;
3582
- if (t ||= n && n[Fo], t) {
3585
+ if (t ||= n && n[Lo], t) {
3583
3586
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3584
- window.CustomEvent && !io && !ao ? h = new CustomEvent(r, {
3587
+ window.CustomEvent && !so && !co ? h = new CustomEvent(r, {
3585
3588
  bubbles: !0,
3586
3589
  cancelable: !0
3587
3590
  }) : (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;
3588
- var v = Xa(Xa({}, m), Vo.getEventProperties(r, t));
3591
+ var v = $a($a({}, m), Uo.getEventProperties(r, t));
3589
3592
  for (var y in v) h[y] = v[y];
3590
3593
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3591
3594
  }
3592
3595
  }
3593
- var Uo = ["evt"], U = function(e, t) {
3594
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = to(n, Uo);
3595
- Vo.pluginEvent.bind(Q)(e, t, Xa({
3596
+ var Go = ["evt"], U = function(e, t) {
3597
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = io(n, Go);
3598
+ Uo.pluginEvent.bind(Q)(e, t, $a({
3596
3599
  dragEl: G,
3597
3600
  parentEl: K,
3598
3601
  ghostEl: q,
3599
3602
  rootEl: J,
3600
- nextEl: Wo,
3601
- lastDownEl: Go,
3603
+ nextEl: Ko,
3604
+ lastDownEl: qo,
3602
3605
  cloneEl: Y,
3603
- cloneHidden: Ko,
3604
- dragStarted: ss,
3606
+ cloneHidden: Jo,
3607
+ dragStarted: ls,
3605
3608
  putSortable: X,
3606
3609
  activeSortable: Q.active,
3607
3610
  originalEvent: r,
3608
- oldIndex: qo,
3609
- oldDraggableIndex: Yo,
3610
- newIndex: Jo,
3611
- newDraggableIndex: Xo,
3612
- hideGhostForTarget: Ts,
3613
- unhideGhostForTarget: Es,
3611
+ oldIndex: Yo,
3612
+ oldDraggableIndex: Zo,
3613
+ newIndex: Xo,
3614
+ newDraggableIndex: Qo,
3615
+ hideGhostForTarget: Ds,
3616
+ unhideGhostForTarget: Os,
3614
3617
  cloneNowHidden: function() {
3615
- Ko = !0;
3618
+ Jo = !0;
3616
3619
  },
3617
3620
  cloneNowShown: function() {
3618
- Ko = !1;
3621
+ Jo = !1;
3619
3622
  },
3620
3623
  dispatchSortableEvent: function(e) {
3621
3624
  W({
@@ -3627,45 +3630,45 @@ var Uo = ["evt"], U = function(e, t) {
3627
3630
  }, i));
3628
3631
  };
3629
3632
  function W(e) {
3630
- Ho(Xa({
3633
+ Wo($a({
3631
3634
  putSortable: X,
3632
3635
  cloneEl: Y,
3633
3636
  targetEl: G,
3634
3637
  rootEl: J,
3635
- oldIndex: qo,
3636
- oldDraggableIndex: Yo,
3637
- newIndex: Jo,
3638
- newDraggableIndex: Xo
3638
+ oldIndex: Yo,
3639
+ oldDraggableIndex: Zo,
3640
+ newIndex: Xo,
3641
+ newDraggableIndex: Qo
3639
3642
  }, e));
3640
3643
  }
3641
- var G, K, q, J, Wo, Go, Y, Ko, qo, Jo, Yo, Xo, Zo, X, Qo = !1, $o = !1, es = [], ts, ns, rs, is, as, os, ss, cs, ls, us = !1, ds = !1, fs, Z, ps = [], ms = !1, hs = [], gs = typeof document < "u", _s = co, vs = ao || io ? "cssFloat" : "float", ys = gs && !lo && !co && "draggable" in document.createElement("div"), bs = function() {
3642
- if (gs) {
3643
- if (io) return !1;
3644
+ var G, K, q, J, Ko, qo, Y, Jo, Yo, Xo, Zo, Qo, $o, X, es = !1, ts = !1, ns = [], rs, is, as, os, ss, cs, ls, us, ds, fs = !1, ps = !1, ms, Z, hs = [], gs = !1, _s = [], vs = typeof document < "u", ys = fo, bs = co || so ? "cssFloat" : "float", xs = vs && !po && !fo && "draggable" in document.createElement("div"), Ss = function() {
3645
+ if (vs) {
3646
+ if (so) return !1;
3644
3647
  var e = document.createElement("x");
3645
3648
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3646
3649
  }
3647
- }(), xs = function(e, t) {
3648
- var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = xo(e, 0, t), a = xo(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3650
+ }(), Cs = function(e, t) {
3651
+ var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Co(e, 0, t), a = Co(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
3649
3652
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3650
3653
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3651
3654
  if (i && o.float && o.float !== "none") {
3652
3655
  var u = o.float === "left" ? "left" : "right";
3653
3656
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3654
3657
  }
3655
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[vs] === "none" || a && n[vs] === "none" && c + l > r) ? "vertical" : "horizontal";
3656
- }, Ss = function(e, t, n) {
3658
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[bs] === "none" || a && n[bs] === "none" && c + l > r) ? "vertical" : "horizontal";
3659
+ }, ws = function(e, t, n) {
3657
3660
  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;
3658
3661
  return r === o || i === s || r + a / 2 === o + c / 2;
3659
- }, Cs = function(e, t) {
3662
+ }, Ts = function(e, t) {
3660
3663
  var n;
3661
- return es.some(function(r) {
3662
- var i = r[Fo].options.emptyInsertThreshold;
3663
- if (i && !So(r)) {
3664
+ return ns.some(function(r) {
3665
+ var i = r[Lo].options.emptyInsertThreshold;
3666
+ if (i && !wo(r)) {
3664
3667
  var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3665
3668
  if (o && s) return n = r;
3666
3669
  }
3667
3670
  }), n;
3668
- }, ws = function(e) {
3671
+ }, Es = function(e) {
3669
3672
  function t(e, n) {
3670
3673
  return function(r, i, a, o) {
3671
3674
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3678,31 +3681,31 @@ var G, K, q, J, Wo, Go, Y, Ko, qo, Jo, Yo, Xo, Zo, X, Qo = !1, $o = !1, es = [],
3678
3681
  };
3679
3682
  }
3680
3683
  var n = {}, r = e.group;
3681
- (!r || Za(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;
3682
- }, Ts = function() {
3683
- !bs && q && V(q, "display", "none");
3684
- }, Es = function() {
3685
- !bs && q && V(q, "display", "");
3684
+ (!r || eo(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;
3685
+ }, Ds = function() {
3686
+ !Ss && q && V(q, "display", "none");
3687
+ }, Os = function() {
3688
+ !Ss && q && V(q, "display", "");
3686
3689
  };
3687
- gs && !lo && document.addEventListener("click", function(e) {
3688
- if ($o) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), $o = !1, !1;
3690
+ vs && !po && document.addEventListener("click", function(e) {
3691
+ if (ts) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), ts = !1, !1;
3689
3692
  }, !0);
3690
- var Ds = function(e) {
3693
+ var ks = function(e) {
3691
3694
  if (G) {
3692
3695
  e = e.touches ? e.touches[0] : e;
3693
- var t = Cs(e.clientX, e.clientY);
3696
+ var t = Ts(e.clientX, e.clientY);
3694
3697
  if (t) {
3695
3698
  var n = {};
3696
3699
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3697
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Fo]._onDragOver(n);
3700
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Lo]._onDragOver(n);
3698
3701
  }
3699
3702
  }
3700
- }, Os = function(e) {
3701
- G && G.parentNode[Fo]._isOutsideThisEl(e.target);
3703
+ }, As = function(e) {
3704
+ G && G.parentNode[Lo]._isOutsideThisEl(e.target);
3702
3705
  };
3703
3706
  function Q(e, t) {
3704
3707
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3705
- this.el = e, this.options = t = $a({}, t), e[Fo] = this;
3708
+ this.el = e, this.options = t = no({}, t), e[Lo] = this;
3706
3709
  var n = {
3707
3710
  group: null,
3708
3711
  sort: !0,
@@ -3715,7 +3718,7 @@ function Q(e, t) {
3715
3718
  invertedSwapThreshold: null,
3716
3719
  removeCloneOnHide: !0,
3717
3720
  direction: function() {
3718
- return xs(e, this.options);
3721
+ return Cs(e, this.options);
3719
3722
  },
3720
3723
  ghostClass: "sortable-ghost",
3721
3724
  chosenClass: "sortable-chosen",
@@ -3742,17 +3745,17 @@ function Q(e, t) {
3742
3745
  x: 0,
3743
3746
  y: 0
3744
3747
  },
3745
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !so,
3748
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !uo,
3746
3749
  emptyInsertThreshold: 5
3747
3750
  };
3748
- for (var r in Vo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3749
- for (var i in ws(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3750
- this.nativeDraggable = !t.forceFallback && ys, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), es.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), $a(this, Io());
3751
+ for (var r in Uo.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3752
+ for (var i in Es(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3753
+ this.nativeDraggable = !t.forceFallback && xs, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? R(e, "pointerdown", this._onTapStart) : (R(e, "mousedown", this._onTapStart), R(e, "touchstart", this._onTapStart)), this.nativeDraggable && (R(e, "dragover", this), R(e, "dragenter", this)), ns.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), no(this, Ro());
3751
3754
  }
3752
3755
  Q.prototype = {
3753
3756
  constructor: Q,
3754
3757
  _isOutsideThisEl: function(e) {
3755
- !this.el.contains(e) && e !== this.el && (cs = null);
3758
+ !this.el.contains(e) && e !== this.el && (us = null);
3756
3759
  },
3757
3760
  _getDirection: function(e, t) {
3758
3761
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3760,8 +3763,8 @@ Q.prototype = {
3760
3763
  _onTapStart: function(e) {
3761
3764
  if (e.cancelable) {
3762
3765
  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;
3763
- if (Rs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && so && s && s.tagName.toUpperCase() === "SELECT") && (s = mo(s, r.draggable, n, !1), !(s && s.animated) && Go !== s)) {
3764
- if (qo = Co(s), Yo = Co(s, r.draggable), typeof l == "function") {
3766
+ if (Bs(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && uo && s && s.tagName.toUpperCase() === "SELECT") && (s = _o(s, r.draggable, n, !1), !(s && s.animated) && qo !== s)) {
3767
+ if (Yo = To(s), Zo = To(s, r.draggable), typeof l == "function") {
3765
3768
  if (l.call(this, e, s, this)) {
3766
3769
  W({
3767
3770
  sortable: t,
@@ -3774,7 +3777,7 @@ Q.prototype = {
3774
3777
  return;
3775
3778
  }
3776
3779
  } else if (l && (l = l.split(",").some(function(r) {
3777
- if (r = mo(c, r.trim(), n, !1), r) return W({
3780
+ if (r = _o(c, r.trim(), n, !1), r) return W({
3778
3781
  sortable: t,
3779
3782
  rootEl: r,
3780
3783
  name: "filter",
@@ -3786,7 +3789,7 @@ Q.prototype = {
3786
3789
  i && e.cancelable && e.preventDefault();
3787
3790
  return;
3788
3791
  }
3789
- r.handle && !mo(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3792
+ r.handle && !_o(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3790
3793
  }
3791
3794
  }
3792
3795
  },
@@ -3794,28 +3797,28 @@ Q.prototype = {
3794
3797
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3795
3798
  if (n && !G && n.parentNode === i) {
3796
3799
  var c = H(n);
3797
- if (J = i, G = n, K = G.parentNode, Wo = G.nextSibling, Go = n, Zo = a.group, Q.dragged = G, ts = {
3800
+ if (J = i, G = n, K = G.parentNode, Ko = G.nextSibling, qo = n, $o = a.group, Q.dragged = G, rs = {
3798
3801
  target: G,
3799
3802
  clientX: (t || e).clientX,
3800
3803
  clientY: (t || e).clientY
3801
- }, as = ts.clientX - c.left, os = ts.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3804
+ }, ss = rs.clientX - c.left, cs = rs.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
3802
3805
  if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3803
3806
  r._onDrop();
3804
3807
  return;
3805
3808
  }
3806
- r._disableDelayedDragEvents(), !oo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3809
+ r._disableDelayedDragEvents(), !lo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3807
3810
  sortable: r,
3808
3811
  name: "choose",
3809
3812
  originalEvent: e
3810
- }), go(G, a.chosenClass, !0);
3813
+ }), B(G, a.chosenClass, !0);
3811
3814
  }, a.ignore.split(",").forEach(function(e) {
3812
- vo(G, e.trim(), js);
3813
- }), z(o, "dragover", Ds), z(o, "mousemove", Ds), z(o, "touchmove", Ds), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), oo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ao || io))) {
3815
+ bo(G, e.trim(), Ns);
3816
+ }), R(o, "dragover", ks), R(o, "mousemove", ks), R(o, "touchmove", ks), R(o, "mouseup", r._onDrop), R(o, "touchend", r._onDrop), R(o, "touchcancel", r._onDrop), lo && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(co || so))) {
3814
3817
  if (Q.eventCanceled) {
3815
3818
  this._onDrop();
3816
3819
  return;
3817
3820
  }
3818
- z(o, "mouseup", r._disableDelayedDrag), z(o, "touchend", r._disableDelayedDrag), z(o, "touchcancel", r._disableDelayedDrag), z(o, "mousemove", r._delayedDragTouchMoveHandler), z(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && z(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3821
+ R(o, "mouseup", r._disableDelayedDrag), R(o, "touchend", r._disableDelayedDrag), R(o, "touchcancel", r._disableDelayedDrag), R(o, "mousemove", r._delayedDragTouchMoveHandler), R(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && R(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
3819
3822
  } else s();
3820
3823
  }
3821
3824
  },
@@ -3824,25 +3827,25 @@ Q.prototype = {
3824
3827
  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();
3825
3828
  },
3826
3829
  _disableDelayedDrag: function() {
3827
- G && js(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3830
+ G && Ns(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3828
3831
  },
3829
3832
  _disableDelayedDragEvents: function() {
3830
3833
  var e = this.el.ownerDocument;
3831
- B(e, "mouseup", this._disableDelayedDrag), B(e, "touchend", this._disableDelayedDrag), B(e, "touchcancel", this._disableDelayedDrag), B(e, "mousemove", this._delayedDragTouchMoveHandler), B(e, "touchmove", this._delayedDragTouchMoveHandler), B(e, "pointermove", this._delayedDragTouchMoveHandler);
3834
+ z(e, "mouseup", this._disableDelayedDrag), z(e, "touchend", this._disableDelayedDrag), z(e, "touchcancel", this._disableDelayedDrag), z(e, "mousemove", this._delayedDragTouchMoveHandler), z(e, "touchmove", this._delayedDragTouchMoveHandler), z(e, "pointermove", this._delayedDragTouchMoveHandler);
3832
3835
  },
3833
3836
  _triggerDragStart: function(e, t) {
3834
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : t ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(G, "dragend", this), z(J, "dragstart", this._onDragStart));
3837
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? R(document, "pointermove", this._onTouchMove) : t ? R(document, "touchmove", this._onTouchMove) : R(document, "mousemove", this._onTouchMove) : (R(G, "dragend", this), R(J, "dragstart", this._onDragStart));
3835
3838
  try {
3836
- document.selection ? zs(function() {
3839
+ document.selection ? Vs(function() {
3837
3840
  document.selection.empty();
3838
3841
  }) : window.getSelection().removeAllRanges();
3839
3842
  } catch {}
3840
3843
  },
3841
3844
  _dragStarted: function(e, t) {
3842
- if (Qo = !1, J && G) {
3843
- U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Os);
3845
+ if (es = !1, J && G) {
3846
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", As);
3844
3847
  var n = this.options;
3845
- !e && go(G, n.dragClass, !1), go(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3848
+ !e && B(G, n.dragClass, !1), B(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), W({
3846
3849
  sortable: this,
3847
3850
  name: "start",
3848
3851
  originalEvent: t
@@ -3850,33 +3853,33 @@ Q.prototype = {
3850
3853
  } else this._nulling();
3851
3854
  },
3852
3855
  _emulateDragOver: function() {
3853
- if (ns) {
3854
- this._lastX = ns.clientX, this._lastY = ns.clientY, Ts();
3855
- for (var e = document.elementFromPoint(ns.clientX, ns.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ns.clientX, ns.clientY), e !== t);) t = e;
3856
- if (G.parentNode[Fo]._isOutsideThisEl(e), t) do {
3857
- if (t[Fo]) {
3856
+ if (is) {
3857
+ this._lastX = is.clientX, this._lastY = is.clientY, Ds();
3858
+ for (var e = document.elementFromPoint(is.clientX, is.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(is.clientX, is.clientY), e !== t);) t = e;
3859
+ if (G.parentNode[Lo]._isOutsideThisEl(e), t) do {
3860
+ if (t[Lo]) {
3858
3861
  var n = void 0;
3859
- if (n = t[Fo]._onDragOver({
3860
- clientX: ns.clientX,
3861
- clientY: ns.clientY,
3862
+ if (n = t[Lo]._onDragOver({
3863
+ clientX: is.clientX,
3864
+ clientY: is.clientY,
3862
3865
  target: e,
3863
3866
  rootEl: t
3864
3867
  }), n && !this.options.dragoverBubble) break;
3865
3868
  }
3866
3869
  e = t;
3867
3870
  } while (t = t.parentNode);
3868
- Es();
3871
+ Os();
3869
3872
  }
3870
3873
  },
3871
3874
  _onTouchMove: function(e) {
3872
- if (ts) {
3873
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && _o(q, !0), o = q && a && a.a, s = q && a && a.d, c = _s && Z && wo(Z), l = (i.clientX - ts.clientX + r.x) / (o || 1) + (c ? c[0] - ps[0] : 0) / (o || 1), u = (i.clientY - ts.clientY + r.y) / (s || 1) + (c ? c[1] - ps[1] : 0) / (s || 1);
3874
- if (!Q.active && !Qo) {
3875
+ if (rs) {
3876
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && yo(q, !0), o = q && a && a.a, s = q && a && a.d, c = ys && Z && Eo(Z), l = (i.clientX - rs.clientX + r.x) / (o || 1) + (c ? c[0] - hs[0] : 0) / (o || 1), u = (i.clientY - rs.clientY + r.y) / (s || 1) + (c ? c[1] - hs[1] : 0) / (s || 1);
3877
+ if (!Q.active && !es) {
3875
3878
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3876
3879
  this._onDragStart(e, !0);
3877
3880
  }
3878
3881
  if (q) {
3879
- a ? (a.e += l - (rs || 0), a.f += u - (is || 0)) : a = {
3882
+ a ? (a.e += l - (as || 0), a.f += u - (os || 0)) : a = {
3880
3883
  a: 1,
3881
3884
  b: 0,
3882
3885
  c: 0,
@@ -3885,19 +3888,19 @@ Q.prototype = {
3885
3888
  f: u
3886
3889
  };
3887
3890
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3888
- V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), rs = l, is = u, ns = i;
3891
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), as = l, os = u, is = i;
3889
3892
  }
3890
3893
  e.cancelable && e.preventDefault();
3891
3894
  }
3892
3895
  },
3893
3896
  _appendGhost: function() {
3894
3897
  if (!q) {
3895
- var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, _s, !0, e), n = this.options;
3896
- if (_s) {
3898
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, ys, !0, e), n = this.options;
3899
+ if (ys) {
3897
3900
  for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3898
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = yo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = yo(), ps = wo(Z);
3901
+ Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = xo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = xo(), hs = Eo(Z);
3899
3902
  }
3900
- q = G.cloneNode(!0), go(q, n.ghostClass, !1), go(q, n.fallbackClass, !0), go(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", _s ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", as / parseInt(q.style.width) * 100 + "% " + os / parseInt(q.style.height) * 100 + "%");
3903
+ q = G.cloneNode(!0), B(q, n.ghostClass, !1), B(q, n.fallbackClass, !0), B(q, n.dragClass, !0), V(q, "transition", ""), V(q, "transform", ""), V(q, "box-sizing", "border-box"), V(q, "margin", 0), V(q, "top", t.top), V(q, "left", t.left), V(q, "width", t.width), V(q, "height", t.height), V(q, "opacity", "0.8"), V(q, "position", ys ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", ss / parseInt(q.style.width) * 100 + "% " + cs / parseInt(q.style.height) * 100 + "%");
3901
3904
  }
3902
3905
  },
3903
3906
  _onDragStart: function(e, t) {
@@ -3906,18 +3909,18 @@ Q.prototype = {
3906
3909
  this._onDrop();
3907
3910
  return;
3908
3911
  }
3909
- U("setupClone", this), Q.eventCanceled || (Y = No(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), go(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = zs(function() {
3912
+ U("setupClone", this), Q.eventCanceled || (Y = Fo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), B(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Vs(function() {
3910
3913
  U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
3911
3914
  sortable: n,
3912
3915
  name: "clone"
3913
3916
  }));
3914
- }), !t && go(G, i.dragClass, !0), t ? ($o = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (B(document, "mouseup", n._onDrop), B(document, "touchend", n._onDrop), B(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), z(document, "drop", n), V(G, "transform", "translateZ(0)")), Qo = !0, n._dragStartId = zs(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), ss = !0, so && V(document.body, "user-select", "none");
3917
+ }), !t && B(G, i.dragClass, !0), t ? (ts = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (z(document, "mouseup", n._onDrop), z(document, "touchend", n._onDrop), z(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), R(document, "drop", n), V(G, "transform", "translateZ(0)")), es = !0, n._dragStartId = Vs(n._dragStarted.bind(n, t, e)), R(document, "selectstart", n), ls = !0, uo && V(document.body, "user-select", "none");
3915
3918
  },
3916
3919
  _onDragOver: function(e) {
3917
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Zo === s, u = o.sort, d = X || c, f, p = this, m = !1;
3918
- if (ms) return;
3920
+ var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = $o === s, u = o.sort, d = X || c, f, p = this, m = !1;
3921
+ if (gs) return;
3919
3922
  function h(o, s) {
3920
- U(o, p, Xa({
3923
+ U(o, p, $a({
3921
3924
  evt: e,
3922
3925
  isOwner: l,
3923
3926
  axis: f ? "vertical" : "horizontal",
@@ -3929,7 +3932,7 @@ Q.prototype = {
3929
3932
  target: n,
3930
3933
  completed: _,
3931
3934
  onMove: function(n, i) {
3932
- return As(J, t, G, r, n, H(n), e, i);
3935
+ return Ms(J, t, G, r, n, H(n), e, i);
3933
3936
  },
3934
3937
  changed: v
3935
3938
  }, s));
@@ -3938,50 +3941,50 @@ Q.prototype = {
3938
3941
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3939
3942
  }
3940
3943
  function _(r) {
3941
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (go(G, X ? X.options.ghostClass : c.options.ghostClass, !1), go(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3944
+ return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (B(G, X ? X.options.ghostClass : c.options.ghostClass, !1), B(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
3942
3945
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3943
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (cs = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Fo]._isOutsideThisEl(e.target), !r && Ds(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3946
+ }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (us = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Lo]._isOutsideThisEl(e.target), !r && ks(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
3944
3947
  }
3945
3948
  function v() {
3946
- Jo = Co(G), Xo = Co(G, o.draggable), W({
3949
+ Xo = To(G), Qo = To(G, o.draggable), W({
3947
3950
  sortable: p,
3948
3951
  name: "change",
3949
3952
  toEl: t,
3950
- newIndex: Jo,
3951
- newDraggableIndex: Xo,
3953
+ newIndex: Xo,
3954
+ newDraggableIndex: Qo,
3952
3955
  originalEvent: e
3953
3956
  });
3954
3957
  }
3955
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = mo(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3958
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = _o(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
3956
3959
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3957
- if ($o = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Zo.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3960
+ if (ts = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = $o.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
3958
3961
  if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
3959
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Wo ? J.insertBefore(G, Wo) : J.appendChild(G)), _(!0);
3960
- var y = So(t, o.draggable);
3961
- if (!y || Ps(e, f, this) && !y.animated) {
3962
+ if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Ko ? J.insertBefore(G, Ko) : J.appendChild(G)), _(!0);
3963
+ var y = wo(t, o.draggable);
3964
+ if (!y || Is(e, f, this) && !y.animated) {
3962
3965
  if (y === G) return _(!1);
3963
- if (y && t === e.target && (n = y), n && (i = H(n)), As(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3964
- } else if (y && Ns(e, f, this)) {
3965
- var b = xo(t, 0, o, !0);
3966
+ if (y && t === e.target && (n = y), n && (i = H(n)), Ms(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
3967
+ } else if (y && Fs(e, f, this)) {
3968
+ var b = Co(t, 0, o, !0);
3966
3969
  if (b === G) return _(!1);
3967
- if (n = b, i = H(n), As(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3970
+ if (n = b, i = H(n), Ms(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
3968
3971
  } else if (n.parentNode === t) {
3969
3972
  i = H(n);
3970
- var x = 0, S, C = G.parentNode !== t, w = !Ss(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = bo(n, "top", "top") || bo(G, "top", "top"), D = E ? E.scrollTop : void 0;
3971
- cs !== n && (S = i[T], us = !1, ds = !w && o.invertSwap || C), x = Fs(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ds, cs === n);
3973
+ var x = 0, S, C = G.parentNode !== t, w = !ws(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = So(n, "top", "top") || So(G, "top", "top"), D = E ? E.scrollTop : void 0;
3974
+ us !== n && (S = i[T], fs = !1, ps = !w && o.invertSwap || C), x = Ls(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ps, us === n);
3972
3975
  var O;
3973
3976
  if (x !== 0) {
3974
- var k = Co(G);
3977
+ var k = To(G);
3975
3978
  do
3976
3979
  k -= x, O = K.children[k];
3977
3980
  while (O && (V(O, "display") === "none" || O === q));
3978
3981
  }
3979
3982
  if (x === 0 || O === n) return _(!1);
3980
- cs = n, ls = x;
3981
- var A = n.nextElementSibling, j = !1;
3982
- j = x === 1;
3983
- var M = As(J, t, G, r, n, i, e, j);
3984
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), ms = !0, setTimeout(Ms, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Mo(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !ds && (fs = Math.abs(S - H(n)[T])), v(), _(!0);
3983
+ us = n, ds = x;
3984
+ var A = n.nextElementSibling, ee = !1;
3985
+ ee = x === 1;
3986
+ var j = Ms(J, t, G, r, n, i, e, ee);
3987
+ if (j !== !1) return (j === 1 || j === -1) && (ee = j === 1), gs = !0, setTimeout(Ps, 30), g(), ee && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, ee ? A : n), E && Po(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !ps && (ms = Math.abs(S - H(n)[T])), v(), _(!0);
3985
3988
  }
3986
3989
  if (t.contains(G)) return _(!1);
3987
3990
  }
@@ -3989,26 +3992,26 @@ Q.prototype = {
3989
3992
  },
3990
3993
  _ignoreWhileAnimating: null,
3991
3994
  _offMoveEvents: function() {
3992
- B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Ds), B(document, "mousemove", Ds), B(document, "touchmove", Ds);
3995
+ z(document, "mousemove", this._onTouchMove), z(document, "touchmove", this._onTouchMove), z(document, "pointermove", this._onTouchMove), z(document, "dragover", ks), z(document, "mousemove", ks), z(document, "touchmove", ks);
3993
3996
  },
3994
3997
  _offUpEvents: function() {
3995
3998
  var e = this.el.ownerDocument;
3996
- B(e, "mouseup", this._onDrop), B(e, "touchend", this._onDrop), B(e, "pointerup", this._onDrop), B(e, "touchcancel", this._onDrop), B(document, "selectstart", this);
3999
+ z(e, "mouseup", this._onDrop), z(e, "touchend", this._onDrop), z(e, "pointerup", this._onDrop), z(e, "touchcancel", this._onDrop), z(document, "selectstart", this);
3997
4000
  },
3998
4001
  _onDrop: function(e) {
3999
4002
  var t = this.el, n = this.options;
4000
- if (Jo = Co(G), Xo = Co(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Jo = Co(G), Xo = Co(G, n.draggable), Q.eventCanceled) {
4003
+ if (Xo = To(G), Qo = To(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Xo = To(G), Qo = To(G, n.draggable), Q.eventCanceled) {
4001
4004
  this._nulling();
4002
4005
  return;
4003
4006
  }
4004
- Qo = !1, ds = !1, us = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Bs(this.cloneId), Bs(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), so && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ss && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && B(G, "dragend", this), js(G), G.style["will-change"] = "", ss && !Qo && go(G, X ? X.options.ghostClass : this.options.ghostClass, !1), go(G, this.options.chosenClass, !1), W({
4007
+ es = !1, ps = !1, fs = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Hs(this.cloneId), Hs(this._dragStartId), this.nativeDraggable && (z(document, "drop", this), z(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), uo && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ls && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && z(G, "dragend", this), Ns(G), G.style["will-change"] = "", ls && !es && B(G, X ? X.options.ghostClass : this.options.ghostClass, !1), B(G, this.options.chosenClass, !1), W({
4005
4008
  sortable: this,
4006
4009
  name: "unchoose",
4007
4010
  toEl: K,
4008
4011
  newIndex: null,
4009
4012
  newDraggableIndex: null,
4010
4013
  originalEvent: e
4011
- }), J === K ? Jo !== qo && Jo >= 0 && (W({
4014
+ }), J === K ? Xo !== Yo && Xo >= 0 && (W({
4012
4015
  sortable: this,
4013
4016
  name: "update",
4014
4017
  toEl: K,
@@ -4018,7 +4021,7 @@ Q.prototype = {
4018
4021
  name: "sort",
4019
4022
  toEl: K,
4020
4023
  originalEvent: e
4021
- })) : (Jo >= 0 && (W({
4024
+ })) : (Xo >= 0 && (W({
4022
4025
  rootEl: K,
4023
4026
  name: "add",
4024
4027
  toEl: K,
@@ -4040,7 +4043,7 @@ Q.prototype = {
4040
4043
  name: "sort",
4041
4044
  toEl: K,
4042
4045
  originalEvent: e
4043
- })), X && X.save()), Q.active && ((Jo == null || Jo === -1) && (Jo = qo, Xo = Yo), W({
4046
+ })), X && X.save()), Q.active && ((Xo == null || Xo === -1) && (Xo = Yo, Qo = Zo), W({
4044
4047
  sortable: this,
4045
4048
  name: "end",
4046
4049
  toEl: K,
@@ -4048,9 +4051,9 @@ Q.prototype = {
4048
4051
  }), this.save()))), this._nulling();
4049
4052
  },
4050
4053
  _nulling: function() {
4051
- U("nulling", this), J = G = K = q = Wo = Y = Go = Ko = ts = ns = ss = Jo = Xo = qo = Yo = cs = ls = X = Zo = Q.dragged = Q.ghost = Q.clone = Q.active = null, hs.forEach(function(e) {
4054
+ U("nulling", this), J = G = K = q = Ko = Y = qo = Jo = rs = is = ls = Xo = Qo = Yo = Zo = us = ds = X = $o = Q.dragged = Q.ghost = Q.clone = Q.active = null, _s.forEach(function(e) {
4052
4055
  e.checked = !0;
4053
- }), hs.length = rs = is = 0;
4056
+ }), _s.length = as = os = 0;
4054
4057
  },
4055
4058
  handleEvent: function(e) {
4056
4059
  switch (e.type) {
@@ -4060,20 +4063,20 @@ Q.prototype = {
4060
4063
  break;
4061
4064
  case "dragenter":
4062
4065
  case "dragover":
4063
- G && (this._onDragOver(e), ks(e));
4066
+ G && (this._onDragOver(e), js(e));
4064
4067
  break;
4065
4068
  case "selectstart": e.preventDefault();
4066
4069
  }
4067
4070
  },
4068
4071
  toArray: function() {
4069
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], mo(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ls(t));
4072
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], _o(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || zs(t));
4070
4073
  return e;
4071
4074
  },
4072
4075
  sort: function(e, t) {
4073
4076
  var n = {}, r = this.el;
4074
4077
  this.toArray().forEach(function(e, t) {
4075
4078
  var i = r.children[t];
4076
- mo(i, this.options.draggable, r, !1) && (n[e] = i);
4079
+ _o(i, this.options.draggable, r, !1) && (n[e] = i);
4077
4080
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
4078
4081
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
4079
4082
  }), t && this.animateAll();
@@ -4083,25 +4086,25 @@ Q.prototype = {
4083
4086
  e && e.set && e.set(this);
4084
4087
  },
4085
4088
  closest: function(e, t) {
4086
- return mo(e, t || this.options.draggable, this.el, !1);
4089
+ return _o(e, t || this.options.draggable, this.el, !1);
4087
4090
  },
4088
4091
  option: function(e, t) {
4089
4092
  var n = this.options;
4090
4093
  if (t === void 0) return n[e];
4091
- var r = Vo.modifyOption(this, e, t);
4092
- n[e] = r === void 0 ? t : r, e === "group" && ws(n);
4094
+ var r = Uo.modifyOption(this, e, t);
4095
+ n[e] = r === void 0 ? t : r, e === "group" && Es(n);
4093
4096
  },
4094
4097
  destroy: function() {
4095
4098
  U("destroy", this);
4096
4099
  var e = this.el;
4097
- e[Fo] = null, B(e, "mousedown", this._onTapStart), B(e, "touchstart", this._onTapStart), B(e, "pointerdown", this._onTapStart), this.nativeDraggable && (B(e, "dragover", this), B(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4100
+ e[Lo] = null, z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart), z(e, "pointerdown", this._onTapStart), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
4098
4101
  e.removeAttribute("draggable");
4099
- }), this._onDrop(), this._disableDelayedDragEvents(), es.splice(es.indexOf(this.el), 1), this.el = e = null;
4102
+ }), this._onDrop(), this._disableDelayedDragEvents(), ns.splice(ns.indexOf(this.el), 1), this.el = e = null;
4100
4103
  },
4101
4104
  _hideClone: function() {
4102
- if (!Ko) {
4105
+ if (!Jo) {
4103
4106
  if (U("hideClone", this), Q.eventCanceled) return;
4104
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Ko = !0;
4107
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Jo = !0;
4105
4108
  }
4106
4109
  },
4107
4110
  _showClone: function(e) {
@@ -4109,99 +4112,99 @@ Q.prototype = {
4109
4112
  this._hideClone();
4110
4113
  return;
4111
4114
  }
4112
- if (Ko) {
4115
+ if (Jo) {
4113
4116
  if (U("showClone", this), Q.eventCanceled) return;
4114
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Wo ? J.insertBefore(Y, Wo) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), Ko = !1;
4117
+ G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Ko ? J.insertBefore(Y, Ko) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), Jo = !1;
4115
4118
  }
4116
4119
  }
4117
4120
  };
4118
- function ks(e) {
4121
+ function js(e) {
4119
4122
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
4120
4123
  }
4121
- function As(e, t, n, r, i, a, o, s) {
4122
- var c, l = e[Fo], u = l.options.onMove, d;
4123
- return window.CustomEvent && !io && !ao ? c = new CustomEvent("move", {
4124
+ function Ms(e, t, n, r, i, a, o, s) {
4125
+ var c, l = e[Lo], u = l.options.onMove, d;
4126
+ return window.CustomEvent && !so && !co ? c = new CustomEvent("move", {
4124
4127
  bubbles: !0,
4125
4128
  cancelable: !0
4126
4129
  }) : (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 || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
4127
4130
  }
4128
- function js(e) {
4131
+ function Ns(e) {
4129
4132
  e.draggable = !1;
4130
4133
  }
4131
- function Ms() {
4132
- ms = !1;
4134
+ function Ps() {
4135
+ gs = !1;
4133
4136
  }
4134
- function Ns(e, t, n) {
4135
- var r = H(xo(n.el, 0, n.options, !0)), i = Po(n.el, n.options, q), a = 10;
4137
+ function Fs(e, t, n) {
4138
+ var r = H(Co(n.el, 0, n.options, !0)), i = Io(n.el, n.options, q), a = 10;
4136
4139
  return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
4137
4140
  }
4138
- function Ps(e, t, n) {
4139
- var r = H(So(n.el, n.options.draggable)), i = Po(n.el, n.options, q), a = 10;
4141
+ function Is(e, t, n) {
4142
+ var r = H(wo(n.el, n.options.draggable)), i = Io(n.el, n.options, q), a = 10;
4140
4143
  return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
4141
4144
  }
4142
- function Fs(e, t, n, r, i, a, o, s) {
4145
+ function Ls(e, t, n, r, i, a, o, s) {
4143
4146
  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;
4144
4147
  if (!o) {
4145
- if (s && fs < l * i) {
4146
- if (!us && (ls === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (us = !0), us) f = !0;
4147
- else if (ls === 1 ? c < u + fs : c > d - fs) return -ls;
4148
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Is(t);
4148
+ if (s && ms < l * i) {
4149
+ if (!fs && (ds === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (fs = !0), fs) f = !0;
4150
+ else if (ds === 1 ? c < u + ms : c > d - ms) return -ds;
4151
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Rs(t);
4149
4152
  }
4150
4153
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
4151
4154
  }
4152
- function Is(e) {
4153
- return Co(G) < Co(e) ? 1 : -1;
4155
+ function Rs(e) {
4156
+ return To(G) < To(e) ? 1 : -1;
4154
4157
  }
4155
- function Ls(e) {
4158
+ function zs(e) {
4156
4159
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
4157
4160
  return r.toString(36);
4158
4161
  }
4159
- function Rs(e) {
4160
- hs.length = 0;
4162
+ function Bs(e) {
4163
+ _s.length = 0;
4161
4164
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
4162
4165
  var r = t[n];
4163
- r.checked && hs.push(r);
4166
+ r.checked && _s.push(r);
4164
4167
  }
4165
4168
  }
4166
- function zs(e) {
4169
+ function Vs(e) {
4167
4170
  return setTimeout(e, 0);
4168
4171
  }
4169
- function Bs(e) {
4172
+ function Hs(e) {
4170
4173
  return clearTimeout(e);
4171
4174
  }
4172
- gs && z(document, "touchmove", function(e) {
4173
- (Q.active || Qo) && e.cancelable && e.preventDefault();
4175
+ vs && R(document, "touchmove", function(e) {
4176
+ (Q.active || es) && e.cancelable && e.preventDefault();
4174
4177
  }), Q.utils = {
4175
- on: z,
4176
- off: B,
4178
+ on: R,
4179
+ off: z,
4177
4180
  css: V,
4178
- find: vo,
4181
+ find: bo,
4179
4182
  is: function(e, t) {
4180
- return !!mo(e, t, e, !1);
4183
+ return !!_o(e, t, e, !1);
4181
4184
  },
4182
- extend: Do,
4183
- throttle: Ao,
4184
- closest: mo,
4185
- toggleClass: go,
4186
- clone: No,
4187
- index: Co,
4188
- nextTick: zs,
4189
- cancelNextTick: Bs,
4190
- detectDirection: xs,
4191
- getChild: xo
4185
+ extend: ko,
4186
+ throttle: Mo,
4187
+ closest: _o,
4188
+ toggleClass: B,
4189
+ clone: Fo,
4190
+ index: To,
4191
+ nextTick: Vs,
4192
+ cancelNextTick: Hs,
4193
+ detectDirection: Cs,
4194
+ getChild: Co
4192
4195
  }, Q.get = function(e) {
4193
- return e[Fo];
4196
+ return e[Lo];
4194
4197
  }, Q.mount = function() {
4195
4198
  var e = [...arguments];
4196
4199
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
4197
4200
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
4198
- e.utils && (Q.utils = Xa(Xa({}, Q.utils), e.utils)), Vo.mount(e);
4201
+ e.utils && (Q.utils = $a($a({}, Q.utils), e.utils)), Uo.mount(e);
4199
4202
  });
4200
4203
  }, Q.create = function(e, t) {
4201
4204
  return new Q(e, t);
4202
- }, Q.version = no;
4203
- var $ = [], Vs, Hs, Us = !1, Ws, Gs, Ks, qs;
4204
- function Js() {
4205
+ }, Q.version = ao;
4206
+ var $ = [], Us, Ws, Gs = !1, Ks, qs, Js, Ys;
4207
+ function Xs() {
4205
4208
  function e() {
4206
4209
  for (var e in this.defaults = {
4207
4210
  scroll: !0,
@@ -4214,70 +4217,70 @@ function Js() {
4214
4217
  return e.prototype = {
4215
4218
  dragStarted: function(e) {
4216
4219
  var t = e.originalEvent;
4217
- this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? z(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? z(document, "touchmove", this._handleFallbackAutoScroll) : z(document, "mousemove", this._handleFallbackAutoScroll);
4220
+ this.sortable.nativeDraggable ? R(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? R(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? R(document, "touchmove", this._handleFallbackAutoScroll) : R(document, "mousemove", this._handleFallbackAutoScroll);
4218
4221
  },
4219
4222
  dragOverCompleted: function(e) {
4220
4223
  var t = e.originalEvent;
4221
4224
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
4222
4225
  },
4223
4226
  drop: function() {
4224
- this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), Xs(), Ys(), jo();
4227
+ this.sortable.nativeDraggable ? z(document, "dragover", this._handleAutoScroll) : (z(document, "pointermove", this._handleFallbackAutoScroll), z(document, "touchmove", this._handleFallbackAutoScroll), z(document, "mousemove", this._handleFallbackAutoScroll)), Qs(), Zs(), No();
4225
4228
  },
4226
4229
  nulling: function() {
4227
- Ks = Hs = Vs = Us = qs = Ws = Gs = null, $.length = 0;
4230
+ Js = Ws = Us = Gs = Ys = Ks = qs = null, $.length = 0;
4228
4231
  },
4229
4232
  _handleFallbackAutoScroll: function(e) {
4230
4233
  this._handleAutoScroll(e, !0);
4231
4234
  },
4232
4235
  _handleAutoScroll: function(e, t) {
4233
4236
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
4234
- if (Ks = e, t || this.options.forceAutoScrollFallback || ao || io || so) {
4235
- Zs(e, this.options, a, t);
4236
- var o = Eo(a, !0);
4237
- Us && (!qs || r !== Ws || i !== Gs) && (qs && Xs(), qs = setInterval(function() {
4238
- var a = Eo(document.elementFromPoint(r, i), !0);
4239
- a !== o && (o = a, Ys()), Zs(e, n.options, a, t);
4240
- }, 10), Ws = r, Gs = i);
4237
+ if (Js = e, t || this.options.forceAutoScrollFallback || co || so || uo) {
4238
+ $s(e, this.options, a, t);
4239
+ var o = Oo(a, !0);
4240
+ Gs && (!Ys || r !== Ks || i !== qs) && (Ys && Qs(), Ys = setInterval(function() {
4241
+ var a = Oo(document.elementFromPoint(r, i), !0);
4242
+ a !== o && (o = a, Zs()), $s(e, n.options, a, t);
4243
+ }, 10), Ks = r, qs = i);
4241
4244
  } else {
4242
- if (!this.options.bubbleScroll || Eo(a, !0) === yo()) {
4243
- Ys();
4245
+ if (!this.options.bubbleScroll || Oo(a, !0) === xo()) {
4246
+ Zs();
4244
4247
  return;
4245
4248
  }
4246
- Zs(e, this.options, Eo(a, !1), !1);
4249
+ $s(e, this.options, Oo(a, !1), !1);
4247
4250
  }
4248
4251
  }
4249
- }, $a(e, {
4252
+ }, no(e, {
4250
4253
  pluginName: "scroll",
4251
4254
  initializeByDefault: !0
4252
4255
  });
4253
4256
  }
4254
- function Ys() {
4257
+ function Zs() {
4255
4258
  $.forEach(function(e) {
4256
4259
  clearInterval(e.pid);
4257
4260
  }), $ = [];
4258
4261
  }
4259
- function Xs() {
4260
- clearInterval(qs);
4262
+ function Qs() {
4263
+ clearInterval(Ys);
4261
4264
  }
4262
- var Zs = Ao(function(e, t, n, r) {
4265
+ var $s = Mo(function(e, t, n, r) {
4263
4266
  if (t.scroll) {
4264
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = yo(), l = !1, u;
4265
- Hs !== n && (Hs = n, Ys(), Vs = t.scroll, u = t.scrollFn, Vs === !0 && (Vs = Eo(n, !0)));
4266
- var d = 0, f = Vs;
4267
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = xo(), l = !1, u;
4268
+ Ws !== n && (Ws = n, Zs(), Us = t.scroll, u = t.scrollFn, Us === !0 && (Us = Oo(n, !0)));
4269
+ var d = 0, f = Us;
4267
4270
  do {
4268
4271
  var p = f, m = H(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, w = p.scrollHeight, T = V(p), E = p.scrollLeft, D = p.scrollTop;
4269
4272
  p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
4270
4273
  var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
4271
4274
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
4272
4275
  ($[d].vx != O || $[d].vy != k || $[d].el !== p) && ($[d].el = p, $[d].vx = O, $[d].vy = k, clearInterval($[d].pid), (O != 0 || k != 0) && (l = !0, $[d].pid = setInterval(function() {
4273
- r && this.layer === 0 && Q.active._onTouchMove(Ks);
4276
+ r && this.layer === 0 && Q.active._onTouchMove(Js);
4274
4277
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
4275
- typeof u == "function" && u.call(Q.dragged.parentNode[Fo], n, t, e, Ks, $[this.layer].el) !== "continue" || Mo($[this.layer].el, n, t);
4278
+ typeof u == "function" && u.call(Q.dragged.parentNode[Lo], n, t, e, Js, $[this.layer].el) !== "continue" || Po($[this.layer].el, n, t);
4276
4279
  }.bind({ layer: d }), 24))), d++;
4277
- } while (t.bubbleScroll && f !== c && (f = Eo(f, !1)));
4278
- Us = l;
4280
+ } while (t.bubbleScroll && f !== c && (f = Oo(f, !1)));
4281
+ Gs = l;
4279
4282
  }
4280
- }, 30), Qs = function(e) {
4283
+ }, 30), ec = function(e) {
4281
4284
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
4282
4285
  if (t) {
4283
4286
  var c = n || i;
@@ -4289,8 +4292,8 @@ var Zs = Ao(function(e, t, n, r) {
4289
4292
  }));
4290
4293
  }
4291
4294
  };
4292
- function $s() {}
4293
- $s.prototype = {
4295
+ function tc() {}
4296
+ tc.prototype = {
4294
4297
  startIndex: null,
4295
4298
  dragStart: function(e) {
4296
4299
  var t = e.oldDraggableIndex;
@@ -4299,72 +4302,72 @@ $s.prototype = {
4299
4302
  onSpill: function(e) {
4300
4303
  var t = e.dragEl, n = e.putSortable;
4301
4304
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
4302
- var r = xo(this.sortable.el, this.startIndex, this.options);
4305
+ var r = Co(this.sortable.el, this.startIndex, this.options);
4303
4306
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
4304
4307
  },
4305
- drop: Qs
4306
- }, $a($s, { pluginName: "revertOnSpill" });
4307
- function ec() {}
4308
- ec.prototype = {
4308
+ drop: ec
4309
+ }, no(tc, { pluginName: "revertOnSpill" });
4310
+ function nc() {}
4311
+ nc.prototype = {
4309
4312
  onSpill: function(e) {
4310
4313
  var t = e.dragEl, n = e.putSortable || this.sortable;
4311
4314
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
4312
4315
  },
4313
- drop: Qs
4314
- }, $a(ec, { pluginName: "removeOnSpill" }), Q.mount(new Js()), Q.mount(ec, $s);
4315
- function tc(e) {
4316
+ drop: ec
4317
+ }, no(nc, { pluginName: "removeOnSpill" }), Q.mount(new Xs()), Q.mount(nc, tc);
4318
+ function rc(e) {
4316
4319
  return e == null ? e : JSON.parse(JSON.stringify(e));
4317
4320
  }
4318
- function nc(e) {
4319
- te() && l(e);
4321
+ function ic(e) {
4322
+ ne() && l(e);
4320
4323
  }
4321
- function rc(e) {
4322
- te() ? n(e) : m(e);
4324
+ function ac(e) {
4325
+ ne() ? n(e) : m(e);
4323
4326
  }
4324
- var ic = null, ac = null;
4325
- function oc(e = null, t = null) {
4326
- ic = e, ac = t;
4327
+ var oc = null, sc = null;
4328
+ function cc(e = null, t = null) {
4329
+ oc = e, sc = t;
4327
4330
  }
4328
- function sc() {
4331
+ function lc() {
4329
4332
  return {
4330
- data: ic,
4331
- clonedData: ac
4333
+ data: oc,
4334
+ clonedData: sc
4332
4335
  };
4333
4336
  }
4334
- var cc = Symbol("cloneElement");
4335
- function lc(...e) {
4336
- let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
4337
- Array.isArray(P(i)) || (o = i, i = null);
4338
- let c = null, { immediate: l = !0, clone: u = tc, forceFallback: d, fallbackOnBody: f, customUpdate: p } = P(o) ?? {};
4337
+ var uc = Symbol("cloneElement");
4338
+ function dc(...e) {
4339
+ let t = ne()?.proxy, n = null, r = e[0], [, i, o] = e;
4340
+ Array.isArray(N(i)) || (o = i, i = null);
4341
+ let c = null, { immediate: l = !0, clone: u = rc, forceFallback: d, fallbackOnBody: f, customUpdate: p } = N(o) ?? {};
4339
4342
  function h(e) {
4340
4343
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
4341
4344
  n = d && !f ? o.slice(0, -1) : o;
4342
- let s = P(P(i)?.[r]), c = u(s);
4343
- oc(s, c), a[cc] = c;
4345
+ let s = N(N(i)?.[r]), c = u(s);
4346
+ cc(s, c), a[uc] = c;
4344
4347
  }
4345
4348
  function g(e) {
4346
- let t = e.item[cc];
4347
- if (!Ra(t)) {
4348
- if (Va(e.item), a(i)) {
4349
- let n = [...P(i)];
4350
- i.value = La(n, e.newDraggableIndex, t);
4349
+ let t = e.item[uc];
4350
+ if (!Va(t)) {
4351
+ if (Wa(e.item), a(i)) {
4352
+ let n = [...N(i)];
4353
+ i.value = Ba(n, e.newDraggableIndex, t);
4351
4354
  return;
4352
4355
  }
4353
- La(P(i), e.newDraggableIndex, t);
4356
+ Ba(N(i), e.newDraggableIndex, t);
4354
4357
  }
4355
4358
  }
4356
4359
  function _(e) {
4357
4360
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, pullMode: s, clone: c } = e;
4358
- if (Ba(t, n, r), s === "clone") {
4359
- Va(c);
4361
+ if (Ua(t, n, r), s === "clone") {
4362
+ Wa(c);
4360
4363
  return;
4361
4364
  }
4362
4365
  if (a(i)) {
4363
- let e = [...P(i)];
4364
- i.value = Ia(e, o);
4366
+ let e = [...N(i)];
4367
+ i.value = za(e, o);
4365
4368
  return;
4366
4369
  }
4367
- Ia(P(i), o);
4370
+ za(N(i), o);
4368
4371
  }
4369
4372
  function v(e) {
4370
4373
  if (p) {
@@ -4372,12 +4375,12 @@ function lc(...e) {
4372
4375
  return;
4373
4376
  }
4374
4377
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, newDraggableIndex: s } = e;
4375
- if (Va(n), Ba(t, n, r), a(i)) {
4376
- let e = [...P(i)];
4377
- i.value = Na(e, o, s);
4378
+ if (Wa(n), Ua(t, n, r), a(i)) {
4379
+ let e = [...N(i)];
4380
+ i.value = Ia(e, o, s);
4378
4381
  return;
4379
4382
  }
4380
- Na(P(i), o, s);
4383
+ Ia(N(i), o, s);
4381
4384
  }
4382
4385
  function y(e) {
4383
4386
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -4396,7 +4399,7 @@ function lc(...e) {
4396
4399
  n = null;
4397
4400
  }
4398
4401
  m(() => {
4399
- if (oc(), o) throw o;
4402
+ if (cc(), o) throw o;
4400
4403
  });
4401
4404
  }
4402
4405
  let b = {
@@ -4407,20 +4410,20 @@ function lc(...e) {
4407
4410
  onEnd: y
4408
4411
  };
4409
4412
  function x(e) {
4410
- let n = P(r);
4411
- return e ||= za(n) ? Ha(n, t?.$el) : n, e && !Ga(e) && (e = e.$el), e || Ma("Root element not found"), e;
4413
+ let n = N(r);
4414
+ return e ||= Ha(n) ? Ga(n, t?.$el) : n, e && !Ja(e) && (e = e.$el), e || Fa("Root element not found"), e;
4412
4415
  }
4413
4416
  function S() {
4414
- let e = P(o) ?? {}, { immediate: t, clone: n } = e, r = ka(e, ["immediate", "clone"]);
4415
- return Ka(r, (e, t) => {
4416
- qa(e) && (r[e] = (e, ...n) => (Ja(e, sc()), t(e, ...n)));
4417
- }), Wa(i === null ? {} : b, r);
4417
+ let e = N(o) ?? {}, { immediate: t, clone: n } = e, r = Ma(e, ["immediate", "clone"]);
4418
+ return Ya(r, (e, t) => {
4419
+ Xa(e) && (r[e] = (e, ...n) => (Za(e, lc()), t(e, ...n)));
4420
+ }), qa(i === null ? {} : b, r);
4418
4421
  }
4419
4422
  let C = (e) => {
4420
4423
  e = x(e), c && w.destroy(), c = new Q(e, S());
4421
4424
  };
4422
4425
  s(() => o, () => {
4423
- c && Ka(S(), (e, t) => {
4426
+ c && Ya(S(), (e, t) => {
4424
4427
  c?.option(e, t);
4425
4428
  });
4426
4429
  }, { deep: !0 });
@@ -4433,15 +4436,15 @@ function lc(...e) {
4433
4436
  toArray: () => c?.toArray(),
4434
4437
  closest: (...e) => c?.closest(...e)
4435
4438
  };
4436
- return rc(() => {
4439
+ return ac(() => {
4437
4440
  l && C();
4438
- }), nc(w.destroy), Oa({
4441
+ }), ic(w.destroy), ja({
4439
4442
  start: C,
4440
4443
  pause: () => w?.option("disabled", !0),
4441
4444
  resume: () => w?.option("disabled", !1)
4442
4445
  }, w);
4443
4446
  }
4444
- var uc = [
4447
+ var fc = [
4445
4448
  "update",
4446
4449
  "start",
4447
4450
  "add",
@@ -4454,7 +4457,7 @@ var uc = [
4454
4457
  "clone",
4455
4458
  "move",
4456
4459
  "change"
4457
- ], dc = [
4460
+ ], pc = [
4458
4461
  "clone",
4459
4462
  "animation",
4460
4463
  "ghostClass",
@@ -4498,43 +4501,43 @@ var uc = [
4498
4501
  "tag",
4499
4502
  "target",
4500
4503
  "customUpdate",
4501
- ...uc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4502
- ], fc = L({
4504
+ ...fc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4505
+ ], mc = I({
4503
4506
  name: "VueDraggable",
4504
4507
  model: {
4505
4508
  prop: "modelValue",
4506
4509
  event: "update:modelValue"
4507
4510
  },
4508
- props: dc,
4509
- emits: ["update:modelValue", ...uc],
4511
+ props: pc,
4512
+ emits: ["update:modelValue", ...fc],
4510
4513
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
4511
- let a = uc.reduce((e, t) => {
4514
+ let a = fc.reduce((e, t) => {
4512
4515
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
4513
4516
  return e[r] = (...e) => n(t, ...e), e;
4514
- }, {}), s = F(() => {
4515
- let t = C(e), { modelValue: n } = t, r = ka(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4516
- let r = P(n);
4517
+ }, {}), s = P(() => {
4518
+ let t = C(e), { modelValue: n } = t, r = Ma(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4519
+ let r = N(n);
4517
4520
  return r !== void 0 && (e[t] = r), e;
4518
4521
  }, {});
4519
- return Oa(Oa({}, a), Fa(Oa(Oa({}, i), o)));
4520
- }), c = F({
4522
+ return ja(ja({}, a), Ra(ja(ja({}, i), o)));
4523
+ }), c = P({
4521
4524
  get: () => e.modelValue,
4522
4525
  set: (e) => n("update:modelValue", e)
4523
- }), l = _(), u = o(lc(e.target || l, c, s));
4526
+ }), l = _(), u = o(dc(e.target || l, c, s));
4524
4527
  return r(u), () => b(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
4525
4528
  }
4526
- }), pc = {
4529
+ }), hc = {
4527
4530
  mounted: "mounted",
4528
4531
  unmounted: "unmounted"
4529
4532
  };
4530
- pc.mounted, pc.unmounted;
4533
+ hc.mounted, hc.unmounted;
4531
4534
  //#endregion
4532
4535
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4533
- var mc = { class: "tpl:w-full" }, hc = {
4536
+ var gc = { class: "tpl:w-full" }, _c = {
4534
4537
  key: 0,
4535
4538
  "data-testid": "section-drop-hint",
4536
4539
  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-chrome-text-dim)]"
4537
- }, gc = /* @__PURE__ */ L({
4540
+ }, vc = /* @__PURE__ */ I({
4538
4541
  __name: "SectionBlock",
4539
4542
  props: {
4540
4543
  block: {},
@@ -4542,13 +4545,13 @@ var mc = { class: "tpl:w-full" }, hc = {
4542
4545
  },
4543
4546
  setup(e) {
4544
4547
  let n = {
4545
- title: xa,
4546
- paragraph: na,
4547
- image: Ui,
4548
- button: Mr,
4549
- divider: Ci,
4550
- custom: xi
4551
- }, i = e, { t: a } = Vt(), o = lt(Et, "SectionBlock"), s = p(Ct, null), c = p(Pt, null), l = p(St, {}), f = p(Nt, null);
4548
+ title: wa,
4549
+ paragraph: aa,
4550
+ image: Ki,
4551
+ button: Fr,
4552
+ divider: Ei,
4553
+ custom: wi
4554
+ }, i = e, { t: a } = Wt(), o = lt(kt, "SectionBlock"), s = p(Et, null), c = p(Rt, null), l = p(Tt, {}), f = p(Lt, null);
4552
4555
  function m(e) {
4553
4556
  let t = l.savedBlocks;
4554
4557
  if (t?.isPicking.value) {
@@ -4557,7 +4560,7 @@ var mc = { class: "tpl:w-full" }, hc = {
4557
4560
  }
4558
4561
  o.selectBlock(e);
4559
4562
  }
4560
- let h = F(() => {
4563
+ let h = P(() => {
4561
4564
  switch (i.block.columns) {
4562
4565
  case "2": return ["50%", "50%"];
4563
4566
  case "3": return [
@@ -4569,11 +4572,11 @@ var mc = { class: "tpl:w-full" }, hc = {
4569
4572
  case "2-1": return ["66.67%", "33.33%"];
4570
4573
  default: return ["100%"];
4571
4574
  }
4572
- }), g = F(() => {
4575
+ }), g = P(() => {
4573
4576
  let e = h.value.length, t = [...i.block.children];
4574
4577
  for (; t.length < e;) t.push([]);
4575
4578
  return t.slice(0, e);
4576
- }), _ = F(() => i.viewport === "mobile" && i.block.stackOnMobile !== !1);
4579
+ }), _ = P(() => i.viewport === "mobile" && i.block.stackOnMobile !== !1);
4577
4580
  function v(e) {
4578
4581
  return g.value[e] || [];
4579
4582
  }
@@ -4583,7 +4586,7 @@ var mc = { class: "tpl:w-full" }, hc = {
4583
4586
  r[e] = n, o.updateBlock(i.block.id, { children: r });
4584
4587
  }
4585
4588
  function b(e) {
4586
- return ia(e, c, n);
4589
+ return sa(e, c, n);
4587
4590
  }
4588
4591
  function C(e, t) {
4589
4592
  e.type === "custom" && o.updateBlock(e.id, {
@@ -4591,16 +4594,16 @@ var mc = { class: "tpl:w-full" }, hc = {
4591
4594
  dataSourceFetched: t.dataSourceFetched
4592
4595
  });
4593
4596
  }
4594
- return (n, i) => (O(), S("div", mc, [x("div", { class: r(["tpl:flex tpl:gap-0", { "tpl:flex-col": _.value }]) }, [(O(!0), S(N, null, D(g.value, (n, i) => (O(), S("div", {
4597
+ return (n, i) => (O(), S("div", gc, [x("div", { class: r(["tpl:flex tpl:gap-0", { "tpl:flex-col": _.value }]) }, [(O(!0), S(M, null, D(g.value, (n, i) => (O(), S("div", {
4595
4598
  key: i,
4596
4599
  class: r(["tpl:relative tpl:min-h-[60px] tpl:rounded", v(i).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
4597
4600
  style: u({ width: _.value ? "100%" : h.value[i] })
4598
- }, [w(P(fc), {
4601
+ }, [w(N(mc), {
4599
4602
  "model-value": v(i),
4600
4603
  group: {
4601
4604
  name: "blocks",
4602
4605
  pull: !0,
4603
- put: (e, t, n) => P(Sa)(n)
4606
+ put: (e, t, n) => N(Ta)(n)
4604
4607
  },
4605
4608
  animation: 150,
4606
4609
  "ghost-class": "tpl-ghost",
@@ -4613,19 +4616,19 @@ var mc = { class: "tpl:w-full" }, hc = {
4613
4616
  class: "tpl:min-h-[60px]",
4614
4617
  "onUpdate:modelValue": (e) => y(i, e)
4615
4618
  }, {
4616
- default: ne(() => [(O(!0), S(N, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(ya, {
4619
+ default: re(() => [(O(!0), S(M, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(Sa, {
4617
4620
  block: n,
4618
- "is-selected": P(o).state.selectedBlockId === n.id,
4621
+ "is-selected": N(o).state.selectedBlockId === n.id,
4619
4622
  viewport: e.viewport,
4620
- "preview-mode": P(o).state.previewMode,
4623
+ "preview-mode": N(o).state.previewMode,
4621
4624
  nested: "",
4622
4625
  onSelect: (e) => m(n.id)
4623
4626
  }, {
4624
- default: ne(() => [(O(), A(d(b(n)), {
4627
+ default: re(() => [(O(), A(d(b(n)), {
4625
4628
  block: n,
4626
4629
  viewport: e.viewport,
4627
4630
  onFetchData: (e) => C(n, e),
4628
- onUpdate: (e) => P(o).updateBlock(n.id, e)
4631
+ onUpdate: (e) => N(o).updateBlock(n.id, e)
4629
4632
  }, null, 40, [
4630
4633
  "block",
4631
4634
  "viewport",
@@ -4639,19 +4642,19 @@ var mc = { class: "tpl:w-full" }, hc = {
4639
4642
  "viewport",
4640
4643
  "preview-mode",
4641
4644
  "onSelect"
4642
- ])])), [[re, P(f) === !1 || !P(s)?.isHidden(n.id)]])), 128))]),
4645
+ ])])), [[ie, N(f) === !1 || !N(s)?.isHidden(n.id)]])), 128))]),
4643
4646
  _: 2
4644
4647
  }, 1032, [
4645
4648
  "model-value",
4646
4649
  "group",
4647
4650
  "onUpdate:modelValue"
4648
- ]), v(i).length === 0 ? (O(), S("div", hc, [x("span", null, k(P(a).section.dropHere), 1)])) : I("", !0)], 6))), 128))], 2)]));
4651
+ ]), v(i).length === 0 ? (O(), S("div", _c, [x("span", null, k(N(a).section.dropHere), 1)])) : F("", !0)], 6))), 128))], 2)]));
4649
4652
  }
4650
- }), _c = we, vc = {
4653
+ }), yc = Te, bc = {
4651
4654
  small: 24,
4652
4655
  medium: 32,
4653
4656
  large: 48
4654
- }, yc = [
4657
+ }, xc = [
4655
4658
  "facebook",
4656
4659
  "twitter",
4657
4660
  "instagram",
@@ -4669,11 +4672,11 @@ var mc = { class: "tpl:w-full" }, hc = {
4669
4672
  "github",
4670
4673
  "dribbble",
4671
4674
  "behance"
4672
- ], bc = [
4675
+ ], Sc = [
4673
4676
  "width",
4674
4677
  "height",
4675
4678
  "fill"
4676
- ], xc = ["d"], Sc = /* @__PURE__ */ L({
4679
+ ], Cc = ["d"], wc = /* @__PURE__ */ I({
4677
4680
  __name: "SocialIconSvg",
4678
4681
  props: {
4679
4682
  platform: {},
@@ -4681,7 +4684,7 @@ var mc = { class: "tpl:w-full" }, hc = {
4681
4684
  iconSize: {}
4682
4685
  },
4683
4686
  setup(e) {
4684
- let t = e, n = F(() => _c[t.platform]), r = F(() => vc[t.iconSize]), i = F(() => {
4687
+ let t = e, n = P(() => yc[t.platform]), r = P(() => bc[t.iconSize]), i = P(() => {
4685
4688
  let e = {
4686
4689
  display: "inline-flex",
4687
4690
  alignItems: "center",
@@ -4718,40 +4721,40 @@ var mc = { class: "tpl:w-full" }, hc = {
4718
4721
  };
4719
4722
  default: return e;
4720
4723
  }
4721
- }), a = F(() => Math.floor(r.value * .6)), o = F(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
4724
+ }), a = P(() => Math.floor(r.value * .6)), o = P(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
4722
4725
  return (e, t) => (O(), S("span", { style: u(i.value) }, [(O(), S("svg", {
4723
4726
  width: a.value,
4724
4727
  height: a.value,
4725
4728
  viewBox: "0 0 24 24",
4726
4729
  fill: o.value,
4727
4730
  xmlns: "http://www.w3.org/2000/svg"
4728
- }, [x("path", { d: n.value.path }, null, 8, xc)], 8, bc))], 4));
4731
+ }, [x("path", { d: n.value.path }, null, 8, Cc)], 8, Sc))], 4));
4729
4732
  }
4730
- }), Cc = { class: "tpl:w-full" }, wc = ["href"], Tc = {
4733
+ }), Tc = { class: "tpl:w-full" }, Ec = ["href"], Dc = {
4731
4734
  key: 1,
4732
4735
  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)]"
4733
- }, Ec = /* @__PURE__ */ L({
4736
+ }, Oc = /* @__PURE__ */ I({
4734
4737
  __name: "SocialIconsBlock",
4735
4738
  props: {
4736
4739
  block: {},
4737
4740
  viewport: {}
4738
4741
  },
4739
4742
  setup(e) {
4740
- let t = e, { t: n } = Vt(), r = F(() => ({
4743
+ let t = e, { t: n } = Wt(), r = P(() => ({
4741
4744
  display: "flex",
4742
4745
  flexWrap: "wrap",
4743
4746
  gap: `${t.block.spacing}px`,
4744
4747
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4745
- })), i = F(() => t.block.icons.length > 0);
4746
- return (t, a) => (O(), S("div", Cc, [i.value ? (O(), S("div", {
4748
+ })), i = P(() => t.block.icons.length > 0);
4749
+ return (t, a) => (O(), S("div", Tc, [i.value ? (O(), S("div", {
4747
4750
  key: 0,
4748
4751
  style: u(r.value)
4749
- }, [(O(!0), S(N, null, D(e.block.icons, (t) => (O(), S("a", {
4752
+ }, [(O(!0), S(M, null, D(e.block.icons, (t) => (O(), S("a", {
4750
4753
  key: t.id,
4751
4754
  href: t.url || "#",
4752
4755
  class: "tpl:cursor-default",
4753
- onClick: a[0] ||= R(() => {}, ["prevent"])
4754
- }, [w(Sc, {
4756
+ onClick: a[0] ||= L(() => {}, ["prevent"])
4757
+ }, [w(wc, {
4755
4758
  platform: t.platform,
4756
4759
  "icon-style": e.block.iconStyle,
4757
4760
  "icon-size": e.block.iconSize
@@ -4759,44 +4762,44 @@ var mc = { class: "tpl:w-full" }, hc = {
4759
4762
  "platform",
4760
4763
  "icon-style",
4761
4764
  "icon-size"
4762
- ])], 8, wc))), 128))], 4)) : (O(), S("div", Tc, [w(P(Ur), { size: 16 }), x("span", null, k(P(n).social.addIcons), 1)]))]));
4765
+ ])], 8, Ec))), 128))], 4)) : (O(), S("div", Dc, [w(N(Kr), { size: 16 }), x("span", null, k(N(n).social.addIcons), 1)]))]));
4763
4766
  }
4764
- }), Dc = { class: "tpl:w-full" }, Oc = {
4767
+ }), kc = { class: "tpl:w-full" }, Ac = {
4765
4768
  key: 0,
4766
4769
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4767
4770
  style: {
4768
4771
  "background-color": "var(--tpl-bg-hover)",
4769
4772
  color: "var(--tpl-text-dim)"
4770
4773
  }
4771
- }, kc = /* @__PURE__ */ L({
4774
+ }, jc = /* @__PURE__ */ I({
4772
4775
  __name: "SpacerBlock",
4773
4776
  props: {
4774
4777
  block: {},
4775
4778
  viewport: {}
4776
4779
  },
4777
4780
  setup(e) {
4778
- let t = e, n = lt(Et, "SpacerBlock"), i = F(() => ({
4781
+ let t = e, n = lt(kt, "SpacerBlock"), i = P(() => ({
4779
4782
  height: `${t.block.height}px`,
4780
4783
  minHeight: `${t.block.height}px`,
4781
4784
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4782
4785
  }));
4783
- return (t, a) => (O(), S("div", Dc, [x("div", {
4786
+ return (t, a) => (O(), S("div", kc, [x("div", {
4784
4787
  style: u(i.value),
4785
- class: r(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !P(n).state.previewMode }])
4786
- }, [P(n).state.previewMode ? I("", !0) : (O(), S("span", Oc, k(e.block.height) + "px ", 1))], 6)]));
4788
+ class: r(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !N(n).state.previewMode }])
4789
+ }, [N(n).state.previewMode ? F("", !0) : (O(), S("span", Ac, k(e.block.height) + "px ", 1))], 6)]));
4787
4790
  }
4788
- }), Ac = { class: "tpl:w-full" }, jc = { key: 0 }, Mc = [
4791
+ }), Mc = { class: "tpl:w-full" }, Nc = { key: 0 }, Pc = [
4789
4792
  "aria-label",
4790
4793
  "data-placeholder",
4791
4794
  "onBlur"
4792
- ], Nc = [
4795
+ ], Fc = [
4793
4796
  "aria-label",
4794
4797
  "data-placeholder",
4795
4798
  "onBlur"
4796
- ], Pc = {
4799
+ ], Ic = {
4797
4800
  key: 1,
4798
4801
  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)]"
4799
- }, Fc = /*#__PURE__*/ tn(/* @__PURE__ */ L({
4802
+ }, Lc = /*#__PURE__*/ an(/* @__PURE__ */ I({
4800
4803
  __name: "TableBlock",
4801
4804
  props: {
4802
4805
  block: {},
@@ -4810,7 +4813,7 @@ var mc = { class: "tpl:w-full" }, hc = {
4810
4813
  updated(e, t) {
4811
4814
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4812
4815
  }
4813
- }, r = e, { t: i } = Vt(), a = lt(Et, "TableBlock"), o = F(() => r.block.rows.length > 0), s = F(() => {
4816
+ }, r = e, { t: i } = Wt(), a = lt(kt, "TableBlock"), o = P(() => r.block.rows.length > 0), s = P(() => {
4814
4817
  let e = {
4815
4818
  width: "100%",
4816
4819
  borderCollapse: "collapse",
@@ -4819,15 +4822,15 @@ var mc = { class: "tpl:w-full" }, hc = {
4819
4822
  fontFamily: r.block.fontFamily || "inherit"
4820
4823
  };
4821
4824
  return r.block.color && (e.color = r.block.color), e;
4822
- }), c = F(() => ({
4825
+ }), c = P(() => ({
4823
4826
  border: `${r.block.borderWidth}px solid ${r.block.borderColor}`,
4824
4827
  padding: `${r.block.cellPadding}px`,
4825
4828
  textAlign: r.block.textAlign
4826
- })), l = F(() => ({
4829
+ })), l = P(() => ({
4827
4830
  ...c.value,
4828
4831
  fontWeight: "bold",
4829
4832
  backgroundColor: r.block.headerBackgroundColor || "transparent"
4830
- })), d = F(() => r.block.hasHeaderRow && r.block.rows.length > 0 ? r.block.rows[0] : null), f = F(() => r.block.hasHeaderRow ? r.block.rows.slice(1) : r.block.rows);
4833
+ })), d = P(() => r.block.hasHeaderRow && r.block.rows.length > 0 ? r.block.rows[0] : null), f = P(() => r.block.hasHeaderRow ? r.block.rows.slice(1) : r.block.rows);
4831
4834
  function p() {
4832
4835
  a.selectBlock(r.block.id);
4833
4836
  }
@@ -4841,31 +4844,31 @@ var mc = { class: "tpl:w-full" }, hc = {
4841
4844
  } : n);
4842
4845
  a.updateBlock(r.block.id, { rows: o });
4843
4846
  }
4844
- return (e, r) => (O(), S("div", Ac, [o.value ? (O(), S("table", {
4847
+ return (e, r) => (O(), S("div", Mc, [o.value ? (O(), S("table", {
4845
4848
  key: 0,
4846
4849
  style: u(s.value),
4847
4850
  class: "tpl-table-editable"
4848
- }, [d.value ? (O(), S("thead", jc, [x("tr", null, [(O(!0), S(N, null, D(d.value.cells, (e) => t((O(), S("th", {
4851
+ }, [d.value ? (O(), S("thead", Nc, [x("tr", null, [(O(!0), S(M, null, D(d.value.cells, (e) => t((O(), S("th", {
4849
4852
  key: e.id,
4850
4853
  style: u(l.value),
4851
- "aria-label": P(i).table.cellPlaceholder,
4854
+ "aria-label": N(i).table.cellPlaceholder,
4852
4855
  contenteditable: "true",
4853
- "data-placeholder": P(i).table.cellPlaceholder,
4856
+ "data-placeholder": N(i).table.cellPlaceholder,
4854
4857
  onBlur: (t) => m(d.value.id, e.id, t),
4855
- onKeydown: r[0] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4856
- onClick: R(p, ["stop"])
4857
- }, null, 44, Mc)), [[n, e.content]])), 128))])])) : I("", !0), x("tbody", null, [(O(!0), S(N, null, D(f.value, (e) => (O(), S("tr", { key: e.id }, [(O(!0), S(N, null, D(e.cells, (a) => t((O(), S("td", {
4858
+ onKeydown: r[0] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4859
+ onClick: L(p, ["stop"])
4860
+ }, null, 44, Pc)), [[n, e.content]])), 128))])])) : F("", !0), x("tbody", null, [(O(!0), S(M, null, D(f.value, (e) => (O(), S("tr", { key: e.id }, [(O(!0), S(M, null, D(e.cells, (a) => t((O(), S("td", {
4858
4861
  key: a.id,
4859
4862
  style: u(c.value),
4860
- "aria-label": P(i).table.cellPlaceholder,
4863
+ "aria-label": N(i).table.cellPlaceholder,
4861
4864
  contenteditable: "true",
4862
- "data-placeholder": P(i).table.cellPlaceholder,
4865
+ "data-placeholder": N(i).table.cellPlaceholder,
4863
4866
  onBlur: (t) => m(e.id, a.id, t),
4864
- onKeydown: r[1] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4865
- onClick: R(p, ["stop"])
4866
- }, null, 44, Nc)), [[n, a.content]])), 128))]))), 128))])], 4)) : (O(), S("div", Pc, [w(P(Wr), { size: 16 }), x("span", null, k(P(i).table.empty), 1)]))]));
4867
+ onKeydown: r[1] ||= ae(L((e) => e.target.blur(), ["prevent"]), ["enter"]),
4868
+ onClick: L(p, ["stop"])
4869
+ }, null, 44, Fc)), [[n, a.content]])), 128))]))), 128))])], 4)) : (O(), S("div", Ic, [w(N(qr), { size: 16 }), x("span", null, k(N(i).table.empty), 1)]))]));
4867
4870
  }
4868
- }), [["__scopeId", "data-v-963ac422"]]), Ic = /* @__PURE__ */ L({
4871
+ }), [["__scopeId", "data-v-963ac422"]]), Rc = /* @__PURE__ */ I({
4869
4872
  __name: "VideoPlayButton",
4870
4873
  props: { hoverEffect: {
4871
4874
  type: Boolean,
@@ -4883,7 +4886,7 @@ var mc = { class: "tpl:w-full" }, hc = {
4883
4886
  });
4884
4887
  //#endregion
4885
4888
  //#region src/utils/videoThumbnail.ts
4886
- function Lc(e) {
4889
+ function zc(e) {
4887
4890
  if (!e) return {
4888
4891
  platform: "unknown",
4889
4892
  videoId: null,
@@ -4915,25 +4918,25 @@ function Lc(e) {
4915
4918
  thumbnailUrl: null
4916
4919
  };
4917
4920
  }
4918
- function Rc(e, t) {
4919
- return t || Lc(e).thumbnailUrl;
4921
+ function Bc(e, t) {
4922
+ return t || zc(e).thumbnailUrl;
4920
4923
  }
4921
4924
  //#endregion
4922
4925
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4923
- var zc = ["src", "alt"], Bc = {
4926
+ var Vc = ["src", "alt"], Hc = {
4924
4927
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4925
4928
  style: { opacity: "0.7" }
4926
- }, Vc = ["href"], Hc = ["src", "alt"], Uc = ["src", "alt"], Wc = {
4929
+ }, Uc = ["href"], Wc = ["src", "alt"], Gc = ["src", "alt"], Kc = {
4927
4930
  key: 3,
4928
4931
  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)]"
4929
- }, Gc = /* @__PURE__ */ L({
4932
+ }, qc = /* @__PURE__ */ I({
4930
4933
  __name: "VideoBlock",
4931
4934
  props: {
4932
4935
  block: {},
4933
4936
  viewport: {}
4934
4937
  },
4935
4938
  setup(e) {
4936
- let t = e, { t: n } = Vt(), { syntax: r } = rn(), i = F(() => Me(t.block.url, r) || Me(t.block.thumbnailUrl, r)), a = Pn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Pn(() => i.value ? t.block.placeholderUrl : void 0), s = F(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Rc(t.block.url)), c = F(() => ({ textAlign: t.block.align })), l = F(() => {
4939
+ let t = e, { t: n } = Wt(), { syntax: r } = sn(), i = P(() => Ne(t.block.url, r) || Ne(t.block.thumbnailUrl, r)), a = Ln(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Ln(() => i.value ? t.block.placeholderUrl : void 0), s = P(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Bc(t.block.url)), c = P(() => ({ textAlign: t.block.align })), l = P(() => {
4937
4940
  let e = t.block.align;
4938
4941
  return {
4939
4942
  maxWidth: "100%",
@@ -4943,7 +4946,7 @@ var zc = ["src", "alt"], Bc = {
4943
4946
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4944
4947
  marginRight: e === "center" ? "auto" : void 0
4945
4948
  };
4946
- }), d = F(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = F(() => Me(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4949
+ }), d = P(() => ({ height: t.block.height ? `${t.block.height}px` : void 0 })), f = P(() => Ne(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
4947
4950
  return (t, r) => (O(), S("div", {
4948
4951
  class: "tpl:w-full",
4949
4952
  style: u(c.value)
@@ -4953,32 +4956,32 @@ var zc = ["src", "alt"], Bc = {
4953
4956
  style: u(l.value)
4954
4957
  }, [x("img", {
4955
4958
  class: "tpl:w-full tpl:border-0",
4956
- src: P(o),
4959
+ src: N(o),
4957
4960
  alt: e.block.alt,
4958
4961
  style: u(d.value)
4959
- }, null, 12, zc), w(Ic)], 4)) : i.value ? (O(), S("div", {
4962
+ }, null, 12, Vc), w(Rc)], 4)) : i.value ? (O(), S("div", {
4960
4963
  key: 1,
4961
4964
  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)]",
4962
4965
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, l.value])
4963
- }, [w(P(Gr), {
4966
+ }, [w(N(Jr), {
4964
4967
  size: 36,
4965
4968
  "stroke-width": 1.5,
4966
4969
  class: "tpl:text-[var(--tpl-primary)]",
4967
4970
  style: { opacity: "0.5" }
4968
- }), x("span", Bc, [w(Ar, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (O(), S(N, { key: 2 }, [e.block.url ? (O(), S("a", {
4971
+ }), x("span", Hc, [w(Nr, { text: f.value }, null, 8, ["text"])])], 4)) : s.value ? (O(), S(M, { key: 2 }, [e.block.url ? (O(), S("a", {
4969
4972
  key: 0,
4970
4973
  href: e.block.url,
4971
4974
  target: "_blank",
4972
4975
  rel: "noopener noreferrer",
4973
4976
  class: "tpl:group tpl:relative tpl:inline-block",
4974
4977
  style: u(l.value),
4975
- onClick: r[0] ||= R(() => {}, ["prevent"])
4978
+ onClick: r[0] ||= L(() => {}, ["prevent"])
4976
4979
  }, [x("img", {
4977
4980
  class: "tpl:w-full tpl:border-0",
4978
4981
  src: s.value,
4979
4982
  alt: e.block.alt,
4980
4983
  style: u(d.value)
4981
- }, null, 12, Hc), w(Ic, { "hover-effect": "" })], 12, Vc)) : (O(), S("div", {
4984
+ }, null, 12, Wc), w(Rc, { "hover-effect": "" })], 12, Uc)) : (O(), S("div", {
4982
4985
  key: 1,
4983
4986
  class: "tpl:relative tpl:inline-block",
4984
4987
  style: u(l.value)
@@ -4987,51 +4990,51 @@ var zc = ["src", "alt"], Bc = {
4987
4990
  src: s.value,
4988
4991
  alt: e.block.alt,
4989
4992
  style: u(d.value)
4990
- }, null, 12, Uc), w(Ic)], 4))], 64)) : (O(), S("div", Wc, [w(P(Gr), {
4993
+ }, null, 12, Gc), w(Rc)], 4))], 64)) : (O(), S("div", Kc, [w(N(Jr), {
4991
4994
  size: 40,
4992
4995
  "stroke-width": 1.5,
4993
4996
  class: "tpl:text-[var(--tpl-border-light)]"
4994
- }), x("span", null, k(P(n).video.addVideo), 1)]))], 4));
4995
- }
4996
- }), Kc = {
4997
- section: gc,
4998
- title: xa,
4999
- paragraph: na,
5000
- image: Ui,
5001
- button: Mr,
5002
- divider: Ci,
5003
- video: Gc,
5004
- social: Ec,
5005
- menu: qi,
5006
- table: Fc,
5007
- spacer: kc,
5008
- html: ki,
5009
- countdown: y(() => import("./CountdownBlock-Bdt8qZi1.js"))
4997
+ }), x("span", null, k(N(n).video.addVideo), 1)]))], 4));
4998
+ }
4999
+ }), Jc = {
5000
+ section: vc,
5001
+ title: wa,
5002
+ paragraph: aa,
5003
+ image: Ki,
5004
+ button: Fr,
5005
+ divider: Ei,
5006
+ video: qc,
5007
+ social: Oc,
5008
+ menu: Xi,
5009
+ table: Lc,
5010
+ spacer: jc,
5011
+ html: Mi,
5012
+ countdown: y(() => import("./CountdownBlock-D1fsNsyS.js"))
5010
5013
  };
5011
- function qc(t) {
5012
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Vt(i), l = F(() => le(le(ir(i), wr(n.content.value.settings?.locale)), r.blockDefaults ?? {}));
5014
+ function Yc(t) {
5015
+ let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Wt(i), l = P(() => ue(ue(sr(i), Dr(n.content.value.settings?.locale)), r.blockDefaults ?? {}));
5013
5016
  n.setUiTheme(r.uiTheme ?? "auto");
5014
- let { resolvedTheme: u } = Hn(F(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = Wn({
5017
+ let { resolvedTheme: u } = Gn(P(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = qn({
5015
5018
  themeOverrides: d,
5016
5019
  resolvedTheme: u,
5017
5020
  extraStyles: () => ({
5018
5021
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
5019
5022
  ...t.themeExtraStyles?.()
5020
5023
  })
5021
- }), p = pn({
5024
+ }), p = gn({
5022
5025
  content: n.content,
5023
5026
  setContent: (e, t) => n.setContent(e, t),
5024
5027
  ...t.historyOptions
5025
5028
  });
5026
- bn(n, p);
5027
- let m = hn({
5029
+ Cn(n, p);
5030
+ let m = vn({
5028
5031
  addBlock: n.addBlock,
5029
5032
  removeBlock: n.removeBlock,
5030
5033
  updateBlock: n.updateBlock,
5031
5034
  selectBlock: n.selectBlock,
5032
5035
  findBlockLocation: n.findBlockLocation,
5033
5036
  blockDefaults: () => l.value
5034
- }), g = vn(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? _n({
5037
+ }), g = xn(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? bn({
5035
5038
  content: n.content,
5036
5039
  isDirty: () => n.state.isDirty,
5037
5040
  ...t.autoSaveOptions
@@ -5039,30 +5042,30 @@ function qc(t) {
5039
5042
  v && (y = s(p.isNavigating, (e) => {
5040
5043
  e ? v.pause() : v.resume();
5041
5044
  }));
5042
- let b = Vn(n, {
5045
+ let b = Wn(n, {
5043
5046
  t: o,
5044
5047
  format: c
5045
- }, r.customBlocks ?? []), x = Gt(r.colors);
5046
- if (x.allowCustomIgnored && Ht.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && Ht.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5047
- let e = rr(x.presets, r.blockDefaults, r.templateDefaults);
5048
- e.length > 0 && Ht.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
5049
- }
5050
- let S = tr(r.templateSettings);
5051
- for (let e of S.unknown) Ht.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${$n.join(", ")}) — skipping it.`);
5052
- let C = Gn();
5053
- Xn(C, Kc);
5048
+ }, r.customBlocks ?? []), x = Jt(r.colors);
5049
+ if (x.allowCustomIgnored && Gt.warn("config.colors.allowCustom: false is ignored without presets — keeping the color wheel and hex input so a color can still be chosen."), x.invalidPresets.length > 0 && Gt.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5050
+ let e = or(x.presets, r.blockDefaults, r.templateDefaults);
5051
+ e.length > 0 && Gt.warn(`config.colors locks custom colours, but these block/template default colours fall outside colors.presets: ${e.join(", ")}. New blocks start on a colour the palette can't reselect — set blockDefaults / templateDefaults from the same palette.`);
5052
+ }
5053
+ let S = ir(r.templateSettings);
5054
+ for (let e of S.unknown) Gt.warn(`config.templateSettings.fields: "${e}" is not a template setting (expected one of ${nr.join(", ")}) — skipping it.`);
5055
+ let C = Jn();
5056
+ $n(C, Jc);
5054
5057
  let w = /* @__PURE__ */ new Set();
5055
5058
  function T(e) {
5056
5059
  for (let t of e) {
5057
- C.registerCustom(t, xi);
5058
- for (let e of Er(t, x)) w.has(e.id) || (w.add(e.id), Ht.warn(e.message));
5060
+ C.registerCustom(t, wi);
5061
+ for (let e of kr(t, x)) w.has(e.id) || (w.add(e.id), Gt.warn(e.message));
5059
5062
  }
5060
5063
  }
5061
5064
  r.customBlocks?.length && T(r.customBlocks);
5062
- let E = An();
5063
- if (h() && M(E.dispose), t.containerEl) {
5065
+ let E = Nn();
5066
+ if (h() && j(E.dispose), t.containerEl) {
5064
5067
  let e = t.containerEl;
5065
- Ze(document, "pointerdown", (t) => {
5068
+ Qe(document, "pointerdown", (t) => {
5066
5069
  let n = e.value;
5067
5070
  n && (t.composedPath?.() ?? []).includes(n) && E.claim();
5068
5071
  }, { capture: !0 });
@@ -5076,7 +5079,7 @@ function qc(t) {
5076
5079
  v?.flush();
5077
5080
  }
5078
5081
  function O(e) {
5079
- E.isActive() && Or(e, {
5082
+ E.isActive() && jr(e, {
5080
5083
  history: p,
5081
5084
  selectBlock: (e) => n.selectBlock(e),
5082
5085
  getSelectedBlockId: () => n.state.selectedBlockId,
@@ -5088,33 +5091,33 @@ function qc(t) {
5088
5091
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
5089
5092
  });
5090
5093
  }
5091
- Ze(document, "keydown", O);
5094
+ Qe(document, "keydown", O);
5092
5095
  let k = _(null);
5093
- e(Tt, t.editorRoot ?? document), e(pt, k), e(st, i), e(Et, n), e(It, p), e(bt, m), e(Ct, g), e(yt, a), e(_t, f), e(vt, u), e(jt, l), e(gt, r.locale), e(Pt, C), e(wt, r.customBlocks ?? []), e(dt, r.paletteBlocks), e(zt, Zn(r.htmlBlockPreview)), e(Ft, x), e(tt, S.fields), e(Mt, Kn(n.content, C));
5094
- let A = oe(r.mergeTags?.syntax);
5095
- e(ht, r.mergeTags?.tags ?? []), e(Ot, A), e(ut, r.mergeTags?.onRequest ?? null), e(it, r.mergeTags?.autocomplete !== !1);
5096
- let j = _(he(r.mergeTags?.tags ?? []));
5097
- e(ft, j);
5098
- let N = Mn({
5096
+ e(Ot, t.editorRoot ?? document), e(ct, k), e(xt, i), e(kt, n), e(Bt, p), e(Ct, m), e(Et, g), e(St, a), e(yt, f), e(ut, u), e(Pt, l), e(ot, r.locale), e(Rt, C), e(Dt, r.customBlocks ?? []), e(at, r.paletteBlocks), e(Ut, er(r.htmlBlockPreview)), e(zt, x), e(st, S.fields), e(Ft, Yn(n.content, C));
5097
+ let A = se(r.mergeTags?.syntax);
5098
+ e(it, r.mergeTags?.tags ?? []), e(At, A), e(ht, r.mergeTags?.onRequest ?? null), e(rt, r.mergeTags?.autocomplete !== !1);
5099
+ let ee = _(ge(r.mergeTags?.tags ?? []));
5100
+ e(tt, ee);
5101
+ let M = Fn({
5099
5102
  resolvePreview: r.resolvePreview,
5100
5103
  getContent: () => n.content.value,
5101
5104
  isActive: () => n.state.previewMode
5102
5105
  });
5103
- e(at, N), e(ct, r.resolvePreview);
5104
- let P = F(() => !(n.state.previewMode && N.isConfigured));
5105
- e(Nt, P);
5106
- let ee = Fn();
5107
- e(rt, ee), e(nt, r.logicTags?.tags ?? []), e(mt, r.logicTags?.pairs ?? []), e(et, r.logicTags?.onRequest ?? null), e(Lt, In()), e(Dt, r.onRequestMedia ?? null), e(xt, r.resolveImageUrl ? Nn(r.resolveImageUrl) : null), e(kt, r.displayConditions?.conditions ?? []), e(At, r.displayConditions?.allowCustom ?? !1), e(St, t.capabilities ?? {}), e(Rt, b);
5108
- let I = Ln(r.lint) ? null : Rn({
5106
+ e(dt, M), e(gt, r.resolvePreview);
5107
+ let N = P(() => !(n.state.previewMode && M.isConfigured));
5108
+ e(Lt, N);
5109
+ let te = Rn();
5110
+ e(mt, te), e(jt, _(!1)), e(vt, _(!1)), e(nt, r.logicTags?.tags ?? []), e(_t, r.logicTags?.pairs ?? []), e(ft, r.logicTags?.onRequest ?? null), e(Vt, zn()), e(pt, r.onRequestMedia ?? null), e(wt, r.resolveImageUrl ? In(r.resolveImageUrl) : null), e(Mt, r.displayConditions?.conditions ?? []), e(Nt, r.displayConditions?.allowCustom ?? !1), e(Tt, t.capabilities ?? {}), e(Ht, b);
5111
+ let F = Bn(r.lint) ? null : Vn({
5109
5112
  content: n.content,
5110
5113
  options: r.lint ?? {},
5111
5114
  updateBlock: n.updateBlock,
5112
5115
  updateSettings: n.updateSettings,
5113
5116
  removeBlock: n.removeBlock
5114
5117
  });
5115
- e(Bt, I);
5116
- function L() {
5117
- y?.(), I?.destroy(), v?.destroy(), p.destroy();
5118
+ e(bt, F);
5119
+ function I() {
5120
+ y?.(), F?.destroy(), v?.destroy(), p.destroy();
5118
5121
  }
5119
5122
  return {
5120
5123
  t: o,
@@ -5128,14 +5131,14 @@ function qc(t) {
5128
5131
  themeOverrides: d,
5129
5132
  registry: C,
5130
5133
  keyboardReorder: b,
5131
- templateLint: I,
5134
+ templateLint: F,
5132
5135
  popoverRoot: k,
5133
- mergeTagSampleMode: j,
5134
- previewResolution: N,
5135
- appliesConditionFilter: P,
5136
+ mergeTagSampleMode: ee,
5137
+ previewResolution: M,
5138
+ appliesConditionFilter: N,
5136
5139
  registerCustomBlocks: T,
5137
- destroy: L
5140
+ destroy: I
5138
5141
  };
5139
5142
  }
5140
5143
  //#endregion
5141
- export { Cn as $, Ur as A, fr as B, ci as C, Xr as D, Zr as E, Ir as F, gr as G, yr as H, Fr as I, Qn as J, hr as K, Nr as L, Br as M, zr as N, Jr as O, Lr as P, gn as Q, Mr as R, ui as S, ni as T, vr as U, br as V, _r as W, zn as X, Bn as Y, Mn as Z, ji as _, Ec as a, wn as at, xi as b, fc as c, aa as d, En as et, ra as f, Ui as g, qi as h, kc as i, xn as it, Vr as j, Wr as k, xa as l, na as m, Gc as n, yn as nt, yc as o, ia as p, $n as q, Fc as r, ln as rt, gc as s, qc as t, Tn as tt, ya as u, ki as v, ri as w, fi as x, Ci as y, Tr as z };
5144
+ export { En as $, Kr as A, hr as B, di as C, $r as D, ei as E, zr as F, yr as G, Sr as H, Rr as I, tr as J, vr as K, Ir as L, Ur as M, Hr as N, Zr as O, Br as P, yn as Q, Fr as R, pi as S, ai as T, xr as U, Cr as V, br as W, Hn as X, Un as Y, Fn as Z, Pi as _, Oc as a, Dn as at, wi as b, mc as c, ca as d, kn as et, oa as f, Ki as g, Xi as h, jc as i, wn as it, Wr as j, qr as k, wa as l, aa as m, qc as n, Sn as nt, xc as o, sa as p, nr as q, Lc as r, fn as rt, vc as s, Yc as t, On as tt, Sa as u, Mi as v, oi as w, hi as x, Ei as y, Or as z };