@templatical/editor 0.59.2 → 0.60.1

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 (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DSA1wiiW.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-B9-vfzCj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-DPoq2Til.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-UdfhAzzu.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-BaeMlSEx.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DQ_6NI4p.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DWDfih6j.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-ClHDM3ge.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-PqWv0q8W.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-p-_PWqXW.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-BUo-YhSX.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-D_Pz7FPz.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-DYFSFwkD.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-C7mBrK6a.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-f7js1FF8.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-CAvDAawJ.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-Clc3JTg_.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-YXOL0d_y.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-VCv5epgs.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-B5a9noTB.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-D1r2aH5x.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CA9dPfMH.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-ByzfpepN.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-Da5sTCFI.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-gnRxu4-L.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-BM1Fki_2.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-DHOTdJKB.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-BJ2OM0cG.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-C4Bv1K_9.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-DsaSsCC8.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-CMo0cJik.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-B2OoOy9K.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor--gFbrR7V.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-UXT03-Dc.js} +1003 -792
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-DkoyIwy1.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-D-RCk3oB.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-TzzRlmqK.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-DMg2sw3V.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-B4mdW2CP.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-MX-xQH_Z.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-C8N05sCU.js} +10 -4
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-BLNN_Pnd.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-BLNN_Pnd.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-Db8vSNpe.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-Db8vSNpe.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-cIT2haLo.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-cIT2haLo.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-B4GG8w3J.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-B4GG8w3J.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C34wZVcW.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C34wZVcW.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-C50pmOMZ.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-C50pmOMZ.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-CUOrwkWR.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-CUOrwkWR.js.map +1 -0
  57. package/dist/cdn/chunks/CloudHeaderExtras-Cd-ePldd.js.map +1 -1
  58. package/dist/cdn/chunks/{CloudPanels-D8fchoYt.js → CloudPanels-BAGDHObm.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-BAGDHObm.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CTmjjbHv.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CTmjjbHv.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CzHjawjF.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CzHjawjF.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-Dh0_eRBe.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-Dh0_eRBe.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-JxZ-O2mY.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-JxZ-O2mY.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BBiK9EaU.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BBiK9EaU.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-BtAn12hl.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-BtAn12hl.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-BDldm-Hp.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-BDldm-Hp.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-CzrNKR-N.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-CzrNKR-N.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-B4wuPoMa.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-B4wuPoMa.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-DJ2wxInt.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-DJ2wxInt.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BJawNjr9.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BJawNjr9.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-DZD-p4nR.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-DZD-p4nR.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-DGuJCgqO.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-DGuJCgqO.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-BRiaRBr_.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-BRiaRBr_.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-CPYQXRIc.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-CPYQXRIc.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-NjbHial9.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-NjbHial9.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-CtV0Q0SO.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-CtV0Q0SO.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-BZqPkGrE.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-BZqPkGrE.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CqfyRtlX.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CqfyRtlX.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-BILHEdkP.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-BILHEdkP.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-C9NKqOEU.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-C9NKqOEU.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings--_ZfbhnU.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings--_ZfbhnU.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-CtfoV82K.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-CtfoV82K.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-NK26SU2u.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-NK26SU2u.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-DXN_aOn0.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-DXN_aOn0.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-HCxD4Ifc.js} +918 -707
  113. package/dist/cdn/chunks/Toolbar-HCxD4Ifc.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DzHoLmGo.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DzHoLmGo.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-CVGlUPwS.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-CVGlUPwS.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-Du8sQry2.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-Du8sQry2.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-5RFz4AQx.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-5RFz4AQx.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-DTayPD6Q.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-DTayPD6Q.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-BOonB9gK.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-BOonB9gK.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-C8N05sCU.js} +12 -2
  127. package/dist/cdn/chunks/ca-C8N05sCU.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-BJBr8B4t.js} +611 -592
  129. package/dist/cdn/chunks/composables-BJBr8B4t.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-CUlw09ix.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-CUlw09ix.js.map} +1 -1
  132. package/dist/{da-CM6DCvRG.js → cdn/chunks/da-Dno_4nGy.js} +12 -2
  133. package/dist/cdn/chunks/da-Dno_4nGy.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-DRR5JSkh.js} +12 -2
  135. package/dist/cdn/chunks/de-DRR5JSkh.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BVM_0uoL.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BVM_0uoL.js.map +1 -0
  138. package/dist/{en-BykoFuFY.js → cdn/chunks/en-DAcLbbpg.js} +12 -2
  139. package/dist/cdn/chunks/en-DAcLbbpg.js.map +1 -0
  140. package/dist/cdn/chunks/en-DlDEofnd.js +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-BcEQLQxe.js} +12 -2
  142. package/dist/cdn/chunks/es-BcEQLQxe.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BPZirXpF.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BPZirXpF.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-CNQG7ESr.js} +12 -2
  146. package/dist/cdn/chunks/fr-CNQG7ESr.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-CWEBTtbR.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-CWEBTtbR.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-CMxWxqSH.js} +11 -3
  150. package/dist/cdn/chunks/ja-CMxWxqSH.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-BjyYZDkC.js} +12 -2
  152. package/dist/cdn/chunks/nl-BjyYZDkC.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-CExCfSYI.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-CExCfSYI.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-BLVFtvl8.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-BLVFtvl8.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-DC2A3C0v.js} +12 -2
  158. package/dist/cdn/chunks/pt-BR-DC2A3C0v.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-Db0S2JVP.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-Db0S2JVP.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-WD1cjZDr.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-WD1cjZDr.js.map +1 -0
  163. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-A0kzK-pR.js} +775 -667
  164. package/dist/cdn/chunks/src-A0kzK-pR.js.map +1 -0
  165. package/dist/cdn/chunks/src-C9opbQj_.js +684 -0
  166. package/dist/cdn/chunks/src-C9opbQj_.js.map +1 -0
  167. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-edESkGqO.js} +708 -603
  168. package/dist/cdn/chunks/src-edESkGqO.js.map +1 -0
  169. package/dist/cdn/chunks/{tiptap-B7gxx0aJ.js → tiptap-D9amDW4u.js} +1030 -1027
  170. package/dist/cdn/chunks/tiptap-D9amDW4u.js.map +1 -0
  171. package/dist/cdn/chunks/useLocalizedDisplay-Brdkp3KH.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-Brdkp3KH.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-CKtQlJDa.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-CKtQlJDa.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-Dwy3U0PI.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-Dwy3U0PI.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-C4pIesdB.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-C4pIesdB.js.map} +1 -1
  179. package/dist/cdn/editor.js +109 -109
  180. package/dist/cdn/editor.js.map +1 -1
  181. package/dist/{check-ErKdPXG6.js → check-C82yyyf1.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-BaBVjNbM.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-DkS-bw8X.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-C1KzUIK4.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-DsmqtTUQ.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-dpIs7vo0.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-DjCuq6RV.js} +1399 -1380
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-CiEo0wkr.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-BSam2AUu.js} +5 -5
  190. package/dist/{cdn/chunks/da-CM6DCvRG.js → da-Dno_4nGy.js} +10 -4
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-DRR5JSkh.js} +10 -4
  192. package/dist/dist-AyAOL8Bj.js +4 -0
  193. package/dist/{dist-BTUMr4Pb.js → dist-BNrGwgev.js} +2 -2
  194. package/dist/{dist-CsplpC_6.js → dist-BPVNNdTv.js} +2 -2
  195. package/dist/{dist-bWIkrMkM.js → dist-C7YLw60i.js} +2 -2
  196. package/dist/{dist-Clfx1JeL.js → dist-CBnAqr27.js} +2 -2
  197. package/dist/{dist-CkHJRChP.js → dist-COvAA64n.js} +2 -2
  198. package/dist/{dist-C-NRkFsp.js → dist-CuRjmtWu.js} +5 -5
  199. package/dist/{dist-HKEDfp__.js → dist-DG_AWt8v.js} +2 -2
  200. package/dist/{dist-CMo4K5So.js → dist-DX_IQgcU.js} +802 -696
  201. package/dist/{dist-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  202. package/dist/dist-DkPTWQuO.js +4 -0
  203. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-odubnc9x.js} +15 -15
  206. package/dist/en-CAImT1hl.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-DAcLbbpg.js} +10 -4
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-BcEQLQxe.js} +10 -4
  209. package/dist/{extensions-BPVackEE.js → extensions-C7OLgMEj.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-CxCHEszj.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-CNQG7ESr.js} +10 -4
  212. package/dist/{image-B5pJOw5Q.js → image-DvXPzqNd.js} +1 -1
  213. package/dist/index.d.ts +72 -13
  214. package/dist/{info-DKM0_thN.js → info-2KHWaZ2L.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-CMxWxqSH.js} +10 -2
  216. package/dist/{link-BNgTZ_Sw.js → link-_OmrcJMv.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-Dekd7JE8.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-D_hT5mFS.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-DDbiG-jz.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-BjyYZDkC.js} +10 -4
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-Cv5Wvs5f.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-cORUe57D.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-D67H4fxq.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-BpTZAx28.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-6CLw2rP6.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-DC2A3C0v.js} +10 -4
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-B4T0IFwI.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-BDQgjpuo.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-Ru5_-IbM.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-Dp9pkaVt.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-DO9GhgCH.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-CPW3I3hV.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-CPBiLTjY.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-CIBjNfij.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-3W65qrrH.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-Bs70tpRU.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-CTzhAm1o.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-D_13CuJY.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-DFxkP9MI.js} +1 -1
  241. package/dist/useLocalizedDisplay-DfiE-KjV.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-K5CPoMTk.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-tsU_Sw2x.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-194ePl4q.js} +1 -1
  245. package/dist/withCurrentFont-C-_IYTqP.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-D7L8mLHJ.js} +1 -1
  247. package/package.json +22 -22
  248. package/dist/cdn/chunks/AiAltTextPopover-CcX_OMUU.js.map +0 -1
  249. package/dist/cdn/chunks/AiAltTextReview-Dmm3h0jd.js.map +0 -1
  250. package/dist/cdn/chunks/AiChatPanel-DV23DJ-2.js.map +0 -1
  251. package/dist/cdn/chunks/AiPanels-CxhOpMAp.js.map +0 -1
  252. package/dist/cdn/chunks/AiRewriteMenu-87-O514r.js.map +0 -1
  253. package/dist/cdn/chunks/BlockIssueBadge-Dp06vQd3.js.map +0 -1
  254. package/dist/cdn/chunks/BlockPreviewCanvas-DQGzUvZ5.js.map +0 -1
  255. package/dist/cdn/chunks/CloudPanels-D8fchoYt.js.map +0 -1
  256. package/dist/cdn/chunks/CollaborationNotices-DNEs3g9B.js.map +0 -1
  257. package/dist/cdn/chunks/CollaboratorBar-CN6XAlbn.js.map +0 -1
  258. package/dist/cdn/chunks/CommentsPanel-CxZ1kFcK.js.map +0 -1
  259. package/dist/cdn/chunks/CommentsSidebar-DCr2mV8b.js.map +0 -1
  260. package/dist/cdn/chunks/CountdownToolbar-CUTbVPPV.js.map +0 -1
  261. package/dist/cdn/chunks/IssuesPanel-BhcSzwuL.js.map +0 -1
  262. package/dist/cdn/chunks/LanguageMenu-6wGhkyFT.js.map +0 -1
  263. package/dist/cdn/chunks/LocaleNotices-Br92Xueo.js.map +0 -1
  264. package/dist/cdn/chunks/LogicTagInsertButton-r2EVUtDU.js.map +0 -1
  265. package/dist/cdn/chunks/MediaEditModal-CfgN7Jyi.js.map +0 -1
  266. package/dist/cdn/chunks/MediaPanels-Cb5vsgb-.js.map +0 -1
  267. package/dist/cdn/chunks/MergeTagInput-Dh3N6CEV.js.map +0 -1
  268. package/dist/cdn/chunks/MergeTagModeToggle-D6u3hMrI.js.map +0 -1
  269. package/dist/cdn/chunks/MergeTagTextarea-BpVtpiNL.js.map +0 -1
  270. package/dist/cdn/chunks/ParagraphEditor-DGJmPAC1.js.map +0 -1
  271. package/dist/cdn/chunks/RestoreVersionDialog-D5qeCa0F.js.map +0 -1
  272. package/dist/cdn/chunks/RichTextEditorContent-DyGiXKKI.js.map +0 -1
  273. package/dist/cdn/chunks/SaveBlockDialog-B0TJYxd8.js.map +0 -1
  274. package/dist/cdn/chunks/SavedBlocksBrowserModal-D8Ly7LrA.js.map +0 -1
  275. package/dist/cdn/chunks/SavedBlocksPanels-Co1cbWR8.js.map +0 -1
  276. package/dist/cdn/chunks/SavedBlocksPickBar-DNtVbpm-.js.map +0 -1
  277. package/dist/cdn/chunks/TemplateSettings-BRc878ZF.js.map +0 -1
  278. package/dist/cdn/chunks/TestEmailModal-CIui7VfS.js.map +0 -1
  279. package/dist/cdn/chunks/TestEmailPanel-vKvruW_r.js.map +0 -1
  280. package/dist/cdn/chunks/TitleEditor-BI-9Nnj3.js.map +0 -1
  281. package/dist/cdn/chunks/Toolbar-CYnnArxv.js.map +0 -1
  282. package/dist/cdn/chunks/TplModal-B3nZeGWK.js.map +0 -1
  283. package/dist/cdn/chunks/VersionHistoryMenu-CMGfAKuV.js.map +0 -1
  284. package/dist/cdn/chunks/VersionHistoryPanels-Bb2ouQg7.js.map +0 -1
  285. package/dist/cdn/chunks/VersionPreviewBanner-573UP-g4.js.map +0 -1
  286. package/dist/cdn/chunks/WrapperBlock-DVu632LD.js.map +0 -1
  287. package/dist/cdn/chunks/ca-YfIxwO1G.js.map +0 -1
  288. package/dist/cdn/chunks/composables-DY3anqHO.js.map +0 -1
  289. package/dist/cdn/chunks/da-CM6DCvRG.js.map +0 -1
  290. package/dist/cdn/chunks/de-Dugz1zXC.js.map +0 -1
  291. package/dist/cdn/chunks/editor-modal-CXSSZplR.js.map +0 -1
  292. package/dist/cdn/chunks/en-BykoFuFY.js.map +0 -1
  293. package/dist/cdn/chunks/en-DYMYt1TN.js +0 -1
  294. package/dist/cdn/chunks/es-DaWsTkpj.js.map +0 -1
  295. package/dist/cdn/chunks/extensions-BWVlr8Ga.js.map +0 -1
  296. package/dist/cdn/chunks/fr-DqwQHtJo.js.map +0 -1
  297. package/dist/cdn/chunks/ja-BH4MS1Ye.js.map +0 -1
  298. package/dist/cdn/chunks/nl-BQl1_UHv.js.map +0 -1
  299. package/dist/cdn/chunks/pt-BR-eyzmU9Vs.js.map +0 -1
  300. package/dist/cdn/chunks/socialIcons-kYhdXJ9P.js.map +0 -1
  301. package/dist/cdn/chunks/src-B7X7x_ST.js +0 -707
  302. package/dist/cdn/chunks/src-B7X7x_ST.js.map +0 -1
  303. package/dist/cdn/chunks/src-BmzzkUf7.js.map +0 -1
  304. package/dist/cdn/chunks/src-DY2kMjoD.js.map +0 -1
  305. package/dist/cdn/chunks/tiptap-B7gxx0aJ.js.map +0 -1
  306. package/dist/cdn/chunks/useLocalizedDisplay-B5wMJLru.js +0 -33
  307. package/dist/dist-CkIeJEsa.js +0 -4
  308. package/dist/dist-eAgG-nCb.js +0 -4
  309. package/dist/en-DvCaYqiR.js +0 -1
  310. package/dist/useLocalizedDisplay-CbFM0cCV.js +0 -31
  311. package/dist/withCurrentFont-y0O5kOLW.js +0 -18
@@ -45,188 +45,36 @@ var s = {
45
45
  2: 28,
46
46
  3: 22,
47
47
  4: 18
48
- }, c = 1.3, l = 1.2, u = {
48
+ }, c = 1.3, l = 1.2;
49
+ function u(e) {
50
+ let t = e.lineHeight;
51
+ return typeof t == "number" && Number.isFinite(t) && t > 0 ? t : l;
52
+ }
53
+ var d = {
49
54
  paragraphGap: 8,
50
55
  listMarginY: 8,
51
56
  listPaddingLeft: 24,
52
57
  listItemMarginY: 4
53
- }, d = [
54
- "cover",
55
- "contain",
56
- "auto"
57
- ], f = [
58
- "left",
59
- "center",
60
- "right"
61
- ], p = [
62
- "top",
63
- "center",
64
- "bottom"
65
- ];
66
- function ee(e) {
67
- return {
68
- url: e,
69
- size: "cover",
70
- position: {
71
- x: "center",
72
- y: "center"
73
- },
74
- repeat: !1
75
- };
58
+ }, f = /^(?:100(?:\.0+)?|\d{1,2}(?:\.\d+)?)%$/;
59
+ function p(e) {
60
+ if (typeof e != "string" || !f.test(e)) return null;
61
+ let t = Number(e.slice(0, -1));
62
+ return t > 0 && t <= 100 ? t : null;
76
63
  }
