@templatical/editor 0.32.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 (154) hide show
  1. package/dist/{AiChatSidebar-ftdKHSR-.js → AiChatSidebar-CkHJ28sf.js} +3 -3
  2. package/dist/{AiFeatureMenu-aNeCRlil.js → AiFeatureMenu-DWdKguDN.js} +3 -3
  3. package/dist/{BlockIssueBadge-bTDu6W_2.js → BlockIssueBadge-DcyHTAqw.js} +2 -2
  4. package/dist/{BlockPreviewCanvas-BsOuOfzB.js → BlockPreviewCanvas-B621ANn9.js} +4 -4
  5. package/dist/{CloudHeaderExtras-BNpFohqt.js → CloudHeaderExtras-BJ3Cebhv.js} +2 -2
  6. package/dist/{CloudPanels-xoGWwqSH.js → CloudPanels-BGz9ygo6.js} +6 -6
  7. package/dist/{CollaboratorBar-mEqXkdEi.js → CollaboratorBar-KphmSQeZ.js} +2 -2
  8. package/dist/{ColorPicker-FL5Vb9bE.js → ColorPicker-C6EOwtHC.js} +5 -5
  9. package/dist/{CommentsPanel-slfi74ng.js → CommentsPanel-DmWh8f08.js} +1 -1
  10. package/dist/{CommentsSidebar-Dea4spMl.js → CommentsSidebar-CL_tffzT.js} +4 -4
  11. package/dist/{CountdownBlock-DQTwaRxP.js → CountdownBlock-D1fsNsyS.js} +1 -1
  12. package/dist/{CountdownToolbar-C7xwJoqh.js → CountdownToolbar-B8J4i5Xp.js} +2 -2
  13. package/dist/{DesignReferenceSidebar-BtBd7bbz.js → DesignReferenceSidebar-BDhEeaAh.js} +4 -4
  14. package/dist/{IssuesPanel-Ci2H36L2.js → IssuesPanel-CiOjeRFI.js} +4 -4
  15. package/dist/MergeTagInput-RytOlh1A.js +448 -0
  16. package/dist/{MergeTagModeToggle-Cdi_DmVw.js → MergeTagModeToggle-Bi-FydXj.js} +2 -2
  17. package/dist/{ParagraphEditor-DQEOFc0K.js → ParagraphEditor-C87tkmtE.js} +12 -12
  18. package/dist/{RestoreVersionDialog-CHwngBae.js → RestoreVersionDialog-Db5rZRMA.js} +2 -2
  19. package/dist/RichTextEditorContent-BmTcV2-a.js +152 -0
  20. package/dist/{SaveBlockDialog-tZqZzPjW.js → SaveBlockDialog-CDCzx6Bo.js} +15 -15
  21. package/dist/{SavedBlocksBrowserModal-Bdj3GOD_.js → SavedBlocksBrowserModal-DQR6kJB1.js} +101 -101
  22. package/dist/{SavedBlocksPanels-2sBxAH9w.js → SavedBlocksPanels-DFzV0CRD.js} +1 -1
  23. package/dist/{SavedBlocksPickBar-DTjQBR00.js → SavedBlocksPickBar-XyXmnSnO.js} +2 -2
  24. package/dist/{TemplateScoringPanel-B6nHSrBD.js → TemplateScoringPanel-CpyEKMzC.js} +4 -4
  25. package/dist/{TestEmailModal-DuHbzO37.js → TestEmailModal-DIfJy9eE.js} +8 -8
  26. package/dist/{TestEmailPanel-TpwP-eK_.js → TestEmailPanel-C8Wx5yPS.js} +1 -1
  27. package/dist/{TitleEditor-C0JQJu38.js → TitleEditor-iNFOisr4.js} +11 -11
  28. package/dist/{TplModal-BMGmhquu.js → TplModal-CowM3o_F.js} +5 -5
  29. package/dist/{VersionHistoryMenu-D2x6MMYx.js → VersionHistoryMenu-CV90OhXs.js} +2 -2
  30. package/dist/{VersionHistoryPanels-aGlUVEGF.js → VersionHistoryPanels-BE3pplJG.js} +1 -1
  31. package/dist/{VersionPreviewBanner-61t3_Z-a.js → VersionPreviewBanner-BwUWBtlH.js} +1 -1
  32. package/dist/{blockTypeIcons-BsNup009.js → blockTypeIcons-DQsKtHik.js} +1 -1
  33. package/dist/bundle-stats.json +6 -6
  34. package/dist/cdn/chunks/{AiChatSidebar-CqWvtRwB.js → AiChatSidebar-BEnIWn6s.js} +4 -4
  35. package/dist/cdn/chunks/AiChatSidebar-BEnIWn6s.js.map +1 -0
  36. package/dist/cdn/chunks/{AiFeatureMenu-DoFrLcXJ.js → AiFeatureMenu-DMl23akc.js} +4 -4
  37. package/dist/cdn/chunks/{AiFeatureMenu-DoFrLcXJ.js.map → AiFeatureMenu-DMl23akc.js.map} +1 -1
  38. package/dist/cdn/chunks/{BlockIssueBadge-B_mUH69a.js → BlockIssueBadge-CloK4k3M.js} +3 -3
  39. package/dist/cdn/chunks/{BlockIssueBadge-B_mUH69a.js.map → BlockIssueBadge-CloK4k3M.js.map} +1 -1
  40. package/dist/cdn/chunks/{BlockPreviewCanvas-CSIxs7hr.js → BlockPreviewCanvas-DSiJFJa0.js} +5 -5
  41. package/dist/cdn/chunks/{BlockPreviewCanvas-CSIxs7hr.js.map → BlockPreviewCanvas-DSiJFJa0.js.map} +1 -1
  42. package/dist/cdn/chunks/{CloudHeaderExtras-Dgtr7WaE.js → CloudHeaderExtras-b4KpVeUN.js} +3 -3
  43. package/dist/cdn/chunks/{CloudHeaderExtras-Dgtr7WaE.js.map → CloudHeaderExtras-b4KpVeUN.js.map} +1 -1
  44. package/dist/cdn/chunks/{CloudPanels-B91lUmof.js → CloudPanels-DzwOq9lp.js} +7 -7
  45. package/dist/cdn/chunks/CloudPanels-DzwOq9lp.js.map +1 -0
  46. package/dist/cdn/chunks/{CollaboratorBar-CQwPWoFu.js → CollaboratorBar-WXKvpoGK.js} +3 -3
  47. package/dist/cdn/chunks/{CollaboratorBar-CQwPWoFu.js.map → CollaboratorBar-WXKvpoGK.js.map} +1 -1
  48. package/dist/cdn/chunks/{ColorPicker-CdrKX48J.js → ColorPicker-BubTDiS1.js} +6 -6
  49. package/dist/cdn/chunks/{ColorPicker-CdrKX48J.js.map → ColorPicker-BubTDiS1.js.map} +1 -1
  50. package/dist/cdn/chunks/{CommentsPanel-BJNgTmAA.js → CommentsPanel-DAA2VqX4.js} +2 -2
  51. package/dist/cdn/chunks/{CommentsPanel-BJNgTmAA.js.map → CommentsPanel-DAA2VqX4.js.map} +1 -1
  52. package/dist/cdn/chunks/{CommentsSidebar-D6VIIPhB.js → CommentsSidebar-Ci0M2ePp.js} +5 -5
  53. package/dist/cdn/chunks/CommentsSidebar-Ci0M2ePp.js.map +1 -0
  54. package/dist/cdn/chunks/{CountdownBlock-BRwXUvGU.js → CountdownBlock-rK055jpy.js} +2 -2
  55. package/dist/cdn/chunks/{CountdownBlock-BRwXUvGU.js.map → CountdownBlock-rK055jpy.js.map} +1 -1
  56. package/dist/cdn/chunks/{CountdownToolbar-CVaU5WG6.js → CountdownToolbar-CzZq26Vp.js} +3 -3
  57. package/dist/cdn/chunks/{CountdownToolbar-CVaU5WG6.js.map → CountdownToolbar-CzZq26Vp.js.map} +1 -1
  58. package/dist/cdn/chunks/{DesignReferenceSidebar-BvOwE1kg.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-MJZxkScz.js → IssuesPanel-BXAN2_al.js} +5 -5
  61. package/dist/cdn/chunks/{IssuesPanel-MJZxkScz.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-bNuN6PTV.js → MergeTagModeToggle-B_mUYJo4.js} +3 -3
  65. package/dist/cdn/chunks/{MergeTagModeToggle-bNuN6PTV.js.map → MergeTagModeToggle-B_mUYJo4.js.map} +1 -1
  66. package/dist/cdn/chunks/{ParagraphEditor-BU8tlFbL.js → ParagraphEditor-DCDHMcmx.js} +10 -10
  67. package/dist/cdn/chunks/ParagraphEditor-DCDHMcmx.js.map +1 -0
  68. package/dist/cdn/chunks/{RestoreVersionDialog-vdRFfyy0.js → RestoreVersionDialog-BkSSwf-Q.js} +3 -3
  69. package/dist/cdn/chunks/{RestoreVersionDialog-vdRFfyy0.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-DWaeqcM8.js → SaveBlockDialog-BH774Nt0.js} +14 -14
  73. package/dist/cdn/chunks/{SaveBlockDialog-DWaeqcM8.js.map → SaveBlockDialog-BH774Nt0.js.map} +1 -1
  74. package/dist/cdn/chunks/{SavedBlocksBrowserModal-qC7UhW74.js → SavedBlocksBrowserModal-CSUqw_dD.js} +6 -6
  75. package/dist/cdn/chunks/{SavedBlocksBrowserModal-qC7UhW74.js.map → SavedBlocksBrowserModal-CSUqw_dD.js.map} +1 -1
  76. package/dist/cdn/chunks/{SavedBlocksPanels-BvtjtdsY.js → SavedBlocksPanels-B6ApbCjG.js} +2 -2
  77. package/dist/cdn/chunks/{SavedBlocksPanels-BvtjtdsY.js.map → SavedBlocksPanels-B6ApbCjG.js.map} +1 -1
  78. package/dist/cdn/chunks/{SavedBlocksPickBar-CxXjF3RN.js → SavedBlocksPickBar-C9MXSRcR.js} +3 -3
  79. package/dist/cdn/chunks/{SavedBlocksPickBar-CxXjF3RN.js.map → SavedBlocksPickBar-C9MXSRcR.js.map} +1 -1
  80. package/dist/cdn/chunks/{TemplateScoringPanel-CroWaWqy.js → TemplateScoringPanel-QVOxc9TZ.js} +50 -50
  81. package/dist/cdn/chunks/TemplateScoringPanel-QVOxc9TZ.js.map +1 -0
  82. package/dist/cdn/chunks/{TestEmailModal-iWxAZRRq.js → TestEmailModal-_CZvaO58.js} +9 -9
  83. package/dist/cdn/chunks/{TestEmailModal-iWxAZRRq.js.map → TestEmailModal-_CZvaO58.js.map} +1 -1
  84. package/dist/cdn/chunks/{TestEmailPanel-CGUtEuwp.js → TestEmailPanel-DXLxvyrD.js} +2 -2
  85. package/dist/cdn/chunks/{TestEmailPanel-CGUtEuwp.js.map → TestEmailPanel-DXLxvyrD.js.map} +1 -1
  86. package/dist/cdn/chunks/{TitleEditor-DvXUW2j-.js → TitleEditor-BuCOahW3.js} +9 -9
  87. package/dist/cdn/chunks/TitleEditor-BuCOahW3.js.map +1 -0
  88. package/dist/cdn/chunks/{TplModal-X-qNoLGZ.js → TplModal-CqY8R3hn.js} +6 -6
  89. package/dist/cdn/chunks/TplModal-CqY8R3hn.js.map +1 -0
  90. package/dist/cdn/chunks/{VersionHistoryMenu-yKzwxf7n.js → VersionHistoryMenu-DDjIBvad.js} +3 -3
  91. package/dist/cdn/chunks/{VersionHistoryMenu-yKzwxf7n.js.map → VersionHistoryMenu-DDjIBvad.js.map} +1 -1
  92. package/dist/cdn/chunks/{VersionHistoryPanels--hQaanjH.js → VersionHistoryPanels-BuTw04T5.js} +2 -2
  93. package/dist/cdn/chunks/{VersionHistoryPanels--hQaanjH.js.map → VersionHistoryPanels-BuTw04T5.js.map} +1 -1
  94. package/dist/cdn/chunks/{VersionPreviewBanner-DWU_SqMd.js → VersionPreviewBanner-fGAv20qI.js} +2 -2
  95. package/dist/cdn/chunks/{VersionPreviewBanner-DWU_SqMd.js.map → VersionPreviewBanner-fGAv20qI.js.map} +1 -1
  96. package/dist/cdn/chunks/{createCloudRuntime-DD6ppb71.js → createCloudRuntime-JFE-sxbT.js} +2 -2
  97. package/dist/cdn/chunks/{createCloudRuntime-DD6ppb71.js.map → createCloudRuntime-JFE-sxbT.js.map} +1 -1
  98. package/dist/cdn/chunks/{extensions-BUPHNpKD.js → extensions-7z04EIGg.js} +3 -3
  99. package/dist/cdn/chunks/{extensions-BUPHNpKD.js.map → extensions-7z04EIGg.js.map} +1 -1
  100. package/dist/cdn/chunks/keys-DQp8x7Nx.js +12 -0
  101. package/dist/cdn/chunks/keys-DQp8x7Nx.js.map +1 -0
  102. package/dist/cdn/chunks/src-CLoCCDfs.js.map +1 -1
  103. package/dist/cdn/chunks/{src-DtnvR_Hl.js → src-CiAi5oRe.js} +2 -2
  104. package/dist/cdn/chunks/{src-DtnvR_Hl.js.map → src-CiAi5oRe.js.map} +1 -1
  105. package/dist/cdn/chunks/{useCloudI18n-DbsLlCbZ.js → useCloudI18n-MxgHWrV6.js} +2 -2
  106. package/dist/cdn/chunks/{useCloudI18n-DbsLlCbZ.js.map → useCloudI18n-MxgHWrV6.js.map} +1 -1
  107. package/dist/cdn/chunks/{useEditorCore-ChlgO2GN.js → useEditorCore-ehUSEsbw.js} +548 -511
  108. package/dist/cdn/chunks/useEditorCore-ehUSEsbw.js.map +1 -0
  109. package/dist/cdn/chunks/{useEditorRoot-BlF1WPeu.js → useEditorRoot-CteADR3y.js} +2 -2
  110. package/dist/cdn/chunks/{useEditorRoot-BlF1WPeu.js.map → useEditorRoot-CteADR3y.js.map} +1 -1
  111. package/dist/cdn/chunks/{useI18n-BdxNNw6j.js → useI18n-Ct1VIFcf.js} +2 -2
  112. package/dist/cdn/chunks/{useI18n-BdxNNw6j.js.map → useI18n-Ct1VIFcf.js.map} +1 -1
  113. package/dist/cdn/chunks/useMergeTag-TLhF2fGK.js +46 -0
  114. package/dist/cdn/chunks/useMergeTag-TLhF2fGK.js.map +1 -0
  115. package/dist/cdn/chunks/{usePopoverPosition-Dw1nTSNx.js → usePopoverPosition-BxVWE5_0.js} +2 -2
  116. package/dist/cdn/chunks/{usePopoverPosition-Dw1nTSNx.js.map → usePopoverPosition-BxVWE5_0.js.map} +1 -1
  117. package/dist/cdn/chunks/{useScrollToBlock-BMis3-PR.js → useScrollToBlock-Cz3fpgTK.js} +2 -2
  118. package/dist/cdn/chunks/{useScrollToBlock-BMis3-PR.js.map → useScrollToBlock-Cz3fpgTK.js.map} +1 -1
  119. package/dist/cdn/editor.css +1 -1
  120. package/dist/cdn/editor.js +1722 -2071
  121. package/dist/cdn/editor.js.map +1 -1
  122. package/dist/{createCloudRuntime-zNcMjRgb.js → createCloudRuntime-DbTFm1ES.js} +1 -1
  123. package/dist/{extensions-kOYwOh72.js → extensions-Mf8iHey9.js} +2 -2
  124. package/dist/index.d.ts +41 -0
  125. package/dist/keys-C3P1yxnr.js +10 -0
  126. package/dist/style.css +1 -1
  127. package/dist/templatical-editor.js +1890 -2240
  128. package/dist/{useCloudI18n-BlMajbKp.js → useCloudI18n-BKoiYsWZ.js} +1 -1
  129. package/dist/{useEditorCore-CwQYCSXO.js → useEditorCore-DdkQuTHl.js} +1101 -1064
  130. package/dist/{useEditorRoot-C92q8uV-.js → useEditorRoot-DkRGTQRs.js} +1 -1
  131. package/dist/{useI18n-Ce_BRzYv.js → useI18n-CL6RfPzK.js} +1 -1
  132. package/dist/useMergeTag-gSuYus-M.js +44 -0
  133. package/dist/{usePopoverPosition-CPk7Twye.js → usePopoverPosition-CWxaIWd3.js} +1 -1
  134. package/dist/{useScrollToBlock-DvpMfWs2.js → useScrollToBlock-CdI8fGqt.js} +1 -1
  135. package/package.json +7 -7
  136. package/dist/RichTextEditorContent-C_9xi7dD.js +0 -153
  137. package/dist/cdn/chunks/AiChatSidebar-CqWvtRwB.js.map +0 -1
  138. package/dist/cdn/chunks/CloudPanels-B91lUmof.js.map +0 -1
  139. package/dist/cdn/chunks/CommentsSidebar-D6VIIPhB.js.map +0 -1
  140. package/dist/cdn/chunks/DesignReferenceSidebar-BvOwE1kg.js.map +0 -1
  141. package/dist/cdn/chunks/ParagraphEditor-BU8tlFbL.js.map +0 -1
  142. package/dist/cdn/chunks/RichTextEditorContent-C1-5I8Df.js +0 -123
  143. package/dist/cdn/chunks/RichTextEditorContent-C1-5I8Df.js.map +0 -1
  144. package/dist/cdn/chunks/TemplateScoringPanel-CroWaWqy.js.map +0 -1
  145. package/dist/cdn/chunks/TitleEditor-DvXUW2j-.js.map +0 -1
  146. package/dist/cdn/chunks/TplModal-X-qNoLGZ.js.map +0 -1
  147. package/dist/cdn/chunks/keys-BOn5i9jV.js +0 -12
  148. package/dist/cdn/chunks/keys-BOn5i9jV.js.map +0 -1
  149. package/dist/cdn/chunks/useEditorCore-ChlgO2GN.js.map +0 -1
  150. package/dist/cdn/chunks/useMergeTag-CI2WUNrR.js +0 -46
  151. package/dist/cdn/chunks/useMergeTag-CI2WUNrR.js.map +0 -1
  152. package/dist/keys-BOhFlHsv.js +0 -10
  153. package/dist/scan-line-E7w4yQyv.js +0 -31
  154. package/dist/useMergeTag-CrXJ49lr.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, M as lt, N as ut, O as dt, P as ft, S as pt, T as mt, U as ht, V as gt, W as _t, _ as vt, a as yt, b as bt, c as xt, d as St, f as Ct, g as wt, h as Tt, j as Et, k as Dt, m as Ot, n as kt, o as At, p as jt, r as Mt, s as Nt, u as Pt, v as Ft, w as It, x as Lt, y as Rt, z as zt } from "./keys-BOhFlHsv.js";
