@templatical/editor 0.60.4 → 0.62.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 (237) hide show
  1. package/LICENSE +21 -109
  2. package/README.md +3 -3
  3. package/dist/{AiAltTextPopover-DSA1wiiW.js → AiAltTextPopover-C1Ike67q.js} +3 -4
  4. package/dist/{AiAltTextReview-B9-vfzCj.js → AiAltTextReview-BjT7_PoG.js} +2 -3
  5. package/dist/{AiChatPanel-CjUnhJGB.js → AiChatPanel-C82fJozf.js} +165 -166
  6. package/dist/{AiPanels-DwI9KjjI.js → AiPanels-sam_GMNs.js} +1 -1
  7. package/dist/{AiRewriteMenu-Bh1cIX8F.js → AiRewriteMenu-CpBcT6QL.js} +3 -4
  8. package/dist/{BlockIssueBadge-Bug5iqcK.js → BlockIssueBadge-D3OmWkCh.js} +2 -3
  9. package/dist/{BlockPreviewCanvas-C_N6f_FS.js → BlockPreviewCanvas-BHRmnq0w.js} +6 -6
  10. package/dist/{CollaborationNotices-BM35YG72.js → CollaborationNotices-Cmc7Ziuf.js} +1 -1
  11. package/dist/{CollaboratorBar-DMsEOndt.js → CollaboratorBar-DVtWefk1.js} +1 -1
  12. package/dist/{CommentsPanel-BSLk23YP.js → CommentsPanel-BSt22Zw9.js} +1 -1
  13. package/dist/{CommentsSidebar-L-DgP_kM.js → CommentsSidebar-C8qbxjyN.js} +177 -184
  14. package/dist/{CountdownBlock-AYPypmcX.js → CountdownBlock-bFAELCB6.js} +3 -4
  15. package/dist/{CountdownToolbar-B6erqTbz.js → CountdownToolbar-CJbPEVV5.js} +4 -4
  16. package/dist/{IssuesPanel-CeCvUfa7.js → IssuesPanel-CKYf6K84.js} +4 -5
  17. package/dist/{LanguageMenu-DsfCHdVi.js → LanguageMenu-BFOEQEPy.js} +124 -125
  18. package/dist/{LocaleNotices-BxR3xcLl.js → LocaleNotices-24UYFxo2.js} +12 -13
  19. package/dist/{LogicTagInsertButton-BzEZUTRZ.js → LogicTagInsertButton-DdaafrjI.js} +95 -96
  20. package/dist/{MergeTagInput-By2FSStk.js → MergeTagInput-BXM6-eF-.js} +1 -1
  21. package/dist/{MergeTagModeToggle-DtjOZhoD.js → MergeTagModeToggle-ooA_Ytfq.js} +2 -3
  22. package/dist/{MergeTagTextarea-q6eeDD2l.js → MergeTagTextarea-B86MPY89.js} +14 -15
  23. package/dist/{ParagraphEditor-25SNi_8O.js → ParagraphEditor-C15Glzy_.js} +78 -79
  24. package/dist/{RestoreVersionDialog-BXtCxJF1.js → RestoreVersionDialog-C13Bo4b0.js} +2 -2
  25. package/dist/{RichTextEditorContent-B1p7Ykq8.js → RichTextEditorContent-BNMBOkdy.js} +5 -6
  26. package/dist/{SaveBlockDialog-k1lxEBVW.js → SaveBlockDialog-lm_1-2w2.js} +23 -24
  27. package/dist/{SavedBlocksBrowserModal-CV-8mDPj.js → SavedBlocksBrowserModal-BjUZG5_S.js} +8 -9
  28. package/dist/{SavedBlocksPanels-9nZj1jG_.js → SavedBlocksPanels-Bj3LAXcL.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-Dy6NN9tm.js → SavedBlocksPickBar-DOTr0Imx.js} +2 -2
  30. package/dist/{TemplateSettings-DWxdUdM5.js → TemplateSettings-Z-i-_xF5.js} +19 -20
  31. package/dist/{TestEmailModal-BAkkZTaZ.js → TestEmailModal-ClEnoNEB.js} +17 -18
  32. package/dist/{TestEmailPanel-ccT2E3em.js → TestEmailPanel-CVmrt-d9.js} +1 -1
  33. package/dist/{TitleEditor-B19dYnER.js → TitleEditor-BHZF5C6q.js} +8 -9
  34. package/dist/{Toolbar-DxlZq_36.js → Toolbar-bwAdFK4A.js} +217 -219
  35. package/dist/{TplModal-Bp2qPmQw.js → TplModal-QWmSO1nR.js} +4 -4
  36. package/dist/{VersionHistoryMenu-B3-xJ7GO.js → VersionHistoryMenu-qoOkZKal.js} +6 -7
  37. package/dist/{VersionHistoryPanels-wAVDmhnP.js → VersionHistoryPanels-D82hgc2v.js} +1 -1
  38. package/dist/{VersionPreviewBanner-DLAB4ZbS.js → VersionPreviewBanner-DEN9rl6y.js} +1 -1
  39. package/dist/{WrapperBlock-DHnD6Exl.js → WrapperBlock-32v93A9w.js} +4 -4
  40. package/dist/{blockTypeIcons-C691ZY1l.js → blockTypeIcons-C1S2wVx8.js} +4 -4
  41. package/dist/bundle-stats.json +8 -8
  42. package/dist/{ca-C8N05sCU.js → ca-BIseSbs-.js} +1 -2
  43. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js → AiAltTextPopover-mDx_knAl.js} +4 -5
  44. package/dist/cdn/chunks/{AiAltTextPopover-BLNN_Pnd.js.map → AiAltTextPopover-mDx_knAl.js.map} +1 -1
  45. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js → AiAltTextReview-Dmg8iVWD.js} +3 -4
  46. package/dist/cdn/chunks/{AiAltTextReview-Db8vSNpe.js.map → AiAltTextReview-Dmg8iVWD.js.map} +1 -1
  47. package/dist/cdn/chunks/{AiChatPanel-DTYmFRwb.js → AiChatPanel-CEDr_x8G.js} +147 -148
  48. package/dist/cdn/chunks/AiChatPanel-CEDr_x8G.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js → AiPanels-qJgLTYPs.js} +2 -2
  50. package/dist/cdn/chunks/{AiPanels-BW9ze-6O.js.map → AiPanels-qJgLTYPs.js.map} +1 -1
  51. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js → AiRewriteMenu-2a9WjizC.js} +4 -5
  52. package/dist/cdn/chunks/{AiRewriteMenu-B9b92d0R.js.map → AiRewriteMenu-2a9WjizC.js.map} +1 -1
  53. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js → BlockIssueBadge-D87CYoPw.js} +3 -4
  54. package/dist/cdn/chunks/{BlockIssueBadge-fYeNnepj.js.map → BlockIssueBadge-D87CYoPw.js.map} +1 -1
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js → BlockPreviewCanvas-DDDKuWJz.js} +8 -8
  56. package/dist/cdn/chunks/{BlockPreviewCanvas-CLid1x0c.js.map → BlockPreviewCanvas-DDDKuWJz.js.map} +1 -1
  57. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js → CollaborationNotices-DyzhN_Ns.js} +2 -2
  58. package/dist/cdn/chunks/{CollaborationNotices-COkmBmps.js.map → CollaborationNotices-DyzhN_Ns.js.map} +1 -1
  59. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js → CollaboratorBar-bNFuQxxP.js} +2 -2
  60. package/dist/cdn/chunks/{CollaboratorBar-BSzI8YIU.js.map → CollaboratorBar-bNFuQxxP.js.map} +1 -1
  61. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js → CommentsPanel-D-D2qsS6.js} +2 -2
  62. package/dist/cdn/chunks/{CommentsPanel-BynxXJ-F.js.map → CommentsPanel-D-D2qsS6.js.map} +1 -1
  63. package/dist/cdn/chunks/{CommentsSidebar-C81N5Hwr.js → CommentsSidebar-CCVp8M2T.js} +163 -170
  64. package/dist/cdn/chunks/CommentsSidebar-CCVp8M2T.js.map +1 -0
  65. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js → CountdownBlock-5hUzymeP.js} +4 -5
  66. package/dist/cdn/chunks/{CountdownBlock--hlKE2aj.js.map → CountdownBlock-5hUzymeP.js.map} +1 -1
  67. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js → CountdownToolbar-DaGxwKfG.js} +5 -5
  68. package/dist/cdn/chunks/{CountdownToolbar-f1aqEba0.js.map → CountdownToolbar-DaGxwKfG.js.map} +1 -1
  69. package/dist/cdn/chunks/{IssuesPanel-DgxiS3hF.js → IssuesPanel-DQQo1B1z.js} +10 -11
  70. package/dist/cdn/chunks/IssuesPanel-DQQo1B1z.js.map +1 -0
  71. package/dist/cdn/chunks/{LanguageMenu-CJp7XdfG.js → LanguageMenu-2Er64H2b.js} +106 -107
  72. package/dist/cdn/chunks/LanguageMenu-2Er64H2b.js.map +1 -0
  73. package/dist/cdn/chunks/{LocaleNotices-D5vZzcUj.js → LocaleNotices-DSfOyyyf.js} +13 -14
  74. package/dist/cdn/chunks/LocaleNotices-DSfOyyyf.js.map +1 -0
  75. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js → LogicTagInsertButton-CumMM1rP.js} +7 -8
  76. package/dist/cdn/chunks/{LogicTagInsertButton-DGg1Wvhp.js.map → LogicTagInsertButton-CumMM1rP.js.map} +1 -1
  77. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js → MergeTagInput-Dm_QiG96.js} +2 -2
  78. package/dist/cdn/chunks/{MergeTagInput-BVfTwujW.js.map → MergeTagInput-Dm_QiG96.js.map} +1 -1
  79. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js → MergeTagModeToggle-Bir7lkLe.js} +3 -4
  80. package/dist/cdn/chunks/{MergeTagModeToggle-BoI0C1Y6.js.map → MergeTagModeToggle-Bir7lkLe.js.map} +1 -1
  81. package/dist/cdn/chunks/{MergeTagTextarea-DMXZgGUF.js → MergeTagTextarea-B_IFeWfZ.js} +15 -16
  82. package/dist/cdn/chunks/MergeTagTextarea-B_IFeWfZ.js.map +1 -0
  83. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js → ParagraphEditor-CWjMxuy0.js} +135 -136
  84. package/dist/cdn/chunks/{ParagraphEditor-Ce7_Ix0K.js.map → ParagraphEditor-CWjMxuy0.js.map} +1 -1
  85. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js → RestoreVersionDialog-BsfulSK7.js} +3 -3
  86. package/dist/cdn/chunks/{RestoreVersionDialog-JmMLhN6G.js.map → RestoreVersionDialog-BsfulSK7.js.map} +1 -1
  87. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js → RichTextEditorContent-CuvFVxEq.js} +6 -7
  88. package/dist/cdn/chunks/{RichTextEditorContent-D3ihUF8v.js.map → RichTextEditorContent-CuvFVxEq.js.map} +1 -1
  89. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js → SaveBlockDialog-8zxJlHw2.js} +25 -26
  90. package/dist/cdn/chunks/{SaveBlockDialog-B-2amBN5.js.map → SaveBlockDialog-8zxJlHw2.js.map} +1 -1
  91. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js → SavedBlocksBrowserModal-DtaGW2H4.js} +9 -10
  92. package/dist/cdn/chunks/{SavedBlocksBrowserModal-BR6fQ222.js.map → SavedBlocksBrowserModal-DtaGW2H4.js.map} +1 -1
  93. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js → SavedBlocksPanels-CtDhdbiD.js} +2 -2
  94. package/dist/cdn/chunks/{SavedBlocksPanels-DVNNshfr.js.map → SavedBlocksPanels-CtDhdbiD.js.map} +1 -1
  95. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js → SavedBlocksPickBar-DovcCaoW.js} +3 -3
  96. package/dist/cdn/chunks/{SavedBlocksPickBar-BfxLHLQV.js.map → SavedBlocksPickBar-DovcCaoW.js.map} +1 -1
  97. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js → TemplateSettings-B8Ch5ps8.js} +20 -21
  98. package/dist/cdn/chunks/{TemplateSettings-TMFrRV2c.js.map → TemplateSettings-B8Ch5ps8.js.map} +1 -1
  99. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js → TestEmailModal-D1EuQSgA.js} +16 -17
  100. package/dist/cdn/chunks/{TestEmailModal-tTU35BKZ.js.map → TestEmailModal-D1EuQSgA.js.map} +1 -1
  101. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js → TestEmailPanel-0iG-utN7.js} +2 -2
  102. package/dist/cdn/chunks/{TestEmailPanel-BNJBVwx0.js.map → TestEmailPanel-0iG-utN7.js.map} +1 -1
  103. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js → TitleEditor-k2vSwKxN.js} +17 -18
  104. package/dist/cdn/chunks/{TitleEditor-BbscL_C1.js.map → TitleEditor-k2vSwKxN.js.map} +1 -1
  105. package/dist/cdn/chunks/{Toolbar-BxzyS69X.js → Toolbar-BnTSuZQb.js} +307 -309
  106. package/dist/cdn/chunks/Toolbar-BnTSuZQb.js.map +1 -0
  107. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js → TplModal-iRdN04Sa.js} +5 -5
  108. package/dist/cdn/chunks/{TplModal-Bzhc_l8y.js.map → TplModal-iRdN04Sa.js.map} +1 -1
  109. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js → VersionHistoryMenu-DlPr3twf.js} +7 -8
  110. package/dist/cdn/chunks/{VersionHistoryMenu-DTDO48HI.js.map → VersionHistoryMenu-DlPr3twf.js.map} +1 -1
  111. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js → VersionHistoryPanels-Bw5UHEvo.js} +2 -2
  112. package/dist/cdn/chunks/{VersionHistoryPanels-Bbb1xUJs.js.map → VersionHistoryPanels-Bw5UHEvo.js.map} +1 -1
  113. package/dist/cdn/chunks/{VersionPreviewBanner-C1H_fYAr.js → VersionPreviewBanner-anJgZOcw.js} +2 -2
  114. package/dist/cdn/chunks/VersionPreviewBanner-anJgZOcw.js.map +1 -0
  115. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js → WrapperBlock-CFjCtyvx.js} +5 -5
  116. package/dist/cdn/chunks/{WrapperBlock-BboijK5T.js.map → WrapperBlock-CFjCtyvx.js.map} +1 -1
  117. package/dist/cdn/chunks/{ca-C8N05sCU.js → ca-BIseSbs-.js} +2 -3
  118. package/dist/cdn/chunks/{ca-C8N05sCU.js.map → ca-BIseSbs-.js.map} +1 -1
  119. package/dist/cdn/chunks/{composables-C77dGo-I.js → composables-Nir0umYc.js} +551 -571
  120. package/dist/cdn/chunks/composables-Nir0umYc.js.map +1 -0
  121. package/dist/{da-Dno_4nGy.js → cdn/chunks/da-DN46iRXS.js} +3 -2
  122. package/dist/cdn/chunks/{da-Dno_4nGy.js.map → da-DN46iRXS.js.map} +1 -1
  123. package/dist/{de-DRR5JSkh.js → cdn/chunks/de-Dyk8PPCm.js} +3 -2
  124. package/dist/cdn/chunks/{de-DRR5JSkh.js.map → de-Dyk8PPCm.js.map} +1 -1
  125. package/dist/{en-DAcLbbpg.js → cdn/chunks/en-BzMbMmgz.js} +3 -2
  126. package/dist/cdn/chunks/{en-DAcLbbpg.js.map → en-BzMbMmgz.js.map} +1 -1
  127. package/dist/{es-BcEQLQxe.js → cdn/chunks/es-KSHEXYyf.js} +3 -2
  128. package/dist/cdn/chunks/{es-BcEQLQxe.js.map → es-KSHEXYyf.js.map} +1 -1
  129. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js → extensions-Br2hHeiR.js} +5 -5
  130. package/dist/cdn/chunks/{extensions-Bq9nXmBP.js.map → extensions-Br2hHeiR.js.map} +1 -1
  131. package/dist/{fr-CNQG7ESr.js → cdn/chunks/fr-DtKHfZyk.js} +3 -2
  132. package/dist/cdn/chunks/{fr-CNQG7ESr.js.map → fr-DtKHfZyk.js.map} +1 -1
  133. package/dist/{ja-CMxWxqSH.js → cdn/chunks/ja-DUSaDVPA.js} +3 -2
  134. package/dist/cdn/chunks/{ja-CMxWxqSH.js.map → ja-DUSaDVPA.js.map} +1 -1
  135. package/dist/{nl-BjyYZDkC.js → cdn/chunks/nl-DQbuxzD6.js} +3 -2
  136. package/dist/cdn/chunks/{nl-BjyYZDkC.js.map → nl-DQbuxzD6.js.map} +1 -1
  137. package/dist/{pt-BR-DC2A3C0v.js → cdn/chunks/pt-BR-CxpxBtvc.js} +3 -2
  138. package/dist/cdn/chunks/{pt-BR-DC2A3C0v.js.map → pt-BR-CxpxBtvc.js.map} +1 -1
  139. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  140. package/dist/cdn/chunks/{socialIcons-CSe4YJ52.js → socialIcons-CXQfKLUV.js} +156 -136
  141. package/dist/cdn/chunks/socialIcons-CXQfKLUV.js.map +1 -0
  142. package/dist/cdn/chunks/{src-1MSPRtI8.js → src-9e0wFfHH.js} +4 -2
  143. package/dist/cdn/chunks/src-9e0wFfHH.js.map +1 -0
  144. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -1
  145. package/dist/cdn/chunks/{src-edESkGqO.js → src-C9jjLNMg.js} +2 -2
  146. package/dist/cdn/chunks/{src-edESkGqO.js.map → src-C9jjLNMg.js.map} +1 -1
  147. package/dist/cdn/chunks/{tiptap-DDhueoan.js → tiptap-DLW5XdqI.js} +2 -2
  148. package/dist/cdn/chunks/{tiptap-DDhueoan.js.map → tiptap-DLW5XdqI.js.map} +1 -1
  149. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js → useEditorRoot-BPVxLYFD.js} +2 -2
  150. package/dist/cdn/chunks/{useEditorRoot-D0Lp2x4_.js.map → useEditorRoot-BPVxLYFD.js.map} +1 -1
  151. package/dist/cdn/chunks/useI18n-DwP1ksBW.js +24 -0
  152. package/dist/cdn/chunks/useI18n-DwP1ksBW.js.map +1 -0
  153. package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js +41 -0
  154. package/dist/cdn/chunks/useLanguageName-CeuoO9WZ.js.map +1 -0
  155. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js → useLogicTag-gphGbQfy.js} +3 -3
  156. package/dist/cdn/chunks/{useLogicTag-CKtQlJDa.js.map → useLogicTag-gphGbQfy.js.map} +1 -1
  157. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js → useMergeTag-QM-tkBc6.js} +3 -3
  158. package/dist/cdn/chunks/{useMergeTag-Dwy3U0PI.js.map → useMergeTag-QM-tkBc6.js.map} +1 -1
  159. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js → usePopoverPosition-Cg8LR0W4.js} +2 -2
  160. package/dist/cdn/chunks/{usePopoverPosition-CBp9uwjV.js.map → usePopoverPosition-Cg8LR0W4.js.map} +1 -1
  161. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js → useScrollToBlock-CS7zo4oQ.js} +2 -2
  162. package/dist/cdn/chunks/{useScrollToBlock-32EnuMwu.js.map → useScrollToBlock-CS7zo4oQ.js.map} +1 -1
  163. package/dist/cdn/editor.css +1 -1
  164. package/dist/cdn/editor.js +910 -1006
  165. package/dist/cdn/editor.js.map +1 -1
  166. package/dist/{composables-Bu_OmyjT.js → composables-6SKZrQs-.js} +1335 -1355
  167. package/dist/{cdn/chunks/da-Dno_4nGy.js → da-DN46iRXS.js} +1 -4
  168. package/dist/{cdn/chunks/de-DRR5JSkh.js → de-Dyk8PPCm.js} +1 -4
  169. package/dist/{cdn/chunks/en-DAcLbbpg.js → en-BzMbMmgz.js} +1 -4
  170. package/dist/{cdn/chunks/es-BcEQLQxe.js → es-KSHEXYyf.js} +1 -4
  171. package/dist/{extensions-zHf8YFRw.js → extensions-D74nAP73.js} +3 -3
  172. package/dist/{cdn/chunks/fr-CNQG7ESr.js → fr-DtKHfZyk.js} +1 -4
  173. package/dist/index.d.ts +38 -406
  174. package/dist/{cdn/chunks/ja-CMxWxqSH.js → ja-DUSaDVPA.js} +1 -4
  175. package/dist/{cdn/chunks/nl-BjyYZDkC.js → nl-DQbuxzD6.js} +1 -4
  176. package/dist/{cdn/chunks/pt-BR-DC2A3C0v.js → pt-BR-CxpxBtvc.js} +1 -4
  177. package/dist/{socialIcons-mWE33bOn.js → socialIcons-K89pe-h2.js} +84 -64
  178. package/dist/style.css +1 -1
  179. package/dist/templatical-editor.js +1087 -1183
  180. package/dist/{useEditorRoot-DWfC2CVC.js → useEditorRoot-CQeutW_s.js} +1 -1
  181. package/dist/useI18n-B05qsAsl.js +22 -0
  182. package/dist/useLanguageName-CnpG7FD5.js +39 -0
  183. package/dist/{useLogicTag-K5CPoMTk.js → useLogicTag-DSa1si4o.js} +2 -2
  184. package/dist/{useMergeTag-tsU_Sw2x.js → useMergeTag-DwxbvRZI.js} +2 -2
  185. package/dist/{usePopoverPosition-DF0ZYH7g.js → usePopoverPosition-B8CXTr8v.js} +1 -1
  186. package/dist/{useScrollToBlock-eZXiGa8o.js → useScrollToBlock-ZZBBGFan.js} +1 -1
  187. package/package.json +12 -14
  188. package/dist/CloudHeaderExtras-DC_oNrxz.js +0 -22
  189. package/dist/CloudPanels-BS49EsuN.js +0 -167
  190. package/dist/cdn/chunks/AiChatPanel-DTYmFRwb.js.map +0 -1
  191. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js +0 -24
  192. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +0 -1
  193. package/dist/cdn/chunks/CloudPanels-D4dslsyk.js +0 -167
  194. package/dist/cdn/chunks/CloudPanels-D4dslsyk.js.map +0 -1
  195. package/dist/cdn/chunks/CommentsSidebar-C81N5Hwr.js.map +0 -1
  196. package/dist/cdn/chunks/IssuesPanel-DgxiS3hF.js.map +0 -1
  197. package/dist/cdn/chunks/LanguageMenu-CJp7XdfG.js.map +0 -1
  198. package/dist/cdn/chunks/LocaleNotices-D5vZzcUj.js.map +0 -1
  199. package/dist/cdn/chunks/MergeTagTextarea-DMXZgGUF.js.map +0 -1
  200. package/dist/cdn/chunks/Toolbar-BxzyS69X.js.map +0 -1
  201. package/dist/cdn/chunks/VersionPreviewBanner-C1H_fYAr.js.map +0 -1
  202. package/dist/cdn/chunks/composables-C77dGo-I.js.map +0 -1
  203. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js +0 -1405
  204. package/dist/cdn/chunks/createCloudRuntime-CUlw09ix.js.map +0 -1
  205. package/dist/cdn/chunks/de-6M4JoHoD.js +0 -21
  206. package/dist/cdn/chunks/de-6M4JoHoD.js.map +0 -1
  207. package/dist/cdn/chunks/en-FzUuJ8HW.js +0 -21
  208. package/dist/cdn/chunks/en-FzUuJ8HW.js.map +0 -1
  209. package/dist/cdn/chunks/keys-ywH4jHJ2.js +0 -11
  210. package/dist/cdn/chunks/keys-ywH4jHJ2.js.map +0 -1
  211. package/dist/cdn/chunks/languageName-DEEOhDWI.js +0 -12
  212. package/dist/cdn/chunks/languageName-DEEOhDWI.js.map +0 -1
  213. package/dist/cdn/chunks/logger-CqQTfJGx.js +0 -26
  214. package/dist/cdn/chunks/logger-CqQTfJGx.js.map +0 -1
  215. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js +0 -22
  216. package/dist/cdn/chunks/preRenderCustomBlocks-BLVFtvl8.js.map +0 -1
  217. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js +0 -21
  218. package/dist/cdn/chunks/pt-BR-Bp92Fc6J.js.map +0 -1
  219. package/dist/cdn/chunks/pusher-x9rNqzon.js +0 -2473
  220. package/dist/cdn/chunks/pusher-x9rNqzon.js.map +0 -1
  221. package/dist/cdn/chunks/rolldown-runtime-QGRDbDUS.js +0 -19
  222. package/dist/cdn/chunks/socialIcons-CSe4YJ52.js.map +0 -1
  223. package/dist/cdn/chunks/src-1MSPRtI8.js.map +0 -1
  224. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js +0 -24
  225. package/dist/cdn/chunks/useCloudI18n-BTV9uu3c.js.map +0 -1
  226. package/dist/cdn/chunks/useI18n-DPg6rPbu.js +0 -18
  227. package/dist/cdn/chunks/useI18n-DPg6rPbu.js.map +0 -1
  228. package/dist/createCloudRuntime-CiEo0wkr.js +0 -1389
  229. package/dist/de-6M4JoHoD.js +0 -19
  230. package/dist/en-FzUuJ8HW.js +0 -19
  231. package/dist/keys-B4DimcgX.js +0 -9
  232. package/dist/languageName-DEEOhDWI.js +0 -10
  233. package/dist/logger-BOu7oEtk.js +0 -24
  234. package/dist/preRenderCustomBlocks-6CLw2rP6.js +0 -20
  235. package/dist/pt-BR-Bp92Fc6J.js +0 -19
  236. package/dist/useCloudI18n-BnuOL1YS.js +0 -22
  237. package/dist/useI18n-Cx9W7OWb.js +0 -16
@@ -1,68 +1,65 @@
1
- import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, v as V, x as H, y as U } from "./chunks/draggable-IRVFEZ-b.js";
2
- import { A as ne, D as W, E as G, M as K, N as q, O as J, V as re, _ as ie, b as ae, c as oe, j as se, k as Y, l as ce } from "./chunks/socialIcons-CSe4YJ52.js";
3
- import { B as le, D as ue, Et as de, F as X, G as fe, H as pe, Mt as me, Nt as he, Pt as ge, Qt as _e, S as ve, U as ye, V as be, Xt as xe, Z as Se, _ as Ce, an as we, bn as Te, ft as Ee, g as De, h as Oe, hn as ke, in as Z, k as Ae, ln as je, m as Me, p as Ne, pt as Pe, rn as Fe, v as Ie, vn as Q, y as Le, yn as Re, z as ze } from "./chunks/src-A0kzK-pR.js";
4
- import { t as Be } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
5
- import { $ as Ve, A as He, Bt as Ue, D as We, Dt as Ge, E as Ke, F as qe, Ft as Je, M as Ye, Ot as Xe, P as Ze, Q as Qe, R as $e, Vt as et, Y as tt, at as nt, ct as rt, ft as it, j as at, mt as ot, nt as st, q as ct, t as lt, vt as ut, x as dt } from "./chunks/icons-DdVB-5WO.js";
6
- import { t as $ } from "./chunks/useI18n-DPg6rPbu.js";
7
- import { n as ft, t as pt } from "./chunks/useLocalizedDisplay-Brdkp3KH.js";
8
- import { B as mt, E as ht, I as gt, J as _t, K as vt, M as yt, O as bt, Q as xt, R as St, Y as Ct, a as wt, b as Tt, c as Et, ct as Dt, d as Ot, et as kt, g as At, h as jt, it as Mt, k as Nt, l as Pt, lt as Ft, m as It, n as Lt, nt as Rt, ot as zt, rt as Bt, st as Vt, t as Ht, tt as Ut, ut as Wt, v as Gt, z as Kt } from "./chunks/keys-ywH4jHJ2.js";
9
- import { t as qt } from "./chunks/plural-CyxrJXL1.js";
10
- import { t as Jt } from "./chunks/languageName-DEEOhDWI.js";
11
- import { C as Yt, E as Xt, T as Zt, b as Qt, h as $t, m as en, w as tn, x as nn } from "./chunks/styleConstants-Br6CIRoS.js";
12
- import { t as rn } from "./chunks/TplModal-Bzhc_l8y.js";
13
- import { n as an } from "./chunks/sanitizeHtml-Plkmw1Qt.js";
14
- import { A as on, B as sn, E as cn, F as ln, L as un, M as dn, N as fn, O as pn, P as mn, _ as hn, a as gn, b as _n, c as vn, d as yn, f as bn, g as xn, h as Sn, i as Cn, j as wn, k as Tn, l as En, m as Dn, n as On, o as kn, p as An, r as jn, s as Mn, t as Nn, u as Pn, v as Fn, x as In, y as Ln } from "./chunks/composables-C77dGo-I.js";
15
- import { a as Rn, i as zn, n as Bn, o as Vn, t as Hn } from "./chunks/normalizeMergeTagMarkup-CExCfSYI.js";
16
- import { t as Un } from "./chunks/aiErrors-C3QEMB0x.js";
17
- import { n as Wn, t as Gn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
18
- import { i as Kn, n as qn, r as Jn, t as Yn } from "./chunks/useScrollToBlock-32EnuMwu.js";
19
- import { a as Xn } from "./chunks/dist-zu1jwYIS.js";
20
- import { t as Zn } from "./chunks/logger-CqQTfJGx.js";
21
- import { t as Qn } from "./chunks/WrapperBlock-BboijK5T.js";
22
- import { t as $n } from "./chunks/blockTypeIcons-ZKw-Eiu0.js";
23
- import { t as er } from "./chunks/templateSettingsFields-cjlP-jdw.js";
24
- import { n as tr, t as nr } from "./chunks/MergeTagModeToggle-BoI0C1Y6.js";
25
- import { _ as rr, d as ir, g as ar } from "./chunks/dist-BtWMy7UQ.js";
26
- import { t as or } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
27
- import { t as sr } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
28
- import { t as cr } from "./chunks/preRenderCustomBlocks-BLVFtvl8.js";
1
+ import { A as e, B as t, C as n, E as r, F as i, G as a, H as o, I as s, K as c, L as l, M as u, N as d, O as f, P as p, Q as m, R as h, S as g, V as _, Y as v, _ as y, b, c as x, ct as S, dt as C, g as w, h as T, it as E, j as D, k as O, l as k, m as A, mt as j, n as M, nt as N, o as ee, p as P, pt as F, r as I, rt as L, s as te, t as R, tt as z, u as B, x as V, y as H } from "./chunks/draggable-IRVFEZ-b.js";
2
+ import { B as U, D as ne, Et as W, F as G, G as re, H as K, Mt as q, Nt as ie, Pt as ae, Qt as oe, S as se, Tt as ce, U as J, V as le, Xt as Y, Z as X, _ as ue, an as de, bn as fe, ft as pe, g as me, h as he, hn as ge, in as Z, k as _e, ln as ve, m as ye, p as be, pt as xe, rn as Se, v as Ce, vn as Q, y as we, yn as Te, yt as Ee, z as De } from "./chunks/src-A0kzK-pR.js";
3
+ import { A as Oe, D as ke, E as Ae, M as je, N as Me, O as Ne, P as Pe, V as Fe, _ as Ie, b as Le, c as Re, j as ze, k as Be, l as Ve } from "./chunks/socialIcons-CXQfKLUV.js";
4
+ import { t as He } from "./chunks/_plugin-vue_export-helper-Djzt4Yr7.js";
5
+ import { $ as Ue, A as We, Bt as Ge, D as Ke, Dt as qe, E as Je, F as Ye, Ft as Xe, M as Ze, Ot as Qe, P as $e, Q as et, R as tt, Vt as nt, Y as rt, at as it, ct as at, ft as ot, j as st, mt as ct, nt as lt, q as ut, t as dt, vt as ft, x as pt } from "./chunks/icons-DdVB-5WO.js";
6
+ import { $ as mt, D as ht, F as gt, G as _t, J as vt, L as yt, O as bt, R as xt, T as St, Z as Ct, _ as wt, at as Tt, c as Et, ct as Dt, d as Ot, et as kt, h as At, j as jt, l as Mt, lt as Nt, m as Pt, n as Ft, nt as It, o as Lt, ot as Rt, p as zt, q as Bt, r as Vt, rt as Ht, st as Ut, t as $, tt as Wt, y as Gt, z as Kt } from "./chunks/useI18n-DwP1ksBW.js";
7
+ import { n as qt, t as Jt } from "./chunks/useLocalizedDisplay-Brdkp3KH.js";
8
+ import { t as Yt } from "./chunks/plural-CyxrJXL1.js";
9
+ import { t as Xt } from "./chunks/useLanguageName-CeuoO9WZ.js";
10
+ import { C as Zt, E as Qt, T as $t, b as en, h as tn, m as nn, w as rn, x as an } from "./chunks/styleConstants-Br6CIRoS.js";
11
+ import { t as on } from "./chunks/TplModal-iRdN04Sa.js";
12
+ import { n as sn } from "./chunks/sanitizeHtml-Plkmw1Qt.js";
13
+ import { A as cn, E as ln, L as un, M as dn, O as fn, P as pn, _ as mn, a as hn, b as gn, c as _n, d as vn, f as yn, g as bn, h as xn, i as Sn, j as Cn, k as wn, l as Tn, m as En, n as Dn, o as On, p as kn, r as An, s as jn, t as Mn, u as Nn, v as Pn, x as Fn, y as In } from "./chunks/composables-Nir0umYc.js";
14
+ import { a as Ln, i as Rn, n as zn, o as Bn, t as Vn } from "./chunks/normalizeMergeTagMarkup-CExCfSYI.js";
15
+ import { t as Hn } from "./chunks/aiErrors-C3QEMB0x.js";
16
+ import { n as Un, t as Wn } from "./chunks/aiImageContext-BQ5mQ6B5.js";
17
+ import { i as Gn, n as Kn, r as qn, t as Jn } from "./chunks/useScrollToBlock-CS7zo4oQ.js";
18
+ import { a as Yn } from "./chunks/dist-zu1jwYIS.js";
19
+ import { t as Xn } from "./chunks/WrapperBlock-CFjCtyvx.js";
20
+ import { t as Zn } from "./chunks/blockTypeIcons-ZKw-Eiu0.js";
21
+ import { t as Qn } from "./chunks/templateSettingsFields-cjlP-jdw.js";
22
+ import { n as $n, t as er } from "./chunks/MergeTagModeToggle-Bir7lkLe.js";
23
+ import { _ as tr, d as nr, g as rr } from "./chunks/dist-BtWMy7UQ.js";
24
+ import { t as ir } from "./chunks/formatAbsoluteDateTime-Ck2_zXra.js";
25
+ import { t as ar } from "./chunks/formatRelativeTime-BTD8Ktt-.js";
29
26
  // src/utils/resolveTemplateDefaults.ts
30
- var lr = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
31
- function ur(e) {
32
- let t = e.locale?.trim().replace(/_/g, "-"), n = t && lr.test(t) ? { locale: t } : void 0;
27
+ var or = /^[a-z]{2,3}(-[a-z0-9]{2,8})*$/i;
28
+ function sr(e) {
29
+ let t = e.locale?.trim().replace(/_/g, "-"), n = t && or.test(t) ? { locale: t } : void 0;
33
30
  if (n || e.templateDefaults) return {
34
31
  ...n,
35
32
  ...e.templateDefaults
36
33
  };
37
34
  }
38
35
  // src/components/NoticeStack.vue
39
- var dr = {}, fr = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" };
40
- function pr(e, t) {
41
- return i(), y("div", fr, [h(e.$slots, "default")]);
36
+ var cr = {}, lr = { class: "tpl:pointer-events-none tpl:absolute tpl:top-16 tpl:left-1/2 tpl:z-[60] tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" };
37
+ function ur(e, t) {
38
+ return i(), y("div", lr, [h(e.$slots, "default")]);
42
39
  }
43
- var mr = /*#__PURE__*/ Be(dr, [["render", pr]]), hr = {
40
+ var dr = /*#__PURE__*/ He(cr, [["render", ur]]), fr = {
44
41
  key: 0,
45
42
  "data-testid": "language-bar",
46
43
  class: "tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-4 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
47
- }, gr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, _r = { class: "tpl:flex tpl:min-w-0 tpl:grow tpl:basis-64 tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1" }, vr = {
44
+ }, pr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-between tpl:gap-x-6 tpl:gap-y-2" }, mr = { class: "tpl:flex tpl:min-w-0 tpl:grow tpl:basis-64 tpl:flex-wrap tpl:items-center tpl:gap-x-3 tpl:gap-y-1" }, hr = {
48
45
  "data-testid": "language-bar-label",
49
46
  class: "tpl:inline-flex tpl:items-center tpl:gap-2 tpl:font-medium tpl:whitespace-nowrap tpl:text-[var(--tpl-text)]"
50
- }, yr = {
47
+ }, gr = {
51
48
  "data-testid": "language-bar-status",
52
49
  role: "status",
53
50
  "aria-live": "polite",
54
51
  "aria-atomic": "true",
55
52
  class: "tpl:whitespace-nowrap"
56
- }, br = {
53
+ }, _r = {
57
54
  key: 1,
58
55
  "data-testid": "translation-result",
59
56
  class: "tpl:whitespace-normal"
60
- }, xr = ["aria-label"], Sr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, Cr = ["disabled"], wr = ["disabled"], Tr = {
57
+ }, vr = ["aria-label"], yr = { class: "tpl:flex tpl:flex-wrap tpl:items-center tpl:gap-2" }, br = ["disabled"], xr = ["disabled"], Sr = {
61
58
  key: 0,
62
59
  "data-testid": "structure-notice",
63
60
  role: "status",
64
61
  class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-2"
65
- }, Er = ["aria-label"], Dr = ["aria-label"], Or = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, kr = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ar = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, jr = ["disabled"], Mr = /* @__PURE__ */ new Set(), Nr = /* @__PURE__ */ n({
62
+ }, Cr = ["aria-label"], wr = ["aria-label"], Tr = { class: "tpl:m-0 tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Er = { class: "tpl:mb-4 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Dr = { class: "tpl:flex tpl:flex-wrap tpl:justify-end tpl:gap-2" }, Or = ["disabled"], kr = /* @__PURE__ */ new Set(), Ar = /* @__PURE__ */ n({
66
63
  __name: "LanguageBar",
67
64
  props: {
68
65
  editor: {},
@@ -71,134 +68,134 @@ var mr = /*#__PURE__*/ Be(dr, [["render", pr]]), hr = {
71
68
  change: {}
72
69
  },
73
70
  setup(e) {
74
- let t = e, { t: n, format: r } = $(), s = f(Vt, void 0) ?? "en", c = f(jt, []), l = P(() => Z(t.editor.content.value)), u = P(() => t.editor.activeLocale?.value ?? l.value), d = P(() => t.locales.includes(u.value)), p = f(Ht, null) ?? pt(t.editor, c), m = P(() => d.value ? !p.value?.missing.length && !p.value?.stale.length ? n.localization.complete : r(n.localization.gapTooltip, {
75
- missing: p.value.missing.length,
76
- stale: p.value.stale.length
77
- }) : r(n.localization.languageReadOnly, { language: Jt(u.value) })), h = P(() => {
71
+ let t = e, n = Xt(t.editor), { t: r, format: s } = $(), c = f(Rt, void 0) ?? "en", l = f(Pt, []), u = P(() => Z(t.editor.content.value)), d = P(() => t.editor.activeLocale?.value ?? u.value), p = P(() => t.locales.includes(d.value)), m = f(Ft, null) ?? Jt(t.editor, l), h = P(() => p.value ? !m.value?.missing.length && !m.value?.stale.length ? r.localization.complete : s(r.localization.gapTooltip, {
72
+ missing: m.value.missing.length,
73
+ stale: m.value.stale.length
74
+ }) : s(r.localization.languageReadOnly, { language: n(d.value) })), g = P(() => {
78
75
  let e = t.feature?.lastResult.value;
79
76
  if (!e) return "";
80
- let i = [qt(n.localization.translatedFields, e.translated, s)];
81
- return e.tagsChanged.length && i.push(qt(n.localization.translationTagsChanged, e.tagsChanged.length, s)), e.skippedLocked.length && i.push(qt(n.localization.translationSkippedLocked, e.skippedLocked.length, s)), e.missing.length && i.push(qt(n.localization.translationMissing, e.missing.length, s)), e.tooLarge.length && i.push(qt(n.localization.translationTooLarge, e.tooLarge.length, s)), e.error && i.push(r(n.localization.translationError, { message: e.error.message })), i.join(" ");
82
- }), g = z(!1), _ = !1, v = z(null), x = z(null), T = P(() => t.feature?.counts.value.all ?? 0), E = P(() => qt(n.localization.translationConfirmation, T.value, s));
83
- function O() {
84
- v.value = null, D(() => x.value?.focus());
85
- }
77
+ let n = [Yt(r.localization.translatedFields, e.translated, c)];
78
+ return e.tagsChanged.length && n.push(Yt(r.localization.translationTagsChanged, e.tagsChanged.length, c)), e.skippedLocked.length && n.push(Yt(r.localization.translationSkippedLocked, e.skippedLocked.length, c)), e.missing.length && n.push(Yt(r.localization.translationMissing, e.missing.length, c)), e.tooLarge.length && n.push(Yt(r.localization.translationTooLarge, e.tooLarge.length, c)), e.error && n.push(s(r.localization.translationError, { message: e.error.message })), n.join(" ");
79
+ }), _ = z(!1), v = !1, x = z(null), T = z(null), E = P(() => t.feature?.counts.value.all ?? 0), O = P(() => Yt(r.localization.translationConfirmation, E.value, c));
86
80
  function k() {
87
- v.value = {
88
- locale: u.value,
81
+ x.value = null, D(() => T.value?.focus());
82
+ }
83
+ function M() {
84
+ x.value = {
85
+ locale: d.value,
89
86
  templateId: t.editor.state.template?.id ?? null,
90
87
  loadVersion: t.editor.loadVersion?.value
91
88
  };
92
89
  }
93
- function M() {
94
- let e = v.value;
95
- e && e.locale === u.value && e.templateId === (t.editor.state.template?.id ?? null) && e.loadVersion === t.editor.loadVersion?.value && d.value && t.feature?.isAvailable.value && !t.feature.running.value && T.value > 0 && t.feature.translate({ only: "all" }), O();
90
+ function N() {
91
+ let e = x.value;
92
+ e && e.locale === d.value && e.templateId === (t.editor.state.template?.id ?? null) && e.loadVersion === t.editor.loadVersion?.value && p.value && t.feature?.isAvailable.value && !t.feature.running.value && E.value > 0 && t.feature.translate({ only: "all" }), k();
96
93
  }
97
94
  return o([() => t.editor.state.template?.id, () => t.editor.loadVersion?.value], () => {
98
- g.value = !1, v.value && O();
99
- }, { flush: "sync" }), o(u, () => {
100
- v.value && O();
95
+ _.value = !1, x.value && k();
96
+ }, { flush: "sync" }), o(d, () => {
97
+ x.value && k();
101
98
  }), o(() => t.change, () => {
102
99
  let e = t.editor.state.template?.id;
103
- (e ? Mr.has(e) : _) || (e ? Mr.add(e) : _ = !0, g.value = !0);
104
- }), (t, o) => u.value === l.value ? w("", !0) : (i(), y("div", hr, [
105
- A("div", gr, [A("div", _r, [
106
- A("span", vr, [H(S(ot), {
100
+ (e ? kr.has(e) : v) || (e ? kr.add(e) : v = !0, _.value = !0);
101
+ }), (t, o) => d.value === u.value ? w("", !0) : (i(), y("div", fr, [
102
+ A("div", pr, [A("div", mr, [
103
+ A("span", hr, [V(S(ct), {
107
104
  size: 14,
108
105
  "aria-hidden": "true",
109
106
  class: "tpl:shrink-0"
110
- }), b(" " + j(S(r)(S(n).localization.editingLanguage, { language: S(Jt)(u.value) })), 1)]),
111
- A("span", yr, [e.feature?.running.value ? (i(), y(B, { key: 0 }, [b(j(S(r)(S(n).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (i(), y("span", br, j(h.value), 1)) : (i(), y(B, { key: 2 }, [b(j(m.value), 1)], 64))]),
107
+ }), b(" " + j(S(s)(S(r).localization.editingLanguage, { language: S(n)(d.value) })), 1)]),
108
+ A("span", gr, [e.feature?.running.value ? (i(), y(B, { key: 0 }, [b(j(S(s)(S(r).localization.translating, e.feature.running.value)), 1)], 64)) : e.feature?.lastResult.value ? (i(), y("span", _r, j(g.value), 1)) : (i(), y(B, { key: 2 }, [b(j(h.value), 1)], 64))]),
112
109
  e.feature?.lastResult.value && !e.feature.running.value ? (i(), y("button", {
113
110
  key: 0,
114
111
  type: "button",
115
112
  "data-testid": "translation-dismiss",
116
- "aria-label": S(n).localization.dismiss,
117
- class: C(S(en)),
113
+ "aria-label": S(r).localization.dismiss,
114
+ class: C(S(nn)),
118
115
  onClick: o[0] ||= (t) => e.feature.dismissResult()
119
- }, [H(S(lt), {
116
+ }, [V(S(dt), {
120
117
  size: 14,
121
118
  "aria-hidden": "true"
122
- })], 10, xr)) : w("", !0)
123
- ]), A("div", Sr, [
119
+ })], 10, vr)) : w("", !0)
120
+ ]), A("div", yr, [
124
121
  e.feature?.running.value ? (i(), y("button", {
125
122
  key: 0,
126
123
  type: "button",
127
124
  "data-testid": "translation-cancel",
128
- class: C(S(en)),
125
+ class: C(S(nn)),
129
126
  onClick: o[1] ||= (t) => e.feature.cancel()
130
- }, j(S(n).localization.cancel), 3)) : w("", !0),
131
- d.value && e.feature?.isAvailable.value ? (i(), y(B, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (i(), y("button", {
127
+ }, j(S(r).localization.cancel), 3)) : w("", !0),
128
+ p.value && e.feature?.isAvailable.value ? (i(), y(B, { key: 1 }, [e.feature.counts.value.gaps > 0 ? (i(), y("button", {
132
129
  key: 0,
133
130
  type: "button",
134
131
  "data-testid": "translate-language",
135
- class: C(S(nn)),
132
+ class: C(S(an)),
136
133
  disabled: !!e.feature.running.value,
137
134
  onClick: o[2] ||= (t) => e.feature.translate({ only: "gaps" })
138
- }, j(S(qt)(S(n).localization.translateFields, e.feature.counts.value.gaps, S(s))), 11, Cr)) : w("", !0), A("button", {
135
+ }, j(S(Yt)(S(r).localization.translateFields, e.feature.counts.value.gaps, S(c))), 11, br)) : w("", !0), A("button", {
139
136
  ref_key: "allAgain",
140
- ref: x,
137
+ ref: T,
141
138
  type: "button",
142
139
  "data-testid": "translate-all-again",
143
- class: C(S(en)),
144
- disabled: !!e.feature.running.value || T.value === 0,
145
- onClick: k
146
- }, j(S(n).localization.translateAllAgain), 11, wr)], 64)) : w("", !0),
140
+ class: C(S(nn)),
141
+ disabled: !!e.feature.running.value || E.value === 0,
142
+ onClick: M
143
+ }, j(S(r).localization.translateAllAgain), 11, xr)], 64)) : w("", !0),
147
144
  A("button", {
148
145
  type: "button",
149
146
  "data-testid": "language-back-default",
150
- class: C(S(en)),
147
+ class: C(S(nn)),
151
148
  onClick: o[3] ||= (t) => e.editor.setActiveLocale?.(null)
152
- }, j(S(r)(S(n).localization.backToDefault, { default: S(Jt)(l.value) })), 3)
149
+ }, j(S(s)(S(r).localization.backToDefault, { default: S(n)(u.value) })), 3)
153
150
  ])]),
154
- g.value ? (i(), y("div", Tr, [A("span", null, j(S(n).localization.structureNotice), 1), A("button", {
151
+ _.value ? (i(), y("div", Sr, [A("span", null, j(S(r).localization.structureNotice), 1), A("button", {
155
152
  type: "button",
156
- "aria-label": S(n).localization.dismiss,
157
- class: C(S(en)),
158
- onClick: o[4] ||= (e) => g.value = !1
159
- }, [H(S(lt), {
153
+ "aria-label": S(r).localization.dismiss,
154
+ class: C(S(nn)),
155
+ onClick: o[4] ||= (e) => _.value = !1
156
+ }, [V(S(dt), {
160
157
  size: 14,
161
158
  "aria-hidden": "true"
162
- })], 10, Er)])) : w("", !0),
163
- H(rn, {
164
- visible: v.value !== null,
165
- onClose: O
159
+ })], 10, Cr)])) : w("", !0),
160
+ V(on, {
161
+ visible: x.value !== null,
162
+ onClose: k
166
163
  }, {
167
164
  default: a(() => [A("section", {
168
165
  role: "dialog",
169
166
  "aria-modal": "true",
170
- "aria-label": E.value,
167
+ "aria-label": O.value,
171
168
  class: "tpl:w-96 tpl:max-w-full tpl:max-h-[90%] tpl:overflow-y-auto tpl:box-border tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-lg)]"
172
169
  }, [
173
- A("h3", Or, j(E.value), 1),
174
- A("p", kr, j(S(r)(S(n).localization.translationDescription, { language: S(Jt)(v.value?.locale ?? u.value) })), 1),
175
- A("div", Ar, [A("button", {
170
+ A("h3", Tr, j(O.value), 1),
171
+ A("p", Er, j(S(s)(S(r).localization.translationDescription, { language: S(n)(x.value?.locale ?? d.value) })), 1),
172
+ A("div", Dr, [A("button", {
176
173
  type: "button",
177
174
  "data-testid": "translation-confirm-cancel",
178
- class: C(S(Yt)),
179
- onClick: O
180
- }, j(S(n).localization.cancel), 3), A("button", {
175
+ class: C(S(Zt)),
176
+ onClick: k
177
+ }, j(S(r).localization.cancel), 3), A("button", {
181
178
  type: "button",
182
179
  "data-testid": "translation-confirm",
183
- class: C(S(Qt)),
184
- disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || T.value === 0,
185
- onClick: M
186
- }, j(S(qt)(S(n).localization.translateAllFields, T.value, S(s))), 11, jr)])
187
- ], 8, Dr)]),
180
+ class: C(S(en)),
181
+ disabled: !!e.feature?.running.value || !e.feature?.isAvailable.value || E.value === 0,
182
+ onClick: N
183
+ }, j(S(Yt)(S(r).localization.translateAllFields, E.value, S(c))), 11, Or)])
184
+ ], 8, wr)]),
188
185
  _: 1
189
186
  }, 8, ["visible"])
190
187
  ]));
191
188
  }
192
189
  });
193
190
  // src/composables/useLocaleActions.ts
194
- function Pr(e) {
191
+ function jr(e) {
195
192
  let { editor: t } = e;
196
193
  return { setDefaultLocale(n) {
197
194
  let r;
198
195
  try {
199
- r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ge(t.content.value, r);
196
+ r = [t.createSetDefaultLocaleOperation(n)], e.collaboration || ae(t.content.value, r);
200
197
  } catch (e) {
201
- if (e instanceof xe) return {
198
+ if (e instanceof Y) return {
202
199
  applied: !1,
203
200
  error: e
204
201
  };
@@ -207,12 +204,12 @@ function Pr(e) {
207
204
  if (e.collaboration) {
208
205
  let t = e.collaboration.core.applyOperations(r, {});
209
206
  if (!t.applied) return t;
210
- } else e.history().record(), _e(t.content.value, r), t.markDirty();
207
+ } else e.history().record(), oe(t.content.value, r), t.markDirty();
211
208
  return t.setActiveLocale(n), { applied: !0 };
212
209
  } };
213
210
  }
214
211
  // src/composables/useTranslationFeature.ts
215
- function Fr(e) {
212
+ function Mr(e) {
216
213
  if (typeof e != "object" || !e) return null;
217
214
  let t = e;
218
215
  return t.code !== "rate_limited" && t.code !== "limit_reached" && t.code !== "content_too_large" && t.code !== "translation_failed" || t.statusCode !== void 0 && typeof t.statusCode != "number" ? null : {
@@ -221,24 +218,24 @@ function Fr(e) {
221
218
  ...t.statusCode === void 0 ? {} : { statusCode: t.statusCode }
222
219
  };
223
220
  }
224
- function Ir(e) {
221
+ function Nr(e) {
225
222
  let t = /* @__PURE__ */ new Set();
226
223
  if (typeof DOMParser > "u") return t;
227
224
  let n = new DOMParser().parseFromString(e, "text/html");
228
225
  for (let e of n.querySelectorAll("[style]")) t.add(e.getAttribute("style") ?? "");
229
226
  return t;
230
227
  }
231
- function Lr(e, t) {
232
- let n = Ir(t);
233
- return [...Ir(e)].every((e) => n.has(e));
228
+ function Pr(e, t) {
229
+ let n = Nr(t);
230
+ return [...Nr(e)].every((e) => n.has(e));
234
231
  }
235
- function Rr(e) {
236
- let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i = an(r);
232
+ function Fr(e) {
233
+ let t = `tpl-translation-${crypto.randomUUID()}-`, n = [], r = e.replace(/<x id="\d+"\s*\/>|<x id="\d+"><\/x>|__x\d+__/g, (e) => `${t}${n.push(e)}-end`), i = sn(r);
237
234
  return n.forEach((e, n) => {
238
235
  i = i.replaceAll(`${t}${n + 1}-end`, e);
239
236
  }), i;
240
237
  }
241
- async function zr(e, t) {
238
+ async function Ir(e, t) {
242
239
  t.throwIfAborted();
243
240
  let n, r = new Promise((e, r) => {
244
241
  n = () => r(t.reason), t.addEventListener("abort", n, { once: !0 });
@@ -249,7 +246,7 @@ async function zr(e, t) {
249
246
  t.removeEventListener("abort", n);
250
247
  }
251
248
  }
252
- function Br(e) {
249
+ function Lr(e) {
253
250
  let { editor: t } = e, n = L(null), r = L(null), i = null, a = L(!1), s = P(() => {
254
251
  let n = t.activeLocale.value;
255
252
  return !a.value && !!n && n !== Z(t.content.value) && !!e.localization?.locales.includes(n) && !!t.content.value.settings.locales?.includes(n);
@@ -258,7 +255,7 @@ function Br(e) {
258
255
  gaps: 0,
259
256
  all: 0
260
257
  };
261
- let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? je(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = le(t.content.value, n, {
258
+ let n = t.activeLocale.value, r = e.definitions(), i = e.coverage?.() ?? ve(t.content.value, n, r), a = /* @__PURE__ */ new Set([...i.missing, ...i.stale]), { strings: o } = U(t.content.value, n, {
262
259
  definitions: r,
263
260
  syntax: e.syntax(),
264
261
  doNotTranslate: e.localization?.doNotTranslate,
@@ -289,7 +286,7 @@ function Br(e) {
289
286
  if (!s.value) throw new Q("Translation isn't available in this language.", 403, "feature_unavailable");
290
287
  let o = e.collaboration?.core;
291
288
  o?.flush();
292
- let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = Te(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = le(t.content.value, c, {
289
+ let c = t.activeLocale.value, l = t.state.template?.id ?? null, u = Z(t.content.value), d = fe(E([...e.definitions()])), f = e.syntax(), p = e.localization?.doNotTranslate?.slice(), m = U(t.content.value, c, {
293
290
  ...a,
294
291
  definitions: d,
295
292
  syntax: f,
@@ -325,7 +322,7 @@ function Br(e) {
325
322
  }
326
323
  let i;
327
324
  try {
328
- i = await zr(e.provider.translate({
325
+ i = await Ir(e.provider.translate({
329
326
  templateId: l,
330
327
  sourceLocale: u,
331
328
  targetLocale: c,
@@ -336,7 +333,7 @@ function Br(e) {
336
333
  }))
337
334
  }, g.controller.signal), g.controller.signal), g.controller.signal.throwIfAborted();
338
335
  } catch (e) {
339
- if (!g.controller.signal.aborted && Fr(e)?.code === "content_too_large" && t.length > 1) {
336
+ if (!g.controller.signal.aborted && Mr(e)?.code === "content_too_large" && t.length > 1) {
340
337
  y = Math.floor(t.length / 2);
341
338
  continue;
342
339
  }
@@ -348,10 +345,10 @@ function Br(e) {
348
345
  h.missing.push(e.id);
349
346
  continue;
350
347
  }
351
- let n = m.tokens[e.id], r = be(t.text, n);
352
- r === null || e.format === "html" && !Lr(r, be(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
348
+ let n = m.tokens[e.id], r = le(t.text, n);
349
+ r === null || e.format === "html" && !Pr(r, le(e.source, n)) ? h.tagsChanged.push(e.id) : _.push({
353
350
  id: e.id,
354
- text: e.format === "html" ? Rr(t.text) : t.text,
351
+ text: e.format === "html" ? Fr(t.text) : t.text,
355
352
  sourceHash: e.sourceHash
356
353
  });
357
354
  }
@@ -362,14 +359,14 @@ function Br(e) {
362
359
  }
363
360
  } catch (e) {
364
361
  g.controller.signal.aborted || e instanceof Error && e.name === "AbortError" ? h.cancelled = !0 : h.error = {
365
- code: Fr(e)?.code ?? "translation_failed",
366
- message: Fr(e)?.message ?? (e instanceof Error ? e.message : String(e))
362
+ code: Mr(e)?.code ?? "translation_failed",
363
+ message: Mr(e)?.message ?? (e instanceof Error ? e.message : String(e))
367
364
  };
368
365
  }
369
366
  try {
370
367
  if (!g.discarded) {
371
368
  o?.flush();
372
- let n = ze(t.content.value, c, _, {
369
+ let n = De(t.content.value, c, _, {
373
370
  definitions: d,
374
371
  syntax: f,
375
372
  doNotTranslate: p,
@@ -392,7 +389,7 @@ function Br(e) {
392
389
  let t = o.locksOf(e.blockId).some((e) => e.holder.sessionId !== o.sessionId && (e.locale == null || e.locale === c));
393
390
  return t && h.skippedLocked.push(...Object.keys(e.text ?? {}).map((t) => `${e.blockId}/${t}`)), !t;
394
391
  });
395
- s.length && (ge(E(t.content.value), s), e.history().record(), _e(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
392
+ s.length && (ae(E(t.content.value), s), e.history().record(), oe(t.content.value, s), t.markDirty(), o?.flush(), h.translated = s.reduce((e, t) => e + (t.op === "updateBlockLocale" || t.op === "updateSettingsLocale" ? Object.keys(t.text ?? {}).length : 0), 0)), t.activeLocale.value === c && (r.value = h);
396
393
  }
397
394
  } finally {
398
395
  i = null, n.value = null;
@@ -412,12 +409,12 @@ function Br(e) {
412
409
  };
413
410
  }
414
411
  // src/composables/useCollaborationFeature.ts
415
- var Vr = 5e3, Hr = 2e3, Ur = {
412
+ var Rr = 5e3, zr = 2e3, Br = {
416
413
  blockIds: [],
417
414
  settings: !1,
418
415
  templateUpdated: !0
419
416
  };
420
- function Wr(e) {
417
+ function Vr(e) {
421
418
  let t = /* @__PURE__ */ new Set(), n = !1, r = !1;
422
419
  for (let i of e) i.op === "addBlock" ? typeof i.block?.id == "string" && t.add(i.block.id) : i.op === "updateSettings" || i.op === "addLocale" || i.op === "removeLocale" || i.op === "updateSettingsLocale" ? n = !0 : i.op === "setContent" || i.op === "setDefaultLocale" ? r = !0 : t.add(i.blockId);
423
420
  return {
@@ -426,11 +423,11 @@ function Wr(e) {
426
423
  templateUpdated: r
427
424
  };
428
425
  }
429
- function Gr(e) {
426
+ function Hr(e) {
430
427
  let t = z([]), n = 1, r = /* @__PURE__ */ new Map();
431
428
  function i(e) {
432
429
  let t = r.get(e);
433
- t && clearTimeout(t), r.set(e, setTimeout(() => o(e), Vr));
430
+ t && clearTimeout(t), r.set(e, setTimeout(() => o(e), Rr));
434
431
  }
435
432
  function a(e) {
436
433
  let r = n++;
@@ -468,7 +465,7 @@ function Gr(e) {
468
465
  u.delete(r);
469
466
  let e = new Map(l.value);
470
467
  e.delete(r), l.value = e;
471
- }, Hr));
468
+ }, zr));
472
469
  }
473
470
  l.value = n;
474
471
  }
@@ -509,18 +506,18 @@ function Gr(e) {
509
506
  id: u.noticeId
510
507
  }], i(u.noticeId)) : (u.noticeId = a(p), c = u), n.templateUpdated || f(n.blockIds);
511
508
  }
512
- let h = K({
509
+ let h = Me({
513
510
  provider: e.provider,
514
511
  loadTemplate: e.loadTemplate,
515
- normalizeRemoteOperations: (t, n) => zn(t, n, e.mergeTags),
512
+ normalizeRemoteOperations: (t, n) => Rn(t, n, e.mergeTags),
516
513
  onRemoteChange: (t) => {
517
514
  try {
518
- p(t.actor, Wr(t.ops));
515
+ p(t.actor, Vr(t.ops));
519
516
  } finally {
520
517
  e.onRemoteChange?.(t);
521
518
  }
522
519
  },
523
- onRemoteResync: ({ actor: e }) => p(e, Ur),
520
+ onRemoteResync: ({ actor: e }) => p(e, Br),
524
521
  onNotice: s,
525
522
  onError: e.onError
526
523
  });
@@ -582,14 +579,14 @@ function Gr(e) {
582
579
  };
583
580
  }
584
581
  // src/composables/useCommentsFeature.ts
585
- function Kr(e) {
586
- let { provider: t, editor: n } = e, r = W({
582
+ function Ur(e) {
583
+ let { provider: t, editor: n } = e, r = Ne({
587
584
  provider: t,
588
585
  getTemplateId: () => n.state.template?.id ?? null,
589
586
  getUser: () => e.user ?? null,
590
587
  onError: e.onError
591
588
  });
592
- G({
589
+ ke({
593
590
  comments: r,
594
591
  provider: t,
595
592
  getTemplateId: () => n.state.template?.id ?? null
@@ -624,7 +621,6 @@ function Kr(e) {
624
621
  capability: {
625
622
  getBlockCount: (e) => r.commentCountByBlock.value.get(e) ?? 0,
626
623
  openForBlock: f,
627
- isBlockSaved: (t) => e.isBlockSaved?.(t) ?? !0,
628
624
  isAvailable: l,
629
625
  unresolvedCount: c,
630
626
  canCreate: r.canCreate,
@@ -635,22 +631,22 @@ function Kr(e) {
635
631
  };
636
632
  }
637
633
  // src/composables/useAiFeature.ts
638
- var qr = 3e3, Jr = 1e3;
639
- function Yr(e) {
640
- return Te(E(e));
634
+ var Wr = 3e3, Gr = 1e3;
635
+ function Kr(e) {
636
+ return fe(E(e));
641
637
  }
642
- var Xr = (e) => e instanceof Error && e.name === "AbortError";
643
- function Zr(e) {
638
+ var qr = (e) => e instanceof Error && e.name === "AbortError";
639
+ function Jr(e) {
644
640
  if (e instanceof Error) return e;
645
641
  if (typeof e != "object" || !e) return Error(String(e));
646
642
  let t = e;
647
643
  return Object.assign(Error(typeof t.message == "string" ? t.message : String(e)), typeof t.code == "string" ? { code: t.code } : {}, typeof t.statusCode == "number" ? { statusCode: t.statusCode } : {}, t.details === void 0 ? {} : { details: t.details });
648
644
  }
649
- var Qr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
650
- function $r(e, t) {
651
- return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && $r(e, t)));
645
+ var Yr = (e) => e.batches.reduce((e, t) => e + t.operationCount, 0);
646
+ function Xr(e, t) {
647
+ return e.some((e) => e.id === t || e.type === "section" && Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) && Xr(e, t)));
652
648
  }
653
- function ei(e) {
649
+ function Zr(e) {
654
650
  return {
655
651
  applied: !1,
656
652
  code: e.code,
@@ -658,7 +654,7 @@ function ei(e) {
658
654
  message: e.message
659
655
  };
660
656
  }
661
- function ti(e) {
657
+ function Qr(e) {
662
658
  let { provider: t, editor: n, collaboration: r } = e, i = t.conversation ?? null, a = crypto.randomUUID(), s = z(null), c = /* @__PURE__ */ new Map(), l = !1, u = 0, d = !1, f = 0, p = null, m = v();
663
659
  function h(e) {
664
660
  let t = ne(e);
@@ -723,12 +719,12 @@ function ti(e) {
723
719
  a(e);
724
720
  return;
725
721
  } finally {
726
- t.active = null, t.busy.value = !1, --f === 0 && Oe(), B(t);
722
+ t.active = null, t.busy.value = !1, --f === 0 && ke(), B(t);
727
723
  }
728
724
  i(e);
729
725
  }
730
726
  };
731
- t.queue.push(o), f++ === 0 && Oe(), B(t);
727
+ t.queue.push(o), f++ === 0 && ke(), B(t);
732
728
  }) : Promise.resolve().then(r);
733
729
  }
734
730
  function B(e) {
@@ -775,9 +771,9 @@ function ti(e) {
775
771
  e.timers.add(r);
776
772
  }
777
773
  function G(t) {
778
- Xr(t) || e.onError?.(Zr(t));
774
+ qr(t) || e.onError?.(Jr(t));
779
775
  }
780
- function K(e, t) {
776
+ function re(e, t) {
781
777
  if (t.length === 0) return;
782
778
  if (r) {
783
779
  r.outline(t);
@@ -789,13 +785,13 @@ function ti(e) {
789
785
  let r = new Map(e.highlights.value);
790
786
  for (let e of t) r.get(e) === n && r.delete(e);
791
787
  e.highlights.value = r;
792
- }, Hr);
788
+ }, zr);
793
789
  }
794
- async function J(e) {
795
- r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t, qr))]);
790
+ async function K(e) {
791
+ r && await Promise.race([r.core.settle().catch(() => {}), new Promise((t) => W(e, t, Wr))]);
796
792
  }
797
- function re(t) {
798
- let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = ke(i, o ?? Z(i));
793
+ function q(t) {
794
+ let i = E(n.content.value), o = n.activeLocale?.value ?? null, s = ge(i, o ?? Z(i));
799
795
  if (o === null && i.settings.locale === void 0 && delete s.settings.locale, new TextEncoder().encode(JSON.stringify(s)).length > 2e5) throw new Q("This template is too large for AI.", 413, "content_too_large");
800
796
  return {
801
797
  templateId: t,
@@ -806,11 +802,11 @@ function ti(e) {
806
802
  mergeTags: e.mergeTags()
807
803
  };
808
804
  }
809
- function ie() {
805
+ function se() {
810
806
  let e = n.state.selectedBlockId;
811
- return e ? r ? r.core.hasConfirmedBlock(e) ? e : null : $r(n.content.value.blocks, e) ? e : null : null;
807
+ return e ? r ? r.core.hasConfirmedBlock(e) ? e : null : Xr(n.content.value.blocks, e) ? e : null : null;
812
808
  }
813
- function ae(t, i, a) {
809
+ function ce(t, i, a) {
814
810
  if (t.length === 0) return {
815
811
  applied: !0,
816
812
  inverse: []
@@ -819,55 +815,55 @@ function ti(e) {
819
815
  try {
820
816
  o = e.normalize(t, E(n.content.value));
821
817
  } catch (e) {
822
- if (e instanceof xe) return ei(e);
818
+ if (e instanceof Y) return Zr(e);
823
819
  throw e;
824
820
  }
825
821
  if (o.length === 0) return {
826
822
  applied: !0,
827
823
  inverse: []
828
824
  };
829
- let s = Wr(o);
825
+ let s = Vr(o);
830
826
  if (r) {
831
827
  let e = r.core.applyOperations(o, {
832
828
  origin: "ai",
833
829
  turn: i
834
830
  });
835
- return e.applied ? (s.templateUpdated || K(a, s.blockIds), {
831
+ return e.applied ? (s.templateUpdated || re(a, s.blockIds), {
836
832
  applied: !0,
837
833
  inverse: e.inverse
838
- }) : ei(e.error);
834
+ }) : Zr(e.error);
839
835
  }
840
836
  let c;
841
837
  try {
842
- c = ge(E(n.content.value), o);
838
+ c = ae(E(n.content.value), o);
843
839
  } catch (e) {
844
- if (e instanceof xe) return ei(e);
840
+ if (e instanceof Y) return Zr(e);
845
841
  throw e;
846
842
  }
847
843
  a.lastRecordedTurn !== i && (e.history().record(), a.lastRecordedTurn = i), d = !0;
848
844
  try {
849
- _e(n.content.value, Te(o)), n.markDirty();
845
+ oe(n.content.value, fe(o)), n.markDirty();
850
846
  } finally {
851
847
  d = !1;
852
848
  }
853
849
  let l = n.state.selectedBlockId;
854
- return l && !$r(n.content.value.blocks, l) && n.selectBlock(null), s.templateUpdated || K(a, s.blockIds), {
850
+ return l && !Xr(n.content.value.blocks, l) && n.selectBlock(null), s.templateUpdated || re(a, s.blockIds), {
855
851
  applied: !0,
856
852
  inverse: c
857
853
  };
858
854
  }
859
- function oe(t, r, i, a) {
855
+ function J(t, r, i, a) {
860
856
  let o = t;
861
857
  try {
862
858
  if (a !== null) {
863
- if (e.localization && !e.localization.locales.includes(a)) throw new xe("invalid_operation", 0, `Locale "${a}" is not enabled.`);
864
- o = q(E(n.content.value), a, t, e.customBlockDefinitions?.());
859
+ if (e.localization && !e.localization.locales.includes(a)) throw new Y("invalid_operation", 0, `Locale "${a}" is not enabled.`);
860
+ o = Pe(E(n.content.value), a, t, e.customBlockDefinitions?.());
865
861
  }
866
862
  } catch (e) {
867
- if (e instanceof xe) return ei(e);
863
+ if (e instanceof Y) return Zr(e);
868
864
  throw e;
869
865
  }
870
- let s = ae(o, r, i);
866
+ let s = ce(o, r, i);
871
867
  return s.applied && s.inverse.length > 0 && a !== null && o.some((e) => [
872
868
  "addBlock",
873
869
  "moveBlock",
@@ -875,14 +871,14 @@ function ti(e) {
875
871
  "updateBlock"
876
872
  ].includes(e.op)) && e.onStructureChange?.(), s;
877
873
  }
878
- function se(e, t) {
874
+ function le(e, t) {
879
875
  if (!r || !T(t)) return;
880
876
  let n = r.core;
881
877
  n.revision.value >= e || (n.connection.value === "connected" ? W(t, () => {
882
878
  T(t) && n.revision.value < e && n.catchUp();
883
- }, Jr) : n.catchUp());
879
+ }, Gr) : n.catchUp());
884
880
  }
885
- function Y(e, t, n) {
881
+ function X(e, t, n) {
886
882
  let r = e.memory;
887
883
  r.items = r.items.map((e) => {
888
884
  if (e.id !== t) return e;
@@ -892,13 +888,13 @@ function ti(e) {
892
888
  };
893
889
  return {
894
890
  ...i,
895
- ...ce(i, r)
891
+ ...ue(i, r)
896
892
  };
897
893
  });
898
894
  for (let e of r.recoveries.values()) e.item.id === t && (e.item = r.items.find((e) => e.id === (n.id ?? t)) ?? e.item);
899
895
  e.messages.value = r.items;
900
896
  }
901
- function ce(e, t) {
897
+ function ue(e, t) {
902
898
  let n = e.role === "assistant" && e.operationCount > 0;
903
899
  if (t.storedIds.has(e.id)) return {
904
900
  canUndo: n && !e.undone && typeof i?.undo == "function",
@@ -910,21 +906,21 @@ function ti(e) {
910
906
  canRedo: n && e.undone && !r?.serverApplied && (r?.redo?.length ?? 0) > 0
911
907
  };
912
908
  }
913
- let le = () => ({
909
+ let de = () => ({
914
910
  messageId: null,
915
911
  operationCount: 0,
916
912
  text: "",
917
913
  failed: !0
918
914
  });
919
- function ue(t, a, o, s = []) {
915
+ function pe(t, a, o, s = []) {
920
916
  let c = b, l = n.activeLocale?.value ?? null, u = w();
921
- return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(le()) : R("turn", u, async (d) => {
917
+ return !u || u.active?.kind === "turn" || u.queue.some((e) => e.kind === "turn") ? Promise.resolve(de()) : R("turn", u, async (d) => {
922
918
  let { controller: f } = d, p = u.memory, m = crypto.randomUUID(), h = crypto.randomUUID(), g = crypto.randomUUID(), _ = 0, v = "", y = !1, b = null, x = {
923
919
  inverse: [],
924
920
  redo: null,
925
921
  serverApplied: !1,
926
922
  batchIds: /* @__PURE__ */ new Set()
927
- }, C, w = !1, E = !1, D = (e) => Y(u, g, e), O = () => {
923
+ }, C, w = !1, E = !1, D = (e) => X(u, g, e), O = () => {
928
924
  let e = p.items.find((e) => e.id === g);
929
925
  i && e && p.recoveries.set(m, {
930
926
  item: e,
@@ -936,7 +932,7 @@ function ti(e) {
936
932
  try {
937
933
  let n;
938
934
  do
939
- n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await pe(t, !0, !0);
935
+ n = _, !r && e.reload && await U(t, !0, d.authorVersion), i && await ve(t, !0, !0);
940
936
  while (T(u) && n !== _);
941
937
  } catch (e) {
942
938
  T(u) && G(e);
@@ -952,18 +948,18 @@ function ti(e) {
952
948
  },
953
949
  onOperations: async (e) => {
954
950
  V(d), S(c);
955
- let t = r ? Yr(n.content.value) : null, i = oe(e, m, u, l);
956
- return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Re(x.view, t) ? Yr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
951
+ let t = r ? Kr(n.content.value) : null, i = J(e, m, u, l);
952
+ return i.applied && i.inverse.length > 0 && (x.inverse = [...i.inverse, ...x.inverse], r && (x.view = x.view === void 0 || x.view !== null && Te(x.view, t) ? Kr(n.content.value) : null), _ += e.length, D({ operationCount: _ })), i;
957
953
  },
958
954
  onApplied: (t) => {
959
955
  if (!T(u)) throw new DOMException("The template changed.", "AbortError");
960
- if (!r && !e.reload) throw b ??= new Q(Un, 502, "ai_provider_error"), b;
961
- x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), se(t.revision, u), w && (O(), k());
956
+ if (!r && !e.reload) throw b ??= new Q(Hn, 502, "ai_provider_error"), b;
957
+ x.serverApplied = !0, x.batchIds.add(t.batchId), _ += t.operationCount, D({ operationCount: _ }), le(t.revision, u), w && (O(), k());
962
958
  }
963
959
  };
964
960
  try {
965
961
  try {
966
- await pe(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
962
+ await ve(d), V(d), S(c), u.failure.value = null, u.failedPrompt.value = null, u.failedAttachments.value = [];
967
963
  let e = (/* @__PURE__ */ new Date()).toISOString();
968
964
  p.records.set(g, x), p.items = [
969
965
  ...p.items,
@@ -998,12 +994,12 @@ function ti(e) {
998
994
  createdAt: e,
999
995
  status: "streaming"
1000
996
  }
1001
- ], u.messages.value = p.items, await H(J(u), d.controller.signal), V(d), S(c);
1002
- let n = await H(o(re(u.id), A, f.signal), f.signal);
997
+ ], u.messages.value = p.items, await H(K(u), d.controller.signal), V(d), S(c);
998
+ let n = await H(o(q(u.id), A, f.signal), f.signal);
1003
999
  if (V(d), b) throw b;
1004
1000
  if (n.text !== "" && (v = n.text), n.messageId !== null && i) {
1005
1001
  let e = g;
1006
- g = n.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x), Y(u, e, { id: g });
1002
+ g = n.messageId, p.storedIds.add(g), p.records.delete(e), p.records.set(g, x), X(u, e, { id: g });
1007
1003
  }
1008
1004
  D({
1009
1005
  text: v,
@@ -1016,8 +1012,8 @@ function ti(e) {
1016
1012
  };
1017
1013
  } catch (e) {
1018
1014
  let n = b ?? e;
1019
- y = f.signal.aborted || Xr(n), y || G(n), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), T(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = a, u.failedAttachments.value = s), u.failure.value = {
1020
- error: Zr(n),
1015
+ y = f.signal.aborted || qr(n), y || G(n), _ === 0 && (!y || v === "") ? (p.items = p.items.filter((e) => e.id !== g && e.id !== h), T(u) && (u.messages.value = p.items, y || (t === "chat" && (u.failedPrompt.value = a, u.failedAttachments.value = s), u.failure.value = {
1016
+ error: Jr(n),
1021
1017
  context: "turn"
1022
1018
  })), C = {
1023
1019
  messageId: null,
@@ -1027,7 +1023,7 @@ function ti(e) {
1027
1023
  }) : (D({
1028
1024
  status: y ? "done" : "failed",
1029
1025
  failure: y ? void 0 : {
1030
- error: Zr(n),
1026
+ error: Jr(n),
1031
1027
  context: "turn"
1032
1028
  }
1033
1029
  }), C = {
@@ -1043,7 +1039,7 @@ function ti(e) {
1043
1039
  if (n = _, x.serverApplied && !r && e.reload && T(u) && await U(d, !0).catch((e) => {
1044
1040
  T(u) && G(e);
1045
1041
  }), i && p.recoveries.has(m) && T(u)) {
1046
- await pe(d, !0, !0);
1042
+ await ve(d, !0, !0);
1047
1043
  let e = p.recoveries.get(m);
1048
1044
  e && (C.messageId = e.item.id, C.text = e.item.text);
1049
1045
  }
@@ -1052,9 +1048,9 @@ function ti(e) {
1052
1048
  } finally {
1053
1049
  w = !0, u.messages.value = p.items;
1054
1050
  }
1055
- }, le);
1051
+ }, de);
1056
1052
  }
1057
- function de(t, o) {
1053
+ function me(t, o) {
1058
1054
  let s = w();
1059
1055
  return !s || s.busy.value ? Promise.resolve() : R("replay", s, async (c) => {
1060
1056
  let l = s.memory, u = l.items.find((e) => e.id === t);
@@ -1068,8 +1064,8 @@ function ti(e) {
1068
1064
  if (!T(s)) return;
1069
1065
  if ("operations" in n) {
1070
1066
  if (c.controller.signal.aborted) return;
1071
- let e = oe(n.operations, `${o}:${t}:${crypto.randomUUID()}`, s, u.locale ?? null);
1072
- e.applied && Y(s, t, {
1067
+ let e = J(n.operations, `${o}:${t}:${crypto.randomUUID()}`, s, u.locale ?? null);
1068
+ e.applied && X(s, t, {
1073
1069
  undone: o === "undo",
1074
1070
  failure: void 0
1075
1071
  });
@@ -1082,52 +1078,52 @@ function ti(e) {
1082
1078
  }), s.lifetime.signal);
1083
1079
  } catch (e) {
1084
1080
  if (!T(s)) return;
1085
- G(e), Y(s, t, { failure: {
1086
- error: Zr(e),
1081
+ G(e), X(s, t, { failure: {
1082
+ error: Jr(e),
1087
1083
  context: o
1088
1084
  } });
1089
1085
  }
1090
1086
  if (!T(s)) return;
1091
- if (!e.applied) throw new he(e.message, {
1087
+ if (!e.applied) throw new ie(e.message, {
1092
1088
  code: e.code,
1093
1089
  opIndex: e.opIndex
1094
1090
  });
1095
1091
  return;
1096
1092
  }
1097
- if (Y(s, t, {
1093
+ if (X(s, t, {
1098
1094
  undone: o === "undo",
1099
1095
  failure: void 0
1100
- }), r) se(n.applied.revision, s);
1096
+ }), r) le(n.applied.revision, s);
1101
1097
  else if (e.reload) await U(c, !0);
1102
- else throw new Q(Un, 502, "ai_provider_error");
1098
+ else throw new Q(Hn, 502, "ai_provider_error");
1103
1099
  return;
1104
1100
  }
1105
1101
  {
1106
1102
  if (u.undone !== (o === "redo")) return;
1107
1103
  let e = o === "undo" ? f?.inverse : f?.redo;
1108
1104
  if (!f || f.serverApplied || !e || e.length === 0) return;
1109
- if (r && e.some((e) => e.op === "setContent") && (!f.view || !Re(f.view, E(n.content.value)))) throw new he(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1110
- let i = ae(e, `${o}:${t}:${crypto.randomUUID()}`, s);
1111
- if (!i.applied) throw new he(i.message, {
1105
+ if (r && e.some((e) => e.op === "setContent") && (!f.view || !Te(f.view, E(n.content.value)))) throw new ie(`The template changed since this message's changes, so ${o === "undo" ? "undoing" : "redoing"} them would overwrite that.`, { code: "precondition_failed" });
1106
+ let i = ce(e, `${o}:${t}:${crypto.randomUUID()}`, s);
1107
+ if (!i.applied) throw new ie(i.message, {
1112
1108
  code: i.code,
1113
1109
  opIndex: i.opIndex
1114
1110
  });
1115
- o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view = Yr(n.content.value));
1111
+ o === "undo" ? f.redo = i.inverse : f.inverse = i.inverse, r && (f.view = Kr(n.content.value));
1116
1112
  }
1117
- Y(s, t, {
1113
+ X(s, t, {
1118
1114
  undone: o === "undo",
1119
1115
  failure: void 0
1120
1116
  });
1121
1117
  } catch (e) {
1122
- if (!T(s) || Xr(e)) return;
1123
- G(e), Y(s, t, { failure: {
1124
- error: Zr(e),
1118
+ if (!T(s) || qr(e)) return;
1119
+ G(e), X(s, t, { failure: {
1120
+ error: Jr(e),
1125
1121
  context: o
1126
1122
  } });
1127
1123
  }
1128
1124
  }, () => {});
1129
1125
  }
1130
- function X(e, t) {
1126
+ function he(e, t) {
1131
1127
  let n = {
1132
1128
  id: e.id,
1133
1129
  role: e.role,
@@ -1135,7 +1131,7 @@ function ti(e) {
1135
1131
  locale: e.locale,
1136
1132
  text: e.text,
1137
1133
  attachments: e.attachments ?? [],
1138
- operationCount: Qr(e),
1134
+ operationCount: Yr(e),
1139
1135
  undone: e.undone,
1140
1136
  canUndo: !1,
1141
1137
  canRedo: !1,
@@ -1144,13 +1140,13 @@ function ti(e) {
1144
1140
  };
1145
1141
  return {
1146
1142
  ...n,
1147
- ...ce(n, t)
1143
+ ...ue(n, t)
1148
1144
  };
1149
1145
  }
1150
- function fe(e, t) {
1146
+ function _e(e, t) {
1151
1147
  for (let n of e) t.storedIds.add(n.id);
1152
1148
  let n = new Map(t.items.map((e) => [e.id, e])), r = e.map((e) => {
1153
- let r = X(e, t), i = n.get(r.id);
1149
+ let r = he(e, t), i = n.get(r.id);
1154
1150
  return i?.status === "failed" ? {
1155
1151
  ...r,
1156
1152
  status: i.status,
@@ -1162,19 +1158,19 @@ function ti(e) {
1162
1158
  if (s) {
1163
1159
  t.records.delete(i.id), t.records.set(s.id, a);
1164
1160
  let e = {
1165
- ...X(s, t),
1161
+ ...he(s, t),
1166
1162
  status: i.status,
1167
1163
  failure: i.failure
1168
1164
  };
1169
1165
  n.item = e, r = r.map((t) => t.id === s.id ? e : t);
1170
1166
  } else n.user && !r.some((e) => e.id === n.user.id) && r.push(n.user), r.push({
1171
1167
  ...i,
1172
- ...ce(i, t)
1168
+ ...ue(i, t)
1173
1169
  });
1174
1170
  }
1175
1171
  return r;
1176
1172
  }
1177
- async function pe(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1173
+ async function ve(e, t = !1, n = !1, r = e.scope.historyGeneration) {
1178
1174
  let { scope: a } = e;
1179
1175
  if (!T(a) || r !== a.historyGeneration || !n && e.controller.signal.aborted || !t && a.loaded) return;
1180
1176
  let o = a.memory;
@@ -1183,12 +1179,12 @@ function ti(e) {
1183
1179
  a.isLoadingHistory.value = !0, a.loaded = !1;
1184
1180
  try {
1185
1181
  await H(i.list(a.id).then((t) => {
1186
- !l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = fe(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
1182
+ !l && o.generation === a.generation && r === a.historyGeneration && (n || T(a) && !e.controller.signal.aborted) && (o.items = _e(t, o), a.messages.value = o.items, a.loaded = !0, a.failure.value?.context === "history" && (a.failure.value = null));
1187
1183
  }), n ? a.lifetime.signal : e.controller.signal);
1188
1184
  } catch (e) {
1189
- if (!T(a) || r !== a.historyGeneration || Xr(e)) return;
1185
+ if (!T(a) || r !== a.historyGeneration || qr(e)) return;
1190
1186
  G(e), a.failure.value = {
1191
- error: Zr(e),
1187
+ error: Jr(e),
1192
1188
  context: "history"
1193
1189
  };
1194
1190
  } finally {
@@ -1196,7 +1192,7 @@ function ti(e) {
1196
1192
  }
1197
1193
  }
1198
1194
  }
1199
- function me(e = w()) {
1195
+ function ye(e = w()) {
1200
1196
  if (!e || !T(e)) return Promise.resolve();
1201
1197
  if (e.pendingHistory?.generation === e.historyGeneration) return e.pendingHistory.promise;
1202
1198
  if (e.loaded) return Promise.resolve();
@@ -1204,11 +1200,11 @@ function ti(e) {
1204
1200
  generation: t,
1205
1201
  promise: Promise.resolve()
1206
1202
  };
1207
- return n.promise = R("history", e, (e) => pe(e, !1, !1, t), () => {}).finally(() => {
1203
+ return n.promise = R("history", e, (e) => ve(e, !1, !1, t), () => {}).finally(() => {
1208
1204
  e.pendingHistory === n && (e.pendingHistory = null);
1209
1205
  }), e.pendingHistory = n, n.promise;
1210
1206
  }
1211
- function ve() {
1207
+ function be() {
1212
1208
  let e = w();
1213
1209
  return !e || i && typeof i.clear != "function" || e.active && e.active.kind !== "history" && e.active.kind !== "read" || e.queue.some((e) => e.kind !== "history" && e.kind !== "read") ? Promise.resolve() : (te(e), e.active?.controller.abort(), R("clear", e, async () => {
1214
1210
  try {
@@ -1217,39 +1213,39 @@ function ti(e) {
1217
1213
  } catch (t) {
1218
1214
  if (!T(e)) return;
1219
1215
  G(t), e.failure.value = {
1220
- error: Zr(t),
1216
+ error: Jr(t),
1221
1217
  context: "history"
1222
1218
  };
1223
1219
  }
1224
1220
  }, () => {}));
1225
1221
  }
1226
- function ye(e) {
1227
- T(e) && me(e);
1222
+ function xe(e) {
1223
+ T(e) && ye(e);
1228
1224
  }
1229
- function be(t) {
1225
+ function Se(t) {
1230
1226
  let n = w();
1231
- n && T(n) && (s.value !== t && n.busy.value && Ee(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && ye(n));
1232
- }
1233
- function Se(e) {
1234
- e.length !== 0 && C("chatAttachments") && (I.value = [...e], be("chat"));
1227
+ n && T(n) && (s.value !== t && n.busy.value && De(), s.value = t, e.commentsOpen && (e.commentsOpen.value = !1), t === "chat" && xe(n));
1235
1228
  }
1236
1229
  function Ce(e) {
1230
+ e.length !== 0 && C("chatAttachments") && (I.value = [...e], Se("chat"));
1231
+ }
1232
+ function we(e) {
1237
1233
  e.active?.controller.abort();
1238
1234
  for (let t of e.queue) t.kind !== "reconcile" && t.controller.abort();
1239
1235
  }
1240
- function we(e) {
1241
- e.lifetime.abort(), Ce(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
1236
+ function Ee(e) {
1237
+ e.lifetime.abort(), we(e), e.busy.value = !1, e.isLoadingHistory.value = !1;
1242
1238
  for (let t of e.timers) clearTimeout(t);
1243
1239
  e.timers.clear();
1244
1240
  }
1245
- function Ee() {
1246
- let e = w();
1247
- e && Ce(e);
1248
- }
1249
1241
  function De() {
1250
- Ee(), s.value = null;
1242
+ let e = w();
1243
+ e && we(e);
1251
1244
  }
1252
1245
  function Oe() {
1246
+ De(), s.value = null;
1247
+ }
1248
+ function ke() {
1253
1249
  if (l) return;
1254
1250
  p?.();
1255
1251
  let e = f === 0, t = () => o(n.content, () => {
@@ -1261,12 +1257,12 @@ function ti(e) {
1261
1257
  });
1262
1258
  p = m?.active ? m.run(t) : t();
1263
1259
  }
1264
- Oe();
1260
+ ke();
1265
1261
  let Ae = [() => p?.(), o(() => n.state.isDirty, (e, t) => {
1266
1262
  t === !0 && e === !1 && n.state.isSaving && (N.value = !1);
1267
1263
  }, { flush: "sync" })];
1268
1264
  e.commentsOpen && Ae.push(o(e.commentsOpen, (e) => {
1269
- e && De();
1265
+ e && Oe();
1270
1266
  })), Ae.push(o(() => n.loadVersion?.value ?? g.value, () => {
1271
1267
  if (l) return;
1272
1268
  let e = _.value;
@@ -1274,15 +1270,15 @@ function ti(e) {
1274
1270
  e.committingReload = !1;
1275
1271
  return;
1276
1272
  }
1277
- e && we(e);
1273
+ e && Ee(e);
1278
1274
  let t = g.value, n = t === null ? null : h(t);
1279
- _.value = n, n && s.value === "chat" && ye(n);
1275
+ _.value = n, n && s.value === "chat" && xe(n);
1280
1276
  }, { flush: "sync" }));
1281
1277
  async function je(i, o) {
1282
1278
  let s = b, c = w(), l = t.altText, u = new AbortController(), d = () => u.abort(o?.reason), f = () => u.abort();
1283
1279
  try {
1284
1280
  if (o?.throwIfAborted(), !c || typeof l != "function") throw new Q("This AI feature isn't available.", 403, "feature_unavailable");
1285
- let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = ke(t, p ?? Z(t)), h = Gn(m, i);
1281
+ let t = E(n.content.value), p = n.activeLocale?.value ?? null, m = ge(t, p ?? Z(t)), h = Wn(m, i);
1286
1282
  if (!h) throw new Q("The image is no longer available.", 409, "block_missing");
1287
1283
  o?.addEventListener("abort", d, { once: !0 }), c.lifetime.signal.addEventListener("abort", f, { once: !0 });
1288
1284
  let { url: g, ..._ } = h, v = await H(l({
@@ -1305,10 +1301,10 @@ function ti(e) {
1305
1301
  function Me(e) {
1306
1302
  let t = b, r = w();
1307
1303
  if (!r || e.length === 0) return Promise.resolve();
1308
- let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = ke(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1304
+ let i = n.activeLocale?.value ?? null, a = E(n.content.value), o = ge(a, i ?? Z(a)), s = e.map(({ blockId: e, alt: t, decorative: n, expect: r }) => ({
1309
1305
  op: "updateBlock",
1310
1306
  blockId: e,
1311
- expect: { ...r ?? Wn(o, e) ?? {
1307
+ expect: { ...r ?? Un(o, e) ?? {
1312
1308
  src: null,
1313
1309
  alt: null,
1314
1310
  decorative: null
@@ -1324,8 +1320,8 @@ function ti(e) {
1324
1320
  let n = crypto.randomUUID();
1325
1321
  for (let t = 0; t < s.length; t += 100) {
1326
1322
  V(e);
1327
- let a = oe(s.slice(t, t + 100), n, r, i);
1328
- if (!a.applied) throw new he(a.message, {
1323
+ let a = J(s.slice(t, t + 100), n, r, i);
1324
+ if (!a.applied) throw new ie(a.message, {
1329
1325
  code: a.code,
1330
1326
  opIndex: a.opIndex
1331
1327
  });
@@ -1338,13 +1334,13 @@ function ti(e) {
1338
1334
  return {
1339
1335
  capability: {
1340
1336
  isFeatureEnabled: (e) => y.value && C(e),
1341
- open: be,
1342
- startImport: Se,
1337
+ open: Se,
1338
+ startImport: Ce,
1343
1339
  highlightOf: (e) => _.value?.highlights.value.get(e) ?? null
1344
1340
  },
1345
1341
  panel: s,
1346
- open: be,
1347
- close: De,
1342
+ open: Se,
1343
+ close: Oe,
1348
1344
  has: C,
1349
1345
  templateId: g,
1350
1346
  sessionIdentity: P(() => _.value),
@@ -1365,14 +1361,14 @@ function ti(e) {
1365
1361
  failedPrompt: ee,
1366
1362
  failedAttachments: F,
1367
1363
  importQueue: I,
1368
- startImport: Se,
1364
+ startImport: Ce,
1369
1365
  isTemplateEmpty: k,
1370
1366
  send: (e, n = []) => {
1371
1367
  let r = t.chat;
1372
- return typeof r == "function" ? ue("chat", e, (t, i, a) => r({
1368
+ return typeof r == "function" ? pe("chat", e, (t, i, a) => r({
1373
1369
  ...t,
1374
1370
  message: e,
1375
- selectedBlockId: ie(),
1371
+ selectedBlockId: se(),
1376
1372
  attachments: n.map((e) => ({
1377
1373
  file: e,
1378
1374
  name: e.name,
@@ -1387,7 +1383,7 @@ function ti(e) {
1387
1383
  },
1388
1384
  fix: (e) => {
1389
1385
  let n = t.fixFinding;
1390
- return typeof n == "function" ? ue("fix", `Fix: ${e.message}`, (t, r, i) => n({
1386
+ return typeof n == "function" ? pe("fix", `Fix: ${e.message}`, (t, r, i) => n({
1391
1387
  ...t,
1392
1388
  finding: e
1393
1389
  }, r, i)) : Promise.resolve({
@@ -1397,10 +1393,10 @@ function ti(e) {
1397
1393
  failed: !0
1398
1394
  });
1399
1395
  },
1400
- stop: Ee,
1401
- newChat: ve,
1402
- undoMessage: (e) => de(e, "undo"),
1403
- redoMessage: (e) => de(e, "redo"),
1396
+ stop: De,
1397
+ newChat: be,
1398
+ undoMessage: (e) => me(e, "undo"),
1399
+ redoMessage: (e) => me(e, "redo"),
1404
1400
  rewrite: (e, n, r) => {
1405
1401
  let i = b, a = w(), o = t.rewrite;
1406
1402
  return !a || typeof o != "function" ? Promise.reject(/* @__PURE__ */ Error("Rewrite isn't available.")) : R("read", a, async (t) => {
@@ -1409,7 +1405,7 @@ function ti(e) {
1409
1405
  try {
1410
1406
  r.throwIfAborted(), V(t), S(i);
1411
1407
  let s = await H(o({
1412
- ...re(a.id),
1408
+ ...q(a.id),
1413
1409
  ...e
1414
1410
  }, { onText: (e) => {
1415
1411
  V(t), S(i), n(e);
@@ -1430,61 +1426,61 @@ function ti(e) {
1430
1426
  if (l) return;
1431
1427
  l = !0;
1432
1428
  let e = _.value;
1433
- e && we(e), _.value = null, x();
1429
+ e && Ee(e), _.value = null, x();
1434
1430
  for (let e of Ae) e();
1435
1431
  Ae.length = 0;
1436
1432
  }
1437
1433
  };
1438
1434
  }
1439
1435
  // src/utils/aiMergeTags.ts
1440
- var ni = {
1436
+ var $r = {
1441
1437
  tags: 500,
1442
1438
  value: 200,
1443
1439
  label: 100,
1444
1440
  group: 100,
1445
1441
  description: 200
1446
1442
  };
1447
- function ri(e, t) {
1443
+ function ei(e, t) {
1448
1444
  let n = Array.from(e);
1449
1445
  return n.length > t ? n.slice(0, t).join("") : e;
1450
1446
  }
1451
- function ii(e) {
1452
- return ye(e) ?? "custom";
1447
+ function ti(e) {
1448
+ return J(e) ?? "custom";
1453
1449
  }
1454
- function ai(e, t) {
1450
+ function ni(e, t) {
1455
1451
  let n = [];
1456
1452
  for (let t of e) {
1457
- if (n.length === ni.tags) break;
1453
+ if (n.length === $r.tags) break;
1458
1454
  let e = typeof t?.value == "string" ? t.value : "";
1459
- e === "" || Array.from(e).length > ni.value || n.push({
1455
+ e === "" || Array.from(e).length > $r.value || n.push({
1460
1456
  value: e,
1461
- label: ri(typeof t.label == "string" && t.label !== "" ? t.label : e, ni.label),
1462
- ...typeof t.group == "string" && t.group !== "" ? { group: ri(t.group, ni.group) } : {},
1463
- ...typeof t.description == "string" && t.description !== "" ? { description: ri(t.description, ni.description) } : {}
1457
+ label: ei(typeof t.label == "string" && t.label !== "" ? t.label : e, $r.label),
1458
+ ...typeof t.group == "string" && t.group !== "" ? { group: ei(t.group, $r.group) } : {},
1459
+ ...typeof t.description == "string" && t.description !== "" ? { description: ei(t.description, $r.description) } : {}
1464
1460
  });
1465
1461
  }
1466
1462
  return {
1467
- syntax: ii(t),
1463
+ syntax: ti(t),
1468
1464
  tags: n
1469
1465
  };
1470
1466
  }
1471
1467
  // src/composables/useMediaFeature.ts
1472
- function oi(e) {
1468
+ function ri(e) {
1473
1469
  return e instanceof Error ? e : Error(String(e));
1474
1470
  }
1475
- function si(e, t, n) {
1471
+ function ii(e, t, n) {
1476
1472
  let r = e.maxFileSize ?? Infinity;
1477
1473
  if (t.size > r) return /* @__PURE__ */ Error(`Image is too large (${t.size} bytes). Maximum allowed is ${r} bytes.`);
1478
1474
  let i = e.mimeTypes;
1479
1475
  return !i || (n && n.length > 0 ? n : Object.keys(i)).some((e) => i[e]?.includes(t.type) ?? !1) ? null : /* @__PURE__ */ Error(`Unsupported image type: ${t.type || "unknown"}.`);
1480
1476
  }
1481
- function ci(e) {
1477
+ function ai(e) {
1482
1478
  let { provider: t, onRequestMedia: n, getTemplateId: r, onError: i } = e, a = z(!1), o = z(void 0), s = P(() => r?.()), c = P(() => !!n || typeof t?.create == "function"), l = null;
1483
1479
  function u(e) {
1484
1480
  a.value = !1, l?.(e), l = null;
1485
1481
  }
1486
1482
  function d(e) {
1487
- u(li(e));
1483
+ u(oi(e));
1488
1484
  }
1489
1485
  function f() {
1490
1486
  u(null);
@@ -1497,7 +1493,7 @@ function ci(e) {
1497
1493
  if (!t) return null;
1498
1494
  if (e?.files?.length) {
1499
1495
  if (typeof t.create != "function") return null;
1500
- let n = e.files[0], a = si(t, n, e.accept);
1496
+ let n = e.files[0], a = ii(t, n, e.accept);
1501
1497
  if (a) return i?.(a), null;
1502
1498
  let o = r?.();
1503
1499
  try {
@@ -1508,11 +1504,11 @@ function ci(e) {
1508
1504
  try {
1509
1505
  t.onCreated?.(e);
1510
1506
  } catch (e) {
1511
- i?.(oi(e));
1507
+ i?.(ri(e));
1512
1508
  }
1513
- return li(e);
1509
+ return oi(e);
1514
1510
  } catch (e) {
1515
- return i?.(oi(e)), null;
1511
+ return i?.(ri(e)), null;
1516
1512
  }
1517
1513
  }
1518
1514
  return l &&= (l(null), null), o.value = e?.accept, a.value = !0, new Promise((e) => {
@@ -1528,8 +1524,8 @@ function ci(e) {
1528
1524
  onError: i
1529
1525
  };
1530
1526
  }
1531
- function li(e) {
1532
- let t = ie(e.width, e.height);
1527
+ function oi(e) {
1528
+ let t = Ie(e.width, e.height);
1533
1529
  return {
1534
1530
  url: e.url,
1535
1531
  alt: e.alt,
@@ -1540,8 +1536,8 @@ function li(e) {
1540
1536
  };
1541
1537
  }
1542
1538
  // src/composables/useSavedBlocksFeature.ts
1543
- function ui(e) {
1544
- let { provider: t, editor: n } = e, r = se({
1539
+ function si(e) {
1540
+ let { provider: t, editor: n } = e, r = je({
1545
1541
  provider: t,
1546
1542
  onError: e.onError
1547
1543
  }), i = z(!1), a = z(!1), c = z(!1), l = z(/* @__PURE__ */ new Set()), u = P(() => c.value), d = P(() => l.value.size);
@@ -1576,7 +1572,7 @@ function ui(e) {
1576
1572
  }
1577
1573
  function b(e, t) {
1578
1574
  for (let r = 0; r < e.content.length; r++) {
1579
- let i = Ie(e.content[r]), a = t === void 0 ? void 0 : t + r;
1575
+ let i = Ce(e.content[r]), a = t === void 0 ? void 0 : t + r;
1580
1576
  n.addBlock(i, void 0, void 0, a);
1581
1577
  }
1582
1578
  a.value = !1;
@@ -1585,7 +1581,7 @@ function ui(e) {
1585
1581
  r.load().catch(() => {});
1586
1582
  }
1587
1583
  let S = P(() => r.savedBlocks.value.length), C = P(() => e.isAvailable?.() ?? !0);
1588
- return s(xt, r), {
1584
+ return s(Ct, r), {
1589
1585
  headless: r,
1590
1586
  isPicking: u,
1591
1587
  pickedIds: l,
@@ -1621,11 +1617,11 @@ function ui(e) {
1621
1617
  };
1622
1618
  }
1623
1619
  // src/composables/useTemplatesFeature.ts
1624
- var di = 3e3;
1625
- function fi(e) {
1626
- let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } = rr(() => {
1620
+ var ci = 3e3;
1621
+ function li(e) {
1622
+ let { provider: t, editor: n } = e, r = z("idle"), i = z(""), { start: a, stop: o } = tr(() => {
1627
1623
  r.value = "idle";
1628
- }, di, { immediate: !1 }), s = P(() => typeof t.create == "function"), c = P(() => typeof t.save == "function"), l = P(() => e.isAvailable?.() ?? !0), u = P(() => n.state.template?.name), d = P(() => {
1624
+ }, ci, { immediate: !1 }), s = P(() => typeof t.create == "function"), c = P(() => typeof t.save == "function"), l = P(() => e.isAvailable?.() ?? !0), u = P(() => n.state.template?.name), d = P(() => {
1629
1625
  let e = n.state.template;
1630
1626
  return e?.updatedAt ? {
1631
1627
  iso: e.updatedAt,
@@ -1671,25 +1667,17 @@ function fi(e) {
1671
1667
  function x() {
1672
1668
  return !c.value || !f.value || p.value;
1673
1669
  }
1674
- function S(t = "manual") {
1675
- if (x()) return;
1676
- let n = e.getSaveGate?.();
1677
- n ? n.tryRunSave(() => b(t)) : b(t);
1670
+ function S(e = "manual") {
1671
+ x() || b(e);
1678
1672
  }
1679
1673
  function C() {
1680
- if (!c.value || !f.value) return;
1681
- if (p.value) {
1682
- y = !0;
1683
- return;
1684
- }
1685
- let t = e.getSaveGate?.();
1686
- t ? t.runUnlessBlocked(() => b("autosave")) : b("autosave");
1674
+ c.value && f.value && (p.value ? y = !0 : b("autosave"));
1687
1675
  }
1688
1676
  function w(e) {
1689
1677
  let t = e.trim();
1690
1678
  t && t !== n.state.template?.name && (n.setName(t), S("rename"));
1691
1679
  }
1692
- return e.guardUnsavedChanges !== !1 && Xn(window, "beforeunload", (e) => {
1680
+ return e.guardUnsavedChanges !== !1 && Yn(window, "beforeunload", (e) => {
1693
1681
  n.state.isDirty && (e.preventDefault(), e.returnValue = "");
1694
1682
  }), {
1695
1683
  save: g,
@@ -1723,15 +1711,15 @@ function fi(e) {
1723
1711
  };
1724
1712
  }
1725
1713
  // src/utils/toMjml.ts
1726
- async function pi() {
1714
+ async function ui() {
1727
1715
  try {
1728
- return await import("./chunks/src-1MSPRtI8.js");
1716
+ return await import("./chunks/src-9e0wFfHH.js");
1729
1717
  } catch {
1730
1718
  return null;
1731
1719
  }
1732
1720
  }
1733
- async function mi(e, t) {
1734
- let n = await pi();
1721
+ async function di(e, t) {
1722
+ let n = await ui();
1735
1723
  if (!n) throw Error("[Templatical] toMjml() requires the @templatical/renderer package. Please install it.");
1736
1724
  let r = e.getCustomBlockStylesheet, i = e.getFonts?.(), a = e.getLayout?.();
1737
1725
  return n.renderToMjml(e.getContent(), {
@@ -1747,11 +1735,11 @@ async function mi(e, t) {
1747
1735
  });
1748
1736
  }
1749
1737
  // src/composables/useTestEmailFeature.ts
1750
- var hi = 1200;
1751
- function gi(e) {
1738
+ var fi = 1200;
1739
+ function pi(e) {
1752
1740
  return e instanceof Error ? e : Error(String(e));
1753
1741
  }
1754
- function _i(e) {
1742
+ function mi(e) {
1755
1743
  let { provider: t } = e, n = z(!1), r = z(!1), i = z(!1), a = z(null), o = null, s = !1;
1756
1744
  function c() {
1757
1745
  o !== null && (clearTimeout(o), o = null);
@@ -1773,8 +1761,8 @@ function _i(e) {
1773
1761
  if (t.includeMjml && e.renderMjml) try {
1774
1762
  return await e.renderMjml();
1775
1763
  } catch (t) {
1776
- if ((e.usesLocalRenderer?.() ?? !0) && await pi() === null) {
1777
- s || (s = !0, Zn.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
1764
+ if ((e.usesLocalRenderer?.() ?? !0) && await ui() === null) {
1765
+ s || (s = !0, Ae.warn("testEmail.includeMjml is set but @templatical/renderer is not installed — sending the template as JSON only. Install it to receive `payload.mjml`."));
1778
1766
  return;
1779
1767
  }
1780
1768
  throw t;
@@ -1784,7 +1772,7 @@ function _i(e) {
1784
1772
  try {
1785
1773
  t.onSent?.(n);
1786
1774
  } catch (t) {
1787
- e.onError?.(gi(t));
1775
+ e.onError?.(pi(t));
1788
1776
  }
1789
1777
  }
1790
1778
  async function _(n) {
@@ -1800,9 +1788,9 @@ function _i(e) {
1800
1788
  ...r === void 0 ? {} : { mjml: r },
1801
1789
  ...s === void 0 ? {} : { allowedRecipients: s }
1802
1790
  };
1803
- await t.send(a), i.value = !0, o = setTimeout(p, hi), g(a);
1791
+ await t.send(a), i.value = !0, o = setTimeout(p, fi), g(a);
1804
1792
  } catch (t) {
1805
- let n = gi(t);
1793
+ let n = pi(t);
1806
1794
  a.value = {
1807
1795
  kind: "provider",
1808
1796
  message: n.message
@@ -1830,8 +1818,8 @@ function _i(e) {
1830
1818
  };
1831
1819
  }
1832
1820
  // src/composables/useVersionHistoryFeature.ts
1833
- function vi(e) {
1834
- let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = J({
1821
+ function hi(e) {
1822
+ let { provider: t, editor: n, history: r, conditionPreview: i, autoSave: a } = e, o = e.collaboration ?? null, s = Be({
1835
1823
  provider: t,
1836
1824
  getTemplateId: () => n.state.template?.id ?? null,
1837
1825
  onError: e.onError
@@ -1857,7 +1845,7 @@ function vi(e) {
1857
1845
  return;
1858
1846
  }
1859
1847
  let t = await s.resolveContent(e);
1860
- f || (l.value = Te(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
1848
+ f || (l.value = fe(n.content.value), a?.pause(), o?.suspend(), c.value = e, n.setContent(t, !1));
1861
1849
  }
1862
1850
  async function E() {
1863
1851
  c.value && (n.state.isDirty ? u.value = !0 : await A());
@@ -1941,11 +1929,11 @@ function vi(e) {
1941
1929
  };
1942
1930
  }
1943
1931
  // src/types/auto-save.ts
1944
- function yi(e, t) {
1932
+ function gi(e, t) {
1945
1933
  return e ?? t;
1946
1934
  }
1947
1935
  // src/utils/resolveInsertPosition.ts
1948
- function bi(e) {
1936
+ function _i(e) {
1949
1937
  let { blockType: t, selectedBlockId: n, findBlockLocation: r, isBlockLocked: i } = e;
1950
1938
  if (!n) return {};
1951
1939
  let a = r(n);
@@ -1962,8 +1950,8 @@ function bi(e) {
1962
1950
  };
1963
1951
  }
1964
1952
  // src/utils/insertBlockAtSelection.ts
1965
- function xi(e, t) {
1966
- let { targetSectionId: n, columnIndex: r, index: i } = bi({
1953
+ function vi(e, t) {
1954
+ let { targetSectionId: n, columnIndex: r, index: i } = _i({
1967
1955
  blockType: t.type,
1968
1956
  selectedBlockId: e.state.selectedBlockId,
1969
1957
  findBlockLocation: e.findBlockLocation,
@@ -1972,7 +1960,7 @@ function xi(e, t) {
1972
1960
  return e.addBlock(t, n, r, i), e.findBlockLocation(t.id) ? (e.selectBlock(t.id), !0) : !1;
1973
1961
  }
1974
1962
  // src/utils/withCollaborativeSave.ts
1975
- function Si(e, t, n) {
1963
+ function yi(e, t, n) {
1976
1964
  let { save: r, create: i } = e;
1977
1965
  if (typeof r != "function") return e;
1978
1966
  let a = /* @__PURE__ */ new Map(), o = (e) => (a.set(e.id, e.name), e);
@@ -1988,27 +1976,27 @@ function Si(e, t, n) {
1988
1976
  };
1989
1977
  }
1990
1978
  // src/components/Canvas.vue?vue&type=script&setup=true&lang.ts
1991
- var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
1979
+ var bi = ["aria-label"], xi = ["lang", "dir"], Si = {
1992
1980
  key: 0,
1993
1981
  role: "status",
1994
1982
  "aria-busy": "true",
1995
1983
  "data-testid": "preview-resolution-loading",
1996
1984
  class: "tpl:flex tpl:flex-col tpl:gap-3 tpl:p-6"
1997
- }, Ei = { class: "tpl:sr-only" }, Di = {
1985
+ }, Ci = { class: "tpl:sr-only" }, wi = {
1998
1986
  key: 1,
1999
1987
  role: "status",
2000
1988
  "data-testid": "preview-resolution-failed",
2001
1989
  class: "tpl:mx-6 tpl:mt-4 tpl:rounded-md tpl:px-3 tpl:py-2 tpl:text-xs tpl:text-[var(--tpl-text-muted)] tpl:bg-[var(--tpl-bg-hover)]"
2002
- }, Oi = {
1990
+ }, Ti = {
2003
1991
  key: 0,
2004
1992
  class: "tpl-canvas-empty-content tpl:flex tpl:flex-col tpl:items-center"
2005
- }, ki = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Ai = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, ji = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, Mi = {
1993
+ }, Ei = { class: "tpl-canvas-empty-icon tpl:mb-4 tpl:text-[var(--tpl-primary)]" }, Di = { class: "tpl-canvas-empty-title tpl:m-0 tpl:mb-2 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-primary)]" }, Oi = { class: "tpl-canvas-empty-text tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-dim)]" }, ki = {
2006
1994
  key: 0,
2007
1995
  class: "tpl:m-0 tpl:mt-2 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2008
- }, Ni = {
1996
+ }, Ai = {
2009
1997
  key: 1,
2010
1998
  class: "tpl:m-0 tpl:mt-4 tpl:flex tpl:flex-wrap tpl:items-center tpl:justify-center tpl:gap-x-1 tpl:gap-y-0.5 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
2011
- }, Pi = { class: "tpl:relative" }, Fi = /*#__PURE__*/ Be(/* @__PURE__ */ n({
1999
+ }, ji = { class: "tpl:relative" }, Mi = /*#__PURE__*/ He(/* @__PURE__ */ n({
2012
2000
  __name: "Canvas",
2013
2001
  props: {
2014
2002
  viewport: {},
@@ -2020,25 +2008,25 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2020
2008
  emits: ["select-block"],
2021
2009
  setup(n, { emit: r }) {
2022
2010
  let o = {
2023
- section: Mn,
2024
- title: Pn,
2025
- paragraph: An,
2026
- image: Sn,
2027
- button: _n,
2028
- divider: hn,
2029
- spacer: gn,
2030
- html: xn,
2031
- social: kn,
2032
- menu: Dn,
2033
- table: Cn,
2034
- video: jn,
2035
- custom: Fn,
2036
- wrapper: Qn
2037
- }, u = n, d = r, { t: p } = $(), m = Wt(Gt, "Canvas"), { displayBlock: h, settings: g } = ft({
2011
+ section: jn,
2012
+ title: Nn,
2013
+ paragraph: kn,
2014
+ image: xn,
2015
+ button: gn,
2016
+ divider: mn,
2017
+ spacer: hn,
2018
+ html: bn,
2019
+ social: On,
2020
+ menu: En,
2021
+ table: Sn,
2022
+ video: An,
2023
+ custom: Pn,
2024
+ wrapper: Xn
2025
+ }, u = n, d = r, { t: p } = $(), m = Nt(wt, "Canvas"), { displayBlock: h, settings: g } = qt({
2038
2026
  content: P(() => u.content),
2039
2027
  activeLocale: P(() => u.previewMode ? null : m.activeLocale?.value ?? null)
2040
- }), _ = Wt(Tt, "Canvas"), v = f(It, null), x = f(Pt, null), E = f(Ot, {}), D = f(St, null), O = f(_t, null);
2041
- s(Ct, P(() => u.previewMode)), s(Ft, P(() => u.previewMode && (D?.value ?? !1) && !O?.isConfigured)), s(kt, P(() => u.previewMode && (O?.isShowingResolved.value ?? !1)));
2028
+ }), _ = Nt(Gt, "Canvas"), v = f(zt, null), x = f(Mt, null), E = f(Ot, {}), D = f(yt, null), O = f(Bt, null);
2029
+ s(vt, P(() => u.previewMode)), s(Dt, P(() => u.previewMode && (D?.value ?? !1) && !O?.isConfigured)), s(mt, P(() => u.previewMode && (O?.isShowingResolved.value ?? !1)));
2042
2030
  let k = P(() => E.ai?.isFeatureEnabled("chat") ?? !1), M = P(() => k.value && (E.ai?.isFeatureEnabled("chatAttachments") ?? !1)), N = z(null);
2043
2031
  function ee() {
2044
2032
  N.value?.click();
@@ -2047,40 +2035,40 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2047
2035
  let t = e.target, n = Array.from(t.files ?? []);
2048
2036
  t.value = "", n.length && E.ai?.startImport(n);
2049
2037
  }
2050
- let L = f(wt, null), V = P({
2038
+ let L = f(Lt, null), H = P({
2051
2039
  get: () => u.content.blocks,
2052
2040
  set: (e) => {
2053
- u.previewMode || bn(m, e);
2041
+ u.previewMode || yn(m, e);
2054
2042
  }
2055
- }), U = P(() => ce(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => cn(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), K = P(() => Ee(g.value)), q = P(() => V.value.length === 0 && !u.previewMode), J = z(0), re = P(() => q.value && J.value > 0);
2056
- function ie() {
2057
- q.value && (J.value += 1);
2058
- }
2043
+ }), U = P(() => Ve(g.value, u.viewport)), ne = P(() => U.value + 192), W = P(() => ln(g.value, _.resolveFontFamily)), G = P(() => g.value?.locale?.trim() || void 0), re = P(() => pe(g.value)), K = P(() => H.value.length === 0 && !u.previewMode), q = z(0), ie = P(() => K.value && q.value > 0);
2059
2044
  function ae() {
2060
- q.value && (J.value = Math.max(0, J.value - 1));
2045
+ K.value && (q.value += 1);
2046
+ }
2047
+ function oe() {
2048
+ K.value && (q.value = Math.max(0, q.value - 1));
2061
2049
  }
2062
2050
  function se() {
2063
- J.value = 0;
2051
+ q.value = 0;
2064
2052
  }
2065
- function Y(e) {
2053
+ function ce(e) {
2066
2054
  u.previewMode || E.savedBlocks?.isPicking.value || e.target === e.currentTarget && d("select-block", null);
2067
2055
  }
2068
- function le(e) {
2069
- return pn(e, x, o);
2056
+ function J(e) {
2057
+ return fn(e, x, o);
2070
2058
  }
2071
- function ue(e) {
2059
+ function le(e) {
2072
2060
  return E.collaboration?.lockOf(e) != null;
2073
2061
  }
2074
- function de(e) {
2075
- if (u.previewMode || ue(e)) return;
2062
+ function Y(e) {
2063
+ if (u.previewMode || le(e)) return;
2076
2064
  let t = E.savedBlocks;
2077
2065
  t?.isPicking.value ? t.togglePick(e) : d("select-block", e);
2078
2066
  }
2079
2067
  function X(e) {
2080
2068
  return E.savedBlocks?.isPicked(e) ?? !1;
2081
2069
  }
2082
- let fe = P(() => E.savedBlocks?.isPicking.value === !0);
2083
- function pe(e, t) {
2070
+ let ue = P(() => E.savedBlocks?.isPicking.value === !0);
2071
+ function de(e, t) {
2084
2072
  u.previewMode || e.type !== "custom" || m.updateBlock(e.id, {
2085
2073
  fieldValues: t.fieldValues,
2086
2074
  dataSourceFetched: t.dataSourceFetched
@@ -2093,7 +2081,7 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2093
2081
  maxWidth: "calc(100% - 4 * var(--tpl-base-size))",
2094
2082
  minWidth: "min-content",
2095
2083
  boxShadow: n.darkMode ? "none" : "var(--tpl-shadow-xl)",
2096
- transition: S(oe)
2084
+ transition: S(Re)
2097
2085
  })
2098
2086
  }, [A("div", {
2099
2087
  class: "tpl-canvas-bg tpl:absolute tpl:inset-0 tpl:rounded-lg tpl:pointer-events-none",
@@ -2109,8 +2097,8 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2109
2097
  class: "tpl-canvas-wrapper tpl:relative",
2110
2098
  style: F({
2111
2099
  width: `${U.value}px`,
2112
- [S(In)]: `${U.value}px`,
2113
- transition: S(oe)
2100
+ [S(Fn)]: `${U.value}px`,
2101
+ transition: S(Re)
2114
2102
  })
2115
2103
  }, [A("div", {
2116
2104
  class: C(["tpl-canvas tpl:relative tpl:rounded-lg", {
@@ -2118,16 +2106,16 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2118
2106
  "tpl-preview-mode": n.previewMode
2119
2107
  }]),
2120
2108
  lang: G.value,
2121
- dir: K.value,
2109
+ dir: re.value,
2122
2110
  style: F(W.value),
2123
- onClick: Y
2124
- }, [S(O)?.isInitialResolve.value ? (i(), y("div", Ti, [A("span", Ei, j(S(p).previewResolution.resolving), 1), (i(), y(B, null, l(3, (e) => A("div", {
2111
+ onClick: ce
2112
+ }, [S(O)?.isInitialResolve.value ? (i(), y("div", Si, [A("span", Ci, j(S(p).previewResolution.resolving), 1), (i(), y(B, null, l(3, (e) => A("div", {
2125
2113
  key: e,
2126
2114
  "aria-hidden": "true",
2127
2115
  class: "tpl-pulse tpl:h-16 tpl:rounded-md tpl:bg-[var(--tpl-bg-hover)]"
2128
- })), 64))])) : S(O)?.hasFailed.value ? (i(), y("p", Di, j(S(p).previewResolution.failed), 1)) : w("", !0), c(H(S(R), {
2129
- modelValue: V.value,
2130
- "onUpdate:modelValue": o[1] ||= (e) => V.value = e,
2116
+ })), 64))])) : S(O)?.hasFailed.value ? (i(), y("p", wi, j(S(p).previewResolution.failed), 1)) : w("", !0), c(V(S(R), {
2117
+ modelValue: H.value,
2118
+ "onUpdate:modelValue": o[1] ||= (e) => H.value = e,
2131
2119
  group: "blocks",
2132
2120
  animation: 150,
2133
2121
  "ghost-class": "tpl-ghost",
@@ -2140,44 +2128,44 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2140
2128
  "force-fallback": !0,
2141
2129
  class: C([
2142
2130
  "tpl-canvas-blocks",
2143
- q.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors" : "",
2144
- q.value && re.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
2145
- q.value && !re.value ? "tpl:border-[var(--tpl-primary)]" : ""
2131
+ K.value ? "tpl-canvas-empty tpl:m-6 tpl:flex tpl:min-h-[400px] tpl:flex-col tpl:items-center tpl:justify-center tpl:rounded-xl tpl:border-2 tpl:border-dashed tpl:px-10 tpl:py-12 tpl:text-center tpl:bg-[var(--tpl-bg-elevated)] tpl:font-[var(--tpl-font-family)] tpl:transition-colors" : "",
2132
+ K.value && ie.value ? "tpl-canvas-empty--drag-over tpl:border-[var(--tpl-primary-hover)] tpl:bg-[var(--tpl-primary-light)]" : "",
2133
+ K.value && !ie.value ? "tpl:border-[var(--tpl-primary)]" : ""
2146
2134
  ]),
2147
- onUpdate: o[2] ||= (e) => !n.previewMode && S(bn)(S(m), V.value, void 0, 0, e),
2148
- onDragenter: ie,
2149
- onDragleave: ae,
2135
+ onUpdate: o[2] ||= (e) => !n.previewMode && S(yn)(S(m), H.value, void 0, 0, e),
2136
+ onDragenter: ae,
2137
+ onDragleave: oe,
2150
2138
  onDrop: se
2151
2139
  }, {
2152
- default: a(() => [q.value ? (i(), y("div", Oi, [
2153
- A("div", ki, [H(S(Ke), {
2140
+ default: a(() => [K.value ? (i(), y("div", Ti, [
2141
+ A("div", Ei, [V(S(Je), {
2154
2142
  size: 48,
2155
2143
  "stroke-width": 1
2156
2144
  })]),
2157
- A("p", Ai, j(S(p).canvas.noBlocks), 1),
2158
- A("p", ji, j(S(p).canvas.dragHint), 1),
2159
- k.value ? (i(), y("p", Mi, [
2145
+ A("p", Di, j(S(p).canvas.noBlocks), 1),
2146
+ A("p", Oi, j(S(p).canvas.dragHint), 1),
2147
+ k.value ? (i(), y("p", ki, [
2160
2148
  b(j(S(p).ai.canvas.chatHint) + " ", 1),
2161
2149
  A("button", {
2162
2150
  type: "button",
2163
2151
  "data-testid": "canvas-ai-chat",
2164
2152
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
2165
2153
  onClick: o[0] ||= (e) => S(E).ai?.open("chat")
2166
- }, [H(S(We), {
2154
+ }, [V(S(Ke), {
2167
2155
  size: 14,
2168
2156
  "stroke-width": 2,
2169
2157
  "aria-hidden": "true"
2170
2158
  }), b(" " + j(S(p).ai.menu.chat), 1)]),
2171
2159
  b(" " + j(S(p).ai.canvas.chatHintSuffix), 1)
2172
2160
  ])) : w("", !0),
2173
- M.value ? (i(), y("p", Ni, [
2161
+ M.value ? (i(), y("p", Ai, [
2174
2162
  b(j(S(p).ai.canvas.importHint) + " ", 1),
2175
2163
  A("button", {
2176
2164
  type: "button",
2177
2165
  "data-testid": "canvas-ai-import",
2178
2166
  class: "tpl:inline-flex tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:whitespace-nowrap tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-sm tpl:font-semibold tpl:transition-colors tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
2179
2167
  onClick: ee
2180
- }, [H(S(ut), {
2168
+ }, [V(S(ft), {
2181
2169
  size: 14,
2182
2170
  "stroke-width": 2,
2183
2171
  "aria-hidden": "true"
@@ -2192,26 +2180,26 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2192
2180
  onChange: I
2193
2181
  }, null, 544)
2194
2182
  ])) : w("", !0)
2195
- ])) : w("", !0), (i(!0), y(B, null, l(V.value, (r) => c((i(), y("div", {
2183
+ ])) : w("", !0), (i(!0), y(B, null, l(H.value, (r) => c((i(), y("div", {
2196
2184
  key: r.id,
2197
2185
  class: "tpl-block-item"
2198
- }, [A("div", Pi, [r.type === "wrapper" ? (i(), T(t(le(r)), {
2186
+ }, [A("div", ji, [r.type === "wrapper" ? (i(), T(t(J(r)), {
2199
2187
  key: 0,
2200
2188
  block: r,
2201
2189
  viewport: n.viewport
2202
- }, null, 8, ["block", "viewport"])) : (i(), T(yn, {
2190
+ }, null, 8, ["block", "viewport"])) : (i(), T(vn, {
2203
2191
  key: 1,
2204
2192
  block: r,
2205
2193
  "display-block": S(h)(r),
2206
- "is-selected": !n.previewMode && !fe.value && n.selectedBlockId === r.id && !ue(r.id),
2194
+ "is-selected": !n.previewMode && !ue.value && n.selectedBlockId === r.id && !le(r.id),
2207
2195
  picked: X(r.id),
2208
2196
  viewport: n.viewport,
2209
2197
  "preview-mode": n.previewMode,
2210
- onSelect: (e) => de(r.id)
2198
+ onSelect: (e) => Y(r.id)
2211
2199
  }, {
2212
- default: a(() => [(i(), T(t(le(r)), e({ block: S(h)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2200
+ default: a(() => [(i(), T(t(J(r)), e({ block: S(h)(r) }, { ref_for: !0 }, r.type === "section" ? { sourceBlock: r } : {}, {
2213
2201
  viewport: n.viewport,
2214
- onFetchData: (e) => pe(r, e),
2202
+ onFetchData: (e) => de(r, e),
2215
2203
  onUpdate: (e) => !n.previewMode && S(m).updateBlock(r.id, e)
2216
2204
  }), null, 16, [
2217
2205
  "block",
@@ -2234,9 +2222,9 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2234
2222
  "modelValue",
2235
2223
  "disabled",
2236
2224
  "class"
2237
- ]), [[te, !S(O)?.isInitialResolve.value]])], 14, wi)], 12, Ci)], 4));
2225
+ ]), [[te, !S(O)?.isInitialResolve.value]])], 14, xi)], 12, bi)], 4));
2238
2226
  }
2239
- }), [["__scopeId", "data-v-f91fe466"]]), Ii = n({
2227
+ }), [["__scopeId", "data-v-1ff49ed3"]]), Ni = n({
2240
2228
  name: "CustomBlockStylesheets",
2241
2229
  setup() {
2242
2230
  let e = f(At, null);
@@ -2248,7 +2236,7 @@ var Ci = ["aria-label"], wi = ["lang", "dir"], Ti = {
2248
2236
  }
2249
2237
  });
2250
2238
  // src/utils/resolvePaletteBlocks.ts
2251
- function Li(e, t) {
2239
+ function Pi(e, t) {
2252
2240
  if (!t || t.length === 0) return {
2253
2241
  items: e,
2254
2242
  unknown: []
@@ -2266,24 +2254,24 @@ function Li(e, t) {
2266
2254
  };
2267
2255
  }
2268
2256
  // src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
2269
- var Ri = ["aria-label"], zi = {
2257
+ var Fi = ["aria-label"], Ii = {
2270
2258
  key: 0,
2271
2259
  class: "tpl:border-b tpl:px-1 tpl:pb-1 tpl:border-[var(--tpl-border)]"
2272
- }, Bi = ["aria-label"], Vi = {
2260
+ }, Li = ["aria-label"], Ri = {
2273
2261
  key: 0,
2274
2262
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
2275
- }, Hi = [
2263
+ }, zi = [
2276
2264
  "data-palette-type",
2277
2265
  "aria-label",
2278
2266
  "onClick",
2279
2267
  "onKeydown"
2280
- ], Ui = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Wi = {
2268
+ ], Bi = { class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:transition-transform tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:scale-105" }, Vi = {
2281
2269
  key: 0,
2282
2270
  class: "tpl:truncate tpl:text-sm tpl:font-medium"
2283
- }, Gi = 4, Ki = /* @__PURE__ */ n({
2271
+ }, Hi = 4, Ui = /* @__PURE__ */ n({
2284
2272
  __name: "Sidebar",
2285
2273
  setup(e) {
2286
- let { t: n, format: r } = $(), s = f(jt, []), c = f(vt, void 0), u = f(Et, void 0), d = f(Gt, null), p = Yn(), h = f(Ot, {}), g = P(() => h.savedBlocks?.isAvailable.value === !0), _ = z(!1), v = z(!1), b = z(null), x = !1, C = 0;
2274
+ let { t: n, format: r } = $(), s = f(Pt, []), c = f(_t, void 0), u = f(Et, void 0), d = f(wt, null), p = Jn(), h = f(Ot, {}), g = P(() => h.savedBlocks?.isAvailable.value === !0), _ = z(!1), v = z(!1), b = z(null), x = !1, C = 0;
2287
2275
  m(() => {
2288
2276
  window.clearTimeout(C);
2289
2277
  });
@@ -2324,7 +2312,7 @@ var Ri = ["aria-label"], zi = {
2324
2312
  }
2325
2313
  let L = [
2326
2314
  "section",
2327
- vn,
2315
+ _n,
2328
2316
  "image",
2329
2317
  "title",
2330
2318
  "paragraph",
@@ -2336,41 +2324,35 @@ var Ri = ["aria-label"], zi = {
2336
2324
  "table",
2337
2325
  "spacer",
2338
2326
  "html"
2339
- ], te = P(() => {
2340
- let e = L.map((e) => ({
2341
- type: e,
2342
- label: ae(e, n)
2343
- }));
2344
- return h.plan && e.splice(-1, 0, {
2345
- type: "countdown",
2346
- label: ae("countdown", n)
2347
- }), e;
2348
- }), V = P(() => s.map((e) => ({
2327
+ ], te = P(() => L.map((e) => ({
2328
+ type: e,
2329
+ label: Le(e, n)
2330
+ }))), H = P(() => s.map((e) => ({
2349
2331
  type: `custom:${e.type}`,
2350
2332
  label: e.name,
2351
2333
  isCustom: !0,
2352
2334
  icon: e.icon
2353
- }))), U = P(() => [...te.value, ...V.value]), ne = P(() => Li(U.value, c)), W = P(() => ne.value.items), G = /* @__PURE__ */ new Set();
2335
+ }))), U = P(() => [...te.value, ...H.value]), ne = P(() => Pi(U.value, c)), W = P(() => ne.value.items), G = /* @__PURE__ */ new Set();
2354
2336
  o(() => ne.value.unknown, (e) => {
2355
- for (let t of e) G.has(t) || (G.add(t), Zn.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
2337
+ for (let t of e) G.has(t) || (G.add(t), Ae.warn(`config.paletteBlocks: "${t}" is not a built-in or registered custom block (use the "custom:" prefix for custom blocks) — skipping it in the palette.`));
2356
2338
  }, { immediate: !0 });
2357
- function K(e) {
2339
+ function re(e) {
2358
2340
  if (e.isCustom) {
2359
2341
  let t = e.type.replace("custom:", ""), n = s.find((e) => e.type === t);
2360
- if (n) return ve(n);
2342
+ if (n) return se(n);
2361
2343
  }
2362
- return e.type === "hero" ? En(u?.value, n.blockDefaults.paragraph) : Le(e.type, u?.value);
2344
+ return e.type === "hero" ? Tn(u?.value, n.blockDefaults.paragraph) : we(e.type, u?.value);
2363
2345
  }
2364
- function q(e) {
2346
+ function K(e) {
2365
2347
  if (!d) return;
2366
- let t = K(e);
2367
- xi(d, t) && p(t.id);
2348
+ let t = re(e);
2349
+ vi(d, t) && p(t.id);
2368
2350
  }
2369
- function J(e) {
2370
- x || q(e);
2351
+ function q(e) {
2352
+ x || K(e);
2371
2353
  }
2372
- function re(e, t) {
2373
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), q(t));
2354
+ function ie(e, t) {
2355
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), K(t));
2374
2356
  }
2375
2357
  return (e, o) => (i(), y("aside", {
2376
2358
  ref_key: "railEl",
@@ -2388,28 +2370,28 @@ var Ri = ["aria-label"], zi = {
2388
2370
  onMouseleave: D,
2389
2371
  onFocusin: o[2] ||= (e) => _.value = !0,
2390
2372
  onFocusout: N
2391
- }, [g.value ? (i(), y("div", zi, [A("button", {
2373
+ }, [g.value ? (i(), y("div", Ii, [A("button", {
2392
2374
  type: "button",
2393
2375
  "aria-label": S(n).sidebarNav.browseSavedBlocks,
2394
2376
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)]",
2395
2377
  style: F({ justifyContent: _.value ? "flex-start" : "center" }),
2396
2378
  onClick: o[0] ||= (e) => S(h).savedBlocks?.openBrowser()
2397
- }, [H(S(tt), {
2379
+ }, [V(S(rt), {
2398
2380
  size: 20,
2399
2381
  "stroke-width": 1.5,
2400
2382
  class: "tpl:shrink-0"
2401
- }), _.value ? (i(), y("span", Vi, j(S(n).savedBlocks.title), 1)) : w("", !0)], 12, Bi)])) : w("", !0), H(S(R), {
2383
+ }), _.value ? (i(), y("span", Ri, j(S(n).savedBlocks.title), 1)) : w("", !0)], 12, Li)])) : w("", !0), V(S(R), {
2402
2384
  "model-value": W.value,
2403
2385
  group: {
2404
2386
  name: "blocks",
2405
2387
  pull: "clone",
2406
2388
  put: !1
2407
2389
  },
2408
- clone: K,
2390
+ clone: re,
2409
2391
  sort: !1,
2410
2392
  animation: 150,
2411
2393
  "force-fallback": !0,
2412
- "fallback-tolerance": Gi,
2394
+ "fallback-tolerance": Hi,
2413
2395
  class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl:gap-0.5 tpl:overflow-y-auto tpl:p-1",
2414
2396
  onChoose: O,
2415
2397
  onStart: M,
@@ -2423,60 +2405,60 @@ var Ri = ["aria-label"], zi = {
2423
2405
  "aria-label": S(r)(S(n).sidebarNav.insertBlock, { block: e.label }),
2424
2406
  class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:bg-[var(--tpl-primary-light)] tpl:hover:text-[var(--tpl-primary)] tpl:active:cursor-grabbing",
2425
2407
  style: F({ justifyContent: _.value ? "flex-start" : "center" }),
2426
- onClick: (t) => J(e),
2427
- onKeydown: (t) => re(t, e)
2428
- }, [A("div", Ui, [S($n)[e.type] ? (i(), T(t(S($n)[e.type]), {
2408
+ onClick: (t) => q(e),
2409
+ onKeydown: (t) => ie(t, e)
2410
+ }, [A("div", Bi, [S(Zn)[e.type] ? (i(), T(t(S(Zn)[e.type]), {
2429
2411
  key: 0,
2430
2412
  size: 20,
2431
2413
  "stroke-width": 1.5
2432
- })) : e.isCustom ? (i(), T(Ln, {
2414
+ })) : e.isCustom ? (i(), T(In, {
2433
2415
  key: 1,
2434
2416
  icon: e.icon,
2435
2417
  size: 20
2436
- }, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span", Wi, j(e.label), 1)) : w("", !0)], 44, Hi))), 128))]),
2418
+ }, null, 8, ["icon"])) : w("", !0)]), _.value ? (i(), y("span", Vi, j(e.label), 1)) : w("", !0)], 44, zi))), 128))]),
2437
2419
  _: 1
2438
- }, 8, ["model-value"])], 44, Ri));
2420
+ }, 8, ["model-value"])], 44, Fi));
2439
2421
  }
2440
- }), qi = ["aria-label"], Ji = {
2422
+ }), Wi = ["aria-label"], Gi = {
2441
2423
  role: "tablist",
2442
2424
  class: "tpl:relative tpl:flex tpl:gap-1 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-active)] tpl:p-1.5"
2443
- }, Yi = [
2425
+ }, Ki = [
2444
2426
  "aria-selected",
2445
2427
  "aria-label",
2446
2428
  "title"
2447
- ], Xi = { key: 0 }, Zi = [
2429
+ ], qi = { key: 0 }, Ji = [
2448
2430
  "aria-selected",
2449
2431
  "aria-label",
2450
2432
  "title"
2451
- ], Qi = { key: 0 }, $i = [
2433
+ ], Yi = { key: 0 }, Xi = [
2452
2434
  "aria-selected",
2453
2435
  "aria-label",
2454
2436
  "title"
2455
- ], ea = { key: 0 }, ta = {
2437
+ ], Zi = { key: 0 }, Qi = {
2456
2438
  key: 1,
2457
2439
  class: "tpl:ml-1 tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-1.5 tpl:text-[10px]"
2458
- }, na = {
2440
+ }, $i = {
2459
2441
  key: 0,
2460
2442
  id: "tpl-tabpanel-content",
2461
2443
  role: "tabpanel",
2462
2444
  "aria-labelledby": "tpl-tab-content",
2463
2445
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2464
- }, ra = {
2446
+ }, ea = {
2465
2447
  key: 1,
2466
2448
  class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:px-6 tpl:py-10 tpl:text-center tpl:text-[var(--tpl-text-muted)]"
2467
- }, ia = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, aa = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, oa = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, sa = {
2449
+ }, ta = { class: "tpl:mb-4 tpl:text-[var(--tpl-text-dim)]" }, na = { class: "tpl:m-0 tpl:mb-2 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ra = { class: "tpl:m-0 tpl:text-sm tpl:leading-normal" }, ia = {
2468
2450
  key: 1,
2469
2451
  id: "tpl-tabpanel-settings",
2470
2452
  role: "tabpanel",
2471
2453
  "aria-labelledby": "tpl-tab-settings",
2472
2454
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2473
- }, ca = {
2455
+ }, aa = {
2474
2456
  key: 2,
2475
2457
  id: "tpl-tabpanel-issues",
2476
2458
  role: "tabpanel",
2477
2459
  "aria-labelledby": "tpl-tab-issues",
2478
2460
  class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-y-auto"
2479
- }, la = /* @__PURE__ */ n({
2461
+ }, oa = /* @__PURE__ */ n({
2480
2462
  __name: "RightSidebar",
2481
2463
  props: /*@__PURE__*/ O({
2482
2464
  selectedBlock: {},
@@ -2493,7 +2475,7 @@ var Ri = ["aria-label"], zi = {
2493
2475
  "update-settings"
2494
2476
  ], ["update:tab"]),
2495
2477
  setup(e, { emit: t }) {
2496
- let n = g(() => import("./chunks/Toolbar-BxzyS69X.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-TMFrRV2c.js")), a = g(() => import("./chunks/IssuesPanel-DgxiS3hF.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(Rt, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(Bt, new Set(er)), v = P(() => h.size > 0);
2478
+ let n = g(() => import("./chunks/Toolbar-BnTSuZQb.js").then((e) => e.t)), r = g(() => import("./chunks/TemplateSettings-B8Ch5ps8.js")), a = g(() => import("./chunks/IssuesPanel-DQQo1B1z.js")), s = e, c = t, { t: l } = $(), u = _(e, "tab"), d = f(Wt, null), p = P(() => d !== null && !d.unavailable.value), m = P(() => d?.issues.value.length ?? 0), h = f(It, new Set(Qn)), v = P(() => h.size > 0);
2497
2479
  function b(e) {
2498
2480
  return u.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:text-[var(--tpl-text)]";
2499
2481
  }
@@ -2511,7 +2493,7 @@ var Ri = ["aria-label"], zi = {
2511
2493
  "aria-label": S(l).landmarks.rightSidebar,
2512
2494
  class: C(["tpl-right-sidebar tpl:absolute tpl:top-14 tpl:bottom-0 tpl:z-40 tpl:flex tpl:box-border tpl:w-[320px] tpl:flex-col tpl:bg-[var(--tpl-bg-elevated)] tpl:border-l tpl:border-[var(--tpl-border)]", e.shiftedLeft ? "tpl:right-[360px]" : "tpl:right-0"])
2513
2495
  }, [
2514
- A("div", Ji, [
2496
+ A("div", Gi, [
2515
2497
  A("button", {
2516
2498
  id: "tpl-tab-content",
2517
2499
  role: "tab",
@@ -2522,10 +2504,10 @@ var Ri = ["aria-label"], zi = {
2522
2504
  class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", b("content")]),
2523
2505
  style: F(x("content")),
2524
2506
  onClick: o[0] ||= (e) => u.value = "content"
2525
- }, [H(S(ct), {
2507
+ }, [V(S(ut), {
2526
2508
  size: 14,
2527
2509
  "stroke-width": 2
2528
- }), u.value === "content" ? (i(), y("span", Xi, j(S(l).sidebar.content), 1)) : w("", !0)], 14, Yi),
2510
+ }), u.value === "content" ? (i(), y("span", qi, j(S(l).sidebar.content), 1)) : w("", !0)], 14, Ki),
2529
2511
  v.value ? (i(), y("button", {
2530
2512
  key: 0,
2531
2513
  id: "tpl-tab-settings",
@@ -2537,10 +2519,10 @@ var Ri = ["aria-label"], zi = {
2537
2519
  class: C(["tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)]", b("settings")]),
2538
2520
  style: F(x("settings")),
2539
2521
  onClick: o[1] ||= (e) => u.value = "settings"
2540
- }, [H(S(He), {
2522
+ }, [V(S(We), {
2541
2523
  size: 14,
2542
2524
  "stroke-width": 1.5
2543
- }), u.value === "settings" ? (i(), y("span", Qi, j(S(l).sidebar.settings), 1)) : w("", !0)], 14, Zi)) : w("", !0),
2525
+ }), u.value === "settings" ? (i(), y("span", Yi, j(S(l).sidebar.settings), 1)) : w("", !0)], 14, Ji)) : w("", !0),
2544
2526
  p.value ? (i(), y("button", {
2545
2527
  key: 1,
2546
2528
  id: "tpl-tab-issues",
@@ -2553,69 +2535,69 @@ var Ri = ["aria-label"], zi = {
2553
2535
  style: F(x("issues")),
2554
2536
  onClick: o[2] ||= (e) => u.value = "issues"
2555
2537
  }, [
2556
- H(S(rt), {
2538
+ V(S(at), {
2557
2539
  size: 14,
2558
2540
  "stroke-width": 1.5
2559
2541
  }),
2560
- u.value === "issues" ? (i(), y("span", ea, j(S(l).issues.panelTabLabel), 1)) : w("", !0),
2561
- m.value > 0 ? (i(), y("span", ta, j(m.value), 1)) : w("", !0)
2562
- ], 14, $i)) : w("", !0)
2542
+ u.value === "issues" ? (i(), y("span", Zi, j(S(l).issues.panelTabLabel), 1)) : w("", !0),
2543
+ m.value > 0 ? (i(), y("span", Qi, j(m.value), 1)) : w("", !0)
2544
+ ], 14, Xi)) : w("", !0)
2563
2545
  ]),
2564
- u.value === "content" ? (i(), y("div", na, [e.selectedBlock ? (i(), T(S(n), {
2546
+ u.value === "content" ? (i(), y("div", $i, [e.selectedBlock ? (i(), T(S(n), {
2565
2547
  key: 0,
2566
2548
  block: e.selectedBlock,
2567
2549
  onUpdate: o[3] ||= (e) => c("update-block", e),
2568
2550
  onDelete: o[4] ||= (e) => c("delete-block"),
2569
2551
  onDuplicate: o[5] ||= (e) => c("duplicate-block")
2570
- }, null, 8, ["block"])) : (i(), y("div", ra, [
2571
- A("div", ia, [H(S(it), {
2552
+ }, null, 8, ["block"])) : (i(), y("div", ea, [
2553
+ A("div", ta, [V(S(ot), {
2572
2554
  size: 40,
2573
2555
  "stroke-width": 1.5
2574
2556
  })]),
2575
- A("h3", aa, j(S(l).sidebar.noSelection), 1),
2576
- A("p", oa, j(S(l).sidebar.noSelectionHint), 1)
2557
+ A("h3", na, j(S(l).sidebar.noSelection), 1),
2558
+ A("p", ra, j(S(l).sidebar.noSelectionHint), 1)
2577
2559
  ]))])) : w("", !0),
2578
- u.value === "settings" && v.value ? (i(), y("div", sa, [H(S(r), {
2560
+ u.value === "settings" && v.value ? (i(), y("div", ia, [V(S(r), {
2579
2561
  settings: e.settings,
2580
2562
  onUpdate: o[6] ||= (e) => c("update-settings", e)
2581
2563
  }, null, 8, ["settings"])])) : w("", !0),
2582
- u.value === "issues" && p.value ? (i(), y("div", ca, [H(S(a))])) : w("", !0)
2583
- ], 10, qi));
2564
+ u.value === "issues" && p.value ? (i(), y("div", aa, [V(S(a))])) : w("", !0)
2565
+ ], 10, Wi));
2584
2566
  }
2585
- }), ua = {
2567
+ }), sa = {
2586
2568
  class: "tpl-small-screen-notice tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-6 tpl:py-10 tpl:text-center tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)]",
2587
2569
  style: { "z-index": "10001" },
2588
2570
  role: "status",
2589
2571
  "data-testid": "small-screen-notice"
2590
- }, da = { class: "tpl:text-[var(--tpl-text-dim)]" }, fa = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, pa = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, ma = /* @__PURE__ */ n({
2572
+ }, ca = { class: "tpl:text-[var(--tpl-text-dim)]" }, la = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, ua = { class: "tpl:m-0 tpl:max-w-sm tpl:text-sm tpl:leading-normal" }, da = /* @__PURE__ */ n({
2591
2573
  __name: "SmallScreenNotice",
2592
2574
  setup(e) {
2593
2575
  let { t } = $();
2594
- return (e, n) => (i(), y("div", ua, [
2595
- A("div", da, [H(S(Ve), {
2576
+ return (e, n) => (i(), y("div", sa, [
2577
+ A("div", ca, [V(S(Ue), {
2596
2578
  size: 48,
2597
2579
  "stroke-width": 1.5
2598
2580
  })]),
2599
- A("h2", fa, j(S(t).smallScreen.title), 1),
2600
- A("p", pa, j(S(t).smallScreen.message), 1)
2581
+ A("h2", la, j(S(t).smallScreen.title), 1),
2582
+ A("p", ua, j(S(t).smallScreen.message), 1)
2601
2583
  ]));
2602
2584
  }
2603
- }), ha = {
2585
+ }), fa = {
2604
2586
  class: "tpl:pointer-events-auto tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-tl-lg tpl:p-1",
2605
2587
  style: {
2606
2588
  "background-color": "color-mix(\n in srgb,\n var(--tpl-canvas-bg) 85%,\n transparent\n )",
2607
2589
  "backdrop-filter": "blur(8px)",
2608
2590
  "-webkit-backdrop-filter": "blur(8px)"
2609
2591
  }
2610
- }, ga = /* @__PURE__ */ n({
2592
+ }, pa = /* @__PURE__ */ n({
2611
2593
  __name: "EditorFooter",
2612
2594
  props: { positionClass: {} },
2613
2595
  setup(e) {
2614
2596
  let { t } = $();
2615
- return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", ha, [A("span", null, j(S(t).footer.poweredBy), 1), r[0] ||= U("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
2597
+ return (n, r) => (i(), y("footer", { class: C(["tpl:pointer-events-none tpl:absolute tpl:bottom-0 tpl:z-50 tpl:flex tpl:h-8 tpl:items-center tpl:justify-end tpl:pr-4 tpl:text-[10px] tpl:opacity-90 tpl:transition-all tpl:duration-300 tpl:text-[var(--tpl-text-dim)]", e.positionClass]) }, [A("div", fa, [A("span", null, j(S(t).footer.poweredBy), 1), r[0] ||= H("<a href=\"https://templatical.com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tpl:inline-flex tpl:items-center tpl:gap-1 tpl:font-medium tpl:transition-colors tpl:hover:opacity-80 tpl:text-[var(--tpl-text-muted)]\" style=\"text-decoration:none;\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><rect x=\"10\" y=\"1\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(85% 0.08 55)\" transform=\"rotate(8 19 12)\"></rect><rect x=\"6\" y=\"2\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(77% 0.12 55)\" transform=\"rotate(-4 15 13)\"></rect><rect x=\"2\" y=\"4\" width=\"18\" height=\"22\" rx=\"3\" fill=\"oklch(70% 0.16 55)\"></rect><rect x=\"6\" y=\"9\" width=\"10\" height=\"1.8\" rx=\"0.9\" fill=\"white\" opacity=\"0.9\"></rect><rect x=\"6\" y=\"13.5\" width=\"7\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"17\" width=\"9\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.6\"></rect><rect x=\"6\" y=\"20.5\" width=\"5\" height=\"1.5\" rx=\"0.75\" fill=\"white\" opacity=\"0.4\"></rect></svg> Templatical </a>", 1)])], 2));
2616
2598
  }
2617
- }), _a = (e) => Number.parseFloat(e) || 0;
2618
- function va(e) {
2599
+ }), ma = (e) => Number.parseFloat(e) || 0;
2600
+ function ha(e) {
2619
2601
  let t = (t) => e.centerWidth + 2 * Math.max(e.leftWidth, t) + e.paddingWidth + 2 * e.columnGap + e.borderWidth, n = t(e.rightWidth - (e.statusLabelWidth ?? 0)), r = e.availableWidth < n;
2620
2602
  return {
2621
2603
  compact: r,
@@ -2623,13 +2605,13 @@ function va(e) {
2623
2605
  statusLabel: !r && e.availableWidth >= t(e.rightWidth)
2624
2606
  };
2625
2607
  }
2626
- function ya(e) {
2608
+ function ga(e) {
2627
2609
  let t = e.cloneNode(!1);
2628
2610
  if (e instanceof Element && e.classList.contains("tpl-header-actions")) return t;
2629
- for (let n of e.childNodes) t.appendChild(ya(n));
2611
+ for (let n of e.childNodes) t.appendChild(ga(n));
2630
2612
  return t;
2631
2613
  }
2632
- function ba(e, t, n) {
2614
+ function _a(e, t, n) {
2633
2615
  let r = L(!1), i = L(0), a = L(!1), o = 0, s, c, l, f = !1, p = !0, m = null, h, g = 0, _ = 0, v = [];
2634
2616
  function y() {
2635
2617
  return v.some((e) => {
@@ -2661,7 +2643,7 @@ function ba(e, t, n) {
2661
2643
  let m = u.ownerDocument.createElement("div");
2662
2644
  for (let e of u.attributes) e.name.startsWith("data-") || m.setAttribute(e.name, e.value);
2663
2645
  m.classList.remove("tpl-header"), m.classList.add("tpl-header-measure"), m.setAttribute("aria-hidden", "true"), m.inert = !0;
2664
- for (let e of u.childNodes) e !== h && m.appendChild(ya(e));
2646
+ for (let e of u.childNodes) e !== h && m.appendChild(ga(e));
2665
2647
  let g = m.querySelector("slot[name=\"tpl-header-actions\"], .tpl-header-actions");
2666
2648
  if (g) {
2667
2649
  if (n?.isConnected) {
@@ -2696,19 +2678,19 @@ function ba(e, t, n) {
2696
2678
  }
2697
2679
  e.value.appendChild(m);
2698
2680
  try {
2699
- let e = getComputedStyle(m), t = _.map((e) => e.getBoundingClientRect().width), n = m.querySelector(".tpl-status-label"), c = n ? n.getBoundingClientRect().width + _a(getComputedStyle(n.parentElement).columnGap) : 0, l = {
2681
+ let e = getComputedStyle(m), t = _.map((e) => e.getBoundingClientRect().width), n = m.querySelector(".tpl-status-label"), c = n ? n.getBoundingClientRect().width + ma(getComputedStyle(n.parentElement).columnGap) : 0, l = {
2700
2682
  availableWidth: s,
2701
2683
  leftWidth: t[0],
2702
2684
  centerWidth: t[1],
2703
2685
  rightWidth: t[2],
2704
- paddingWidth: _a(e.paddingLeft || e.paddingInline) + _a(e.paddingRight || e.paddingInline),
2705
- columnGap: _a(e.columnGap),
2706
- borderWidth: _a(e.borderLeftWidth) + _a(e.borderRightWidth)
2707
- }, u = va({
2686
+ paddingWidth: ma(e.paddingLeft || e.paddingInline) + ma(e.paddingRight || e.paddingInline),
2687
+ columnGap: ma(e.columnGap),
2688
+ borderWidth: ma(e.borderLeftWidth) + ma(e.borderRightWidth)
2689
+ }, u = ha({
2708
2690
  ...l,
2709
2691
  statusLabelWidth: c
2710
2692
  });
2711
- i.value = u.fullWidth, r.value = u.compact, a.value = u.statusLabel, o = va(l).fullWidth, p = !1;
2693
+ i.value = u.fullWidth, r.value = u.compact, a.value = u.statusLabel, o = ha(l).fullWidth, p = !1;
2712
2694
  } finally {
2713
2695
  m.remove();
2714
2696
  }
@@ -2781,11 +2763,11 @@ function ba(e, t, n) {
2781
2763
  };
2782
2764
  }
2783
2765
  // src/components/DarkModeToggle.vue?vue&type=script&setup=true&lang.ts
2784
- var xa = [
2766
+ var va = [
2785
2767
  "aria-label",
2786
2768
  "title",
2787
2769
  "aria-pressed"
2788
- ], Sa = /*#__PURE__*/ Be(/* @__PURE__ */ n({
2770
+ ], ya = /*#__PURE__*/ He(/* @__PURE__ */ n({
2789
2771
  __name: "DarkModeToggle",
2790
2772
  props: { darkMode: { type: Boolean } },
2791
2773
  emits: ["change"],
@@ -2801,30 +2783,30 @@ var xa = [
2801
2783
  title: e.darkMode ? S(r).darkMode.disable : S(r).darkMode.enable,
2802
2784
  "aria-pressed": e.darkMode,
2803
2785
  onClick: o[0] ||= (t) => n("change", !e.darkMode)
2804
- }, [H(M, {
2786
+ }, [V(M, {
2805
2787
  "enter-active-class": "tpl-icon-enter-active",
2806
2788
  "leave-active-class": "tpl-icon-leave-active",
2807
2789
  "enter-from-class": "tpl-icon-enter-from",
2808
2790
  "leave-to-class": "tpl-icon-leave-to",
2809
2791
  mode: "out-in"
2810
2792
  }, {
2811
- default: a(() => [e.darkMode ? (i(), T(S(Qe), {
2793
+ default: a(() => [e.darkMode ? (i(), T(S(et), {
2812
2794
  key: "moon",
2813
2795
  size: 18,
2814
2796
  "stroke-width": 1.5
2815
- })) : (i(), T(S(dt), {
2797
+ })) : (i(), T(S(pt), {
2816
2798
  key: "sun",
2817
2799
  size: 18,
2818
2800
  "stroke-width": 1.5
2819
2801
  }))]),
2820
2802
  _: 1
2821
- })], 12, xa));
2803
+ })], 12, va));
2822
2804
  }
2823
- }), [["__scopeId", "data-v-632aa74f"]]), Ca = [
2805
+ }), [["__scopeId", "data-v-632aa74f"]]), ba = [
2824
2806
  "aria-label",
2825
2807
  "title",
2826
2808
  "aria-pressed"
2827
- ], wa = /*#__PURE__*/ Be(/* @__PURE__ */ n({
2809
+ ], xa = /*#__PURE__*/ He(/* @__PURE__ */ n({
2828
2810
  __name: "PreviewToggle",
2829
2811
  props: { previewMode: { type: Boolean } },
2830
2812
  emits: ["change"],
@@ -2840,26 +2822,26 @@ var xa = [
2840
2822
  title: e.previewMode ? S(r).previewMode.disable : S(r).previewMode.enable,
2841
2823
  "aria-pressed": e.previewMode,
2842
2824
  onClick: o[0] ||= (t) => n("change", !e.previewMode)
2843
- }, [H(M, {
2825
+ }, [V(M, {
2844
2826
  "enter-active-class": "tpl-icon-enter-active",
2845
2827
  "leave-active-class": "tpl-icon-leave-active",
2846
2828
  "enter-from-class": "tpl-icon-enter-from",
2847
2829
  "leave-to-class": "tpl-icon-leave-to",
2848
2830
  mode: "out-in"
2849
2831
  }, {
2850
- default: a(() => [e.previewMode ? (i(), T(S(Ge), {
2832
+ default: a(() => [e.previewMode ? (i(), T(S(qe), {
2851
2833
  key: "eye",
2852
2834
  size: 18,
2853
2835
  "stroke-width": 1.5
2854
- })) : (i(), T(S(Xe), {
2836
+ })) : (i(), T(S(Qe), {
2855
2837
  key: "eye-off",
2856
2838
  size: 18,
2857
2839
  "stroke-width": 1.5
2858
2840
  }))]),
2859
2841
  _: 1
2860
- })], 12, Ca));
2842
+ })], 12, ba));
2861
2843
  }
2862
- }), [["__scopeId", "data-v-eef7b2ca"]]), Ta = ["aria-label", "onKeydown"], Ea = ["title", "aria-label"], Da = /* @__PURE__ */ n({
2844
+ }), [["__scopeId", "data-v-eef7b2ca"]]), Sa = ["aria-label", "onKeydown"], Ca = ["title", "aria-label"], wa = /* @__PURE__ */ n({
2863
2845
  __name: "TemplateNameField",
2864
2846
  props: {
2865
2847
  name: {},
@@ -2888,10 +2870,10 @@ var xa = [
2888
2870
  type: "text",
2889
2871
  "data-testid": "template-name-input",
2890
2872
  "aria-label": S(a).header.templateName,
2891
- class: C([S($t), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
2873
+ class: C([S(tn), "tpl:h-8 tpl:max-w-[260px] tpl:text-sm tpl:font-medium"]),
2892
2874
  onKeydown: [x(k(d, ["prevent"]), ["enter"]), x(k(f, ["prevent"]), ["esc"])],
2893
2875
  onBlur: d
2894
- }, null, 42, Ta)), [[ee, s.value]]) : e.editable ? (i(), y("button", {
2876
+ }, null, 42, Sa)), [[ee, s.value]]) : e.editable ? (i(), y("button", {
2895
2877
  key: 1,
2896
2878
  type: "button",
2897
2879
  "data-testid": "template-name",
@@ -2899,48 +2881,48 @@ var xa = [
2899
2881
  "aria-label": S(a).header.rename,
2900
2882
  class: C(["tpl:max-w-[260px] tpl:cursor-pointer tpl:truncate tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-transparent tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:hover:border-[var(--tpl-border)] tpl:hover:bg-[var(--tpl-bg-hover)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }]),
2901
2883
  onClick: u
2902
- }, j(e.name || S(a).header.untitled), 11, Ea)) : (i(), y("span", {
2884
+ }, j(e.name || S(a).header.untitled), 11, Ca)) : (i(), y("span", {
2903
2885
  key: 2,
2904
2886
  "data-testid": "template-name",
2905
2887
  class: C(["tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:py-1 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]", { "tpl:text-[var(--tpl-text-dim)]": !e.name }])
2906
2888
  }, j(e.name || S(a).header.untitled), 3));
2907
2889
  }
2908
- }), Oa = ["title"], ka = /* @__PURE__ */ n({
2890
+ }), Ta = ["title"], Ea = /* @__PURE__ */ n({
2909
2891
  __name: "TemplateTimestamp",
2910
2892
  props: {
2911
2893
  iso: {},
2912
2894
  kind: {}
2913
2895
  },
2914
2896
  setup(e) {
2915
- let t = e, { t: n, format: r } = $(), a = f(Vt, void 0), o = z(0);
2916
- ar(() => {
2897
+ let t = e, { t: n, format: r } = $(), a = f(Rt, void 0), o = z(0);
2898
+ rr(() => {
2917
2899
  o.value += 1;
2918
2900
  }, 6e4);
2919
2901
  let s = P(() => {
2920
- let e = sr(t.iso, n.time, r);
2902
+ let e = ar(t.iso, n.time, r);
2921
2903
  if (e === null) return "";
2922
2904
  let i = e === n.time.justNow;
2923
2905
  return t.kind === "updatedAt" ? i ? n.header.updatedJustNow : r(n.header.updatedAt, { time: e }) : i ? n.header.createdJustNow : r(n.header.createdAt, { time: e });
2924
- }), c = P(() => or(t.iso, a));
2906
+ }), c = P(() => ir(t.iso, a));
2925
2907
  return (e, t) => s.value ? (i(), y("span", {
2926
2908
  key: 0,
2927
2909
  "data-testid": "template-timestamp",
2928
2910
  title: c.value,
2929
2911
  class: "tpl:max-w-[260px] tpl:truncate tpl:px-2 tpl:text-xs tpl:leading-tight tpl:text-[var(--tpl-text-dim)]"
2930
- }, j(s.value), 9, Oa)) : w("", !0);
2912
+ }, j(s.value), 9, Ta)) : w("", !0);
2931
2913
  }
2932
- }), Aa = [
2914
+ }), Da = [
2933
2915
  "aria-live",
2934
2916
  "data-testid",
2935
2917
  "title",
2936
2918
  "data-tooltip"
2937
- ], ja = {
2919
+ ], Oa = {
2938
2920
  key: 2,
2939
2921
  class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]"
2940
- }, Ma = {
2922
+ }, ka = {
2941
2923
  key: 0,
2942
2924
  class: "tpl-status-label"
2943
- }, Na = /* @__PURE__ */ n({
2925
+ }, Aa = /* @__PURE__ */ n({
2944
2926
  __name: "TemplateSaveStatus",
2945
2927
  props: {
2946
2928
  status: {},
@@ -2962,21 +2944,21 @@ var xa = [
2962
2944
  }, [A("span", {
2963
2945
  class: C(["tpl-status-icon tpl:inline-flex tpl:size-3 tpl:shrink-0 tpl:items-center tpl:justify-center", { "tpl:invisible": r.value === "none" }]),
2964
2946
  "aria-hidden": "true"
2965
- }, [r.value === "error" ? (i(), T(S(Je), {
2947
+ }, [r.value === "error" ? (i(), T(S(Xe), {
2966
2948
  key: 0,
2967
2949
  size: 12,
2968
2950
  "stroke-width": 2.5
2969
- })) : r.value === "saved" ? (i(), T(S(et), {
2951
+ })) : r.value === "saved" ? (i(), T(S(nt), {
2970
2952
  key: 1,
2971
2953
  size: 12,
2972
2954
  "stroke-width": 2.5
2973
- })) : r.value === "unsaved" ? (i(), y("span", ja)) : w("", !0)], 2), r.value === "none" ? w("", !0) : (i(), y("span", Ma, j(o.value), 1))], 10, Aa));
2955
+ })) : r.value === "unsaved" ? (i(), y("span", Oa)) : w("", !0)], 2), r.value === "none" ? w("", !0) : (i(), y("span", ka, j(o.value), 1))], 10, Da));
2974
2956
  }
2975
- }), Pa = [
2957
+ }), ja = [
2976
2958
  "aria-pressed",
2977
2959
  "aria-label",
2978
2960
  "title"
2979
- ], Fa = { class: "tpl-header-label" }, Ia = /* @__PURE__ */ n({
2961
+ ], Ma = { class: "tpl-header-label" }, Na = /* @__PURE__ */ n({
2980
2962
  __name: "AiHeaderMenu",
2981
2963
  props: { feature: {} },
2982
2964
  setup(e) {
@@ -2991,39 +2973,39 @@ var xa = [
2991
2973
  "aria-pressed": r.value,
2992
2974
  "aria-label": S(n).ai.menu.chat,
2993
2975
  title: S(n).ai.menu.chat,
2994
- class: C(S(tn)),
2976
+ class: C(S(rn)),
2995
2977
  style: F(r.value ? {
2996
2978
  backgroundColor: "var(--tpl-primary-light)",
2997
2979
  borderColor: "var(--tpl-primary-light)"
2998
2980
  } : void 0),
2999
2981
  onClick: k(a, ["stop"])
3000
- }, [H(S(We), {
2982
+ }, [V(S(Ke), {
3001
2983
  size: 16,
3002
2984
  "stroke-width": 2,
3003
2985
  class: "tpl:text-[var(--tpl-primary-hover)]",
3004
2986
  "aria-hidden": "true"
3005
- }), A("span", Fa, j(S(n).ai.menu.button), 1)], 14, Pa)) : w("", !0);
2987
+ }), A("span", Ma, j(S(n).ai.menu.button), 1)], 14, ja)) : w("", !0);
3006
2988
  }
3007
- }), La = [
2989
+ }), Pa = [
3008
2990
  "data-compact",
3009
2991
  "data-full-width",
3010
2992
  "data-status-label"
3011
- ], Ra = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, za = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Ba = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, Va = [
2993
+ ], Fa = { class: "tpl-header-left tpl:flex tpl:min-w-0 tpl:items-center tpl:gap-2.5" }, Ia = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, La = { class: "tpl-header-right tpl:flex tpl:min-w-0 tpl:items-center tpl:justify-end tpl:gap-3" }, Ra = [
3012
2994
  "aria-label",
3013
2995
  "title",
3014
2996
  "aria-expanded"
3015
- ], Ha = { class: "tpl-header-label" }, Ua = {
2997
+ ], za = { class: "tpl-header-label" }, Ba = {
3016
2998
  key: 0,
3017
2999
  class: "tpl-header-comment-count tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-on-primary)]"
3018
- }, Wa = [
3000
+ }, Va = [
3019
3001
  "aria-label",
3020
3002
  "title",
3021
3003
  "disabled"
3022
- ], Ga = { class: "tpl-header-label" }, Ka = [
3004
+ ], Ha = { class: "tpl-header-label" }, Ua = [
3023
3005
  "aria-label",
3024
3006
  "disabled",
3025
3007
  "title"
3026
- ], qa = { class: "tpl-header-label" }, Ja = /* @__PURE__ */ n({
3008
+ ], Wa = { class: "tpl-header-label" }, Ga = /* @__PURE__ */ n({
3027
3009
  __name: "EditorHeader",
3028
3010
  props: {
3029
3011
  header: {},
@@ -3040,8 +3022,8 @@ var xa = [
3040
3022
  ai: {}
3041
3023
  },
3042
3024
  setup(e) {
3043
- let n = g(() => import("./chunks/VersionHistoryMenu-DTDO48HI.js")), r = g(() => import("./chunks/LanguageMenu-CJp7XdfG.js")), a = g(() => import("./chunks/CollaboratorBar-BSzI8YIU.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, _ = f.header?.darkModeToggle !== !1, v = f.header?.previewToggle !== !1, { compact: b, fullWidth: x, statusLabel: E, invalidateContent: D } = ba(s, c, p), O = p?.getAttribute("slot"), k = null;
3044
- return p && o([b, () => f.core.resolvedTheme.value], ([e, t]) => {
3025
+ let n = g(() => import("./chunks/VersionHistoryMenu-DlPr3twf.js")), r = g(() => import("./chunks/LanguageMenu-2Er64H2b.js")), a = g(() => import("./chunks/CollaboratorBar-bNFuQxxP.js")), s = L(null), c = L(null), l = L(null), f = e, p = f.header?.actions, m = f.header?.viewportToggle !== !1, h = f.header?.darkModeToggle !== !1, _ = f.header?.previewToggle !== !1, { compact: v, fullWidth: b, statusLabel: x, invalidateContent: E } = _a(s, c, p), D = p?.getAttribute("slot"), O = null;
3026
+ return p && o([v, () => f.core.resolvedTheme.value], ([e, t]) => {
3045
3027
  p.setAttribute("data-tpl-compact", String(e)), p.setAttribute("data-tpl-theme", t === "dark" ? "dark" : "light");
3046
3028
  }, {
3047
3029
  immediate: !0,
@@ -3049,9 +3031,9 @@ var xa = [
3049
3031
  }), d(() => {
3050
3032
  if (!p) return;
3051
3033
  let e = f.shadowRoot?.host ?? l.value;
3052
- e && (f.shadowRoot && p.setAttribute("slot", "tpl-header-actions"), e.appendChild(p), k = e, D());
3034
+ e && (f.shadowRoot && p.setAttribute("slot", "tpl-header-actions"), e.appendChild(p), O = e, E());
3053
3035
  }), u(() => {
3054
- p && p.parentElement === k && (p.remove(), f.shadowRoot && (O == null ? p.removeAttribute("slot") : p.setAttribute("slot", O)), k = null);
3036
+ p && p.parentElement === O && (p.remove(), f.shadowRoot && (D == null ? p.removeAttribute("slot") : p.setAttribute("slot", D)), O = null);
3055
3037
  }), (o, u) => (i(), y("div", {
3056
3038
  ref_key: "containerElement",
3057
3039
  ref: s,
@@ -3059,16 +3041,16 @@ var xa = [
3059
3041
  }, [A("header", {
3060
3042
  ref_key: "headerElement",
3061
3043
  ref: c,
3062
- "data-compact": S(b),
3063
- "data-full-width": S(x),
3064
- "data-status-label": S(E),
3044
+ "data-compact": S(v),
3045
+ "data-full-width": S(b),
3046
+ "data-status-label": S(x),
3065
3047
  class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] tpl:items-center tpl:px-4 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:border-b tpl:border-[var(--tpl-border)]"
3066
3048
  }, [
3067
- A("div", Ra, [
3049
+ A("div", Fa, [
3068
3050
  e.templates?.isAvailable.value && e.templates.hasTemplate.value && (e.showTemplateName || e.templates.timestamp.value) ? (i(), y("div", {
3069
3051
  key: 0,
3070
3052
  class: C(["tpl-header-identity tpl:flex tpl:min-w-0 tpl:flex-col tpl:items-start", { "tpl:pb-1.5": e.showTemplateName && e.templates.timestamp.value !== null }])
3071
- }, [e.showTemplateName ? (i(), T(Da, {
3053
+ }, [e.showTemplateName ? (i(), T(wa, {
3072
3054
  key: 0,
3073
3055
  name: e.templates.name.value,
3074
3056
  editable: e.templates.canSave.value,
@@ -3077,7 +3059,7 @@ var xa = [
3077
3059
  "name",
3078
3060
  "editable",
3079
3061
  "onCommit"
3080
- ])) : w("", !0), e.templates.timestamp.value ? (i(), T(ka, {
3062
+ ])) : w("", !0), e.templates.timestamp.value ? (i(), T(Ea, {
3081
3063
  key: 1,
3082
3064
  class: "tpl-header-timestamp",
3083
3065
  iso: e.templates.timestamp.value.iso,
@@ -3106,28 +3088,27 @@ var xa = [
3106
3088
  key: 3,
3107
3089
  people: e.collaboration.people.value,
3108
3090
  connection: e.collaboration.connection.value
3109
- }, null, 8, ["people", "connection"])) : w("", !0),
3110
- h(o.$slots, "left-extras")
3091
+ }, null, 8, ["people", "connection"])) : w("", !0)
3111
3092
  ]),
3112
- A("div", za, [
3113
- m ? (i(), T(tr, {
3093
+ A("div", Ia, [
3094
+ m ? (i(), T($n, {
3114
3095
  key: 0,
3115
3096
  viewport: e.editor.state.viewport,
3116
3097
  onChange: e.editor.setViewport
3117
3098
  }, null, 8, ["viewport", "onChange"])) : w("", !0),
3118
- _ ? (i(), T(Sa, {
3099
+ h ? (i(), T(ya, {
3119
3100
  key: 1,
3120
3101
  "dark-mode": e.editor.state.darkMode,
3121
3102
  onChange: e.editor.setDarkMode
3122
3103
  }, null, 8, ["dark-mode", "onChange"])) : w("", !0),
3123
- v ? (i(), T(wa, {
3104
+ _ ? (i(), T(xa, {
3124
3105
  key: 2,
3125
3106
  "preview-mode": e.editor.state.previewMode,
3126
3107
  onChange: e.editor.setPreviewMode
3127
3108
  }, null, 8, ["preview-mode", "onChange"])) : w("", !0)
3128
3109
  ]),
3129
- A("div", Ba, [
3130
- e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(Na, {
3110
+ A("div", La, [
3111
+ e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), T(Aa, {
3131
3112
  key: 0,
3132
3113
  class: "tpl-header-save-status",
3133
3114
  status: e.templates.status.value,
@@ -3145,25 +3126,24 @@ var xa = [
3145
3126
  "aria-label": e.comments.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.comments.unresolvedCount.value})` : e.core.t.comments.button,
3146
3127
  title: e.core.t.comments.button,
3147
3128
  "aria-expanded": e.comments.isOpen.value,
3148
- class: C(S(tn)),
3129
+ class: C(S(rn)),
3149
3130
  style: F(e.comments.isOpen.value ? {
3150
3131
  backgroundColor: "var(--tpl-primary-light)",
3151
3132
  borderColor: "var(--tpl-primary-light)"
3152
3133
  } : void 0),
3153
3134
  onClick: u[2] ||= (t) => e.comments.toggle()
3154
3135
  }, [
3155
- H(S(st), {
3136
+ V(S(lt), {
3156
3137
  size: 16,
3157
3138
  "stroke-width": 2
3158
3139
  }),
3159
- A("span", Ha, j(e.core.t.comments.button), 1),
3160
- e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span", Ua, j(e.comments.unresolvedCount.value), 1)) : w("", !0)
3161
- ], 14, Va)) : w("", !0),
3162
- e.ai ? (i(), T(Ia, {
3140
+ A("span", za, j(e.core.t.comments.button), 1),
3141
+ e.comments.unresolvedCount.value > 0 && !e.comments.isOpen.value ? (i(), y("span", Ba, j(e.comments.unresolvedCount.value), 1)) : w("", !0)
3142
+ ], 14, Ra)) : w("", !0),
3143
+ e.ai ? (i(), T(Na, {
3163
3144
  key: 2,
3164
3145
  feature: e.ai
3165
3146
  }, null, 8, ["feature"])) : w("", !0),
3166
- h(o.$slots, "right-extras"),
3167
3147
  e.shadowRoot ? (i(), T(t("slot"), {
3168
3148
  key: 3,
3169
3149
  name: "tpl-header-actions"
@@ -3180,64 +3160,64 @@ var xa = [
3180
3160
  "aria-label": e.core.t.testEmail.title,
3181
3161
  title: e.core.t.testEmail.title,
3182
3162
  disabled: e.testEmail.isSending.value,
3183
- class: C(S(tn)),
3163
+ class: C(S(rn)),
3184
3164
  onClick: u[3] ||= (t) => e.testEmail.open()
3185
- }, [e.testEmail.isSending.value ? (i(), T(S(nt), {
3165
+ }, [e.testEmail.isSending.value ? (i(), T(S(it), {
3186
3166
  key: 1,
3187
3167
  class: "tpl-spinner",
3188
3168
  size: 16,
3189
3169
  "stroke-width": 2
3190
- })) : (i(), T(S(at), {
3170
+ })) : (i(), T(S(st), {
3191
3171
  key: 0,
3192
3172
  size: 16,
3193
3173
  "stroke-width": 2
3194
- })), A("span", Ga, j(e.core.t.testEmail.button), 1)], 10, Wa)) : w("", !0),
3174
+ })), A("span", Ha, j(e.core.t.testEmail.button), 1)], 10, Va)) : w("", !0),
3195
3175
  e.templates?.isAvailable.value && e.templates.canSave.value ? (i(), y("button", {
3196
3176
  key: 6,
3197
3177
  type: "button",
3198
3178
  "data-testid": "template-save",
3199
- class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ? nn : tn)),
3179
+ class: C(S(e.editor.state.isDirty && e.templates.hasTemplate.value ? an : rn)),
3200
3180
  style: F(e.editor.state.isDirty && e.templates.hasTemplate.value ? { boxShadow: "var(--tpl-shadow-sm)" } : void 0),
3201
3181
  "aria-label": e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save,
3202
3182
  disabled: e.templates.isSaving.value || !e.templates.hasTemplate.value,
3203
3183
  title: e.templates.hasTemplate.value ? e.core.t.header.save : e.core.t.header.saveNoTemplate,
3204
3184
  onClick: u[4] ||= (t) => e.templates.requestSave()
3205
- }, [e.templates.isSaving.value ? (i(), T(S(nt), {
3185
+ }, [e.templates.isSaving.value ? (i(), T(S(it), {
3206
3186
  key: 1,
3207
3187
  class: "tpl-spinner",
3208
3188
  size: 16,
3209
3189
  "stroke-width": 2
3210
- })) : (i(), T(S(Ze), {
3190
+ })) : (i(), T(S($e), {
3211
3191
  key: 0,
3212
3192
  size: 16,
3213
3193
  "stroke-width": 2
3214
- })), A("span", qa, j(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Ka)) : w("", !0)
3194
+ })), A("span", Wa, j(e.templates.isSaving.value ? e.core.t.header.saving : e.core.t.header.save), 1)], 14, Ua)) : w("", !0)
3215
3195
  ])
3216
- ], 8, La)], 512));
3196
+ ], 8, Pa)], 512));
3217
3197
  }
3218
- }), Ya = ["aria-labelledby", "data-tpl-theme"], Xa = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Za = ["id"], Qa = ["aria-label"], $a = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, eo = [
3198
+ }), Ka = ["aria-labelledby", "data-tpl-theme"], qa = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Ja = ["id"], Ya = ["aria-label"], Xa = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Za = [
3219
3199
  "id",
3220
3200
  "placeholder",
3221
3201
  "aria-label",
3222
3202
  "aria-activedescendant"
3223
- ], to = {
3203
+ ], Qa = {
3224
3204
  key: 0,
3225
3205
  class: "tpl:flex tpl:gap-1.5 tpl:overflow-x-auto tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2",
3226
3206
  "data-testid": "merge-tag-picker-group-pills"
3227
- }, no = ["data-group-name", "onClick"], ro = ["aria-label"], io = {
3207
+ }, $a = ["data-group-name", "onClick"], eo = ["aria-label"], to = {
3228
3208
  key: 0,
3229
3209
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3230
3210
  "data-testid": "merge-tag-picker-empty"
3231
- }, ao = {
3211
+ }, no = {
3232
3212
  key: 1,
3233
3213
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3234
3214
  "data-testid": "merge-tag-picker-empty"
3235
- }, oo = [
3215
+ }, ro = [
3236
3216
  "aria-expanded",
3237
3217
  "data-group-name",
3238
3218
  "data-group-collapsed",
3239
3219
  "onClick"
3240
- ], so = { class: "tpl:ml-1 tpl:font-normal" }, co = [
3220
+ ], io = { class: "tpl:ml-1 tpl:font-normal" }, ao = [
3241
3221
  "id",
3242
3222
  "aria-selected",
3243
3223
  "data-selected",
@@ -3247,21 +3227,21 @@ var xa = [
3247
3227
  "title",
3248
3228
  "onMousemove",
3249
3229
  "onClick"
3250
- ], lo = { class: "tpl:text-sm tpl:font-medium" }, uo = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, fo = {
3230
+ ], oo = { class: "tpl:text-sm tpl:font-medium" }, so = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, co = {
3251
3231
  key: 0,
3252
3232
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3253
- }, po = {
3233
+ }, lo = {
3254
3234
  key: 1,
3255
3235
  "data-testid": "merge-tag-picker-sample",
3256
3236
  class: "tpl:line-clamp-1 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3257
- }, mo = "tpl-merge-tag-picker-list", ho = /* @__PURE__ */ n({
3237
+ }, uo = "tpl-merge-tag-picker-list", fo = /* @__PURE__ */ n({
3258
3238
  __name: "MergeTagPickerModal",
3259
3239
  setup(e) {
3260
- let t = Wt(gt, "MergeTagPickerModal"), { t: n, format: r } = $(), s = f(Mt, null), u = f(Dt, null), d = f(Kt, !0), p = P(() => t.current.value !== null), m = P(() => p.value ? n.mergeTag.picker.changeTitle : n.mergeTag.picker.title);
3240
+ let t = Nt(gt, "MergeTagPickerModal"), { t: n, format: r } = $(), s = f(Ht, null), u = f(Ut, null), d = f(xt, !0), p = P(() => t.current.value !== null), m = P(() => p.value ? n.mergeTag.picker.changeTitle : n.mergeTag.picker.title);
3261
3241
  function h(e) {
3262
3242
  return d ? e.description ? `${e.value} — ${e.description}` : e.value : e.description || void 0;
3263
3243
  }
3264
- let g = z(""), _ = ir(g, 200), v = z(null), b = P(() => _.value.trim().length > 0), E = z(0), O = P(() => t.tags.value.some((e) => !!e.group)), M = z(/* @__PURE__ */ new Set());
3244
+ let g = z(""), _ = nr(g, 200), v = z(null), b = P(() => _.value.trim().length > 0), E = z(0), O = P(() => t.tags.value.some((e) => !!e.group)), M = z(/* @__PURE__ */ new Set());
3265
3245
  function N(e) {
3266
3246
  return M.value.has(e);
3267
3247
  }
@@ -3310,7 +3290,7 @@ var xa = [
3310
3290
  }), o++;
3311
3291
  }
3312
3292
  return a;
3313
- }), V = P(() => R.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), U = !1;
3293
+ }), H = P(() => R.value.flatMap((e) => e.kind === "tag" ? [e.tag] : [])), U = !1;
3314
3294
  function ne(e) {
3315
3295
  let n = t.current.value;
3316
3296
  if (!n) return !1;
@@ -3321,41 +3301,41 @@ var xa = [
3321
3301
  U = !1, E.value = e;
3322
3302
  }
3323
3303
  o(() => t.isOpen.value, (e) => {
3324
- e ? (g.value = "", E.value = 0, M.value = /* @__PURE__ */ new Set(), U = !ne(V.value), D(() => {
3304
+ e ? (g.value = "", E.value = 0, M.value = /* @__PURE__ */ new Set(), U = !ne(H.value), D(() => {
3325
3305
  v.value?.focus();
3326
3306
  })) : U = !1;
3327
- }), o(V, (e) => {
3307
+ }), o(H, (e) => {
3328
3308
  U && ne(e) ? U = !1 : E.value >= e.length && (E.value = Math.max(0, e.length - 1));
3329
3309
  });
3330
3310
  function G(e) {
3331
3311
  t.resolve(e);
3332
3312
  }
3333
- function K() {
3313
+ function re() {
3334
3314
  t.resolve(null);
3335
3315
  }
3336
- function q(e) {
3337
- if (V.value.length === 0) return;
3316
+ function K(e) {
3317
+ if (H.value.length === 0) return;
3338
3318
  U = !1;
3339
3319
  let t = E.value + e;
3340
- E.value = Math.max(0, Math.min(V.value.length - 1, t)), ae();
3320
+ E.value = Math.max(0, Math.min(H.value.length - 1, t)), oe();
3341
3321
  }
3342
- let J = z(null), re = z({});
3343
- function ie(e, t) {
3344
- re.value[e] = t ?? null;
3322
+ let q = z(null), ie = z({});
3323
+ function ae(e, t) {
3324
+ ie.value[e] = t ?? null;
3345
3325
  }
3346
- function ae() {
3326
+ function oe() {
3347
3327
  D(() => {
3348
- let e = J.value;
3328
+ let e = q.value;
3349
3329
  e && e.querySelector(`[data-merge-tag-index="${E.value}"]`)?.scrollIntoView({ block: "nearest" });
3350
3330
  });
3351
3331
  }
3352
- function oe(e) {
3332
+ function se(e) {
3353
3333
  if (M.value.has(e)) {
3354
3334
  let t = new Set(M.value);
3355
3335
  t.delete(e), M.value = t;
3356
3336
  }
3357
3337
  D(() => {
3358
- let t = J.value;
3338
+ let t = q.value;
3359
3339
  if (!t) return;
3360
3340
  let n = 0, r = !1;
3361
3341
  for (let i of Array.from(t.children)) {
@@ -3371,55 +3351,55 @@ var xa = [
3371
3351
  });
3372
3352
  });
3373
3353
  }
3374
- function se(e) {
3375
- if (e.key === "ArrowDown") e.preventDefault(), q(1);
3376
- else if (e.key === "ArrowUp") e.preventDefault(), q(-1);
3354
+ function ce(e) {
3355
+ if (e.key === "ArrowDown") e.preventDefault(), K(1);
3356
+ else if (e.key === "ArrowUp") e.preventDefault(), K(-1);
3377
3357
  else if (e.key === "Enter") {
3378
3358
  e.preventDefault();
3379
- let t = V.value[E.value];
3359
+ let t = H.value[E.value];
3380
3360
  t && G(t);
3381
3361
  }
3382
3362
  }
3383
- function Y() {
3384
- if (V.value.length !== 0) return `${mo}-opt-${E.value}`;
3363
+ function J() {
3364
+ if (H.value.length !== 0) return `${uo}-opt-${E.value}`;
3385
3365
  }
3386
- function ce(e) {
3387
- return `${mo}-opt-${e}`;
3366
+ function le(e) {
3367
+ return `${uo}-opt-${e}`;
3388
3368
  }
3389
- let le = P(() => t.tags.value.length === 0), ue = P(() => !le.value && L.value.length === 0), de = P(() => O.value && te.value.length > 1 && !b.value);
3390
- return (e, o) => (i(), T(rn, {
3369
+ let Y = P(() => t.tags.value.length === 0), X = P(() => !Y.value && L.value.length === 0), ue = P(() => O.value && te.value.length > 1 && !b.value);
3370
+ return (e, o) => (i(), T(on, {
3391
3371
  visible: S(t).isOpen.value,
3392
- onClose: K,
3393
- onKeydown: se
3372
+ onClose: re,
3373
+ onKeydown: ce
3394
3374
  }, {
3395
3375
  default: a(() => [A("div", {
3396
3376
  role: "dialog",
3397
3377
  "aria-modal": "true",
3398
- "aria-labelledby": `${mo}-title`,
3378
+ "aria-labelledby": `${uo}-title`,
3399
3379
  "data-tpl-theme": S(u),
3400
3380
  "data-testid": "merge-tag-picker-modal",
3401
3381
  class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
3402
3382
  style: F(S(s))
3403
3383
  }, [
3404
- A("header", Xa, [A("h2", {
3405
- id: `${mo}-title`,
3384
+ A("header", qa, [A("h2", {
3385
+ id: `${uo}-title`,
3406
3386
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3407
- }, j(m.value), 9, Za), A("button", {
3387
+ }, j(m.value), 9, Ja), A("button", {
3408
3388
  type: "button",
3409
3389
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3410
3390
  "aria-label": S(n).mergeTag.picker.close,
3411
3391
  "data-testid": "merge-tag-picker-close",
3412
- onClick: K
3413
- }, [H(S(lt), {
3392
+ onClick: re
3393
+ }, [V(S(dt), {
3414
3394
  size: 16,
3415
3395
  "stroke-width": 2
3416
- })], 8, Qa)]),
3417
- A("div", $a, [H(S(Ye), {
3396
+ })], 8, Ya)]),
3397
+ A("div", Xa, [V(S(Ze), {
3418
3398
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
3419
3399
  size: 14,
3420
3400
  "stroke-width": 2
3421
3401
  }), c(A("input", {
3422
- id: `${mo}-search`,
3402
+ id: `${uo}-search`,
3423
3403
  ref_key: "searchInputRef",
3424
3404
  ref: v,
3425
3405
  "onUpdate:modelValue": o[0] ||= (e) => g.value = e,
@@ -3427,50 +3407,50 @@ var xa = [
3427
3407
  class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
3428
3408
  placeholder: S(n).mergeTag.picker.searchPlaceholder,
3429
3409
  "aria-label": S(n).mergeTag.picker.searchAriaLabel,
3430
- "aria-controls": mo,
3431
- "aria-activedescendant": Y(),
3410
+ "aria-controls": uo,
3411
+ "aria-activedescendant": J(),
3432
3412
  "data-testid": "merge-tag-picker-search",
3433
3413
  onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
3434
- }, null, 40, eo), [[ee, g.value]])]),
3435
- de.value ? (i(), y("div", to, [(i(!0), y(B, null, l(te.value, (e) => (i(), y("button", {
3414
+ }, null, 40, Za), [[ee, g.value]])]),
3415
+ ue.value ? (i(), y("div", Qa, [(i(!0), y(B, null, l(te.value, (e) => (i(), y("button", {
3436
3416
  key: e,
3437
3417
  type: "button",
3438
3418
  class: "tpl:flex tpl:flex-shrink-0 tpl:cursor-pointer tpl:items-center tpl:rounded-full tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-2.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3439
3419
  "data-testid": "merge-tag-picker-group-pill",
3440
3420
  "data-group-name": e,
3441
- onClick: (t) => oe(e)
3442
- }, j(e), 9, no))), 128))])) : w("", !0),
3421
+ onClick: (t) => se(e)
3422
+ }, j(e), 9, $a))), 128))])) : w("", !0),
3443
3423
  A("div", {
3444
- id: mo,
3424
+ id: uo,
3445
3425
  ref_key: "listRef",
3446
- ref: J,
3426
+ ref: q,
3447
3427
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3448
3428
  role: "listbox",
3449
3429
  "aria-label": m.value,
3450
3430
  "data-testid": "merge-tag-picker-list"
3451
- }, [le.value ? (i(), y("div", io, j(S(n).mergeTag.picker.empty), 1)) : ue.value ? (i(), y("div", ao, j(S(n).mergeTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(R.value, (e, a) => (i(), y(B, { key: a }, [e.kind === "header" ? (i(), y("button", {
3431
+ }, [Y.value ? (i(), y("div", to, j(S(n).mergeTag.picker.empty), 1)) : X.value ? (i(), y("div", no, j(S(n).mergeTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(R.value, (e, a) => (i(), y(B, { key: a }, [e.kind === "header" ? (i(), y("button", {
3452
3432
  key: 0,
3453
3433
  ref_for: !0,
3454
- ref: (t) => ie(e.group, t),
3434
+ ref: (t) => ae(e.group, t),
3455
3435
  type: "button",
3456
3436
  "aria-expanded": !N(e.group),
3457
- "aria-controls": mo,
3437
+ "aria-controls": uo,
3458
3438
  class: "tpl:sticky tpl:top-0 tpl:z-10 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-1.5 tpl:border-none tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-left tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)]",
3459
3439
  "data-testid": "merge-tag-picker-group-header",
3460
3440
  "data-group-name": e.group,
3461
3441
  "data-group-collapsed": N(e.group) ? "true" : "false",
3462
3442
  onClick: (t) => I(e.group)
3463
3443
  }, [
3464
- H(S(Ue), {
3444
+ V(S(Ge), {
3465
3445
  size: 12,
3466
3446
  "stroke-width": 2,
3467
3447
  class: C(["tpl:transition-transform", N(e.group) ? "tpl:-rotate-90" : ""])
3468
3448
  }, null, 8, ["class"]),
3469
3449
  A("span", null, j(e.group), 1),
3470
- A("span", so, " (" + j(S(r)(S(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3471
- ], 8, oo)) : (i(), y("button", {
3450
+ A("span", io, " (" + j(S(r)(S(n).mergeTag.picker.groupCount, { count: e.count })) + ") ", 1)
3451
+ ], 8, ro)) : (i(), y("button", {
3472
3452
  key: 1,
3473
- id: ce(e.index),
3453
+ id: le(e.index),
3474
3454
  type: "button",
3475
3455
  role: "option",
3476
3456
  "aria-selected": e.index === E.value,
@@ -3484,23 +3464,23 @@ var xa = [
3484
3464
  onMousemove: (t) => W(e.index),
3485
3465
  onClick: (t) => G(e.tag)
3486
3466
  }, [
3487
- A("span", lo, j(e.tag.label), 1),
3488
- A("span", uo, j(e.tag.value), 1),
3489
- e.tag.description ? (i(), y("span", fo, j(e.tag.description), 1)) : w("", !0),
3490
- e.tag.sample === void 0 ? w("", !0) : (i(), y("span", po, j(S(r)(S(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
3491
- ], 42, co))], 64))), 128))], 8, ro)
3492
- ], 12, Ya)]),
3467
+ A("span", oo, j(e.tag.label), 1),
3468
+ A("span", so, j(e.tag.value), 1),
3469
+ e.tag.description ? (i(), y("span", co, j(e.tag.description), 1)) : w("", !0),
3470
+ e.tag.sample === void 0 ? w("", !0) : (i(), y("span", lo, j(S(r)(S(n).mergeTag.picker.sample, { sample: e.tag.sample })), 1))
3471
+ ], 42, ao))], 64))), 128))], 8, eo)
3472
+ ], 12, Ka)]),
3493
3473
  _: 1
3494
3474
  }, 8, ["visible"]));
3495
3475
  }
3496
- }), go = ["data-logic-keyword"], _o = /* @__PURE__ */ n({
3476
+ }), po = ["data-logic-keyword"], mo = /* @__PURE__ */ n({
3497
3477
  __name: "LogicTagBadge",
3498
3478
  props: {
3499
3479
  value: {},
3500
3480
  syntax: {}
3501
3481
  },
3502
3482
  setup(e) {
3503
- let t = e, n = P(() => Se(t.value, t.syntax)), r = P(() => fe(t.value, t.syntax));
3483
+ let t = e, n = P(() => X(t.value, t.syntax)), r = P(() => re(t.value, t.syntax));
3504
3484
  return (e, t) => n.value ? (i(), y("span", {
3505
3485
  key: 0,
3506
3486
  class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
@@ -3510,22 +3490,22 @@ var xa = [
3510
3490
  },
3511
3491
  "data-testid": "merge-tag-logic-badge",
3512
3492
  "data-logic-keyword": r.value
3513
- }, j(r.value), 9, go)) : w("", !0);
3493
+ }, j(r.value), 9, po)) : w("", !0);
3514
3494
  }
3515
- }), vo = ["aria-labelledby", "data-tpl-theme"], yo = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, bo = ["id"], xo = ["aria-label"], So = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, Co = [
3495
+ }), ho = ["aria-labelledby", "data-tpl-theme"], go = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:gap-3 tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, _o = ["id"], vo = ["aria-label"], yo = { class: "tpl:relative tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-3 tpl:py-2.5" }, bo = [
3516
3496
  "id",
3517
3497
  "placeholder",
3518
3498
  "aria-label",
3519
3499
  "aria-activedescendant"
3520
- ], wo = ["aria-label"], To = {
3500
+ ], xo = ["aria-label"], So = {
3521
3501
  key: 0,
3522
3502
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3523
3503
  "data-testid": "logic-picker-empty"
3524
- }, Eo = {
3504
+ }, Co = {
3525
3505
  key: 1,
3526
3506
  class: "tpl:px-3 tpl:py-6 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]",
3527
3507
  "data-testid": "logic-picker-empty"
3528
- }, Do = ["data-group-name"], Oo = [
3508
+ }, wo = ["data-group-name"], To = [
3529
3509
  "id",
3530
3510
  "aria-selected",
3531
3511
  "data-selected",
@@ -3533,19 +3513,19 @@ var xa = [
3533
3513
  "data-logic-kind",
3534
3514
  "onMousemove",
3535
3515
  "onClick"
3536
- ], ko = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Ao = { class: "tpl:text-sm tpl:font-medium" }, jo = {
3516
+ ], Eo = { class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-between tpl:gap-2" }, Do = { class: "tpl:text-sm tpl:font-medium" }, Oo = {
3537
3517
  key: 0,
3538
3518
  class: "tpl:flex tpl:items-center"
3539
- }, Mo = {
3519
+ }, ko = {
3540
3520
  key: 1,
3541
3521
  class: "tpl:flex tpl:items-center tpl:gap-1"
3542
- }, No = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, Po = {
3522
+ }, Ao = { class: "tpl:line-clamp-2 tpl:font-mono tpl:text-xs tpl:text-ellipsis tpl:break-all tpl:text-[var(--tpl-text-dim)]" }, jo = {
3543
3523
  key: 0,
3544
3524
  class: "tpl:line-clamp-2 tpl:text-xs tpl:text-ellipsis tpl:text-[var(--tpl-text-dim)]"
3545
- }, Fo = "tpl-logic-picker-list", Io = /* @__PURE__ */ n({
3525
+ }, Mo = "tpl-logic-picker-list", No = /* @__PURE__ */ n({
3546
3526
  __name: "LogicTagPickerModal",
3547
3527
  setup(e) {
3548
- let t = Wt(yt, "LogicTagPickerModal"), { t: n } = $(), r = f(mt, pe.liquid), s = f(Mt, null), u = f(Dt, null), d = z(""), p = ir(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
3528
+ let t = Nt(jt, "LogicTagPickerModal"), { t: n } = $(), r = f(Kt, K.liquid), s = f(Ht, null), u = f(Ut, null), d = z(""), p = nr(d, 200), m = z(null), h = P(() => p.value.trim().length > 0), g = z(0);
3549
3529
  function _(e) {
3550
3530
  let t = p.value.trim().toLowerCase();
3551
3531
  return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
@@ -3607,7 +3587,7 @@ var xa = [
3607
3587
  g.value >= e.length && (g.value = Math.max(0, e.length - 1));
3608
3588
  });
3609
3589
  let R = z(null);
3610
- function V(e) {
3590
+ function H(e) {
3611
3591
  t.resolve(e);
3612
3592
  }
3613
3593
  function U() {
@@ -3624,16 +3604,16 @@ var xa = [
3624
3604
  else if (e.key === "Enter") {
3625
3605
  e.preventDefault();
3626
3606
  let t = I.value[g.value];
3627
- t && V(t);
3607
+ t && H(t);
3628
3608
  }
3629
3609
  }
3630
3610
  function G(e) {
3631
- return `${Fo}-opt-${e}`;
3611
+ return `${Mo}-opt-${e}`;
3632
3612
  }
3633
- function K() {
3634
- return I.value.length === 0 ? void 0 : `${Fo}-opt-${g.value}`;
3613
+ function re() {
3614
+ return I.value.length === 0 ? void 0 : `${Mo}-opt-${g.value}`;
3635
3615
  }
3636
- return (e, o) => (i(), T(rn, {
3616
+ return (e, o) => (i(), T(on, {
3637
3617
  visible: S(t).isOpen.value,
3638
3618
  onClose: U,
3639
3619
  onKeydown: W
@@ -3641,31 +3621,31 @@ var xa = [
3641
3621
  default: a(() => [A("div", {
3642
3622
  role: "dialog",
3643
3623
  "aria-modal": "true",
3644
- "aria-labelledby": `${Fo}-title`,
3624
+ "aria-labelledby": `${Mo}-title`,
3645
3625
  "data-tpl-theme": S(u),
3646
3626
  "data-testid": "logic-picker-modal",
3647
3627
  class: "tpl tpl:flex tpl:max-h-[80%] tpl:w-[420px] tpl:max-w-full tpl:flex-col tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-lg)]",
3648
3628
  style: F(S(s))
3649
3629
  }, [
3650
- A("header", yo, [A("h2", {
3651
- id: `${Fo}-title`,
3630
+ A("header", go, [A("h2", {
3631
+ id: `${Mo}-title`,
3652
3632
  class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
3653
- }, j(S(n).logicTag.picker.title), 9, bo), A("button", {
3633
+ }, j(S(n).logicTag.picker.title), 9, _o), A("button", {
3654
3634
  type: "button",
3655
3635
  class: "tpl:flex tpl:h-7 tpl:w-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:text-[var(--tpl-text-dim)] tpl:transition-colors tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
3656
3636
  "aria-label": S(n).logicTag.picker.close,
3657
3637
  "data-testid": "logic-picker-close",
3658
3638
  onClick: U
3659
- }, [H(S(lt), {
3639
+ }, [V(S(dt), {
3660
3640
  size: 16,
3661
3641
  "stroke-width": 2
3662
- })], 8, xo)]),
3663
- A("div", So, [H(S(Ye), {
3642
+ })], 8, vo)]),
3643
+ A("div", yo, [V(S(Ze), {
3664
3644
  class: "tpl:pointer-events-none tpl:absolute tpl:top-1/2 tpl:left-5 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]",
3665
3645
  size: 14,
3666
3646
  "stroke-width": 2
3667
3647
  }), c(A("input", {
3668
- id: `${Fo}-search`,
3648
+ id: `${Mo}-search`,
3669
3649
  ref_key: "searchInputRef",
3670
3650
  ref: m,
3671
3651
  "onUpdate:modelValue": o[0] ||= (e) => d.value = e,
@@ -3673,25 +3653,25 @@ var xa = [
3673
3653
  class: "tpl:w-full tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:outline-none tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[var(--tpl-ring)]",
3674
3654
  placeholder: S(n).logicTag.picker.searchPlaceholder,
3675
3655
  "aria-label": S(n).logicTag.picker.searchAriaLabel,
3676
- "aria-controls": Fo,
3677
- "aria-activedescendant": K(),
3656
+ "aria-controls": Mo,
3657
+ "aria-activedescendant": re(),
3678
3658
  "data-testid": "logic-picker-search",
3679
3659
  onKeydown: o[1] ||= x(k(() => {}, ["prevent"]), ["enter"])
3680
- }, null, 40, Co), [[ee, d.value]])]),
3660
+ }, null, 40, bo), [[ee, d.value]])]),
3681
3661
  A("div", {
3682
- id: Fo,
3662
+ id: Mo,
3683
3663
  ref_key: "listRef",
3684
3664
  ref: R,
3685
3665
  class: "tpl:relative tpl:max-h-[60vh] tpl:flex-1 tpl:overflow-y-auto",
3686
3666
  role: "listbox",
3687
3667
  "aria-label": S(n).logicTag.picker.title,
3688
3668
  "data-testid": "logic-picker-list"
3689
- }, [L.value ? (i(), y("div", To, j(S(n).logicTag.picker.empty), 1)) : te.value ? (i(), y("div", Eo, j(S(n).logicTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(N.value.rows, (e, t) => (i(), y(B, { key: t }, [e.kind === "header" ? (i(), y("div", {
3669
+ }, [L.value ? (i(), y("div", So, j(S(n).logicTag.picker.empty), 1)) : te.value ? (i(), y("div", Co, j(S(n).logicTag.picker.noResults), 1)) : (i(!0), y(B, { key: 2 }, l(N.value.rows, (e, t) => (i(), y(B, { key: t }, [e.kind === "header" ? (i(), y("div", {
3690
3670
  key: 0,
3691
3671
  class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
3692
3672
  "data-testid": "logic-picker-header",
3693
3673
  "data-group-name": e.label
3694
- }, j(e.label), 9, Do)) : (i(), y("button", {
3674
+ }, j(e.label), 9, wo)) : (i(), y("button", {
3695
3675
  key: 1,
3696
3676
  id: G(e.index),
3697
3677
  type: "button",
@@ -3703,44 +3683,43 @@ var xa = [
3703
3683
  class: C(["tpl:flex tpl:w-full tpl:cursor-pointer tpl:flex-col tpl:items-start tpl:gap-0.5 tpl:border-none tpl:px-3 tpl:py-1.5 tpl:text-left tpl:transition-colors", e.index === g.value ? "tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]" : "tpl:bg-transparent tpl:text-[var(--tpl-text)] tpl:hover:bg-[var(--tpl-bg-hover)]"]),
3704
3684
  "data-testid": "logic-picker-item",
3705
3685
  onMousemove: (t) => g.value = e.index,
3706
- onClick: (t) => V(e.kind === "tag" ? e.tag : e.pair)
3686
+ onClick: (t) => H(e.kind === "tag" ? e.tag : e.pair)
3707
3687
  }, [
3708
- A("span", ko, [A("span", Ao, j(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (i(), y("span", jo, [H(_o, {
3688
+ A("span", Eo, [A("span", Do, j(e.kind === "tag" ? e.tag.label : e.pair.label), 1), e.kind === "tag" ? (i(), y("span", Oo, [V(mo, {
3709
3689
  value: e.tag.value,
3710
3690
  syntax: S(r)
3711
- }, null, 8, ["value", "syntax"])])) : (i(), y("span", Mo, [
3712
- H(_o, {
3691
+ }, null, 8, ["value", "syntax"])])) : (i(), y("span", ko, [
3692
+ V(mo, {
3713
3693
  value: e.pair.before,
3714
3694
  syntax: S(r)
3715
3695
  }, null, 8, ["value", "syntax"]),
3716
3696
  o[2] ||= A("span", { class: "tpl:text-[var(--tpl-text-dim)]" }, "…", -1),
3717
- H(_o, {
3697
+ V(mo, {
3718
3698
  value: e.pair.after,
3719
3699
  syntax: S(r)
3720
3700
  }, null, 8, ["value", "syntax"])
3721
3701
  ]))]),
3722
- A("span", No, j(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
3723
- (e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span", Po, j(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
3724
- ], 42, Oo))], 64))), 128))], 8, wo)
3725
- ], 12, vo)]),
3702
+ A("span", Ao, j(e.kind === "tag" ? e.tag.value : `${e.pair.before} … ${e.pair.after}`), 1),
3703
+ (e.kind === "tag" ? e.tag.description : e.pair.description) ? (i(), y("span", jo, j(e.kind === "tag" ? e.tag.description : e.pair.description), 1)) : w("", !0)
3704
+ ], 42, To))], 64))), 128))], 8, xo)
3705
+ ], 12, ho)]),
3726
3706
  _: 1
3727
3707
  }, 8, ["visible"]));
3728
3708
  }
3729
- }), Lo = ["data-tpl-theme"], Ro = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, zo = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Bo = { class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, Vo = {
3709
+ }), Po = ["data-tpl-theme"], Fo = { class: "tpl:absolute tpl:inset-0 tpl:overflow-hidden" }, Io = { class: "tpl-preview-overlay tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Lo = { class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:flex tpl:-translate-x-1/2 tpl:flex-col tpl:items-center tpl:gap-2" }, Ro = {
3730
3710
  key: 0,
3731
3711
  "data-testid": "merge-tag-mode-toggle-anchor",
3732
3712
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
3733
- }, Ho = {
3713
+ }, zo = {
3734
3714
  key: 0,
3735
3715
  class: "tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-[var(--tpl-shadow-md)]"
3736
- }, Uo = ["title", "aria-busy"], Wo = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, Go = ["aria-label"], Ko = /*#__PURE__*/ Be(/* @__PURE__ */ n({
3716
+ }, Bo = ["title", "aria-busy"], Vo = { class: "tpl-main tpl-canvas-pane tpl:flex tpl:py-8" }, Ho = ["aria-label"], Uo = /*#__PURE__*/ He(/* @__PURE__ */ n({
3737
3717
  __name: "Editor",
3738
3718
  props: {
3739
3719
  config: {},
3740
3720
  translations: {},
3741
3721
  fontsManager: {},
3742
3722
  shadowRoot: {},
3743
- cloud: {},
3744
3723
  renderMjml: { type: Function },
3745
3724
  renderHtml: { type: Function },
3746
3725
  canRenderHtml: { type: Function },
@@ -3748,37 +3727,36 @@ var xa = [
3748
3727
  },
3749
3728
  setup(e, { expose: t }) {
3750
3729
  let n = e;
3751
- s(Ut, {
3730
+ s(kt, {
3752
3731
  renderHtml: () => n.renderHtml?.() ?? Promise.reject(/* @__PURE__ */ Error("HTML rendering is unavailable")),
3753
3732
  canRenderHtml: () => n.canRenderHtml?.() ?? !1,
3754
- cloud: !!n.cloud,
3755
3733
  options: n.config.lint ?? {}
3756
3734
  });
3757
3735
  let r = {
3758
3736
  get tags() {
3759
- return X.mergeTags.value;
3737
+ return J.mergeTags.value;
3760
3738
  },
3761
3739
  get syntax() {
3762
- return X.mergeTagSyntax;
3740
+ return J.mergeTagSyntax;
3763
3741
  }
3764
- }, l = n.config.templates ? Vn(n.config.templates, r) : void 0;
3765
- n.config.collaboration && !l && Zn.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
3766
- let u = n.config.collaboration && l ? Gr({
3742
+ }, l = n.config.templates ? Bn(n.config.templates, r) : void 0;
3743
+ n.config.collaboration && !l && Ae.warn("config.collaboration needs config.templates: collaboration runs on a loaded template, and only a templates provider loads one. Collaboration is off.");
3744
+ let u = n.config.collaboration && l ? Hr({
3767
3745
  provider: n.config.collaboration,
3768
3746
  loadTemplate: (e) => l.load(e),
3769
3747
  user: n.config.user,
3770
3748
  mergeTags: r,
3771
3749
  onRemoteChange: n.config.onRemoteChange,
3772
3750
  onError: n.config.onError
3773
- }) : null, f = l && u ? Si(l, u.core, () => {
3751
+ }) : null, f = l && u ? yi(l, u.core, () => {
3774
3752
  let e = h.state.template;
3775
3753
  return e ? {
3776
3754
  ...E(e),
3777
- content: Te(E(h.content.value))
3755
+ content: fe(E(h.content.value))
3778
3756
  } : null;
3779
3757
  }) : l, m = z(0);
3780
- s(bt, n.config.localization);
3781
- let h = re({
3758
+ s(ht, n.config.localization);
3759
+ let h = Fe({
3782
3760
  localization: n.config.localization ?? { locales: [] },
3783
3761
  onLocaleChange: n.config.onLocaleChange,
3784
3762
  onStructureChange: () => {
@@ -3786,47 +3764,41 @@ var xa = [
3786
3764
  },
3787
3765
  content: n.config.content,
3788
3766
  defaultFontFamily: n.config.fonts?.defaultFont,
3789
- templateDefaults: ur(n.config),
3767
+ templateDefaults: sr(n.config),
3790
3768
  templates: f,
3791
3769
  onError: n.config.onError,
3792
3770
  lockedBlocks: u?.locks,
3793
3771
  lockLocale: u?.core.lockLocale,
3794
3772
  lockSessionId: u?.core.sessionId
3795
- }), _ = ft(h);
3796
- s(Nt, _.content), h.setCustomBlockDefinitions(n.config.customBlocks ?? []), u && o(h.activeLocale, (e) => u.core.setLockLocale(e), { flush: "sync" }), u?.attach(h);
3797
- let v = n.cloud ? n.cloud.attach({ editor: h }) : null, x = f ? fi({
3773
+ }), _ = qt(h);
3774
+ s(bt, _.content), h.setCustomBlockDefinitions(n.config.customBlocks ?? []), u && o(h.activeLocale, (e) => u.core.setLockLocale(e), { flush: "sync" }), u?.attach(h);
3775
+ let v = f ? li({
3798
3776
  provider: f,
3799
3777
  editor: h,
3800
- guardUnsavedChanges: n.config.templates?.unsavedChangesGuard,
3801
- getSaveGate: n.cloud ? () => n.cloud.getSaveGate() : void 0
3778
+ guardUnsavedChanges: n.config.templates?.unsavedChangesGuard
3802
3779
  }) : null;
3803
3780
  n.config.onDirtyChange && o(() => h.state.isDirty, (e) => n.config.onDirtyChange(e));
3804
- let D = z(null), O = n.config.savedBlocks ? ui({
3781
+ let x = z(null), D = n.config.savedBlocks ? si({
3805
3782
  provider: n.config.savedBlocks,
3806
3783
  editor: h,
3807
- onError: n.config.onError,
3808
- isAvailable: n.cloud ? () => n.cloud.isSavedBlocksAvailable() : void 0
3809
- }) : null, N = g(() => import("./chunks/SavedBlocksPanels-DVNNshfr.js")), ee = n.config.media || n.config.onRequestMedia ? ci({
3784
+ onError: n.config.onError
3785
+ }) : null, O = g(() => import("./chunks/SavedBlocksPanels-CtDhdbiD.js")), N = n.config.media || n.config.onRequestMedia ? ai({
3810
3786
  provider: n.config.media,
3811
3787
  onRequestMedia: n.config.onRequestMedia,
3812
3788
  getTemplateId: () => h.state.template?.id,
3813
3789
  onError: n.config.onError
3814
- }) : null, I = g(() => import("./chunks/MediaPanels-Ciahwsyt.js")), L = n.config.testEmail ? _i({
3790
+ }) : null, ee = g(() => import("./chunks/MediaPanels-Ciahwsyt.js")), I = n.config.testEmail ? mi({
3815
3791
  provider: n.config.testEmail,
3816
3792
  getContent: () => h.content.value,
3817
3793
  renderMjml: n.renderMjml,
3818
3794
  usesLocalRenderer: n.usesLocalRenderer,
3819
- onError: n.config.onError,
3820
- isAvailable: n.cloud ? () => n.cloud.isTestEmailAvailable() : void 0
3821
- }) : null, R = g(() => import("./chunks/TestEmailPanel-BNJBVwx0.js")), B = n.config.comments ? Kr({
3795
+ onError: n.config.onError
3796
+ }) : null, L = g(() => import("./chunks/TestEmailPanel-0iG-utN7.js")), R = n.config.comments ? Ur({
3822
3797
  provider: n.config.comments,
3823
3798
  editor: h,
3824
3799
  user: n.config.user,
3825
- isOpen: v?.panelState.commentsOpen,
3826
- onError: n.config.onError,
3827
- isAvailable: n.cloud ? () => n.cloud.isCommentsAvailable() : void 0,
3828
- isBlockSaved: n.cloud ? (e) => n.cloud.isBlockSaved(e) : void 0
3829
- }) : null, U = g(() => import("./chunks/CommentsPanel-BynxXJ-F.js")), ne = g(() => import("./chunks/AiPanels-BW9ze-6O.js")), W = n.config.ai ? ti({
3800
+ onError: n.config.onError
3801
+ }) : null, B = g(() => import("./chunks/CommentsPanel-D-D2qsS6.js")), H = g(() => import("./chunks/AiPanels-qJgLTYPs.js")), U = n.config.ai ? Qr({
3830
3802
  provider: n.config.ai,
3831
3803
  editor: h,
3832
3804
  localization: n.config.localization ?? { locales: [] },
@@ -3835,64 +3807,64 @@ var xa = [
3835
3807
  m.value++;
3836
3808
  },
3837
3809
  collaboration: u,
3838
- history: () => X.history,
3839
- reload: x ? (e, t) => x.load(e, t) : null,
3840
- altMaxLength: () => Kn(un(n.config)),
3841
- mergeTags: () => ai(X.mergeTags.value, X.mergeTagSyntax),
3842
- normalize: (e, t) => zn(e, t, r),
3843
- commentsOpen: B?.isOpen ?? null,
3810
+ history: () => J.history,
3811
+ reload: v ? (e, t) => v.load(e, t) : null,
3812
+ altMaxLength: () => Gn(pn(n.config)),
3813
+ mergeTags: () => ni(J.mergeTags.value, J.mergeTagSyntax),
3814
+ normalize: (e, t) => Rn(e, t, r),
3815
+ commentsOpen: R?.isOpen ?? null,
3844
3816
  onError: n.config.onError
3845
3817
  }) : null;
3846
- W && s(Lt, W);
3847
- let G = pt(h, n.config.customBlocks ?? []);
3848
- s(Ht, G);
3849
- let K = n.config.translation ? Br({
3818
+ U && s(Vt, U);
3819
+ let ne = Jt(h, n.config.customBlocks ?? []);
3820
+ s(Ft, ne);
3821
+ let W = n.config.translation ? Lr({
3850
3822
  provider: n.config.translation,
3851
3823
  editor: h,
3852
3824
  localization: n.config.localization,
3853
3825
  collaboration: u,
3854
- history: () => X.history,
3826
+ history: () => J.history,
3855
3827
  definitions: () => n.config.customBlocks ?? [],
3856
- syntax: () => X.mergeTagSyntax,
3857
- coverage: () => G.value
3828
+ syntax: () => J.mergeTagSyntax,
3829
+ coverage: () => ne.value
3858
3830
  }) : null;
3859
- K && s(zt, K);
3860
- let q = z(null);
3831
+ W && s(Tt, W);
3832
+ let G = z(null);
3861
3833
  o([() => h.state.template?.id ?? null, h.loadVersion], () => {
3862
- q.value = null;
3834
+ G.value = null;
3863
3835
  }, { flush: "sync" }), o(() => Z(h.content.value), (e) => {
3864
- q.value && q.value.language !== e && (q.value = null);
3836
+ G.value && G.value.language !== e && (G.value = null);
3865
3837
  }, { flush: "sync" });
3866
- let J = Pr({
3838
+ let re = jr({
3867
3839
  editor: h,
3868
- history: () => X.history,
3840
+ history: () => J.history,
3869
3841
  collaboration: u
3870
3842
  });
3871
- s(ht, { setDefaultLocale(e) {
3843
+ s(St, { setDefaultLocale(e) {
3872
3844
  let t = {
3873
3845
  language: e,
3874
3846
  old: Z(h.content.value),
3875
- count: Fe(h.content.value, e, n.config.customBlocks).length
3876
- }, r = J.setDefaultLocale(e);
3877
- return r.applied && (q.value = t), r;
3847
+ count: Se(h.content.value, e, n.config.customBlocks).length
3848
+ }, r = re.setDefaultLocale(e);
3849
+ return r.applied && (G.value = t), r;
3878
3850
  } });
3879
- let ie = g(() => import("./chunks/LocaleNotices-D5vZzcUj.js")), ae = g(() => import("./chunks/CollaborationNotices-COkmBmps.js")), oe = g(() => import("./chunks/CloudPanels-D4dslsyk.js")), se = g(() => import("./chunks/CloudHeaderExtras-Cd-ePldd.js")), Y = g(() => import("./chunks/VersionHistoryPanels-Bbb1xUJs.js")), ce = yi(n.config.templates?.autoSave, !1), le = ce && x !== null;
3880
- ce && x !== null && !x.canSave.value && Zn.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && x !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && Zn.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
3881
- let ue = n.config.onChange || le ? {
3851
+ let K = g(() => import("./chunks/LocaleNotices-DSfOyyyf.js")), q = g(() => import("./chunks/CollaborationNotices-DyzhN_Ns.js")), ie = g(() => import("./chunks/VersionHistoryPanels-Bw5UHEvo.js")), ae = gi(n.config.templates?.autoSave, !1), oe = ae && v !== null;
3852
+ ae && v !== null && !v.canSave.value && Ae.warn("config.templates.autoSave is on but this provider's save is false — there is nothing to persist to. Give it a real save function, or use `onChange` to persist the content yourself."), n.config.changeDebounce !== void 0 && v !== null && n.config.templates?.autoSave === void 0 && !n.config.onChange && Ae.warn("config.changeDebounce is set but nothing will use it — config.templates.autoSave is unset and there is no onChange either, so the timer has no consumer. Set config.templates.autoSave, or add onChange, so the debounce takes effect.");
3853
+ let se = n.config.onChange || oe ? {
3882
3854
  onChange: () => {
3883
- n.config.onChange?.(JSON.parse(JSON.stringify(h.state.content))), le && x.requestAutoSave();
3855
+ n.config.onChange?.(JSON.parse(JSON.stringify(h.state.content))), oe && v.requestAutoSave();
3884
3856
  },
3885
3857
  ...n.config.changeDebounce === void 0 ? {} : { debounce: n.config.changeDebounce }
3886
- } : null, de = {
3887
- ...O ? { savedBlocks: O.capability } : {},
3888
- ...x ? { templates: x.capability } : {},
3889
- ...L ? { testEmail: L.capability } : {},
3890
- ...B ? { comments: B.capability } : {},
3858
+ } : null, ce = {
3859
+ ...D ? { savedBlocks: D.capability } : {},
3860
+ ...v ? { templates: v.capability } : {},
3861
+ ...I ? { testEmail: I.capability } : {},
3862
+ ...R ? { comments: R.capability } : {},
3891
3863
  ...u ? { collaboration: u.capability } : {},
3892
- ...W ? { ai: W.capability } : {}
3893
- }, X = On({
3864
+ ...U ? { ai: U.capability } : {}
3865
+ }, J = Dn({
3894
3866
  editor: h,
3895
- containerEl: D,
3867
+ containerEl: x,
3896
3868
  config: {
3897
3869
  uiTheme: n.config.uiTheme,
3898
3870
  theme: n.config.theme,
@@ -3908,118 +3880,101 @@ var xa = [
3908
3880
  mergeTags: n.config.mergeTags,
3909
3881
  logicTags: n.config.logicTags,
3910
3882
  displayConditions: n.config.displayConditions,
3911
- onRequestMedia: ee?.requestMedia ?? null,
3912
- canDropMedia: ee?.canDrop ?? null,
3883
+ onRequestMedia: N?.requestMedia ?? null,
3884
+ canDropMedia: N?.canDrop ?? null,
3913
3885
  resolvePreview: n.config.resolvePreview,
3914
3886
  resolveImageUrl: n.config.resolveImageUrl,
3915
- lint: un(n.config),
3887
+ lint: pn(n.config),
3916
3888
  locale: n.config.locale
3917
3889
  },
3918
3890
  translations: n.translations,
3919
3891
  fontsManager: n.fontsManager,
3920
- autoSaveOptions: ue,
3921
- capabilities: de,
3892
+ autoSaveOptions: se,
3893
+ capabilities: ce,
3922
3894
  editorRoot: n.shadowRoot,
3923
3895
  history: u?.history
3924
- }), fe = z("content");
3896
+ }), le = z("content");
3925
3897
  o(() => h.state.template?.id, () => {
3926
- h.selectedBlock.value && (fe.value = "content");
3898
+ h.selectedBlock.value && (le.value = "content");
3927
3899
  });
3928
- let pe = n.cloud && v ? n.cloud.ready({
3929
- core: X,
3930
- capabilities: de
3931
- }) : null, me = n.config.versionHistory ? vi({
3900
+ let Y = n.config.versionHistory ? hi({
3932
3901
  provider: n.config.versionHistory,
3933
- editor: Rn(h, r),
3934
- history: X.history,
3935
- conditionPreview: X.conditionPreview,
3936
- autoSave: X.autoSave,
3902
+ editor: Ln(h, r),
3903
+ history: J.history,
3904
+ conditionPreview: J.conditionPreview,
3905
+ autoSave: J.autoSave,
3937
3906
  collaboration: u ? {
3938
3907
  suspend: u.core.suspend,
3939
3908
  resume: u.core.resume,
3940
3909
  catchUp: u.core.catchUp,
3941
3910
  reportReplaceRefused: u.reportReplaceRefused
3942
3911
  } : null,
3943
- saveBeforeRestore: x ? {
3944
- canSave: () => x.canSave.value && !(n.cloud?.getSaveGate()?.shouldBlock.value ?? !1),
3945
- save: () => x.save("restore")
3912
+ saveBeforeRestore: v ? {
3913
+ canSave: () => v.canSave.value,
3914
+ save: () => v.save("restore")
3946
3915
  } : null,
3947
3916
  onError: n.config.onError
3948
3917
  }) : null;
3949
- me && (de.versionHistory = me.capability);
3950
- let he = P(() => B?.isOpen.value === !0 || W !== null && W.panel.value !== null || v?.panelState.rightPanelOpen.value === !0), ge = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : he.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), _e = z(null), ve = z(0), ye = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${ve.value}px)` })), be;
3918
+ Y && (ce.versionHistory = Y.capability);
3919
+ let X = P(() => R?.isOpen.value === !0 || U !== null && U.panel.value !== null), ue = P(() => h.state.previewMode ? "tpl:left-0 tpl:right-0" : X.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"), de = z(null), pe = z(0), me = P(() => ({ top: `calc(3.5 * var(--tpl-base-size) + ${pe.value}px)` })), he;
3951
3920
  d(() => {
3952
- ve.value = _e.value?.offsetHeight ?? 0, _e.value && typeof ResizeObserver < "u" && (be = new ResizeObserver(([e]) => {
3953
- e && (ve.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
3954
- }), be.observe(_e.value));
3955
- }), p(() => be?.disconnect());
3956
- let { showNotice: xe } = Nn(() => n.config.smallScreenNotice);
3921
+ pe.value = de.value?.offsetHeight ?? 0, de.value && typeof ResizeObserver < "u" && (he = new ResizeObserver(([e]) => {
3922
+ e && (pe.value = e.borderBoxSize?.[0]?.blockSize ?? e.contentRect.height);
3923
+ }), he.observe(de.value));
3924
+ }), p(() => he?.disconnect());
3925
+ let { showNotice: ge } = Mn(() => n.config.smallScreenNotice);
3957
3926
  d(async () => {
3958
3927
  await n.fontsManager.loadCustomFonts();
3959
3928
  }), p(() => {
3960
- n.fontsManager.cleanupFontLinks(), W?.destroy(), n.cloud?.destroy(), X.destroy();
3929
+ n.fontsManager.cleanupFontLinks(), U?.destroy(), J.destroy();
3961
3930
  });
3962
- let Se = x ?? h, Ce = Yn(X.editorRoot);
3931
+ let _e = v ?? h, ve = Jn(J.editorRoot);
3963
3932
  return t({
3964
- refreshPreview: X.refreshPreview,
3933
+ refreshPreview: J.refreshPreview,
3965
3934
  getLocale: () => h.activeLocale.value ?? Z(h.content.value),
3966
3935
  setLocale: (e) => h.setActiveLocale(e),
3967
3936
  getContent: () => h.content.value,
3968
3937
  setContent: (e) => {
3969
- h.setContent(e), u?.core.flush(), X.history.clear();
3938
+ h.setContent(e), u?.core.flush(), J.history.clear();
3970
3939
  },
3971
3940
  insertBlock: (e) => {
3972
- if (h.state.previewMode) return Zn.warn("insertBlock() does nothing in preview mode."), null;
3973
- let t = Ie(e);
3974
- return xi(h, t) ? (Ce(t.id), t.id) : null;
3941
+ if (h.state.previewMode) return Ae.warn("insertBlock() does nothing in preview mode."), null;
3942
+ let t = Ce(e);
3943
+ return vi(h, t) ? (ve(t.id), t.id) : null;
3975
3944
  },
3976
3945
  setTheme: (e) => h.setUiTheme(e),
3977
- setMergeTags: X.setMergeTags,
3946
+ setMergeTags: J.setMergeTags,
3978
3947
  isDirty: () => h.state.isDirty,
3979
- create: Se.create,
3980
- load: Se.load,
3981
- save: Se.save,
3982
- renderCustomBlock: X.registry.renderCustomBlock,
3983
- getCustomBlockStylesheet: (e) => X.registry.getDefinition(e)?.stylesheet
3948
+ create: _e.create,
3949
+ load: _e.load,
3950
+ save: _e.save,
3951
+ renderCustomBlock: J.registry.renderCustomBlock,
3952
+ getCustomBlockStylesheet: (e) => J.registry.getDefinition(e)?.stylesheet
3984
3953
  }), (t, r) => (i(), y("div", {
3985
3954
  ref_key: "rootEl",
3986
- ref: D,
3955
+ ref: x,
3987
3956
  class: C(["tpl tpl:relative tpl:h-full", { "tpl:dark": S(h).state.darkMode }]),
3988
- "data-tpl-theme": S(X).resolvedTheme.value,
3989
- style: F(S(X).themeStyles.value),
3957
+ "data-tpl-theme": S(J).resolvedTheme.value,
3958
+ style: F(S(J).themeStyles.value),
3990
3959
  onDragover: r[9] ||= k(() => {}, ["prevent"]),
3991
3960
  onDrop: r[10] ||= k(() => {}, ["prevent"])
3992
3961
  }, [
3993
- H(Ii),
3994
- A("div", Ro, [
3995
- H(Ja, {
3962
+ V(Ni),
3963
+ A("div", Fo, [
3964
+ V(Ga, {
3996
3965
  editor: S(h),
3997
3966
  localization: n.config.localization,
3998
- core: S(X),
3999
- templates: S(x),
3967
+ core: S(J),
3968
+ templates: S(v),
4000
3969
  "show-template-name": e.config.templates?.nameField !== !1,
4001
- "test-email": S(L),
4002
- "version-history": S(me),
4003
- comments: S(B),
3970
+ "test-email": S(I),
3971
+ "version-history": S(Y),
3972
+ comments: S(R),
4004
3973
  collaboration: S(u),
4005
- ai: S(W),
3974
+ ai: S(U),
4006
3975
  header: n.config.header,
4007
3976
  "shadow-root": n.shadowRoot
4008
- }, V({ _: 2 }, [S(v) ? {
4009
- name: "left-extras",
4010
- fn: a(() => [H(S(se), {
4011
- part: "left",
4012
- cloud: S(v)
4013
- }, null, 8, ["cloud"])]),
4014
- key: "0"
4015
- } : void 0, S(v) ? {
4016
- name: "right-extras",
4017
- fn: a(() => [H(S(se), {
4018
- part: "right",
4019
- cloud: S(v)
4020
- }, null, 8, ["cloud"])]),
4021
- key: "1"
4022
- } : void 0]), 1032, [
3977
+ }, null, 8, [
4023
3978
  "editor",
4024
3979
  "localization",
4025
3980
  "core",
@@ -4033,49 +3988,49 @@ var xa = [
4033
3988
  "header",
4034
3989
  "shadow-root"
4035
3990
  ]),
4036
- c(H(Ki, { style: F(ye.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
3991
+ c(V(Ui, { style: F(me.value) }, null, 8, ["style"]), [[te, !S(h).state.previewMode]]),
4037
3992
  A("div", {
4038
- class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", ge.value]),
4039
- style: F(ye.value)
4040
- }, [A("div", zo, [A("div", Bo, [
4041
- H(M, { name: "tpl-preview-pill" }, {
4042
- default: a(() => [S(h).state.previewMode && !S(X).previewResolution.supersedesSamples.value ? (i(), y("div", Vo, [H(nr, {
4043
- "sample-mode": S(X).mergeTagSampleMode.value,
4044
- onChange: r[0] ||= (e) => S(X).mergeTagSampleMode.value = e
3993
+ class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto tpl:bg-[var(--tpl-canvas-bg)]", ue.value]),
3994
+ style: F(me.value)
3995
+ }, [A("div", Io, [A("div", Lo, [
3996
+ V(M, { name: "tpl-preview-pill" }, {
3997
+ default: a(() => [S(h).state.previewMode && !S(J).previewResolution.supersedesSamples.value ? (i(), y("div", Ro, [V(er, {
3998
+ "sample-mode": S(J).mergeTagSampleMode.value,
3999
+ onChange: r[0] ||= (e) => S(J).mergeTagSampleMode.value = e
4045
4000
  }, null, 8, ["sample-mode"])])) : w("", !0)]),
4046
4001
  _: 1
4047
4002
  }),
4048
- H(M, { name: "tpl-preview-pill" }, {
4049
- default: a(() => [S(h).state.previewMode && S(X).previewResolution.isConfigured ? (i(), y("div", Ho, [A("button", {
4003
+ V(M, { name: "tpl-preview-pill" }, {
4004
+ default: a(() => [S(h).state.previewMode && S(J).previewResolution.isConfigured ? (i(), y("div", zo, [A("button", {
4050
4005
  type: "button",
4051
- class: C([S(Zt), "tpl:px-4"]),
4006
+ class: C([S($t), "tpl:px-4"]),
4052
4007
  "data-testid": "refresh-preview",
4053
- title: S(X).t.previewResolution.refresh,
4054
- "aria-busy": S(X).previewResolution.isResolving.value,
4055
- onClick: r[1] ||= (e) => S(X).previewResolution.refresh()
4056
- }, [H(S($e), {
4008
+ title: S(J).t.previewResolution.refresh,
4009
+ "aria-busy": S(J).previewResolution.isResolving.value,
4010
+ onClick: r[1] ||= (e) => S(J).previewResolution.refresh()
4011
+ }, [V(S(tt), {
4057
4012
  size: 18,
4058
4013
  "stroke-width": 1.5,
4059
- class: C({ "tpl-spinner": S(X).previewResolution.isResolving.value })
4060
- }, null, 8, ["class"]), b(" " + j(S(X).t.previewResolution.refresh), 1)], 10, Uo)])) : w("", !0)]),
4014
+ class: C({ "tpl-spinner": S(J).previewResolution.isResolving.value })
4015
+ }, null, 8, ["class"]), b(" " + j(S(J).t.previewResolution.refresh), 1)], 10, Bo)])) : w("", !0)]),
4061
4016
  _: 1
4062
4017
  }),
4063
- H(M, { name: "tpl-preview-pill" }, {
4064
- default: a(() => [S(X).conditionPreview.hasHiddenBlocks.value && S(X).appliesConditionFilter.value ? (i(), y("button", {
4018
+ V(M, { name: "tpl-preview-pill" }, {
4019
+ default: a(() => [S(J).conditionPreview.hasHiddenBlocks.value && S(J).appliesConditionFilter.value ? (i(), y("button", {
4065
4020
  key: 0,
4066
4021
  type: "button",
4067
- class: C([S(Xt), "tpl:shadow-[var(--tpl-shadow-md)]"]),
4022
+ class: C([S(Qt), "tpl:shadow-[var(--tpl-shadow-md)]"]),
4068
4023
  "data-testid": "restore-hidden-blocks",
4069
- onClick: r[2] ||= (e) => S(X).conditionPreview.reset()
4070
- }, [H(S(qe), {
4024
+ onClick: r[2] ||= (e) => S(J).conditionPreview.reset()
4025
+ }, [V(S(Ye), {
4071
4026
  size: 16,
4072
4027
  "stroke-width": 2
4073
- }), b(" " + j(S(X).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : w("", !0)]),
4028
+ }), b(" " + j(S(J).t.blockSettings.restoreHiddenBlocks), 1)], 2)) : w("", !0)]),
4074
4029
  _: 1
4075
4030
  })
4076
- ])]), A("main", Wo, [H(Fi, {
4031
+ ])]), A("main", Vo, [V(Mi, {
4077
4032
  viewport: S(h).state.viewport,
4078
- content: S(X).previewResolution.content.value,
4033
+ content: S(J).previewResolution.content.value,
4079
4034
  "selected-block-id": S(h).state.selectedBlockId,
4080
4035
  "dark-mode": S(h).state.darkMode,
4081
4036
  "preview-mode": S(h).state.previewMode,
@@ -4088,30 +4043,30 @@ var xa = [
4088
4043
  "preview-mode",
4089
4044
  "onSelectBlock"
4090
4045
  ])])], 6),
4091
- e.config.branding === !1 ? w("", !0) : (i(), T(ga, {
4046
+ e.config.branding === !1 ? w("", !0) : (i(), T(pa, {
4092
4047
  key: 0,
4093
- "position-class": [ge.value]
4048
+ "position-class": [ue.value]
4094
4049
  }, null, 8, ["position-class"])),
4095
4050
  A("div", {
4096
4051
  class: "tpl-sr-only",
4097
4052
  role: "status",
4098
4053
  "aria-live": "polite",
4099
4054
  "aria-atomic": "true",
4100
- "aria-label": S(X).t.landmarks.reorderAnnouncements
4101
- }, j(S(X).keyboardReorder.announcement.value), 9, Go),
4102
- c(H(la, {
4103
- tab: fe.value,
4104
- "onUpdate:tab": r[3] ||= (e) => fe.value = e,
4105
- style: F(ye.value),
4055
+ "aria-label": S(J).t.landmarks.reorderAnnouncements
4056
+ }, j(S(J).keyboardReorder.announcement.value), 9, Ho),
4057
+ c(V(oa, {
4058
+ tab: le.value,
4059
+ "onUpdate:tab": r[3] ||= (e) => le.value = e,
4060
+ style: F(me.value),
4106
4061
  "selected-block": S(h).selectedBlock.value ? S(_).displayBlock(S(h).selectedBlock.value) : null,
4107
4062
  settings: S(_).settings.value,
4108
- "shifted-left": he.value,
4063
+ "shifted-left": X.value,
4109
4064
  onUpdateBlock: r[4] ||= (e) => S(h).updateBlock(S(h).state.selectedBlockId, e),
4110
4065
  onDeleteBlock: r[5] ||= () => {
4111
- S(h).state.selectedBlockId && S(X).blockActions.deleteBlock(S(h).state.selectedBlockId);
4066
+ S(h).state.selectedBlockId && S(J).blockActions.deleteBlock(S(h).state.selectedBlockId);
4112
4067
  },
4113
4068
  onDuplicateBlock: r[6] ||= () => {
4114
- S(h).selectedBlock.value && S(X).blockActions.duplicateBlock(S(h).selectedBlock.value);
4069
+ S(h).selectedBlock.value && S(J).blockActions.duplicateBlock(S(h).selectedBlock.value);
4115
4070
  },
4116
4071
  onUpdateSettings: r[7] ||= (e) => S(h).updateSettings(e)
4117
4072
  }, null, 8, [
@@ -4123,16 +4078,16 @@ var xa = [
4123
4078
  ]), [[te, !S(h).state.previewMode]]),
4124
4079
  A("div", {
4125
4080
  ref_key: "topChrome",
4126
- ref: _e,
4081
+ ref: de,
4127
4082
  class: "tpl-top-chrome tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40"
4128
- }, [S(me)?.isAvailable.value ? (i(), T(S(Y), {
4083
+ }, [S(Y)?.isAvailable.value ? (i(), T(S(ie), {
4129
4084
  key: 0,
4130
- feature: S(me)
4131
- }, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(Nr, {
4085
+ feature: S(Y)
4086
+ }, null, 8, ["feature"])) : w("", !0), e.config.localization ? (i(), T(Ar, {
4132
4087
  key: 1,
4133
4088
  editor: S(h),
4134
4089
  locales: e.config.localization.locales,
4135
- feature: S(K),
4090
+ feature: S(W),
4136
4091
  change: m.value
4137
4092
  }, null, 8, [
4138
4093
  "editor",
@@ -4142,22 +4097,22 @@ var xa = [
4142
4097
  ])) : w("", !0)], 512)
4143
4098
  ]),
4144
4099
  A("div", {
4145
- ref: (e) => S(X).popoverRoot.value = e,
4100
+ ref: (e) => S(J).popoverRoot.value = e,
4146
4101
  class: "tpl-popover-root"
4147
4102
  }, null, 512),
4148
- H(ho),
4149
- H(Io),
4150
- S(O)?.isAvailable.value ? (i(), T(S(N), {
4103
+ V(fo),
4104
+ V(No),
4105
+ S(D)?.isAvailable.value ? (i(), T(S(O), {
4151
4106
  key: 0,
4152
- feature: S(O)
4107
+ feature: S(D)
4153
4108
  }, null, 8, ["feature"])) : w("", !0),
4154
- e.config.media && S(ee) ? (i(), T(S(I), {
4109
+ e.config.media && S(N) ? (i(), T(S(ee), {
4155
4110
  key: 1,
4156
- feature: S(ee),
4111
+ feature: S(N),
4157
4112
  provider: e.config.media,
4158
4113
  locale: e.config.locale,
4159
- "ui-theme": S(X).resolvedTheme.value,
4160
- "popover-target": S(X).popoverRoot.value
4114
+ "ui-theme": S(J).resolvedTheme.value,
4115
+ "popover-target": S(J).popoverRoot.value
4161
4116
  }, null, 8, [
4162
4117
  "feature",
4163
4118
  "provider",
@@ -4165,60 +4120,64 @@ var xa = [
4165
4120
  "ui-theme",
4166
4121
  "popover-target"
4167
4122
  ])) : w("", !0),
4168
- S(L)?.isAvailable.value ? (i(), T(S(R), {
4123
+ S(I)?.isAvailable.value ? (i(), T(S(L), {
4169
4124
  key: 2,
4170
- feature: S(L)
4125
+ feature: S(I)
4171
4126
  }, null, 8, ["feature"])) : w("", !0),
4172
- S(B)?.isAvailable.value ? (i(), T(S(U), {
4127
+ S(R)?.isAvailable.value ? (i(), T(S(B), {
4173
4128
  key: 3,
4174
- feature: S(B)
4129
+ feature: S(R)
4175
4130
  }, null, 8, ["feature"])) : w("", !0),
4176
- S(W) ? (i(), T(S(ne), {
4131
+ S(U) ? (i(), T(S(H), {
4177
4132
  key: 4,
4178
- feature: S(W)
4133
+ feature: S(U)
4179
4134
  }, null, 8, ["feature"])) : w("", !0),
4180
- S(u) || q.value ? (i(), T(mr, { key: 5 }, {
4181
- default: a(() => [S(u) ? (i(), T(S(ae), {
4135
+ S(u) || G.value ? (i(), T(dr, { key: 5 }, {
4136
+ default: a(() => [S(u) ? (i(), T(S(q), {
4182
4137
  key: 0,
4183
4138
  feature: S(u)
4184
- }, null, 8, ["feature"])) : w("", !0), q.value ? (i(), T(S(ie), {
4139
+ }, null, 8, ["feature"])) : w("", !0), G.value ? (i(), T(S(K), {
4185
4140
  key: 1,
4186
- notice: q.value,
4187
- onDismiss: r[8] ||= (e) => q.value = null
4141
+ notice: G.value,
4142
+ onDismiss: r[8] ||= (e) => G.value = null
4188
4143
  }, null, 8, ["notice"])) : w("", !0)]),
4189
4144
  _: 1
4190
4145
  })) : w("", !0),
4191
- e.cloud && S(v) && S(pe) ? (i(), T(S(oe), {
4192
- key: 6,
4193
- editor: S(h),
4194
- core: S(X),
4195
- runtime: e.cloud,
4196
- cloud: S(v),
4197
- ready: S(pe)
4198
- }, null, 8, [
4199
- "editor",
4200
- "core",
4201
- "runtime",
4202
- "cloud",
4203
- "ready"
4204
- ])) : w("", !0),
4205
- S(xe) ? (i(), T(ma, { key: 7 })) : w("", !0)
4206
- ], 46, Lo));
4146
+ S(ge) ? (i(), T(da, { key: 6 })) : w("", !0)
4147
+ ], 46, Po));
4207
4148
  }
4208
- }), [["__scopeId", "data-v-0dfeea75"]]), qo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
4209
- function Jo(e) {
4210
- return e.replace(qo, "");
4149
+ }), [["__scopeId", "data-v-defb8319"]]), Wo = /@import\s*(?:url\(\s*(?:"[^"]*"|'[^']*'|[^)]*)\s*\)|"[^"]*"|'[^']*')[^;]*;/g;
4150
+ function Go(e) {
4151
+ return e.replace(Wo, "");
4152
+ }
4153
+ // src/utils/preRenderCustomBlocks.ts
4154
+ async function Ko(e, t) {
4155
+ let n = async (e) => {
4156
+ if (Ee(e)) {
4157
+ let n = e;
4158
+ try {
4159
+ n.renderedHtml = await t.renderCustomBlock(n);
4160
+ } catch {
4161
+ n.renderedHtml = `<!-- Custom block render error: ${n.customType} -->`;
4162
+ }
4163
+ let r = t.getCustomBlockStylesheet(n.customType);
4164
+ r?.trim() ? n.renderedStylesheet = r : delete n.renderedStylesheet;
4165
+ }
4166
+ if (ce(e)) for (let t of e.children) for (let e of t) await n(e);
4167
+ else if (q(e)) for (let t of e.children) await n(t);
4168
+ };
4169
+ for (let t of e.blocks) await n(t);
4211
4170
  }
4212
4171
  // src/utils/renderProvider.ts
4213
- function Yo(e) {
4172
+ function qo(e) {
4214
4173
  return {
4215
4174
  customFonts: e.customFonts.value,
4216
4175
  defaultFallback: e.defaultFallback.value
4217
4176
  };
4218
4177
  }
4219
- async function Xo(e, t) {
4220
- let n = Te(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? ke(n, r) : n, a = e.getLayout?.(), o = a ? Ne(ke(a, r, { missing: "default" }), i) : i;
4221
- return a || (Me(o), Oe(o)), await cr(o, {
4178
+ async function Jo(e, t) {
4179
+ let n = fe(e.getContent()), r = t?.locale ?? Z(n), i = t?.locale !== void 0 || n.settings?.locales?.length ? ge(n, r) : n, a = e.getLayout?.(), o = a ? be(ge(a, r, { missing: "default" }), i) : i;
4180
+ return a || (ye(o), he(o)), await Ko(o, {
4222
4181
  renderCustomBlock: e.renderCustomBlock,
4223
4182
  getCustomBlockStylesheet: e.getCustomBlockStylesheet
4224
4183
  }), {
@@ -4226,7 +4185,7 @@ async function Xo(e, t) {
4226
4185
  fonts: e.getFonts()
4227
4186
  };
4228
4187
  }
4229
- function Zo(e) {
4188
+ function Yo(e) {
4230
4189
  async function t(t) {
4231
4190
  let n = e.provider, r = n?.toMjml?.bind(n);
4232
4191
  return r ? r(await e.buildPayload(t)) : e.renderLocalMjml(t);
@@ -4252,98 +4211,99 @@ function Zo(e) {
4252
4211
  };
4253
4212
  }
4254
4213
  // \0virtual:editor-css
4255
- var Qo = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-3343ae7d]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-3343ae7d],.tpl-locale-chip[data-state=stale][data-v-3343ae7d],.tpl-locale-chip[data-state=tags-differ][data-v-3343ae7d]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable],.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:empty:before,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:focus,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-f91fe466] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-f91fe466] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-3{width:calc(calc(var(--tpl-base-size) / 4) * 3);height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-32{height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:h-44{height:calc(calc(var(--tpl-base-size) / 4) * 44)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-\\[38px\\]{height:38px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/3{width:33.3333%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-2\\/3{width:66.6667%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-3\\/4{width:75%}.tpl\\:w-5\\/6{width:83.3333%}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-12{width:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-28{width:calc(calc(var(--tpl-base-size) / 4) * 28)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-36{width:calc(calc(var(--tpl-base-size) / 4) * 36)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[38px\\]{width:38px}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[600px\\]{max-width:600px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-6{gap:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:p-8{padding:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-8{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-lg{font-size:calc(1.125 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.75 / 1.125))}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1));--tpl-panel-transition:var(--tpl-user-panel-transition,.24s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}.tpl-body,.tpl-right-sidebar{transition:none}.tpl-panel-enter-active,.tpl-panel-leave-active{animation:none}}.tpl-body{transition:left var(--tpl-panel-transition),right var(--tpl-panel-transition)}.tpl-right-sidebar{transition:right var(--tpl-panel-transition)}.tpl-panel-enter-active{animation:var(--tpl-panel-transition) both tpl-panel-in}.tpl-panel-leave-active{animation:var(--tpl-panel-transition) both tpl-panel-out}@keyframes tpl-panel-in{0%{transform:translate(100%)}to{transform:none}}@keyframes tpl-panel-out{0%{transform:none}to{transform:translate(100%)}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-actions{display:contents}.tpl-header-timestamp{max-width:100%}.tpl-header:not([data-status-label=true]) .tpl-status-label{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-0dfeea75]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-0dfeea75]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-0dfeea75],.tpl-preview-pill-leave-to[data-v-0dfeea75]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-0dfeea75],.tpl-preview-pill-leave-from[data-v-0dfeea75]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-9b071249]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-9b071249]:hover,.tpl-language-row[data-v-9b071249]:focus-within,[role=menuitem][data-v-9b071249]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-9b071249]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-9b071249]{background:var(--tpl-bg)}[aria-disabled=true][data-v-9b071249]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-9b071249]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-9b071249]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-9b071249],.tpl-language-row:focus-within .tpl-language-actions[data-v-9b071249],.tpl-language-actions[aria-expanded=true][data-v-9b071249]{opacity:1}}.tpl-language-actions[data-v-9b071249]{transition:opacity var(--tpl-transition)}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-input-wrapper[data-v-75eacb94]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-75eacb94]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-75eacb94]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-75eacb94]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-75eacb94]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-75eacb94]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-75eacb94]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-75eacb94]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-75eacb94],.tpl-comment-reply-card[data-v-75eacb94]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-75eacb94],.tpl-resolve-leave-active[data-v-75eacb94]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-75eacb94],.tpl-resolve-leave-to[data-v-75eacb94]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-75eacb94]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-75eacb94]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-75eacb94],.tpl-replies-leave-active[data-v-75eacb94]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-75eacb94],.tpl-replies-leave-to[data-v-75eacb94]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-51fb7448]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-51fb7448]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-51fb7448]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", $o = null;
4256
- function es() {
4257
- if ($o === null) {
4214
+ var Xo = "@import\"https://fonts.bunny.net/css?family=geist:400,500,600\";.tpl-loading-track[data-v-e61f3b63]{height:3px;width:100%;border-radius:9999px;background:linear-gradient(90deg,transparent 0%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 15%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 30%,var(--tpl-primary) 50%,color-mix(in srgb,var(--tpl-primary) 30%,transparent) 70%,color-mix(in srgb,var(--tpl-primary) 10%,transparent) 85%,transparent 100%);background-size:200% 100%;animation:tpl-loading-flow-e61f3b63 3s ease-in-out infinite}@keyframes tpl-loading-flow-e61f3b63{0%{background-position:100% 0}to{background-position:-100% 0}}@media(prefers-reduced-motion:reduce){.tpl-loading-track[data-v-e61f3b63]{animation:none;background-position:50% 0}}.tpl-locale-chip[data-state=changed][data-v-1ea4fa72]{color:var(--tpl-secondary)}.tpl-locale-chip[data-state=missing][data-v-1ea4fa72],.tpl-locale-chip[data-state=stale][data-v-1ea4fa72],.tpl-locale-chip[data-state=tags-differ][data-v-1ea4fa72]{color:var(--tpl-warning)}.tpl-block--locale-hidden>.tpl-email-surface[data-v-872194d3]{opacity:.35}.tpl-block--idle[data-v-872194d3]{outline:1.5px dashed color-mix(in srgb,var(--tpl-primary) 30%,transparent);outline-offset:-1px;transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--idle[data-v-872194d3]:hover{outline:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent);outline-offset:-1px;box-shadow:0 0 8px color-mix(in srgb,var(--tpl-primary) 8%,transparent)}.tpl-block--picked[data-v-872194d3]{outline:2px solid var(--tpl-primary);outline-offset:-1px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tpl-primary) 18%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block--selected[data-v-872194d3]{outline:2px solid color-mix(in srgb,var(--tpl-primary) 60%,transparent);outline-offset:-1px;box-shadow:0 0 12px color-mix(in srgb,var(--tpl-primary) 15%,transparent);transition:outline .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1)}.tpl-block-action-btn[data-v-872194d3]{color:var(--tpl-chrome-text-muted);background-color:transparent}.tpl-block-action-btn[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-chrome-text)}.tpl-block-action-btn[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-delete-btn[data-v-872194d3]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-condition-toggle[data-v-872194d3]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-condition-toggle[data-v-872194d3]:active{transform:scale(.9)}.tpl-block-hidden-overlay[data-v-872194d3]{background-color:color-mix(in srgb,var(--tpl-bg) 60%,transparent)}.tpl-block-agent-highlight[data-v-872194d3]{outline:2px solid var(--tpl-secondary);outline-offset:-1px;animation:tpl-agent-highlight-872194d3 2s ease-out forwards}@keyframes tpl-agent-highlight-872194d3{0%,50%{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){.tpl-block-agent-highlight[data-v-872194d3]{animation:none}}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable],.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]{outline:none;cursor:text;min-width:calc(2 * var(--tpl-base-size))}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:empty:before,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:empty:before{content:attr(data-placeholder);color:var(--tpl-text-dim);pointer-events:none}.tpl-table-editable[data-v-73b9f5e5] th[contenteditable]:focus,.tpl-table-editable[data-v-73b9f5e5] td[contenteditable]:focus{outline:2px solid var(--tpl-primary);outline-offset:-2px;border-radius:1px}.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface:not(.tpl-email-surface *){filter:invert(1) hue-rotate(180deg)}[data-v-1ff49ed3] .tpl-email-surface{transition:filter .3s ease}.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface img{filter:invert(1) hue-rotate(180deg)}.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface.tpl-has-bg-image,.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface .tpl-has-bg-image{position:relative;isolation:isolate;background-image:none!important}.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface.tpl-has-bg-image:before,.tpl-canvas--dark-mode[data-v-1ff49ed3] .tpl-email-surface .tpl-has-bg-image:before{content:\"\";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--tpl-block-bg-layer, none);filter:invert(1) hue-rotate(180deg)}.tpl-icon-enter-active[data-v-632aa74f],.tpl-icon-leave-active[data-v-632aa74f]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-632aa74f],.tpl-icon-leave-to[data-v-632aa74f]{opacity:0;transform:scale(.8)}.tpl-dark-mode-toggle[data-v-632aa74f]:hover{background-color:var(--tpl-bg-hover)}.tpl-dark-mode-toggle[data-v-632aa74f]:active{transform:scale(.92)}.tpl-icon-enter-active[data-v-eef7b2ca],.tpl-icon-leave-active[data-v-eef7b2ca]{transition:opacity .12s cubic-bezier(.16,1,.3,1),transform .12s cubic-bezier(.16,1,.3,1)}.tpl-icon-enter-from[data-v-eef7b2ca],.tpl-icon-leave-to[data-v-eef7b2ca]{opacity:0;transform:scale(.8)}.tpl-preview-toggle[data-v-eef7b2ca]:hover{background-color:var(--tpl-bg-hover)}.tpl-preview-toggle[data-v-eef7b2ca]:active{transform:scale(.92)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--tpl-radius-sm:calc(.25 * var(--tpl-base-size));--tpl-radius-md:calc(.375 * var(--tpl-base-size));--tpl-radius-lg:calc(.5 * var(--tpl-base-size));--tpl-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--tpl-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--tpl-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--tpl-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--tpl-radius:calc(.25 * var(--tpl-base-size))}}.tpl\\:pointer-events-auto{pointer-events:auto}.tpl\\:pointer-events-none{pointer-events:none}.tpl\\:invisible{visibility:hidden}.tpl\\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl\\:absolute{position:absolute}.tpl\\:fixed{position:fixed}.tpl\\:relative{position:relative}.tpl\\:sticky{position:sticky}.tpl\\:inset-0{inset:0}.tpl\\:inset-x-0{inset-inline:0}.tpl\\:inset-y-1{inset-block:calc(var(--tpl-base-size) / 4)}.tpl\\:inset-s-full{inset-inline-start:100%}.tpl\\:inset-e-1{inset-inline-end:calc(var(--tpl-base-size) / 4)}.tpl\\:-top-0\\.5{top:calc(calc(var(--tpl-base-size) / 4) * -.5)}.tpl\\:-top-1{top:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:-top-2{top:calc(calc(var(--tpl-base-size) / 4) * -2)}.tpl\\:top-0{top:0}.tpl\\:top-1{top:calc(var(--tpl-base-size) / 4)}.tpl\\:top-1\\.5{top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:top-1\\/2{top:50%}.tpl\\:top-2{top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:top-14{top:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:top-16{top:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:top-full{top:100%}.tpl\\:right-0{right:0}.tpl\\:right-1{right:calc(var(--tpl-base-size) / 4)}.tpl\\:right-1\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:right-2{right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:right-2\\.5{right:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:right-\\[320px\\]{right:320px}.tpl\\:right-\\[360px\\]{right:360px}.tpl\\:right-\\[680px\\]{right:680px}.tpl\\:bottom-0{bottom:0}.tpl\\:bottom-1{bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:bottom-10{bottom:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:bottom-full{bottom:100%}.tpl\\:-left-1{left:calc(calc(var(--tpl-base-size) / 4) * -1)}.tpl\\:left-0{left:0}.tpl\\:left-1\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:left-1\\/2{left:50%}.tpl\\:left-2\\.5{left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:left-3{left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:left-5{left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:left-12{left:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:left-full{left:100%}.tpl\\:z-10{z-index:10}.tpl\\:z-20{z-index:20}.tpl\\:z-40{z-index:40}.tpl\\:z-50{z-index:50}.tpl\\:z-\\[4\\]{z-index:4}.tpl\\:z-\\[5\\]{z-index:5}.tpl\\:z-\\[60\\]{z-index:60}.tpl\\:z-\\[100\\]{z-index:100}.tpl\\:z-\\[10000\\]{z-index:10000}.tpl\\:m-0{margin:0}.tpl\\:m-6{margin:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-0\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mx-1{margin-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:mx-1\\.5{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mx-3{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mx-4{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mx-6{margin-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:mx-auto{margin-inline:auto}.tpl\\:ms-2{margin-inline-start:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-0\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:mt-1{margin-top:calc(var(--tpl-base-size) / 4)}.tpl\\:mt-1\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mt-2{margin-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mt-3{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mt-3\\.5{margin-top:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mt-4{margin-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:-mr-1\\.5{margin-right:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:mr-2{margin-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-0{margin-bottom:0}.tpl\\:mb-1{margin-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:mb-1\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:mb-2{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:mb-2\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:mb-3{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:mb-3\\.5{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:mb-4{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:mb-px{margin-bottom:1px}.tpl\\:-ml-1\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * -1.5)}.tpl\\:-ml-48{margin-left:calc(calc(var(--tpl-base-size) / 4) * -48)}.tpl\\:ml-0{margin-left:0}.tpl\\:ml-0\\.5{margin-left:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:ml-1{margin-left:calc(var(--tpl-base-size) / 4)}.tpl\\:ml-5{margin-left:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:ml-auto{margin-left:auto}.tpl\\:box-border{box-sizing:border-box}.tpl\\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.tpl\\:\\!flex{display:flex!important}.tpl\\:block{display:block}.tpl\\:contents{display:contents}.tpl\\:flex{display:flex}.tpl\\:grid{display:grid}.tpl\\:inline{display:inline}.tpl\\:inline-block{display:inline-block}.tpl\\:inline-flex{display:inline-flex}.tpl\\:aspect-square{aspect-ratio:1}.tpl\\:size-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5);height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:size-2{width:calc(calc(var(--tpl-base-size) / 4) * 2);height:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:size-3{width:calc(calc(var(--tpl-base-size) / 4) * 3);height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:size-4{width:calc(calc(var(--tpl-base-size) / 4) * 4);height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:size-4\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 4.5);height:calc(calc(var(--tpl-base-size) / 4) * 4.5)}.tpl\\:size-5{width:calc(calc(var(--tpl-base-size) / 4) * 5);height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:size-6{width:calc(calc(var(--tpl-base-size) / 4) * 6);height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:size-7{width:calc(calc(var(--tpl-base-size) / 4) * 7);height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:size-8{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:size-10{width:calc(calc(var(--tpl-base-size) / 4) * 10);height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:size-16{width:calc(calc(var(--tpl-base-size) / 4) * 16);height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:size-full{width:100%;height:100%}.tpl\\:h-0{height:0}.tpl\\:h-1\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:h-2\\.5{height:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:h-3{height:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:h-4{height:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:h-5{height:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:h-6{height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:h-7{height:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:h-8{height:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:h-9{height:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:h-10{height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:h-12{height:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:h-14{height:calc(calc(var(--tpl-base-size) / 4) * 14)}.tpl\\:h-16{height:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:h-\\[32px\\]{height:32px}.tpl\\:h-\\[38px\\]{height:38px}.tpl\\:h-full{height:100%}.tpl\\:max-h-24{max-height:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:max-h-32{max-height:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:max-h-48{max-height:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:max-h-56{max-height:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:max-h-64{max-height:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:max-h-\\[50vh\\]{max-height:50vh}.tpl\\:max-h-\\[60vh\\]{max-height:60vh}.tpl\\:max-h-\\[80\\%\\]{max-height:80%}.tpl\\:max-h-\\[80vh\\]{max-height:80vh}.tpl\\:max-h-\\[90\\%\\]{max-height:90%}.tpl\\:max-h-\\[90vh\\]{max-height:90vh}.tpl\\:max-h-full{max-height:100%}.tpl\\:min-h-0{min-height:0}.tpl\\:min-h-6{min-height:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-h-10{min-height:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:min-h-20{min-height:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:min-h-\\[1em\\]{min-height:1em}.tpl\\:min-h-\\[34px\\]{min-height:34px}.tpl\\:min-h-\\[44px\\]{min-height:44px}.tpl\\:min-h-\\[48px\\]{min-height:48px}.tpl\\:min-h-\\[60px\\]{min-height:60px}.tpl\\:min-h-\\[68px\\]{min-height:68px}.tpl\\:min-h-\\[80px\\]{min-height:80px}.tpl\\:min-h-\\[100px\\]{min-height:100px}.tpl\\:min-h-\\[120px\\]{min-height:120px}.tpl\\:min-h-\\[150px\\]{min-height:150px}.tpl\\:min-h-\\[400px\\]{min-height:400px}.tpl\\:w-1\\.5{width:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:w-1\\/2{width:50%}.tpl\\:w-1\\/4{width:25%}.tpl\\:w-3{width:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:w-7{width:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:w-8{width:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:w-9{width:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:w-10{width:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:w-16{width:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:w-20{width:calc(calc(var(--tpl-base-size) / 4) * 20)}.tpl\\:w-24{width:calc(calc(var(--tpl-base-size) / 4) * 24)}.tpl\\:w-32{width:calc(calc(var(--tpl-base-size) / 4) * 32)}.tpl\\:w-40{width:calc(calc(var(--tpl-base-size) / 4) * 40)}.tpl\\:w-48{width:calc(calc(var(--tpl-base-size) / 4) * 48)}.tpl\\:w-52{width:calc(calc(var(--tpl-base-size) / 4) * 52)}.tpl\\:w-56{width:calc(calc(var(--tpl-base-size) / 4) * 56)}.tpl\\:w-64{width:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:w-72{width:calc(calc(var(--tpl-base-size) / 4) * 72)}.tpl\\:w-80{width:calc(calc(var(--tpl-base-size) / 4) * 80)}.tpl\\:w-96{width:calc(calc(var(--tpl-base-size) / 4) * 96)}.tpl\\:w-\\[38px\\]{width:38px}.tpl\\:w-\\[300px\\]{width:300px}.tpl\\:w-\\[320px\\]{width:320px}.tpl\\:w-\\[360px\\]{width:360px}.tpl\\:w-\\[400px\\]{width:400px}.tpl\\:w-\\[420px\\]{width:420px}.tpl\\:w-\\[1000px\\]{width:1000px}.tpl\\:w-\\[min\\(420px\\,92vw\\)\\]{width:min(420px,92vw)}.tpl\\:w-full{width:100%}.tpl\\:w-px{width:1px}.tpl\\:max-w-2xl{max-width:calc(42 * var(--tpl-base-size))}.tpl\\:max-w-3xl{max-width:calc(48 * var(--tpl-base-size))}.tpl\\:max-w-\\[220px\\]{max-width:220px}.tpl\\:max-w-\\[240px\\]{max-width:240px}.tpl\\:max-w-\\[260px\\]{max-width:260px}.tpl\\:max-w-\\[320px\\]{max-width:320px}.tpl\\:max-w-\\[calc\\(100\\%_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100% - 2 * var(--tpl-base-size))}.tpl\\:max-w-\\[calc\\(100vw_-_2\\*var\\(--tpl-base-size\\)\\)\\]{max-width:calc(100vw - 2 * var(--tpl-base-size))}.tpl\\:max-w-full{max-width:100%}.tpl\\:max-w-md{max-width:calc(28 * var(--tpl-base-size))}.tpl\\:max-w-sm{max-width:calc(24 * var(--tpl-base-size))}.tpl\\:min-w-0{min-width:0}.tpl\\:min-w-6{min-width:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:min-w-\\[20px\\]{min-width:20px}.tpl\\:min-w-\\[200px\\]{min-width:200px}.tpl\\:flex-1{flex:1}.tpl\\:flex-shrink-0,.tpl\\:shrink-0{flex-shrink:0}.tpl\\:grow{flex-grow:1}.tpl\\:basis-64{flex-basis:calc(calc(var(--tpl-base-size) / 4) * 64)}.tpl\\:-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-x-4{--tw-translate-x:calc(calc(var(--tpl-base-size) / 4) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-2{--tw-translate-y:calc(calc(var(--tpl-base-size) / 4) * -2);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-0{--tw-translate-y:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:translate-y-1{--tw-translate-y:calc(var(--tpl-base-size) / 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.tpl\\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:-rotate-90{rotate:-90deg}.tpl\\:rotate-0{rotate:0deg}.tpl\\:rotate-45{rotate:45deg}.tpl\\:rotate-90{rotate:90deg}.tpl\\:rotate-180{rotate:180deg}.tpl\\:animate-pulse{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.tpl\\:animate-spin{animation:1s linear infinite spin}.tpl\\:cursor-default{cursor:default}.tpl\\:cursor-grab{cursor:grab}.tpl\\:cursor-help{cursor:help}.tpl\\:cursor-not-allowed{cursor:not-allowed}.tpl\\:cursor-pointer{cursor:pointer}.tpl\\:resize-none{resize:none}.tpl\\:resize-y{resize:vertical}.tpl\\:list-disc{list-style-type:disc}.tpl\\:list-none{list-style-type:none}.tpl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.tpl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tpl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.tpl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.tpl\\:grid-cols-\\[minmax\\(0\\,1fr\\)_auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.tpl\\:flex-col{flex-direction:column}.tpl\\:flex-row-reverse{flex-direction:row-reverse}.tpl\\:flex-wrap{flex-wrap:wrap}.tpl\\:items-center{align-items:center}.tpl\\:items-end{align-items:flex-end}.tpl\\:items-start{align-items:flex-start}.tpl\\:items-stretch{align-items:stretch}.tpl\\:justify-between{justify-content:space-between}.tpl\\:justify-center{justify-content:center}.tpl\\:justify-end{justify-content:flex-end}.tpl\\:gap-0{gap:0}.tpl\\:gap-0\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-1{gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-1\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-2{gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:gap-2\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:gap-3{gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-3\\.5{gap:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:gap-4{gap:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:gap-5{gap:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:gap-10{gap:calc(calc(var(--tpl-base-size) / 4) * 10)}:where(.tpl\\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--tpl-base-size) / 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--tpl-base-size) / 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.tpl\\:space-y-3\\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(calc(var(--tpl-base-size) / 4) * 3.5) * calc(1 - var(--tw-space-y-reverse)))}.tpl\\:gap-x-1{column-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-x-3{column-gap:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:gap-x-6{column-gap:calc(calc(var(--tpl-base-size) / 4) * 6)}:where(.tpl\\:-space-x-1\\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(calc(var(--tpl-base-size) / 4) * -1.5) * calc(1 - var(--tw-space-x-reverse)))}.tpl\\:gap-y-0\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:gap-y-1{row-gap:calc(var(--tpl-base-size) / 4)}.tpl\\:gap-y-1\\.5{row-gap:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:gap-y-2{row-gap:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:self-end{align-self:flex-end}.tpl\\:self-start{align-self:flex-start}.tpl\\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tpl\\:overflow-auto{overflow:auto}.tpl\\:overflow-hidden{overflow:hidden}.tpl\\:overflow-x-auto{overflow-x:auto}.tpl\\:overflow-y-auto{overflow-y:auto}.tpl\\:rounded{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-\\[calc\\(var\\(--tpl-radius-sm\\)-2px\\)\\]{border-radius:calc(var(--tpl-radius-sm) - 2px)}.tpl\\:rounded-\\[var\\(--tpl-radius\\)\\]{border-radius:var(--tpl-radius)}.tpl\\:rounded-\\[var\\(--tpl-radius-lg\\)\\]{border-radius:var(--tpl-radius-lg)}.tpl\\:rounded-\\[var\\(--tpl-radius-md\\)\\]{border-radius:var(--tpl-radius-md)}.tpl\\:rounded-\\[var\\(--tpl-radius-sm\\)\\]{border-radius:var(--tpl-radius-sm)}.tpl\\:rounded-full{border-radius:2147483647px}.tpl\\:rounded-lg{border-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-md{border-radius:calc(.375 * var(--tpl-base-size))}.tpl\\:rounded-sm{border-radius:calc(.25 * var(--tpl-base-size))}.tpl\\:rounded-xl{border-radius:calc(.75 * var(--tpl-base-size))}.tpl\\:rounded-l-\\[var\\(--tpl-radius-sm\\)\\]{border-top-left-radius:var(--tpl-radius-sm);border-bottom-left-radius:var(--tpl-radius-sm)}.tpl\\:rounded-tl-lg{border-top-left-radius:calc(.5 * var(--tpl-base-size))}.tpl\\:rounded-r-\\[var\\(--tpl-radius-sm\\)\\]{border-top-right-radius:var(--tpl-radius-sm);border-bottom-right-radius:var(--tpl-radius-sm)}.tpl\\:rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.tpl\\:border{border-style:var(--tw-border-style);border-width:1px}.tpl\\:border-0{border-style:var(--tw-border-style);border-width:0}.tpl\\:border-2{border-style:var(--tw-border-style);border-width:2px}.tpl\\:border-x-0{border-inline-style:var(--tw-border-style);border-inline-width:0}.tpl\\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.tpl\\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.tpl\\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.tpl\\:border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.tpl\\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.tpl\\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.tpl\\:border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.tpl\\:border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.tpl\\:border-dashed{--tw-border-style:dashed;border-style:dashed}.tpl\\:border-none{--tw-border-style:none;border-style:none}.tpl\\:border-\\[var\\(--tpl-bg\\)\\]{border-color:var(--tpl-bg)}.tpl\\:border-\\[var\\(--tpl-border\\)\\]{border-color:var(--tpl-border)}.tpl\\:border-\\[var\\(--tpl-border-light\\)\\]{border-color:var(--tpl-border-light)}.tpl\\:border-\\[var\\(--tpl-danger\\)\\]{border-color:var(--tpl-danger)}.tpl\\:border-\\[var\\(--tpl-primary\\)\\]{border-color:var(--tpl-primary)}.tpl\\:border-\\[var\\(--tpl-primary-hover\\)\\]{border-color:var(--tpl-primary-hover)}.tpl\\:border-\\[var\\(--tpl-warning\\)\\]{border-color:var(--tpl-warning)}.tpl\\:border-transparent{border-color:#0000}.tpl\\:border-l-\\[var\\(--tpl-primary\\)\\]{border-left-color:var(--tpl-primary)}.tpl\\:border-l-transparent{border-left-color:#0000}.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:var(--tpl-bg)}@supports (color:color-mix(in lab,red,red)){.tpl\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-bg\\)_90\\%\\,transparent\\)\\]{background-color:color-mix(in srgb,var(--tpl-bg) 90%,transparent)}}.tpl\\:bg-\\[var\\(--tpl-bg\\)\\]{background-color:var(--tpl-bg)}.tpl\\:bg-\\[var\\(--tpl-bg-active\\)\\]{background-color:var(--tpl-bg-active)}.tpl\\:bg-\\[var\\(--tpl-bg-elevated\\)\\]{background-color:var(--tpl-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-bg-hover\\)\\]{background-color:var(--tpl-bg-hover)}.tpl\\:bg-\\[var\\(--tpl-border\\)\\]{background-color:var(--tpl-border)}.tpl\\:bg-\\[var\\(--tpl-canvas-bg\\)\\]{background-color:var(--tpl-canvas-bg)}.tpl\\:bg-\\[var\\(--tpl-chrome-bg-elevated\\)\\]{background-color:var(--tpl-chrome-bg-elevated)}.tpl\\:bg-\\[var\\(--tpl-chrome-primary-light\\)\\]{background-color:var(--tpl-chrome-primary-light)}.tpl\\:bg-\\[var\\(--tpl-danger\\)\\]{background-color:var(--tpl-danger)}.tpl\\:bg-\\[var\\(--tpl-danger-light\\)\\]{background-color:var(--tpl-danger-light)}.tpl\\:bg-\\[var\\(--tpl-primary\\)\\]{background-color:var(--tpl-primary)}.tpl\\:bg-\\[var\\(--tpl-primary-light\\)\\]{background-color:var(--tpl-primary-light)}.tpl\\:bg-\\[var\\(--tpl-secondary-light\\)\\]{background-color:var(--tpl-secondary-light)}.tpl\\:bg-\\[var\\(--tpl-text-dim\\)\\]{background-color:var(--tpl-text-dim)}.tpl\\:bg-\\[var\\(--tpl-warning-light\\)\\]{background-color:var(--tpl-warning-light)}.tpl\\:bg-black\\/30{background-color:oklab(0% none none/.3)}.tpl\\:bg-transparent{background-color:#0000}.tpl\\:object-contain{object-fit:contain}.tpl\\:object-cover{object-fit:cover}.tpl\\:p-0{padding:0}.tpl\\:p-0\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:p-1{padding:calc(var(--tpl-base-size) / 4)}.tpl\\:p-1\\.5{padding:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:p-2{padding:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:p-3{padding:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:p-4{padding:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:p-5{padding:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:p-6{padding:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-0\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:px-1{padding-inline:calc(var(--tpl-base-size) / 4)}.tpl\\:px-1\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:px-2{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:px-2\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:px-3{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:px-3\\.5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:px-4{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:px-5{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 5)}.tpl\\:px-6{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:px-10{padding-inline:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-0{padding-block:0}.tpl\\:py-0\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * .5)}.tpl\\:py-1{padding-block:calc(var(--tpl-base-size) / 4)}.tpl\\:py-1\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:py-2{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:py-2\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:py-3{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:py-3\\.5{padding-block:calc(calc(var(--tpl-base-size) / 4) * 3.5)}.tpl\\:py-4{padding-block:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:py-6{padding-block:calc(calc(var(--tpl-base-size) / 4) * 6)}.tpl\\:py-8{padding-block:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:py-10{padding-block:calc(calc(var(--tpl-base-size) / 4) * 10)}.tpl\\:py-12{padding-block:calc(calc(var(--tpl-base-size) / 4) * 12)}.tpl\\:py-16{padding-block:calc(calc(var(--tpl-base-size) / 4) * 16)}.tpl\\:py-\\[5px\\]{padding-block:5px}.tpl\\:py-\\[7px\\]{padding-block:7px}.tpl\\:py-px{padding-block:1px}.tpl\\:pt-2{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pt-2\\.5{padding-top:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pt-3{padding-top:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pt-4{padding-top:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-2{padding-right:calc(calc(var(--tpl-base-size) / 4) * 2)}.tpl\\:pr-3{padding-right:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pr-4{padding-right:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pr-7{padding-right:calc(calc(var(--tpl-base-size) / 4) * 7)}.tpl\\:pr-8{padding-right:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pb-1{padding-bottom:calc(var(--tpl-base-size) / 4)}.tpl\\:pb-1\\.5{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 1.5)}.tpl\\:pb-3{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pb-4{padding-bottom:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-2\\.5{padding-left:calc(calc(var(--tpl-base-size) / 4) * 2.5)}.tpl\\:pl-3{padding-left:calc(calc(var(--tpl-base-size) / 4) * 3)}.tpl\\:pl-4{padding-left:calc(calc(var(--tpl-base-size) / 4) * 4)}.tpl\\:pl-8{padding-left:calc(calc(var(--tpl-base-size) / 4) * 8)}.tpl\\:pl-9{padding-left:calc(calc(var(--tpl-base-size) / 4) * 9)}.tpl\\:pl-\\[18px\\]{padding-left:18px}.tpl\\:text-center{text-align:center}.tpl\\:text-left{text-align:left}.tpl\\:font-\\[inherit\\]{font-family:inherit}.tpl\\:font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.tpl\\:font-sans{font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tpl\\:text-base{font-size:var(--tpl-base-size);line-height:var(--tw-leading, 1.5 )}.tpl\\:text-sm{font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875))}.tpl\\:text-xs{font-size:calc(.75 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1 / .75))}.tpl\\:text-\\[0\\.8em\\]{font-size:.8em}.tpl\\:text-\\[0\\.9em\\]{font-size:.9em}.tpl\\:text-\\[1em\\]{font-size:1em}.tpl\\:text-\\[10px\\]{font-size:10px}.tpl\\:text-\\[12px\\]{font-size:12px}.tpl\\:text-\\[13px\\]{font-size:13px}.tpl\\:text-\\[length\\:inherit\\]{font-size:inherit}.tpl\\:leading-\\[inherit\\]{--tw-leading:inherit;line-height:inherit}.tpl\\:leading-none{--tw-leading:1;line-height:1}.tpl\\:leading-normal{--tw-leading:1.5;line-height:1.5}.tpl\\:leading-relaxed{--tw-leading:1.625;line-height:1.625}.tpl\\:leading-snug{--tw-leading:1.375;line-height:1.375}.tpl\\:leading-tight{--tw-leading:1.25;line-height:1.25}.tpl\\:font-\\[var\\(--tpl-font-family\\)\\]{--tw-font-weight:var(--tpl-font-family);font-weight:var(--tpl-font-family)}.tpl\\:font-bold{--tw-font-weight:700;font-weight:700}.tpl\\:font-medium{--tw-font-weight:500;font-weight:500}.tpl\\:font-normal{--tw-font-weight:400;font-weight:400}.tpl\\:font-semibold{--tw-font-weight:600;font-weight:600}.tpl\\:tracking-wide{--tw-tracking:.025em;letter-spacing:.025em}.tpl\\:tracking-wider{--tw-tracking:.05em;letter-spacing:.05em}.tpl\\:break-words{overflow-wrap:break-word}.tpl\\:break-all{word-break:break-all}.tpl\\:text-ellipsis{text-overflow:ellipsis}.tpl\\:whitespace-normal{white-space:normal}.tpl\\:whitespace-nowrap{white-space:nowrap}.tpl\\:whitespace-pre-wrap{white-space:pre-wrap}.tpl\\:text-\\[var\\(--tpl-bg\\)\\]{color:var(--tpl-bg)}.tpl\\:text-\\[var\\(--tpl-border-light\\)\\]{color:var(--tpl-border-light)}.tpl\\:text-\\[var\\(--tpl-chrome-text\\)\\]{color:var(--tpl-chrome-text)}.tpl\\:text-\\[var\\(--tpl-chrome-text-dim\\)\\]{color:var(--tpl-chrome-text-dim)}.tpl\\:text-\\[var\\(--tpl-chrome-text-muted\\)\\]{color:var(--tpl-chrome-text-muted)}.tpl\\:text-\\[var\\(--tpl-danger\\)\\]{color:var(--tpl-danger)}.tpl\\:text-\\[var\\(--tpl-on-primary\\)\\]{color:var(--tpl-on-primary)}.tpl\\:text-\\[var\\(--tpl-primary\\)\\]{color:var(--tpl-primary)}.tpl\\:text-\\[var\\(--tpl-primary-hover\\)\\]{color:var(--tpl-primary-hover)}.tpl\\:text-\\[var\\(--tpl-success\\)\\]{color:var(--tpl-success)}.tpl\\:text-\\[var\\(--tpl-success\\,var\\(--tpl-primary\\)\\)\\]{color:var(--tpl-success,var(--tpl-primary))}.tpl\\:text-\\[var\\(--tpl-text\\)\\]{color:var(--tpl-text)}.tpl\\:text-\\[var\\(--tpl-text-dim\\)\\]{color:var(--tpl-text-dim)}.tpl\\:text-\\[var\\(--tpl-text-muted\\)\\]{color:var(--tpl-text-muted)}.tpl\\:text-\\[var\\(--tpl-warning\\)\\]{color:var(--tpl-warning)}.tpl\\:normal-case{text-transform:none}.tpl\\:uppercase{text-transform:uppercase}.tpl\\:italic{font-style:italic}.tpl\\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.tpl\\:no-underline{text-decoration-line:none}.tpl\\:underline{text-decoration-line:underline}.tpl\\:underline-offset-2{text-underline-offset:2px}.tpl\\:accent-\\[var\\(--tpl-primary\\)\\]{accent-color:var(--tpl-primary)}.tpl\\:opacity-0{opacity:0}.tpl\\:opacity-50{opacity:.5}.tpl\\:opacity-60{opacity:.6}.tpl\\:opacity-70{opacity:.7}.tpl\\:opacity-90{opacity:.9}.tpl\\:opacity-100{opacity:1}.tpl\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-ring\\)\\]{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow\\)\\]{--tw-shadow:var(--tpl-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-lg\\)\\]{--tw-shadow:var(--tpl-shadow-lg);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:ring-\\[var\\(--tpl-border\\)\\]{--tw-ring-color:var(--tpl-border)}.tpl\\:ring-\\[var\\(--tpl-primary\\)\\]{--tw-ring-color:var(--tpl-primary)}.tpl\\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, );backdrop-filter:var(--tw-backdrop-blur, ) var(--tw-backdrop-brightness, ) var(--tw-backdrop-contrast, ) var(--tw-backdrop-grayscale, ) var(--tw-backdrop-hue-rotate, ) var(--tw-backdrop-invert, ) var(--tw-backdrop-opacity, ) var(--tw-backdrop-saturate, ) var(--tw-backdrop-sepia, )}.tpl\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s)}.tpl\\:duration-100{--tw-duration:.1s;transition-duration:.1s}.tpl\\:duration-150{--tw-duration:.15s;transition-duration:.15s}.tpl\\:duration-200{--tw-duration:.2s;transition-duration:.2s}.tpl\\:duration-300{--tw-duration:.3s;transition-duration:.3s}.tpl\\:duration-\\[80ms\\]{--tw-duration:80ms;transition-duration:80ms}.tpl\\:duration-\\[120ms\\]{--tw-duration:.12s;transition-duration:.12s}.tpl\\:ease-\\[cubic-bezier\\(0\\.16\\,1\\,0\\.3\\,1\\)\\]{--tw-ease:cubic-bezier(.16,1,.3,1);transition-timing-function:cubic-bezier(.16,1,.3,1)}.tpl\\:ease-in{--tw-ease:cubic-bezier(.4, 0, 1, 1);transition-timing-function:cubic-bezier(.4,0,1,1)}.tpl\\:ease-out{--tw-ease:cubic-bezier(0, 0, .2, 1);transition-timing-function:cubic-bezier(0,0,.2,1)}.tpl\\:outline-none{--tw-outline-style:none;outline-style:none}.tpl\\:select-none{-webkit-user-select:none;user-select:none}:is(:where(.tpl\\:group):focus-within .tpl\\:group-focus-within\\:opacity-100){opacity:1}@media(hover:hover){:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:bg-black\\/40){background-color:oklab(0% none none/.4)}:is(:where(.tpl\\:group):hover .tpl\\:group-hover\\:opacity-100){opacity:1}}.tpl\\:placeholder\\:text-\\[var\\(--tpl-text-dim\\)\\]::placeholder{color:var(--tpl-text-dim)}.tpl\\:last\\:mb-0:last-child{margin-bottom:0}@media(hover:hover){.tpl\\:hover\\:z-10:hover{z-index:10}.tpl\\:hover\\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:scale-125:hover{--tw-scale-x:125%;--tw-scale-y:125%;--tw-scale-z:125%;scale:var(--tw-scale-x) var(--tw-scale-y)}.tpl\\:hover\\:border-\\[var\\(--tpl-border\\)\\]:hover{border-color:var(--tpl-border)}.tpl\\:hover\\:border-\\[var\\(--tpl-danger\\)\\]:hover{border-color:var(--tpl-danger)}.tpl\\:hover\\:border-\\[var\\(--tpl-primary\\)\\]:hover{border-color:var(--tpl-primary)}.tpl\\:hover\\:border-\\[var\\(--tpl-text-dim\\)\\]:hover{border-color:var(--tpl-text-dim)}.tpl\\:hover\\:border-l-\\[var\\(--tpl-primary\\)\\]:hover{border-left-color:var(--tpl-primary)}.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:var(--tpl-text)}@supports (color:color-mix(in lab,red,red)){.tpl\\:hover\\:bg-\\[color-mix\\(in_srgb\\,var\\(--tpl-text\\)_8\\%\\,transparent\\)\\]:hover{background-color:color-mix(in srgb,var(--tpl-text) 8%,transparent)}}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-active\\)\\]:hover{background-color:var(--tpl-bg-active)}.tpl\\:hover\\:bg-\\[var\\(--tpl-bg-hover\\)\\]:hover{background-color:var(--tpl-bg-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-danger-light\\)\\]:hover{background-color:var(--tpl-danger-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-hover\\)\\]:hover{background-color:var(--tpl-primary-hover)}.tpl\\:hover\\:bg-\\[var\\(--tpl-primary-light\\)\\]:hover{background-color:var(--tpl-primary-light)}.tpl\\:hover\\:bg-\\[var\\(--tpl-warning-light\\)\\]:hover{background-color:var(--tpl-warning-light)}.tpl\\:hover\\:text-\\[var\\(--tpl-danger\\)\\]:hover{color:var(--tpl-danger)}.tpl\\:hover\\:text-\\[var\\(--tpl-primary\\)\\]:hover{color:var(--tpl-primary)}.tpl\\:hover\\:text-\\[var\\(--tpl-text\\)\\]:hover{color:var(--tpl-text)}.tpl\\:hover\\:underline:hover{text-decoration-line:underline}.tpl\\:hover\\:opacity-80:hover{opacity:.8}.tpl\\:hover\\:opacity-100:hover{opacity:1}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-md\\)\\]:hover{--tw-shadow:var(--tpl-shadow-md);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:hover\\:shadow-\\[var\\(--tpl-shadow-sm\\)\\]:hover{--tw-shadow:var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:focus\\:border-\\[var\\(--tpl-primary\\)\\]:focus{border-color:var(--tpl-primary)}.tpl\\:focus\\:shadow-\\[0_0_0_3px_var\\(--tpl-primary-light\\)\\]:focus{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--tpl-primary-light));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus,.tpl\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\]:focus-visible{--tw-shadow:var(--tpl-ring);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.tpl\\:focus-visible\\:ring-\\[var\\(--tpl-primary\\)\\]:focus-visible{--tw-ring-color:var(--tpl-primary)}.tpl\\:focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.tpl\\:focus-visible\\:ring-offset-\\[var\\(--tpl-bg-elevated\\)\\]:focus-visible{--tw-ring-offset-color:var(--tpl-bg-elevated)}.tpl\\:focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.tpl\\:focus-visible\\:outline-\\[var\\(--tpl-primary\\)\\]:focus-visible{outline-color:var(--tpl-primary)}.tpl\\:focus-visible\\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media(hover:hover){.tpl\\:hover\\:focus-visible\\:shadow-\\[var\\(--tpl-ring\\)\\,var\\(--tpl-shadow-sm\\)\\]:hover:focus-visible{--tw-shadow:var(--tpl-ring), var(--tpl-shadow-sm);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.tpl\\:active\\:cursor-grabbing:active{cursor:grabbing}.tpl\\:active\\:bg-\\[var\\(--tpl-bg-active\\)\\]:active{background-color:var(--tpl-bg-active)}.tpl\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.tpl\\:disabled\\:opacity-30:disabled{opacity:.3}.tpl\\:disabled\\:opacity-40:disabled{opacity:.4}.tpl\\:disabled\\:opacity-50:disabled{opacity:.5}.tpl\\:disabled\\:opacity-60:disabled{opacity:.6}@media(hover:hover){.tpl\\:disabled\\:hover\\:bg-transparent:disabled:hover{background-color:#0000}}.tpl\\:\\[\\&_p\\]\\:mb-2 p{margin-bottom:calc(calc(var(--tpl-base-size) / 4) * 2)}@layer base{:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):after,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *)):before,:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:where(.tpl) :where(hr):not(:where(.tpl-email-surface,.tpl-email-surface *)){height:0;color:inherit;border-top-width:1px}:where(.tpl) :where(abbr[title]):not(:where(.tpl-email-surface,.tpl-email-surface *)){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(.tpl) :where(h1):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h2):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h3):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h4):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h5):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(h6):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:inherit;font-weight:inherit}:where(.tpl) :where(a):not(:where(.tpl-email-surface,.tpl-email-surface *)){color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}:where(.tpl) :where(b):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(strong):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(code):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(kbd):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(samp):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(pre):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}:where(.tpl) :where(small):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-size:80%}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline;font-size:75%;line-height:0;position:relative}:where(.tpl) :where(sub):not(:where(.tpl-email-surface,.tpl-email-surface *)){bottom:-.25em}:where(.tpl) :where(sup):not(:where(.tpl-email-surface,.tpl-email-surface *)){top:-.5em}:where(.tpl) :where(table):not(:where(.tpl-email-surface,.tpl-email-surface *)){text-indent:0;border-color:inherit;border-collapse:collapse}:where(.tpl) :where(:-moz-focusring:not(iframe)):not(:where(.tpl-email-surface,.tpl-email-surface *)){outline:auto}:where(.tpl) :where(progress):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:baseline}:where(.tpl) :where(summary):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:list-item}:where(.tpl) :where(ol):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(ul):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(menu):not(:where(.tpl-email-surface,.tpl-email-surface *)){list-style:none}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(svg):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(canvas):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(audio):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(iframe):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(embed):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(object):not(:where(.tpl-email-surface,.tpl-email-surface *)){vertical-align:middle;display:block}:where(.tpl) :where(img):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(video):not(:where(.tpl-email-surface,.tpl-email-surface *)){max-width:100%;height:auto}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(select):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(.tpl) :where(select:is([multiple],[size]) optgroup):not(:where(.tpl-email-surface,.tpl-email-surface *)){font-weight:bolder}:where(.tpl) :where(select:is([multiple],[size]) optgroup option):not(:where(.tpl-email-surface,.tpl-email-surface *)){padding-inline-start:20px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{margin-inline-end:4px}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}:where(.tpl) :where(textarea):not(:where(.tpl-email-surface,.tpl-email-surface *)){resize:vertical}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-search-decoration{-webkit-appearance:none}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{display:inline-flex}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-fields-wrapper{padding:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-year-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-month-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-day-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-hour-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-minute-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-second-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-millisecond-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-datetime-edit-meridiem-field{padding-block:0}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-calendar-picker-indicator{line-height:1}:where(.tpl) :where(:-moz-ui-invalid):not(:where(.tpl-email-surface,.tpl-email-surface *)){box-shadow:none}:where(.tpl) :where(button):not(:where(.tpl-email-surface,.tpl-email-surface *)),:where(.tpl) :where(input:is([type=button],[type=reset],[type=submit])):not(:where(.tpl-email-surface,.tpl-email-surface *)){appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::file-selector-button{appearance:button}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-inner-spin-button{height:auto}:where(.tpl) :where(*):not(:where(.tpl-email-surface,.tpl-email-surface *))::-webkit-outer-spin-button{height:auto}:where(.tpl) :where([hidden]:not([hidden=until-found])):not(:where(.tpl-email-surface,.tpl-email-surface *)){display:none!important}}@layer components;.tpl{--tpl-base-size:var(--tpl-user-base-size,16px);--tpl-bg:var(--tpl-user-bg,oklch(99.5% .002 60));--tpl-bg-elevated:var(--tpl-user-bg-elevated,oklch(98% .004 60));--tpl-bg-hover:var(--tpl-user-bg-hover,oklch(96% .006 60));--tpl-bg-active:var(--tpl-user-bg-active,oklch(93.5% .008 60));--tpl-border:var(--tpl-user-border,oklch(92% .006 60));--tpl-border-light:var(--tpl-user-border-light,oklch(86% .01 60));--tpl-text:var(--tpl-user-text,oklch(18% .01 60));--tpl-text-muted:var(--tpl-user-text-muted,oklch(50% .015 60));--tpl-text-dim:var(--tpl-user-text-dim,oklch(68% .012 60));--tpl-primary:var(--tpl-user-primary,oklch(70% .16 55));--tpl-primary-hover:var(--tpl-user-primary-hover,oklch(63% .17 55));--tpl-primary-light:var(--tpl-user-primary-light,oklch(95% .04 55));--tpl-on-primary:var(--tpl-user-on-primary,var(--tpl-bg));--tpl-secondary:var(--tpl-user-secondary,oklch(60% .118 184.71));--tpl-secondary-hover:var(--tpl-user-secondary-hover,oklch(53.2% .105 186.39));--tpl-secondary-light:var(--tpl-user-secondary-light,oklch(93.8% .03 186.82));--tpl-success:var(--tpl-user-success,oklch(62.8% .194 155.1));--tpl-success-light:var(--tpl-user-success-light,oklch(93.6% .043 163.51));--tpl-warning:var(--tpl-user-warning,oklch(76.9% .168 70.08));--tpl-warning-light:var(--tpl-user-warning-light,oklch(95% .038 73.59));--tpl-danger:var(--tpl-user-danger,oklch(63.7% .237 25.33));--tpl-danger-light:var(--tpl-user-danger-light,oklch(93.6% .032 17.72));--tpl-canvas-bg:var(--tpl-user-canvas-bg,oklch(97.5% .003 60));--tpl-chrome-bg-elevated:var(--tpl-bg-elevated);--tpl-chrome-border-light:var(--tpl-border-light);--tpl-chrome-text:var(--tpl-text);--tpl-chrome-text-muted:var(--tpl-text-muted);--tpl-chrome-text-dim:var(--tpl-text-dim);--tpl-chrome-primary-light:var(--tpl-primary-light);--tpl-chrome-primary-hover:var(--tpl-primary-hover);--tpl-radius:var(--tpl-user-radius,10px);--tpl-radius-sm:var(--tpl-user-radius-sm,7px);--tpl-radius-lg:var(--tpl-user-radius-lg,14px);--tpl-font-family:var(--tpl-user-font-family,\"Geist\", ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");--tpl-shadow-sm:var(--tpl-user-shadow-sm,0 1px 2px #00000008);--tpl-shadow:var(--tpl-user-shadow,0 1px 2px #0000000a, 0 1px 3px #00000008);--tpl-shadow-md:var(--tpl-user-shadow-md,0 2px 8px #0000000f, 0 1px 3px #0000000a);--tpl-shadow-lg:var(--tpl-user-shadow-lg,0 4px 16px #00000014, 0 2px 6px #0000000a);--tpl-shadow-xl:var(--tpl-user-shadow-xl,0 8px 32px #0000001a, 0 4px 12px #0000000f);--tpl-overlay:var(--tpl-user-overlay,#00000080);--tpl-ring:var(--tpl-user-ring,0 0 0 3px var(--tpl-primary-light));--tpl-transition:var(--tpl-user-transition,.12s cubic-bezier(.16, 1, .3, 1));--tpl-panel-transition:var(--tpl-user-panel-transition,.24s cubic-bezier(.16, 1, .3, 1))}.tpl[data-tpl-theme=dark]{--tpl-bg:var(--tpl-user-dark-bg,oklch(16% .005 60));--tpl-bg-elevated:var(--tpl-user-dark-bg-elevated,oklch(21% .006 60));--tpl-bg-hover:var(--tpl-user-dark-bg-hover,oklch(26% .007 60));--tpl-bg-active:var(--tpl-user-dark-bg-active,oklch(30% .008 60));--tpl-border:var(--tpl-user-dark-border,oklch(30% .006 60));--tpl-border-light:var(--tpl-user-dark-border-light,oklch(38% .008 60));--tpl-text:var(--tpl-user-dark-text,oklch(93% .005 60));--tpl-text-muted:var(--tpl-user-dark-text-muted,oklch(65% .01 60));--tpl-text-dim:var(--tpl-user-dark-text-dim,oklch(50% .008 60));--tpl-primary:var(--tpl-user-dark-primary,oklch(73% .15 55));--tpl-primary-hover:var(--tpl-user-dark-primary-hover,oklch(78% .14 55));--tpl-primary-light:var(--tpl-user-dark-primary-light,oklch(28% .05 55));--tpl-secondary:var(--tpl-user-dark-secondary,oklch(63% .11 184.71));--tpl-secondary-hover:var(--tpl-user-dark-secondary-hover,oklch(68% .1 186.39));--tpl-secondary-light:var(--tpl-user-dark-secondary-light,oklch(25% .03 186.82));--tpl-success:var(--tpl-user-dark-success,oklch(65% .18 155.1));--tpl-success-light:var(--tpl-user-dark-success-light,oklch(25% .04 163.51));--tpl-warning:var(--tpl-user-dark-warning,oklch(78% .16 70.08));--tpl-warning-light:var(--tpl-user-dark-warning-light,oklch(28% .04 73.59));--tpl-danger:var(--tpl-user-dark-danger,oklch(65% .22 25.33));--tpl-danger-light:var(--tpl-user-dark-danger-light,oklch(25% .04 17.72));--tpl-canvas-bg:var(--tpl-user-dark-canvas-bg,oklch(10% .003 60));--tpl-shadow-sm:var(--tpl-user-dark-shadow-sm,0 1px 2px #0003);--tpl-shadow:var(--tpl-user-dark-shadow,0 1px 2px #0000004d, 0 1px 3px #0003);--tpl-shadow-md:var(--tpl-user-dark-shadow-md,0 2px 8px #00000059, 0 1px 3px #00000040);--tpl-shadow-lg:var(--tpl-user-dark-shadow-lg,0 4px 16px #0006, 0 2px 6px #0000004d);--tpl-shadow-xl:var(--tpl-user-dark-shadow-xl,0 8px 32px #00000080, 0 4px 12px #00000059);--tpl-overlay:var(--tpl-user-dark-overlay,#000000b3);--tpl-ring:var(--tpl-user-dark-ring,0 0 0 3px var(--tpl-primary-light))}.tpl[data-tpl-theme=dark] .tpl-block-content,.tpl[data-tpl-theme=dark] .tpl-canvas-empty{--tpl-bg-elevated:oklch(98% .004 60);--tpl-border-light:oklch(86% .01 60);--tpl-text:oklch(18% .01 60);--tpl-text-muted:oklch(50% .015 60);--tpl-text-dim:oklch(68% .012 60);--tpl-primary-light:oklch(95% .04 55);--tpl-primary-hover:oklch(60% .16 55);color:var(--tpl-text)}.tpl{height:100%;font-family:Geist,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:calc(.875 * var(--tpl-base-size));line-height:var(--tw-leading,calc(1.25 / .875));--tw-leading:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--tpl-bg);min-height:320px;color:var(--tpl-text);line-height:1.5;font-family:var(--tpl-font-family);letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-align:start;white-space:normal;cursor:auto;font-variant-numeric:normal;text-shadow:none;flex-direction:column;font-style:normal;font-weight:400;list-style-type:disc;display:flex}:where(.tpl) button,:where(.tpl) input,:where(.tpl) select,:where(.tpl) textarea{box-sizing:border-box;font-family:inherit}:where(.tpl) button{cursor:pointer;background:0 0;border:none;margin:0;padding:0}:where(.tpl) button:focus-visible,:where(.tpl) input:focus-visible,:where(.tpl) select:focus-visible,:where(.tpl) textarea:focus-visible{box-shadow:var(--tpl-ring);outline:none}:where(.tpl) .tpl-focus-ring-host:focus-within :is(input,select,textarea):focus-visible{box-shadow:none}.tpl ::-webkit-scrollbar{width:6px;height:6px}.tpl ::-webkit-scrollbar-track{background:0 0}.tpl ::-webkit-scrollbar-thumb{background-color:var(--tpl-border-light)}@supports (color:color-mix(in lab,red,red)){.tpl ::-webkit-scrollbar-thumb{background-color:color-mix(in srgb,var(--tpl-border-light) 60%,transparent)}}.tpl ::-webkit-scrollbar-thumb{border-radius:calc(.25 * var(--tpl-base-size))}.tpl ::-webkit-scrollbar-thumb:hover{background-color:var(--tpl-border-light)}@keyframes tpl-pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes tpl-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tpl-popover-root{z-index:10000;position:relative}.tpl-merge-tag-label{text-underline-offset:3px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}@supports (color:color-mix(in lab,red,red)){.tpl-merge-tag-label{-webkit-text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);text-decoration-color:color-mix(in srgb,currentColor 55%,transparent)}}.tpl-merge-tag-label{unicode-bidi:isolate}.tpl-pulse{animation:2s infinite tpl-pulse}.tpl-spinner{animation:1s linear infinite tpl-spin}@keyframes tpl-fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes tpl-scale-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes tpl-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.tpl-fade-in{animation:.2s cubic-bezier(.16,1,.3,1) tpl-fade-in}.tpl-scale-in{animation:.15s cubic-bezier(.16,1,.3,1) tpl-scale-in}.tpl-shimmer{background:linear-gradient(90deg,var(--tpl-bg-hover) 25%,var(--tpl-bg-active) 50%,var(--tpl-bg-hover) 75%);background-size:200% 100%;animation:1.5s linear infinite tpl-shimmer}.tpl-preview-mode .tpl-block--idle,.tpl-preview-mode .tpl-block--idle:hover,.tpl-preview-mode .tpl-block--selected{box-shadow:none!important;outline:none!important}.tpl-preview-mode .tpl-block{cursor:default;pointer-events:none}.tpl-canvas-pane{container:tpl-canvas-pane/inline-size}.tpl-preview-mode .tpl-block-actions,.tpl-preview-mode .tpl-block-hidden-overlay,.tpl-preview-mode .tpl-condition-toggle,.tpl-preview-mode .tpl-comment-indicator,.tpl-preview-mode .tpl-collab-lock,.tpl-preview-mode .tpl-block-issue-badge{display:none}.tpl-ghost{border:none!important;border-top:2px dotted var(--tpl-primary)!important;background-color:#0000!important;justify-content:center!important;align-items:center!important;width:100%!important;height:0!important;min-height:0!important;max-height:0!important;margin:12px 0!important;padding:0!important;display:flex!important;position:relative!important;overflow:visible!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost{border-top:2px dotted color-mix(in srgb,var(--tpl-primary) 50%,transparent)!important}}.tpl-ghost{box-shadow:none!important;border-radius:0!important}.tpl-ghost>*{display:none!important}.tpl-ghost:before{content:var(--tpl-drop-text,\"Drop here\");white-space:nowrap!important;color:var(--tpl-primary)!important;background-color:var(--tpl-primary)!important;padding:2px 8px!important;font-size:12px!important;font-weight:500!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}@supports (color:color-mix(in lab,red,red)){.tpl-ghost:before{background-color:color-mix(in srgb,var(--tpl-primary) 15%,var(--tpl-bg))!important}}.tpl-ghost:before{border-radius:var(--tpl-radius-sm)!important;box-shadow:none!important}.tpl-canvas-empty .tpl-ghost{display:none!important}.tpl-dragging{opacity:.8;box-shadow:var(--tpl-shadow-xl)}.sortable-fallback{transition:none!important;animation:none!important}.tpl-block--lifted{outline:2px dashed var(--tpl-primary)!important;outline-offset:2px!important;box-shadow:var(--tpl-shadow-xl),0 0 0 4px var(--tpl-primary)!important}@supports (color:color-mix(in lab,red,red)){.tpl-block--lifted{box-shadow:var(--tpl-shadow-xl),0 0 0 4px color-mix(in srgb,var(--tpl-primary) 20%,transparent)!important}}.tpl-block--lifted{transition:transform .15s cubic-bezier(.16,1,.3,1),box-shadow .15s cubic-bezier(.16,1,.3,1);transform:scale(1.01)}.tpl-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-text-toolbar-btn{width:calc(calc(var(--tpl-base-size) / 4) * 8);height:calc(calc(var(--tpl-base-size) / 4) * 8);cursor:pointer;border-radius:calc(.25 * var(--tpl-base-size));--tw-border-style:none;transition-property:all;transition-timing-function:var(--tw-ease,cubic-bezier(.16, 1, .3, 1));transition-duration:var(--tw-duration,.12s);color:var(--tpl-text);background-color:#0000;border-style:none;justify-content:center;align-items:center;padding:0;display:flex}.tpl-text-toolbar-btn:hover{background-color:var(--tpl-bg-active)}.tpl-text-toolbar-btn--active{box-shadow:inset 0 0 0 1.5px var(--tpl-primary-hover);background-color:var(--tpl-primary)!important;color:var(--tpl-bg)!important}.tpl-text-toolbar-btn--active svg{stroke-width:2.75px}.tpl-text-content,.tpl-text-editable .tiptap{--tw-outline-style:none;outline-style:none}.tpl-text-editable{border-radius:calc(.25 * var(--tpl-base-size));outline:1px dashed var(--tpl-primary);outline-offset:4px}.tpl-text-editable--error{outline-color:var(--tpl-danger)}.tpl-text-content p,.tpl-text-editable .tiptap p{margin:0 0 var(--tpl-doc-paragraph-spacing,8px)}.tpl-text-content p:last-child,.tpl-text-editable .tiptap p:last-child{margin-bottom:0}.tpl-text-content ul,.tpl-text-content ol,.tpl-text-editable .tiptap ul,.tpl-text-editable .tiptap ol{margin:8px 0;padding-inline-start:24px}.tpl-text-content li,.tpl-text-editable .tiptap li{margin:4px 0}.tpl-text-content s,.tpl-text-editable .tiptap s{text-decoration-line:line-through}.tpl-text-content sub,.tpl-text-editable .tiptap sub{vertical-align:sub;font-size:.75em}.tpl-text-content sup,.tpl-text-editable .tiptap sup{vertical-align:super;font-size:.75em}.tpl-text-content a,.tpl-text-editable a{color:var(--tpl-doc-link-color,inherit);-webkit-text-decoration:var(--tpl-doc-link-underline,none);text-decoration:var(--tpl-doc-link-underline,none)}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:500;background-color:var(--tpl-primary);align-items:center;font-size:.9em;font-weight:500;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{background-color:color-mix(in srgb,var(--tpl-primary) 20%,transparent)}}.tpl-text-content span[data-merge-tag],.tpl-text-editable span[data-merge-tag]{color:var(--tpl-primary);unicode-bidi:isolate}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{margin-inline:calc(calc(var(--tpl-base-size) / 4) * .5);border-radius:calc(.25 * var(--tpl-base-size));padding-inline:calc(calc(var(--tpl-base-size) / 4) * 1.5);padding-block:calc(calc(var(--tpl-base-size) / 4) * .5);--tw-font-weight:700;--tw-tracking:.025em;letter-spacing:.025em;text-transform:uppercase;border:1.5px solid var(--tpl-primary);unicode-bidi:isolate;background-color:#0000;align-items:center;font-size:.8em;font-weight:700;display:inline-flex}@supports (color:color-mix(in lab,red,red)){.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{border:1.5px solid color-mix(in srgb,var(--tpl-primary) 50%,transparent)}}.tpl-text-content span[data-logic-merge-tag],.tpl-text-editable span[data-logic-merge-tag]{color:var(--tpl-primary)}.tpl-tooltip{position:relative}.tpl-tooltip:after{content:attr(data-tooltip);border-radius:var(--tpl-radius-sm);background-color:var(--tpl-chrome-text);color:var(--tpl-bg);white-space:normal;text-align:center;pointer-events:none;opacity:0;text-transform:none;z-index:50;width:max-content;max-width:min(320px,90vw);padding:4px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:opacity .15s;position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.tpl-tooltip:before{content:\"\";border:4px solid #0000;border-bottom-color:var(--tpl-chrome-text);pointer-events:none;opacity:0;z-index:50;transition:opacity .15s;position:absolute;top:calc(100% + 2px);left:50%;transform:translate(-50%)}.tpl-tooltip:hover:after,.tpl-tooltip:hover:before{opacity:1}.tpl-media-overlay{background-color:var(--tpl-overlay);-webkit-backdrop-filter:blur(8px);height:100%;min-height:0;color:var(--tpl-text);flex-direction:row;justify-content:center;align-items:center;display:flex}.tpl.tpl-text-toolbar{flex-direction:row;height:auto;min-height:0;display:flex}.tpl.tpl-link-dialog{background-color:var(--tpl-overlay);flex-direction:row;justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.tpl-upload-zone-active{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.tpl-merge-tag-delete:hover{color:var(--tpl-danger)!important}@media(prefers-reduced-motion:reduce){.tpl-pulse,.tpl-shimmer,.tpl-fade-in,.tpl-scale-in{animation:none}.tpl-shimmer{background:var(--tpl-bg-hover)}.tpl-spinner{animation:1s linear infinite tpl-spin}.tpl-body,.tpl-right-sidebar{transition:none}.tpl-panel-enter-active,.tpl-panel-leave-active{animation:none}}.tpl-body{transition:left var(--tpl-panel-transition),right var(--tpl-panel-transition)}.tpl-right-sidebar{transition:right var(--tpl-panel-transition)}.tpl-panel-enter-active{animation:var(--tpl-panel-transition) both tpl-panel-in}.tpl-panel-leave-active{animation:var(--tpl-panel-transition) both tpl-panel-out}@keyframes tpl-panel-in{0%{transform:translate(100%)}to{transform:none}}@keyframes tpl-panel-out{0%{transform:none}to{transform:translate(100%)}}.tpl-header-container{container:tpl-header/inline-size}.tpl-header-identity [data-testid=template-name],.tpl-header-identity [data-testid=template-name-input]{max-width:100%}.tpl-language-tag{display:none}.tpl-header-identity{flex-shrink:1;min-width:24px}.tpl-header-actions{display:contents}.tpl-header-timestamp{max-width:100%}.tpl-header:not([data-status-label=true]) .tpl-status-label{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tpl-header[data-compact=true]{grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px;padding-inline:8px}.tpl-header[data-compact=true] .tpl-header-left,.tpl-header[data-compact=true] .tpl-header-right{gap:4px;min-width:0}.tpl-header[data-compact=true] .tpl-header-center{gap:4px}.tpl-header[data-compact=true] .tpl-header-identity{flex:0 auto;min-width:24px;max-width:none;padding-bottom:0}.tpl-header[data-compact=true] .tpl-header-timestamp,.tpl-header[data-compact=true] .tpl-header-label,.tpl-header[data-compact=true] .tpl-header-comment-count,.tpl-header[data-compact=true] .tpl-language-name,.tpl-header[data-compact=true] .tpl-language-count,.tpl-header[data-compact=true] .tpl-language-chevron{display:none}.tpl-header[data-compact=true] .tpl-header-left .tpl-language-tag{display:inline}.tpl-header[data-compact=true] .tpl-language-control{flex-shrink:1}.tpl-header[data-compact=true] .tpl-language-trigger{gap:4px;padding-inline:6px;width:100%!important;max-width:72px!important}.tpl-header[data-compact=true] .tpl-header-center [role=radio]{padding-inline:6px}.tpl-header[data-compact=true] [data-testid=version-history]{gap:0}.tpl-header[data-compact=true] [data-testid=version-history-toggle]{padding-inline:4px}.tpl-header[data-compact=true] .tpl-header-right>button{gap:0;min-width:32px;padding-inline:7px}.tpl-header[data-compact=true] .tpl-header-save-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-scale-x{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-y{syntax:\"*\";inherits:false;initial-value:1}@property --tw-scale-z{syntax:\"*\";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}.tpl-preview-pill-enter-active[data-v-defb8319]{transition:opacity .2s cubic-bezier(.16,1,.3,1),transform .2s cubic-bezier(.16,1,.3,1)}.tpl-preview-pill-leave-active[data-v-defb8319]{transition:opacity .15s ease-in,transform .15s ease-in}.tpl-preview-pill-enter-from[data-v-defb8319],.tpl-preview-pill-leave-to[data-v-defb8319]{opacity:0;transform:translateY(-8px) scale(.9)}.tpl-preview-pill-enter-to[data-v-defb8319],.tpl-preview-pill-leave-from[data-v-defb8319]{opacity:1;transform:translateY(0) scale(1)}hex-color-picker{--hcp-width: 200px}hex-color-picker::part(hue){border-radius:var(--tpl-radius-sm, 7px)}hex-color-picker::part(saturation){border-radius:var(--tpl-radius-sm, 7px) var(--tpl-radius-sm, 7px) 0 0}.tpl-color-swatch-empty{background-color:var(--tpl-bg);background-image:linear-gradient(to top right,transparent calc(50% - .75px),var(--tpl-text-dim) calc(50% - .75px),var(--tpl-text-dim) calc(50% + .75px),transparent calc(50% + .75px))}.tpl-color-swatch-transparent{background-color:var(--tpl-bg);background-image:repeating-conic-gradient(var(--tpl-border) 0% 25%,var(--tpl-bg) 0% 50%);background-size:8px 8px}.tpl-pulse-fill[data-v-fca026e4]{animation:tpl-field-pulse-fca026e4 1s ease-out}@keyframes tpl-field-pulse-fca026e4{0%{box-shadow:0 0 color-mix(in srgb,var(--tpl-warning) 30%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 6%,transparent)}40%{box-shadow:0 0 0 3px color-mix(in srgb,var(--tpl-warning) 15%,transparent);background-color:color-mix(in srgb,var(--tpl-warning) 5%,transparent)}to{box-shadow:0 0 0 0 transparent;background-color:transparent}}@media(prefers-reduced-motion:reduce){.tpl-pulse-fill[data-v-fca026e4]{animation:none}}input[type=number][data-v-94c2e6ff]::-webkit-outer-spin-button,input[type=number][data-v-94c2e6ff]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-94c2e6ff]{-moz-appearance:textfield}.tpl-collapsible[data-v-206f038f]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s cubic-bezier(.16,1,.3,1)}.tpl-collapsible--open[data-v-206f038f]{grid-template-rows:1fr}.tpl-collapsible>div[data-v-206f038f]{overflow:hidden}@container tpl-header (max-width: 760px){.tpl-language-submenu[data-v-e6e34300]{left:0;top:100%;bottom:auto;margin:4px 0 0;max-width:100%}}.tpl-language-row[data-v-e6e34300]:hover,.tpl-language-row[data-v-e6e34300]:focus-within,[role=menuitem][data-v-e6e34300]:hover{background:var(--tpl-bg-hover)}.tpl-language-row[data-active=true][data-v-e6e34300]{background:var(--tpl-bg-active)}.tpl-language-row[data-active=true] .tpl-language-pill[data-v-e6e34300]{background:var(--tpl-bg)}[aria-disabled=true][data-v-e6e34300]{cursor:not-allowed;color:var(--tpl-text-muted)}[aria-disabled=true] svg[data-v-e6e34300]{color:var(--tpl-text-dim)}@media(hover:hover)and (pointer:fine){.tpl-language-actions[data-v-e6e34300]{opacity:0}.tpl-language-row:hover .tpl-language-actions[data-v-e6e34300],.tpl-language-row:focus-within .tpl-language-actions[data-v-e6e34300],.tpl-language-actions[aria-expanded=true][data-v-e6e34300]{opacity:1}}.tpl-language-actions[data-v-e6e34300]{transition:opacity var(--tpl-transition)}.tpl-saved-block-skeleton{animation:tpl-saved-block-pulse 1.4s ease-in-out infinite}@keyframes tpl-saved-block-pulse{0%,to{opacity:1}50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.tpl-saved-block-skeleton{animation:none}}.tpl-saved-block-select:focus-visible{box-shadow:none}.tpl-saved-block-select:focus-visible:after{content:\"\";position:absolute;inset:-1px;border-radius:var(--tpl-radius-sm);box-shadow:var(--tpl-ring);pointer-events:none}.tpl-saved-block-delete-btn:hover{color:var(--tpl-danger)!important}.tpl-saved-block-rename-btn:hover{color:var(--tpl-primary)!important}.tpl-media-item[data-v-57c35946]:not(.tpl-media-item--selected):hover{border-color:var(--tpl-border)!important}.tpl-media-list-item[data-v-57c35946]:hover{background-color:var(--tpl-bg-hover)!important}.tpl-list-icon[data-v-57c35946]{transform:scale(.35);transform-origin:center}.tpl-preview-icon[data-v-50993988]{transform:scale(.45);transform-origin:center}.tpl-comments-input-wrapper[data-v-aa4cfc4a]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-comments-send-btn[data-v-aa4cfc4a]:not(:disabled):hover{transform:scale(1.05)}.tpl-comment-filter[data-v-aa4cfc4a]{color:var(--tpl-text-muted);background-color:transparent}.tpl-comment-filter[data-v-aa4cfc4a]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-filter--active[data-v-aa4cfc4a]{background-color:var(--tpl-primary-light);color:var(--tpl-primary)}.tpl-comment-action[data-v-aa4cfc4a]{color:var(--tpl-text-dim);background-color:transparent}.tpl-comment-action[data-v-aa4cfc4a]:hover{background-color:var(--tpl-bg-hover);color:var(--tpl-text)}.tpl-comment-delete[data-v-aa4cfc4a]:hover{background-color:var(--tpl-danger-light);color:var(--tpl-danger)}.tpl-comment-card[data-v-aa4cfc4a],.tpl-comment-reply-card[data-v-aa4cfc4a]{border-color:var(--tpl-border);background-color:var(--tpl-bg)}.tpl-resolve-enter-active[data-v-aa4cfc4a],.tpl-resolve-leave-active[data-v-aa4cfc4a]{transition:opacity .3s ease,transform .3s ease}.tpl-resolve-enter-from[data-v-aa4cfc4a],.tpl-resolve-leave-to[data-v-aa4cfc4a]{opacity:0;transform:translateY(-4px)}.tpl-resolve-icon[data-v-aa4cfc4a]{transition:color .3s ease,transform .2s ease}.tpl-resolve-icon[data-v-aa4cfc4a]:active{transform:scale(1.3)}.tpl-replies-enter-active[data-v-aa4cfc4a],.tpl-replies-leave-active[data-v-aa4cfc4a]{transition:opacity .25s ease,transform .25s ease}.tpl-replies-enter-from[data-v-aa4cfc4a],.tpl-replies-leave-to[data-v-aa4cfc4a]{opacity:0;transform:translateY(-4px)}.tpl-ai-input-wrapper[data-v-35cc75c0]:focus-within{border-color:var(--tpl-primary);box-shadow:var(--tpl-ring)}.tpl-ai-send-btn[data-v-35cc75c0]:not(:disabled):hover{transform:scale(1.05)}.tpl-starter-btn[data-v-35cc75c0]:hover{border-color:var(--tpl-primary)!important;background-color:var(--tpl-primary-light)!important}.vue-advanced-cropper{text-align:center;position:relative;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}[data-v-7d9a1872] .tpl-cropper-background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper{background-color:transparent!important}[data-v-7d9a1872] .vue-advanced-cropper__background{background-color:var(--tpl-bg)!important}[data-v-7d9a1872] .vue-advanced-cropper__foreground{background-color:var(--tpl-overlay)!important}\n/*$vite$:1*/", Zo = null;
4215
+ function Qo() {
4216
+ if (Zo === null) {
4258
4217
  let e = new CSSStyleSheet();
4259
- e.replaceSync(Jo(Qo)), $o = e;
4218
+ e.replaceSync(Go(Xo)), Zo = e;
4260
4219
  }
4261
- return $o;
4220
+ return Zo;
4262
4221
  }
4263
- function ts(e) {
4222
+ function $o(e) {
4264
4223
  return () => {};
4265
4224
  }
4266
- function ns(e, t) {
4225
+ function es(e, t) {
4267
4226
  if (!t) return {
4268
4227
  target: e,
4269
4228
  shadowRoot: null,
4270
4229
  cleanup: () => {}
4271
4230
  };
4272
4231
  let n = e.shadowRoot ?? e.attachShadow({ mode: "open" });
4273
- for (n.adoptedStyleSheets = [es()]; n.firstChild;) n.removeChild(n.firstChild);
4232
+ for (n.adoptedStyleSheets = [Qo()]; n.firstChild;) n.removeChild(n.firstChild);
4274
4233
  let r = document.createElement("div");
4275
4234
  return r.className = "tpl-editor-host", r.style.cssText = "display:block;height:100%;width:100%;", n.appendChild(r), {
4276
4235
  target: r,
4277
4236
  shadowRoot: n,
4278
- cleanup: ts(n)
4237
+ cleanup: $o(n)
4279
4238
  };
4280
4239
  }
4281
- var rs = /* @__PURE__ */ new Map(), is = null, as = 0, os = /* @__PURE__ */ new WeakMap();
4282
- function ss(e) {
4240
+ var ts = /* @__PURE__ */ new Map(), ns = null, rs = 0, is = /* @__PURE__ */ new WeakMap();
4241
+ function as(e) {
4283
4242
  let t = typeof e == "string" ? document.querySelector(e) : e;
4284
4243
  if (!t) throw Error(`[Templatical] Container element not found: ${e}`);
4285
- let n = ++as;
4286
- return os.set(t, n), {
4244
+ let n = ++rs;
4245
+ return is.set(t, n), {
4287
4246
  container: t,
4288
4247
  token: n
4289
4248
  };
4290
4249
  }
4291
- function cs(e, t) {
4292
- let n = rs.get(e);
4293
- n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), rs.delete(e), is === e && (is = null)));
4250
+ function os(e, t) {
4251
+ let n = ts.get(e);
4252
+ n && (t && n.app !== t || (n.cleanup(), n.app.unmount(), ts.delete(e), ns === e && (ns = null)));
4294
4253
  }
4295
- function ls(e) {
4296
- e.layout && (e.layout = Bn(e.layout, e.mergeTags), Ce(e.layout)), e.content && (e.content = Bn(e.content, e.mergeTags), Me(e.content), Oe(e.content));
4254
+ function ss(e) {
4255
+ e.layout && (e.layout = zn(e.layout, e.mergeTags), ue(e.layout)), e.content && (e.content = zn(e.content, e.mergeTags), ye(e.content), he(e.content));
4297
4256
  }
4298
- async function us(e) {
4257
+ async function cs(e) {
4299
4258
  let t = { ...e };
4300
4259
  if (t.translation !== void 0 && (t.translation === null || typeof t.translation != "object" || typeof t.translation.translate != "function")) throw new Q("translation must be an object with a translate function.");
4301
- for (let e of t.localization?.locales ?? []) if (!we(e)) throw new Q(`Invalid localization locale "${e}".`);
4260
+ for (let e of t.localization?.locales ?? []) if (!de(e)) throw new Q(`Invalid localization locale "${e}".`);
4302
4261
  let n = t.localization?.doNotTranslate;
4303
4262
  if (n !== void 0 && (!Array.isArray(n) || n.length > 500 || n.some((e) => typeof e != "string" || e.trim().length < 1 || e.trim().length > 100))) throw new Q("localization.doNotTranslate must be an array of at most 500 terms, each 1–100 characters.");
4304
- return ls(t), ds(t, ss(t.container));
4263
+ let r = t.localization?.languageNames;
4264
+ if (r !== void 0 && (typeof r != "object" || !r || Array.isArray(r) || Reflect.ownKeys(r).some((e) => typeof r[e] != "string"))) throw new Q("localization.languageNames must be an object that maps language tags to label strings.");
4265
+ return ss(t), ls(t, as(t.container));
4305
4266
  }
4306
- async function ds(e, { container: t, token: n }, i) {
4307
- e.locale !== void 0 && !fn(e.locale) && Zn.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${wn().sort().join(", ")}.`);
4308
- let a = await ln(e.locale ?? "en"), o = sn(e.fonts);
4309
- if (os.get(t) !== n) return fs({
4267
+ async function ls(e, { container: t, token: n }) {
4268
+ e.locale !== void 0 && !Cn(e.locale) && Ae.warn(`config.locale: "${e.locale}" has no translations — falling back to English. Supported: ${cn().sort().join(", ")}.`);
4269
+ let i = await dn(e.locale ?? "en"), a = un(e.fonts);
4270
+ if (is.get(t) !== n) return us({
4310
4271
  config: e,
4311
4272
  editorRef: z(null),
4312
- fontsManager: o,
4273
+ fontsManager: a,
4313
4274
  unmount: () => {}
4314
4275
  }).instance;
4315
- cs(t);
4316
- let s = ns(t, e.shadowDom ?? !0), c = z(null), l = I({ setup() {
4317
- return () => r(Ko, {
4276
+ os(t);
4277
+ let o = es(t, e.shadowDom ?? !0), s = z(null), c = I({ setup() {
4278
+ return () => r(Uo, {
4318
4279
  config: e,
4319
- translations: a,
4320
- fontsManager: o,
4321
- shadowRoot: s.shadowRoot ?? void 0,
4322
- cloud: i,
4323
- renderMjml: () => d.toMjml(),
4324
- renderHtml: () => d.toHtml(),
4325
- canRenderHtml: () => d.canRenderHtml(),
4326
- usesLocalRenderer: () => d.usesLocalRenderer(),
4327
- ref: c
4280
+ translations: i,
4281
+ fontsManager: a,
4282
+ shadowRoot: o.shadowRoot ?? void 0,
4283
+ renderMjml: () => u.toMjml(),
4284
+ renderHtml: () => u.toHtml(),
4285
+ canRenderHtml: () => u.canRenderHtml(),
4286
+ usesLocalRenderer: () => u.usesLocalRenderer(),
4287
+ ref: s
4328
4288
  });
4329
4289
  } });
4330
- l.mount(s.target), rs.set(t, {
4331
- app: l,
4332
- editorRef: c,
4333
- cleanup: s.cleanup
4334
- }), is = t;
4335
- let { instance: u, render: d } = fs({
4290
+ c.mount(o.target), ts.set(t, {
4291
+ app: c,
4292
+ editorRef: s,
4293
+ cleanup: o.cleanup
4294
+ }), ns = t;
4295
+ let { instance: l, render: u } = us({
4336
4296
  config: e,
4337
- editorRef: c,
4338
- fontsManager: o,
4339
- unmount: () => cs(t, l)
4297
+ editorRef: s,
4298
+ fontsManager: a,
4299
+ unmount: () => os(t, c)
4340
4300
  });
4341
- return u;
4301
+ return l;
4342
4302
  }
4343
- function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4303
+ function us({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4344
4304
  let i = {
4345
4305
  getContent() {
4346
- return Te(t.value ? t.value.getContent() : e.content ?? Pe(e.fonts?.defaultFont, ur(e)));
4306
+ return fe(t.value ? t.value.getContent() : e.content ?? xe(e.fonts?.defaultFont, sr(e)));
4347
4307
  },
4348
4308
  getLocale() {
4349
4309
  return t.value?.getLocale() ?? Z(i.getContent());
@@ -4354,7 +4314,7 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4354
4314
  t.value?.setLocale(n);
4355
4315
  },
4356
4316
  setContent(n) {
4357
- let r = Bn(n, e.mergeTags);
4317
+ let r = zn(n, e.mergeTags);
4358
4318
  t.value && t.value.setContent(r), e.content = r;
4359
4319
  },
4360
4320
  refreshPreview() {
@@ -4362,7 +4322,7 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4362
4322
  },
4363
4323
  insertBlock(n) {
4364
4324
  let r = { blocks: [n] };
4365
- return Me(r), Oe(r), t.value ? t.value.insertBlock(Hn(n, e.mergeTags)) : null;
4325
+ return ye(r), he(r), t.value ? t.value.insertBlock(Vn(n, e.mergeTags)) : null;
4366
4326
  },
4367
4327
  setTheme(e) {
4368
4328
  t.value && t.value.setTheme(e);
@@ -4377,7 +4337,7 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4377
4337
  create(n) {
4378
4338
  return t.value ? t.value.create(n?.content ? {
4379
4339
  ...n,
4380
- content: Bn(n.content, e.mergeTags)
4340
+ content: zn(n.content, e.mergeTags)
4381
4341
  } : n) : Promise.reject(/* @__PURE__ */ Error("[Templatical] Editor not ready"));
4382
4342
  },
4383
4343
  load(e) {
@@ -4397,20 +4357,20 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4397
4357
  },
4398
4358
  toMjml: (e) => a.toMjml(e),
4399
4359
  toHtml: (e) => a.toHtml(e)
4400
- }, a = Zo({
4360
+ }, a = Yo({
4401
4361
  provider: e.render,
4402
- buildPayload: (t) => Xo({
4362
+ buildPayload: (t) => Jo({
4403
4363
  getContent: () => i.getContent(),
4404
4364
  renderCustomBlock: (e) => i.renderCustomBlock(e),
4405
4365
  getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
4406
- getFonts: () => Yo(n),
4366
+ getFonts: () => qo(n),
4407
4367
  getLayout: () => e.layout
4408
4368
  }, t),
4409
- renderLocalMjml: (t) => mi({
4369
+ renderLocalMjml: (t) => di({
4410
4370
  getContent: () => i.getContent(),
4411
4371
  renderCustomBlock: (e) => i.renderCustomBlock(e),
4412
4372
  getCustomBlockStylesheet: (e) => i.getCustomBlockStylesheet(e),
4413
- getFonts: () => Yo(n),
4373
+ getFonts: () => qo(n),
4414
4374
  socialIconsBaseUrl: e.socialIconsBaseUrl,
4415
4375
  getLayout: () => e.layout
4416
4376
  }, ...t ? [t] : [])
@@ -4420,65 +4380,9 @@ function fs({ config: e, editorRef: t, fontsManager: n, unmount: r }) {
4420
4380
  render: a
4421
4381
  };
4422
4382
  }
4423
- async function ps(e) {
4424
- let t = {
4425
- layout: e.layout,
4426
- content: e.content,
4427
- mergeTags: e.mergeTags
4428
- };
4429
- ls(t);
4430
- let n = ss(e.container), [{ bootstrapCloud: r }, i] = await Promise.all([import("./chunks/createCloudRuntime-CUlw09ix.js"), mn(e.locale ?? "en")]), { runtime: a, providers: o, user: s } = await r({
4431
- config: e,
4432
- cloudTranslations: i
4433
- });
4434
- return ds({
4435
- container: e.container,
4436
- content: t.content,
4437
- layout: t.layout,
4438
- sectionWrapper: e.sectionWrapper,
4439
- shadowDom: e.shadowDom,
4440
- locale: e.locale,
4441
- uiTheme: e.uiTheme,
4442
- theme: e.theme,
4443
- branding: e.branding,
4444
- header: e.header,
4445
- smallScreenNotice: e.smallScreenNotice,
4446
- blockDefaults: e.blockDefaults,
4447
- templateDefaults: e.templateDefaults,
4448
- customBlocks: e.customBlocks,
4449
- paletteBlocks: e.paletteBlocks,
4450
- htmlBlockPreview: e.htmlBlockPreview,
4451
- colors: e.colors,
4452
- templateSettings: e.templateSettings,
4453
- fonts: e.fonts,
4454
- mergeTags: e.mergeTags,
4455
- logicTags: e.logicTags,
4456
- displayConditions: e.displayConditions,
4457
- resolvePreview: e.resolvePreview,
4458
- lint: e.lint,
4459
- onChange: e.onChange,
4460
- onError: e.onError,
4461
- onDirtyChange: e.onDirtyChange,
4462
- templates: {
4463
- ...o.templates,
4464
- autoSave: e.templates?.autoSave ?? !0,
4465
- unsavedChangesGuard: e.templates?.unsavedChangesGuard,
4466
- nameField: e.templates?.nameField
4467
- },
4468
- changeDebounce: e.changeDebounce ?? 2e3,
4469
- render: o.render,
4470
- versionHistory: o.versionHistory,
4471
- savedBlocks: o.savedBlocks,
4472
- testEmail: o.testEmail,
4473
- comments: o.comments,
4474
- media: o.media,
4475
- onRequestMedia: e.onRequestMedia,
4476
- user: s
4477
- }, n, a);
4478
- }
4479
- function ms() {
4480
- is && cs(is);
4383
+ function ds() {
4384
+ ns && os(ns);
4481
4385
  }
4482
- export { qn as AI_ALT_TEXT_RULES, Jn as AI_FIXABLE_RULES, Ne as applyLayout, Pe as createDefaultTemplateContent, Y as createLocalStorageMediaProvider, ne as createLocalStorageSavedBlocksProvider, ue as createParagraphBlock, Ae as createSlotBlock, X as createWrapperBlock, Tn as getBaseLocale, on as getSupportedCloudLocales, wn as getSupportedLocales, us as init, ps as initCloud, dn as isCloudLocaleSupported, fn as isLocaleSupported, de as isSlot, me as isWrapper, De as layoutWrapsSlot, ms as unmount, Ce as validateLayout };
4386
+ export { Kn as AI_ALT_TEXT_RULES, qn as AI_FIXABLE_RULES, be as applyLayout, xe as createDefaultTemplateContent, Oe as createLocalStorageMediaProvider, ze as createLocalStorageSavedBlocksProvider, ne as createParagraphBlock, _e as createSlotBlock, G as createWrapperBlock, wn as getBaseLocale, cn as getSupportedLocales, cs as init, Cn as isLocaleSupported, W as isSlot, q as isWrapper, me as layoutWrapsSlot, ds as unmount, ue as validateLayout };
4483
4387
 
4484
4388
  //# sourceMappingURL=editor.js.map