77
- function te(e) {
78
- let t = "";
79
- for (let n of e) {
80
- let e = n.charCodeAt(0);
81
- t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
64
+ function ee(e) {
65
+ if (!Number.isFinite(e)) return e;
66
+ let t = te(e, 2);
67
+ return Number.isFinite(t) ? te(Math.round(t), -2) : e;
68
+ }
69
+ function te(e, t) {
70
+ let n = String(e), r = /^(-?\d+(?:\.\d+)?)e([+-]?\d+)$/i.exec(n);
71
+ if (r) {
72
+ let e = Number(r[2]) + t;
73
+ return Number(`${r[1]}e${e}`);
82
74
  }
83
- return t;
75
+ return Number(`${n}e${t}`);
84
76
  }
85
77
  function ne(e) {
86
- let t = typeof e?.url == "string" ? e.url.trim() : "";
87
- if (!e || !t) return null;
88
- let n = d.includes(e.size) ? e.size : "cover", r = e.position, i = r && f.includes(r.x) ? r.x : "center", a = r && p.includes(r.y) ? r.y : "center";
89
- return {
90
- url: te(t),
91
- size: n,
92
- position: `${i} ${a}`,
93
- repeat: e.repeat ? "repeat" : "no-repeat"
94
- };
95
- }
96
- var re = [
97
- "top",
98
- "middle",
99
- "bottom"
100
- ];
101
- function ie(e) {
102
- let t = e.hero;
103
- if (!t || typeof t != "object") return null;
104
- if (e.columns !== "1") return {
105
- applied: !1,
106
- reason: "columns"
107
- };
108
- let n = ne(e.backgroundImage);
109
- if (n === null) return {
110
- applied: !1,
111
- reason: "image"
112
- };
113
- let r = oe(e.backgroundImage), i = ae(t.height) ? Math.round(t.height) : "image";
114
- return i === "image" && r === null ? {
115
- applied: !1,
116
- reason: "size"
117
- } : {
118
- applied: !0,
119
- image: n,
120
- height: i,
121
- verticalAlign: re.includes(t.verticalAlign) ? t.verticalAlign : "middle",
122
- aspectRatio: r
123
- };
124
- }
125
- function ae(e) {
126
- return typeof e == "number" && Number.isFinite(e) && e >= 1;
127
- }
128
- function oe(e) {
129
- let t = e?.naturalWidth, n = e?.naturalHeight;
130
- return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
131
- }
132
- var se = {
133
- facebook: {
134
- color: "#1877F2",
135
- path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
136
- },
137
- twitter: {
138
- color: "#000000",
139
- path: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
140
- },
141
- instagram: {
142
- color: "#E4405F",
143
- path: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
144
- },
145
- linkedin: {
146
- color: "#0A66C2",
147
- path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
148
- },
149
- xing: {
150
- color: "#006567",
151
- path: "M18.188 0c-.517 0-.741.325-.927.66c0 0-7.455 13.224-7.702 13.657c.015.024 4.919 9.023 4.919 9.023c.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22c.089-.151.089-.346-.009-.536l-4.879-8.916a.02.02 0 0 1 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0zM3.648 4.74c-.211 0-.385.074-.473.216c-.09.149-.078.339.02.531l2.34 4.05q.006.014 0 .021L1.86 16.051a.52.52 0 0 0 0 .529c.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609l-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648z"
152
- },
153
- youtube: {
154
- color: "#FF0000",
155
- path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
156
- },
157
- tiktok: {
158
- color: "#000000",
159
- path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
160
- },
161
- pinterest: {
162
- color: "#BD081C",
163
- path: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
164
- },
165
- email: {
166
- color: "#6B7280",
167
- path: "M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"
168
- },
169
- website: {
170
- color: "#6B7280",
171
- path: "M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z"
172
- },
173
- whatsapp: {
174
- color: "#25D366",
175
- path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"
176
- },
177
- telegram: {
178
- color: "#26A5E4",
179
- path: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
180
- },
181
- discord: {
182
- color: "#5865F2",
183
- path: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"
184
- },
185
- snapchat: {
186
- color: "#FFFC00",
187
- path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12.017-5.373 12.017-12.001C24.034 5.367 18.644 0 12.017 0z"
188
- },
189
- reddit: {
190
- color: "#FF4500",
191
- path: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"
192
- },
193
- github: {
194
- color: "#181717",
195
- path: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
196
- },
197
- dribbble: {
198
- color: "#EA4C89",
199
- path: "M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.392-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.814zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"
200
- },
201
- behance: {
202
- color: "#1769FF",
203
- path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
204
- }
205
- }, ce = {
206
- dark: "#1f1f1f",
207
- light: "#ffffff"
208
- };
209
- function le(e) {
210
- return e === "dark" || e === "light" ? e : void 0;
211
- }
212
- function ue(e, t) {
213
- let n = le(t);
214
- return {
215
- fill: n ? ce[n] : se[e].color,
216
- onFill: n === "light" ? ce.dark : "#ffffff"
217
- };
218
- }
219
- function de(e, t) {
220
- if (le(t) === "dark" && (e === "plain" || e === "outlined")) return {
221
- color: ce.light,
222
- opacity: .6,
223
- width: 1.4
224
- };
225
- }
226
- function fe(e) {
227
- return e === "plain" ? .84 : .6;
228
- }
229
- function pe(e) {
230
78
  let t = [], n = (e, n) => {
231
79
  typeof e == "string" && /[./]/.test(e) && t.push({
232
80
  path: n,
@@ -252,21 +100,21 @@ function m(e) {
252
100
  if (!t.includes(n)) return t.push(n), n;
253
101
  }));
254
102
  }
255
- function me(e) {
103
+ function re(e) {
256
104
  return typeof e == "object" && !!e && !Array.isArray(e);
257
105
  }
258
106
  function h(e, t) {
259
107
  if (e === t) return !0;
260
108
  if (Array.isArray(e)) return !Array.isArray(t) || e.length !== t.length ? !1 : e.every((e, n) => h(e, t[n]));
261
- if (me(e)) {
262
- if (!me(t)) return !1;
109
+ if (re(e)) {
110
+ if (!re(t)) return !1;
263
111
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
264
112
  for (let r of n) if ((e[r] !== void 0 || t[r] !== void 0) && !h(e[r], t[r])) return !1;
265
113
  return !0;
266
114
  }
267
115
  return !1;
268
116
  }
269
- var he = class extends Error {
117
+ var ie = class extends Error {
270
118
  statusCode;
271
119
  code;
272
120
  constructor(e, t, n, r) {
@@ -281,7 +129,7 @@ var he = class extends Error {
281
129
  get isServerError() {
282
130
  return this.statusCode !== void 0 && this.statusCode >= 500;
283
131
  }
284
- }, ge = {
132
+ }, ae = {
285
133
  title: ["content"],
286
134
  paragraph: ["content"],
287
135
  html: ["content"],
@@ -289,6 +137,7 @@ var he = class extends Error {
289
137
  video: ["alt"],
290
138
  button: ["text"],
291
139
  menu: ["items.*.text"],
140
+ social: ["icons.*.alt"],
292
141
  table: ["rows.*.cells.*.content"],
293
142
  countdown: [
294
143
  "labelDays",
@@ -299,27 +148,27 @@ var he = class extends Error {
299
148
  ],
300
149
  custom: ["fieldValues.*"]
301
150
  }, g = ["preheaderText"];
302
- function _e(e) {
151
+ function oe(e) {
303
152
  return typeof e == "string" && /^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(e);
304
153
  }
305
154
  function _(e) {
306
155
  return typeof e == "object" && !!e && !Array.isArray(e);
307
156
  }
308
- var ve = /* @__PURE__ */ new Set([
157
+ var se = /* @__PURE__ */ new Set([
309
158
  "__proto__",
310
159
  "constructor",
311
160
  "prototype"
312
161
  ]);
313
162
  function v(e) {
314
- return e.split(".").every((e) => e !== "" && !ve.has(e));
163
+ return e.split(".").every((e) => e !== "" && !se.has(e));
315
164
  }
316
- function ye(e, t) {
317
- if (!ve.has(t)) return Array.isArray(e) ? e.find((e) => _(e) && e.id === t) : _(e) && Object.hasOwn(e, t) ? e[t] : void 0;
165
+ function ce(e, t) {
166
+ if (!se.has(t)) return Array.isArray(e) ? e.find((e) => _(e) && e.id === t) : _(e) && Object.hasOwn(e, t) ? e[t] : void 0;
318
167
  }
319
168
  function y(e, t) {
320
- return t.split(".").reduce(ye, e);
169
+ return t.split(".").reduce(ce, e);
321
170
  }
322
- function be(e) {
171
+ function le(e) {
323
172
  let t = m(e);
324
173
  for (let [n, r] of Object.entries(t.l10n ?? {})) {
325
174
  for (let t of ["text", "set"]) {
@@ -333,23 +182,23 @@ function be(e) {
333
182
  }
334
183
  return t.l10n && !Object.keys(t.l10n).length && delete t.l10n, h(t, e) ? e : t;
335
184
  }
336
- function xe(e) {
337
- let t = be(e);
185
+ function ue(e) {
186
+ let t = le(e);
338
187
  if (t.type === "wrapper") {
339
- let e = t.children.map(xe);
188
+ let e = t.children.map(ue);
340
189
  return e.some((e, n) => e !== t.children[n]) ? {
341
190
  ...t,
342
191
  children: e
343
192
  } : t;
344
193
  }
345
194
  if (t.type !== "section") return t;
346
- let n = t.children.map((e) => e.map(xe));
195
+ let n = t.children.map((e) => e.map(ue));
347
196
  return n.some((e, n) => e.some((e, r) => e !== t.children[n][r])) ? {
348
197
  ...t,
349
198
  children: n
350
199
  } : t;
351
200
  }
352
- function Se(e, t, n) {
201
+ function de(e, t, n) {
353
202
  if (e.type === "custom") return !1;
354
203
  if (e.type === "section") return t === "columns";
355
204
  let r = e.type === "menu" ? "items" : e.type === "social" ? "icons" : e.type === "table" ? "rows" : null;
@@ -370,30 +219,30 @@ function Se(e, t, n) {
370
219
  }
371
220
  return !1;
372
221
  }
373
- function Ce(e) {
374
- return be(e);
222
+ function fe(e) {
223
+ return le(e);
375
224
  }
376
225
  function b(e, t, n) {
377
226
  if (!v(t)) return !1;
378
- let r = t.split("."), i = r.pop(), a = r.reduce(ye, e);
227
+ let r = t.split("."), i = r.pop(), a = r.reduce(ce, e);
379
228
  if (Array.isArray(a)) {
380
229
  let e = a.findIndex((e) => _(e) && e.id === i);
381
230
  return e < 0 ? !1 : (a[e] = m(n), !0);
382
231
  }
383
232
  return _(a) ? (n === null ? delete a[i] : a[i] = m(n), !0) : !1;
384
233
  }
385
- function we(e, t) {
234
+ function pe(e, t) {
386
235
  let [n, ...r] = t.split(".");
387
236
  if (n === void 0) return [""];
388
237
  let i = [];
389
238
  if (n === "*") {
390
239
  let t = Array.isArray(e) ? e : [];
391
- for (let e of t) if (_(e) && typeof e.id == "string") for (let t of r.length ? we(e, r.join(".")) : [""]) i.push(t ? `${e.id}.${t}` : e.id);
240
+ for (let e of t) if (_(e) && typeof e.id == "string") for (let t of r.length ? pe(e, r.join(".")) : [""]) i.push(t ? `${e.id}.${t}` : e.id);
392
241
  return i;
393
242
  }
394
243
  let a = _(e) ? e[n] : void 0;
395
244
  if (r.length === 0) return a === void 0 ? [] : [n];
396
- for (let e of we(a, r.join("."))) i.push(`${n}.${e}`);
245
+ for (let e of pe(a, r.join("."))) i.push(`${n}.${e}`);
397
246
  return i;
398
247
  }
399
248
  function x(e, t = []) {
@@ -404,6 +253,9 @@ function x(e, t = []) {
404
253
  let n = (e) => !e.id.includes("."), r = e.type === "menu" ? {
405
254
  ...e,
406
255
  items: e.items.filter(n)
256
+ } : e.type === "social" ? {
257
+ ...e,
258
+ icons: e.icons.filter(n)
407
259
  } : e.type === "table" ? {
408
260
  ...e,
409
261
  rows: e.rows.filter(n).map((e) => ({
@@ -411,67 +263,67 @@ function x(e, t = []) {
411
263
  cells: e.cells.filter(n)
412
264
  }))
413
265
  } : e;
414
- return (ge[e.type] ?? []).flatMap((e) => we(r, e));
266
+ return (ae[e.type] ?? []).flatMap((e) => pe(r, e));
415
267
  }
416
- function Te(e, t) {
417
- return (ge[e] ?? []).some((e) => {
268
+ function S(e, t) {
269
+ return (ae[e] ?? []).some((e) => {
418
270
  let n = e.split("."), r = t.split(".");
419
271
  return n.length === r.length && n.every((e, t) => e === "*" || e === r[t]);
420
272
  });
421
273
  }
422
- function S(e) {
274
+ function C(e) {
423
275
  let t = 2166136261;
424
276
  for (let n of new TextEncoder().encode(e)) t ^= n, t = Math.imul(t, 16777619) >>> 0;
425
277
  return t.toString(16).padStart(8, "0");
426
278
  }
427
- function Ee(e) {
279
+ function me(e) {
428
280
  let { l10n: t, ...n } = e;
429
281
  return n;
430
282
  }
431
- function De(e = {}) {
283
+ function he(e = {}) {
432
284
  return Object.entries(e).sort(([e], [t]) => e.split(".").length - t.split(".").length);
433
285
  }
434
- function Oe(e, t, n) {
435
- return ke(e, m(Ee(e)), t, n);
286
+ function ge(e, t, n) {
287
+ return _e(e, m(me(e)), t, n);
436
288
  }
437
- function ke(e, t, n, r) {
289
+ function _e(e, t, n, r) {
438
290
  let i = e;
439
291
  if (n === r) return t;
440
292
  let a = i.l10n?.[n];
441
293
  if (!a) return t;
442
- for (let [e, n] of De(a.set)) b(t, e, n);
294
+ for (let [e, n] of he(a.set)) b(t, e, n);
443
295
  for (let [n, r] of Object.entries(a.text ?? {})) y(e, n) !== void 0 && b(t, n, r.value);
444
296
  return e.type === "custom" && (Object.keys(a.text ?? {}).length > 0 || Object.keys(a.set ?? {}).length > 0) && delete t.renderedHtml, t;
445
297
  }
446
- function Ae(e, t, n) {
298
+ function ve(e, t, n) {
447
299
  let r = e;
448
- if (r.type !== "section" && r.type !== "wrapper" || !Array.isArray(r.children)) return Oe(e, t, n);
449
- let { children: i, ...a } = Ee(r), o = m(a);
450
- return o.children = i, ke(e, o, t, n);
300
+ if (r.type !== "section" && r.type !== "wrapper" || !Array.isArray(r.children)) return ge(e, t, n);
301
+ let { children: i, ...a } = me(r), o = m(a);
302
+ return o.children = i, _e(e, o, t, n);
451
303
  }
452
- function je(e, t) {
304
+ function ye(e, t) {
453
305
  return e.l10n?.[t]?.hidden === !0;
454
306
  }
455
- function Me(e) {
307
+ function be(e) {
456
308
  let { locales: t, l10n: n, ...r } = e;
457
309
  return r;
458
310
  }
459
- function C(e) {
311
+ function w(e) {
460
312
  return e.settings?.locale ?? "en";
461
313
  }
462
- function Ne(e, t, n) {
463
- let r = C(e), i = e.settings?.locales ?? [];
314
+ function xe(e, t, n) {
315
+ let r = w(e), i = e.settings?.locales ?? [];
464
316
  if (t !== r && !i.includes(t)) {
465
317
  if (n?.missing === "default") t = r;
466
- else throw new he(`This template has no "${t}" version.`, void 0, "unknown_locale");
318
+ else throw new ie(`This template has no "${t}" version.`, void 0, "unknown_locale");
467
319
  }
468
320
  let a = (e) => e.flatMap((e) => {
469
- if (t !== r && je(e, t)) return [];
470
- let n = e.l10n?.[t], i = [...Object.keys(n?.set ?? {}), ...Object.keys(n?.text ?? {})].some((e) => e.startsWith("children.")) ? Oe(e, t, r) : Ae(e, t, r);
321
+ if (t !== r && ye(e, t)) return [];
322
+ let n = e.l10n?.[t], i = [...Object.keys(n?.set ?? {}), ...Object.keys(n?.text ?? {})].some((e) => e.startsWith("children.")) ? ge(e, t, r) : ve(e, t, r);
471
323
  return i.type === "section" && Array.isArray(i.children) ? i.children = i.children.map((e) => a(e)) : i.type === "wrapper" && Array.isArray(i.children) && (i.children = a(i.children)), [i];
472
- }), o = m(Me(e.settings)), s = e.settings?.l10n?.[t];
324
+ }), o = m(be(e.settings)), s = e.settings?.l10n?.[t];
473
325
  if (t !== r && s) {
474
- for (let [e, t] of De(s.set)) b(o, e, t);
326
+ for (let [e, t] of he(s.set)) b(o, e, t);
475
327
  for (let [t, n] of Object.entries(s.text ?? {})) y(e.settings, t) !== void 0 && b(o, t, n.value);
476
328
  }
477
329
  return o.locale = t, {
@@ -479,7 +331,7 @@ function Ne(e, t, n) {
479
331
  settings: o
480
332
  };
481
333
  }
482
- function Pe(e, t, n = []) {
334
+ function Se(e, t, n = []) {
483
335
  let r = {
484
336
  translated: [],
485
337
  missing: [],
@@ -489,11 +341,11 @@ function Pe(e, t, n = []) {
489
341
  let n = y(t, a);
490
342
  if (typeof n != "string") continue;
491
343
  let o = i?.[a];
492
- (o || n !== "") && (o ? o.sourceHash === S(n) ? r.translated.push(`${e}/${a}`) : r.stale.push(`${e}/${a}`) : r.missing.push(`${e}/${a}`));
344
+ (o || n !== "") && (o ? o.sourceHash === C(n) ? r.translated.push(`${e}/${a}`) : r.stale.push(`${e}/${a}`) : r.missing.push(`${e}/${a}`));
493
345
  }
494
346
  }, a = (e) => {
495
347
  for (let r of e) {
496
- if (je(r, t)) continue;
348
+ if (ye(r, t)) continue;
497
349
  let e = r.l10n?.[t];
498
350
  i(r.id, r, x(r, n), e?.text);
499
351
  let o = r.children;
@@ -503,34 +355,34 @@ function Pe(e, t, n = []) {
503
355
  };
504
356
  return a(e.blocks), i("settings", e.settings, [...g], e.settings?.l10n?.[t]?.text), r;
505
357
  }
506
- function Fe(e, t) {
507
- if (t === C(e) || !e.settings.locales?.includes(t)) return [];
358
+ function Ce(e, t) {
359
+ if (t === w(e) || !e.settings.locales?.includes(t)) return [];
508
360
  let n = [], r = (e) => {
509
- for (let i of e) je(i, t) && n.push(i.id), i.type === "section" ? i.children.forEach(r) : i.type === "wrapper" && r(i.children);
361
+ for (let i of e) ye(i, t) && n.push(i.id), i.type === "section" ? i.children.forEach(r) : i.type === "wrapper" && r(i.children);
510
362
  };
511
363
  return r(e.blocks), n;
512
364
  }
513
- function Ie(e, t, n = []) {
514
- if (t === C(e) || !e.settings.locales?.includes(t)) return [];
365
+ function we(e, t, n = []) {
366
+ if (t === w(e) || !e.settings.locales?.includes(t)) return [];
515
367
  let r = [], i = (e, n, i) => {
516
- r.push(...Le(n, t, i).map((t) => `${e}/${t}`));
368
+ r.push(...Te(n, t, i).map((t) => `${e}/${t}`));
517
369
  }, a = (e) => {
518
370
  for (let t of e) i(t.id, t, x(t, n)), t.type === "section" ? t.children.forEach(a) : t.type === "wrapper" && a(t.children);
519
371
  };
520
372
  return a(e.blocks), i("settings", e.settings, g), r;
521
373
  }
522
- function Le(e, t, n) {
374
+ function Te(e, t, n) {
523
375
  let r = e.l10n?.[t];
524
376
  return n.filter((t) => {
525
377
  let n = y(e, t);
526
378
  return typeof n != "string" || n === "" || r?.text?.[t] ? !1 : !Object.keys(r?.set ?? {}).some((n) => (t === n || t.startsWith(`${n}.`)) && (!n.includes(".") || y(e, n.slice(0, n.lastIndexOf("."))) !== void 0));
527
379
  });
528
380
  }
529
- function Re(e, t, n = {}) {
530
- let r = C(e), i = (e, n, i) => {
531
- let a = Le(e, t, i), o = m(e.l10n ?? {}), s = o[t] ?? {}, c = m(e);
381
+ function Ee(e, t, n = {}) {
382
+ let r = w(e), i = (e, n, i) => {
383
+ let a = Te(e, t, i), o = m(e.l10n ?? {}), s = o[t] ?? {}, c = m(e);
532
384
  delete c.l10n;
533
- for (let [e, t] of De(s.set)) b(c, e, t);
385
+ for (let [e, t] of he(s.set)) b(c, e, t);
534
386
  for (let [t, n] of Object.entries(s.text ?? {})) y(e, t) !== void 0 && b(c, t, n.value);
535
387
  delete o[t];
536
388
  let l = {}, u = /* @__PURE__ */ new Set([
@@ -542,10 +394,10 @@ function Re(e, t, n = {}) {
542
394
  let r = y(e, t), i = y(c, t);
543
395
  h(r, i) ? (s.text?.[t] || a.includes(t)) && n(t) && typeof r == "string" && r !== "" && ((l.text ??= {})[t] = {
544
396
  value: r,
545
- sourceHash: S(r)
397
+ sourceHash: C(r)
546
398
  }) : n(t) && typeof r == "string" && typeof i == "string" ? (l.text ??= {})[t] = {
547
399
  value: r,
548
- sourceHash: S(i)
400
+ sourceHash: C(i)
549
401
  } : (l.set ??= {})[t] = r === void 0 ? null : m(r);
550
402
  }
551
403
  let d = (e, t) => {
@@ -569,21 +421,21 @@ function Re(e, t, n = {}) {
569
421
  };
570
422
  for (let t of Object.values(o)) {
571
423
  let n = m(e);
572
- for (let [e, r] of De(t.set)) b(n, e, r);
424
+ for (let [e, r] of he(t.set)) b(n, e, r);
573
425
  for (let [r, i] of Object.entries(t.text ?? {})) y(e, r) !== void 0 && b(n, r, i.value);
574
426
  for (let [n, r] of Object.entries(t.text ?? {})) {
575
427
  let i = y(c, n);
576
428
  if (typeof i != "string") (t.set ??= {})[n] = r.value, delete t.text[n];
577
429
  else {
578
430
  let t = y(e, n);
579
- typeof t == "string" && r.sourceHash === S(t) && (r.sourceHash = S(i));
431
+ typeof t == "string" && r.sourceHash === C(t) && (r.sourceHash = C(i));
580
432
  }
581
433
  }
582
434
  d(t, n);
583
435
  }
584
436
  return Object.keys(l).length && (d(l, e), o[r] = l), Object.keys(o).length && (c.l10n = o), c;
585
437
  }, a = (e) => e.map((e) => {
586
- let t = e.type === "custom" ? [.../* @__PURE__ */ new Set([...Object.hasOwn(n, e.id) ? n[e.id] : [], ...Object.values(e.l10n ?? {}).flatMap((e) => Object.keys(e.text ?? {}))])] : x(e), r = i(e, (n) => e.type === "custom" ? t.includes(n) : Te(e.type, n), t);
438
+ let t = e.type === "custom" ? [.../* @__PURE__ */ new Set([...Object.hasOwn(n, e.id) ? n[e.id] : [], ...Object.values(e.l10n ?? {}).flatMap((e) => Object.keys(e.text ?? {}))])] : x(e), r = i(e, (n) => e.type === "custom" ? t.includes(n) : S(e.type, n), t);
587
439
  return e.type === "custom" && r.type === "custom" && !h(e.fieldValues, r.fieldValues) && delete r.renderedHtml, r.type === "section" ? r.children = r.children.map(a) : r.type === "wrapper" && (r.children = a(r.children)), r;
588
440
  }), o = i(e.settings, (e) => g.includes(e), g);
589
441
  return o.locale = t, o.locales = e.settings.locales.map((e) => e === t ? r : e), {
@@ -591,12 +443,12 @@ function Re(e, t, n = {}) {
591
443
  settings: o
592
444
  };
593
445
  }
594
- var ze = "Sections with a wrapper cannot be placed inside wrappers.";
595
- function Be(e, t, n = []) {
446
+ var De = "Sections with a wrapper cannot be placed inside wrappers.";
447
+ function Oe(e, t, n = []) {
596
448
  let r = Object.fromEntries(F(e.blocks).flatMap((e) => {
597
449
  if (e.type !== "custom") return [];
598
450
  let t = x(e, n).filter((t) => typeof y(e, t) == "string");
599
- return t.length && Ke.has(e.id) && E("invalid_operation", 0, qe), t.length ? [[e.id, t]] : [];
451
+ return t.length && Pe.has(e.id) && D("invalid_operation", 0, Fe), t.length ? [[e.id, t]] : [];
600
452
  }));
601
453
  return {
602
454
  op: "setDefaultLocale",
@@ -604,7 +456,7 @@ function Be(e, t, n = []) {
604
456
  ...Object.keys(r).length ? { customTextFields: r } : {}
605
457
  };
606
458
  }
607
- var w = class extends Error {
459
+ var T = class extends Error {
608
460
  code;
609
461
  opIndex;
610
462
  blockId;
@@ -612,164 +464,164 @@ var w = class extends Error {
612
464
  super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
613
465
  }
614
466
  };
615
- function Ve(e) {
467
+ function ke(e) {
616
468
  return e === "1" ? 1 : e === "3" || e === "1-2-1" ? 3 : e === "4" ? 4 : 2;
617
469
  }
618
- function He(e, t, n = {}) {
470
+ function Ae(e, t, n = {}) {
619
471
  let r = m(e);
620
- return T(r, t, n), r;
472
+ return E(r, t, n), r;
621
473
  }
622
- function T(e, t, n = {}) {
474
+ function E(e, t, n = {}) {
623
475
  let r = {
624
476
  locks: n.locks ?? [],
625
477
  session: n.session ?? null
626
478
  };
627
- t.forEach((t, n) => ut(e, t, n, r));
479
+ t.forEach((t, n) => $e(e, t, n, r));
628
480
  }
629
- var Ue = /* @__PURE__ */ new Set([
481
+ var je = /* @__PURE__ */ new Set([
630
482
  "id",
631
483
  "type",
632
484
  "children",
633
485
  "l10n"
634
- ]), We = /* @__PURE__ */ new Set(["locales", "l10n"]), Ge = /* @__PURE__ */ new Set([
486
+ ]), Me = /* @__PURE__ */ new Set(["locales", "l10n"]), Ne = /* @__PURE__ */ new Set([
635
487
  "locale",
636
488
  "locales",
637
489
  "l10n"
638
- ]), Ke = /* @__PURE__ */ new Set([
490
+ ]), Pe = /* @__PURE__ */ new Set([
639
491
  "__proto__",
640
492
  "constructor",
641
493
  "prototype"
642
- ]), qe = "customTextFields must map existing custom block ids to lists of string fieldValues paths.";
643
- function E(e, t, n, r) {
644
- throw new w(e, t, n, r);
494
+ ]), Fe = "customTextFields must map existing custom block ids to lists of string fieldValues paths.";
495
+ function D(e, t, n, r) {
496
+ throw new T(e, t, n, r);
645
497
  }
646
- function D(e) {
498
+ function O(e) {
647
499
  return typeof e == "object" && !!e && !Array.isArray(e);
648
500
  }
649
- function O(e) {
501
+ function k(e) {
650
502
  return e.type === "section";
651
503
  }
652
- function k(e) {
504
+ function Ie(e) {
653
505
  return Array.isArray(e.blocks) ? e.blocks : [];
654
506
  }
655
- function Je(e) {
507
+ function Le(e) {
656
508
  let t = e.children;
657
509
  return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
658
510
  }
659
- function* Ye(e, t) {
511
+ function* Re(e, t) {
660
512
  for (let n = 0; n < e.length; n++) {
661
513
  let r = e[n];
662
- if (D(r) && (yield {
514
+ if (O(r) && (yield {
663
515
  block: r,
664
516
  list: e,
665
517
  index: n,
666
518
  parent: t
667
519
  }, typeof r.id == "string")) {
668
- if (O(r)) for (let [e, t] of Je(r).entries()) yield* Ye(t, {
520
+ if (k(r)) for (let [e, t] of Le(r).entries()) yield* Re(t, {
669
521
  sectionId: r.id,
670
522
  column: e
671
523
  });
672
- else r.type === "wrapper" && Array.isArray(r.children) && (yield* Ye(r.children, { wrapperId: r.id }));
524
+ else r.type === "wrapper" && Array.isArray(r.children) && (yield* Re(r.children, { wrapperId: r.id }));
673
525
  }
674
526
  }
675
527
  }
676
528
  function A(e, t) {
677
- for (let n of Ye(k(e), null)) if (n.block.id === t) return n;
529
+ for (let n of Re(Ie(e), null)) if (n.block.id === t) return n;
678
530
  return null;
679
531
  }
680
532
  function j(e) {
681
- if (!D(e)) return [];
533
+ if (!O(e)) return [];
682
534
  let t = typeof e.id == "string" ? [e.id] : [];
683
- if (O(e)) for (let n of Je(e)) for (let e of Xe(n)) t.push(e);
684
- else if (e.type === "wrapper" && Array.isArray(e.children)) for (let n of Xe(e.children)) t.push(n);
535
+ if (k(e)) for (let n of Le(e)) for (let e of ze(n)) t.push(e);
536
+ else if (e.type === "wrapper" && Array.isArray(e.children)) for (let n of ze(e.children)) t.push(n);
685
537
  return t;
686
538
  }
687
- function Xe(e) {
539
+ function ze(e) {
688
540
  return e.flatMap(j);
689
541
  }
690
542
  function M(e, t) {
691
- return typeof e.blockId != "string" || e.blockId === "" ? E("invalid_operation", t, "blockId must be a block id.") : e.blockId;
543
+ return typeof e.blockId != "string" || e.blockId === "" ? D("invalid_operation", t, "blockId must be a block id.") : e.blockId;
692
544
  }
693
- function Ze(e, t) {
545
+ function Be(e, t) {
694
546
  let n = e.parent;
695
- return n === null ? null : D(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
547
+ return n === null ? null : O(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
696
548
  sectionId: n.sectionId,
697
549
  column: n.column
698
- } : D(n) && typeof n.wrapperId == "string" && n.wrapperId !== "" && !Object.hasOwn(n, "sectionId") && !Object.hasOwn(n, "column") ? { wrapperId: n.wrapperId } : E("invalid_operation", t, "parent must be null, { \"sectionId\", \"column\" }, or { \"wrapperId\" }.");
550
+ } : O(n) && typeof n.wrapperId == "string" && n.wrapperId !== "" && !Object.hasOwn(n, "sectionId") && !Object.hasOwn(n, "column") ? { wrapperId: n.wrapperId } : D("invalid_operation", t, "parent must be null, { \"sectionId\", \"column\" }, or { \"wrapperId\" }.");
699
551
  }
700
- function Qe(e, t) {
552
+ function Ve(e, t) {
701
553
  let n = e.after;
702
- return n === null ? null : typeof n == "string" && n !== "" ? n : E("invalid_operation", t, "after must be null or a block id.");
554
+ return n === null ? null : typeof n == "string" && n !== "" ? n : D("invalid_operation", t, "after must be null or a block id.");
703
555
  }
704
556
  function N(e, t) {
705
557
  let n = e.expect;
706
- return n == null ? null : D(n) ? n : E("invalid_operation", t, "expect must be an object.");
558
+ return n == null ? null : O(n) ? n : D("invalid_operation", t, "expect must be an object.");
707
559
  }
708
- function $e(e, t, n) {
560
+ function He(e, t, n) {
709
561
  let r = e.set ?? null, i = e.unset ?? [];
710
- (r === null || D(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || E("invalid_operation", t, "set must be an object and unset a list of keys.");
562
+ (r === null || O(r)) && Array.isArray(i) && i.every((e) => typeof e == "string") || D("invalid_operation", t, "set must be an object and unset a list of keys.");
711
563
  let a = r === null ? {} : r, o = Object.keys(a).filter((e) => a[e] !== void 0);
712
- o.length === 0 && i.length === 0 && E("invalid_operation", t, "Set or unset at least one key.");
713
- for (let e of [...o, ...i]) n.has(e) && E("invalid_operation", t, `"${e}" can't be set or unset.`);
564
+ o.length === 0 && i.length === 0 && D("invalid_operation", t, "Set or unset at least one key.");
565
+ for (let e of [...o, ...i]) n.has(e) && D("invalid_operation", t, `"${e}" can't be set or unset.`);
714
566
  let s = i.find((e) => o.includes(e));
715
- return s !== void 0 && E("invalid_operation", t, `"${s}" is both set and unset.`), {
567
+ return s !== void 0 && D("invalid_operation", t, `"${s}" is both set and unset.`), {
716
568
  set: Object.fromEntries(o.map((e) => [e, a[e]])),
717
569
  unset: i
718
570
  };
719
571
  }
720
- function et(e, t, n) {
721
- if (D(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || E("invalid_operation", t, "A block needs a non-empty string id and a string type."), e.type === "wrapper") {
722
- n !== "root" && E("invalid_operation", t, n === "column" ? "Wrappers can only be placed at the top level." : "Wrappers cannot be placed inside wrappers."), Array.isArray(e.children) || E("invalid_operation", t, "A wrapper needs children: a list of blocks.");
723
- for (let n of e.children) et(n, t, "wrapper");
572
+ function Ue(e, t, n) {
573
+ if (O(e) && typeof e.id == "string" && e.id !== "" && typeof e.type == "string" || D("invalid_operation", t, "A block needs a non-empty string id and a string type."), e.type === "wrapper") {
574
+ n !== "root" && D("invalid_operation", t, n === "column" ? "Wrappers can only be placed at the top level." : "Wrappers cannot be placed inside wrappers."), Array.isArray(e.children) || D("invalid_operation", t, "A wrapper needs children: a list of blocks.");
575
+ for (let n of e.children) Ue(n, t, "wrapper");
724
576
  return;
725
577
  }
726
- if (!O(e)) return;
727
- n === "column" && E("invalid_operation", t, "Sections can only be placed at the top level."), n === "wrapper" && e.wrapper && E("invalid_operation", t, ze);
578
+ if (!k(e)) return;
579
+ n === "column" && D("invalid_operation", t, "Sections can only be placed at the top level."), n === "wrapper" && e.wrapper && D("invalid_operation", t, De);
728
580
  let r = e.children;
729
- Array.isArray(r) && r.every((e) => Array.isArray(e)) || E("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
730
- for (let e of r) for (let n of e) et(n, t, "column");
581
+ Array.isArray(r) && r.every((e) => Array.isArray(e)) || D("invalid_operation", t, "A section needs children: a list of columns, each a list of blocks.");
582
+ for (let e of r) for (let n of e) Ue(n, t, "column");
731
583
  }
732
584
  function P(e, t) {
733
585
  return e.session === null || t.sessionId !== e.session;
734
586
  }
735
- function tt(e, t, n) {
587
+ function We(e, t, n) {
736
588
  let r = e.locks.find((n) => t.includes(n.blockId) && P(e, n));
737
- r && E("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
589
+ r && D("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
738
590
  }
739
- function nt(e, t, n, r) {
740
- e.locks.find((r) => P(e, r) && r.blockId === t && ((r.locale ?? null) === null || r.locale === n)) && E("lock_held", r, `Block "${t}" is being edited in another session.`, t);
591
+ function Ge(e, t, n, r) {
592
+ e.locks.find((r) => P(e, r) && r.blockId === t && ((r.locale ?? null) === null || r.locale === n)) && D("lock_held", r, `Block "${t}" is being edited in another session.`, t);
741
593
  }
742
- function rt(e, t, n, r) {
743
- for (let [i, a] of Object.entries(t)) a !== void 0 && (h(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || E("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
594
+ function Ke(e, t, n, r) {
595
+ for (let [i, a] of Object.entries(t)) a !== void 0 && (h(Object.hasOwn(e, i) && e[i] !== void 0 ? e[i] : null, a) || D("precondition_failed", n, r === void 0 ? `Setting "${i}" has changed since.` : `"${i}" of block "${r}" has changed since.`, r));
744
596
  }
745
- function it(e, t, n) {
597
+ function qe(e, t, n) {
746
598
  if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
747
599
  if ("wrapperId" in t) {
748
600
  let r = A(e, t.wrapperId);
749
- return r ? r.block.type === "wrapper" ? Array.isArray(r.block.children) ? r.block.children : E("invalid_operation", n, `Wrapper "${t.wrapperId}" has no children list.`) : E("invalid_operation", n, `Block "${t.wrapperId}" isn't a wrapper.`) : E("block_missing", n, `No wrapper with id "${t.wrapperId}".`, t.wrapperId);
601
+ return r ? r.block.type === "wrapper" ? Array.isArray(r.block.children) ? r.block.children : D("invalid_operation", n, `Wrapper "${t.wrapperId}" has no children list.`) : D("invalid_operation", n, `Block "${t.wrapperId}" isn't a wrapper.`) : D("block_missing", n, `No wrapper with id "${t.wrapperId}".`, t.wrapperId);
750
602
  }
751
603
  let r = A(e, t.sectionId);
752
- if (!r) return E("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
753
- if (!O(r.block)) return E("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
604
+ if (!r) return D("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
605
+ if (!k(r.block)) return D("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
754
606
  let i = r.block.children;
755
- return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? E("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
607
+ return !Array.isArray(i) || t.column < 0 || t.column >= i.length ? D("invalid_operation", n, `Section "${t.sectionId}" has no column ${t.column}.`) : (Array.isArray(i[t.column]) || (i[t.column] = []), i[t.column]);
756
608
  }
757
- function at(e, t, n) {
609
+ function Je(e, t, n) {
758
610
  if (t === null) return 0;
759
- let r = e.findIndex((e) => D(e) && e.id === t);
760
- return r === -1 ? E("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
611
+ let r = e.findIndex((e) => O(e) && e.id === t);
612
+ return r === -1 ? D("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
761
613
  }
762
- function ot(e, t, n, r) {
763
- let i = Ve(t), a = Array.isArray(e.children) ? e.children : [];
614
+ function Ye(e, t, n, r) {
615
+ let i = ke(t), a = Array.isArray(e.children) ? e.children : [];
764
616
  for (let e = i; e < a.length; e++) {
765
617
  let t = a[e];
766
- Array.isArray(t) && t.length > 0 && E("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
618
+ Array.isArray(t) && t.length > 0 && D("invalid_operation", n, `Column ${e} of section "${r}" still holds blocks, so the layout can't drop it.`);
767
619
  }
768
620
  let o = a.slice(0, i);
769
621
  for (; o.length < i;) o.push([]);
770
622
  e.children = o;
771
623
  }
772
- function st(e, t, n) {
624
+ function Xe(e, t, n) {
773
625
  for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
774
626
  value: m(r),
775
627
  writable: !0,
@@ -778,8 +630,8 @@ function st(e, t, n) {
778
630
  }) : e[n] = m(r);
779
631
  for (let t of n) delete e[t];
780
632
  }
781
- function ct(e) {
782
- return pe(e).map((t) => {
633
+ function Ze(e) {
634
+ return ne(e).map((t) => {
783
635
  let n = t.path.replace(/\.(items|icons|rows)\[.*$/, "").replace(/\[(\d+)\]/g, ".$1").split(".").reduce((e, t) => e[t], e);
784
636
  return {
785
637
  id: t.id,
@@ -787,114 +639,114 @@ function ct(e) {
787
639
  };
788
640
  });
789
641
  }
790
- function lt(e, t, n) {
791
- let r = ({ id: e, blockId: t }) => JSON.stringify([t ?? null, e]), i = new Set(n ? ct(n).map(r) : []), a = ct(e).find((e) => !i.has(r(e)));
792
- a && E("invalid_operation", t, `Element id "${a.id}" must not contain "." or "/".`, a.blockId);
642
+ function Qe(e, t, n) {
643
+ let r = ({ id: e, blockId: t }) => JSON.stringify([t ?? null, e]), i = new Set(n ? Ze(n).map(r) : []), a = Ze(e).find((e) => !i.has(r(e)));
644
+ a && D("invalid_operation", t, `Element id "${a.id}" must not contain "." or "/".`, a.blockId);
793
645
  }
794
- function ut(e, t, n, r) {
646
+ function $e(e, t, n, r) {
795
647
  let i = t;
796
- switch (D(i) && typeof i.op == "string" || E("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
797
- case "addBlock": return dt(e, i, n);
798
- case "moveBlock": return ft(e, i, n, r);
799
- case "deleteBlock": return pt(e, i, n, r);
800
- case "updateBlock": return mt(e, i, n, r);
801
- case "updateSettings": return ht(e, i, n);
802
- case "setContent": return At(e, i, n, r);
803
- case "setDefaultLocale": return jt(e, i, n, r);
804
- case "addLocale": return vt(e, i, n);
805
- case "removeLocale": return bt(e, i, n);
806
- case "updateBlockLocale": return Ot(e, i, n, r);
807
- case "updateSettingsLocale": return kt(e, i, n);
808
- default: E("invalid_operation", n, `Unknown operation "${i.op}".`);
809
- }
810
- }
811
- function dt(e, t, n) {
812
- let r = Ze(t, n), i = Qe(t, n), a = t.block;
813
- et(a, n, r === null ? "root" : "wrapperId" in r ? "wrapper" : "column"), lt({
648
+ switch (O(i) && typeof i.op == "string" || D("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
649
+ case "addBlock": return et(e, i, n);
650
+ case "moveBlock": return tt(e, i, n, r);
651
+ case "deleteBlock": return nt(e, i, n, r);
652
+ case "updateBlock": return rt(e, i, n, r);
653
+ case "updateSettings": return it(e, i, n);
654
+ case "setContent": return yt(e, i, n, r);
655
+ case "setDefaultLocale": return bt(e, i, n, r);
656
+ case "addLocale": return st(e, i, n);
657
+ case "removeLocale": return lt(e, i, n);
658
+ case "updateBlockLocale": return _t(e, i, n, r);
659
+ case "updateSettingsLocale": return vt(e, i, n);
660
+ default: D("invalid_operation", n, `Unknown operation "${i.op}".`);
661
+ }
662
+ }
663
+ function et(e, t, n) {
664
+ let r = Be(t, n), i = Ve(t, n), a = t.block;
665
+ Ue(a, n, r === null ? "root" : "wrapperId" in r ? "wrapper" : "column"), Qe({
814
666
  blocks: [a],
815
667
  settings: e.settings
816
668
  }, n);
817
- let o = new Set(Xe(k(e))), s = /* @__PURE__ */ new Set();
818
- for (let e of j(a)) (o.has(e) || s.has(e)) && E("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
819
- let c = it(e, r, n), l = at(c, i, n);
820
- Dt(e, a, r, n, !0), c.splice(l, 0, m(a));
821
- }
822
- function ft(e, t, n, r) {
823
- let i = M(t, n), a = Ze(t, n), o = Qe(t, n), s = N(t, n), c = s && s.parent !== void 0 ? Ze({ parent: s.parent }, n) : null, l = A(e, i);
824
- if (!l) return E("block_missing", n, `No block with id "${i}".`, i);
825
- if (tt(r, j(l.block), n), s) {
826
- let e = l.index > 0 ? l.list[l.index - 1] : null, t = D(e) ? e.id ?? null : null;
827
- h(l.parent, c) && h(t, s.after ?? null) || E("precondition_failed", n, `Block "${i}" has moved since.`, i);
669
+ let o = new Set(ze(Ie(e))), s = /* @__PURE__ */ new Set();
670
+ for (let e of j(a)) (o.has(e) || s.has(e)) && D("block_exists", n, `A block with id "${e}" already exists.`, e), s.add(e);
671
+ let c = qe(e, r, n), l = Je(c, i, n);
672
+ gt(e, a, r, n, !0), c.splice(l, 0, m(a));
673
+ }
674
+ function tt(e, t, n, r) {
675
+ let i = M(t, n), a = Be(t, n), o = Ve(t, n), s = N(t, n), c = s && s.parent !== void 0 ? Be({ parent: s.parent }, n) : null, l = A(e, i);
676
+ if (!l) return D("block_missing", n, `No block with id "${i}".`, i);
677
+ if (We(r, j(l.block), n), s) {
678
+ let e = l.index > 0 ? l.list[l.index - 1] : null, t = O(e) ? e.id ?? null : null;
679
+ h(l.parent, c) && h(t, s.after ?? null) || D("precondition_failed", n, `Block "${i}" has moved since.`, i);
828
680
  }
829
- a !== null && ("wrapperId" in a ? a.wrapperId : a.sectionId) === i && E("invalid_operation", n, "A block cannot be moved into itself or its descendants."), a !== null && j(l.block).includes("wrapperId" in a ? a.wrapperId : a.sectionId) && E("invalid_operation", n, "A block cannot be moved into itself or its descendants."), O(l.block) && a !== null && "sectionId" in a && E("invalid_operation", n, "Sections can only be placed at the top level."), O(l.block) && l.block.wrapper && a !== null && "wrapperId" in a && E("invalid_operation", n, ze), l.block.type === "wrapper" && a !== null && E("invalid_operation", n, "wrapperId" in a ? "Wrappers cannot be placed inside wrappers." : "Wrappers can only be placed at the top level."), o === i && E("invalid_operation", n, "A block can't be placed after itself.");
830
- let u = it(e, a, n);
831
- at(u.filter((e) => e !== l.block), o, n), Dt(e, l.block, a, n, !1), l.list.splice(l.index, 1), u.splice(at(u, o, n), 0, l.block);
681
+ a !== null && ("wrapperId" in a ? a.wrapperId : a.sectionId) === i && D("invalid_operation", n, "A block cannot be moved into itself or its descendants."), a !== null && j(l.block).includes("wrapperId" in a ? a.wrapperId : a.sectionId) && D("invalid_operation", n, "A block cannot be moved into itself or its descendants."), k(l.block) && a !== null && "sectionId" in a && D("invalid_operation", n, "Sections can only be placed at the top level."), k(l.block) && l.block.wrapper && a !== null && "wrapperId" in a && D("invalid_operation", n, De), l.block.type === "wrapper" && a !== null && D("invalid_operation", n, "wrapperId" in a ? "Wrappers cannot be placed inside wrappers." : "Wrappers can only be placed at the top level."), o === i && D("invalid_operation", n, "A block can't be placed after itself.");
682
+ let u = qe(e, a, n);
683
+ Je(u.filter((e) => e !== l.block), o, n), gt(e, l.block, a, n, !1), l.list.splice(l.index, 1), u.splice(Je(u, o, n), 0, l.block);
832
684
  }
833
- function pt(e, t, n, r) {
685
+ function nt(e, t, n, r) {
834
686
  let i = M(t, n), a = N(t, n), o = A(e, i);
835
- if (!o) return E("block_missing", n, `No block with id "${i}".`, i);
836
- tt(r, j(o.block), n), a && !h(o.block, a.block ?? null) && E("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
837
- }
838
- function mt(e, t, n, r) {
839
- let i = M(t, n), { set: a, unset: o } = $e(t, n, Ue), s = N(t, n), c = A(e, i);
840
- if (!c) return E("block_missing", n, `No block with id "${i}".`, i);
841
- let l = c.block, u = O(l);
842
- u && o.includes("columns") && E("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), tt(r, [i], n), s && rt(l, s, n, i), u && c.parent !== null && "wrapperId" in c.parent && a.wrapper && E("invalid_operation", n, ze);
687
+ if (!o) return D("block_missing", n, `No block with id "${i}".`, i);
688
+ We(r, j(o.block), n), a && !h(o.block, a.block ?? null) && D("precondition_failed", n, `Block "${i}" has changed since.`, i), o.list.splice(o.index, 1);
689
+ }
690
+ function rt(e, t, n, r) {
691
+ let i = M(t, n), { set: a, unset: o } = He(t, n, je), s = N(t, n), c = A(e, i);
692
+ if (!c) return D("block_missing", n, `No block with id "${i}".`, i);
693
+ let l = c.block, u = k(l);
694
+ u && o.includes("columns") && D("invalid_operation", n, "A section's columns can't be unset; set another layout instead."), We(r, [i], n), s && Ke(l, s, n, i), u && c.parent !== null && "wrapperId" in c.parent && a.wrapper && D("invalid_operation", n, De);
843
695
  let d = { ...l };
844
- st(d, a, o), lt({
696
+ Xe(d, a, o), Qe({
845
697
  blocks: [d],
846
698
  settings: e.settings
847
699
  }, n, {
848
700
  blocks: [l],
849
701
  settings: e.settings
850
- }), u && Object.hasOwn(a, "columns") && ot(l, a.columns, n, i), st(l, a, o);
851
- let f = xe(l);
702
+ }), u && Object.hasOwn(a, "columns") && Ye(l, a.columns, n, i), Xe(l, a, o);
703
+ let f = ue(l);
852
704
  h(l.l10n, f.l10n) || (f.l10n ? l.l10n = f.l10n : delete l.l10n), (u || l.type === "wrapper") && !h(l.children, f.children) && (l.children = f.children);
853
705
  }
854
- function ht(e, t, n) {
855
- let { set: r, unset: i } = $e(t, n, We), a = N(t, n);
856
- e.settings?.locales?.length && (Object.hasOwn(r, "locale") || i.includes("locale")) && E("invalid_operation", n, "The default locale can't change while language versions exist."), D(e.settings) || (e.settings = {});
706
+ function it(e, t, n) {
707
+ let { set: r, unset: i } = He(t, n, Me), a = N(t, n);
708
+ e.settings?.locales?.length && (Object.hasOwn(r, "locale") || i.includes("locale")) && D("invalid_operation", n, "The default locale can't change while language versions exist."), O(e.settings) || (e.settings = {});
857
709
  let o = e.settings;
858
- a && rt(o, a, n), st(o, r, i);
859
- let s = Ce(e.settings);
710
+ a && Ke(o, a, n), Xe(o, r, i);
711
+ let s = fe(e.settings);
860
712
  h(o.l10n, s.l10n) || (s.l10n ? o.l10n = s.l10n : delete o.l10n);
861
713
  }
862
- function gt(e, t) {
714
+ function at(e, t) {
863
715
  let n = e.locale;
864
- return _e(n) && n !== "__proto__" && n !== "constructor" && n !== "prototype" || E("invalid_operation", t, "locale must be a language tag."), n;
716
+ return oe(n) && n !== "__proto__" && n !== "constructor" && n !== "prototype" || D("invalid_operation", t, "locale must be a language tag."), n;
865
717
  }
866
- function _t(e, t, n) {
867
- let r = gt(t, n);
868
- return e.settings.locales?.includes(r) || E("invalid_operation", n, `Locale "${r}" isn't in settings.locales.`), r;
718
+ function ot(e, t, n) {
719
+ let r = at(t, n);
720
+ return e.settings.locales?.includes(r) || D("invalid_operation", n, `Locale "${r}" isn't in settings.locales.`), r;
869
721
  }
870
- function vt(e, t, n) {
871
- let r = gt(t, n), i = e.settings.locales ?? [], a = r.toLowerCase(), o = t.position === void 0 ? i.length : t.position;
872
- (C(e).toLowerCase() === a || i.some((e) => e.toLowerCase() === a) || typeof o != "number" || !Number.isInteger(o) || o < 0 || o > i.length) && E("invalid_operation", n, "The locale already exists or its insertion position is invalid."), e.settings.locales || (e.settings.locales = []), e.settings.locales.splice(o, 0, r);
722
+ function st(e, t, n) {
723
+ let r = at(t, n), i = e.settings.locales ?? [], a = r.toLowerCase(), o = t.position === void 0 ? i.length : t.position;
724
+ (w(e).toLowerCase() === a || i.some((e) => e.toLowerCase() === a) || typeof o != "number" || !Number.isInteger(o) || o < 0 || o > i.length) && D("invalid_operation", n, "The locale already exists or its insertion position is invalid."), e.settings.locales || (e.settings.locales = []), e.settings.locales.splice(o, 0, r);
873
725
  }
874
726
  function F(e) {
875
- return e.flatMap((e) => D(e) ? [e, ...O(e) ? Je(e).flatMap(F) : e.type === "wrapper" && Array.isArray(e.children) ? F(e.children) : []] : []);
727
+ return e.flatMap((e) => O(e) ? [e, ...k(e) ? Le(e).flatMap(F) : e.type === "wrapper" && Array.isArray(e.children) ? F(e.children) : []] : []);
876
728
  }
877
- function yt(e, t) {
729
+ function ct(e, t) {
878
730
  let n = e.l10n;
879
- return D(n) && D(n[t]) ? n[t] : {};
880
- }
881
- function bt(e, t, n) {
882
- let r = _t(e, t, n), i = N(t, n);
883
- i && (!D(i.blocks) || i.settings !== void 0 && !D(i.settings)) && E("invalid_operation", n, "expect needs a blocks object and an optional settings layer.");
884
- let a = e.settings, o = F(k(e)), s = Object.fromEntries(o.flatMap((e) => D(e.l10n) && Object.hasOwn(e.l10n, r) ? [[String(e.id), e.l10n[r]]] : []));
885
- !i || h(s, i.blocks) && h(D(a.l10n) ? a.l10n[r] : void 0, i.settings) || E("precondition_failed", n, `Locale "${r}" has changed since.`);
886
- for (let e of [...o, a]) D(e.l10n) && (delete e.l10n[r], Object.keys(e.l10n).length === 0 && delete e.l10n);
731
+ return O(n) && O(n[t]) ? n[t] : {};
732
+ }
733
+ function lt(e, t, n) {
734
+ let r = ot(e, t, n), i = N(t, n);
735
+ i && (!O(i.blocks) || i.settings !== void 0 && !O(i.settings)) && D("invalid_operation", n, "expect needs a blocks object and an optional settings layer.");
736
+ let a = e.settings, o = F(Ie(e)), s = Object.fromEntries(o.flatMap((e) => O(e.l10n) && Object.hasOwn(e.l10n, r) ? [[String(e.id), e.l10n[r]]] : []));
737
+ !i || h(s, i.blocks) && h(O(a.l10n) ? a.l10n[r] : void 0, i.settings) || D("precondition_failed", n, `Locale "${r}" has changed since.`);
738
+ for (let e of [...o, a]) O(e.l10n) && (delete e.l10n[r], Object.keys(e.l10n).length === 0 && delete e.l10n);
887
739
  e.settings.locales.splice(e.settings.locales.indexOf(r), 1), e.settings.locales.length === 0 && delete e.settings.locales;
888
740
  }
889
- function xt(e, t, n) {
890
- (e.text === void 0 || ((e) => D(e) && Object.values(e).every((e) => D(e) && typeof e.value == "string" && typeof e.sourceHash == "string"))(e.text)) && (e.set === void 0 || D(e.set) && !Object.values(e.set).some((e) => e === void 0)) && (e.unset === void 0 || Array.isArray(e.unset) && e.unset.every((e) => typeof e == "string" && e !== "" && v(e))) && (e.hidden === void 0 || !n && typeof e.hidden == "boolean") && [
741
+ function ut(e, t, n) {
742
+ (e.text === void 0 || ((e) => O(e) && Object.values(e).every((e) => O(e) && typeof e.value == "string" && typeof e.sourceHash == "string"))(e.text)) && (e.set === void 0 || O(e.set) && !Object.values(e.set).some((e) => e === void 0)) && (e.unset === void 0 || Array.isArray(e.unset) && e.unset.every((e) => typeof e == "string" && e !== "" && v(e))) && (e.hidden === void 0 || !n && typeof e.hidden == "boolean") && [
891
743
  "text",
892
744
  "set",
893
745
  "unset",
894
746
  ...n ? [] : ["hidden"]
895
- ].some((t) => e[t] !== void 0) || E("invalid_operation", t, "A locale update needs text, set, unset or a block's boolean hidden.");
747
+ ].some((t) => e[t] !== void 0) || D("invalid_operation", t, "A locale update needs text, set, unset or a block's boolean hidden.");
896
748
  let r = N(e, t);
897
- return r && (r.text !== void 0 && !D(r.text) || r.set !== void 0 && !D(r.set) || r.hidden !== void 0 && (n || typeof r.hidden != "boolean")) && E("invalid_operation", t, "The locale layer expect is malformed."), {
749
+ return r && (r.text !== void 0 && !O(r.text) || r.set !== void 0 && !O(r.set) || r.hidden !== void 0 && (n || typeof r.hidden != "boolean")) && D("invalid_operation", t, "The locale layer expect is malformed."), {
898
750
  text: e.text ?? {},
899
751
  set: e.set ?? {},
900
752
  unset: e.unset ?? [],
@@ -902,22 +754,22 @@ function xt(e, t, n) {
902
754
  expect: r
903
755
  };
904
756
  }
905
- function St(e, t, n, r) {
906
- for (let i of Object.keys(t.text)) v(i) && (r ? g.includes(i) : Te(String(e.type), i)) && y(e, i) !== void 0 || E("invalid_operation", n, `Text path "${i}" isn't translatable or doesn't resolve.`);
757
+ function dt(e, t, n, r) {
758
+ for (let i of Object.keys(t.text)) v(i) && (r ? g.includes(i) : S(String(e.type), i)) && y(e, i) !== void 0 || D("invalid_operation", n, `Text path "${i}" isn't translatable or doesn't resolve.`);
907
759
  for (let i of Object.keys(t.set)) {
908
- let a = i.split("."), o = r ? Ge : Ue, s = a.length === 1 ? e : y(e, a.slice(0, -1).join("."));
909
- (!v(i) || o.has(a[0]) || !r && Se(e, i, t.set[i]) || y(e, i) === void 0 && !D(s)) && E("invalid_operation", n, `Override path "${i}" is immutable or doesn't resolve.`);
760
+ let a = i.split("."), o = r ? Ne : je, s = a.length === 1 ? e : y(e, a.slice(0, -1).join("."));
761
+ (!v(i) || o.has(a[0]) || !r && de(e, i, t.set[i]) || y(e, i) === void 0 && !O(s)) && D("invalid_operation", n, `Override path "${i}" is immutable or doesn't resolve.`);
910
762
  }
911
763
  }
912
- function Ct(e, t, n, r) {
764
+ function ft(e, t, n, r) {
913
765
  if (t) {
914
- for (let i of ["text", "set"]) for (let [a, o] of Object.entries(t[i] ?? {})) h(e[i]?.[a] ?? null, o) || E("precondition_failed", n, `Locale path "${a}" has changed since.`, r);
915
- t.hidden !== void 0 && !h(e.hidden === !0, t.hidden) && E("precondition_failed", n, "The locale's hidden state has changed since.", r);
766
+ for (let i of ["text", "set"]) for (let [a, o] of Object.entries(t[i] ?? {})) h(e[i]?.[a] ?? null, o) || D("precondition_failed", n, `Locale path "${a}" has changed since.`, r);
767
+ t.hidden !== void 0 && !h(e.hidden === !0, t.hidden) && D("precondition_failed", n, "The locale's hidden state has changed since.", r);
916
768
  }
917
769
  }
918
- function wt(e, t, n) {
919
- D(e.l10n) || (e.l10n = {});
920
- let r = e.l10n, i = Object.prototype.hasOwnProperty.call(r, t) ? r[t] : void 0, a = D(i) ? i : {};
770
+ function pt(e, t, n) {
771
+ O(e.l10n) || (e.l10n = {});
772
+ let r = e.l10n, i = Object.prototype.hasOwnProperty.call(r, t) ? r[t] : void 0, a = O(i) ? i : {};
921
773
  a !== i && (r[t] = a);
922
774
  for (let e of n.unset) a.text && delete a.text[e], a.set && delete a.set[e];
923
775
  for (let [e, t] of Object.entries(n.text)) a.text ||= {}, a.text[e] = m(t), a.set && delete a.set[e];
@@ -925,63 +777,317 @@ function wt(e, t, n) {
925
777
  n.hidden === !0 ? a.hidden = !0 : n.hidden === !1 && delete a.hidden, a.text && Object.keys(a.text).length === 0 && delete a.text, a.set && Object.keys(a.set).length === 0 && delete a.set, Object.keys(a).length === 0 && delete r[t], Object.keys(r).length === 0 && delete e.l10n;
926
778
  }
927
779
  function I(e) {
928
- return D(e) ? e.type === "slot" || Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(I) : I(e)) : !1;
780
+ return O(e) ? e.type === "slot" || Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(I) : I(e)) : !1;
929
781
  }
930
- function Tt(e) {
931
- return D(e) && D(e.l10n) && Object.values(e.l10n).some((e) => D(e) && e.hidden === !0);
782
+ function mt(e) {
783
+ return O(e) && O(e.l10n) && Object.values(e.l10n).some((e) => O(e) && e.hidden === !0);
932
784
  }
933
- function Et(e) {
934
- return !D(e) || !I(e) ? !1 : Tt(e) ? !0 : Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(Et) : Et(e));
785
+ function ht(e) {
786
+ return !O(e) || !I(e) ? !1 : mt(e) ? !0 : Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(ht) : ht(e));
935
787
  }
936
- function Dt(e, t, n, r, i) {
788
+ function gt(e, t, n, r, i) {
937
789
  if (!I(t)) return;
938
790
  let a = n, o = !1;
939
791
  for (; a !== null;) {
940
792
  let t = A(e, "wrapperId" in a ? a.wrapperId : a.sectionId);
941
793
  if (!t) break;
942
- Tt(t.block) && (o = !0), a = t.parent;
794
+ mt(t.block) && (o = !0), a = t.parent;
943
795
  }
944
- (o || i && Et(t)) && E("invalid_operation", r, "A layout's slot block can't be placed inside a block that a language hides.", D(t) && typeof t.id == "string" ? t.id : void 0);
796
+ (o || i && ht(t)) && D("invalid_operation", r, "A layout's slot block can't be placed inside a block that a language hides.", O(t) && typeof t.id == "string" ? t.id : void 0);
945
797
  }
946
- function Ot(e, t, n, r) {
947
- let i = _t(e, t, n), a = M(t, n), o = xt(t, n, !1), s = F(k(e)).find((e) => e.id === a);
948
- s || E("block_missing", n, `No block with id "${a}".`, a), St(s, o, n, !1), nt(r, a, i, n), Ct(yt(s, i), o.expect, n, a), o.hidden === !0 && I(s) && E("invalid_operation", n, "A layout's slot block, and any block that contains it, can't be hidden.", a), wt(s, i, o);
798
+ function _t(e, t, n, r) {
799
+ let i = ot(e, t, n), a = M(t, n), o = ut(t, n, !1), s = F(Ie(e)).find((e) => e.id === a);
800
+ s || D("block_missing", n, `No block with id "${a}".`, a), dt(s, o, n, !1), Ge(r, a, i, n), ft(ct(s, i), o.expect, n, a), o.hidden === !0 && I(s) && D("invalid_operation", n, "A layout's slot block, and any block that contains it, can't be hidden.", a), pt(s, i, o);
949
801
  }
950
- function kt(e, t, n) {
951
- let r = _t(e, t, n), i = xt(t, n, !0), a = e.settings;
952
- St(a, i, n, !0), Ct(yt(a, r), i.expect, n), wt(a, r, i);
802
+ function vt(e, t, n) {
803
+ let r = ot(e, t, n), i = ut(t, n, !0), a = e.settings;
804
+ dt(a, i, n, !0), ft(ct(a, r), i.expect, n), pt(a, r, i);
953
805
  }
954
- function At(e, t, n, r) {
806
+ function yt(e, t, n, r) {
955
807
  let i = t.content;
956
- if (!D(i) || !Array.isArray(i.blocks) || !D(i.settings)) return E("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
957
- lt(i, n, e);
808
+ if (!O(i) || !Array.isArray(i.blocks) || !O(i.settings)) return D("invalid_operation", n, "setContent needs content with a blocks array and a settings object.");
809
+ Qe(i, n, e);
958
810
  let a = r.locks.find((e) => P(r, e));
959
- a && E("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = m(i.blocks), e.settings = m(i.settings);
811
+ a && D("locked_by_others", n, "Other sessions hold locks on this template.", a.blockId), e.blocks = m(i.blocks), e.settings = m(i.settings);
960
812
  }
961
- function jt(e, t, n, r) {
962
- let i = gt(t, n);
963
- e.settings.locales?.includes(i) || E("invalid_operation", n, `"${i}" is not a language version of this template.`);
964
- let a = Fe(e, i);
965
- a.length && E("invalid_operation", n, a.length === 1 ? `1 block is hidden in "${i}". Show it before making it the default.` : `${a.length} blocks are hidden in "${i}". Show them before making it the default.`, a[0]);
813
+ function bt(e, t, n, r) {
814
+ let i = at(t, n);
815
+ e.settings.locales?.includes(i) || D("invalid_operation", n, `"${i}" is not a language version of this template.`);
816
+ let a = Ce(e, i);
817
+ a.length && D("invalid_operation", n, a.length === 1 ? `1 block is hidden in "${i}". Show it before making it the default.` : `${a.length} blocks are hidden in "${i}". Show them before making it the default.`, a[0]);
966
818
  let o = r.locks.find((e) => P(r, e));
967
- o && E("locked_by_others", n, "Other sessions hold locks on this template.", o.blockId);
819
+ o && D("locked_by_others", n, "Other sessions hold locks on this template.", o.blockId);
968
820
  let s = t.customTextFields;
969
821
  if (s !== void 0) {
970
822
  let t = F(e.blocks);
971
- (!D(s) || Object.getOwnPropertyNames(s).some((e) => {
972
- if (Ke.has(e)) return !0;
823
+ (!O(s) || Object.getOwnPropertyNames(s).some((e) => {
824
+ if (Pe.has(e)) return !0;
973
825
  let n = s[e], r = t.find((t) => t.id === e);
974
- return r?.type !== "custom" || !Array.isArray(n) || n.some((e) => typeof e != "string" || !v(e) || !Te("custom", e) || typeof y(r, e) != "string");
975
- })) && E("invalid_operation", n, qe);
826
+ return r?.type !== "custom" || !Array.isArray(n) || n.some((e) => typeof e != "string" || !v(e) || !S("custom", e) || typeof y(r, e) != "string");
827
+ })) && D("invalid_operation", n, Fe);
976
828
  }
977
- let c = Re(e, i, t.customTextFields);
829
+ let c = Ee(e, i, t.customTextFields);
978
830
  e.blocks = c.blocks, e.settings = c.settings;
979
831
  }
832
+ var xt = {
833
+ 1: [100],
834
+ 2: [50, 50],
835
+ 3: [
836
+ 33.33,
837
+ 33.33,
838
+ 33.34
839
+ ],
840
+ 4: [
841
+ 25,
842
+ 25,
843
+ 25,
844
+ 25
845
+ ],
846
+ "1-2": [33.33, 66.67],
847
+ "2-1": [66.67, 33.33],
848
+ "1-3": [25, 75],
849
+ "3-1": [75, 25],
850
+ "1-2-1": [
851
+ 25,
852
+ 50,
853
+ 25
854
+ ]
855
+ };
856
+ function St(e) {
857
+ return Object.hasOwn(xt, e) ? xt[e] : [100];
858
+ }
859
+ function Ct(e) {
860
+ return typeof e == "number" && Number.isFinite(e) && e > 0;
861
+ }
862
+ function wt(e) {
863
+ let t = e.columnWidths;
864
+ if (t === void 0) return null;
865
+ if (!Array.isArray(t)) return "value";
866
+ if (t.length !== ke(e.columns)) return "count";
867
+ for (let e = 0; e < t.length; e++) if (!Ct(t[e])) return "value";
868
+ return null;
869
+ }
870
+ var Tt = 0xe8d4a51000, Et = 1e4;
871
+ function Dt(e) {
872
+ let t = e.length, n = 0;
873
+ for (let r = 0; r < t; r++) {
874
+ let t = e[r];
875
+ t > n && (n = t);
876
+ }
877
+ let r = [], i = 0n;
878
+ for (let a = 0; a < t; a++) {
879
+ let t = BigInt(Math.round(e[a] / n * Tt));
880
+ r.push(t), i += t;
881
+ }
882
+ let a = [], o = [], s = BigInt(Et);
883
+ for (let e = 0; e < t; e++) {
884
+ let t = r[e] * s;
885
+ a.push(Number(t / i)), o.push(t % i);
886
+ }
887
+ for (let e = 0; e < t; e++) a[e] < 1 && (a[e] = 1);
888
+ let c = 0;
889
+ for (let e = 0; e < t; e++) c += a[e];
890
+ let l = Et - c, u = Array.from({ length: t }, (e, t) => t);
891
+ if (l > 0) {
892
+ u.sort((e, t) => o[e] === o[t] ? e - t : o[e] > o[t] ? -1 : 1);
893
+ for (let e = 0; e < l; e++) a[u[e]] += 1;
894
+ } else if (l < 0) {
895
+ u.sort((e, t) => o[e] === o[t] ? t - e : o[e] < o[t] ? -1 : 1);
896
+ let e = -l;
897
+ for (let t of u) {
898
+ if (e === 0) break;
899
+ let n = a[t] - 1;
900
+ if (n <= 0) continue;
901
+ let r = Math.min(n, e);
902
+ a[t] = a[t] - r, e -= r;
903
+ }
904
+ }
905
+ return a.map((e) => e / 100);
906
+ }
907
+ function Ot(e) {
908
+ return e.columnWidths !== void 0 && wt(e) === null ? Dt(e.columnWidths) : [...St(e.columns)];
909
+ }
910
+ var kt = [
911
+ "cover",
912
+ "contain",
913
+ "auto"
914
+ ], At = [
915
+ "left",
916
+ "center",
917
+ "right"
918
+ ], jt = [
919
+ "top",
920
+ "center",
921
+ "bottom"
922
+ ];
980
923
  function Mt(e) {
924
+ return {
925
+ url: e,
926
+ size: "cover",
927
+ position: {
928
+ x: "center",
929
+ y: "center"
930
+ },
931
+ repeat: !1
932
+ };
933
+ }
934
+ function Nt(e) {
935
+ let t = "";
936
+ for (let n of e) {
937
+ let e = n.charCodeAt(0);
938
+ t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
939
+ }
940
+ return t;
941
+ }
942
+ function Pt(e) {
943
+ let t = typeof e?.url == "string" ? e.url.trim() : "";
944
+ if (!e || !t) return null;
945
+ let n = kt.includes(e.size) ? e.size : "cover", r = e.position, i = r && At.includes(r.x) ? r.x : "center", a = r && jt.includes(r.y) ? r.y : "center";
946
+ return {
947
+ url: Nt(t),
948
+ size: n,
949
+ position: `${i} ${a}`,
950
+ repeat: e.repeat ? "repeat" : "no-repeat"
951
+ };
952
+ }
953
+ var Ft = [
954
+ "top",
955
+ "middle",
956
+ "bottom"
957
+ ];
958
+ function It(e) {
959
+ let t = e.hero;
960
+ if (!t || typeof t != "object") return null;
961
+ if (e.columns !== "1") return {
962
+ applied: !1,
963
+ reason: "columns"
964
+ };
965
+ let n = Pt(e.backgroundImage);
966
+ if (n === null) return {
967
+ applied: !1,
968
+ reason: "image"
969
+ };
970
+ let r = Rt(e.backgroundImage), i = Lt(t.height) ? Math.round(t.height) : "image";
971
+ return i === "image" && r === null ? {
972
+ applied: !1,
973
+ reason: "size"
974
+ } : {
975
+ applied: !0,
976
+ image: n,
977
+ height: i,
978
+ verticalAlign: Ft.includes(t.verticalAlign) ? t.verticalAlign : "middle",
979
+ aspectRatio: r
980
+ };
981
+ }
982
+ function Lt(e) {
983
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
984
+ }
985
+ function Rt(e) {
986
+ let t = e?.naturalWidth, n = e?.naturalHeight;
987
+ return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
988
+ }
989
+ var zt = {
990
+ facebook: {
991
+ color: "#1877F2",
992
+ path: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
993
+ },
994
+ twitter: {
995
+ color: "#000000",
996
+ path: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
997
+ },
998
+ instagram: {
999
+ color: "#E4405F",
1000
+ path: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
1001
+ },
1002
+ linkedin: {
1003
+ color: "#0A66C2",
1004
+ path: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
1005
+ },
1006
+ xing: {
1007
+ color: "#006567",
1008
+ path: "M18.188 0c-.517 0-.741.325-.927.66c0 0-7.455 13.224-7.702 13.657c.015.024 4.919 9.023 4.919 9.023c.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22c.089-.151.089-.346-.009-.536l-4.879-8.916a.02.02 0 0 1 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0zM3.648 4.74c-.211 0-.385.074-.473.216c-.09.149-.078.339.02.531l2.34 4.05q.006.014 0 .021L1.86 16.051a.52.52 0 0 0 0 .529c.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609l-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648z"
1009
+ },
1010
+ youtube: {
1011
+ color: "#FF0000",
1012
+ path: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
1013
+ },
1014
+ tiktok: {
1015
+ color: "#000000",
1016
+ path: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"
1017
+ },
1018
+ pinterest: {
1019
+ color: "#BD081C",
1020
+ path: "M12 0C5.373 0 0 5.372 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.405.042-3.441.218-.937 1.407-5.965 1.407-5.965s-.359-.719-.359-1.782c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738.098.119.112.224.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12 0-6.628-5.373-12-12-12z"
1021
+ },
1022
+ email: {
1023
+ color: "#6B7280",
1024
+ path: "M1.5 8.67v8.58a3 3 0 003 3h15a3 3 0 003-3V8.67l-8.928 5.493a3 3 0 01-3.144 0L1.5 8.67z M22.5 6.908V6.75a3 3 0 00-3-3h-15a3 3 0 00-3 3v.158l9.714 5.978a1.5 1.5 0 001.572 0L22.5 6.908z"
1025
+ },
1026
+ website: {
1027
+ color: "#6B7280",
1028
+ path: "M21.721 12.752a9.711 9.711 0 0 0-.945-5.003 12.754 12.754 0 0 1-4.339 2.708 18.991 18.991 0 0 1-.214 4.772 17.165 17.165 0 0 0 5.498-2.477ZM14.634 15.55a17.324 17.324 0 0 0 .332-4.647c-.952.227-1.945.347-2.966.347-1.021 0-2.014-.12-2.966-.347a17.515 17.515 0 0 0 .332 4.647 17.385 17.385 0 0 0 5.268 0ZM9.772 17.119a18.963 18.963 0 0 0 4.456 0A17.182 17.182 0 0 1 12 21.724a17.18 17.18 0 0 1-2.228-4.605ZM7.777 15.23a18.87 18.87 0 0 1-.214-4.774 12.753 12.753 0 0 1-4.34-2.708 9.711 9.711 0 0 0-.944 5.004 17.165 17.165 0 0 0 5.498 2.477ZM21.356 14.752a9.765 9.765 0 0 1-7.478 6.817 18.64 18.64 0 0 0 1.988-4.718 18.627 18.627 0 0 0 5.49-2.098ZM2.644 14.752c1.682.971 3.53 1.688 5.49 2.099a18.64 18.64 0 0 0 1.988 4.718 9.765 9.765 0 0 1-7.478-6.816ZM13.878 2.43a9.755 9.755 0 0 1 6.116 3.986 11.267 11.267 0 0 1-3.746 2.504 18.63 18.63 0 0 0-2.37-6.49ZM12 2.276a17.152 17.152 0 0 1 2.805 7.121c-.897.23-1.837.353-2.805.353-.968 0-1.908-.122-2.805-.353A17.151 17.151 0 0 1 12 2.276ZM10.122 2.43a18.629 18.629 0 0 0-2.37 6.49 11.266 11.266 0 0 1-3.746-2.504 9.754 9.754 0 0 1 6.116-3.985Z"
1029
+ },
1030
+ whatsapp: {
1031
+ color: "#25D366",
1032
+ path: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"
1033
+ },
1034
+ telegram: {
1035
+ color: "#26A5E4",
1036
+ path: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"
1037
+ },
1038
+ discord: {
1039
+ color: "#5865F2",
1040
+ path: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189z"
1041
+ },
1042
+ snapchat: {
1043
+ color: "#FFFC00",
1044
+ path: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.668.967-2.914 2.171-2.914 1.023 0 1.518.769 1.518 1.69 0 1.029-.655 2.568-.994 3.995-.283 1.194.599 2.169 1.777 2.169 2.133 0 3.772-2.249 3.772-5.495 0-2.873-2.064-4.882-5.012-4.882-3.414 0-5.418 2.561-5.418 5.207 0 1.031.397 2.138.893 2.738a.36.36 0 01.083.345l-.333 1.36c-.053.22-.174.267-.402.161-1.499-.698-2.436-2.889-2.436-4.649 0-3.785 2.75-7.262 7.929-7.262 4.163 0 7.398 2.967 7.398 6.931 0 4.136-2.607 7.464-6.227 7.464-1.216 0-2.359-.631-2.75-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146 1.124.347 2.317.535 3.554.535 6.627 0 12.017-5.373 12.017-12.001C24.034 5.367 18.644 0 12.017 0z"
1045
+ },
1046
+ reddit: {
1047
+ color: "#FF4500",
1048
+ path: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"
1049
+ },
1050
+ github: {
1051
+ color: "#181717",
1052
+ path: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
1053
+ },
1054
+ dribbble: {
1055
+ color: "#EA4C89",
1056
+ path: "M12 24C5.385 24 0 18.615 0 12S5.385 0 12 0s12 5.385 12 12-5.385 12-12 12zm10.12-10.358c-.35-.11-3.17-.953-6.384-.438 1.34 3.684 1.887 6.684 1.992 7.308 2.3-1.555 3.936-4.02 4.392-6.87zm-6.115 7.808c-.153-.9-.75-4.032-2.19-7.77l-.066.02c-5.79 2.015-7.86 6.025-8.04 6.4 1.73 1.358 3.92 2.166 6.29 2.166 1.42 0 2.77-.29 4-.814zm-11.62-2.58c.232-.4 3.045-5.055 8.332-6.765.135-.045.27-.084.405-.12-.26-.585-.54-1.167-.832-1.74C7.17 11.775 2.206 11.71 1.756 11.7l-.004.312c0 2.633.998 5.037 2.634 6.855zm-2.42-8.955c.46.008 4.683.026 9.477-1.248-1.698-3.018-3.53-5.558-3.8-5.928-2.868 1.35-5.01 3.99-5.676 7.17zM9.6 2.052c.282.38 2.145 2.914 3.822 6 3.645-1.365 5.19-3.44 5.373-3.702-1.81-1.61-4.19-2.586-6.795-2.586-.825 0-1.63.1-2.4.285zm10.335 3.483c-.218.29-1.935 2.493-5.724 4.04.24.49.47.985.68 1.486.08.18.15.36.22.53 3.41-.43 6.8.26 7.14.33-.02-2.42-.88-4.64-2.31-6.38z"
1057
+ },
1058
+ behance: {
1059
+ color: "#1769FF",
1060
+ path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
1061
+ }
1062
+ }, Bt = {
1063
+ dark: "#1f1f1f",
1064
+ light: "#ffffff"
1065
+ };
1066
+ function Vt(e) {
1067
+ return e === "dark" || e === "light" ? e : void 0;
1068
+ }
1069
+ function Ht(e, t) {
1070
+ let n = Vt(t);
1071
+ return {
1072
+ fill: n ? Bt[n] : zt[e].color,
1073
+ onFill: n === "light" ? Bt.dark : "#ffffff"
1074
+ };
1075
+ }
1076
+ function Ut(e, t) {
1077
+ if (Vt(t) === "dark" && (e === "plain" || e === "outlined")) return {
1078
+ color: Bt.light,
1079
+ opacity: .6,
1080
+ width: 1.4
1081
+ };
1082
+ }
1083
+ function Wt(e) {
1084
+ return e === "plain" ? .84 : .6;
1085
+ }
1086
+ function Gt(e) {
981
1087
  let t = e.children;
982
1088
  return e.type === "section" && Array.isArray(t) ? t : [];
983
1089
  }
984
- function Nt(e, t, n = null) {
1090
+ function Kt(e, t, n = null) {
985
1091
  for (let r = 0; r < e.length; r++) {
986
1092
  let i = e[r];
987
1093
  if (i.id === t) return {
@@ -989,28 +1095,28 @@ function Nt(e, t, n = null) {
989
1095
  parent: n,
990
1096
  after: r > 0 ? e[r - 1].id : null
991
1097
  };
992
- let a = Mt(i);
1098
+ let a = Gt(i);
993
1099
  for (let e = 0; e < a.length; e++) {
994
1100
  if (!Array.isArray(a[e])) continue;
995
- let n = Nt(a[e], t, {
1101
+ let n = Kt(a[e], t, {
996
1102
  sectionId: i.id,
997
1103
  column: e
998
1104
  });
999
1105
  if (n) return n;
1000
1106
  }
1001
1107
  if (i.type === "wrapper" && Array.isArray(i.children)) {
1002
- let e = Nt(i.children, t, { wrapperId: i.id });
1108
+ let e = Kt(i.children, t, { wrapperId: i.id });
1003
1109
  if (e) return e;
1004
1110
  }
1005
1111
  }
1006
1112
  return null;
1007
1113
  }
1008
- function Pt(e, t, n) {
1009
- let r = Nt(e.blocks, t);
1010
- if (!r) throw new w("block_missing", n, `No block with id "${t}".`, t);
1114
+ function qt(e, t, n) {
1115
+ let r = Kt(e.blocks, t);
1116
+ if (!r) throw new T("block_missing", n, `No block with id "${t}".`, t);
1011
1117
  return r;
1012
1118
  }
1013
- function Ft(e, t, n) {
1119
+ function Jt(e, t, n) {
1014
1120
  let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
1015
1121
  for (let n of o) {
1016
1122
  let o = e[n];
@@ -1039,16 +1145,16 @@ function R(e, t, n, r) {
1039
1145
  expect: o
1040
1146
  };
1041
1147
  }
1042
- function It(e) {
1148
+ function Yt(e) {
1043
1149
  let { unset: t, ...n } = R(e, {}, [.../* @__PURE__ */ new Set([...Object.keys(e.text ?? {}), ...Object.keys(e.set ?? {})])], e.hidden === !0);
1044
1150
  return n;
1045
1151
  }
1046
1152
  function z(e) {
1047
- return e.flatMap((e) => [e, ...e.type === "wrapper" ? z(e.children) : Mt(e).flatMap(z)]);
1153
+ return e.flatMap((e) => [e, ...e.type === "wrapper" ? z(e.children) : Gt(e).flatMap(z)]);
1048
1154
  }
1049
- function Lt(e, t) {
1155
+ function Xt(e, t) {
1050
1156
  let n = m(e);
1051
- T(n, [t]);
1157
+ E(n, [t]);
1052
1158
  let r = [], i = (e, t, n) => {
1053
1159
  for (let [i, a] of Object.entries(e.l10n ?? {})) {
1054
1160
  let e = t.l10n?.[i] ?? {}, o = [.../* @__PURE__ */ new Set([...Object.keys(a.text ?? {}).filter((t) => !Object.hasOwn(e.text ?? {}, t)), ...Object.keys(a.set ?? {}).filter((t) => !Object.hasOwn(e.set ?? {}, t))])];
@@ -1076,7 +1182,7 @@ function Lt(e, t) {
1076
1182
  }
1077
1183
  return r;
1078
1184
  }
1079
- function Rt(e, t, n) {
1185
+ function Zt(e, t, n) {
1080
1186
  switch (t.op) {
1081
1187
  case "addBlock": return {
1082
1188
  op: "deleteBlock",
@@ -1084,7 +1190,7 @@ function Rt(e, t, n) {
1084
1190
  expect: { block: m(t.block) }
1085
1191
  };
1086
1192
  case "deleteBlock": {
1087
- let r = Pt(e, t.blockId, n);
1193
+ let r = qt(e, t.blockId, n);
1088
1194
  return {
1089
1195
  op: "addBlock",
1090
1196
  block: m(r.block),
@@ -1093,7 +1199,7 @@ function Rt(e, t, n) {
1093
1199
  };
1094
1200
  }
1095
1201
  case "moveBlock": {
1096
- let r = Pt(e, t.blockId, n);
1202
+ let r = qt(e, t.blockId, n);
1097
1203
  return {
1098
1204
  op: "moveBlock",
1099
1205
  blockId: t.blockId,
@@ -1106,23 +1212,23 @@ function Rt(e, t, n) {
1106
1212
  };
1107
1213
  }
1108
1214
  case "updateBlock": {
1109
- let r = Pt(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ft(r, t.set, t.unset);
1215
+ let r = qt(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Jt(r, t.set, t.unset);
1110
1216
  return [{
1111
1217
  op: "updateBlock",
1112
1218
  blockId: t.blockId,
1113
1219
  ...Object.keys(i).length > 0 ? { set: i } : {},
1114
1220
  ...a.length > 0 ? { unset: a } : {},
1115
1221
  expect: o
1116
- }, ...Lt(e, t)];
1222
+ }, ...Xt(e, t)];
1117
1223
  }
1118
1224
  case "updateSettings": {
1119
- let { set: n, unset: r, expect: i } = Ft(e.settings, t.set, t.unset);
1225
+ let { set: n, unset: r, expect: i } = Jt(e.settings, t.set, t.unset);
1120
1226
  return [{
1121
1227
  op: "updateSettings",
1122
1228
  ...Object.keys(n).length > 0 ? { set: n } : {},
1123
1229
  ...r.length > 0 ? { unset: r } : {},
1124
1230
  expect: i
1125
- }, ...Lt(e, t)];
1231
+ }, ...Xt(e, t)];
1126
1232
  }
1127
1233
  case "addLocale": return {
1128
1234
  op: "removeLocale",
@@ -1141,12 +1247,12 @@ function Rt(e, t, n) {
1141
1247
  op: "updateBlockLocale",
1142
1248
  blockId: r.id,
1143
1249
  locale: t.locale,
1144
- ...It(e)
1250
+ ...Yt(e)
1145
1251
  });
1146
1252
  }
1147
1253
  let r = e.settings.l10n?.[t.locale];
1148
1254
  if (r) {
1149
- let { hidden: e, ...i } = It(r);
1255
+ let { hidden: e, ...i } = Yt(r);
1150
1256
  n.push({
1151
1257
  op: "updateSettingsLocale",
1152
1258
  locale: t.locale,
@@ -1158,7 +1264,7 @@ function Rt(e, t, n) {
1158
1264
  case "updateBlockLocale":
1159
1265
  case "updateSettingsLocale": {
1160
1266
  let n = m(e);
1161
- T(n, [t]);
1267
+ E(n, [t]);
1162
1268
  let r = [.../* @__PURE__ */ new Set([
1163
1269
  ...Object.keys(t.text ?? {}),
1164
1270
  ...Object.keys(t.set ?? {}),
@@ -1190,32 +1296,32 @@ function Rt(e, t, n) {
1190
1296
  };
1191
1297
  }
1192
1298
  }
1193
- function zt(e, t) {
1299
+ function Qt(e, t) {
1194
1300
  let n = m(e), r = [];
1195
1301
  return t.forEach((e, t) => {
1196
1302
  try {
1197
- let i = Rt(n, e, t);
1198
- r.push(...Array.isArray(i) ? [...i].reverse() : [i]), T(n, [e]);
1303
+ let i = Zt(n, e, t);
1304
+ r.push(...Array.isArray(i) ? [...i].reverse() : [i]), E(n, [e]);
1199
1305
  } catch (e) {
1200
- throw e instanceof w ? new w(e.code, t, e.message, e.blockId) : e;
1306
+ throw e instanceof T ? new T(e.code, t, e.message, e.blockId) : e;
1201
1307
  }
1202
1308
  }), r.reverse();
1203
1309
  }
1204
- function Bt(e) {
1310
+ function $t(e) {
1205
1311
  return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
1206
1312
  }
1207
- var Vt = class extends he {
1313
+ var en = class extends ie {
1208
1314
  opIndex;
1209
1315
  holder;
1210
1316
  holders;
1211
1317
  constructor(e, t) {
1212
- super(e, t.status ?? Bt(t.code), t.code), this.name = "CollaborationConflict", t.opIndex !== void 0 && (this.opIndex = t.opIndex), t.holder !== void 0 && (this.holder = t.holder), t.holders !== void 0 && (this.holders = t.holders);
1318
+ super(e, t.status ?? $t(t.code), t.code), this.name = "CollaborationConflict", t.opIndex !== void 0 && (this.opIndex = t.opIndex), t.holder !== void 0 && (this.holder = t.holder), t.holders !== void 0 && (this.holders = t.holders);
1213
1319
  }
1214
1320
  };
1215
- function Ht(e) {
1321
+ function tn(e) {
1216
1322
  return e.type === "section";
1217
1323
  }
1218
- function Ut(e) {
1324
+ function nn(e) {
1219
1325
  return e.type === "custom";
1220
1326
  }
1221
1327
  function B(e) {
@@ -1224,16 +1330,16 @@ function B(e) {
1224
1330
  function V(e) {
1225
1331
  return e.type === "wrapper";
1226
1332
  }
1227
- var Wt = {
1333
+ var rn = {
1228
1334
  content: "<p>Enter your title</p>",
1229
1335
  level: 2,
1230
1336
  textAlign: "left"
1231
- }, Gt = { content: "<p>Enter your text here</p>" }, Kt = {
1337
+ }, an = { content: "<p>Enter your text here</p>" }, on = {
1232
1338
  src: "",
1233
1339
  alt: "",
1234
1340
  width: "full",
1235
1341
  align: "center"
1236
- }, qt = {
1342
+ }, sn = {
1237
1343
  text: "Click Here",
1238
1344
  url: "",
1239
1345
  backgroundColor: "#333333",
@@ -1247,36 +1353,36 @@ var Wt = {
1247
1353
  left: 24
1248
1354
  },
1249
1355
  align: "center"
1250
- }, Jt = {
1356
+ }, cn = {
1251
1357
  lineStyle: "solid",
1252
1358
  color: "#e0e0e0",
1253
1359
  thickness: 1,
1254
1360
  width: "full"
1255
- }, Yt = { columns: "1" }, Xt = {
1361
+ }, ln = { columns: "1" }, un = {
1256
1362
  url: "",
1257
1363
  thumbnailUrl: "",
1258
1364
  alt: "Video",
1259
1365
  width: "full",
1260
1366
  align: "center"
1261
- }, Zt = {
1367
+ }, dn = {
1262
1368
  iconStyle: "solid",
1263
1369
  iconSize: "medium",
1264
1370
  spacing: 10,
1265
1371
  align: "center"
1266
- }, Qt = { height: 24 }, $t = { content: "" }, en = {
1372
+ }, fn = { height: 24 }, pn = { content: "" }, mn = {
1267
1373
  fontSize: 15,
1268
1374
  textAlign: "center",
1269
1375
  separator: "|",
1270
1376
  separatorColor: "#e0e0e0",
1271
1377
  spacing: 10
1272
- }, tn = {
1378
+ }, hn = {
1273
1379
  hasHeaderRow: !0,
1274
1380
  borderColor: "#e0e0e0",
1275
1381
  borderWidth: 1,
1276
1382
  cellPadding: 8,
1277
1383
  fontSize: 15,
1278
1384
  textAlign: "left"
1279
- }, nn = {
1385
+ }, gn = {
1280
1386
  targetDate: "",
1281
1387
  timezone: "UTC",
1282
1388
  showDays: !0,
@@ -1296,21 +1402,21 @@ var Wt = {
1296
1402
  expiredMessage: "This offer has expired",
1297
1403
  expiredImageUrl: "",
1298
1404
  hideOnExpiry: !1
1299
- }, rn = {
1300
- title: Wt,
1301
- paragraph: Gt,
1302
- image: Kt,
1303
- button: qt,
1304
- divider: Jt,
1305
- section: Yt,
1306
- video: Xt,
1307
- social: Zt,
1308
- spacer: Qt,
1309
- html: $t,
1310
- menu: en,
1311
- table: tn,
1312
- countdown: nn
1313
- }, an = {
1405
+ }, _n = {
1406
+ title: rn,
1407
+ paragraph: an,
1408
+ image: on,
1409
+ button: sn,
1410
+ divider: cn,
1411
+ section: ln,
1412
+ video: un,
1413
+ social: dn,
1414
+ spacer: fn,
1415
+ html: pn,
1416
+ menu: mn,
1417
+ table: hn,
1418
+ countdown: gn
1419
+ }, vn = {
1314
1420
  width: 600,
1315
1421
  backgroundColor: "#ffffff",
1316
1422
  textColor: "#1a1a1a",
@@ -1318,28 +1424,28 @@ var Wt = {
1318
1424
  fontFamily: "Arial",
1319
1425
  locale: "en"
1320
1426
  };
1321
- function on(e) {
1427
+ function yn(e) {
1322
1428
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
1323
1429
  }
1324
- function sn(e, t) {
1430
+ function bn(e, t) {
1325
1431
  let n = { ...e };
1326
1432
  for (let r of Object.keys(t)) {
1327
1433
  let i = e[r], a = t[r];
1328
- a !== void 0 && (n[r] = on(i) && on(a) ? sn(i, a) : a);
1434
+ a !== void 0 && (n[r] = yn(i) && yn(a) ? bn(i, a) : a);
1329
1435
  }
1330
1436
  return n;
1331
1437
  }
1332
- function cn(e = "Arial", t) {
1438
+ function xn(e = "Arial", t) {
1333
1439
  return {
1334
1440
  blocks: [],
1335
1441
  settings: {
1336
- ...an,
1442
+ ...vn,
1337
1443
  fontFamily: e,
1338
1444
  ...t
1339
1445
  }
1340
1446
  };
1341
1447
  }
1342
- var ln = [
1448
+ var Sn = [
1343
1449
  "ar",
1344
1450
  "he",
1345
1451
  "iw",
@@ -1353,15 +1459,15 @@ var ln = [
1353
1459
  "ckb",
1354
1460
  "ks"
1355
1461
  ];
1356
- function un(e) {
1462
+ function Cn(e) {
1357
1463
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
1358
- return !!t && ln.includes(t);
1464
+ return !!t && Sn.includes(t);
1359
1465
  }
1360
- function dn(e) {
1361
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : un(e.locale) ? "rtl" : "ltr";
1466
+ function wn(e) {
1467
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Cn(e.locale) ? "rtl" : "ltr";
1362
1468
  }
1363
- var fn = 2e4, pn = /* @__PURE__ */ new Set(["\"", "'"]);
1364
- function mn(e, t) {
1469
+ var Tn = 2e4, En = /* @__PURE__ */ new Set(["\"", "'"]);
1470
+ function Dn(e, t) {
1365
1471
  let n = null, r = "tag";
1366
1472
  for (let i = t; i < e.length; i++) {
1367
1473
  let t = e[i];
@@ -1369,7 +1475,7 @@ function mn(e, t) {
1369
1475
  else {
1370
1476
  if (r === "beforeValue") {
1371
1477
  if (H(t)) continue;
1372
- if (pn.has(t)) {
1478
+ if (En.has(t)) {
1373
1479
  n = t, r = "tag";
1374
1480
  continue;
1375
1481
  }
@@ -1384,12 +1490,12 @@ function mn(e, t) {
1384
1490
  }
1385
1491
  return -1;
1386
1492
  }
1387
- function hn(e, t) {
1493
+ function On(e, t) {
1388
1494
  let n = null;
1389
1495
  for (let r = t; r < e.length; r++) {
1390
1496
  let t = e[r];
1391
1497
  if (n !== null) t === n && (n = null);
1392
- else if (pn.has(t)) n = t;
1498
+ else if (En.has(t)) n = t;
1393
1499
  else if (t === ">") return {
1394
1500
  end: r,
1395
1501
  nextSpan: -1
@@ -1404,13 +1510,13 @@ function hn(e, t) {
1404
1510
  nextSpan: -1
1405
1511
  };
1406
1512
  }
1407
- function gn(e) {
1513
+ function kn(e) {
1408
1514
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1409
1515
  }
1410
1516
  function H(e) {
1411
1517
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1412
1518
  }
1413
- var _n = {
1519
+ var An = {
1414
1520
  AMP: "&",
1415
1521
  COPY: "©",
1416
1522
  GT: ">",
@@ -1677,16 +1783,16 @@ function U(e) {
1677
1783
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1678
1784
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1679
1785
  }
1680
- return Object.hasOwn(_n, t) ? _n[t] : e;
1786
+ return Object.hasOwn(An, t) ? An[t] : e;
1681
1787
  }) : e;
1682
1788
  }
1683
- function vn(e, t) {
1789
+ function jn(e, t) {
1684
1790
  let n = t.toLowerCase(), r = 0;
1685
1791
  for (; r < e.length;) {
1686
1792
  for (; r < e.length && (H(e[r]) || e[r] === "/");) r++;
1687
1793
  if (r >= e.length) break;
1688
1794
  let t = r;
1689
- for (; r < e.length && gn(e[r]);) r++;
1795
+ for (; r < e.length && kn(e[r]);) r++;
1690
1796
  let i = e.substring(t, r).toLowerCase();
1691
1797
  if (i === "") {
1692
1798
  r++;
@@ -1696,7 +1802,7 @@ function vn(e, t) {
1696
1802
  if (e[r] !== "=") continue;
1697
1803
  for (r++; r < e.length && H(e[r]);) r++;
1698
1804
  let a = e[r];
1699
- if (pn.has(a)) {
1805
+ if (En.has(a)) {
1700
1806
  let t = r + 1, o = e.indexOf(a, t);
1701
1807
  if (o === -1) return null;
1702
1808
  if (i === n) return U(e.substring(t, o));
@@ -1709,12 +1815,12 @@ function vn(e, t) {
1709
1815
  }
1710
1816
  return null;
1711
1817
  }
1712
- function yn(e, t) {
1713
- return xn(e, t, !0);
1818
+ function Mn(e, t) {
1819
+ return Pn(e, t, !0);
1714
1820
  }
1715
- function bn(e) {
1821
+ function Nn(e) {
1716
1822
  let t = [];
1717
- return xn(e, (n, r, i) => {
1823
+ return Pn(e, (n, r, i) => {
1718
1824
  let a = e.slice(r, i);
1719
1825
  return t.push({
1720
1826
  start: r,
@@ -1723,7 +1829,7 @@ function bn(e) {
1723
1829
  }), a;
1724
1830
  }, !0), t;
1725
1831
  }
1726
- function xn(e, t, n) {
1832
+ function Pn(e, t, n) {
1727
1833
  let r = "", i = 0;
1728
1834
  for (; i < e.length;) {
1729
1835
  let a = e.indexOf("<span", i);
@@ -1736,7 +1842,7 @@ function xn(e, t, n) {
1736
1842
  r += e.substring(i, a + 5), i = a + 5;
1737
1843
  continue;
1738
1844
  }
1739
- let { end: s, nextSpan: c } = hn(e, a + 5);
1845
+ let { end: s, nextSpan: c } = On(e, a + 5);
1740
1846
  if (c !== -1) {
1741
1847
  r += e.substring(i, c), i = c;
1742
1848
  continue;
@@ -1745,12 +1851,12 @@ function xn(e, t, n) {
1745
1851
  r += e.substring(i);
1746
1852
  break;
1747
1853
  }
1748
- let l = e.substring(a + 5, s), u = Cn(l, "data-merge-tag") ?? Cn(l, "data-logic-merge-tag");
1854
+ let l = e.substring(a + 5, s), u = In(l, "data-merge-tag") ?? In(l, "data-logic-merge-tag");
1749
1855
  if (u === null) {
1750
1856
  r += e.substring(i, s + 1), i = s + 1;
1751
1857
  continue;
1752
1858
  }
1753
- let d = Sn(e, s + 1, n);
1859
+ let d = Fn(e, s + 1, n);
1754
1860
  if (d === -1) {
1755
1861
  r += e.substring(i);
1756
1862
  break;
@@ -1759,7 +1865,7 @@ function xn(e, t, n) {
1759
1865
  }
1760
1866
  return r;
1761
1867
  }
1762
- function Sn(e, t, n) {
1868
+ function Fn(e, t, n) {
1763
1869
  if (!n) {
1764
1870
  let n = e.indexOf("</span>", t);
1765
1871
  return n === -1 ? -1 : n + 7;
@@ -1768,7 +1874,7 @@ function Sn(e, t, n) {
1768
1874
  for (; i < e.length;) {
1769
1875
  let t = e.indexOf("<", i);
1770
1876
  if (t === -1) return -1;
1771
- let n = mn(e, t + 1);
1877
+ let n = Dn(e, t + 1);
1772
1878
  if (n === -1) return -1;
1773
1879
  let a = e.startsWith("</span", t), o = e.startsWith("<span", t), s = e[t + (a ? 6 : 5)];
1774
1880
  if ((o || a) && (s === ">" || s === "/" || /\s/.test(s)) && (r += a ? -1 : 1, r === 0)) return n + 1;
@@ -1776,8 +1882,8 @@ function Sn(e, t, n) {
1776
1882
  }
1777
1883
  return -1;
1778
1884
  }
1779
- function Cn(e, t) {
1780
- return vn(e, t);
1885
+ function In(e, t) {
1886
+ return jn(e, t);
1781
1887
  }
1782
1888
  var W = {
1783
1889
  liquid: {
@@ -1811,7 +1917,7 @@ function G(e) {
1811
1917
  return (e.value === n.value || e.value.source === n.value.source && e.value.flags.replace(/[gy]/g, "") === n.value.flags.replace(/[gy]/g, "")) && (e.logic === n.logic || e.logic.source === n.logic.source && e.logic.flags.replace(/[gy]/g, "") === n.logic.flags.replace(/[gy]/g, ""));
1812
1918
  });
1813
1919
  }
1814
- function wn(e, t, n) {
1920
+ function Ln(e, t, n) {
1815
1921
  for (let r = n; r < e.length; r++) {
1816
1922
  let n = e.charCodeAt(r);
1817
1923
  if (n === 10 || n === 13 || n === 8232 || n === 8233) return {
@@ -1853,7 +1959,7 @@ function K(e, t, n, r = 0, i = Infinity) {
1853
1959
  let r = u?.lastIndex ?? t + s.length, i = a === "mailchimp" && n === "value" ? {
1854
1960
  close: e.startsWith(c, r) ? r : -1,
1855
1961
  lineBreak: -1
1856
- } : wn(e, c, Math.max(r, t + s.length + +(n === "value")));
1962
+ } : Ln(e, c, Math.max(r, t + s.length + +(n === "value")));
1857
1963
  if (i.lineBreak >= 0) {
1858
1964
  let r = i.lineBreak, o = n === "logic" && (a === "liquid" || a === "ampscript") ? e.lastIndexOf(s, r) : -1;
1859
1965
  p = o > t ? o : r + 1;
@@ -1875,7 +1981,7 @@ function K(e, t, n, r = 0, i = Infinity) {
1875
1981
  }
1876
1982
  return f;
1877
1983
  }
1878
- function Tn(e, t) {
1984
+ function Rn(e, t) {
1879
1985
  let n = G(t);
1880
1986
  if (!n) {
1881
1987
  let n = RegExp(`(${t.value.source}|${t.logic.source})`, "g");
@@ -1903,7 +2009,7 @@ function Tn(e, t) {
1903
2009
  o = t + 2;
1904
2010
  continue;
1905
2011
  }
1906
- let c = wn(e, "|*", a.lastIndex);
2012
+ let c = Ln(e, "|*", a.lastIndex);
1907
2013
  if (c.lineBreak >= 0) {
1908
2014
  o = c.lineBreak + 1;
1909
2015
  continue;
@@ -1925,73 +2031,73 @@ function Tn(e, t) {
1925
2031
  }
1926
2032
  return r;
1927
2033
  }
1928
- function En(e) {
2034
+ function zn(e) {
1929
2035
  return typeof e == "string" && e.trim() !== "" ? e : null;
1930
2036
  }
1931
- function Dn(e) {
2037
+ function Bn(e) {
1932
2038
  return Object.values(W).find((t) => t.value.source === e.value.source) ?? null;
1933
2039
  }
1934
- function On(e) {
1935
- return En(e.opener) ?? Dn(e)?.opener ?? null;
2040
+ function Vn(e) {
2041
+ return zn(e.opener) ?? Bn(e)?.opener ?? null;
1936
2042
  }
1937
- function kn(e) {
1938
- return En(e.closer) ?? Dn(e)?.closer ?? null;
2043
+ function Hn(e) {
2044
+ return zn(e.closer) ?? Bn(e)?.closer ?? null;
1939
2045
  }
1940
- function An(e) {
2046
+ function Un(e) {
1941
2047
  return e ? typeof e == "string" ? W[e] ?? W.liquid : e : W.liquid;
1942
2048
  }
1943
- function jn(e) {
2049
+ function Wn(e) {
1944
2050
  let t = e.source, n = e.flags.replace("g", "");
1945
2051
  return RegExp(`^${t}$`, n);
1946
2052
  }
1947
- function Mn(e, t) {
2053
+ function Gn(e, t) {
1948
2054
  let n = e?.trim() || "";
1949
- return !jn(t.logic).test(n) && jn(t.value).test(n);
2055
+ return !Wn(t.logic).test(n) && Wn(t.value).test(n);
1950
2056
  }
1951
- function Nn(e, t) {
2057
+ function Kn(e, t) {
1952
2058
  let n = t.find((t) => t.value === e);
1953
2059
  return n ? n.label : e;
1954
2060
  }
1955
- function Pn(e, t) {
1956
- return q(e, "data-merge-tag", (e) => Nn(e, t));
2061
+ function qn(e, t) {
2062
+ return q(e, "data-merge-tag", (e) => Kn(e, t));
1957
2063
  }
1958
- function Fn(e, t) {
2064
+ function Jn(e, t) {
1959
2065
  return t.find((t) => t.value === e)?.sample;
1960
2066
  }
1961
- function In(e, t) {
1962
- return q(e, "data-merge-tag", (e) => Bn(Fn(e, t) ?? Nn(e, t)), { unwrap: (e) => Fn(e, t) !== void 0 });
2067
+ function Yn(e, t) {
2068
+ return q(e, "data-merge-tag", (e) => $n(Jn(e, t) ?? Kn(e, t)), { unwrap: (e) => Jn(e, t) !== void 0 });
1963
2069
  }
1964
- function Ln(e, t, n) {
1965
- let r = (e) => t.some((t) => t.value === e) || Mn(e, n), i = (e) => Hn(e, n);
1966
- return q(q(e, "data-merge-tag", (e) => r(e) ? Nn(e, t) : Bn(e), { unwrap: (e) => !r(e) }), "data-logic-merge-tag", (e) => i(e) ? Un(e, n) : Bn(e), { unwrap: (e) => !i(e) });
2070
+ function Xn(e, t, n) {
2071
+ let r = (e) => t.some((t) => t.value === e) || Gn(e, n), i = (e) => tr(e, n);
2072
+ return q(q(e, "data-merge-tag", (e) => r(e) ? Kn(e, t) : $n(e), { unwrap: (e) => !r(e) }), "data-logic-merge-tag", (e) => i(e) ? nr(e, n) : $n(e), { unwrap: (e) => !i(e) });
1967
2073
  }
1968
- function Rn(e) {
2074
+ function Zn(e) {
1969
2075
  return e.some((e) => e.sample !== void 0);
1970
2076
  }
1971
- function zn(e, t) {
2077
+ function Qn(e, t) {
1972
2078
  if (!e) return e;
1973
2079
  let n = e;
1974
2080
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1975
2081
  return n;
1976
2082
  }
1977
- function Bn(e) {
2083
+ function $n(e) {
1978
2084
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1979
2085
  }
1980
- function Vn(e, t) {
2086
+ function er(e, t) {
1981
2087
  if (!e) return !1;
1982
2088
  if (G(t)) return K(e, t, "value", 0, 1).length > 0 || K(e, t, "logic", 0, 1).length > 0;
1983
2089
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1984
2090
  return n.test(e) || r.test(e);
1985
2091
  }
1986
- function Hn(e, t) {
1987
- return jn(t.logic).test(e?.trim() || "");
2092
+ function tr(e, t) {
2093
+ return Wn(t.logic).test(e?.trim() || "");
1988
2094
  }
1989
- function Un(e, t) {
2095
+ function nr(e, t) {
1990
2096
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1991
2097
  return r && r[1] ? r[1].toUpperCase() : e;
1992
2098
  }
1993
- function Wn(e, t) {
1994
- return q(e, "data-logic-merge-tag", (e) => Un(e, t));
2099
+ function rr(e, t) {
2100
+ return q(e, "data-logic-merge-tag", (e) => nr(e, t));
1995
2101
  }
1996
2102
  function q(e, t, n, r) {
1997
2103
  let i = "", a = 0;
@@ -2006,7 +2112,7 @@ function q(e, t, n, r) {
2006
2112
  i += e.substring(a, o + 5), a = o + 5;
2007
2113
  continue;
2008
2114
  }
2009
- let { end: c, nextSpan: l } = hn(e, o + 5);
2115
+ let { end: c, nextSpan: l } = On(e, o + 5);
2010
2116
  if (l !== -1) {
2011
2117
  i += e.substring(a, l), a = l;
2012
2118
  continue;
@@ -2015,7 +2121,7 @@ function q(e, t, n, r) {
2015
2121
  i += e.substring(a);
2016
2122
  break;
2017
2123
  }
2018
- let u = vn(e.substring(o + 5, c), t);
2124
+ let u = jn(e.substring(o + 5, c), t);
2019
2125
  if (u === null) {
2020
2126
  i += e.substring(a, c + 1), a = c + 1;
2021
2127
  continue;
@@ -2030,14 +2136,14 @@ function q(e, t, n, r) {
2030
2136
  }
2031
2137
  return i;
2032
2138
  }
2033
- var Gn = {
2139
+ var ir = {
2034
2140
  title: ["content"],
2035
2141
  paragraph: ["content"]
2036
2142
  };
2037
- function Kn(e) {
2143
+ function ar(e) {
2038
2144
  let t = [], n = /<[a-z][\w:-]*\b/gi;
2039
2145
  for (; n.exec(e);) {
2040
- let r = mn(e, n.lastIndex);
2146
+ let r = Dn(e, n.lastIndex);
2041
2147
  if (r < 0) break;
2042
2148
  let i = n.lastIndex, a = e.slice(i, r), o = /[^\s"'<>/=]+\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/g;
2043
2149
  for (let e; e = o.exec(a);) {
@@ -2051,8 +2157,8 @@ function Kn(e) {
2051
2157
  }
2052
2158
  return t;
2053
2159
  }
2054
- function qn(e, t, n) {
2055
- let r = n === "html" ? bn(e) : [], i = n === "html" ? Kn(e) : [], a = r.map((e) => ({
2160
+ function or(e, t, n) {
2161
+ let r = n === "html" ? Nn(e) : [], i = n === "html" ? ar(e) : [], a = r.map((e) => ({
2056
2162
  ...e,
2057
2163
  attribute: !1
2058
2164
  })), o = 0, s = G(t) !== void 0, c = (n, r) => {
@@ -2087,7 +2193,7 @@ function qn(e, t, n) {
2087
2193
  for (let e of r) c(l, e.start), l = e.end;
2088
2194
  return c(l, e.length), a.sort((e, t) => e.start - t.start);
2089
2195
  }
2090
- function Jn(e) {
2196
+ function sr(e) {
2091
2197
  if (!e.includes("&")) return { text: e };
2092
2198
  let t = "", n = [0], r = 0, i = (i) => {
2093
2199
  for (t += e.slice(r, i); r < i;) n.push(++r);
@@ -2104,17 +2210,17 @@ function Jn(e) {
2104
2210
  offsets: n
2105
2211
  };
2106
2212
  }
2107
- var J = /* @__PURE__ */ new Map(), Yn = 32;
2108
- function Xn(e) {
2213
+ var J = /* @__PURE__ */ new Map(), cr = 32;
2214
+ function lr(e) {
2109
2215
  let t = JSON.stringify(e), n = J.get(t);
2110
2216
  if (n === void 0) {
2111
2217
  let r = e.map((e) => e.trim()).filter(Boolean).sort((e, t) => t.length - e.length).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
2112
- n = r.length ? RegExp(`(?<![\\p{L}\\p{N}_])(?:${r.join("|")})(?![\\p{L}\\p{N}_])`, "gu") : null, J.size >= Yn && J.delete(J.keys().next().value), J.set(t, n);
2218
+ n = r.length ? RegExp(`(?<![\\p{L}\\p{N}_])(?:${r.join("|")})(?![\\p{L}\\p{N}_])`, "gu") : null, J.size >= cr && J.delete(J.keys().next().value), J.set(t, n);
2113
2219
  }
2114
2220
  return n;
2115
2221
  }
2116
- function Zn(e, t, n) {
2117
- let r = n.length ? Xn(n) : null;
2222
+ function ur(e, t, n) {
2223
+ let r = n.length ? lr(n) : null;
2118
2224
  if (!r) return [];
2119
2225
  let i = [];
2120
2226
  if (t === "text") i.push({
@@ -2123,7 +2229,7 @@ function Zn(e, t, n) {
2123
2229
  attribute: !1
2124
2230
  });
2125
2231
  else {
2126
- i.push(...Kn(e).map((e) => ({
2232
+ i.push(...ar(e).map((e) => ({
2127
2233
  ...e,
2128
2234
  attribute: !0
2129
2235
  })));
@@ -2134,7 +2240,7 @@ function Zn(e, t, n) {
2134
2240
  end: r.index,
2135
2241
  attribute: !1
2136
2242
  });
2137
- let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) : mn(e, t.lastIndex);
2243
+ let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) : Dn(e, t.lastIndex);
2138
2244
  if (a < 0) return [];
2139
2245
  n = a + (r[0] === "<!--" ? 3 : 1), t.lastIndex = n;
2140
2246
  }
@@ -2147,7 +2253,7 @@ function Zn(e, t, n) {
2147
2253
  let a = [];
2148
2254
  for (let n of i) {
2149
2255
  r.lastIndex = 0;
2150
- let i = e.slice(n.start, n.end), o = t === "html" ? Jn(i) : {
2256
+ let i = e.slice(n.start, n.end), o = t === "html" ? sr(i) : {
2151
2257
  text: i,
2152
2258
  offsets: void 0
2153
2259
  };
@@ -2166,42 +2272,42 @@ function Zn(e, t, n) {
2166
2272
  }
2167
2273
  return a;
2168
2274
  }
2169
- function Qn(e, t, n, r) {
2170
- let i = qn(e, t, n), a = Zn(e, n, r?.doNotTranslate ?? []).filter((e) => !i.some((t) => e.start < t.end && e.end > t.start));
2275
+ function dr(e, t, n, r) {
2276
+ let i = or(e, t, n), a = ur(e, n, r?.doNotTranslate ?? []).filter((e) => !i.some((t) => e.start < t.end && e.end > t.start));
2171
2277
  return [...i, ...a].sort((e, t) => e.start - t.start);
2172
2278
  }
2173
- function $n(e, t, n) {
2279
+ function fr(e, t, n) {
2174
2280
  let r = "", i = 0;
2175
2281
  return t.forEach((t, a) => {
2176
2282
  r += e.slice(i, t.start), r += t.attribute ? `__x${n[a]}__` : `<x id="${n[a]}"/>`, i = t.end;
2177
2283
  }), r + e.slice(i);
2178
2284
  }
2179
- function er(e, t, n, r) {
2180
- let i = Qn(e, t, n, r);
2285
+ function pr(e, t, n, r) {
2286
+ let i = dr(e, t, n, r);
2181
2287
  return {
2182
- text: $n(e, i, i.map((e, t) => t + 1)),
2288
+ text: fr(e, i, i.map((e, t) => t + 1)),
2183
2289
  tokens: i.map((e) => e.markup)
2184
2290
  };
2185
2291
  }
2186
- function tr(e, t) {
2292
+ function mr(e, t) {
2187
2293
  let n = /* @__PURE__ */ new Set(), r = !0, i = e.replace(/<x id="(\d+)"\s*\/>|<x id="(\d+)"><\/x>|__x(\d+)__/g, (e, i, a, o) => {
2188
2294
  let s = Number(i ?? a ?? o);
2189
2295
  return (s < 1 || s > t.length || n.has(s)) && (r = !1), n.add(s), t[s - 1] ?? "";
2190
2296
  });
2191
2297
  return r && n.size === t.length ? i : null;
2192
2298
  }
2193
- function nr(e, t, n, r, i) {
2194
- let a = Qn(e, n, r, i), o = /* @__PURE__ */ new Set(), s = (e) => {
2299
+ function hr(e, t, n, r, i) {
2300
+ let a = dr(e, n, r, i), o = /* @__PURE__ */ new Set(), s = (e) => {
2195
2301
  let n = t.findIndex((t, n) => !o.has(n) && e(t));
2196
2302
  return n >= 0 && o.add(n), n;
2197
2303
  }, c = a.map((e) => s((t) => t === e.markup));
2198
2304
  return a.forEach((e, t) => {
2199
2305
  c[t] < 0 && e.term !== void 0 && r === "html" && (c[t] = s((t) => U(t) === e.term));
2200
- }), o.size !== t.length || a.some((e, t) => c[t] < 0 && e.term === void 0) ? null : $n(e, a.filter((e, t) => c[t] >= 0), c.filter((e) => e >= 0).map((e) => e + 1));
2306
+ }), o.size !== t.length || a.some((e, t) => c[t] < 0 && e.term === void 0) ? null : fr(e, a.filter((e, t) => c[t] >= 0), c.filter((e) => e >= 0).map((e) => e + 1));
2201
2307
  }
2202
- function rr(e, t, n = []) {
2308
+ function gr(e, t, n = []) {
2203
2309
  let r = /* @__PURE__ */ new Map();
2204
- if (t === C(e) || !e.settings.locales?.includes(t)) return r;
2310
+ if (t === w(e) || !e.settings.locales?.includes(t)) return r;
2205
2311
  let i = (e, n, i, a) => {
2206
2312
  let o = n.l10n?.[t];
2207
2313
  for (let t of i) {
@@ -2212,7 +2318,7 @@ function rr(e, t, n = []) {
2212
2318
  target: e,
2213
2319
  path: t,
2214
2320
  source: i,
2215
- format: a && Gn[a]?.includes(t) ? "html" : "text",
2321
+ format: a && ir[a]?.includes(t) ? "html" : "text",
2216
2322
  text: o?.text?.[t]
2217
2323
  });
2218
2324
  }
@@ -2227,16 +2333,16 @@ function rr(e, t, n = []) {
2227
2333
  };
2228
2334
  return a(e.blocks), i({ kind: "settings" }, e.settings, g), r;
2229
2335
  }
2230
- function ir(e, t, n) {
2231
- let r = n.only === "all" ? null : Pe(e, t, n.definitions), i = r && /* @__PURE__ */ new Set([...r.missing, ...r.stale]), a = [], o = {};
2232
- for (let [r, s] of rr(e, t, n.definitions)) {
2336
+ function _r(e, t, n) {
2337
+ let r = n.only === "all" ? null : Se(e, t, n.definitions), i = r && /* @__PURE__ */ new Set([...r.missing, ...r.stale]), a = [], o = {};
2338
+ for (let [r, s] of gr(e, t, n.definitions)) {
2233
2339
  if (i && !i.has(r) || n.blockId !== void 0 && (s.target.kind !== "block" || s.target.blockId !== n.blockId)) continue;
2234
- let e = er(s.source, n.syntax, s.format, n), t = s.text ? nr(s.text.value, e.tokens, n.syntax, s.format, n) : void 0;
2340
+ let e = pr(s.source, n.syntax, s.format, n), t = s.text ? hr(s.text.value, e.tokens, n.syntax, s.format, n) : void 0;
2235
2341
  a.push({
2236
2342
  id: r,
2237
2343
  format: s.format,
2238
2344
  source: e.text,
2239
- sourceHash: S(s.source),
2345
+ sourceHash: C(s.source),
2240
2346
  ...t == null ? {} : { text: t }
2241
2347
  }), o[r] = e.tokens;
2242
2348
  }
@@ -2245,8 +2351,8 @@ function ir(e, t, n) {
2245
2351
  tokens: o
2246
2352
  };
2247
2353
  }
2248
- function ar(e, t, n, r) {
2249
- let i = rr(e, t, r.definitions), a = /* @__PURE__ */ new Map(), o = (e) => {
2354
+ function vr(e, t, n, r) {
2355
+ let i = gr(e, t, r.definitions), a = /* @__PURE__ */ new Map(), o = (e) => {
2250
2356
  for (let t of e) if (a.set(t.id, t), t.type === "section") for (let e of t.children) o(e);
2251
2357
  else t.type === "wrapper" && o(t.children);
2252
2358
  };
@@ -2262,8 +2368,8 @@ function ar(e, t, n, r) {
2262
2368
  });
2263
2369
  continue;
2264
2370
  }
2265
- let o = Object.hasOwn(r.tokens, t.id) ? r.tokens[t.id] : void 0, u = o ? tr(t.text, o) : null;
2266
- if (!o || u === null || nr(u, o, r.syntax, n.format, r) === null) {
2371
+ let o = Object.hasOwn(r.tokens, t.id) ? r.tokens[t.id] : void 0, u = o ? mr(t.text, o) : null;
2372
+ if (!o || u === null || hr(u, o, r.syntax, n.format, r) === null) {
2267
2373
  l.push({
2268
2374
  id: t.id,
2269
2375
  reason: "tags_changed"
@@ -2292,20 +2398,20 @@ function ar(e, t, n, r) {
2292
2398
  rejected: l
2293
2399
  };
2294
2400
  }
2295
- var or = 1e7, sr = 2e3;
2296
- function cr(e) {
2401
+ var yr = 1e7, br = 2e3;
2402
+ function xr(e) {
2297
2403
  return new e.Liquid({
2298
2404
  strictVariables: !1,
2299
2405
  strictFilters: !1,
2300
2406
  outputEscape: "escape",
2301
- memoryLimit: or,
2302
- renderLimit: sr,
2407
+ memoryLimit: yr,
2408
+ renderLimit: br,
2303
2409
  templates: {}
2304
2410
  });
2305
2411
  }
2306
2412
  function Y(e, t) {
2307
2413
  let n = m(e);
2308
- return !t || Object.keys(t).length === 0 ? n : sn(n, t);
2414
+ return !t || Object.keys(t).length === 0 ? n : bn(n, t);
2309
2415
  }
2310
2416
  function X(e) {
2311
2417
  return e === void 0 ? void 0 : m(e);
@@ -2313,7 +2419,7 @@ function X(e) {
2313
2419
  function Z() {
2314
2420
  return crypto.randomUUID();
2315
2421
  }
2316
- function lr(e = 0) {
2422
+ function Sr(e = 0) {
2317
2423
  return {
2318
2424
  top: e,
2319
2425
  right: e,
@@ -2322,100 +2428,100 @@ function lr(e = 0) {
2322
2428
  };
2323
2429
  }
2324
2430
  function Q(e = 10) {
2325
- return { padding: lr(e) };
2431
+ return { padding: Sr(e) };
2326
2432
  }
2327
- function ur(e = {}) {
2433
+ function Cr(e = {}) {
2328
2434
  return Y({
2329
2435
  id: Z(),
2330
2436
  type: "title",
2331
- ...Wt,
2437
+ ...rn,
2332
2438
  styles: Q()
2333
2439
  }, e);
2334
2440
  }
2335
- function dr(e = {}) {
2441
+ function wr(e = {}) {
2336
2442
  return Y({
2337
2443
  id: Z(),
2338
2444
  type: "paragraph",
2339
- ...Gt,
2445
+ ...an,
2340
2446
  styles: Q()
2341
2447
  }, e);
2342
2448
  }
2343
- function fr(e = {}) {
2449
+ function Tr(e = {}) {
2344
2450
  return Y({
2345
2451
  id: Z(),
2346
2452
  type: "image",
2347
- ...Kt,
2453
+ ...on,
2348
2454
  styles: Q()
2349
2455
  }, e);
2350
2456
  }
2351
- function pr(e = {}) {
2457
+ function Er(e = {}) {
2352
2458
  return Y({
2353
2459
  id: Z(),
2354
2460
  type: "button",
2355
- ...qt,
2461
+ ...sn,
2356
2462
  styles: Q()
2357
2463
  }, e);
2358
2464
  }
2359
- function mr(e = {}) {
2465
+ function Dr(e = {}) {
2360
2466
  return Y({
2361
2467
  id: Z(),
2362
2468
  type: "divider",
2363
- ...Jt,
2469
+ ...cn,
2364
2470
  styles: Q(20)
2365
2471
  }, e);
2366
2472
  }
2367
- function hr(e = {}) {
2473
+ function Or(e = {}) {
2368
2474
  return Y({
2369
2475
  id: Z(),
2370
2476
  type: "section",
2371
- ...Yt,
2477
+ ...ln,
2372
2478
  children: [[]],
2373
2479
  styles: Q(20)
2374
2480
  }, e);
2375
2481
  }
2376
- function gr(e = {}) {
2482
+ function kr(e = {}) {
2377
2483
  return Y({
2378
2484
  id: Z(),
2379
2485
  type: "video",
2380
- ...Xt,
2486
+ ...un,
2381
2487
  styles: Q()
2382
2488
  }, e);
2383
2489
  }
2384
- function _r(e = {}) {
2490
+ function Ar(e = {}) {
2385
2491
  return Y({
2386
2492
  id: Z(),
2387
2493
  type: "social",
2388
2494
  icons: [],
2389
- ...Zt,
2495
+ ...dn,
2390
2496
  styles: Q()
2391
2497
  }, e);
2392
2498
  }
2393
- function vr(e = {}) {
2499
+ function jr(e = {}) {
2394
2500
  return Y({
2395
2501
  id: Z(),
2396
2502
  type: "spacer",
2397
- ...Qt,
2503
+ ...fn,
2398
2504
  styles: Q(0)
2399
2505
  }, e);
2400
2506
  }
2401
- function yr(e = {}) {
2507
+ function Mr(e = {}) {
2402
2508
  return Y({
2403
2509
  id: Z(),
2404
2510
  type: "html",
2405
- ...$t,
2511
+ ...pn,
2406
2512
  styles: Q()
2407
2513
  }, e);
2408
2514
  }
2409
- function br(e = {}) {
2515
+ function Nr(e = {}) {
2410
2516
  return Y({
2411
2517
  id: Z(),
2412
2518
  type: "menu",
2413
2519
  items: [],
2414
- ...en,
2520
+ ...mn,
2415
2521
  styles: Q()
2416
2522
  }, e);
2417
2523
  }
2418
- function xr(e, t) {
2524
+ function Pr(e, t) {
2419
2525
  return Array.from({ length: t }, () => ({
2420
2526
  id: Z(),
2421
2527
  cells: Array.from({ length: e }, () => ({
@@ -2424,29 +2530,29 @@ function xr(e, t) {
2424
2530
  }))
2425
2531
  }));
2426
2532
  }
2427
- function Sr(e = {}) {
2533
+ function Fr(e = {}) {
2428
2534
  return Y({
2429
2535
  id: Z(),
2430
2536
  type: "table",
2431
- rows: xr(3, 3),
2432
- ...tn,
2537
+ rows: Pr(3, 3),
2538
+ ...hn,
2433
2539
  styles: Q()
2434
2540
  }, e);
2435
2541
  }
2436
- function Cr(e = {}) {
2542
+ function Ir(e = {}) {
2437
2543
  return Y({
2438
2544
  id: Z(),
2439
2545
  type: "countdown",
2440
- ...nn,
2546
+ ...gn,
2441
2547
  styles: Q()
2442
2548
  }, e);
2443
2549
  }
2444
- function wr(e) {
2550
+ function Lr(e) {
2445
2551
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
2446
2552
  }
2447
- function Tr(e) {
2553
+ function Rr(e) {
2448
2554
  let t = {};
2449
- for (let n of e.fields) t[n.key] = X(wr(n));
2555
+ for (let n of e.fields) t[n.key] = X(Lr(n));
2450
2556
  let n = Y(Q(), X(e.defaultStyles));
2451
2557
  return {
2452
2558
  id: Z(),
@@ -2457,14 +2563,14 @@ function Tr(e) {
2457
2563
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
2458
2564
  };
2459
2565
  }
2460
- function Er() {
2566
+ function zr() {
2461
2567
  return {
2462
2568
  id: Z(),
2463
2569
  type: "slot",
2464
2570
  styles: Q(0)
2465
2571
  };
2466
2572
  }
2467
- function Dr(e = {}) {
2573
+ function Br(e = {}) {
2468
2574
  return Y({
2469
2575
  id: Z(),
2470
2576
  type: "wrapper",
@@ -2472,27 +2578,27 @@ function Dr(e = {}) {
2472
2578
  styles: Q(0)
2473
2579
  }, e);
2474
2580
  }
2475
- function Or(e, t) {
2581
+ function Vr(e, t) {
2476
2582
  switch (e) {
2477
- case "section": return hr(X(t?.section));
2478
- case "title": return ur(X(t?.title));
2479
- case "paragraph": return dr(X(t?.paragraph));
2480
- case "image": return fr(X(t?.image));
2481
- case "button": return pr(X(t?.button));
2482
- case "divider": return mr(X(t?.divider));
2483
- case "video": return gr(X(t?.video));
2484
- case "social": return _r(X(t?.social));
2485
- case "spacer": return vr(X(t?.spacer));
2486
- case "html": return yr(X(t?.html));
2487
- case "menu": return br(X(t?.menu));
2488
- case "table": return Sr(X(t?.table));
2489
- case "countdown": return Cr(X(t?.countdown));
2583
+ case "section": return Or(X(t?.section));
2584
+ case "title": return Cr(X(t?.title));
2585
+ case "paragraph": return wr(X(t?.paragraph));
2586
+ case "image": return Tr(X(t?.image));
2587
+ case "button": return Er(X(t?.button));
2588
+ case "divider": return Dr(X(t?.divider));
2589
+ case "video": return kr(X(t?.video));
2590
+ case "social": return Ar(X(t?.social));
2591
+ case "spacer": return jr(X(t?.spacer));
2592
+ case "html": return Mr(X(t?.html));
2593
+ case "menu": return Nr(X(t?.menu));
2594
+ case "table": return Fr(X(t?.table));
2595
+ case "countdown": return Ir(X(t?.countdown));
2490
2596
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
2491
2597
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
2492
2598
  default: throw Error(`Unknown block type: ${e}`);
2493
2599
  }
2494
2600
  }
2495
- function kr(e, t) {
2601
+ function Hr(e, t) {
2496
2602
  let n = e.l10n;
2497
2603
  if (!n || t.size === 0) return;
2498
2604
  let r = (n) => {
@@ -2507,7 +2613,7 @@ function kr(e, t) {
2507
2613
  n && (e[t] = Object.fromEntries(Object.entries(n).map(([e, t]) => [r(e), t])));
2508
2614
  }
2509
2615
  }
2510
- function Ar(e) {
2616
+ function Ur(e) {
2511
2617
  let t = JSON.parse(JSON.stringify(e)), n = (e) => {
2512
2618
  e.id = Z();
2513
2619
  let t = /* @__PURE__ */ new Map(), r = (e, n) => {
@@ -2524,54 +2630,54 @@ function Ar(e) {
2524
2630
  if (e.type === "social") for (let t of e.icons) r(t, "icons");
2525
2631
  if (e.type === "section") for (let t of e.children) for (let e of t) n(e);
2526
2632
  if (e.type === "wrapper") for (let t of e.children) n(t);
2527
- kr(e, t);
2633
+ Hr(e, t);
2528
2634
  };
2529
2635
  return n(t), t;
2530
2636
  }
2531
- var jr = "[Templatical] layout: must contain exactly one slot block", Mr = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Nr = "[Templatical] layout: a wrapper cannot contain a wrapper", Pr = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Fr = "[Templatical] slot is not a valid content block", Ir = "[Templatical] layout: a wrapper cannot contain a section with its own wrapper (section.wrapper)", Lr = "[Templatical] wrapper is not a valid content block";
2637
+ var Wr = "[Templatical] layout: must contain exactly one slot block", Gr = "[Templatical] layout: slot must be a top-level or wrapper child, not nested in a section", Kr = "[Templatical] layout: a wrapper cannot contain a wrapper", qr = "[Templatical] layout: a wrapper around the slot cannot contain blocks that emit mj-wrapper (section.wrapper)", Jr = "[Templatical] slot is not a valid content block", Yr = "[Templatical] layout: a wrapper cannot contain a section with its own wrapper (section.wrapper)", Xr = "[Templatical] wrapper is not a valid content block";
2532
2638
  function $(e, t, n = null, r = !1, i = !1) {
2533
- for (let a of e) if (t(a, n, r, i), Ht(a)) for (let e of a.children) $(e, t, a, !0, i);
2639
+ for (let a of e) if (t(a, n, r, i), tn(a)) for (let e of a.children) $(e, t, a, !0, i);
2534
2640
  else V(a) && $(a.children, t, a, r, !0);
2535
2641
  }
2536
- function Rr(e) {
2642
+ function Zr(e) {
2537
2643
  let t = 0;
2538
2644
  if ($(e.blocks, (e, n, r, i) => {
2539
- if (i && Ht(e) && e.wrapper) throw Error(Ir);
2540
- if (B(e) && (t += 1, r)) throw Error(Mr);
2645
+ if (i && tn(e) && e.wrapper) throw Error(Yr);
2646
+ if (B(e) && (t += 1, r)) throw Error(Gr);
2541
2647
  if (V(e)) {
2542
- if (r) throw Error(Mr);
2543
- if (e.children.some(V)) throw Error(Nr);
2648
+ if (r) throw Error(Gr);
2649
+ if (e.children.some(V)) throw Error(Kr);
2544
2650
  }
2545
- }), t !== 1) throw Error(jr);
2651
+ }), t !== 1) throw Error(Wr);
2546
2652
  }
2547
- function zr(e) {
2653
+ function Qr(e) {
2548
2654
  $(e.blocks, (e) => {
2549
- if (B(e)) throw Error(Fr);
2655
+ if (B(e)) throw Error(Jr);
2550
2656
  });
2551
2657
  }
2552
- function Br(e) {
2658
+ function $r(e) {
2553
2659
  $(e.blocks, (e) => {
2554
- if (V(e)) throw Error(Lr);
2660
+ if (V(e)) throw Error(Xr);
2555
2661
  });
2556
2662
  }
2557
- function Vr(e) {
2663
+ function ei(e) {
2558
2664
  let t = !1;
2559
2665
  return $(e.blocks, (e, n) => {
2560
2666
  B(e) && n !== null && V(n) && (t = !0);
2561
2667
  }), t;
2562
2668
  }
2563
- function Hr(e) {
2669
+ function ti(e) {
2564
2670
  if (B(e)) return e;
2565
2671
  if (V(e)) {
2566
- let t = Ar({
2672
+ let t = Ur({
2567
2673
  ...e,
2568
2674
  children: []
2569
2675
  });
2570
- return t.children = e.children.map(Hr), t;
2676
+ return t.children = e.children.map(ti), t;
2571
2677
  }
2572
- return Ar(e);
2678
+ return Ur(e);
2573
2679
  }
2574
- function Ur(e) {
2680
+ function ni(e) {
2575
2681
  for (let t = 0; t < e.length; t++) {
2576
2682
  let n = e[t];
2577
2683
  if (B(n)) return {
@@ -2579,23 +2685,23 @@ function Ur(e) {
2579
2685
  index: t
2580
2686
  };
2581
2687
  if (V(n)) {
2582
- let e = Ur(n.children);
2688
+ let e = ni(n.children);
2583
2689
  if (e) return e;
2584
2690
  }
2585
2691
  }
2586
2692
  return null;
2587
2693
  }
2588
- function Wr(e) {
2589
- for (let t of e) if (Ht(t)) {
2694
+ function ri(e) {
2695
+ for (let t of e) if (tn(t)) {
2590
2696
  if (t.wrapper) return !0;
2591
- for (let e of t.children) if (Wr(e)) return !0;
2697
+ for (let e of t.children) if (ri(e)) return !0;
2592
2698
  }
2593
2699
  return !1;
2594
2700
  }
2595
- function Gr(e, t) {
2596
- if (Rr(e), zr(t), Br(t), Vr(e) && Wr(t.blocks)) throw Error(Pr);
2597
- let n = e.blocks.map(Hr), r = Ur(n);
2598
- if (!r) throw Error(jr);
2701
+ function ii(e, t) {
2702
+ if (Zr(e), Qr(t), $r(t), ei(e) && ri(t.blocks)) throw Error(qr);
2703
+ let n = e.blocks.map(ti), r = ni(n);
2704
+ if (!r) throw Error(Wr);
2599
2705
  return r.parent.splice(r.index, 1, ...m(t.blocks)), {
2600
2706
  blocks: n,
2601
2707
  settings: {
@@ -2604,7 +2710,7 @@ function Gr(e, t) {
2604
2710
  }
2605
2711
  };
2606
2712
  }
2607
- var Kr = Object.freeze([
2713
+ var ai = Object.freeze([
2608
2714
  "http",
2609
2715
  "https",
2610
2716
  "mailto",
@@ -2620,37 +2726,37 @@ Object.freeze([
2620
2726
  "data",
2621
2727
  "vbscript"
2622
2728
  ]);
2623
- function qr(e) {
2729
+ function oi(e) {
2624
2730
  return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2625
2731
  }
2626
- function Jr(e) {
2627
- let t = /^([a-z][a-z0-9+.-]*):/i.exec(qr(e));
2732
+ function si(e) {
2733
+ let t = /^([a-z][a-z0-9+.-]*):/i.exec(oi(e));
2628
2734
  return t ? t[1].toLowerCase() : null;
2629
2735
  }
2630
- var Yr = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i, Xr = Object.freeze([
2736
+ var ci = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i, li = Object.freeze([
2631
2737
  "href",
2632
2738
  "xlink:href",
2633
2739
  "background",
2634
2740
  "poster",
2635
2741
  "src"
2636
- ]), Zr = Object.freeze([
2742
+ ]), ui = Object.freeze([
2637
2743
  "srcdoc",
2638
2744
  "ping",
2639
2745
  "formaction",
2640
2746
  "action"
2641
2747
  ]);
2642
- function Qr(e, t) {
2643
- let n = qr(e), r = Jr(n);
2644
- return r === null || Kr.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && Yr.test(n);
2748
+ function di(e, t) {
2749
+ let n = oi(e), r = si(n);
2750
+ return r === null || ai.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && ci.test(n);
2645
2751
  }
2646
- var $r = /<\/?p\b[^<>]*>/gi, ei = /<p\b([^<>]*)>\s*<\/p>/gi;
2647
- function ti(e) {
2648
- return e.replace($r, "").trim() === "";
2752
+ var fi = /<\/?p\b[^<>]*>/gi, pi = /<p\b([^<>]*)>\s*<\/p>/gi;
2753
+ function mi(e) {
2754
+ return e.replace(fi, "").trim() === "";
2649
2755
  }
2650
- function ni(e) {
2651
- return ti(e) ? e : e.replace(ei, "<p$1>&nbsp;</p>");
2756
+ function hi(e) {
2757
+ return mi(e) ? e : e.replace(pi, "<p$1>&nbsp;</p>");
2652
2758
  }
2653
- var ri = {
2759
+ var gi = {
2654
2760
  arial: "Arial, sans-serif",
2655
2761
  helvetica: "Helvetica, sans-serif",
2656
2762
  georgia: "Georgia, serif",
@@ -2659,13 +2765,13 @@ var ri = {
2659
2765
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2660
2766
  "courier new": "'Courier New', monospace",
2661
2767
  tahoma: "Tahoma, sans-serif"
2662
- }, ii = /* @__PURE__ */ new Set([
2768
+ }, _i = /* @__PURE__ */ new Set([
2663
2769
  "inherit",
2664
2770
  "initial",
2665
2771
  "unset",
2666
2772
  "revert",
2667
2773
  "revert-layer"
2668
- ]), ai = /* @__PURE__ */ new Set([
2774
+ ]), vi = /* @__PURE__ */ new Set([
2669
2775
  "serif",
2670
2776
  "sans-serif",
2671
2777
  "monospace",
@@ -2680,14 +2786,14 @@ var ri = {
2680
2786
  "math",
2681
2787
  "fangsong"
2682
2788
  ]);
2683
- function oi(e) {
2789
+ function yi(e) {
2684
2790
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
2685
2791
  }
2686
- function si(e) {
2792
+ function bi(e) {
2687
2793
  if (typeof e != "string") return [];
2688
2794
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
2689
2795
  for (;;) {
2690
- for (; r < t.length && oi(t[r]);) r++;
2796
+ for (; r < t.length && yi(t[r]);) r++;
2691
2797
  if (r >= t.length) return [];
2692
2798
  let e = t[r];
2693
2799
  if (e === "\"" || e === "'") {
@@ -2704,7 +2810,7 @@ function si(e) {
2704
2810
  }
2705
2811
  }
2706
2812
  if (!o) return [];
2707
- for (; a < t.length && oi(t[a]);) a++;
2813
+ for (; a < t.length && yi(t[a]);) a++;
2708
2814
  if (a < t.length && t[a] !== ",") return [];
2709
2815
  n.push({
2710
2816
  name: i,
@@ -2712,7 +2818,7 @@ function si(e) {
2712
2818
  }), r = a;
2713
2819
  } else {
2714
2820
  let e = t.indexOf(",", r), i = e === -1 ? t.length : e, a = t.slice(r, i).trim().split(/\s+/).join(" ");
2715
- if (a === "" || a.includes("\"") || a.includes("'") || ii.has(a.toLowerCase())) return [];
2821
+ if (a === "" || a.includes("\"") || a.includes("'") || _i.has(a.toLowerCase())) return [];
2716
2822
  n.push({
2717
2823
  name: a,
2718
2824
  quoted: !1
@@ -2722,26 +2828,26 @@ function si(e) {
2722
2828
  r++;
2723
2829
  }
2724
2830
  }
2725
- function ci(e) {
2831
+ function xi(e) {
2726
2832
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
2727
2833
  }
2728
- function li(e) {
2729
- return !e.quoted && ai.has(e.name.toLowerCase());
2834
+ function Si(e) {
2835
+ return !e.quoted && vi.has(e.name.toLowerCase());
2730
2836
  }
2731
- function ui(e) {
2732
- return si(e)[0]?.name ?? "";
2837
+ function Ci(e) {
2838
+ return bi(e)[0]?.name ?? "";
2733
2839
  }
2734
- function di(e, t) {
2735
- let n = (e) => `${ci(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
2840
+ function wi(e, t) {
2841
+ let n = (e) => `${xi(e.name)}, ${e.fallback ?? t.defaultFallback}`, r = typeof e == "string" ? e.trim().toLowerCase() : "", i = t.customFonts.find((e) => e.name.toLowerCase() === r);
2736
2842
  if (i) return n(i);
2737
- let a = si(e);
2843
+ let a = bi(e);
2738
2844
  if (a.length !== 1) return e;
2739
2845
  let [o] = a, s = o.name.toLowerCase(), c = t.customFonts.find((e) => e.name.toLowerCase() === s);
2740
- return c ? n(c) : ri[s] || (li(o) ? e : `${ci(o.name)}, ${t.defaultFallback}`);
2846
+ return c ? n(c) : gi[s] || (Si(o) ? e : `${xi(o.name)}, ${t.defaultFallback}`);
2741
2847
  }
2742
- function fi(e) {
2848
+ function Ti(e) {
2743
2849
  if (typeof e != "object" || !e) return !1;
2744
2850
  let t = e;
2745
2851
  return Array.isArray(t.blocks);
2746
2852
  }
2747
- export { U as $, fe as $t, Ar as A, V as At, yr as B, yn as Bt, ar as C, fi as Ct, Br as D, B as Dt, zr as E, Ht as Et, Cr as F, Oe as Ft, Be as G, Wn as Gt, br as H, dn as Ht, Tr as I, si as It, vr as J, An as Jt, Er as K, Pn as Kt, cr as L, xe as Lt, ee as M, Pe as Mt, Or as N, Fe as Nt, j as O, Se as Ot, pr as P, ir as Pt, Dr as Q, ue as Qt, cn as R, Ce as Rt, Gr as S, Mn as St, T, v as Tt, dr as U, di as Ut, fr as V, ne as Vt, hr as W, ie as Wt, ur as X, Tn as Xt, Sr as Y, m as Yt, gr as Z, K as Zt, W as _, oe as _t, l as a, r as an, Jr as at, Gn as b, _e as bt, an as c, t as cn, ui as ct, Xr as d, Rr as dn, Un as dt, de as en, h as et, w as f, Nn as ft, se as g, Rn as gt, g as h, On as ht, e as i, n as in, te as it, Vn as j, Vr as jt, G as k, Te as kt, s as l, tr as ln, Z as lt, Kr as m, kn as mt, p as n, In as nn, Ie as nt, Vt as o, o as on, ni as ot, u as p, Fn as pt, _r as q, Ne as qt, i as r, zn as rn, C as rt, rn as s, x as sn, mn as st, f as t, S as tn, sn as tt, Zr as u, Ln as un, Ve as ut, he as v, zt as vt, He as w, Qr as wt, fn as x, Hn as xt, c as y, Ut as yt, mr as z, y as zt };
2853
+ export { Cr as $, ee as $t, G as A, B as At, xr as B, p as Bt, ii as C, oe as Ct, Qr as D, di as Dt, E, Ti as Et, Mt as F, Se as Ft, Nr as G, Pt as Gt, Dr as H, fe as Ht, Vr as I, Ce as It, Oe as J, It as Jt, wr as K, wn as Kt, Er as L, _r as Lt, Ur as M, S as Mt, wt as N, V as Nt, $r as O, v as Ot, er as P, ei as Pt, Fr as Q, Un as Qt, Ir as R, ge as Rt, Tn as S, nn as St, Ae as T, Gn as Tt, Mr as U, y as Ut, xn as V, ue as Vt, Tr as W, Mn as Wt, Ar as X, qn as Xt, zr as Y, rr as Yt, jr as Z, xe as Zt, zt as _, Zr as _n, Hn as _t, l as a, Wt as an, we as at, c as b, Rt as bt, _n as c, Yn as cn, si as ct, ui as d, r as dn, Ci as dt, m as en, kr as et, li as f, o as fn, Z as ft, g, Xn as gn, Jn as gt, ai as h, mr as hn, Kn as ht, e as i, Ht as in, bn as it, u as j, de as jt, j as k, tn as kt, vn as l, Qn as ln, hi as lt, d as m, t as mn, nr as mt, jt as n, K as nn, U as nt, xt as o, Ut as on, w as ot, T as p, x as pn, ke as pt, Or as q, wi as qt, i as r, Ot as rn, h as rt, en as s, C as sn, Nt as st, At as t, Rn as tn, Br as tt, s as u, n as un, Dn as ut, W as v, Vn as vt, vr as w, tr as wt, ir as x, Qt as xt, ie as y, Zn as yt, Rr as z, bi as zt };