7
- import { t as Bt } from "./useI18n-Ce_BRzYv.js";
8
- import { t as Vt } from "./logger-BBlvSn6q.js";
9
- import { a as Ht, i as Ut, o as Wt, r as Gt, t as Kt } from "./usePopoverPosition-CPk7Twye.js";
10
- import { t as qt } from "./createLucideIcon-Bvw1Zx56.js";
11
- import { t as Jt } from "./loader-circle-t-SVgmJ3.js";
12
- import { t as Yt } from "./message-circle-DtwKrlhN.js";
13
- import { t as Xt } from "./trash-rYMzzHZd.js";
14
- import { t as Zt } from "./triangle-alert-DxnFj4-B.js";
15
- import { t as Qt } from "./upload-DZu1adQz.js";
16
- import { t as $t } from "./LoadingTrack-SQXoZVf2.js";
17
- import { t as en } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { t as tn } from "./useEditorRoot-C92q8uV-.js";
19
- import "./useCloudI18n-BlMajbKp.js";
20
- import { t as nn } from "./useMergeTag-CrXJ49lr.js";
21
- import { t as rn } 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 an(e) {
23
+ function ln(e) {
24
24
  return e instanceof Error ? e : Error(String(e), { cause: e });
25
25
  }
26
- function on(e, t) {
26
+ function un(e, t) {
27
27
  try {
28
28
  t();
29
29
  } catch (t) {
30
- e?.(an(t));
30
+ e?.(ln(t));
31
31
  }
32
32
  }
33
- function sn(e) {
33
+ function dn(e) {
34
34
  return e === "1" ? 1 : e === "3" ? 3 : 2;
35
35
  }
36
- function cn(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 cn(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 >= sn(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 cn(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 >= sn(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 cn(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
- on(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 cn(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 cn(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 cn(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 cn(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 ln = 50, un = 300, dn = 1500;
279
- function fn(e) {
280
- let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = ln } = 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 fn(e) {
295
295
  if (l && l.blockId === e) {
296
296
  clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
297
297
  l = null;
298
- }, un);
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
- }, un)
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
- }, dn);
312
+ }, hn);
313
313
  }
314
314
  function b() {
315
315
  if (a.value.length === 0) return;
@@ -341,33 +341,33 @@ function fn(e) {
341
341
  destroy: C
342
342
  };
343
343
  }
344
- function pn(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 mn(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(), pn(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(), pn(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 mn(e) {
388
388
  updateBlockProperty: l
389
389
  };
390
390
  }
391
- var hn = 2e3;
392
- function gn(e) {
393
- let { content: t, isDirty: n, onChange: r, debounce: i = hn, 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 gn(e) {
425
425
  destroy: h
426
426
  };
427
427
  }
428
- function _n(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 _n(e) {
443
443
  hasHiddenBlocks: n
444
444
  };
445
445
  }
446
- function vn(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 vn(e) {
473
473
  needsFetch: i
474
474
  };
475
475
  }
476
- function yn(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 yn(e, t) {
487
487
  t.record(), o(e);
488
488
  };
489
489
  }
490
- function bn(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 bn(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
- on(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 bn(e) {
573
573
  remove: h
574
574
  };
575
575
  }
576
- var xn = "templatical:saved-blocks";
577
- function Sn(e = {}) {
578
- let t = e.key ?? xn;
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 Sn(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 Sn(e = {}) {
626
626
  }
627
627
  };
628
628
  }
629
- function Cn(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
- on(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 Cn(e) {
704
704
  restore: v
705
705
  };
706
706
  }
707
- function wn(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 wn(e) {
735
735
  return t !== null && e.author.id === t.id;
736
736
  }
737
737
  function b(t) {
738
- let n = an(t);
738
+ let n = ln(t);
739
739
  throw e.onError?.(n), n;
740
740
  }
741
741
  function x(t) {
742
- on(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 wn(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 wn(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 Tn(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 Tn(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 En = /* @__PURE__ */ new Set(), Dn = 0, On = 0;
906
- function kn() {
907
- let e = ++On;
908
- return En.add(e), Dn === 0 && (Dn = 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: () => En.size <= 1 || Dn === e,
910
+ isActive: () => An.size <= 1 || jn === e,
911
911
  claim: () => {
912
- Dn = e;
912
+ jn = e;
913
913
  },
914
914
  dispose: () => {
915
- if (En.delete(e), Dn === e) {
916
- let e = Array.from(En);
917
- Dn = 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 An = 500;
925
- function jn(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 jn(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 jn(e) {
959
959
  }
960
960
  o = setTimeout(() => {
961
961
  o = null, l();
962
- }, An);
962
+ }, Pn);
963
963
  }
964
964
  }
965
965
  return s(() => [e.isActive(), e.getRecipient?.()], ([e]) => {
@@ -968,20 +968,20 @@ function jn(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 Mn(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 Mn(e) {
1014
1014
  lookup: a
1015
1015
  };
1016
1016
  }
1017
- function Nn(e) {
1018
- let t = p(bt, 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 Nn(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 Nn(e) {
1044
1044
  }
1045
1045
  //#endregion
1046
1046
  //#region src/composables/useMergeTagPicker.ts
1047
- function Pn() {
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 Pn() {
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 Pn() {
1074
1074
  }
1075
1075
  //#endregion
1076
1076
  //#region src/composables/useLogicTagPicker.ts
1077
- function Fn() {
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 Fn() {
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 Fn() {
1105
1105
  }
1106
1106
  //#endregion
1107
1107
  //#region src/composables/useTemplateLint.ts
1108
- function In(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 Ln(e) {
1112
- let t = _([]), n = _(!1), r = _(!1), i = f(null), a = In(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 Ln(e) {
1150
1150
  }
1151
1151
  //#endregion
1152
1152
  //#region src/utils/blockTypeLabels.ts
1153
- function Rn(e, t) {
1153
+ function Hn(e, t) {
1154
1154
  return t.blocks[e] ?? e;
1155
1155
  }
1156
- function zn(e, t, n = []) {
1157
- if (e.type !== "custom") return Rn(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 Bn(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 Bn(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 ? zn(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 Bn(e, t, n = []) {
1256
1256
  }
1257
1257
  //#endregion
1258
1258
  //#region src/composables/useUiTheme.ts
1259
- function Vn(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 Hn = {
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 Hn = {
1286
1286
  dangerLight: "--tpl-danger-light",
1287
1287
  canvasBg: "--tpl-canvas-bg"
1288
1288
  };
1289
- function Un({ 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(Hn)) {
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 Un({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
1298
1298
  }
1299
1299
  //#endregion
1300
1300
  //#region src/composables/useBlockRegistry.ts
1301
- function Wn() {
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 Wn() {
1338
1338
  strictFilters: !1
1339
1339
  }).parseAndRender(t.template, e.fieldValues);
1340
1340
  } catch (t) {
1341
- return Vt.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 Wn() {
1356
1356
  }
1357
1357
  //#endregion
1358
1358
  //#region src/composables/useCustomBlockStylesheets.ts
1359
- function Gn(e, t) {
1360
- return F(() => {
1361
- let n = Kn(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 Gn(e, t) {
1370
1370
  return i;
1371
1371
  });
1372
1372
  }
1373
- function Kn(e) {
1373
+ function Xn(e) {
1374
1374
  let t = /* @__PURE__ */ new Set();
1375
- return qn(e, t), t;
1375
+ return Zn(e, t), t;
1376
1376
  }
1377
- function qn(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) qn(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 Jn = [
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 Yn(e, t) {
1447
- for (let n of Jn) {
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,33 +1454,65 @@ function Yn(e, t) {
1454
1454
  }
1455
1455
  //#endregion
1456
1456
  //#region src/utils/resolveHtmlBlockPreview.ts
1457
- function Xn(e) {
1457
+ function er(e) {
1458
1458
  return typeof e == "boolean" ? e : e?.enabled ?? !1;
1459
1459
  }
1460
1460
  //#endregion
1461
+ //#region src/utils/templateSettingsFields.ts
1462
+ var tr = {
1463
+ width: "layout",
1464
+ backgroundColor: "appearance",
1465
+ textColor: "appearance",
1466
+ linkColor: "appearance",
1467
+ linkUnderline: "appearance",
1468
+ fontFamily: "appearance",
1469
+ locale: "language",
1470
+ preheaderText: "preheader"
1471
+ }, nr = Object.keys(tr);
1472
+ function rr(e) {
1473
+ return Object.prototype.hasOwnProperty.call(tr, e);
1474
+ }
1475
+ function ir(e) {
1476
+ let t = e?.fields;
1477
+ if (t === void 0 || t === !0) return {
1478
+ fields: new Set(nr),
1479
+ unknown: []
1480
+ };
1481
+ if (t === !1) return {
1482
+ fields: /* @__PURE__ */ new Set(),
1483
+ unknown: []
1484
+ };
1485
+ let n = /* @__PURE__ */ new Set(), r = [];
1486
+ for (let e of t) rr(e) ? n.add(e) : r.push(String(e));
1487
+ return {
1488
+ fields: n,
1489
+ unknown: r
1490
+ };
1491
+ }
1492
+ //#endregion
1461
1493
  //#region src/utils/collectOffPaletteDefaults.ts
1462
- function Zn(e) {
1494
+ function ar(e) {
1463
1495
  return typeof e == "object" && !!e && !Array.isArray(e);
1464
1496
  }
1465
- function Qn(e, t, n) {
1466
- let r = new Set(e.map((e) => Gt(e))), i = [], a = (e, t) => {
1467
- for (let [n, o] of Object.entries(e)) typeof o == "string" ? o !== "" && /color$/i.test(n) && !r.has(Gt(o)) && i.push(`${t}.${n}: ${o}`) : Zn(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}`);
1468
1500
  }, o = t;
1469
- for (let [e, t] of Object.entries(ze)) {
1501
+ for (let [e, t] of Object.entries(Be)) {
1470
1502
  let n = o?.[e];
1471
1503
  a({
1472
1504
  ...t,
1473
- ...Zn(n) ? n : {}
1505
+ ...ar(n) ? n : {}
1474
1506
  }, e);
1475
1507
  }
1476
1508
  return a({
1477
- ...Pe,
1509
+ ...Fe,
1478
1510
  ...n ?? {}
1479
1511
  }, "template"), i;
1480
1512
  }
1481
1513
  //#endregion
1482
1514
  //#region src/utils/localizedBlockDefaults.ts
1483
- function $n(e) {
1515
+ function sr(e) {
1484
1516
  return {
1485
1517
  title: { content: `<p>${e.blockDefaults.title}</p>` },
1486
1518
  paragraph: { content: `<p>${e.blockDefaults.paragraph}</p>` },
@@ -1489,7 +1521,7 @@ function $n(e) {
1489
1521
  }
1490
1522
  //#endregion
1491
1523
  //#region src/i18n/index.ts
1492
- var er = /* #__PURE__ */ Object.assign({
1524
+ var cr = /* #__PURE__ */ Object.assign({
1493
1525
  "./locales/ca.ts": () => import("./ca-C0hfqt4U.js"),
1494
1526
  "./locales/de.ts": () => import("./de-C6J2Iae8.js"),
1495
1527
  "./locales/en.ts": () => import("./en-BaUYOQi8.js"),
@@ -1497,54 +1529,54 @@ var er = /* #__PURE__ */ Object.assign({
1497
1529
  "./locales/fr.ts": () => import("./fr-L8DR73mK.js"),
1498
1530
  "./locales/nl.ts": () => import("./nl-GDWeuX18.js"),
1499
1531
  "./locales/pt-BR.ts": () => import("./pt-BR-B1AVVhWj.js")
1500
- }), tr = /* #__PURE__ */ Object.assign({
1532
+ }), lr = /* #__PURE__ */ Object.assign({
1501
1533
  "./locales/cloud/de.ts": () => import("./de-BytZwgn6.js"),
1502
1534
  "./locales/cloud/en.ts": () => import("./en-DyOSV0lY.js"),
1503
1535
  "./locales/cloud/pt-BR.ts": () => import("./pt-BR-C1WLSGDh.js")
1504
1536
  });
1505
- function nr(e) {
1537
+ function ur(e) {
1506
1538
  return Object.keys(e).map((e) => e.match(/\/([^/]+)\.ts$/)?.[1]).filter((e) => !!e);
1507
1539
  }
1508
- var rr = nr(er), ir = nr(tr);
1509
- function ar(e) {
1540
+ var dr = ur(cr), fr = ur(lr);
1541
+ function pr(e) {
1510
1542
  return e.trim().replace(/_/g, "-").toLowerCase();
1511
1543
  }
1512
- function or(e, t) {
1513
- let n = ar(e);
1514
- return t.find((e) => ar(e) === n);
1544
+ function mr(e, t) {
1545
+ let n = pr(e);
1546
+ return t.find((e) => pr(e) === n);
1515
1547
  }
1516
- function sr(e) {
1517
- return ar(e).split("-")[0];
1548
+ function hr(e) {
1549
+ return pr(e).split("-")[0];
1518
1550
  }
1519
- function cr(e, t) {
1520
- return or(e, t) ?? or(sr(e), t);
1551
+ function gr(e, t) {
1552
+ return mr(e, t) ?? mr(hr(e), t);
1521
1553
  }
1522
- function lr(e, t) {
1523
- return cr(e, t) ?? "en";
1554
+ function _r(e, t) {
1555
+ return gr(e, t) ?? "en";
1524
1556
  }
1525
- async function ur(e) {
1526
- let t = er[`./locales/${lr(e, rr)}.ts`];
1557
+ async function vr(e) {
1558
+ let t = cr[`./locales/${_r(e, dr)}.ts`];
1527
1559
  return (await t()).default;
1528
1560
  }
1529
- async function dr(e) {
1530
- let t = tr[`./locales/cloud/${lr(e, ir)}.ts`];
1561
+ async function yr(e) {
1562
+ let t = lr[`./locales/cloud/${_r(e, fr)}.ts`];
1531
1563
  return (await t()).default;
1532
1564
  }
1533
- function fr(e) {
1534
- return cr(e, rr) !== void 0;
1565
+ function br(e) {
1566
+ return gr(e, dr) !== void 0;
1535
1567
  }
1536
- function pr(e) {
1537
- return cr(e, ir) !== void 0;
1568
+ function xr(e) {
1569
+ return gr(e, fr) !== void 0;
1538
1570
  }
1539
- function mr() {
1540
- return [...rr];
1571
+ function Sr() {
1572
+ return [...dr];
1541
1573
  }
1542
- function hr() {
1543
- return [...ir];
1574
+ function Cr() {
1575
+ return [...fr];
1544
1576
  }
1545
1577
  //#endregion
1546
1578
  //#region src/i18n/contentDefaults.ts
1547
- var gr = {
1579
+ var wr = {
1548
1580
  en: {
1549
1581
  video: "Video",
1550
1582
  days: "Days",
@@ -1602,17 +1634,17 @@ var gr = {
1602
1634
  expired: "Aquesta oferta ha caducat"
1603
1635
  }
1604
1636
  };
1605
- Object.keys(gr);
1606
- var _r = new Map(Object.keys(gr).map((e) => [e.toLowerCase(), e]));
1607
- function vr(e) {
1608
- if (!e) return gr.en;
1609
- let t = e.trim().replace(/_/g, "-").toLowerCase(), n = _r.get(t);
1610
- if (n) return gr[n];
1611
- let r = _r.get(sr(t));
1612
- return r ? gr[r] : gr.en;
1613
- }
1614
- function yr(e) {
1615
- let t = vr(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);
1616
1648
  return {
1617
1649
  video: { alt: t.video },
1618
1650
  countdown: {
@@ -1626,8 +1658,8 @@ function yr(e) {
1626
1658
  }
1627
1659
  //#endregion
1628
1660
  //#region src/utils/resolveFieldColors.ts
1629
- function br(e, t) {
1630
- let n = Wt({ presets: e.presets }, Ht), 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;
1631
1663
  return {
1632
1664
  presets: r ? t.presets : n.presets,
1633
1665
  allowCustom: t.allowCustom !== !1 && i,
@@ -1639,9 +1671,9 @@ function br(e, t) {
1639
1671
  }
1640
1672
  //#endregion
1641
1673
  //#region src/utils/collectColorFieldIssues.ts
1642
- function xr(e, t) {
1674
+ function kr(e, t) {
1643
1675
  let n = [], r = (r, i) => {
1644
- let a = br(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}`;
1645
1677
  if (a.invalidPresets.length > 0 && n.push({
1646
1678
  id: s("invalid-presets"),
1647
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." : "")
@@ -1652,8 +1684,8 @@ function xr(e, t) {
1652
1684
  id: s("allow-custom-ignored"),
1653
1685
  message: `${o}: allowCustom: true is ignored because colors.allowCustom is false — a field can narrow the editor-wide palette, never unlock it.`
1654
1686
  }), !a.allowCustom && a.presets.length > 0) {
1655
- let e = r.default ?? "", t = new Set(a.presets.map((e) => Gt(e)));
1656
- e !== "" && !t.has(Gt(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({
1657
1689
  id: s("off-palette-default"),
1658
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.`
1659
1691
  });
@@ -1665,7 +1697,7 @@ function xr(e, t) {
1665
1697
  }
1666
1698
  //#endregion
1667
1699
  //#region src/utils/keyboardShortcuts.ts
1668
- function Sr(e) {
1700
+ function Ar(e) {
1669
1701
  for (let t of e.composedPath()) {
1670
1702
  if (!(t instanceof HTMLElement)) continue;
1671
1703
  if (t.isContentEditable) return !0;
@@ -1674,18 +1706,18 @@ function Sr(e) {
1674
1706
  }
1675
1707
  return !1;
1676
1708
  }
1677
- function Cr(e, t) {
1709
+ function jr(e, t) {
1678
1710
  let n = e.metaKey || e.ctrlKey;
1679
1711
  if (n && e.key.toLowerCase() === "s") {
1680
1712
  e.preventDefault(), t.onSave?.();
1681
1713
  return;
1682
1714
  }
1683
1715
  if (n && e.key.toLowerCase() === "z") {
1684
- if (Sr(e)) return;
1716
+ if (Ar(e)) return;
1685
1717
  e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
1686
1718
  return;
1687
1719
  }
1688
- if (t.isPicking?.() && !Sr(e)) {
1720
+ if (t.isPicking?.() && !Ar(e)) {
1689
1721
  if (e.key === "Escape") {
1690
1722
  e.preventDefault(), t.onCancelPick?.();
1691
1723
  return;
@@ -1703,11 +1735,11 @@ function Cr(e, t) {
1703
1735
  t.selectBlock(null);
1704
1736
  return;
1705
1737
  }
1706
- (e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Sr(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()));
1707
1739
  }
1708
1740
  //#endregion
1709
1741
  //#region src/utils/mergeTagLabelSegments.ts
1710
- function wr(e, t, n, r = !1) {
1742
+ function Mr(e, t, n, r = !1) {
1711
1743
  if (!e) return [];
1712
1744
  let i = RegExp(`(${n.value.source}|${n.logic.source})`, "g"), a = [], o = 0, s;
1713
1745
  for (; (s = i.exec(e)) !== null;) {
@@ -1716,18 +1748,18 @@ function wr(e, t, n, r = !1) {
1716
1748
  value: e.slice(o, s.index)
1717
1749
  });
1718
1750
  let i = s[0];
1719
- if (fe(i, n)) {
1720
- let e = r ? ae(i, t) : void 0;
1751
+ if (pe(i, n)) {
1752
+ let e = r ? oe(i, t) : void 0;
1721
1753
  a.push(e === void 0 ? {
1722
1754
  type: "tag",
1723
- value: je(i, t)
1755
+ value: Me(i, t)
1724
1756
  } : {
1725
1757
  type: "text",
1726
1758
  value: e
1727
1759
  });
1728
- } else ue(i, n) ? a.push({
1760
+ } else de(i, n) ? a.push({
1729
1761
  type: "tag",
1730
- value: ge(i, n)
1762
+ value: _e(i, n)
1731
1763
  }) : a.push({
1732
1764
  type: "text",
1733
1765
  value: i
@@ -1741,27 +1773,27 @@ function wr(e, t, n, r = !1) {
1741
1773
  }
1742
1774
  //#endregion
1743
1775
  //#region src/components/MergeTagPreviewText.vue
1744
- var Tr = L({
1776
+ var Nr = I({
1745
1777
  name: "MergeTagPreviewText",
1746
1778
  props: { text: {
1747
1779
  type: String,
1748
1780
  required: !0
1749
1781
  } },
1750
1782
  setup(e) {
1751
- let t = p(mt, []), n = p(Dt, Fe.liquid), r = p(_t, null), i = F(() => wr(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));
1752
1784
  return () => i.value.map((e, t) => e.type === "tag" ? b("span", {
1753
1785
  key: t,
1754
1786
  class: "tpl-merge-tag-label"
1755
1787
  }, e.value) : e.value);
1756
1788
  }
1757
- }), Er = ["href"], Dr = /* @__PURE__ */ L({
1789
+ }), Pr = ["href"], Fr = /* @__PURE__ */ I({
1758
1790
  __name: "ButtonBlock",
1759
1791
  props: {
1760
1792
  block: {},
1761
1793
  viewport: {}
1762
1794
  },
1763
1795
  setup(e) {
1764
- let t = e, n = F(() => {
1796
+ let t = e, n = P(() => {
1765
1797
  let e = {
1766
1798
  display: "inline-block",
1767
1799
  padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
@@ -1774,18 +1806,18 @@ var Tr = L({
1774
1806
  textAlign: "center"
1775
1807
  };
1776
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;
1777
- }), r = F(() => ({ textAlign: t.block.align ?? "center" }));
1809
+ }), r = P(() => ({ textAlign: t.block.align ?? "center" }));
1778
1810
  return (t, i) => (O(), S("div", { style: u(r.value) }, [x("a", {
1779
1811
  href: e.block.url || "#",
1780
1812
  style: u(n.value),
1781
1813
  class: "tpl:cursor-default",
1782
- onClick: i[0] ||= R(() => {}, ["prevent"])
1783
- }, [w(Tr, { text: e.block.text }, null, 8, ["text"])], 12, Er)], 4));
1814
+ onClick: i[0] ||= L(() => {}, ["prevent"])
1815
+ }, [w(Nr, { text: e.block.text }, null, 8, ["text"])], 12, Pr)], 4));
1784
1816
  }
1785
- }), Or = qt("bookmark", [["path", {
1817
+ }), Ir = Zt("bookmark", [["path", {
1786
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",
1787
1819
  key: "oz39mx"
1788
- }]]), kr = qt("box", [
1820
+ }]]), Lr = Zt("box", [
1789
1821
  ["path", {
1790
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",
1791
1823
  key: "hh9hay"
@@ -1798,13 +1830,13 @@ var Tr = L({
1798
1830
  d: "M12 22V12",
1799
1831
  key: "d0xqtd"
1800
1832
  }]
1801
- ]), Ar = qt("code", [["path", {
1833
+ ]), Rr = Zt("code", [["path", {
1802
1834
  d: "m16 18 6-6-6-6",
1803
1835
  key: "eg8j8"
1804
1836
  }], ["path", {
1805
1837
  d: "m8 6-6 6 6 6",
1806
1838
  key: "ppft3o"
1807
- }]]), jr = qt("copy", [["rect", {
1839
+ }]]), zr = Zt("copy", [["rect", {
1808
1840
  width: "14",
1809
1841
  height: "14",
1810
1842
  x: "8",
@@ -1815,7 +1847,7 @@ var Tr = L({
1815
1847
  }], ["path", {
1816
1848
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
1817
1849
  key: "zix9uf"
1818
- }]]), Mr = qt("eye-off", [
1850
+ }]]), Br = Zt("eye-off", [
1819
1851
  ["path", {
1820
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",
1821
1853
  key: "ct8e1f"
@@ -1832,10 +1864,10 @@ var Tr = L({
1832
1864
  d: "m2 2 20 20",
1833
1865
  key: "1ooewy"
1834
1866
  }]
1835
- ]), Nr = qt("funnel", [["path", {
1867
+ ]), Vr = Zt("funnel", [["path", {
1836
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",
1837
1869
  key: "sc7q7i"
1838
- }]]), Pr = qt("grip-vertical", [
1870
+ }]]), Hr = Zt("grip-vertical", [
1839
1871
  ["circle", {
1840
1872
  cx: "9",
1841
1873
  cy: "12",
@@ -1872,7 +1904,7 @@ var Tr = L({
1872
1904
  r: "1",
1873
1905
  key: "f4zoj3"
1874
1906
  }]
1875
- ]), Fr = qt("image", [
1907
+ ]), Ur = Zt("image", [
1876
1908
  ["rect", {
1877
1909
  width: "18",
1878
1910
  height: "18",
@@ -1892,13 +1924,13 @@ var Tr = L({
1892
1924
  d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
1893
1925
  key: "1xmnt7"
1894
1926
  }]
1895
- ]), Ir = qt("navigation", [["polygon", {
1927
+ ]), Wr = Zt("navigation", [["polygon", {
1896
1928
  points: "3 11 22 2 13 21 11 13 3 11",
1897
1929
  key: "1ltx0t"
1898
- }]]), Lr = qt("puzzle", [["path", {
1930
+ }]]), Gr = Zt("puzzle", [["path", {
1899
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",
1900
1932
  key: "w46dr5"
1901
- }]]), Rr = qt("share-2", [
1933
+ }]]), Kr = Zt("share-2", [
1902
1934
  ["circle", {
1903
1935
  cx: "18",
1904
1936
  cy: "5",
@@ -1931,7 +1963,7 @@ var Tr = L({
1931
1963
  y2: "10.49",
1932
1964
  key: "1n3mei"
1933
1965
  }]
1934
- ]), zr = qt("table", [
1966
+ ]), qr = Zt("table", [
1935
1967
  ["path", {
1936
1968
  d: "M12 3v18",
1937
1969
  key: "108xh3"
@@ -1952,7 +1984,7 @@ var Tr = L({
1952
1984
  d: "M3 15h18",
1953
1985
  key: "5xshup"
1954
1986
  }]
1955
- ]), Br = qt("video", [["path", {
1987
+ ]), Jr = Zt("video", [["path", {
1956
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",
1957
1989
  key: "ftymec"
1958
1990
  }], ["rect", {
@@ -1962,18 +1994,18 @@ var Tr = L({
1962
1994
  height: "12",
1963
1995
  rx: "2",
1964
1996
  key: "158x01"
1965
- }]]), Vr = ["innerHTML"], Hr = [
1997
+ }]]), Yr = ["innerHTML"], Xr = [
1966
1998
  "src",
1967
1999
  "width",
1968
2000
  "height"
1969
- ], Ur = /* @__PURE__ */ L({
2001
+ ], Zr = /* @__PURE__ */ I({
1970
2002
  __name: "CustomBlockIcon",
1971
2003
  props: {
1972
2004
  icon: {},
1973
2005
  size: {}
1974
2006
  },
1975
2007
  setup(e) {
1976
- 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("/")));
1977
2009
  return (t, a) => r.value ? (O(), S("span", {
1978
2010
  key: 0,
1979
2011
  class: "tpl:inline-flex tpl:items-center tpl:justify-center",
@@ -1982,24 +2014,24 @@ var Tr = L({
1982
2014
  height: `${n.value}px`
1983
2015
  }),
1984
2016
  innerHTML: e.icon
1985
- }, null, 12, Vr)) : i.value ? (O(), S("img", {
2017
+ }, null, 12, Yr)) : i.value ? (O(), S("img", {
1986
2018
  key: 1,
1987
2019
  src: e.icon,
1988
2020
  width: n.value,
1989
2021
  height: n.value,
1990
2022
  class: "tpl:inline-block",
1991
2023
  alt: ""
1992
- }, null, 8, Hr)) : (O(), A(P(kr), {
2024
+ }, null, 8, Xr)) : (O(), A(N(Lr), {
1993
2025
  key: 2,
1994
2026
  size: n.value,
1995
2027
  "stroke-width": 1.5
1996
2028
  }, null, 8, ["size"]));
1997
2029
  }
1998
- }), Wr = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
1999
- function Gr(e, t) {
2000
- let n = tn(), 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;
2001
2033
  function o() {
2002
- return e.value ? Array.from(e.value.querySelectorAll(Wr)).filter((e) => e.offsetParent !== null) : [];
2034
+ return e.value ? Array.from(e.value.querySelectorAll(Qr)).filter((e) => e.offsetParent !== null) : [];
2003
2035
  }
2004
2036
  function c(e) {
2005
2037
  if (e.key !== "Tab") return;
@@ -2014,7 +2046,7 @@ function Gr(e, t) {
2014
2046
  a = null;
2015
2047
  let t = o();
2016
2048
  t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
2017
- }), i = Ze(e, "keydown", c);
2049
+ }), i = Qe(e, "keydown", c);
2018
2050
  }
2019
2051
  function u(e = {}) {
2020
2052
  let t = e.restoreFocus !== !1;
@@ -2023,15 +2055,15 @@ function Gr(e, t) {
2023
2055
  let d = s([t, e], ([e, t]) => {
2024
2056
  e && t ? l() : u();
2025
2057
  }, { flush: "post" });
2026
- M(() => {
2058
+ j(() => {
2027
2059
  d(), u();
2028
2060
  });
2029
2061
  }
2030
2062
  //#endregion
2031
2063
  //#region src/composables/useEmoji.ts
2032
- function Kr() {
2033
- let [e, t] = Je(!1), n = f([]), r = !1;
2034
- M(() => {
2064
+ function ei() {
2065
+ let [e, t] = Ye(!1), n = f([]), r = !1;
2066
+ j(() => {
2035
2067
  r = !0;
2036
2068
  }), s(e, async (e) => {
2037
2069
  if (e && n.value.length === 0) {
@@ -2055,7 +2087,7 @@ function Kr() {
2055
2087
  }
2056
2088
  //#endregion
2057
2089
  //#region src/composables/useFonts.ts
2058
- var qr = [
2090
+ var ti = [
2059
2091
  {
2060
2092
  value: "Arial",
2061
2093
  label: "Arial"
@@ -2084,7 +2116,7 @@ var qr = [
2084
2116
  value: "Courier New",
2085
2117
  label: "Courier New"
2086
2118
  }
2087
- ], Jr = {
2119
+ ], ni = {
2088
2120
  arial: "Arial, sans-serif",
2089
2121
  helvetica: "Helvetica, sans-serif",
2090
2122
  georgia: "Georgia, serif",
@@ -2092,23 +2124,23 @@ var qr = [
2092
2124
  verdana: "Verdana, sans-serif",
2093
2125
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2094
2126
  "courier new": "'Courier New', monospace"
2095
- }, Yr = "Arial, sans-serif";
2096
- function Xr(e) {
2097
- 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];
2098
2130
  if (e === !1) return [];
2099
2131
  let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
2100
2132
  for (let i of e) {
2101
- 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);
2102
2134
  if (!a) {
2103
- r.has(e) || (r.add(e), Vt.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(", ")}.`));
2104
2136
  continue;
2105
2137
  }
2106
2138
  n.has(a.value) || (n.add(a.value), t.push(a));
2107
2139
  }
2108
2140
  return t;
2109
2141
  }
2110
- function Zr(e) {
2111
- let t = _(e?.customFonts ?? []), n = _(!1), r = Xr(e?.builtIns), i = F(() => e?.defaultFallback ?? Yr), a = F(() => {
2142
+ function ai(e) {
2143
+ let t = _(e?.customFonts ?? []), n = _(!1), r = ii(e?.builtIns), i = P(() => e?.defaultFallback ?? ri), a = P(() => {
2112
2144
  let e = [...r], n = t.value.map((e) => ({
2113
2145
  value: e.name,
2114
2146
  label: e.name,
@@ -2119,16 +2151,16 @@ function Zr(e) {
2119
2151
  function o(e) {
2120
2152
  return a.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
2121
2153
  }
2122
- let s = e?.defaultFont ?? Yr.split(",")[0].trim();
2123
- o(s) || Vt.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.`);
2124
2156
  function c() {
2125
2157
  if (e?.defaultFont && o(e.defaultFont)) {
2126
2158
  let t = a.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
2127
2159
  if (t) return t.value;
2128
2160
  }
2129
- return Yr;
2161
+ return ri;
2130
2162
  }
2131
- let l = F(() => c());
2163
+ let l = P(() => c());
2132
2164
  function u(e) {
2133
2165
  if (!e) return i.value;
2134
2166
  let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
@@ -2136,7 +2168,7 @@ function Zr(e) {
2136
2168
  let e = n.fallback ?? i.value;
2137
2169
  return `'${n.name}', ${e}`;
2138
2170
  }
2139
- return Jr[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2171
+ return ni[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
2140
2172
  }
2141
2173
  let d = [], f = !1;
2142
2174
  async function p() {
@@ -2152,7 +2184,7 @@ function Zr(e) {
2152
2184
  t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
2153
2185
  });
2154
2186
  } catch (t) {
2155
- Vt.warn(`Failed to load custom font "${e.name}":`, t);
2187
+ Gt.warn(`Failed to load custom font "${e.name}":`, t);
2156
2188
  }
2157
2189
  });
2158
2190
  await Promise.allSettled(e), !f && (n.value = !0);
@@ -2161,7 +2193,7 @@ function Zr(e) {
2161
2193
  for (let e of d) e.remove();
2162
2194
  d.length = 0;
2163
2195
  }
2164
- return h() && M(() => {
2196
+ return h() && j(() => {
2165
2197
  f = !0, m();
2166
2198
  }), {
2167
2199
  fonts: a,
@@ -2177,8 +2209,8 @@ function Zr(e) {
2177
2209
  }
2178
2210
  //#endregion
2179
2211
  //#region src/composables/useLogicTag.ts
2180
- function Qr() {
2181
- let e = p(nt, []), t = p(pt, []), n = p(Dt, Fe.liquid), r = p(et, null), i = p(It, 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;
2182
2214
  async function c() {
2183
2215
  if (r) {
2184
2216
  a.value = !0;
@@ -2209,12 +2241,12 @@ function Qr() {
2209
2241
  }
2210
2242
  //#endregion
2211
2243
  //#region src/utils/mergeTagNodeSpec.ts
2212
- function $r(e, t, n) {
2213
- return ue(e, n) ? {
2244
+ function si(e, t, n) {
2245
+ return de(e, n) ? {
2214
2246
  type: "logicMergeTagNode",
2215
2247
  attrs: {
2216
2248
  value: e,
2217
- keyword: ge(e, n)
2249
+ keyword: _e(e, n)
2218
2250
  }
2219
2251
  } : {
2220
2252
  type: "mergeTagNode",
@@ -2226,15 +2258,15 @@ function $r(e, t, n) {
2226
2258
  }
2227
2259
  //#endregion
2228
2260
  //#region src/utils/insertLogicTag.ts
2229
- function ei(e) {
2261
+ function ci(e) {
2230
2262
  return "before" in e && "after" in e;
2231
2263
  }
2232
- function ti(e, t, n) {
2233
- if (!ei(t)) {
2234
- e.chain().focus().insertContent($r(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();
2235
2267
  return;
2236
2268
  }
2237
- let r = $r(t.before, t.label, n), i = $r(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;
2238
2270
  if (a !== o) {
2239
2271
  e.chain().focus().insertContentAt(o, i).insertContentAt(a, r).run();
2240
2272
  return;
@@ -2243,20 +2275,20 @@ function ti(e, t, n) {
2243
2275
  }
2244
2276
  //#endregion
2245
2277
  //#region src/utils/linkColorExtension.ts
2246
- function ni(e) {
2278
+ function ui(e) {
2247
2279
  if (!e) return null;
2248
2280
  let t = e.trim();
2249
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;
2250
2282
  }
2251
- function ri(e) {
2283
+ function di(e) {
2252
2284
  return e.extend({ addAttributes() {
2253
2285
  return {
2254
2286
  ...this.parent?.(),
2255
2287
  color: {
2256
2288
  default: null,
2257
- parseHTML: (e) => ni(Ut(e.style.color)),
2289
+ parseHTML: (e) => ui(qt(e.style.color)),
2258
2290
  renderHTML: (e) => {
2259
- let t = ni(e.color);
2291
+ let t = ui(e.color);
2260
2292
  return t ? { style: `color: ${t}` } : {};
2261
2293
  }
2262
2294
  }
@@ -2265,24 +2297,24 @@ function ri(e) {
2265
2297
  }
2266
2298
  //#endregion
2267
2299
  //#region src/composables/useRichTextLinkDialog.ts
2268
- function ii(e) {
2269
- let t = _(!1), n = _(""), r = _(""), i = _(null);
2270
- Gr(i, t);
2271
- function a() {
2272
- let i = e.value?.getAttributes("link") ?? {};
2273
- n.value = i.href || "", r.value = i.color || "", t.value = !0;
2274
- }
2300
+ function fi(e, t = Ie.liquid) {
2301
+ let n = _(!1), r = _(""), i = _(""), a = _(null);
2302
+ $r(a, n);
2275
2303
  function o() {
2276
- if (n.value) {
2277
- 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);
2278
2310
  if (t !== null) {
2279
- let n = ni(r.value), i = e.value?.chain().focus().extendMarkRange("link").setLink({ href: t }).updateAttributes("link", { color: n });
2280
- 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();
2281
2313
  }
2282
2314
  }
2283
- u();
2315
+ f();
2284
2316
  }
2285
- let s = /* @__PURE__ */ new Set([
2317
+ let c = /* @__PURE__ */ new Set([
2286
2318
  "http",
2287
2319
  "https",
2288
2320
  "mailto",
@@ -2293,40 +2325,43 @@ function ii(e) {
2293
2325
  "xmpp",
2294
2326
  "cid"
2295
2327
  ]);
2296
- function c(e) {
2328
+ function l(e) {
2329
+ return RegExp(`^(?:${t.value.source})`).test(e);
2330
+ }
2331
+ function u(e) {
2297
2332
  let t = e.trim();
2298
2333
  if (!t) return null;
2299
2334
  if (t.startsWith("#")) return t;
2300
2335
  let n = /^([a-z][a-z0-9+.-]*):/i.exec(t);
2301
- 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}`;
2302
2337
  }
2303
- function l() {
2304
- e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), u();
2338
+ function d() {
2339
+ e.value?.chain().focus().extendMarkRange("link").unsetLink().run(), f();
2305
2340
  }
2306
- function u() {
2307
- t.value = !1, n.value = "", r.value = "";
2341
+ function f() {
2342
+ n.value = !1, r.value = "", i.value = "";
2308
2343
  }
2309
- function d(e) {
2310
- 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();
2311
2346
  }
2312
2347
  return {
2313
- showLinkDialog: t,
2314
- linkUrl: n,
2315
- linkColor: r,
2316
- linkDialogRef: i,
2317
- openLinkDialog: a,
2318
- insertLink: o,
2319
- removeLink: l,
2320
- closeLinkDialog: u,
2321
- 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
2322
2357
  };
2323
2358
  }
2324
2359
  //#endregion
2325
2360
  //#region src/composables/useRichTextEditor.ts
2326
- function ai(e) {
2327
- let t = p(Tt, null), { mergeTags: n, canRequestMergeTag: r, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = nn(), { canInsertLogicTag: d, isRequesting: m, requestLogicTag: h } = Qr(), g = p(gt, 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 } = ii(b), { start: A, stop: j } = Ye(() => b.value?.commands.focus("end"), 0, { immediate: !1 }), M = f(null), N = _(!0), P = _(null), F = !1;
2328
- async function ee() {
2329
- 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;
2330
2365
  try {
2331
2366
  let { TiptapEditor: r, EC: i, extensions: a } = await e.loadExtensions({
2332
2367
  mergeTags: n,
@@ -2335,8 +2370,8 @@ function ai(e) {
2335
2370
  autocompleteEnabled: u,
2336
2371
  suggestionEmptyText: v
2337
2372
  });
2338
- if (F) return;
2339
- M.value = i;
2373
+ if (P) return;
2374
+ j.value = i;
2340
2375
  let o = /* @__PURE__ */ new Map();
2341
2376
  a.forEach((e, t) => o.set(e.name, t));
2342
2377
  let s = new r({
@@ -2344,27 +2379,27 @@ function ai(e) {
2344
2379
  content: e.blockContent(),
2345
2380
  editable: !0,
2346
2381
  onUpdate: ({ editor: n }) => {
2347
- F || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2382
+ P || t && t.updateBlock(e.blockId(), { content: n.getHTML() });
2348
2383
  }
2349
2384
  });
2350
- if (F) {
2385
+ if (P) {
2351
2386
  s.destroy();
2352
2387
  return;
2353
2388
  }
2354
- b.value = s, N.value = !1, A();
2389
+ b.value = s, M.value = !1, A();
2355
2390
  } catch (t) {
2356
- if (F) return;
2357
- Vt.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;
2358
2393
  }
2359
2394
  }
2360
- function I() {
2361
- b.value?.destroy(), b.value = null, ee();
2395
+ function F() {
2396
+ b.value?.destroy(), b.value = null, te();
2362
2397
  }
2363
- ee();
2364
- let L = s(() => e.blockContent(), (e) => {
2398
+ te();
2399
+ let I = s(() => e.blockContent(), (e) => {
2365
2400
  b.value && b.value.getHTML() !== e && b.value.commands.setContent(e, { emitUpdate: !1 });
2366
2401
  });
2367
- function te(t) {
2402
+ function ne(t) {
2368
2403
  if (o.value || m.value) return;
2369
2404
  let n = t.composedPath(), r = n.find((e) => e instanceof HTMLElement);
2370
2405
  if (!r) return;
@@ -2372,26 +2407,26 @@ function ai(e) {
2372
2407
  let i = n.some((e) => e instanceof HTMLElement && e.classList.contains("tpl-color-popover"));
2373
2408
  r.closest(".tpl-text-editor-wrapper") || r.closest(".tpl-text-toolbar") || r.closest(".tpl-link-dialog") || i || e.onDone();
2374
2409
  }
2375
- Ze(document, "mousedown", te), i(() => {
2376
- F = !0, L(), j(), b.value?.destroy();
2410
+ Qe(document, "mousedown", ne), i(() => {
2411
+ P = !0, I(), ee(), b.value?.destroy();
2377
2412
  });
2378
- async function ne() {
2413
+ async function re() {
2379
2414
  let e = await c();
2380
- F || (e && b.value ? b.value.chain().focus().insertMergeTag({
2415
+ P || (e && b.value ? b.value.chain().focus().insertMergeTag({
2381
2416
  label: e.label,
2382
2417
  value: e.value
2383
2418
  }).run() : b.value?.commands.focus());
2384
2419
  }
2385
- async function R() {
2420
+ async function L() {
2386
2421
  let e = await h();
2387
- F || (e && b.value ? ti(b.value, e, l) : b.value?.commands.focus());
2422
+ P || (e && b.value ? li(b.value, e, l) : b.value?.commands.focus());
2388
2423
  }
2389
2424
  return {
2390
2425
  editor: b,
2391
- EditorContent: M,
2392
- isLoading: N,
2393
- initError: P,
2394
- retry: I,
2426
+ EditorContent: j,
2427
+ isLoading: M,
2428
+ initError: N,
2429
+ retry: F,
2395
2430
  showLinkDialog: x,
2396
2431
  linkUrl: S,
2397
2432
  linkColor: C,
@@ -2407,36 +2442,36 @@ function ai(e) {
2407
2442
  removeLink: D,
2408
2443
  closeLinkDialog: O,
2409
2444
  handleLinkKeydown: k,
2410
- handleAddMergeTag: ne,
2411
- handleAddLogicTag: R
2445
+ handleAddMergeTag: re,
2446
+ handleAddLogicTag: L
2412
2447
  };
2413
2448
  }
2414
2449
  //#endregion
2415
2450
  //#region src/composables/useSmallScreenNotice.ts
2416
- var oi = "(max-width: 767px)";
2417
- function si(e) {
2418
- let t = Xe(oi);
2451
+ var mi = "(max-width: 767px)";
2452
+ function hi(e) {
2453
+ let t = Ze(mi);
2419
2454
  return {
2420
2455
  isSmallScreen: t,
2421
- showNotice: F(() => (ee(e) ?? !0) && t.value)
2456
+ showNotice: P(() => (te(e) ?? !0) && t.value)
2422
2457
  };
2423
2458
  }
2424
2459
  //#endregion
2425
2460
  //#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
2426
- var ci = { class: "tpl:w-full" }, li = {
2461
+ var gi = { class: "tpl:w-full" }, _i = {
2427
2462
  key: 0,
2428
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)]"
2429
- }, ui = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, di = {
2464
+ }, vi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, yi = {
2430
2465
  key: 1,
2431
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)]"
2432
- }, fi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, pi = {
2467
+ }, bi = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, xi = {
2433
2468
  key: 2,
2434
2469
  class: "tpl:relative"
2435
- }, mi = ["innerHTML"], hi = {
2470
+ }, Si = ["innerHTML"], Ci = {
2436
2471
  key: 0,
2437
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]",
2438
2473
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
2439
- }, gi = /* @__PURE__ */ L({
2474
+ }, wi = /* @__PURE__ */ I({
2440
2475
  __name: "CustomBlock",
2441
2476
  props: {
2442
2477
  block: {},
@@ -2444,19 +2479,19 @@ var ci = { class: "tpl:w-full" }, li = {
2444
2479
  },
2445
2480
  emits: ["fetchData"],
2446
2481
  setup(e, { emit: t }) {
2447
- let r = e, i = t, { t: a } = Bt(), o = p(Nt, null), c = _(""), l = _(!1), u = F(() => o?.getDefinition(r.block.customType)), d = F(() => !!u.value), { isFetching: f, fetch: m, needsFetch: h, hasDataSource: g } = vn({
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({
2448
2483
  definition: u,
2449
- block: F(() => r.block),
2484
+ block: P(() => r.block),
2450
2485
  onUpdate: (e, t) => {
2451
2486
  i("fetchData", {
2452
2487
  fieldValues: e,
2453
2488
  dataSourceFetched: t
2454
2489
  });
2455
2490
  }
2456
- }), v = p(mt, []), y = p(_t, null), b = F(() => {
2491
+ }), v = p(it, []), y = p(It, null), b = P(() => {
2457
2492
  if (!y?.value) return r.block;
2458
2493
  let e = {};
2459
- 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;
2460
2495
  return {
2461
2496
  ...r.block,
2462
2497
  fieldValues: e
@@ -2473,67 +2508,67 @@ var ci = { class: "tpl:w-full" }, li = {
2473
2508
  }
2474
2509
  }
2475
2510
  }
2476
- let E = Ke(C, 150);
2511
+ let E = qe(C, 150);
2477
2512
  return n(() => {
2478
2513
  C();
2479
2514
  }), s(() => r.block.fieldValues, () => {
2480
2515
  E();
2481
2516
  }, { deep: !0 }), s(() => y?.value, () => {
2482
2517
  E();
2483
- }), (e, t) => (O(), S("div", ci, [d.value ? l.value ? (O(), S("div", di, [w(P(Zt), {
2518
+ }), (e, t) => (O(), S("div", gi, [d.value ? l.value ? (O(), S("div", yi, [w(N(tn), {
2484
2519
  size: 24,
2485
2520
  class: "tpl:text-[var(--tpl-danger)]"
2486
- }), x("span", fi, k(P(a).customBlocks.renderError), 1)])) : (O(), S("div", pi, [x("div", { innerHTML: c.value }, null, 8, mi), P(g) && P(h) ? (O(), S("div", hi, [P(f) ? (O(), A($t, {
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, {
2487
2522
  key: 1,
2488
2523
  class: "tpl:w-48"
2489
2524
  })) : (O(), S("button", {
2490
2525
  key: 0,
2491
2526
  type: "button",
2492
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)]",
2493
- onClick: t[0] ||= R((...e) => P(m) && P(m)(...e), ["stop"])
2494
- }, [u.value?.icon ? (O(), A(Ur, {
2528
+ onClick: t[0] ||= L((...e) => N(m) && N(m)(...e), ["stop"])
2529
+ }, [u.value?.icon ? (O(), A(Zr, {
2495
2530
  key: 0,
2496
2531
  icon: u.value.icon,
2497
2532
  size: 16
2498
- }, null, 8, ["icon"])) : I("", !0), T(" " + k(u.value?.dataSource?.label || P(a).customBlocks.dataSource.fetchButton), 1)]))])) : I("", !0)])) : (O(), S("div", li, [w(P(Lr), {
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), {
2499
2534
  size: 24,
2500
2535
  class: "tpl:text-[var(--tpl-warning)]"
2501
- }), x("span", ui, k(P(a).customBlocks.definitionNotFound), 1)]))]));
2536
+ }), x("span", vi, k(N(a).customBlocks.definitionNotFound), 1)]))]));
2502
2537
  }
2503
- }), _i = { class: "tpl:w-full" }, vi = /* @__PURE__ */ L({
2538
+ }), Ti = { class: "tpl:w-full" }, Ei = /* @__PURE__ */ I({
2504
2539
  __name: "DividerBlock",
2505
2540
  props: {
2506
2541
  block: {},
2507
2542
  viewport: {}
2508
2543
  },
2509
2544
  setup(e) {
2510
- let t = e, n = F(() => ({
2545
+ let t = e, n = P(() => ({
2511
2546
  borderTop: `${t.block.thickness}px ${t.block.lineStyle} ${t.block.color}`,
2512
2547
  width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
2513
2548
  margin: t.block.width === "full" ? "0" : "0 auto"
2514
2549
  }));
2515
- return (e, t) => (O(), S("div", _i, [x("hr", {
2550
+ return (e, t) => (O(), S("div", Ti, [x("hr", {
2516
2551
  class: "tpl:m-0 tpl:border-none",
2517
2552
  style: u(n.value)
2518
2553
  }, null, 4)]));
2519
2554
  }
2520
- }), yi = { class: "tpl:w-full" }, bi = ["srcdoc", "title"], xi = {
2555
+ }), Di = { class: "tpl:w-full" }, Oi = ["srcdoc", "title"], ki = {
2521
2556
  key: 1,
2522
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)]"
2523
- }, Si = {
2558
+ }, Ai = {
2524
2559
  key: 0,
2525
2560
  class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
2526
- }, Ci = {
2561
+ }, ji = {
2527
2562
  key: 1,
2528
2563
  class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2529
- }, wi = /* @__PURE__ */ L({
2564
+ }, Mi = /* @__PURE__ */ I({
2530
2565
  __name: "HtmlBlock",
2531
2566
  props: {
2532
2567
  block: {},
2533
2568
  viewport: {}
2534
2569
  },
2535
2570
  setup(e) {
2536
- let t = e, { t: n } = Bt(), r = p(Rt, !1), a = F(() => t.block.content.trim().length > 0), o = F(() => r && a.value), c = p(mt, []), l = p(_t, 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;
2537
2572
  function g() {
2538
2573
  let e = f.value?.contentDocument;
2539
2574
  e && (m.value = Math.max(e.body?.scrollHeight ?? 0, e.documentElement?.scrollHeight ?? 0));
@@ -2547,46 +2582,46 @@ var ci = { class: "tpl:w-full" }, li = {
2547
2582
  e || (h?.disconnect(), h = null);
2548
2583
  }), i(() => {
2549
2584
  h?.disconnect(), h = null;
2550
- }), (e, t) => (O(), S("div", yi, [o.value ? (O(), S("iframe", {
2585
+ }), (e, t) => (O(), S("div", Di, [o.value ? (O(), S("iframe", {
2551
2586
  key: 0,
2552
2587
  ref_key: "iframeRef",
2553
2588
  ref: f,
2554
2589
  srcdoc: d.value,
2555
2590
  sandbox: "allow-same-origin",
2556
- title: P(n).html.preview,
2591
+ title: N(n).html.preview,
2557
2592
  class: "tpl:block tpl:w-full tpl:border-0",
2558
2593
  style: u({ height: `${m.value}px` }),
2559
2594
  onLoad: v
2560
- }, null, 44, bi)) : (O(), S("div", xi, [w(P(Ar), {
2595
+ }, null, 44, Oi)) : (O(), S("div", ki, [w(N(Rr), {
2561
2596
  size: 24,
2562
2597
  class: "tpl:text-[var(--tpl-text-dim)]"
2563
- }), a.value ? (O(), S("span", Si, k(P(n).html.preview), 1)) : (O(), S("span", Ci, 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))]))]));
2564
2599
  }
2565
- }), Ti = "image/";
2566
- function Ei(e) {
2567
- 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, {
2568
2603
  preventDefaultForUnhandled: !0,
2569
2604
  onDrop: (e) => {
2570
2605
  if (!i()) return;
2571
- let t = (e ?? []).filter((e) => e.type.startsWith(Ti));
2606
+ let t = (e ?? []).filter((e) => e.type.startsWith(Ni));
2572
2607
  t.length > 0 && n([t[0]]);
2573
2608
  }
2574
2609
  });
2575
- return { isOver: F(() => i() && a.value) };
2610
+ return { isOver: P(() => i() && a.value) };
2576
2611
  }
2577
2612
  //#endregion
2578
2613
  //#region src/components/blocks/ImageBlock.vue?vue&type=script&setup=true&lang.ts
2579
- var Di = {
2614
+ var Fi = {
2580
2615
  key: 0,
2581
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)]",
2582
2617
  style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 85%, transparent)" }
2583
- }, Oi = ["href"], ki = ["src", "alt"], Ai = ["src", "alt"], ji = {
2618
+ }, Ii = ["href"], Li = ["src", "alt"], Ri = ["src", "alt"], zi = {
2584
2619
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
2585
2620
  style: { opacity: "0.7" }
2586
- }, Mi = ["href"], Ni = ["src", "alt"], Pi = ["src", "alt"], Fi = {
2621
+ }, Bi = ["href"], Vi = ["src", "alt"], Hi = ["src", "alt"], Ui = {
2587
2622
  key: 4,
2588
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)]"
2589
- }, Ii = ["aria-label"], Li = { key: 1 }, Ri = /* @__PURE__ */ L({
2624
+ }, Wi = ["aria-label"], Gi = { key: 1 }, Ki = /* @__PURE__ */ I({
2590
2625
  __name: "ImageBlock",
2591
2626
  props: {
2592
2627
  block: {},
@@ -2594,7 +2629,7 @@ var Di = {
2594
2629
  },
2595
2630
  emits: ["update"],
2596
2631
  setup(e, { emit: t }) {
2597
- let n = e, r = t, { t: i } = Bt(), { syntax: a } = nn(), o = p(Et, null), s = F(() => !!o), c = rn();
2632
+ let n = e, r = t, { t: i } = Wt(), { syntax: a } = sn(), o = p(pt, null), s = P(() => !!o), c = cn();
2598
2633
  async function l() {
2599
2634
  let e = await o?.({ accept: ["images"] });
2600
2635
  if (c.alive && e) {
@@ -2602,7 +2637,7 @@ var Di = {
2602
2637
  e.alt && (t.alt = e.alt), r("update", t);
2603
2638
  }
2604
2639
  }
2605
- 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);
2606
2641
  async function h(e) {
2607
2642
  if (o) {
2608
2643
  f.value = !0;
@@ -2621,11 +2656,11 @@ var Di = {
2621
2656
  }
2622
2657
  }
2623
2658
  }
2624
- let { isOver: g } = Ei({
2659
+ let { isOver: g } = Pi({
2625
2660
  target: d,
2626
2661
  enabled: m,
2627
2662
  onFiles: h
2628
- }), v = F(() => ({ textAlign: n.block.align })), y = F(() => {
2663
+ }), v = P(() => ({ textAlign: n.block.align })), y = P(() => {
2629
2664
  let e = n.block.align;
2630
2665
  return {
2631
2666
  maxWidth: "100%",
@@ -2636,86 +2671,86 @@ var Di = {
2636
2671
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
2637
2672
  marginRight: e === "center" ? "auto" : void 0
2638
2673
  };
2639
- }), b = F(() => Me(n.block.src, a)), C = Nn(() => b.value ? void 0 : n.block.src), E = Nn(() => 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);
2640
2675
  return (t, n) => (O(), S("div", {
2641
2676
  ref_key: "dropZoneRef",
2642
2677
  ref: d,
2643
2678
  "data-testid": "image-drop-zone",
2644
2679
  class: "tpl:relative tpl:w-full",
2645
2680
  style: u(v.value)
2646
- }, [m.value && (P(g) || f.value) ? (O(), S("div", Di, [f.value ? (O(), S(N, { key: 0 }, [w(P(Jt), {
2681
+ }, [m.value && (N(g) || f.value) ? (O(), S("div", Fi, [f.value ? (O(), S(M, { key: 0 }, [w(N(Qt), {
2647
2682
  class: "tpl-spinner",
2648
2683
  size: 20,
2649
2684
  "stroke-width": 2
2650
- }), T(" " + k(P(i).image.uploading), 1)], 64)) : (O(), S(N, { key: 1 }, [w(P(Qt), {
2685
+ }), T(" " + k(N(i).image.uploading), 1)], 64)) : (O(), S(M, { key: 1 }, [w(N(nn), {
2651
2686
  size: 20,
2652
2687
  "stroke-width": 1.5
2653
- }), 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", {
2654
2689
  key: 0,
2655
2690
  href: e.block.linkUrl,
2656
2691
  target: "_blank",
2657
2692
  rel: "noopener noreferrer",
2658
- onClick: n[0] ||= R(() => {}, ["prevent"])
2693
+ onClick: n[0] ||= L(() => {}, ["prevent"])
2659
2694
  }, [x("img", {
2660
2695
  class: "tpl:border-0",
2661
2696
  loading: "lazy",
2662
- src: P(E),
2663
- alt: e.block.alt || P(i).image.altTextPlaceholder,
2697
+ src: N(E),
2698
+ alt: e.block.alt || N(i).image.altTextPlaceholder,
2664
2699
  style: u(y.value)
2665
- }, null, 12, ki)], 8, Oi)) : (O(), S("img", {
2700
+ }, null, 12, Li)], 8, Ii)) : (O(), S("img", {
2666
2701
  key: 1,
2667
2702
  class: "tpl:border-0",
2668
- src: P(E),
2703
+ src: N(E),
2669
2704
  alt: e.block.alt,
2670
2705
  style: u(y.value)
2671
- }, null, 12, Ai))], 64)) : e.block.src && b.value ? (O(), S("div", {
2706
+ }, null, 12, Ri))], 64)) : e.block.src && b.value ? (O(), S("div", {
2672
2707
  key: 2,
2673
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)]",
2674
2709
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, y.value])
2675
- }, [w(P(Fr), {
2710
+ }, [w(N(Ur), {
2676
2711
  size: 32,
2677
2712
  "stroke-width": 1.5,
2678
2713
  class: "tpl:text-[var(--tpl-primary)]",
2679
2714
  style: { opacity: "0.5" }
2680
- }), x("span", ji, [w(Tr, { 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", {
2681
2716
  key: 0,
2682
2717
  href: e.block.linkUrl,
2683
2718
  target: "_blank",
2684
2719
  rel: "noopener noreferrer",
2685
- onClick: n[1] ||= R(() => {}, ["prevent"])
2720
+ onClick: n[1] ||= L(() => {}, ["prevent"])
2686
2721
  }, [x("img", {
2687
2722
  class: "tpl:border-0",
2688
2723
  loading: "lazy",
2689
- src: P(C),
2690
- alt: e.block.alt || P(i).image.altTextPlaceholder,
2724
+ src: N(C),
2725
+ alt: e.block.alt || N(i).image.altTextPlaceholder,
2691
2726
  style: u(y.value)
2692
- }, null, 12, Ni)], 8, Mi)) : (O(), S("img", {
2727
+ }, null, 12, Vi)], 8, Bi)) : (O(), S("img", {
2693
2728
  key: 1,
2694
2729
  class: "tpl:border-0",
2695
- src: P(C),
2730
+ src: N(C),
2696
2731
  alt: e.block.alt,
2697
2732
  style: u(y.value)
2698
- }, null, 12, Pi))], 64)) : (O(), S("div", Fi, [s.value ? (O(), S("button", {
2733
+ }, null, 12, Hi))], 64)) : (O(), S("div", Ui, [s.value ? (O(), S("button", {
2699
2734
  key: 0,
2700
- "aria-label": P(i).image.browseMedia,
2735
+ "aria-label": N(i).image.browseMedia,
2701
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)]",
2702
- onClick: R(l, ["stop"])
2703
- }, [w(P(Fr), {
2737
+ onClick: L(l, ["stop"])
2738
+ }, [w(N(Ur), {
2704
2739
  size: 14,
2705
2740
  "stroke-width": 1.5
2706
- }), T(" " + k(P(i).image.browseMedia), 1)], 8, Ii)) : (O(), S("span", Li, 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));
2707
2742
  }
2708
- }), zi = { class: "tpl:w-full" }, Bi = ["href"], Vi = {
2743
+ }), qi = { class: "tpl:w-full" }, Ji = ["href"], Yi = {
2709
2744
  key: 1,
2710
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)]"
2711
- }, Hi = /* @__PURE__ */ L({
2746
+ }, Xi = /* @__PURE__ */ I({
2712
2747
  __name: "MenuBlock",
2713
2748
  props: {
2714
2749
  block: {},
2715
2750
  viewport: {}
2716
2751
  },
2717
2752
  setup(e) {
2718
- let t = e, { t: n } = Bt(), r = F(() => ({
2753
+ let t = e, { t: n } = Wt(), r = P(() => ({
2719
2754
  display: "flex",
2720
2755
  flexWrap: "wrap",
2721
2756
  gap: `0 ${t.block.spacing}px`,
@@ -2723,14 +2758,14 @@ var Di = {
2723
2758
  fontSize: `${t.block.fontSize}px`,
2724
2759
  fontFamily: t.block.fontFamily || "inherit",
2725
2760
  alignItems: "center"
2726
- })), i = F(() => t.block.items.length > 0);
2761
+ })), i = P(() => t.block.items.length > 0);
2727
2762
  function a(e) {
2728
2763
  return e || t.block.linkColor || t.block.color;
2729
2764
  }
2730
- return (t, o) => (O(), S("div", zi, [i.value ? (O(), S("div", {
2765
+ return (t, o) => (O(), S("div", qi, [i.value ? (O(), S("div", {
2731
2766
  key: 0,
2732
2767
  style: u(r.value)
2733
- }, [(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", {
2734
2769
  href: t.url || "#",
2735
2770
  class: "tpl:cursor-default tpl:no-underline",
2736
2771
  style: u({
@@ -2738,16 +2773,16 @@ var Di = {
2738
2773
  fontWeight: t.bold ? "bold" : "normal",
2739
2774
  textDecoration: t.underline ? "underline" : "none"
2740
2775
  }),
2741
- onClick: o[0] ||= R(() => {}, ["prevent"])
2742
- }, [w(Tr, { text: t.text || "..." }, null, 8, ["text"])], 12, Bi), 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", {
2743
2778
  key: 0,
2744
2779
  style: u({
2745
2780
  color: e.block.separatorColor,
2746
2781
  padding: `0 ${e.block.spacing}px`
2747
2782
  })
2748
- }, k(e.block.separator), 5)) : I("", !0)], 64))), 128))], 4)) : (O(), S("div", Vi, [w(P(Ir), { 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)]))]));
2749
2784
  }
2750
- }), Ui = /* @__PURE__ */ new Set([
2785
+ }), Zi = /* @__PURE__ */ new Set([
2751
2786
  "http",
2752
2787
  "https",
2753
2788
  "mailto",
@@ -2757,7 +2792,7 @@ var Di = {
2757
2792
  "sms",
2758
2793
  "xmpp",
2759
2794
  "cid"
2760
- ]), Wi = /* @__PURE__ */ new Set([
2795
+ ]), Qi = /* @__PURE__ */ new Set([
2761
2796
  "SCRIPT",
2762
2797
  "STYLE",
2763
2798
  "IFRAME",
@@ -2767,7 +2802,7 @@ var Di = {
2767
2802
  "META",
2768
2803
  "BASE",
2769
2804
  "FORM"
2770
- ]), Gi = /* @__PURE__ */ new Set([
2805
+ ]), $i = /* @__PURE__ */ new Set([
2771
2806
  "href",
2772
2807
  "xlink:href",
2773
2808
  "formaction",
@@ -2776,16 +2811,16 @@ var Di = {
2776
2811
  "background",
2777
2812
  "poster"
2778
2813
  ]);
2779
- function Ki(e, t) {
2814
+ function ea(e, t) {
2780
2815
  let n = e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2781
2816
  if (!n || n.startsWith("#")) return !0;
2782
2817
  let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
2783
2818
  if (!r) return !0;
2784
2819
  let i = r[1].toLowerCase();
2785
- return Ui.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;
2786
2821
  }
2787
- function qi(e) {
2788
- if (Wi.has(e.tagName)) {
2822
+ function ta(e) {
2823
+ if (Qi.has(e.tagName)) {
2789
2824
  e.remove();
2790
2825
  return;
2791
2826
  }
@@ -2797,29 +2832,29 @@ function qi(e) {
2797
2832
  e.removeAttribute(n);
2798
2833
  continue;
2799
2834
  }
2800
- if (Gi.has(t)) {
2801
- Ki(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2835
+ if ($i.has(t)) {
2836
+ ea(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
2802
2837
  continue;
2803
2838
  }
2804
2839
  if (t === "src") {
2805
- Ki(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2840
+ ea(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
2806
2841
  continue;
2807
2842
  }
2808
2843
  t === "srcdoc" && e.removeAttribute(n);
2809
2844
  }
2810
2845
  let n = Array.from(e.children);
2811
- for (let e of n) qi(e);
2846
+ for (let e of n) ta(e);
2812
2847
  }
2813
- function Ji(e) {
2848
+ function na(e) {
2814
2849
  if (typeof DOMParser > "u") return e;
2815
2850
  let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
2816
- for (let e of n) qi(e);
2851
+ for (let e of n) ta(e);
2817
2852
  return t.innerHTML;
2818
2853
  }
2819
2854
  //#endregion
2820
2855
  //#region src/composables/useEditableTextBlock.ts
2821
- function Yi(e) {
2822
- let t = p(mt, []), n = p(_t, null), { syntax: r } = nn(), i = F(() => n?.value ? de(e(), t) : Ge(e(), t)), a = F(() => Ji(ve(i.value, r))), o = _(!1), s = _(null), { top: c, left: l } = $e(s), { toLocal: u } = Kt(), 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({
2823
2858
  top: c.value - 8,
2824
2859
  left: l.value
2825
2860
  }));
@@ -2840,24 +2875,24 @@ function Yi(e) {
2840
2875
  }
2841
2876
  //#endregion
2842
2877
  //#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
2843
- var Xi = ["innerHTML"], Zi = /* @__PURE__ */ L({
2878
+ var ia = ["innerHTML"], aa = /* @__PURE__ */ I({
2844
2879
  __name: "ParagraphBlock",
2845
2880
  props: {
2846
2881
  block: {},
2847
2882
  viewport: {}
2848
2883
  },
2849
2884
  setup(e) {
2850
- let t = e, n = y(() => import("./ParagraphEditor-DQEOFc0K.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Yi(() => 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);
2851
2886
  return (t, l) => (O(), S("div", {
2852
2887
  ref_key: "blockRef",
2853
2888
  ref: i,
2854
2889
  class: "tpl:min-h-[1em] tpl:w-full",
2855
- onDblclick: l[0] ||= (...e) => P(s) && P(s)(...e)
2856
- }, [P(r) ? (O(), A(P(n), {
2890
+ onDblclick: l[0] ||= (...e) => N(s) && N(s)(...e)
2891
+ }, [N(r) ? (O(), A(N(n), {
2857
2892
  key: 0,
2858
2893
  block: e.block,
2859
- "toolbar-position": P(a),
2860
- onDone: P(c)
2894
+ "toolbar-position": N(a),
2895
+ onDone: N(c)
2861
2896
  }, null, 8, [
2862
2897
  "block",
2863
2898
  "toolbar-position",
@@ -2865,55 +2900,55 @@ var Xi = ["innerHTML"], Zi = /* @__PURE__ */ L({
2865
2900
  ])) : (O(), S("div", {
2866
2901
  key: 1,
2867
2902
  class: "tpl-text-content tpl:outline-none",
2868
- innerHTML: P(o)
2869
- }, null, 8, Xi))], 544));
2903
+ innerHTML: N(o)
2904
+ }, null, 8, ia))], 544));
2870
2905
  }
2871
2906
  });
2872
2907
  //#endregion
2873
2908
  //#region src/utils/blockComponentResolver.ts
2874
- function Qi(e) {
2909
+ function oa(e) {
2875
2910
  let t = { fontFamily: e.fontFamily };
2876
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;
2877
2912
  }
2878
- function $i(e, t, n) {
2913
+ function sa(e, t, n) {
2879
2914
  if (t) {
2880
2915
  let n = t.getComponent(e);
2881
2916
  if (n) return n;
2882
2917
  }
2883
2918
  return n[e.type] ?? null;
2884
2919
  }
2885
- function ea(e) {
2920
+ function ca(e) {
2886
2921
  let { padding: t, backgroundColor: n } = e.styles, r = {
2887
2922
  padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
2888
2923
  backgroundColor: n || "transparent"
2889
2924
  };
2890
- 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;
2891
2926
  }
2892
- function ta(e) {
2927
+ function la(e) {
2893
2928
  if (e.type !== "section" || !e.wrapper) return null;
2894
2929
  let t = e.wrapper, n = {};
2895
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;
2896
2931
  }
2897
2932
  //#endregion
2898
2933
  //#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
2899
- var na = [
2934
+ var ua = [
2900
2935
  "data-block-id",
2901
2936
  "data-block-type",
2902
2937
  "data-tpl-picked"
2903
- ], ra = ["aria-label"], ia = [
2938
+ ], da = ["aria-label"], fa = [
2904
2939
  "aria-label",
2905
2940
  "aria-pressed",
2906
2941
  "title"
2907
- ], aa = ["aria-label", "title"], oa = ["aria-label", "title"], sa = ["aria-label", "title"], ca = {
2942
+ ], pa = ["aria-label", "title"], ma = ["aria-label", "title"], ha = ["aria-label", "title"], ga = {
2908
2943
  key: 1,
2909
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"
2910
- }, la = { 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)]" }, ua = {
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 = {
2911
2946
  key: 2,
2912
2947
  class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
2913
- }, da = ["aria-label", "title"], fa = {
2948
+ }, ya = ["aria-label", "title"], ba = {
2914
2949
  key: 3,
2915
2950
  class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
2916
- }, pa = ["aria-label"], ma = /*#__PURE__*/ en(/* @__PURE__ */ L({
2951
+ }, xa = ["aria-label"], Sa = /*#__PURE__*/ an(/* @__PURE__ */ I({
2917
2952
  __name: "BlockWrapper",
2918
2953
  props: {
2919
2954
  block: {},
@@ -2925,7 +2960,7 @@ var na = [
2925
2960
  },
2926
2961
  emits: ["select"],
2927
2962
  setup(e, { emit: t }) {
2928
- let n = y(() => import("./BlockIssueBadge-bTDu6W_2.js")), i = e, a = t, { t: o, format: s } = Bt(), l = p(Lt, 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);
2929
2964
  async function g() {
2930
2965
  await m(), d.value?.focus();
2931
2966
  }
@@ -2948,26 +2983,26 @@ var na = [
2948
2983
  }
2949
2984
  }
2950
2985
  }
2951
- 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 ? {
2952
2987
  desktop: o.viewport.desktop,
2953
2988
  mobile: o.viewport.mobile
2954
- }[i.viewport] ?? i.viewport : ""), D = F(() => !!i.block.displayCondition), A = p(yt, null), j = p(St, null), M = p(xt, {}), 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(() => ea(i.block)), re = F(() => ta(i.block));
2955
- 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) {
2956
2991
  i.previewMode || (e.target?.closest("a") && e.preventDefault(), e.stopPropagation(), a("select"));
2957
2992
  }
2958
- function ae() {
2959
- A?.deleteBlock(i.block.id);
2960
- }
2961
2993
  function oe() {
2962
- A?.duplicateBlock(i.block);
2994
+ A?.deleteBlock(i.block.id);
2963
2995
  }
2964
2996
  function se() {
2965
- M.savedBlocks?.startPicking(i.block.id);
2997
+ A?.duplicateBlock(i.block);
2966
2998
  }
2967
2999
  function ce() {
2968
- j?.toggleBlock(i.block.id);
3000
+ j.savedBlocks?.startPicking(i.block.id);
2969
3001
  }
2970
- 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", {
2971
3006
  key: 0,
2972
3007
  class: r(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow", {
2973
3008
  "tpl-block--selected": e.isSelected,
@@ -2978,13 +3013,13 @@ var na = [
2978
3013
  "data-block-id": e.block.id,
2979
3014
  "data-block-type": e.block.type,
2980
3015
  "data-tpl-picked": e.picked || void 0,
2981
- onClick: ie
3016
+ onClick: ae
2982
3017
  }, [
2983
- w(P(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
2984
- L.value ? (O(), S("div", {
3018
+ w(N(n), { "block-id": e.block.id }, null, 8, ["block-id"]),
3019
+ I.value ? (O(), S("div", {
2985
3020
  key: 0,
2986
3021
  role: "toolbar",
2987
- "aria-label": P(o).blockActions.drag,
3022
+ "aria-label": N(o).blockActions.drag,
2988
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)]"
2989
3024
  }, [
2990
3025
  x("button", {
@@ -2994,111 +3029,111 @@ var na = [
2994
3029
  "aria-label": h.value,
2995
3030
  "aria-pressed": f.value,
2996
3031
  "aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
2997
- title: P(o).blockActions.drag,
3032
+ title: N(o).blockActions.drag,
2998
3033
  onKeydown: v
2999
- }, [w(P(Pr), {
3034
+ }, [w(N(Hr), {
3000
3035
  size: 14,
3001
3036
  "stroke-width": 1.5
3002
- })], 40, ia),
3037
+ })], 40, fa),
3003
3038
  x("button", {
3004
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",
3005
- "aria-label": P(o).blockActions.duplicate,
3006
- title: P(o).blockActions.duplicate,
3007
- onClick: R(oe, ["stop"])
3008
- }, [w(P(jr), {
3040
+ "aria-label": N(o).blockActions.duplicate,
3041
+ title: N(o).blockActions.duplicate,
3042
+ onClick: L(se, ["stop"])
3043
+ }, [w(N(zr), {
3009
3044
  size: 14,
3010
3045
  "stroke-width": 1.5
3011
- })], 8, aa),
3012
- ee.value ? (O(), S("button", {
3046
+ })], 8, pa),
3047
+ te.value ? (O(), S("button", {
3013
3048
  key: 0,
3014
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",
3015
- "aria-label": P(o).blockActions.saveAsBlock,
3016
- title: P(o).blockActions.saveAsBlock,
3017
- onClick: R(se, ["stop"])
3018
- }, [w(P(Or), {
3050
+ "aria-label": N(o).blockActions.saveAsBlock,
3051
+ title: N(o).blockActions.saveAsBlock,
3052
+ onClick: L(ce, ["stop"])
3053
+ }, [w(N(Ir), {
3019
3054
  size: 14,
3020
3055
  "stroke-width": 1.5
3021
- })], 8, oa)) : I("", !0),
3056
+ })], 8, ma)) : F("", !0),
3022
3057
  x("button", {
3023
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",
3024
- "aria-label": P(o).blockActions.delete,
3025
- title: P(o).blockActions.delete,
3026
- onClick: R(ae, ["stop"])
3027
- }, [w(P(Xt), {
3059
+ "aria-label": N(o).blockActions.delete,
3060
+ title: N(o).blockActions.delete,
3061
+ onClick: L(oe, ["stop"])
3062
+ }, [w(N(en), {
3028
3063
  size: 14,
3029
3064
  "stroke-width": 1.5
3030
- })], 8, sa)
3031
- ], 8, ra)) : I("", !0),
3032
- b.value ? (O(), S("div", ca, [x("span", la, [w(P(Mr), {
3065
+ })], 8, ha)
3066
+ ], 8, da)) : F("", !0),
3067
+ b.value ? (O(), S("div", ga, [x("span", _a, [w(N(Br), {
3033
3068
  size: 12,
3034
3069
  "stroke-width": 1.5
3035
- }), T(" " + k(P(s)(P(o).blockActions.hiddenOnViewport, { viewport: E.value })), 1)])])) : I("", !0),
3036
- D.value && !b.value ? (O(), S("div", ua, [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", {
3037
3072
  "data-testid": "condition-toggle",
3038
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)]",
3039
- "aria-label": P(o).blockActions.conditionToggle,
3074
+ "aria-label": N(o).blockActions.conditionToggle,
3040
3075
  title: e.block.displayCondition?.label,
3041
- onClick: R(ce, ["stop"])
3042
- }, [w(P(Nr), {
3076
+ onClick: L(le, ["stop"])
3077
+ }, [w(N(Vr), {
3043
3078
  size: 12,
3044
3079
  "stroke-width": 2
3045
- })], 8, da)])) : I("", !0),
3046
- te.value > 0 && !b.value ? (O(), S("div", fa, [x("button", {
3080
+ })], 8, ya)])) : F("", !0),
3081
+ ne.value > 0 && !b.value ? (O(), S("div", ba, [x("button", {
3047
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)]",
3048
- "aria-label": P(s)(P(o).blockActions.comments, { count: String(te.value) }),
3049
- onClick: i[0] ||= R((t) => P(M).comments?.openForBlock(e.block.id), ["stop"])
3050
- }, [w(P(Yt), {
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), {
3051
3086
  size: 12,
3052
3087
  "stroke-width": 2.5
3053
- }), T(" " + k(te.value), 1)], 8, pa)])) : I("", !0),
3054
- re.value ? (O(), S("div", {
3088
+ }), T(" " + k(ne.value), 1)], 8, xa)])) : F("", !0),
3089
+ ie.value ? (O(), S("div", {
3055
3090
  key: 4,
3056
3091
  class: "tpl-section-wrapper",
3057
- style: u(re.value)
3092
+ style: u(ie.value)
3058
3093
  }, [x("div", {
3059
3094
  class: "tpl-block-content",
3060
- style: u(ne.value)
3095
+ style: u(re.value)
3061
3096
  }, [c(t.$slots, "default", {}, void 0, !0)], 4)], 4)) : (O(), S("div", {
3062
3097
  key: 5,
3063
3098
  class: "tpl-block-content",
3064
- style: u(ne.value)
3099
+ style: u(re.value)
3065
3100
  }, [c(t.$slots, "default", {}, void 0, !0)], 4))
3066
- ], 10, na));
3101
+ ], 10, ua));
3067
3102
  }
3068
3103
  }), [["__scopeId", "data-v-2c239048"]]);
3069
3104
  //#endregion
3070
3105
  //#region src/utils/unwrapParagraph.ts
3071
- function ha(e) {
3106
+ function Ca(e) {
3072
3107
  let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
3073
3108
  return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
3074
3109
  }
3075
3110
  //#endregion
3076
3111
  //#region src/components/blocks/TitleBlock.vue
3077
- var ga = /* @__PURE__ */ L({
3112
+ var wa = /* @__PURE__ */ I({
3078
3113
  __name: "TitleBlock",
3079
3114
  props: {
3080
3115
  block: {},
3081
3116
  viewport: {}
3082
3117
  },
3083
3118
  setup(e) {
3084
- let t = e, n = y(() => import("./TitleEditor-C0JQJu38.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Yi(() => 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(() => {
3085
3120
  let e = {
3086
- fontSize: `${Le[t.block.level]}px`,
3121
+ fontSize: `${Re[t.block.level]}px`,
3087
3122
  textAlign: t.block.textAlign
3088
3123
  };
3089
3124
  return t.block.color && (e.color = t.block.color), t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
3090
- }), f = F(() => `h${t.block.level}`), p = F(() => ha(o.value));
3125
+ }), f = P(() => `h${t.block.level}`), p = P(() => Ca(o.value));
3091
3126
  return (t, o) => (O(), S("div", {
3092
3127
  ref_key: "blockRef",
3093
3128
  ref: i,
3094
3129
  class: "tpl:min-h-[1em] tpl:w-full",
3095
3130
  style: u(l.value),
3096
- onDblclick: o[0] ||= (...e) => P(s) && P(s)(...e)
3097
- }, [P(r) ? (O(), A(P(n), {
3131
+ onDblclick: o[0] ||= (...e) => N(s) && N(s)(...e)
3132
+ }, [N(r) ? (O(), A(N(n), {
3098
3133
  key: 0,
3099
3134
  block: e.block,
3100
- "toolbar-position": P(a),
3101
- onDone: P(c)
3135
+ "toolbar-position": N(a),
3136
+ onDone: N(c)
3102
3137
  }, null, 8, [
3103
3138
  "block",
3104
3139
  "toolbar-position",
@@ -3113,88 +3148,88 @@ var ga = /* @__PURE__ */ L({
3113
3148
  });
3114
3149
  //#endregion
3115
3150
  //#region src/utils/sectionColumnDrop.ts
3116
- function _a(e) {
3151
+ function Ta(e) {
3117
3152
  return e.dataset.blockType !== "section" && e.dataset.paletteType !== "section";
3118
3153
  }
3119
3154
  //#endregion
3120
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
3121
- var va = Object.defineProperty, ya = Object.getOwnPropertySymbols, ba = Object.prototype.hasOwnProperty, xa = Object.prototype.propertyIsEnumerable, Sa = (e, t, n) => t in e ? va(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, {
3122
3157
  enumerable: !0,
3123
3158
  configurable: !0,
3124
3159
  writable: !0,
3125
3160
  value: n
3126
- }) : e[t] = n, Ca = (e, t) => {
3127
- for (var n in t ||= {}) ba.call(t, n) && Sa(e, n, t[n]);
3128
- if (ya) for (var n of ya(t)) xa.call(t, n) && Sa(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]);
3129
3164
  return e;
3130
- }, wa = (e, t) => {
3165
+ }, Ma = (e, t) => {
3131
3166
  var n = {};
3132
- for (var r in e) ba.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3133
- if (e != null && ya) for (var r of ya(e)) t.indexOf(r) < 0 && xa.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]);
3134
3169
  return n;
3135
- }, Ta = "[vue-draggable-plus]: ";
3136
- function Ea(e) {
3137
- console.warn(Ta + e);
3170
+ }, Na = "[vue-draggable-plus]: ";
3171
+ function Pa(e) {
3172
+ console.warn(Na + e);
3138
3173
  }
3139
- function Da(e) {
3140
- console.error(Ta + e);
3174
+ function Fa(e) {
3175
+ console.error(Na + e);
3141
3176
  }
3142
- function Oa(e, t, n) {
3177
+ function Ia(e, t, n) {
3143
3178
  return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
3144
3179
  }
3145
- function ka(e) {
3180
+ function La(e) {
3146
3181
  return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
3147
3182
  }
3148
- function Aa(e) {
3149
- return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[ka(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), {});
3150
3185
  }
3151
- function ja(e, t) {
3186
+ function za(e, t) {
3152
3187
  return Array.isArray(e) && e.splice(t, 1), e;
3153
3188
  }
3154
- function Ma(e, t, n) {
3189
+ function Ba(e, t, n) {
3155
3190
  return Array.isArray(e) && e.splice(t, 0, n), e;
3156
3191
  }
3157
- function Na(e) {
3192
+ function Va(e) {
3158
3193
  return e === void 0;
3159
3194
  }
3160
- function Pa(e) {
3195
+ function Ha(e) {
3161
3196
  return typeof e == "string";
3162
3197
  }
3163
- function Fa(e, t, n) {
3198
+ function Ua(e, t, n) {
3164
3199
  let r = e.children[n];
3165
3200
  e.insertBefore(t, r);
3166
3201
  }
3167
- function Ia(e) {
3202
+ function Wa(e) {
3168
3203
  e.parentNode && e.parentNode.removeChild(e);
3169
3204
  }
3170
- function La(e, t = document) {
3205
+ function Ga(e, t = document) {
3171
3206
  let n = null;
3172
- return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ea(`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;
3173
3208
  }
3174
- function Ra(e, t, n = null) {
3209
+ function Ka(e, t, n = null) {
3175
3210
  return function(...r) {
3176
3211
  return e.apply(n, r), t.apply(n, r);
3177
3212
  };
3178
3213
  }
3179
- function za(e, t) {
3180
- let n = Ca({}, e);
3214
+ function qa(e, t) {
3215
+ let n = ja({}, e);
3181
3216
  return Object.keys(t).forEach((r) => {
3182
- n[r] ? n[r] = Ra(e[r], t[r]) : n[r] = t[r];
3217
+ n[r] ? n[r] = Ka(e[r], t[r]) : n[r] = t[r];
3183
3218
  }), n;
3184
3219
  }
3185
- function Ba(e) {
3220
+ function Ja(e) {
3186
3221
  return e instanceof HTMLElement;
3187
3222
  }
3188
- function Va(e, t) {
3223
+ function Ya(e, t) {
3189
3224
  Object.keys(e).forEach((n) => {
3190
3225
  t(n, e[n]);
3191
3226
  });
3192
3227
  }
3193
- function Ha(e) {
3228
+ function Xa(e) {
3194
3229
  return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
3195
3230
  }
3196
- var Ua = Object.assign;
3197
- function Wa(e, t) {
3231
+ var Za = Object.assign;
3232
+ function Qa(e, t) {
3198
3233
  var n = Object.keys(e);
3199
3234
  if (Object.getOwnPropertySymbols) {
3200
3235
  var r = Object.getOwnPropertySymbols(e);
@@ -3204,26 +3239,26 @@ function Wa(e, t) {
3204
3239
  }
3205
3240
  return n;
3206
3241
  }
3207
- function Ga(e) {
3242
+ function $a(e) {
3208
3243
  for (var t = 1; t < arguments.length; t++) {
3209
3244
  var n = arguments[t] == null ? {} : arguments[t];
3210
- t % 2 ? Wa(Object(n), !0).forEach(function(t) {
3211
- qa(e, t, n[t]);
3212
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wa(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) {
3213
3248
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
3214
3249
  });
3215
3250
  }
3216
3251
  return e;
3217
3252
  }
3218
- function Ka(e) {
3253
+ function eo(e) {
3219
3254
  "@babel/helpers - typeof";
3220
- return Ka = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3255
+ return eo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
3221
3256
  return typeof e;
3222
3257
  } : function(e) {
3223
3258
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3224
- }, Ka(e);
3259
+ }, eo(e);
3225
3260
  }
3226
- function qa(e, t, n) {
3261
+ function to(e, t, n) {
3227
3262
  return t in e ? Object.defineProperty(e, t, {
3228
3263
  value: n,
3229
3264
  enumerable: !0,
@@ -3231,44 +3266,44 @@ function qa(e, t, n) {
3231
3266
  writable: !0
3232
3267
  }) : e[t] = n, e;
3233
3268
  }
3234
- function Ja() {
3235
- return Ja = Object.assign || function(e) {
3269
+ function no() {
3270
+ return no = Object.assign || function(e) {
3236
3271
  for (var t = 1; t < arguments.length; t++) {
3237
3272
  var n = arguments[t];
3238
3273
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
3239
3274
  }
3240
3275
  return e;
3241
- }, Ja.apply(this, arguments);
3276
+ }, no.apply(this, arguments);
3242
3277
  }
3243
- function Ya(e, t) {
3278
+ function ro(e, t) {
3244
3279
  if (e == null) return {};
3245
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]);
3246
3281
  return n;
3247
3282
  }
3248
- function Xa(e, t) {
3283
+ function io(e, t) {
3249
3284
  if (e == null) return {};
3250
- var n = Ya(e, t), r, i;
3285
+ var n = ro(e, t), r, i;
3251
3286
  if (Object.getOwnPropertySymbols) {
3252
3287
  var a = Object.getOwnPropertySymbols(e);
3253
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]);
3254
3289
  }
3255
3290
  return n;
3256
3291
  }
3257
- var Za = "1.15.2";
3258
- function Qa(e) {
3292
+ var ao = "1.15.2";
3293
+ function oo(e) {
3259
3294
  if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
3260
3295
  }
3261
- var $a = Qa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), eo = Qa(/Edge/i), to = Qa(/firefox/i), no = Qa(/safari/i) && !Qa(/chrome/i) && !Qa(/android/i), ro = Qa(/iP(ad|od|hone)/i), io = Qa(/chrome/i) && Qa(/android/i), ao = {
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 = {
3262
3297
  capture: !1,
3263
3298
  passive: !1
3264
3299
  };
3265
- function z(e, t, n) {
3266
- e.addEventListener(t, n, !$a && ao);
3300
+ function R(e, t, n) {
3301
+ e.addEventListener(t, n, !so && mo);
3267
3302
  }
3268
- function B(e, t, n) {
3269
- e.removeEventListener(t, n, !$a && ao);
3303
+ function z(e, t, n) {
3304
+ e.removeEventListener(t, n, !so && mo);
3270
3305
  }
3271
- function oo(e, t) {
3306
+ function ho(e, t) {
3272
3307
  if (t) {
3273
3308
  if (t[0] === ">" && (t = t.substring(1)), e) try {
3274
3309
  if (e.matches) return e.matches(t);
@@ -3280,22 +3315,22 @@ function oo(e, t) {
3280
3315
  return !1;
3281
3316
  }
3282
3317
  }
3283
- function so(e) {
3318
+ function go(e) {
3284
3319
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
3285
3320
  }
3286
- function co(e, t, n, r) {
3321
+ function _o(e, t, n, r) {
3287
3322
  if (e) {
3288
3323
  n ||= document;
3289
3324
  do {
3290
- if (t != null && (t[0] === ">" ? e.parentNode === n && oo(e, t) : oo(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;
3291
3326
  if (e === n) break;
3292
- } while (e = so(e));
3327
+ } while (e = go(e));
3293
3328
  }
3294
3329
  return null;
3295
3330
  }
3296
- var lo = /\s+/g;
3297
- function uo(e, t, n) {
3298
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(lo, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(lo, " "));
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, " "));
3299
3334
  }
3300
3335
  function V(e, t, n) {
3301
3336
  var r = e && e.style;
@@ -3304,7 +3339,7 @@ function V(e, t, n) {
3304
3339
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
3305
3340
  }
3306
3341
  }
3307
- function fo(e, t) {
3342
+ function yo(e, t) {
3308
3343
  var n = "";
3309
3344
  if (typeof e == "string") n = e;
3310
3345
  else do {
@@ -3314,7 +3349,7 @@ function fo(e, t) {
3314
3349
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
3315
3350
  return i && new i(n);
3316
3351
  }
3317
- function po(e, t, n) {
3352
+ function bo(e, t, n) {
3318
3353
  if (e) {
3319
3354
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
3320
3355
  if (n) for (; i < a; i++) n(r[i], i);
@@ -3322,13 +3357,13 @@ function po(e, t, n) {
3322
3357
  }
3323
3358
  return [];
3324
3359
  }
3325
- function mo() {
3360
+ function xo() {
3326
3361
  return document.scrollingElement || document.documentElement;
3327
3362
  }
3328
3363
  function H(e, t, n, r, i) {
3329
3364
  if (e.getBoundingClientRect || e === window) {
3330
3365
  var a, o, s, c, l, u, d;
3331
- if (e !== window && e.parentNode && e !== mo() ? (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, !$a)) 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
3332
3367
  if (i && i.getBoundingClientRect && (V(i, "transform") !== "none" || n && V(i, "position") !== "static")) {
3333
3368
  var f = i.getBoundingClientRect();
3334
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;
@@ -3336,7 +3371,7 @@ function H(e, t, n, r, i) {
3336
3371
  }
3337
3372
  while (i = i.parentNode);
3338
3373
  if (r && e !== window) {
3339
- var p = fo(i || e), m = p && p.a, h = p && p.d;
3374
+ var p = yo(i || e), m = p && p.a, h = p && p.d;
3340
3375
  p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
3341
3376
  }
3342
3377
  return {
@@ -3349,18 +3384,18 @@ function H(e, t, n, r, i) {
3349
3384
  };
3350
3385
  }
3351
3386
  }
3352
- function ho(e, t, n) {
3353
- for (var r = xo(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;) {
3354
3389
  var a = H(r)[n], o = void 0;
3355
3390
  if (o = i >= a, !o) return r;
3356
- if (r === mo()) break;
3357
- r = xo(r, !1);
3391
+ if (r === xo()) break;
3392
+ r = Oo(r, !1);
3358
3393
  }
3359
3394
  return !1;
3360
3395
  }
3361
- function go(e, t, n, r) {
3396
+ function Co(e, t, n, r) {
3362
3397
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
3363
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && co(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)) {
3364
3399
  if (i === t) return o[a];
3365
3400
  i++;
3366
3401
  }
@@ -3368,84 +3403,84 @@ function go(e, t, n, r) {
3368
3403
  }
3369
3404
  return null;
3370
3405
  }
3371
- function _o(e, t) {
3372
- for (var n = e.lastElementChild; n && (n === Q.ghost || V(n, "display") === "none" || t && !oo(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;
3373
3408
  return n || null;
3374
3409
  }
3375
- function vo(e, t) {
3410
+ function To(e, t) {
3376
3411
  var n = 0;
3377
3412
  if (!e || !e.parentNode) return -1;
3378
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || oo(e, t)) && n++;
3413
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || ho(e, t)) && n++;
3379
3414
  return n;
3380
3415
  }
3381
- function yo(e) {
3382
- var t = 0, n = 0, r = mo();
3416
+ function Eo(e) {
3417
+ var t = 0, n = 0, r = xo();
3383
3418
  if (e) do {
3384
- var i = fo(e), a = i.a, o = i.d;
3419
+ var i = yo(e), a = i.a, o = i.d;
3385
3420
  t += e.scrollLeft * a, n += e.scrollTop * o;
3386
3421
  } while (e !== r && (e = e.parentNode));
3387
3422
  return [t, n];
3388
3423
  }
3389
- function bo(e, t) {
3424
+ function Do(e, t) {
3390
3425
  for (var n in e) if (e.hasOwnProperty(n)) {
3391
3426
  for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
3392
3427
  }
3393
3428
  return -1;
3394
3429
  }
3395
- function xo(e, t) {
3396
- if (!e || !e.getBoundingClientRect) return mo();
3430
+ function Oo(e, t) {
3431
+ if (!e || !e.getBoundingClientRect) return xo();
3397
3432
  var n = e, r = !1;
3398
3433
  do
3399
3434
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
3400
3435
  var i = V(n);
3401
3436
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
3402
- if (!n.getBoundingClientRect || n === document.body) return mo();
3437
+ if (!n.getBoundingClientRect || n === document.body) return xo();
3403
3438
  if (r || t) return n;
3404
3439
  r = !0;
3405
3440
  }
3406
3441
  }
3407
3442
  while (n = n.parentNode);
3408
- return mo();
3443
+ return xo();
3409
3444
  }
3410
- function So(e, t) {
3445
+ function ko(e, t) {
3411
3446
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
3412
3447
  return e;
3413
3448
  }
3414
- function Co(e, t) {
3449
+ function Ao(e, t) {
3415
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);
3416
3451
  }
3417
- var wo;
3418
- function To(e, t) {
3452
+ var jo;
3453
+ function Mo(e, t) {
3419
3454
  return function() {
3420
- if (!wo) {
3455
+ if (!jo) {
3421
3456
  var n = arguments, r = this;
3422
- n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), wo = setTimeout(function() {
3423
- wo = void 0;
3457
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), jo = setTimeout(function() {
3458
+ jo = void 0;
3424
3459
  }, t);
3425
3460
  }
3426
3461
  };
3427
3462
  }
3428
- function Eo() {
3429
- clearTimeout(wo), wo = void 0;
3463
+ function No() {
3464
+ clearTimeout(jo), jo = void 0;
3430
3465
  }
3431
- function Do(e, t, n) {
3466
+ function Po(e, t, n) {
3432
3467
  e.scrollLeft += t, e.scrollTop += n;
3433
3468
  }
3434
- function Oo(e) {
3469
+ function Fo(e) {
3435
3470
  var t = window.Polymer, n = window.jQuery || window.Zepto;
3436
3471
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
3437
3472
  }
3438
- function ko(e, t, n) {
3473
+ function Io(e, t, n) {
3439
3474
  var r = {};
3440
3475
  return Array.from(e.children).forEach(function(i) {
3441
- if (co(i, t.draggable, e, !1) && !i.animated && i !== n) {
3476
+ if (_o(i, t.draggable, e, !1) && !i.animated && i !== n) {
3442
3477
  var a = H(i);
3443
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);
3444
3479
  }
3445
3480
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
3446
3481
  }
3447
- var Ao = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3448
- function jo() {
3482
+ var Lo = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
3483
+ function Ro() {
3449
3484
  var e = [], t;
3450
3485
  return {
3451
3486
  captureAnimationState: function() {
@@ -3455,9 +3490,9 @@ function jo() {
3455
3490
  target: t,
3456
3491
  rect: H(t)
3457
3492
  });
3458
- var n = Ga({}, e[e.length - 1].rect);
3493
+ var n = $a({}, e[e.length - 1].rect);
3459
3494
  if (t.thisAnimationDuration) {
3460
- var r = fo(t, !0);
3495
+ var r = yo(t, !0);
3461
3496
  r && (n.top -= r.f, n.left -= r.e);
3462
3497
  }
3463
3498
  t.fromRect = n;
@@ -3468,7 +3503,7 @@ function jo() {
3468
3503
  e.push(t);
3469
3504
  },
3470
3505
  removeAnimationState: function(t) {
3471
- e.splice(bo(e, { target: t }), 1);
3506
+ e.splice(Do(e, { target: t }), 1);
3472
3507
  },
3473
3508
  animateAll: function(n) {
3474
3509
  var r = this;
@@ -3478,8 +3513,8 @@ function jo() {
3478
3513
  }
3479
3514
  var i = !1, a = 0;
3480
3515
  e.forEach(function(e) {
3481
- var t = 0, n = e.target, o = n.fromRect, s = H(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = fo(n, !0);
3482
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Co(c, s) && !Co(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = No(u, c, l, r.options)), Co(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() {
3483
3518
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
3484
3519
  }, t), n.thisAnimationDuration = t);
3485
3520
  }), clearTimeout(t), i ? t = setTimeout(function() {
@@ -3489,26 +3524,26 @@ function jo() {
3489
3524
  animate: function(e, t, n, r) {
3490
3525
  if (r) {
3491
3526
  V(e, "transition", ""), V(e, "transform", "");
3492
- var i = fo(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
3493
- e.animatingX = !!s, e.animatingY = !!c, V(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Mo(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() {
3494
3529
  V(e, "transition", ""), V(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
3495
3530
  }, r);
3496
3531
  }
3497
3532
  }
3498
3533
  };
3499
3534
  }
3500
- function Mo(e) {
3535
+ function zo(e) {
3501
3536
  return e.offsetWidth;
3502
3537
  }
3503
- function No(e, t, n, r) {
3538
+ function Bo(e, t, n, r) {
3504
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;
3505
3540
  }
3506
- var Po = [], Fo = { initializeByDefault: !0 }, Io = {
3541
+ var Vo = [], Ho = { initializeByDefault: !0 }, Uo = {
3507
3542
  mount: function(e) {
3508
- for (var t in Fo) Fo.hasOwnProperty(t) && !(t in e) && (e[t] = Fo[t]);
3509
- Po.forEach(function(t) {
3543
+ for (var t in Ho) Ho.hasOwnProperty(t) && !(t in e) && (e[t] = Ho[t]);
3544
+ Vo.forEach(function(t) {
3510
3545
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
3511
- }), Po.push(e);
3546
+ }), Vo.push(e);
3512
3547
  },
3513
3548
  pluginEvent: function(e, t, n) {
3514
3549
  var r = this;
@@ -3516,16 +3551,16 @@ var Po = [], Fo = { initializeByDefault: !0 }, Io = {
3516
3551
  r.eventCanceled = !0;
3517
3552
  };
3518
3553
  var i = e + "Global";
3519
- Po.forEach(function(r) {
3520
- t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Ga({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Ga({ 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)));
3521
3556
  });
3522
3557
  },
3523
3558
  initializePlugins: function(e, t, n, r) {
3524
- for (var i in Po.forEach(function(r) {
3559
+ for (var i in Vo.forEach(function(r) {
3525
3560
  var i = r.pluginName;
3526
3561
  if (e.options[i] || r.initializeByDefault) {
3527
3562
  var a = new r(e, t, e.options);
3528
- a.sortable = e, a.options = e.options, e[i] = a, Ja(n, a.defaults);
3563
+ a.sortable = e, a.options = e.options, e[i] = a, no(n, a.defaults);
3529
3564
  }
3530
3565
  }), e.options) if (e.options.hasOwnProperty(i)) {
3531
3566
  var a = this.modifyOption(e, i, e.options[i]);
@@ -3534,56 +3569,56 @@ var Po = [], Fo = { initializeByDefault: !0 }, Io = {
3534
3569
  },
3535
3570
  getEventProperties: function(e, t) {
3536
3571
  var n = {};
3537
- return Po.forEach(function(r) {
3538
- typeof r.eventProperties == "function" && Ja(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));
3539
3574
  }), n;
3540
3575
  },
3541
3576
  modifyOption: function(e, t, n) {
3542
3577
  var r;
3543
- return Po.forEach(function(i) {
3578
+ return Vo.forEach(function(i) {
3544
3579
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
3545
3580
  }), r;
3546
3581
  }
3547
3582
  };
3548
- function Lo(e) {
3583
+ function Wo(e) {
3549
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;
3550
- if (t ||= n && n[Ao], t) {
3585
+ if (t ||= n && n[Lo], t) {
3551
3586
  var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
3552
- window.CustomEvent && !$a && !eo ? h = new CustomEvent(r, {
3587
+ window.CustomEvent && !so && !co ? h = new CustomEvent(r, {
3553
3588
  bubbles: !0,
3554
3589
  cancelable: !0
3555
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;
3556
- var v = Ga(Ga({}, m), Io.getEventProperties(r, t));
3591
+ var v = $a($a({}, m), Uo.getEventProperties(r, t));
3557
3592
  for (var y in v) h[y] = v[y];
3558
3593
  n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
3559
3594
  }
3560
3595
  }
3561
- var Ro = ["evt"], U = function(e, t) {
3562
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Xa(n, Ro);
3563
- Io.pluginEvent.bind(Q)(e, t, Ga({
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({
3564
3599
  dragEl: G,
3565
3600
  parentEl: K,
3566
3601
  ghostEl: q,
3567
3602
  rootEl: J,
3568
- nextEl: zo,
3569
- lastDownEl: Bo,
3603
+ nextEl: Ko,
3604
+ lastDownEl: qo,
3570
3605
  cloneEl: Y,
3571
- cloneHidden: Vo,
3572
- dragStarted: ns,
3606
+ cloneHidden: Jo,
3607
+ dragStarted: ls,
3573
3608
  putSortable: X,
3574
3609
  activeSortable: Q.active,
3575
3610
  originalEvent: r,
3576
- oldIndex: Ho,
3577
- oldDraggableIndex: Wo,
3578
- newIndex: Uo,
3579
- newDraggableIndex: Go,
3580
- hideGhostForTarget: bs,
3581
- unhideGhostForTarget: xs,
3611
+ oldIndex: Yo,
3612
+ oldDraggableIndex: Zo,
3613
+ newIndex: Xo,
3614
+ newDraggableIndex: Qo,
3615
+ hideGhostForTarget: Ds,
3616
+ unhideGhostForTarget: Os,
3582
3617
  cloneNowHidden: function() {
3583
- Vo = !0;
3618
+ Jo = !0;
3584
3619
  },
3585
3620
  cloneNowShown: function() {
3586
- Vo = !1;
3621
+ Jo = !1;
3587
3622
  },
3588
3623
  dispatchSortableEvent: function(e) {
3589
3624
  W({
@@ -3595,45 +3630,45 @@ var Ro = ["evt"], U = function(e, t) {
3595
3630
  }, i));
3596
3631
  };
3597
3632
  function W(e) {
3598
- Lo(Ga({
3633
+ Wo($a({
3599
3634
  putSortable: X,
3600
3635
  cloneEl: Y,
3601
3636
  targetEl: G,
3602
3637
  rootEl: J,
3603
- oldIndex: Ho,
3604
- oldDraggableIndex: Wo,
3605
- newIndex: Uo,
3606
- newDraggableIndex: Go
3638
+ oldIndex: Yo,
3639
+ oldDraggableIndex: Zo,
3640
+ newIndex: Xo,
3641
+ newDraggableIndex: Qo
3607
3642
  }, e));
3608
3643
  }
3609
- var G, K, q, J, zo, Bo, Y, Vo, Ho, Uo, Wo, Go, Ko, X, qo = !1, Jo = !1, Yo = [], Xo, Zo, Qo, $o, es, ts, ns, rs, is, as = !1, os = !1, ss, Z, cs = [], ls = !1, us = [], ds = typeof document < "u", fs = ro, ps = eo || $a ? "cssFloat" : "float", ms = ds && !io && !ro && "draggable" in document.createElement("div"), hs = function() {
3610
- if (ds) {
3611
- if ($a) 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;
3612
3647
  var e = document.createElement("x");
3613
3648
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
3614
3649
  }
3615
- }(), gs = function(e, t) {
3616
- var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = go(e, 0, t), a = go(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;
3617
3652
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
3618
3653
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
3619
3654
  if (i && o.float && o.float !== "none") {
3620
3655
  var u = o.float === "left" ? "left" : "right";
3621
3656
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
3622
3657
  }
3623
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ps] === "none" || a && n[ps] === "none" && c + l > r) ? "vertical" : "horizontal";
3624
- }, _s = 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) {
3625
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;
3626
3661
  return r === o || i === s || r + a / 2 === o + c / 2;
3627
- }, vs = function(e, t) {
3662
+ }, Ts = function(e, t) {
3628
3663
  var n;
3629
- return Yo.some(function(r) {
3630
- var i = r[Ao].options.emptyInsertThreshold;
3631
- if (i && !_o(r)) {
3664
+ return ns.some(function(r) {
3665
+ var i = r[Lo].options.emptyInsertThreshold;
3666
+ if (i && !wo(r)) {
3632
3667
  var a = H(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
3633
3668
  if (o && s) return n = r;
3634
3669
  }
3635
3670
  }), n;
3636
- }, ys = function(e) {
3671
+ }, Es = function(e) {
3637
3672
  function t(e, n) {
3638
3673
  return function(r, i, a, o) {
3639
3674
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -3646,31 +3681,31 @@ var G, K, q, J, zo, Bo, Y, Vo, Ho, Uo, Wo, Go, Ko, X, qo = !1, Jo = !1, Yo = [],
3646
3681
  };
3647
3682
  }
3648
3683
  var n = {}, r = e.group;
3649
- (!r || Ka(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;
3650
- }, bs = function() {
3651
- !hs && q && V(q, "display", "none");
3652
- }, xs = function() {
3653
- !hs && 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", "");
3654
3689
  };
3655
- ds && !io && document.addEventListener("click", function(e) {
3656
- if (Jo) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Jo = !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;
3657
3692
  }, !0);
3658
- var Ss = function(e) {
3693
+ var ks = function(e) {
3659
3694
  if (G) {
3660
3695
  e = e.touches ? e.touches[0] : e;
3661
- var t = vs(e.clientX, e.clientY);
3696
+ var t = Ts(e.clientX, e.clientY);
3662
3697
  if (t) {
3663
3698
  var n = {};
3664
3699
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
3665
- n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Ao]._onDragOver(n);
3700
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Lo]._onDragOver(n);
3666
3701
  }
3667
3702
  }
3668
- }, Cs = function(e) {
3669
- G && G.parentNode[Ao]._isOutsideThisEl(e.target);
3703
+ }, As = function(e) {
3704
+ G && G.parentNode[Lo]._isOutsideThisEl(e.target);
3670
3705
  };
3671
3706
  function Q(e, t) {
3672
3707
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
3673
- this.el = e, this.options = t = Ja({}, t), e[Ao] = this;
3708
+ this.el = e, this.options = t = no({}, t), e[Lo] = this;
3674
3709
  var n = {
3675
3710
  group: null,
3676
3711
  sort: !0,
@@ -3683,7 +3718,7 @@ function Q(e, t) {
3683
3718
  invertedSwapThreshold: null,
3684
3719
  removeCloneOnHide: !0,
3685
3720
  direction: function() {
3686
- return gs(e, this.options);
3721
+ return Cs(e, this.options);
3687
3722
  },
3688
3723
  ghostClass: "sortable-ghost",
3689
3724
  chosenClass: "sortable-chosen",
@@ -3710,17 +3745,17 @@ function Q(e, t) {
3710
3745
  x: 0,
3711
3746
  y: 0
3712
3747
  },
3713
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !no,
3748
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !uo,
3714
3749
  emptyInsertThreshold: 5
3715
3750
  };
3716
- for (var r in Io.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
3717
- for (var i in ys(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
3718
- this.nativeDraggable = !t.forceFallback && ms, 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)), Yo.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ja(this, jo());
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());
3719
3754
  }
3720
3755
  Q.prototype = {
3721
3756
  constructor: Q,
3722
3757
  _isOutsideThisEl: function(e) {
3723
- !this.el.contains(e) && e !== this.el && (rs = null);
3758
+ !this.el.contains(e) && e !== this.el && (us = null);
3724
3759
  },
3725
3760
  _getDirection: function(e, t) {
3726
3761
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
@@ -3728,8 +3763,8 @@ Q.prototype = {
3728
3763
  _onTapStart: function(e) {
3729
3764
  if (e.cancelable) {
3730
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;
3731
- if (Ns(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && no && s && s.tagName.toUpperCase() === "SELECT") && (s = co(s, r.draggable, n, !1), !(s && s.animated) && Bo !== s)) {
3732
- if (Ho = vo(s), Wo = vo(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") {
3733
3768
  if (l.call(this, e, s, this)) {
3734
3769
  W({
3735
3770
  sortable: t,
@@ -3742,7 +3777,7 @@ Q.prototype = {
3742
3777
  return;
3743
3778
  }
3744
3779
  } else if (l && (l = l.split(",").some(function(r) {
3745
- if (r = co(c, r.trim(), n, !1), r) return W({
3780
+ if (r = _o(c, r.trim(), n, !1), r) return W({
3746
3781
  sortable: t,
3747
3782
  rootEl: r,
3748
3783
  name: "filter",
@@ -3754,7 +3789,7 @@ Q.prototype = {
3754
3789
  i && e.cancelable && e.preventDefault();
3755
3790
  return;
3756
3791
  }
3757
- r.handle && !co(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3792
+ r.handle && !_o(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
3758
3793
  }
3759
3794
  }
3760
3795
  },
@@ -3762,28 +3797,28 @@ Q.prototype = {
3762
3797
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
3763
3798
  if (n && !G && n.parentNode === i) {
3764
3799
  var c = H(n);
3765
- if (J = i, G = n, K = G.parentNode, zo = G.nextSibling, Bo = n, Ko = a.group, Q.dragged = G, Xo = {
3800
+ if (J = i, G = n, K = G.parentNode, Ko = G.nextSibling, qo = n, $o = a.group, Q.dragged = G, rs = {
3766
3801
  target: G,
3767
3802
  clientX: (t || e).clientX,
3768
3803
  clientY: (t || e).clientY
3769
- }, es = Xo.clientX - c.left, ts = Xo.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() {
3770
3805
  if (U("delayEnded", r, { evt: e }), Q.eventCanceled) {
3771
3806
  r._onDrop();
3772
3807
  return;
3773
3808
  }
3774
- r._disableDelayedDragEvents(), !to && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3809
+ r._disableDelayedDragEvents(), !lo && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), W({
3775
3810
  sortable: r,
3776
3811
  name: "choose",
3777
3812
  originalEvent: e
3778
- }), uo(G, a.chosenClass, !0);
3813
+ }), B(G, a.chosenClass, !0);
3779
3814
  }, a.ignore.split(",").forEach(function(e) {
3780
- po(G, e.trim(), Es);
3781
- }), z(o, "dragover", Ss), z(o, "mousemove", Ss), z(o, "touchmove", Ss), z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop), to && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), U("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(eo || $a))) {
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))) {
3782
3817
  if (Q.eventCanceled) {
3783
3818
  this._onDrop();
3784
3819
  return;
3785
3820
  }
3786
- 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);
3787
3822
  } else s();
3788
3823
  }
3789
3824
  },
@@ -3792,25 +3827,25 @@ Q.prototype = {
3792
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();
3793
3828
  },
3794
3829
  _disableDelayedDrag: function() {
3795
- G && Es(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3830
+ G && Ns(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
3796
3831
  },
3797
3832
  _disableDelayedDragEvents: function() {
3798
3833
  var e = this.el.ownerDocument;
3799
- 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);
3800
3835
  },
3801
3836
  _triggerDragStart: function(e, t) {
3802
- 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));
3803
3838
  try {
3804
- document.selection ? Ps(function() {
3839
+ document.selection ? Vs(function() {
3805
3840
  document.selection.empty();
3806
3841
  }) : window.getSelection().removeAllRanges();
3807
3842
  } catch {}
3808
3843
  },
3809
3844
  _dragStarted: function(e, t) {
3810
- if (qo = !1, J && G) {
3811
- U("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Cs);
3845
+ if (es = !1, J && G) {
3846
+ U("dragStarted", this, { evt: t }), this.nativeDraggable && R(document, "dragover", As);
3812
3847
  var n = this.options;
3813
- !e && uo(G, n.dragClass, !1), uo(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({
3814
3849
  sortable: this,
3815
3850
  name: "start",
3816
3851
  originalEvent: t
@@ -3818,33 +3853,33 @@ Q.prototype = {
3818
3853
  } else this._nulling();
3819
3854
  },
3820
3855
  _emulateDragOver: function() {
3821
- if (Zo) {
3822
- this._lastX = Zo.clientX, this._lastY = Zo.clientY, bs();
3823
- for (var e = document.elementFromPoint(Zo.clientX, Zo.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Zo.clientX, Zo.clientY), e !== t);) t = e;
3824
- if (G.parentNode[Ao]._isOutsideThisEl(e), t) do {
3825
- if (t[Ao]) {
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]) {
3826
3861
  var n = void 0;
3827
- if (n = t[Ao]._onDragOver({
3828
- clientX: Zo.clientX,
3829
- clientY: Zo.clientY,
3862
+ if (n = t[Lo]._onDragOver({
3863
+ clientX: is.clientX,
3864
+ clientY: is.clientY,
3830
3865
  target: e,
3831
3866
  rootEl: t
3832
3867
  }), n && !this.options.dragoverBubble) break;
3833
3868
  }
3834
3869
  e = t;
3835
3870
  } while (t = t.parentNode);
3836
- xs();
3871
+ Os();
3837
3872
  }
3838
3873
  },
3839
3874
  _onTouchMove: function(e) {
3840
- if (Xo) {
3841
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && fo(q, !0), o = q && a && a.a, s = q && a && a.d, c = fs && Z && yo(Z), l = (i.clientX - Xo.clientX + r.x) / (o || 1) + (c ? c[0] - cs[0] : 0) / (o || 1), u = (i.clientY - Xo.clientY + r.y) / (s || 1) + (c ? c[1] - cs[1] : 0) / (s || 1);
3842
- 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) {
3843
3878
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
3844
3879
  this._onDragStart(e, !0);
3845
3880
  }
3846
3881
  if (q) {
3847
- a ? (a.e += l - (Qo || 0), a.f += u - ($o || 0)) : a = {
3882
+ a ? (a.e += l - (as || 0), a.f += u - (os || 0)) : a = {
3848
3883
  a: 1,
3849
3884
  b: 0,
3850
3885
  c: 0,
@@ -3853,19 +3888,19 @@ Q.prototype = {
3853
3888
  f: u
3854
3889
  };
3855
3890
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
3856
- V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), Qo = l, $o = u, Zo = i;
3891
+ V(q, "webkitTransform", d), V(q, "mozTransform", d), V(q, "msTransform", d), V(q, "transform", d), as = l, os = u, is = i;
3857
3892
  }
3858
3893
  e.cancelable && e.preventDefault();
3859
3894
  }
3860
3895
  },
3861
3896
  _appendGhost: function() {
3862
3897
  if (!q) {
3863
- var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, fs, !0, e), n = this.options;
3864
- if (fs) {
3898
+ var e = this.options.fallbackOnBody ? document.body : J, t = H(G, !0, ys, !0, e), n = this.options;
3899
+ if (ys) {
3865
3900
  for (Z = e; V(Z, "position") === "static" && V(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
3866
- Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = mo()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = mo(), cs = yo(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);
3867
3902
  }
3868
- q = G.cloneNode(!0), uo(q, n.ghostClass, !1), uo(q, n.fallbackClass, !0), uo(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", fs ? "absolute" : "fixed"), V(q, "zIndex", "100000"), V(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), V(q, "transform-origin", es / parseInt(q.style.width) * 100 + "% " + ts / 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 + "%");
3869
3904
  }
3870
3905
  },
3871
3906
  _onDragStart: function(e, t) {
@@ -3874,18 +3909,18 @@ Q.prototype = {
3874
3909
  this._onDrop();
3875
3910
  return;
3876
3911
  }
3877
- U("setupClone", this), Q.eventCanceled || (Y = Oo(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), uo(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = Ps(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() {
3878
3913
  U("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), W({
3879
3914
  sortable: n,
3880
3915
  name: "clone"
3881
3916
  }));
3882
- }), !t && uo(G, i.dragClass, !0), t ? (Jo = !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 = Ps(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), ns = !0, no && 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");
3883
3918
  },
3884
3919
  _onDragOver: function(e) {
3885
- var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Ko === s, u = o.sort, d = X || c, f, p = this, m = !1;
3886
- if (ls) 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;
3887
3922
  function h(o, s) {
3888
- U(o, p, Ga({
3923
+ U(o, p, $a({
3889
3924
  evt: e,
3890
3925
  isOwner: l,
3891
3926
  axis: f ? "vertical" : "horizontal",
@@ -3897,7 +3932,7 @@ Q.prototype = {
3897
3932
  target: n,
3898
3933
  completed: _,
3899
3934
  onMove: function(n, i) {
3900
- return Ts(J, t, G, r, n, H(n), e, i);
3935
+ return Ms(J, t, G, r, n, H(n), e, i);
3901
3936
  },
3902
3937
  changed: v
3903
3938
  }, s));
@@ -3906,50 +3941,50 @@ Q.prototype = {
3906
3941
  h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
3907
3942
  }
3908
3943
  function _(r) {
3909
- return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (uo(G, X ? X.options.ghostClass : c.options.ghostClass, !1), uo(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() {
3910
3945
  h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
3911
- }), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (rs = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[Ao]._isOutsideThisEl(e.target), !r && Ss(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;
3912
3947
  }
3913
3948
  function v() {
3914
- Uo = vo(G), Go = vo(G, o.draggable), W({
3949
+ Xo = To(G), Qo = To(G, o.draggable), W({
3915
3950
  sortable: p,
3916
3951
  name: "change",
3917
3952
  toEl: t,
3918
- newIndex: Uo,
3919
- newDraggableIndex: Go,
3953
+ newIndex: Xo,
3954
+ newDraggableIndex: Qo,
3920
3955
  originalEvent: e
3921
3956
  });
3922
3957
  }
3923
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = co(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;
3924
3959
  if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
3925
- if (Jo = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = Ko.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))) {
3926
3961
  if (f = this._getDirection(e, n) === "vertical", r = H(G), h("dragOverValid"), Q.eventCanceled) return m;
3927
- if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (zo ? J.insertBefore(G, zo) : J.appendChild(G)), _(!0);
3928
- var y = _o(t, o.draggable);
3929
- if (!y || ks(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) {
3930
3965
  if (y === G) return _(!1);
3931
- if (y && t === e.target && (n = y), n && (i = H(n)), Ts(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);
3932
- } else if (y && Os(e, f, this)) {
3933
- var b = go(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);
3934
3969
  if (b === G) return _(!1);
3935
- if (n = b, i = H(n), Ts(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);
3936
3971
  } else if (n.parentNode === t) {
3937
3972
  i = H(n);
3938
- var x = 0, S, C = G.parentNode !== t, w = !_s(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = ho(n, "top", "top") || ho(G, "top", "top"), D = E ? E.scrollTop : void 0;
3939
- rs !== n && (S = i[T], as = !1, os = !w && o.invertSwap || C), x = As(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, os, rs === 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);
3940
3975
  var O;
3941
3976
  if (x !== 0) {
3942
- var k = vo(G);
3977
+ var k = To(G);
3943
3978
  do
3944
3979
  k -= x, O = K.children[k];
3945
3980
  while (O && (V(O, "display") === "none" || O === q));
3946
3981
  }
3947
3982
  if (x === 0 || O === n) return _(!1);
3948
- rs = n, is = x;
3949
- var A = n.nextElementSibling, j = !1;
3950
- j = x === 1;
3951
- var M = Ts(J, t, G, r, n, i, e, j);
3952
- if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), ls = !0, setTimeout(Ds, 30), g(), j && !A ? t.appendChild(G) : n.parentNode.insertBefore(G, j ? A : n), E && Do(E, 0, D - E.scrollTop), K = G.parentNode, S !== void 0 && !os && (ss = 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);
3953
3988
  }
3954
3989
  if (t.contains(G)) return _(!1);
3955
3990
  }
@@ -3957,26 +3992,26 @@ Q.prototype = {
3957
3992
  },
3958
3993
  _ignoreWhileAnimating: null,
3959
3994
  _offMoveEvents: function() {
3960
- B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", Ss), B(document, "mousemove", Ss), B(document, "touchmove", Ss);
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);
3961
3996
  },
3962
3997
  _offUpEvents: function() {
3963
3998
  var e = this.el.ownerDocument;
3964
- 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);
3965
4000
  },
3966
4001
  _onDrop: function(e) {
3967
4002
  var t = this.el, n = this.options;
3968
- if (Uo = vo(G), Go = vo(G, n.draggable), U("drop", this, { evt: e }), K = G && G.parentNode, Uo = vo(G), Go = vo(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) {
3969
4004
  this._nulling();
3970
4005
  return;
3971
4006
  }
3972
- qo = !1, os = !1, as = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Fs(this.cloneId), Fs(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), no && V(document.body, "user-select", ""), V(G, "transform", ""), e && (ns && (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), Es(G), G.style["will-change"] = "", ns && !qo && uo(G, X ? X.options.ghostClass : this.options.ghostClass, !1), uo(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({
3973
4008
  sortable: this,
3974
4009
  name: "unchoose",
3975
4010
  toEl: K,
3976
4011
  newIndex: null,
3977
4012
  newDraggableIndex: null,
3978
4013
  originalEvent: e
3979
- }), J === K ? Uo !== Ho && Uo >= 0 && (W({
4014
+ }), J === K ? Xo !== Yo && Xo >= 0 && (W({
3980
4015
  sortable: this,
3981
4016
  name: "update",
3982
4017
  toEl: K,
@@ -3986,7 +4021,7 @@ Q.prototype = {
3986
4021
  name: "sort",
3987
4022
  toEl: K,
3988
4023
  originalEvent: e
3989
- })) : (Uo >= 0 && (W({
4024
+ })) : (Xo >= 0 && (W({
3990
4025
  rootEl: K,
3991
4026
  name: "add",
3992
4027
  toEl: K,
@@ -4008,7 +4043,7 @@ Q.prototype = {
4008
4043
  name: "sort",
4009
4044
  toEl: K,
4010
4045
  originalEvent: e
4011
- })), X && X.save()), Q.active && ((Uo == null || Uo === -1) && (Uo = Ho, Go = Wo), W({
4046
+ })), X && X.save()), Q.active && ((Xo == null || Xo === -1) && (Xo = Yo, Qo = Zo), W({
4012
4047
  sortable: this,
4013
4048
  name: "end",
4014
4049
  toEl: K,
@@ -4016,9 +4051,9 @@ Q.prototype = {
4016
4051
  }), this.save()))), this._nulling();
4017
4052
  },
4018
4053
  _nulling: function() {
4019
- U("nulling", this), J = G = K = q = zo = Y = Bo = Vo = Xo = Zo = ns = Uo = Go = Ho = Wo = rs = is = X = Ko = Q.dragged = Q.ghost = Q.clone = Q.active = null, us.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) {
4020
4055
  e.checked = !0;
4021
- }), us.length = Qo = $o = 0;
4056
+ }), _s.length = as = os = 0;
4022
4057
  },
4023
4058
  handleEvent: function(e) {
4024
4059
  switch (e.type) {
@@ -4028,20 +4063,20 @@ Q.prototype = {
4028
4063
  break;
4029
4064
  case "dragenter":
4030
4065
  case "dragover":
4031
- G && (this._onDragOver(e), ws(e));
4066
+ G && (this._onDragOver(e), js(e));
4032
4067
  break;
4033
4068
  case "selectstart": e.preventDefault();
4034
4069
  }
4035
4070
  },
4036
4071
  toArray: function() {
4037
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], co(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ms(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));
4038
4073
  return e;
4039
4074
  },
4040
4075
  sort: function(e, t) {
4041
4076
  var n = {}, r = this.el;
4042
4077
  this.toArray().forEach(function(e, t) {
4043
4078
  var i = r.children[t];
4044
- co(i, this.options.draggable, r, !1) && (n[e] = i);
4079
+ _o(i, this.options.draggable, r, !1) && (n[e] = i);
4045
4080
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
4046
4081
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
4047
4082
  }), t && this.animateAll();
@@ -4051,25 +4086,25 @@ Q.prototype = {
4051
4086
  e && e.set && e.set(this);
4052
4087
  },
4053
4088
  closest: function(e, t) {
4054
- return co(e, t || this.options.draggable, this.el, !1);
4089
+ return _o(e, t || this.options.draggable, this.el, !1);
4055
4090
  },
4056
4091
  option: function(e, t) {
4057
4092
  var n = this.options;
4058
4093
  if (t === void 0) return n[e];
4059
- var r = Io.modifyOption(this, e, t);
4060
- n[e] = r === void 0 ? t : r, e === "group" && ys(n);
4094
+ var r = Uo.modifyOption(this, e, t);
4095
+ n[e] = r === void 0 ? t : r, e === "group" && Es(n);
4061
4096
  },
4062
4097
  destroy: function() {
4063
4098
  U("destroy", this);
4064
4099
  var e = this.el;
4065
- e[Ao] = 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) {
4066
4101
  e.removeAttribute("draggable");
4067
- }), this._onDrop(), this._disableDelayedDragEvents(), Yo.splice(Yo.indexOf(this.el), 1), this.el = e = null;
4102
+ }), this._onDrop(), this._disableDelayedDragEvents(), ns.splice(ns.indexOf(this.el), 1), this.el = e = null;
4068
4103
  },
4069
4104
  _hideClone: function() {
4070
- if (!Vo) {
4105
+ if (!Jo) {
4071
4106
  if (U("hideClone", this), Q.eventCanceled) return;
4072
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Vo = !0;
4107
+ V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), Jo = !0;
4073
4108
  }
4074
4109
  },
4075
4110
  _showClone: function(e) {
@@ -4077,99 +4112,99 @@ Q.prototype = {
4077
4112
  this._hideClone();
4078
4113
  return;
4079
4114
  }
4080
- if (Vo) {
4115
+ if (Jo) {
4081
4116
  if (U("showClone", this), Q.eventCanceled) return;
4082
- G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : zo ? J.insertBefore(Y, zo) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), V(Y, "display", ""), Vo = !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;
4083
4118
  }
4084
4119
  }
4085
4120
  };
4086
- function ws(e) {
4121
+ function js(e) {
4087
4122
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
4088
4123
  }
4089
- function Ts(e, t, n, r, i, a, o, s) {
4090
- var c, l = e[Ao], u = l.options.onMove, d;
4091
- return window.CustomEvent && !$a && !eo ? 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", {
4092
4127
  bubbles: !0,
4093
4128
  cancelable: !0
4094
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;
4095
4130
  }
4096
- function Es(e) {
4131
+ function Ns(e) {
4097
4132
  e.draggable = !1;
4098
4133
  }
4099
- function Ds() {
4100
- ls = !1;
4134
+ function Ps() {
4135
+ gs = !1;
4101
4136
  }
4102
- function Os(e, t, n) {
4103
- var r = H(go(n.el, 0, n.options, !0)), i = ko(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;
4104
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;
4105
4140
  }
4106
- function ks(e, t, n) {
4107
- var r = H(_o(n.el, n.options.draggable)), i = ko(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;
4108
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;
4109
4144
  }
4110
- function As(e, t, n, r, i, a, o, s) {
4145
+ function Ls(e, t, n, r, i, a, o, s) {
4111
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;
4112
4147
  if (!o) {
4113
- if (s && ss < l * i) {
4114
- if (!as && (is === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (as = !0), as) f = !0;
4115
- else if (is === 1 ? c < u + ss : c > d - ss) return -is;
4116
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return js(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);
4117
4152
  }
4118
4153
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
4119
4154
  }
4120
- function js(e) {
4121
- return vo(G) < vo(e) ? 1 : -1;
4155
+ function Rs(e) {
4156
+ return To(G) < To(e) ? 1 : -1;
4122
4157
  }
4123
- function Ms(e) {
4158
+ function zs(e) {
4124
4159
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
4125
4160
  return r.toString(36);
4126
4161
  }
4127
- function Ns(e) {
4128
- us.length = 0;
4162
+ function Bs(e) {
4163
+ _s.length = 0;
4129
4164
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
4130
4165
  var r = t[n];
4131
- r.checked && us.push(r);
4166
+ r.checked && _s.push(r);
4132
4167
  }
4133
4168
  }
4134
- function Ps(e) {
4169
+ function Vs(e) {
4135
4170
  return setTimeout(e, 0);
4136
4171
  }
4137
- function Fs(e) {
4172
+ function Hs(e) {
4138
4173
  return clearTimeout(e);
4139
4174
  }
4140
- ds && z(document, "touchmove", function(e) {
4141
- (Q.active || qo) && e.cancelable && e.preventDefault();
4175
+ vs && R(document, "touchmove", function(e) {
4176
+ (Q.active || es) && e.cancelable && e.preventDefault();
4142
4177
  }), Q.utils = {
4143
- on: z,
4144
- off: B,
4178
+ on: R,
4179
+ off: z,
4145
4180
  css: V,
4146
- find: po,
4181
+ find: bo,
4147
4182
  is: function(e, t) {
4148
- return !!co(e, t, e, !1);
4183
+ return !!_o(e, t, e, !1);
4149
4184
  },
4150
- extend: So,
4151
- throttle: To,
4152
- closest: co,
4153
- toggleClass: uo,
4154
- clone: Oo,
4155
- index: vo,
4156
- nextTick: Ps,
4157
- cancelNextTick: Fs,
4158
- detectDirection: gs,
4159
- getChild: go
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
4160
4195
  }, Q.get = function(e) {
4161
- return e[Ao];
4196
+ return e[Lo];
4162
4197
  }, Q.mount = function() {
4163
4198
  var e = [...arguments];
4164
4199
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
4165
4200
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
4166
- e.utils && (Q.utils = Ga(Ga({}, Q.utils), e.utils)), Io.mount(e);
4201
+ e.utils && (Q.utils = $a($a({}, Q.utils), e.utils)), Uo.mount(e);
4167
4202
  });
4168
4203
  }, Q.create = function(e, t) {
4169
4204
  return new Q(e, t);
4170
- }, Q.version = Za;
4171
- var $ = [], Is, Ls, Rs = !1, zs, Bs, Vs, Hs;
4172
- function Us() {
4205
+ }, Q.version = ao;
4206
+ var $ = [], Us, Ws, Gs = !1, Ks, qs, Js, Ys;
4207
+ function Xs() {
4173
4208
  function e() {
4174
4209
  for (var e in this.defaults = {
4175
4210
  scroll: !0,
@@ -4182,70 +4217,70 @@ function Us() {
4182
4217
  return e.prototype = {
4183
4218
  dragStarted: function(e) {
4184
4219
  var t = e.originalEvent;
4185
- 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);
4186
4221
  },
4187
4222
  dragOverCompleted: function(e) {
4188
4223
  var t = e.originalEvent;
4189
4224
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
4190
4225
  },
4191
4226
  drop: function() {
4192
- this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), Gs(), Ws(), Eo();
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();
4193
4228
  },
4194
4229
  nulling: function() {
4195
- Vs = Ls = Is = Rs = Hs = zs = Bs = null, $.length = 0;
4230
+ Js = Ws = Us = Gs = Ys = Ks = qs = null, $.length = 0;
4196
4231
  },
4197
4232
  _handleFallbackAutoScroll: function(e) {
4198
4233
  this._handleAutoScroll(e, !0);
4199
4234
  },
4200
4235
  _handleAutoScroll: function(e, t) {
4201
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);
4202
- if (Vs = e, t || this.options.forceAutoScrollFallback || eo || $a || no) {
4203
- Ks(e, this.options, a, t);
4204
- var o = xo(a, !0);
4205
- Rs && (!Hs || r !== zs || i !== Bs) && (Hs && Gs(), Hs = setInterval(function() {
4206
- var a = xo(document.elementFromPoint(r, i), !0);
4207
- a !== o && (o = a, Ws()), Ks(e, n.options, a, t);
4208
- }, 10), zs = r, Bs = 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);
4209
4244
  } else {
4210
- if (!this.options.bubbleScroll || xo(a, !0) === mo()) {
4211
- Ws();
4245
+ if (!this.options.bubbleScroll || Oo(a, !0) === xo()) {
4246
+ Zs();
4212
4247
  return;
4213
4248
  }
4214
- Ks(e, this.options, xo(a, !1), !1);
4249
+ $s(e, this.options, Oo(a, !1), !1);
4215
4250
  }
4216
4251
  }
4217
- }, Ja(e, {
4252
+ }, no(e, {
4218
4253
  pluginName: "scroll",
4219
4254
  initializeByDefault: !0
4220
4255
  });
4221
4256
  }
4222
- function Ws() {
4257
+ function Zs() {
4223
4258
  $.forEach(function(e) {
4224
4259
  clearInterval(e.pid);
4225
4260
  }), $ = [];
4226
4261
  }
4227
- function Gs() {
4228
- clearInterval(Hs);
4262
+ function Qs() {
4263
+ clearInterval(Ys);
4229
4264
  }
4230
- var Ks = To(function(e, t, n, r) {
4265
+ var $s = Mo(function(e, t, n, r) {
4231
4266
  if (t.scroll) {
4232
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = mo(), l = !1, u;
4233
- Ls !== n && (Ls = n, Ws(), Is = t.scroll, u = t.scrollFn, Is === !0 && (Is = xo(n, !0)));
4234
- var d = 0, f = Is;
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;
4235
4270
  do {
4236
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;
4237
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"));
4238
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);
4239
4274
  if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
4240
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() {
4241
- r && this.layer === 0 && Q.active._onTouchMove(Vs);
4276
+ r && this.layer === 0 && Q.active._onTouchMove(Js);
4242
4277
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
4243
- typeof u == "function" && u.call(Q.dragged.parentNode[Ao], n, t, e, Vs, $[this.layer].el) !== "continue" || Do($[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);
4244
4279
  }.bind({ layer: d }), 24))), d++;
4245
- } while (t.bubbleScroll && f !== c && (f = xo(f, !1)));
4246
- Rs = l;
4280
+ } while (t.bubbleScroll && f !== c && (f = Oo(f, !1)));
4281
+ Gs = l;
4247
4282
  }
4248
- }, 30), qs = function(e) {
4283
+ }, 30), ec = function(e) {
4249
4284
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
4250
4285
  if (t) {
4251
4286
  var c = n || i;
@@ -4257,8 +4292,8 @@ var Ks = To(function(e, t, n, r) {
4257
4292
  }));
4258
4293
  }
4259
4294
  };
4260
- function Js() {}
4261
- Js.prototype = {
4295
+ function tc() {}
4296
+ tc.prototype = {
4262
4297
  startIndex: null,
4263
4298
  dragStart: function(e) {
4264
4299
  var t = e.oldDraggableIndex;
@@ -4267,72 +4302,72 @@ Js.prototype = {
4267
4302
  onSpill: function(e) {
4268
4303
  var t = e.dragEl, n = e.putSortable;
4269
4304
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
4270
- var r = go(this.sortable.el, this.startIndex, this.options);
4305
+ var r = Co(this.sortable.el, this.startIndex, this.options);
4271
4306
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
4272
4307
  },
4273
- drop: qs
4274
- }, Ja(Js, { pluginName: "revertOnSpill" });
4275
- function Ys() {}
4276
- Ys.prototype = {
4308
+ drop: ec
4309
+ }, no(tc, { pluginName: "revertOnSpill" });
4310
+ function nc() {}
4311
+ nc.prototype = {
4277
4312
  onSpill: function(e) {
4278
4313
  var t = e.dragEl, n = e.putSortable || this.sortable;
4279
4314
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
4280
4315
  },
4281
- drop: qs
4282
- }, Ja(Ys, { pluginName: "removeOnSpill" }), Q.mount(new Us()), Q.mount(Ys, Js);
4283
- function Xs(e) {
4316
+ drop: ec
4317
+ }, no(nc, { pluginName: "removeOnSpill" }), Q.mount(new Xs()), Q.mount(nc, tc);
4318
+ function rc(e) {
4284
4319
  return e == null ? e : JSON.parse(JSON.stringify(e));
4285
4320
  }
4286
- function Zs(e) {
4287
- te() && l(e);
4321
+ function ic(e) {
4322
+ ne() && l(e);
4288
4323
  }
4289
- function Qs(e) {
4290
- te() ? n(e) : m(e);
4324
+ function ac(e) {
4325
+ ne() ? n(e) : m(e);
4291
4326
  }
4292
- var $s = null, ec = null;
4293
- function tc(e = null, t = null) {
4294
- $s = e, ec = t;
4327
+ var oc = null, sc = null;
4328
+ function cc(e = null, t = null) {
4329
+ oc = e, sc = t;
4295
4330
  }
4296
- function nc() {
4331
+ function lc() {
4297
4332
  return {
4298
- data: $s,
4299
- clonedData: ec
4333
+ data: oc,
4334
+ clonedData: sc
4300
4335
  };
4301
4336
  }
4302
- var rc = Symbol("cloneElement");
4303
- function ic(...e) {
4304
- let t = te()?.proxy, n = null, r = e[0], [, i, o] = e;
4305
- Array.isArray(P(i)) || (o = i, i = null);
4306
- let c = null, { immediate: l = !0, clone: u = Xs, 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) ?? {};
4307
4342
  function h(e) {
4308
4343
  let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
4309
4344
  n = d && !f ? o.slice(0, -1) : o;
4310
- let s = P(P(i)?.[r]), c = u(s);
4311
- tc(s, c), a[rc] = c;
4345
+ let s = N(N(i)?.[r]), c = u(s);
4346
+ cc(s, c), a[uc] = c;
4312
4347
  }
4313
4348
  function g(e) {
4314
- let t = e.item[rc];
4315
- if (!Na(t)) {
4316
- if (Ia(e.item), a(i)) {
4317
- let n = [...P(i)];
4318
- i.value = Ma(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);
4319
4354
  return;
4320
4355
  }
4321
- Ma(P(i), e.newDraggableIndex, t);
4356
+ Ba(N(i), e.newDraggableIndex, t);
4322
4357
  }
4323
4358
  }
4324
4359
  function _(e) {
4325
4360
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, pullMode: s, clone: c } = e;
4326
- if (Fa(t, n, r), s === "clone") {
4327
- Ia(c);
4361
+ if (Ua(t, n, r), s === "clone") {
4362
+ Wa(c);
4328
4363
  return;
4329
4364
  }
4330
4365
  if (a(i)) {
4331
- let e = [...P(i)];
4332
- i.value = ja(e, o);
4366
+ let e = [...N(i)];
4367
+ i.value = za(e, o);
4333
4368
  return;
4334
4369
  }
4335
- ja(P(i), o);
4370
+ za(N(i), o);
4336
4371
  }
4337
4372
  function v(e) {
4338
4373
  if (p) {
@@ -4340,12 +4375,12 @@ function ic(...e) {
4340
4375
  return;
4341
4376
  }
4342
4377
  let { from: t, item: n, oldIndex: r, oldDraggableIndex: o, newDraggableIndex: s } = e;
4343
- if (Ia(n), Fa(t, n, r), a(i)) {
4344
- let e = [...P(i)];
4345
- i.value = Oa(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);
4346
4381
  return;
4347
4382
  }
4348
- Oa(P(i), o, s);
4383
+ Ia(N(i), o, s);
4349
4384
  }
4350
4385
  function y(e) {
4351
4386
  let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
@@ -4364,7 +4399,7 @@ function ic(...e) {
4364
4399
  n = null;
4365
4400
  }
4366
4401
  m(() => {
4367
- if (tc(), o) throw o;
4402
+ if (cc(), o) throw o;
4368
4403
  });
4369
4404
  }
4370
4405
  let b = {
@@ -4375,20 +4410,20 @@ function ic(...e) {
4375
4410
  onEnd: y
4376
4411
  };
4377
4412
  function x(e) {
4378
- let n = P(r);
4379
- return e ||= Pa(n) ? La(n, t?.$el) : n, e && !Ba(e) && (e = e.$el), e || Da("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;
4380
4415
  }
4381
4416
  function S() {
4382
- let e = P(o) ?? {}, { immediate: t, clone: n } = e, r = wa(e, ["immediate", "clone"]);
4383
- return Va(r, (e, t) => {
4384
- Ha(e) && (r[e] = (e, ...n) => (Ua(e, nc()), t(e, ...n)));
4385
- }), za(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);
4386
4421
  }
4387
4422
  let C = (e) => {
4388
4423
  e = x(e), c && w.destroy(), c = new Q(e, S());
4389
4424
  };
4390
4425
  s(() => o, () => {
4391
- c && Va(S(), (e, t) => {
4426
+ c && Ya(S(), (e, t) => {
4392
4427
  c?.option(e, t);
4393
4428
  });
4394
4429
  }, { deep: !0 });
@@ -4401,15 +4436,15 @@ function ic(...e) {
4401
4436
  toArray: () => c?.toArray(),
4402
4437
  closest: (...e) => c?.closest(...e)
4403
4438
  };
4404
- return Qs(() => {
4439
+ return ac(() => {
4405
4440
  l && C();
4406
- }), Zs(w.destroy), Ca({
4441
+ }), ic(w.destroy), ja({
4407
4442
  start: C,
4408
4443
  pause: () => w?.option("disabled", !0),
4409
4444
  resume: () => w?.option("disabled", !1)
4410
4445
  }, w);
4411
4446
  }
4412
- var ac = [
4447
+ var fc = [
4413
4448
  "update",
4414
4449
  "start",
4415
4450
  "add",
@@ -4422,7 +4457,7 @@ var ac = [
4422
4457
  "clone",
4423
4458
  "move",
4424
4459
  "change"
4425
- ], oc = [
4460
+ ], pc = [
4426
4461
  "clone",
4427
4462
  "animation",
4428
4463
  "ghostClass",
@@ -4466,43 +4501,43 @@ var ac = [
4466
4501
  "tag",
4467
4502
  "target",
4468
4503
  "customUpdate",
4469
- ...ac.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4470
- ], sc = L({
4504
+ ...fc.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
4505
+ ], mc = I({
4471
4506
  name: "VueDraggable",
4472
4507
  model: {
4473
4508
  prop: "modelValue",
4474
4509
  event: "update:modelValue"
4475
4510
  },
4476
- props: oc,
4477
- emits: ["update:modelValue", ...ac],
4511
+ props: pc,
4512
+ emits: ["update:modelValue", ...fc],
4478
4513
  setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
4479
- let a = ac.reduce((e, t) => {
4514
+ let a = fc.reduce((e, t) => {
4480
4515
  let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
4481
4516
  return e[r] = (...e) => n(t, ...e), e;
4482
- }, {}), s = F(() => {
4483
- let t = C(e), { modelValue: n } = t, r = wa(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
4484
- 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);
4485
4520
  return r !== void 0 && (e[t] = r), e;
4486
4521
  }, {});
4487
- return Ca(Ca({}, a), Aa(Ca(Ca({}, i), o)));
4488
- }), c = F({
4522
+ return ja(ja({}, a), Ra(ja(ja({}, i), o)));
4523
+ }), c = P({
4489
4524
  get: () => e.modelValue,
4490
4525
  set: (e) => n("update:modelValue", e)
4491
- }), l = _(), u = o(ic(e.target || l, c, s));
4526
+ }), l = _(), u = o(dc(e.target || l, c, s));
4492
4527
  return r(u), () => b(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
4493
4528
  }
4494
- }), cc = {
4529
+ }), hc = {
4495
4530
  mounted: "mounted",
4496
4531
  unmounted: "unmounted"
4497
4532
  };
4498
- cc.mounted, cc.unmounted;
4533
+ hc.mounted, hc.unmounted;
4499
4534
  //#endregion
4500
4535
  //#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
4501
- var lc = { class: "tpl:w-full" }, uc = {
4536
+ var gc = { class: "tpl:w-full" }, _c = {
4502
4537
  key: 0,
4503
4538
  "data-testid": "section-drop-hint",
4504
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)]"
4505
- }, dc = /* @__PURE__ */ L({
4540
+ }, vc = /* @__PURE__ */ I({
4506
4541
  __name: "SectionBlock",
4507
4542
  props: {
4508
4543
  block: {},
@@ -4510,13 +4545,13 @@ var lc = { class: "tpl:w-full" }, uc = {
4510
4545
  },
4511
4546
  setup(e) {
4512
4547
  let n = {
4513
- title: ga,
4514
- paragraph: Zi,
4515
- image: Ri,
4516
- button: Dr,
4517
- divider: vi,
4518
- custom: gi
4519
- }, i = e, { t: a } = Bt(), o = ot(Tt, "SectionBlock"), s = p(St, null), c = p(Nt, null), l = p(xt, {}), f = p(Mt, 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);
4520
4555
  function m(e) {
4521
4556
  let t = l.savedBlocks;
4522
4557
  if (t?.isPicking.value) {
@@ -4525,7 +4560,7 @@ var lc = { class: "tpl:w-full" }, uc = {
4525
4560
  }
4526
4561
  o.selectBlock(e);
4527
4562
  }
4528
- let h = F(() => {
4563
+ let h = P(() => {
4529
4564
  switch (i.block.columns) {
4530
4565
  case "2": return ["50%", "50%"];
4531
4566
  case "3": return [
@@ -4537,11 +4572,11 @@ var lc = { class: "tpl:w-full" }, uc = {
4537
4572
  case "2-1": return ["66.67%", "33.33%"];
4538
4573
  default: return ["100%"];
4539
4574
  }
4540
- }), g = F(() => {
4575
+ }), g = P(() => {
4541
4576
  let e = h.value.length, t = [...i.block.children];
4542
4577
  for (; t.length < e;) t.push([]);
4543
4578
  return t.slice(0, e);
4544
- }), _ = F(() => i.viewport === "mobile" && i.block.stackOnMobile !== !1);
4579
+ }), _ = P(() => i.viewport === "mobile" && i.block.stackOnMobile !== !1);
4545
4580
  function v(e) {
4546
4581
  return g.value[e] || [];
4547
4582
  }
@@ -4551,7 +4586,7 @@ var lc = { class: "tpl:w-full" }, uc = {
4551
4586
  r[e] = n, o.updateBlock(i.block.id, { children: r });
4552
4587
  }
4553
4588
  function b(e) {
4554
- return $i(e, c, n);
4589
+ return sa(e, c, n);
4555
4590
  }
4556
4591
  function C(e, t) {
4557
4592
  e.type === "custom" && o.updateBlock(e.id, {
@@ -4559,16 +4594,16 @@ var lc = { class: "tpl:w-full" }, uc = {
4559
4594
  dataSourceFetched: t.dataSourceFetched
4560
4595
  });
4561
4596
  }
4562
- return (n, i) => (O(), S("div", lc, [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", {
4563
4598
  key: i,
4564
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)]" : ""]),
4565
4600
  style: u({ width: _.value ? "100%" : h.value[i] })
4566
- }, [w(P(sc), {
4601
+ }, [w(N(mc), {
4567
4602
  "model-value": v(i),
4568
4603
  group: {
4569
4604
  name: "blocks",
4570
4605
  pull: !0,
4571
- put: (e, t, n) => P(_a)(n)
4606
+ put: (e, t, n) => N(Ta)(n)
4572
4607
  },
4573
4608
  animation: 150,
4574
4609
  "ghost-class": "tpl-ghost",
@@ -4581,19 +4616,19 @@ var lc = { class: "tpl:w-full" }, uc = {
4581
4616
  class: "tpl:min-h-[60px]",
4582
4617
  "onUpdate:modelValue": (e) => y(i, e)
4583
4618
  }, {
4584
- default: ne(() => [(O(!0), S(N, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(ma, {
4619
+ default: re(() => [(O(!0), S(M, null, D(v(i), (n) => t((O(), S("div", { key: n.id }, [w(Sa, {
4585
4620
  block: n,
4586
- "is-selected": P(o).state.selectedBlockId === n.id,
4621
+ "is-selected": N(o).state.selectedBlockId === n.id,
4587
4622
  viewport: e.viewport,
4588
- "preview-mode": P(o).state.previewMode,
4623
+ "preview-mode": N(o).state.previewMode,
4589
4624
  nested: "",
4590
4625
  onSelect: (e) => m(n.id)
4591
4626
  }, {
4592
- default: ne(() => [(O(), A(d(b(n)), {
4627
+ default: re(() => [(O(), A(d(b(n)), {
4593
4628
  block: n,
4594
4629
  viewport: e.viewport,
4595
4630
  onFetchData: (e) => C(n, e),
4596
- onUpdate: (e) => P(o).updateBlock(n.id, e)
4631
+ onUpdate: (e) => N(o).updateBlock(n.id, e)
4597
4632
  }, null, 40, [
4598
4633
  "block",
4599
4634
  "viewport",
@@ -4607,19 +4642,19 @@ var lc = { class: "tpl:w-full" }, uc = {
4607
4642
  "viewport",
4608
4643
  "preview-mode",
4609
4644
  "onSelect"
4610
- ])])), [[re, P(f) === !1 || !P(s)?.isHidden(n.id)]])), 128))]),
4645
+ ])])), [[ie, N(f) === !1 || !N(s)?.isHidden(n.id)]])), 128))]),
4611
4646
  _: 2
4612
4647
  }, 1032, [
4613
4648
  "model-value",
4614
4649
  "group",
4615
4650
  "onUpdate:modelValue"
4616
- ]), v(i).length === 0 ? (O(), S("div", uc, [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)]));
4617
4652
  }
4618
- }), fc = we, pc = {
4653
+ }), yc = Te, bc = {
4619
4654
  small: 24,
4620
4655
  medium: 32,
4621
4656
  large: 48
4622
- }, mc = [
4657
+ }, xc = [
4623
4658
  "facebook",
4624
4659
  "twitter",
4625
4660
  "instagram",
@@ -4637,11 +4672,11 @@ var lc = { class: "tpl:w-full" }, uc = {
4637
4672
  "github",
4638
4673
  "dribbble",
4639
4674
  "behance"
4640
- ], hc = [
4675
+ ], Sc = [
4641
4676
  "width",
4642
4677
  "height",
4643
4678
  "fill"
4644
- ], gc = ["d"], _c = /* @__PURE__ */ L({
4679
+ ], Cc = ["d"], wc = /* @__PURE__ */ I({
4645
4680
  __name: "SocialIconSvg",
4646
4681
  props: {
4647
4682
  platform: {},
@@ -4649,7 +4684,7 @@ var lc = { class: "tpl:w-full" }, uc = {
4649
4684
  iconSize: {}
4650
4685
  },
4651
4686
  setup(e) {
4652
- let t = e, n = F(() => fc[t.platform]), r = F(() => pc[t.iconSize]), i = F(() => {
4687
+ let t = e, n = P(() => yc[t.platform]), r = P(() => bc[t.iconSize]), i = P(() => {
4653
4688
  let e = {
4654
4689
  display: "inline-flex",
4655
4690
  alignItems: "center",
@@ -4686,40 +4721,40 @@ var lc = { class: "tpl:w-full" }, uc = {
4686
4721
  };
4687
4722
  default: return e;
4688
4723
  }
4689
- }), 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");
4690
4725
  return (e, t) => (O(), S("span", { style: u(i.value) }, [(O(), S("svg", {
4691
4726
  width: a.value,
4692
4727
  height: a.value,
4693
4728
  viewBox: "0 0 24 24",
4694
4729
  fill: o.value,
4695
4730
  xmlns: "http://www.w3.org/2000/svg"
4696
- }, [x("path", { d: n.value.path }, null, 8, gc)], 8, hc))], 4));
4731
+ }, [x("path", { d: n.value.path }, null, 8, Cc)], 8, Sc))], 4));
4697
4732
  }
4698
- }), vc = { class: "tpl:w-full" }, yc = ["href"], bc = {
4733
+ }), Tc = { class: "tpl:w-full" }, Ec = ["href"], Dc = {
4699
4734
  key: 1,
4700
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)]"
4701
- }, xc = /* @__PURE__ */ L({
4736
+ }, Oc = /* @__PURE__ */ I({
4702
4737
  __name: "SocialIconsBlock",
4703
4738
  props: {
4704
4739
  block: {},
4705
4740
  viewport: {}
4706
4741
  },
4707
4742
  setup(e) {
4708
- let t = e, { t: n } = Bt(), r = F(() => ({
4743
+ let t = e, { t: n } = Wt(), r = P(() => ({
4709
4744
  display: "flex",
4710
4745
  flexWrap: "wrap",
4711
4746
  gap: `${t.block.spacing}px`,
4712
4747
  justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
4713
- })), i = F(() => t.block.icons.length > 0);
4714
- return (t, a) => (O(), S("div", vc, [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", {
4715
4750
  key: 0,
4716
4751
  style: u(r.value)
4717
- }, [(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", {
4718
4753
  key: t.id,
4719
4754
  href: t.url || "#",
4720
4755
  class: "tpl:cursor-default",
4721
- onClick: a[0] ||= R(() => {}, ["prevent"])
4722
- }, [w(_c, {
4756
+ onClick: a[0] ||= L(() => {}, ["prevent"])
4757
+ }, [w(wc, {
4723
4758
  platform: t.platform,
4724
4759
  "icon-style": e.block.iconStyle,
4725
4760
  "icon-size": e.block.iconSize
@@ -4727,44 +4762,44 @@ var lc = { class: "tpl:w-full" }, uc = {
4727
4762
  "platform",
4728
4763
  "icon-style",
4729
4764
  "icon-size"
4730
- ])], 8, yc))), 128))], 4)) : (O(), S("div", bc, [w(P(Rr), { 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)]))]));
4731
4766
  }
4732
- }), Sc = { class: "tpl:w-full" }, Cc = {
4767
+ }), kc = { class: "tpl:w-full" }, Ac = {
4733
4768
  key: 0,
4734
4769
  class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
4735
4770
  style: {
4736
4771
  "background-color": "var(--tpl-bg-hover)",
4737
4772
  color: "var(--tpl-text-dim)"
4738
4773
  }
4739
- }, wc = /* @__PURE__ */ L({
4774
+ }, jc = /* @__PURE__ */ I({
4740
4775
  __name: "SpacerBlock",
4741
4776
  props: {
4742
4777
  block: {},
4743
4778
  viewport: {}
4744
4779
  },
4745
4780
  setup(e) {
4746
- let t = e, n = ot(Tt, "SpacerBlock"), i = F(() => ({
4781
+ let t = e, n = lt(kt, "SpacerBlock"), i = P(() => ({
4747
4782
  height: `${t.block.height}px`,
4748
4783
  minHeight: `${t.block.height}px`,
4749
4784
  ...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
4750
4785
  }));
4751
- return (t, a) => (O(), S("div", Sc, [x("div", {
4786
+ return (t, a) => (O(), S("div", kc, [x("div", {
4752
4787
  style: u(i.value),
4753
- class: r(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !P(n).state.previewMode }])
4754
- }, [P(n).state.previewMode ? I("", !0) : (O(), S("span", Cc, 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)]));
4755
4790
  }
4756
- }), Tc = { class: "tpl:w-full" }, Ec = { key: 0 }, Dc = [
4791
+ }), Mc = { class: "tpl:w-full" }, Nc = { key: 0 }, Pc = [
4757
4792
  "aria-label",
4758
4793
  "data-placeholder",
4759
4794
  "onBlur"
4760
- ], Oc = [
4795
+ ], Fc = [
4761
4796
  "aria-label",
4762
4797
  "data-placeholder",
4763
4798
  "onBlur"
4764
- ], kc = {
4799
+ ], Ic = {
4765
4800
  key: 1,
4766
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)]"
4767
- }, Ac = /*#__PURE__*/ en(/* @__PURE__ */ L({
4802
+ }, Lc = /*#__PURE__*/ an(/* @__PURE__ */ I({
4768
4803
  __name: "TableBlock",
4769
4804
  props: {
4770
4805
  block: {},
@@ -4778,7 +4813,7 @@ var lc = { class: "tpl:w-full" }, uc = {
4778
4813
  updated(e, t) {
4779
4814
  t.value !== t.oldValue && e.getRootNode().activeElement !== e && (e.textContent = t.value ?? "");
4780
4815
  }
4781
- }, r = e, { t: i } = Bt(), a = ot(Tt, "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(() => {
4782
4817
  let e = {
4783
4818
  width: "100%",
4784
4819
  borderCollapse: "collapse",
@@ -4787,15 +4822,15 @@ var lc = { class: "tpl:w-full" }, uc = {
4787
4822
  fontFamily: r.block.fontFamily || "inherit"
4788
4823
  };
4789
4824
  return r.block.color && (e.color = r.block.color), e;
4790
- }), c = F(() => ({
4825
+ }), c = P(() => ({
4791
4826
  border: `${r.block.borderWidth}px solid ${r.block.borderColor}`,
4792
4827
  padding: `${r.block.cellPadding}px`,
4793
4828
  textAlign: r.block.textAlign
4794
- })), l = F(() => ({
4829
+ })), l = P(() => ({
4795
4830
  ...c.value,
4796
4831
  fontWeight: "bold",
4797
4832
  backgroundColor: r.block.headerBackgroundColor || "transparent"
4798
- })), 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);
4799
4834
  function p() {
4800
4835
  a.selectBlock(r.block.id);
4801
4836
  }
@@ -4809,31 +4844,31 @@ var lc = { class: "tpl:w-full" }, uc = {
4809
4844
  } : n);
4810
4845
  a.updateBlock(r.block.id, { rows: o });
4811
4846
  }
4812
- return (e, r) => (O(), S("div", Tc, [o.value ? (O(), S("table", {
4847
+ return (e, r) => (O(), S("div", Mc, [o.value ? (O(), S("table", {
4813
4848
  key: 0,
4814
4849
  style: u(s.value),
4815
4850
  class: "tpl-table-editable"
4816
- }, [d.value ? (O(), S("thead", Ec, [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", {
4817
4852
  key: e.id,
4818
4853
  style: u(l.value),
4819
- "aria-label": P(i).table.cellPlaceholder,
4854
+ "aria-label": N(i).table.cellPlaceholder,
4820
4855
  contenteditable: "true",
4821
- "data-placeholder": P(i).table.cellPlaceholder,
4856
+ "data-placeholder": N(i).table.cellPlaceholder,
4822
4857
  onBlur: (t) => m(d.value.id, e.id, t),
4823
- onKeydown: r[0] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4824
- onClick: R(p, ["stop"])
4825
- }, null, 44, Dc)), [[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", {
4826
4861
  key: a.id,
4827
4862
  style: u(c.value),
4828
- "aria-label": P(i).table.cellPlaceholder,
4863
+ "aria-label": N(i).table.cellPlaceholder,
4829
4864
  contenteditable: "true",
4830
- "data-placeholder": P(i).table.cellPlaceholder,
4865
+ "data-placeholder": N(i).table.cellPlaceholder,
4831
4866
  onBlur: (t) => m(e.id, a.id, t),
4832
- onKeydown: r[1] ||= ie(R((e) => e.target.blur(), ["prevent"]), ["enter"]),
4833
- onClick: R(p, ["stop"])
4834
- }, null, 44, Oc)), [[n, a.content]])), 128))]))), 128))])], 4)) : (O(), S("div", kc, [w(P(zr), { 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)]))]));
4835
4870
  }
4836
- }), [["__scopeId", "data-v-963ac422"]]), jc = /* @__PURE__ */ L({
4871
+ }), [["__scopeId", "data-v-963ac422"]]), Rc = /* @__PURE__ */ I({
4837
4872
  __name: "VideoPlayButton",
4838
4873
  props: { hoverEffect: {
4839
4874
  type: Boolean,
@@ -4851,7 +4886,7 @@ var lc = { class: "tpl:w-full" }, uc = {
4851
4886
  });
4852
4887
  //#endregion
4853
4888
  //#region src/utils/videoThumbnail.ts
4854
- function Mc(e) {
4889
+ function zc(e) {
4855
4890
  if (!e) return {
4856
4891
  platform: "unknown",
4857
4892
  videoId: null,
@@ -4883,25 +4918,25 @@ function Mc(e) {
4883
4918
  thumbnailUrl: null
4884
4919
  };
4885
4920
  }
4886
- function Nc(e, t) {
4887
- return t || Mc(e).thumbnailUrl;
4921
+ function Bc(e, t) {
4922
+ return t || zc(e).thumbnailUrl;
4888
4923
  }
4889
4924
  //#endregion
4890
4925
  //#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
4891
- var Pc = ["src", "alt"], Fc = {
4926
+ var Vc = ["src", "alt"], Hc = {
4892
4927
  class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
4893
4928
  style: { opacity: "0.7" }
4894
- }, Ic = ["href"], Lc = ["src", "alt"], Rc = ["src", "alt"], zc = {
4929
+ }, Uc = ["href"], Wc = ["src", "alt"], Gc = ["src", "alt"], Kc = {
4895
4930
  key: 3,
4896
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)]"
4897
- }, Bc = /* @__PURE__ */ L({
4932
+ }, qc = /* @__PURE__ */ I({
4898
4933
  __name: "VideoBlock",
4899
4934
  props: {
4900
4935
  block: {},
4901
4936
  viewport: {}
4902
4937
  },
4903
4938
  setup(e) {
4904
- let t = e, { t: n } = Bt(), { syntax: r } = nn(), i = F(() => Me(t.block.url, r) || Me(t.block.thumbnailUrl, r)), a = Nn(() => i.value ? void 0 : t.block.thumbnailUrl || void 0), o = Nn(() => i.value ? t.block.placeholderUrl : void 0), s = F(() => i.value ? null : t.block.thumbnailUrl ? a.value ?? null : Nc(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(() => {
4905
4940
  let e = t.block.align;
4906
4941
  return {
4907
4942
  maxWidth: "100%",
@@ -4911,7 +4946,7 @@ var Pc = ["src", "alt"], Fc = {
4911
4946
  marginLeft: e === "center" || e === "right" ? "auto" : void 0,
4912
4947
  marginRight: e === "center" ? "auto" : void 0
4913
4948
  };
4914
- }), 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);
4915
4950
  return (t, r) => (O(), S("div", {
4916
4951
  class: "tpl:w-full",
4917
4952
  style: u(c.value)
@@ -4921,32 +4956,32 @@ var Pc = ["src", "alt"], Fc = {
4921
4956
  style: u(l.value)
4922
4957
  }, [x("img", {
4923
4958
  class: "tpl:w-full tpl:border-0",
4924
- src: P(o),
4959
+ src: N(o),
4925
4960
  alt: e.block.alt,
4926
4961
  style: u(d.value)
4927
- }, null, 12, Pc), w(jc)], 4)) : i.value ? (O(), S("div", {
4962
+ }, null, 12, Vc), w(Rc)], 4)) : i.value ? (O(), S("div", {
4928
4963
  key: 1,
4929
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)]",
4930
4965
  style: u([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, l.value])
4931
- }, [w(P(Br), {
4966
+ }, [w(N(Jr), {
4932
4967
  size: 36,
4933
4968
  "stroke-width": 1.5,
4934
4969
  class: "tpl:text-[var(--tpl-primary)]",
4935
4970
  style: { opacity: "0.5" }
4936
- }), x("span", Fc, [w(Tr, { 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", {
4937
4972
  key: 0,
4938
4973
  href: e.block.url,
4939
4974
  target: "_blank",
4940
4975
  rel: "noopener noreferrer",
4941
4976
  class: "tpl:group tpl:relative tpl:inline-block",
4942
4977
  style: u(l.value),
4943
- onClick: r[0] ||= R(() => {}, ["prevent"])
4978
+ onClick: r[0] ||= L(() => {}, ["prevent"])
4944
4979
  }, [x("img", {
4945
4980
  class: "tpl:w-full tpl:border-0",
4946
4981
  src: s.value,
4947
4982
  alt: e.block.alt,
4948
4983
  style: u(d.value)
4949
- }, null, 12, Lc), w(jc, { "hover-effect": "" })], 12, Ic)) : (O(), S("div", {
4984
+ }, null, 12, Wc), w(Rc, { "hover-effect": "" })], 12, Uc)) : (O(), S("div", {
4950
4985
  key: 1,
4951
4986
  class: "tpl:relative tpl:inline-block",
4952
4987
  style: u(l.value)
@@ -4955,51 +4990,51 @@ var Pc = ["src", "alt"], Fc = {
4955
4990
  src: s.value,
4956
4991
  alt: e.block.alt,
4957
4992
  style: u(d.value)
4958
- }, null, 12, Rc), w(jc)], 4))], 64)) : (O(), S("div", zc, [w(P(Br), {
4993
+ }, null, 12, Gc), w(Rc)], 4))], 64)) : (O(), S("div", Kc, [w(N(Jr), {
4959
4994
  size: 40,
4960
4995
  "stroke-width": 1.5,
4961
4996
  class: "tpl:text-[var(--tpl-border-light)]"
4962
- }), x("span", null, k(P(n).video.addVideo), 1)]))], 4));
4963
- }
4964
- }), Vc = {
4965
- section: dc,
4966
- title: ga,
4967
- paragraph: Zi,
4968
- image: Ri,
4969
- button: Dr,
4970
- divider: vi,
4971
- video: Bc,
4972
- social: xc,
4973
- menu: Hi,
4974
- table: Ac,
4975
- spacer: wc,
4976
- html: wi,
4977
- countdown: y(() => import("./CountdownBlock-DQTwaRxP.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"))
4978
5013
  };
4979
- function Hc(t) {
4980
- let { editor: n, config: r, translations: i, fontsManager: a } = t, { t: o, format: c } = Bt(i), l = F(() => le(le($n(i), yr(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 ?? {}));
4981
5016
  n.setUiTheme(r.uiTheme ?? "auto");
4982
- let { resolvedTheme: u } = Vn(F(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = Un({
5017
+ let { resolvedTheme: u } = Gn(P(() => n.state.uiTheme)), d = _(r.theme ?? {}), { themeStyles: f } = qn({
4983
5018
  themeOverrides: d,
4984
5019
  resolvedTheme: u,
4985
5020
  extraStyles: () => ({
4986
5021
  "--tpl-drop-text": `"${i.canvas.dropHere}"`,
4987
5022
  ...t.themeExtraStyles?.()
4988
5023
  })
4989
- }), p = fn({
5024
+ }), p = gn({
4990
5025
  content: n.content,
4991
5026
  setContent: (e, t) => n.setContent(e, t),
4992
5027
  ...t.historyOptions
4993
5028
  });
4994
- yn(n, p);
4995
- let m = mn({
5029
+ Cn(n, p);
5030
+ let m = vn({
4996
5031
  addBlock: n.addBlock,
4997
5032
  removeBlock: n.removeBlock,
4998
5033
  updateBlock: n.updateBlock,
4999
5034
  selectBlock: n.selectBlock,
5000
5035
  findBlockLocation: n.findBlockLocation,
5001
5036
  blockDefaults: () => l.value
5002
- }), g = _n(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? gn({
5037
+ }), g = xn(n), v = t.autoSaveOptions !== null && t.autoSaveOptions !== void 0 ? bn({
5003
5038
  content: n.content,
5004
5039
  isDirty: () => n.state.isDirty,
5005
5040
  ...t.autoSaveOptions
@@ -5007,33 +5042,35 @@ function Hc(t) {
5007
5042
  v && (y = s(p.isNavigating, (e) => {
5008
5043
  e ? v.pause() : v.resume();
5009
5044
  }));
5010
- let b = Bn(n, {
5045
+ let b = Wn(n, {
5011
5046
  t: o,
5012
5047
  format: c
5013
- }, r.customBlocks ?? []), x = Wt(r.colors);
5014
- if (x.allowCustomIgnored && Vt.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 && Vt.warn(`config.colors.presets skipped invalid entries: ${x.invalidPresets.join(", ")} — presets must be hex colors (#rgb or #rrggbb).`), x.allowCustom === !1) {
5015
- let e = Qn(x.presets, r.blockDefaults, r.templateDefaults);
5016
- e.length > 0 && Vt.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.`);
5017
- }
5018
- let S = Wn();
5019
- Yn(S, Vc);
5020
- let C = /* @__PURE__ */ new Set();
5021
- function w(e) {
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);
5057
+ let w = /* @__PURE__ */ new Set();
5058
+ function T(e) {
5022
5059
  for (let t of e) {
5023
- S.registerCustom(t, gi);
5024
- for (let e of xr(t, x)) C.has(e.id) || (C.add(e.id), Vt.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));
5025
5062
  }
5026
5063
  }
5027
- r.customBlocks?.length && w(r.customBlocks);
5028
- let T = kn();
5029
- if (h() && M(T.dispose), t.containerEl) {
5064
+ r.customBlocks?.length && T(r.customBlocks);
5065
+ let E = Nn();
5066
+ if (h() && j(E.dispose), t.containerEl) {
5030
5067
  let e = t.containerEl;
5031
- Ze(document, "pointerdown", (t) => {
5068
+ Qe(document, "pointerdown", (t) => {
5032
5069
  let n = e.value;
5033
- n && (t.composedPath?.() ?? []).includes(n) && T.claim();
5070
+ n && (t.composedPath?.() ?? []).includes(n) && E.claim();
5034
5071
  }, { capture: !0 });
5035
5072
  }
5036
- function E() {
5073
+ function D() {
5037
5074
  let e = t.capabilities?.templates;
5038
5075
  if (e) {
5039
5076
  e.save();
@@ -5041,46 +5078,46 @@ function Hc(t) {
5041
5078
  }
5042
5079
  v?.flush();
5043
5080
  }
5044
- function D(e) {
5045
- T.isActive() && Cr(e, {
5081
+ function O(e) {
5082
+ E.isActive() && jr(e, {
5046
5083
  history: p,
5047
5084
  selectBlock: (e) => n.selectBlock(e),
5048
5085
  getSelectedBlockId: () => n.state.selectedBlockId,
5049
5086
  removeBlock: (e) => n.removeBlock(e),
5050
- onSave: E,
5087
+ onSave: D,
5051
5088
  onBeforeUndo: t.keyboardOptions?.onBeforeUndo,
5052
5089
  isPicking: () => t.capabilities?.savedBlocks?.isPicking.value === !0,
5053
5090
  onConfirmPick: () => t.capabilities?.savedBlocks?.confirmPicking(),
5054
5091
  onCancelPick: () => t.capabilities?.savedBlocks?.cancelPicking()
5055
5092
  });
5056
5093
  }
5057
- Ze(document, "keydown", D);
5058
- let O = _(null);
5059
- e(wt, t.editorRoot ?? document), e(ft, O), e(gt, i), e(Tt, n), e(Ft, p), e(yt, m), e(St, g), e(vt, a), e(tt, f), e(ht, u), e(At, l), e(st, r.locale), e(Nt, S), e(Ct, r.customBlocks ?? []), e(ut, r.paletteBlocks), e(Rt, Xn(r.htmlBlockPreview)), e(Pt, x), e(jt, Gn(n.content, S));
5060
- let k = oe(r.mergeTags?.syntax);
5061
- e(mt, r.mergeTags?.tags ?? []), e(Dt, k), e(lt, r.mergeTags?.onRequest ?? null), e(it, r.mergeTags?.autocomplete !== !1);
5062
- let A = _(he(r.mergeTags?.tags ?? []));
5063
- e(dt, A);
5064
- let j = jn({
5094
+ Qe(document, "keydown", O);
5095
+ let k = _(null);
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({
5065
5102
  resolvePreview: r.resolvePreview,
5066
5103
  getContent: () => n.content.value,
5067
5104
  isActive: () => n.state.previewMode
5068
5105
  });
5069
- e(at, j), e(ct, r.resolvePreview);
5070
- let N = F(() => !(n.state.previewMode && j.isConfigured));
5071
- e(Mt, N);
5072
- let P = Pn();
5073
- e(rt, P), e(nt, r.logicTags?.tags ?? []), e(pt, r.logicTags?.pairs ?? []), e(et, r.logicTags?.onRequest ?? null), e(It, Fn()), e(Et, r.onRequestMedia ?? null), e(bt, r.resolveImageUrl ? Mn(r.resolveImageUrl) : null), e(Ot, r.displayConditions?.conditions ?? []), e(kt, r.displayConditions?.allowCustom ?? !1), e(xt, t.capabilities ?? {}), e(Lt, b);
5074
- let ee = In(r.lint) ? null : Ln({
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({
5075
5112
  content: n.content,
5076
5113
  options: r.lint ?? {},
5077
5114
  updateBlock: n.updateBlock,
5078
5115
  updateSettings: n.updateSettings,
5079
5116
  removeBlock: n.removeBlock
5080
5117
  });
5081
- e(zt, ee);
5118
+ e(bt, F);
5082
5119
  function I() {
5083
- y?.(), ee?.destroy(), v?.destroy(), p.destroy();
5120
+ y?.(), F?.destroy(), v?.destroy(), p.destroy();
5084
5121
  }
5085
5122
  return {
5086
5123
  t: o,
@@ -5092,16 +5129,16 @@ function Hc(t) {
5092
5129
  resolvedTheme: u,
5093
5130
  themeStyles: f,
5094
5131
  themeOverrides: d,
5095
- registry: S,
5132
+ registry: C,
5096
5133
  keyboardReorder: b,
5097
- templateLint: ee,
5098
- popoverRoot: O,
5099
- mergeTagSampleMode: A,
5100
- previewResolution: j,
5134
+ templateLint: F,
5135
+ popoverRoot: k,
5136
+ mergeTagSampleMode: ee,
5137
+ previewResolution: M,
5101
5138
  appliesConditionFilter: N,
5102
- registerCustomBlocks: w,
5139
+ registerCustomBlocks: T,
5103
5140
  destroy: I
5104
5141
  };
5105
5142
  }
5106
5143
  //#endregion
5107
- export { wn as $, Rr as A, sr as B, ri as C, Gr as D, Kr as E, jr as F, dr as G, mr as H, Ar as I, Rn as J, ur as K, Or as L, Fr as M, Pr as N, Ur as O, Mr as P, Tn as Q, Dr as R, ai as S, Zr as T, pr as U, hr as V, fr as W, hn as X, jn as Y, Sn as Z, Ei as _, xc as a, gi as b, sc as c, ea as d, vn as et, Qi as f, Ri as g, Hi as h, wc as i, Ir as j, zr as k, ga as l, Zi as m, Bc as n, bn as nt, mc as o, $i as p, zn as q, Ac as r, Cn as rt, dc as s, Hc as t, cn as tt, ma as u, wi as v, Qr as w, si as x, vi as y, br 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 };