@templatical/editor 0.59.2 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/dist/{AiAltTextPopover-BhWHOOKX.js → AiAltTextPopover-DiIaqDtB.js} +1 -1
  2. package/dist/{AiAltTextReview-CmW7pLmo.js → AiAltTextReview-DIe0WBbj.js} +1 -1
  3. package/dist/{AiChatPanel-CV0mCtad.js → AiChatPanel-aj2TPO9F.js} +8 -8
  4. package/dist/{AiPanels-C8M7q_vM.js → AiPanels-CRM3jf82.js} +1 -1
  5. package/dist/{AiRewriteMenu-DC2ZLH5L.js → AiRewriteMenu-F3GyXBsk.js} +8 -8
  6. package/dist/{BlockIssueBadge-B8sl9BM1.js → BlockIssueBadge-DlhA_I6J.js} +2 -2
  7. package/dist/{BlockPreviewCanvas-yhOQAQhJ.js → BlockPreviewCanvas-DYspUXMO.js} +19 -44
  8. package/dist/{CloudPanels-CD0lsL0R.js → CloudPanels-CAMn545-.js} +3 -3
  9. package/dist/{CollaborationNotices-DrMrP73M.js → CollaborationNotices-CnfS8BQy.js} +1 -1
  10. package/dist/{CollaboratorBar-TsK872uC.js → CollaboratorBar-DufLdLQP.js} +1 -1
  11. package/dist/{CommentsPanel-BX8JVrXU.js → CommentsPanel-C2hFFs0o.js} +1 -1
  12. package/dist/{CommentsSidebar-BUlseNwL.js → CommentsSidebar-CgEwxt2T.js} +10 -10
  13. package/dist/{CountdownToolbar-dx3FVRjh.js → CountdownToolbar-CNqYDevp.js} +4 -4
  14. package/dist/{IssuesPanel-BwnvXxBC.js → IssuesPanel-cPKhimE9.js} +9 -9
  15. package/dist/{LanguageMenu-Cf5bKocE.js → LanguageMenu-zxlpmw2x.js} +12 -12
  16. package/dist/{LocaleNotices-CGEp0pQ8.js → LocaleNotices-PIfpvCCI.js} +2 -2
  17. package/dist/{LogicTagInsertButton-BdDe-vrZ.js → LogicTagInsertButton-DqTkGJSR.js} +16 -16
  18. package/dist/{MediaEditModal-BWOqjEZN.js → MediaEditModal-C2Bn8WGb.js} +1 -1
  19. package/dist/{MediaPanels-C-XrldMu.js → MediaPanels-BAZByHRA.js} +1 -1
  20. package/dist/{MergeTagInput-CTTi-eB0.js → MergeTagInput-Jly1Pw0v.js} +1 -1
  21. package/dist/{MergeTagModeToggle-Bd0svGQm.js → MergeTagModeToggle-5kaFLRAm.js} +4 -4
  22. package/dist/{MergeTagTextarea-DiahMV-3.js → MergeTagTextarea-CCfirhcR.js} +5 -5
  23. package/dist/{ParagraphEditor-Db1cmj8Y.js → ParagraphEditor-DTdnxgDZ.js} +43 -43
  24. package/dist/{RestoreVersionDialog-DA1Z0q9Z.js → RestoreVersionDialog-cUYu3Xqs.js} +3 -3
  25. package/dist/{RichTextEditorContent-CyO6e4ZG.js → RichTextEditorContent-Aub9tOHF.js} +4 -4
  26. package/dist/{SaveBlockDialog-D7SaFxa_.js → SaveBlockDialog-D_ie3uIF.js} +7 -7
  27. package/dist/{SavedBlocksBrowserModal-B5r3LWWG.js → SavedBlocksBrowserModal-fhSnYT1l.js} +9 -9
  28. package/dist/{SavedBlocksPanels-BH2f7jm-.js → SavedBlocksPanels-Lklqy4XI.js} +1 -1
  29. package/dist/{SavedBlocksPickBar-B24TScw0.js → SavedBlocksPickBar-CpWkCa8G.js} +2 -2
  30. package/dist/{TemplateSettings-CuN9Vkl_.js → TemplateSettings-BJ4a8RBr.js} +8 -8
  31. package/dist/{TestEmailModal-C4DAaohi.js → TestEmailModal-BEoapoDc.js} +8 -8
  32. package/dist/{TestEmailPanel-DoMcVJSE.js → TestEmailPanel-DgyzokCf.js} +1 -1
  33. package/dist/{TitleEditor-b5Pr_m9j.js → TitleEditor-BQoSPgOi.js} +9 -9
  34. package/dist/{Toolbar-BOf7Y862.js → Toolbar-KhPpWyX1.js} +857 -756
  35. package/dist/{TplModal-DAcXzBJh.js → TplModal-F_kA7luG.js} +1 -1
  36. package/dist/{VersionHistoryMenu-TbIGteNi.js → VersionHistoryMenu-Bz4G8cNm.js} +5 -5
  37. package/dist/{VersionHistoryPanels-Ia6ipOqG.js → VersionHistoryPanels-DmVRyWv9.js} +1 -1
  38. package/dist/{VersionPreviewBanner-CRfu6quf.js → VersionPreviewBanner-BeppXZyn.js} +1 -1
  39. package/dist/{WrapperBlock-BZenrXM6.js → WrapperBlock-Ds7yfbhg.js} +3 -3
  40. package/dist/{blockTypeIcons-DdYZy8yG.js → blockTypeIcons-Do1QqDjg.js} +3 -3
  41. package/dist/bundle-stats.json +6 -6
  42. package/dist/{cdn/chunks/ca-YfIxwO1G.js → ca-Ce3NmK9v.js} +6 -3
  43. package/dist/cdn/chunks/{AiAltTextPopover-CcX_OMUU.js → AiAltTextPopover-CUzIaLRK.js} +2 -2
  44. package/dist/cdn/chunks/AiAltTextPopover-CUzIaLRK.js.map +1 -0
  45. package/dist/cdn/chunks/{AiAltTextReview-Dmm3h0jd.js → AiAltTextReview-BXBlE71X.js} +2 -2
  46. package/dist/cdn/chunks/AiAltTextReview-BXBlE71X.js.map +1 -0
  47. package/dist/cdn/chunks/{AiChatPanel-DV23DJ-2.js → AiChatPanel-BKydciDQ.js} +2 -2
  48. package/dist/cdn/chunks/AiChatPanel-BKydciDQ.js.map +1 -0
  49. package/dist/cdn/chunks/{AiPanels-CxhOpMAp.js → AiPanels-De-cIZ4p.js} +2 -2
  50. package/dist/cdn/chunks/AiPanels-De-cIZ4p.js.map +1 -0
  51. package/dist/cdn/chunks/{AiRewriteMenu-87-O514r.js → AiRewriteMenu-C9vBUTIB.js} +6 -6
  52. package/dist/cdn/chunks/AiRewriteMenu-C9vBUTIB.js.map +1 -0
  53. package/dist/cdn/chunks/{BlockIssueBadge-Dp06vQd3.js → BlockIssueBadge-B3CTTvgw.js} +2 -2
  54. package/dist/cdn/chunks/BlockIssueBadge-B3CTTvgw.js.map +1 -0
  55. package/dist/cdn/chunks/{BlockPreviewCanvas-DQGzUvZ5.js → BlockPreviewCanvas-B4Bj--kc.js} +20 -45
  56. package/dist/cdn/chunks/BlockPreviewCanvas-B4Bj--kc.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-CQ75I3hQ.js} +3 -3
  59. package/dist/cdn/chunks/CloudPanels-CQ75I3hQ.js.map +1 -0
  60. package/dist/cdn/chunks/{CollaborationNotices-DNEs3g9B.js → CollaborationNotices-CgLea-hu.js} +2 -2
  61. package/dist/cdn/chunks/CollaborationNotices-CgLea-hu.js.map +1 -0
  62. package/dist/cdn/chunks/{CollaboratorBar-CN6XAlbn.js → CollaboratorBar-CjRcbebT.js} +2 -2
  63. package/dist/cdn/chunks/CollaboratorBar-CjRcbebT.js.map +1 -0
  64. package/dist/cdn/chunks/{CommentsPanel-CxZ1kFcK.js → CommentsPanel-D_ud9GMN.js} +2 -2
  65. package/dist/cdn/chunks/CommentsPanel-D_ud9GMN.js.map +1 -0
  66. package/dist/cdn/chunks/{CommentsSidebar-DCr2mV8b.js → CommentsSidebar-CXn1EGAI.js} +2 -2
  67. package/dist/cdn/chunks/CommentsSidebar-CXn1EGAI.js.map +1 -0
  68. package/dist/cdn/chunks/CountdownBlock--hlKE2aj.js.map +1 -1
  69. package/dist/cdn/chunks/{CountdownToolbar-CUTbVPPV.js → CountdownToolbar-BOyk_4k7.js} +5 -5
  70. package/dist/cdn/chunks/CountdownToolbar-BOyk_4k7.js.map +1 -0
  71. package/dist/cdn/chunks/{IssuesPanel-BhcSzwuL.js → IssuesPanel-DOC94ZsH.js} +4 -4
  72. package/dist/cdn/chunks/IssuesPanel-DOC94ZsH.js.map +1 -0
  73. package/dist/cdn/chunks/{LanguageMenu-6wGhkyFT.js → LanguageMenu-DktneIpL.js} +7 -7
  74. package/dist/cdn/chunks/LanguageMenu-DktneIpL.js.map +1 -0
  75. package/dist/cdn/chunks/{LocaleNotices-Br92Xueo.js → LocaleNotices-B2NgnHoP.js} +2 -2
  76. package/dist/cdn/chunks/LocaleNotices-B2NgnHoP.js.map +1 -0
  77. package/dist/cdn/chunks/{LogicTagInsertButton-r2EVUtDU.js → LogicTagInsertButton-CQ8RiOou.js} +5 -5
  78. package/dist/cdn/chunks/LogicTagInsertButton-CQ8RiOou.js.map +1 -0
  79. package/dist/cdn/chunks/{MediaEditModal-CfgN7Jyi.js → MediaEditModal-Cs7_Om7e.js} +2 -2
  80. package/dist/cdn/chunks/MediaEditModal-Cs7_Om7e.js.map +1 -0
  81. package/dist/cdn/chunks/{MediaPanels-Cb5vsgb-.js → MediaPanels-BeekGmql.js} +2 -2
  82. package/dist/cdn/chunks/MediaPanels-BeekGmql.js.map +1 -0
  83. package/dist/cdn/chunks/{MergeTagInput-Dh3N6CEV.js → MergeTagInput-D7FZ0ca0.js} +2 -2
  84. package/dist/cdn/chunks/MergeTagInput-D7FZ0ca0.js.map +1 -0
  85. package/dist/cdn/chunks/{MergeTagModeToggle-D6u3hMrI.js → MergeTagModeToggle-CySCCEDs.js} +3 -3
  86. package/dist/cdn/chunks/MergeTagModeToggle-CySCCEDs.js.map +1 -0
  87. package/dist/cdn/chunks/{MergeTagTextarea-BpVtpiNL.js → MergeTagTextarea-DJbWTYVH.js} +7 -7
  88. package/dist/cdn/chunks/MergeTagTextarea-DJbWTYVH.js.map +1 -0
  89. package/dist/cdn/chunks/{ParagraphEditor-DGJmPAC1.js → ParagraphEditor-DAQUWqQJ.js} +23 -23
  90. package/dist/cdn/chunks/ParagraphEditor-DAQUWqQJ.js.map +1 -0
  91. package/dist/cdn/chunks/{RestoreVersionDialog-D5qeCa0F.js → RestoreVersionDialog-COTRe_rM.js} +3 -3
  92. package/dist/cdn/chunks/RestoreVersionDialog-COTRe_rM.js.map +1 -0
  93. package/dist/cdn/chunks/{RichTextEditorContent-DyGiXKKI.js → RichTextEditorContent-DeWPMd9V.js} +4 -4
  94. package/dist/cdn/chunks/RichTextEditorContent-DeWPMd9V.js.map +1 -0
  95. package/dist/cdn/chunks/{SaveBlockDialog-B0TJYxd8.js → SaveBlockDialog-adQMbKR1.js} +6 -6
  96. package/dist/cdn/chunks/SaveBlockDialog-adQMbKR1.js.map +1 -0
  97. package/dist/cdn/chunks/{SavedBlocksBrowserModal-D8Ly7LrA.js → SavedBlocksBrowserModal-CGIFCRAx.js} +6 -6
  98. package/dist/cdn/chunks/SavedBlocksBrowserModal-CGIFCRAx.js.map +1 -0
  99. package/dist/cdn/chunks/{SavedBlocksPanels-Co1cbWR8.js → SavedBlocksPanels-Du0RYlEf.js} +2 -2
  100. package/dist/cdn/chunks/SavedBlocksPanels-Du0RYlEf.js.map +1 -0
  101. package/dist/cdn/chunks/{SavedBlocksPickBar-DNtVbpm-.js → SavedBlocksPickBar-DmleyUrn.js} +3 -3
  102. package/dist/cdn/chunks/SavedBlocksPickBar-DmleyUrn.js.map +1 -0
  103. package/dist/cdn/chunks/{TemplateSettings-BRc878ZF.js → TemplateSettings-Csjef99q.js} +6 -6
  104. package/dist/cdn/chunks/TemplateSettings-Csjef99q.js.map +1 -0
  105. package/dist/cdn/chunks/{TestEmailModal-CIui7VfS.js → TestEmailModal-ClkexOtF.js} +7 -7
  106. package/dist/cdn/chunks/TestEmailModal-ClkexOtF.js.map +1 -0
  107. package/dist/cdn/chunks/{TestEmailPanel-vKvruW_r.js → TestEmailPanel-DYEYzhU2.js} +2 -2
  108. package/dist/cdn/chunks/TestEmailPanel-DYEYzhU2.js.map +1 -0
  109. package/dist/cdn/chunks/{TitleEditor-BI-9Nnj3.js → TitleEditor-opvaIgVr.js} +8 -8
  110. package/dist/cdn/chunks/TitleEditor-opvaIgVr.js.map +1 -0
  111. package/dist/cdn/chunks/ToggleSwitch-C0w0srN_.js.map +1 -1
  112. package/dist/cdn/chunks/{Toolbar-CYnnArxv.js → Toolbar-DbqkKRXy.js} +771 -670
  113. package/dist/cdn/chunks/Toolbar-DbqkKRXy.js.map +1 -0
  114. package/dist/cdn/chunks/{TplModal-B3nZeGWK.js → TplModal-DLV5OeMD.js} +2 -2
  115. package/dist/cdn/chunks/TplModal-DLV5OeMD.js.map +1 -0
  116. package/dist/cdn/chunks/{VersionHistoryMenu-CMGfAKuV.js → VersionHistoryMenu-DBd0zwjE.js} +2 -2
  117. package/dist/cdn/chunks/VersionHistoryMenu-DBd0zwjE.js.map +1 -0
  118. package/dist/cdn/chunks/{VersionHistoryPanels-Bb2ouQg7.js → VersionHistoryPanels-hy_Ybxie.js} +2 -2
  119. package/dist/cdn/chunks/VersionHistoryPanels-hy_Ybxie.js.map +1 -0
  120. package/dist/cdn/chunks/{VersionPreviewBanner-573UP-g4.js → VersionPreviewBanner-D-yHxWWY.js} +2 -2
  121. package/dist/cdn/chunks/VersionPreviewBanner-D-yHxWWY.js.map +1 -0
  122. package/dist/cdn/chunks/{WrapperBlock-DVu632LD.js → WrapperBlock-Ce_k8m_x.js} +4 -4
  123. package/dist/cdn/chunks/WrapperBlock-Ce_k8m_x.js.map +1 -0
  124. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js → blockTypeIcons-DBoP1HkR.js} +2 -2
  125. package/dist/cdn/chunks/{blockTypeIcons-CGxNYHVA.js.map → blockTypeIcons-DBoP1HkR.js.map} +1 -1
  126. package/dist/{ca-YfIxwO1G.js → cdn/chunks/ca-Ce3NmK9v.js} +8 -1
  127. package/dist/cdn/chunks/ca-Ce3NmK9v.js.map +1 -0
  128. package/dist/cdn/chunks/{composables-DY3anqHO.js → composables-Brr4m0Sg.js} +566 -591
  129. package/dist/cdn/chunks/composables-Brr4m0Sg.js.map +1 -0
  130. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js → createCloudRuntime-QPeg45XL.js} +3 -3
  131. package/dist/cdn/chunks/{createCloudRuntime-B5numxlW.js.map → createCloudRuntime-QPeg45XL.js.map} +1 -1
  132. package/dist/cdn/chunks/{da-CM6DCvRG.js → da-4YwDAuEr.js} +7 -2
  133. package/dist/cdn/chunks/da-4YwDAuEr.js.map +1 -0
  134. package/dist/{de-Dugz1zXC.js → cdn/chunks/de-BlQ0vdZJ.js} +8 -1
  135. package/dist/cdn/chunks/de-BlQ0vdZJ.js.map +1 -0
  136. package/dist/cdn/chunks/{editor-modal-CXSSZplR.js → editor-modal-BCcbvIxc.js} +4 -4
  137. package/dist/cdn/chunks/editor-modal-BCcbvIxc.js.map +1 -0
  138. package/dist/cdn/chunks/en-DkulseE1.js +1 -0
  139. package/dist/{en-BykoFuFY.js → cdn/chunks/en-MlNeQVSG.js} +8 -1
  140. package/dist/cdn/chunks/en-MlNeQVSG.js.map +1 -0
  141. package/dist/{es-DaWsTkpj.js → cdn/chunks/es-2s8x4OM2.js} +8 -1
  142. package/dist/cdn/chunks/es-2s8x4OM2.js.map +1 -0
  143. package/dist/cdn/chunks/{extensions-BWVlr8Ga.js → extensions-BpuyqKVY.js} +5 -5
  144. package/dist/cdn/chunks/extensions-BpuyqKVY.js.map +1 -0
  145. package/dist/{fr-DqwQHtJo.js → cdn/chunks/fr-D3MjrsgQ.js} +8 -1
  146. package/dist/cdn/chunks/fr-D3MjrsgQ.js.map +1 -0
  147. package/dist/cdn/chunks/{icons-C7vjUBLn.js → icons-BJ6AtVgu.js} +23 -23
  148. package/dist/cdn/chunks/{icons-C7vjUBLn.js.map → icons-BJ6AtVgu.js.map} +1 -1
  149. package/dist/cdn/chunks/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +7 -2
  150. package/dist/cdn/chunks/ja-B4Kx7uBX.js.map +1 -0
  151. package/dist/{nl-BQl1_UHv.js → cdn/chunks/nl-U65iX7wN.js} +8 -1
  152. package/dist/cdn/chunks/nl-U65iX7wN.js.map +1 -0
  153. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js → normalizeMergeTagMarkup-B81BAWKT.js} +64 -64
  154. package/dist/cdn/chunks/{normalizeMergeTagMarkup-Dw3rFvyd.js.map → normalizeMergeTagMarkup-B81BAWKT.js.map} +1 -1
  155. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js → preRenderCustomBlocks-CQuaMxuv.js} +2 -2
  156. package/dist/cdn/chunks/{preRenderCustomBlocks-BGtb8Xbp.js.map → preRenderCustomBlocks-CQuaMxuv.js.map} +1 -1
  157. package/dist/{pt-BR-eyzmU9Vs.js → cdn/chunks/pt-BR-_jsX1xLv.js} +8 -1
  158. package/dist/cdn/chunks/pt-BR-_jsX1xLv.js.map +1 -0
  159. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js → sanitizeHtml-BdAjvU9I.js} +2 -2
  160. package/dist/cdn/chunks/{sanitizeHtml-CLRY8s2s.js.map → sanitizeHtml-BdAjvU9I.js.map} +1 -1
  161. package/dist/cdn/chunks/{socialIcons-kYhdXJ9P.js → socialIcons-Df9dNe7I.js} +495 -517
  162. package/dist/cdn/chunks/socialIcons-Df9dNe7I.js.map +1 -0
  163. package/dist/cdn/chunks/{src-BmzzkUf7.js → src-B3v_3j9b.js} +436 -404
  164. package/dist/cdn/chunks/src-B3v_3j9b.js.map +1 -0
  165. package/dist/cdn/chunks/{src-DY2kMjoD.js → src-BHgVGOTi.js} +771 -667
  166. package/dist/cdn/chunks/src-BHgVGOTi.js.map +1 -0
  167. package/dist/cdn/chunks/src-C5V_yzAU.js +673 -0
  168. package/dist/cdn/chunks/src-C5V_yzAU.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-C3lIetmX.js +33 -0
  172. package/dist/cdn/chunks/{useLocalizedDisplay-B5wMJLru.js.map → useLocalizedDisplay-C3lIetmX.js.map} +1 -1
  173. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js → useLogicTag-DOIlsGk8.js} +2 -2
  174. package/dist/cdn/chunks/{useLogicTag-0wkSxy3z.js.map → useLogicTag-DOIlsGk8.js.map} +1 -1
  175. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js → useMergeTag-DUNl364g.js} +2 -2
  176. package/dist/cdn/chunks/{useMergeTag-y3bX8M_6.js.map → useMergeTag-DUNl364g.js.map} +1 -1
  177. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js → withCurrentFont-ufGLu2Vt.js} +2 -2
  178. package/dist/cdn/chunks/{withCurrentFont-B42BKo9N.js.map → withCurrentFont-ufGLu2Vt.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-CWq6Nfjj.js} +1 -1
  182. package/dist/{chevron-down-C_vv5fZE.js → chevron-down-B9t0SK_-.js} +1 -1
  183. package/dist/{chevron-right-Cw4GpjFA.js → chevron-right-B_qslOCS.js} +1 -1
  184. package/dist/{chevron-up-uijYZoph.js → chevron-up-CxZ2teV2.js} +1 -1
  185. package/dist/{circle-exclamation-point-CIYHx5Tw.js → circle-exclamation-point-B1tbhkNb.js} +1 -1
  186. package/dist/{clock-tnC1IvZk.js → clock-Rw4btQn-.js} +1 -1
  187. package/dist/{composables-CFTH0Nqb.js → composables-5KJV0O9T.js} +914 -939
  188. package/dist/{createCloudRuntime-BvWlm_38.js → createCloudRuntime-BdoKeYJi.js} +2 -2
  189. package/dist/{createLucideIcon-CssArtUe.js → createLucideIcon-B6Zkn9r0.js} +5 -5
  190. package/dist/{da-CM6DCvRG.js → da-4YwDAuEr.js} +6 -1
  191. package/dist/{cdn/chunks/de-Dugz1zXC.js → de-BlQ0vdZJ.js} +6 -3
  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-DY3WbyCO.js → dist-DYtuc3jc.js} +2 -2
  201. package/dist/dist-DkPTWQuO.js +4 -0
  202. package/dist/{dist-DwpKFWF4.js → dist-DoWk1r7z.js} +77 -74
  203. package/dist/{dist-CMo4K5So.js → dist-DsA7NeIy.js} +798 -696
  204. package/dist/{dist-BlrlMP8f.js → dist-fDsB6dCL.js} +2 -2
  205. package/dist/{editor-modal-BWvxfSj8.js → editor-modal-_ylhrf4g.js} +15 -15
  206. package/dist/en-DwxgN_-Y.js +1 -0
  207. package/dist/{cdn/chunks/en-BykoFuFY.js → en-MlNeQVSG.js} +6 -3
  208. package/dist/{cdn/chunks/es-DaWsTkpj.js → es-2s8x4OM2.js} +6 -3
  209. package/dist/{extensions-BPVackEE.js → extensions-DCJGAZ9z.js} +73 -73
  210. package/dist/{eye-DK4--qHk.js → eye-BE-DeEqG.js} +1 -1
  211. package/dist/{cdn/chunks/fr-DqwQHtJo.js → fr-D3MjrsgQ.js} +6 -3
  212. package/dist/{image-B5pJOw5Q.js → image-DfRxUmUh.js} +1 -1
  213. package/dist/index.d.ts +37 -7
  214. package/dist/{info-DKM0_thN.js → info-D1PS-81D.js} +1 -1
  215. package/dist/{ja-BH4MS1Ye.js → ja-B4Kx7uBX.js} +6 -1
  216. package/dist/{link-BNgTZ_Sw.js → link-DLaACaIz.js} +1 -1
  217. package/dist/{list-Bqynqm7o.js → list-CvtzVlvM.js} +1 -1
  218. package/dist/{loader-circle-BMc3fVpa.js → loader-circle-DCkSXApP.js} +1 -1
  219. package/dist/{message-circle-D_TpvAJh.js → message-circle-Bj4F9bBO.js} +1 -1
  220. package/dist/{cdn/chunks/nl-BQl1_UHv.js → nl-U65iX7wN.js} +6 -3
  221. package/dist/{normalizeMergeTagMarkup-PQqrbfmt.js → normalizeMergeTagMarkup-B7n_-4Dz.js} +45 -45
  222. package/dist/{package-D2fov5PU.js → package-By1au8Wi.js} +1 -1
  223. package/dist/{pencil-BNdkJyfY.js → pencil-T4qqyRLl.js} +1 -1
  224. package/dist/{plus-CWmBmMx-.js → plus-3Zry-1gs.js} +1 -1
  225. package/dist/{preRenderCustomBlocks-Dg5GBNi2.js → preRenderCustomBlocks-D3GzENVB.js} +3 -3
  226. package/dist/{cdn/chunks/pt-BR-eyzmU9Vs.js → pt-BR-_jsX1xLv.js} +6 -3
  227. package/dist/{refresh-cw-Ryg1j66N.js → refresh-cw-BwaO0ioc.js} +1 -1
  228. package/dist/{rotate-ccw-D8j7gXXv.js → rotate-ccw-C3E0W5q-.js} +1 -1
  229. package/dist/{sanitizeHtml-DVdfdxOz.js → sanitizeHtml-BcbjlypU.js} +6 -6
  230. package/dist/{search-CX2JkSHz.js → search-DfExisVv.js} +1 -1
  231. package/dist/{send-BLR1b-p5.js → send-FRC7Giap.js} +1 -1
  232. package/dist/{smartphone-Co8m0LLg.js → smartphone-BlYU_z_x.js} +1 -1
  233. package/dist/{socialIcons-DBHv_ntg.js → socialIcons-By2LPWOQ.js} +561 -583
  234. package/dist/{sparkles-Dc3Undp5.js → sparkles-DSi61skE.js} +1 -1
  235. package/dist/{square-CPw_cyX8.js → square-DEE8tT2w.js} +1 -1
  236. package/dist/templatical-editor.js +139 -139
  237. package/dist/{text-align-start-2VZGhCiK.js → text-align-start-DGdrmKcG.js} +1 -1
  238. package/dist/{trash-t6XXliVc.js → trash-YZPJMZc7.js} +1 -1
  239. package/dist/{triangle-exclamation-point-_YYWE2ZH.js → triangle-exclamation-point-BR-W6pQm.js} +1 -1
  240. package/dist/{upload-BWYXWYHb.js → upload-B_Eoqj-4.js} +1 -1
  241. package/dist/useLocalizedDisplay-_P6-hXaO.js +31 -0
  242. package/dist/{useLogicTag-CVOj0VUv.js → useLogicTag-f0SJ1Cd2.js} +1 -1
  243. package/dist/{useMergeTag-Bams_kam.js → useMergeTag-0-EudwkV.js} +3 -3
  244. package/dist/{useScrollToBlock-CwUQ_nKz.js → useScrollToBlock-CtM_ydOS.js} +1 -1
  245. package/dist/withCurrentFont-BOg3jmCT.js +18 -0
  246. package/dist/{x-CTKOxIyZ.js → x-C0X5MoK3.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"],
@@ -299,27 +147,27 @@ var he = class extends Error {
299
147
  ],
300
148
  custom: ["fieldValues.*"]
301
149
  }, g = ["preheaderText"];
302
- function _e(e) {
150
+ function oe(e) {
303
151
  return typeof e == "string" && /^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$/.test(e);
304
152
  }
305
153
  function _(e) {
306
154
  return typeof e == "object" && !!e && !Array.isArray(e);
307
155
  }
308
- var ve = /* @__PURE__ */ new Set([
156
+ var se = /* @__PURE__ */ new Set([
309
157
  "__proto__",
310
158
  "constructor",
311
159
  "prototype"
312
160
  ]);
313
161
  function v(e) {
314
- return e.split(".").every((e) => e !== "" && !ve.has(e));
162
+ return e.split(".").every((e) => e !== "" && !se.has(e));
315
163
  }
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;
164
+ function ce(e, t) {
165
+ 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
166
  }
319
167
  function y(e, t) {
320
- return t.split(".").reduce(ye, e);
168
+ return t.split(".").reduce(ce, e);
321
169
  }
322
- function be(e) {
170
+ function le(e) {
323
171
  let t = m(e);
324
172
  for (let [n, r] of Object.entries(t.l10n ?? {})) {
325
173
  for (let t of ["text", "set"]) {
@@ -333,23 +181,23 @@ function be(e) {
333
181
  }
334
182
  return t.l10n && !Object.keys(t.l10n).length && delete t.l10n, h(t, e) ? e : t;
335
183
  }
336
- function xe(e) {
337
- let t = be(e);
184
+ function ue(e) {
185
+ let t = le(e);
338
186
  if (t.type === "wrapper") {
339
- let e = t.children.map(xe);
187
+ let e = t.children.map(ue);
340
188
  return e.some((e, n) => e !== t.children[n]) ? {
341
189
  ...t,
342
190
  children: e
343
191
  } : t;
344
192
  }
345
193
  if (t.type !== "section") return t;
346
- let n = t.children.map((e) => e.map(xe));
194
+ let n = t.children.map((e) => e.map(ue));
347
195
  return n.some((e, n) => e.some((e, r) => e !== t.children[n][r])) ? {
348
196
  ...t,
349
197
  children: n
350
198
  } : t;
351
199
  }
352
- function Se(e, t, n) {
200
+ function de(e, t, n) {
353
201
  if (e.type === "custom") return !1;
354
202
  if (e.type === "section") return t === "columns";
355
203
  let r = e.type === "menu" ? "items" : e.type === "social" ? "icons" : e.type === "table" ? "rows" : null;
@@ -370,30 +218,30 @@ function Se(e, t, n) {
370
218
  }
371
219
  return !1;
372
220
  }
373
- function Ce(e) {
374
- return be(e);
221
+ function fe(e) {
222
+ return le(e);
375
223
  }
376
224
  function b(e, t, n) {
377
225
  if (!v(t)) return !1;
378
- let r = t.split("."), i = r.pop(), a = r.reduce(ye, e);
226
+ let r = t.split("."), i = r.pop(), a = r.reduce(ce, e);
379
227
  if (Array.isArray(a)) {
380
228
  let e = a.findIndex((e) => _(e) && e.id === i);
381
229
  return e < 0 ? !1 : (a[e] = m(n), !0);
382
230
  }
383
231
  return _(a) ? (n === null ? delete a[i] : a[i] = m(n), !0) : !1;
384
232
  }
385
- function we(e, t) {
233
+ function pe(e, t) {
386
234
  let [n, ...r] = t.split(".");
387
235
  if (n === void 0) return [""];
388
236
  let i = [];
389
237
  if (n === "*") {
390
238
  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);
239
+ 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
240
  return i;
393
241
  }
394
242
  let a = _(e) ? e[n] : void 0;
395
243
  if (r.length === 0) return a === void 0 ? [] : [n];
396
- for (let e of we(a, r.join("."))) i.push(`${n}.${e}`);
244
+ for (let e of pe(a, r.join("."))) i.push(`${n}.${e}`);
397
245
  return i;
398
246
  }
399
247
  function x(e, t = []) {
@@ -411,67 +259,67 @@ function x(e, t = []) {
411
259
  cells: e.cells.filter(n)
412
260
  }))
413
261
  } : e;
414
- return (ge[e.type] ?? []).flatMap((e) => we(r, e));
262
+ return (ae[e.type] ?? []).flatMap((e) => pe(r, e));
415
263
  }
416
- function Te(e, t) {
417
- return (ge[e] ?? []).some((e) => {
264
+ function S(e, t) {
265
+ return (ae[e] ?? []).some((e) => {
418
266
  let n = e.split("."), r = t.split(".");
419
267
  return n.length === r.length && n.every((e, t) => e === "*" || e === r[t]);
420
268
  });
421
269
  }
422
- function S(e) {
270
+ function C(e) {
423
271
  let t = 2166136261;
424
272
  for (let n of new TextEncoder().encode(e)) t ^= n, t = Math.imul(t, 16777619) >>> 0;
425
273
  return t.toString(16).padStart(8, "0");
426
274
  }
427
- function Ee(e) {
275
+ function me(e) {
428
276
  let { l10n: t, ...n } = e;
429
277
  return n;
430
278
  }
431
- function De(e = {}) {
279
+ function he(e = {}) {
432
280
  return Object.entries(e).sort(([e], [t]) => e.split(".").length - t.split(".").length);
433
281
  }
434
- function Oe(e, t, n) {
435
- return ke(e, m(Ee(e)), t, n);
282
+ function ge(e, t, n) {
283
+ return _e(e, m(me(e)), t, n);
436
284
  }
437
- function ke(e, t, n, r) {
285
+ function _e(e, t, n, r) {
438
286
  let i = e;
439
287
  if (n === r) return t;
440
288
  let a = i.l10n?.[n];
441
289
  if (!a) return t;
442
- for (let [e, n] of De(a.set)) b(t, e, n);
290
+ for (let [e, n] of he(a.set)) b(t, e, n);
443
291
  for (let [n, r] of Object.entries(a.text ?? {})) y(e, n) !== void 0 && b(t, n, r.value);
444
292
  return e.type === "custom" && (Object.keys(a.text ?? {}).length > 0 || Object.keys(a.set ?? {}).length > 0) && delete t.renderedHtml, t;
445
293
  }
446
- function Ae(e, t, n) {
294
+ function ve(e, t, n) {
447
295
  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);
296
+ if (r.type !== "section" && r.type !== "wrapper" || !Array.isArray(r.children)) return ge(e, t, n);
297
+ let { children: i, ...a } = me(r), o = m(a);
298
+ return o.children = i, _e(e, o, t, n);
451
299
  }
452
- function je(e, t) {
300
+ function ye(e, t) {
453
301
  return e.l10n?.[t]?.hidden === !0;
454
302
  }
455
- function Me(e) {
303
+ function be(e) {
456
304
  let { locales: t, l10n: n, ...r } = e;
457
305
  return r;
458
306
  }
459
- function C(e) {
307
+ function w(e) {
460
308
  return e.settings?.locale ?? "en";
461
309
  }
462
- function Ne(e, t, n) {
463
- let r = C(e), i = e.settings?.locales ?? [];
310
+ function xe(e, t, n) {
311
+ let r = w(e), i = e.settings?.locales ?? [];
464
312
  if (t !== r && !i.includes(t)) {
465
313
  if (n?.missing === "default") t = r;
466
- else throw new he(`This template has no "${t}" version.`, void 0, "unknown_locale");
314
+ else throw new ie(`This template has no "${t}" version.`, void 0, "unknown_locale");
467
315
  }
468
316
  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);
317
+ if (t !== r && ye(e, t)) return [];
318
+ 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
319
  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];
320
+ }), o = m(be(e.settings)), s = e.settings?.l10n?.[t];
473
321
  if (t !== r && s) {
474
- for (let [e, t] of De(s.set)) b(o, e, t);
322
+ for (let [e, t] of he(s.set)) b(o, e, t);
475
323
  for (let [t, n] of Object.entries(s.text ?? {})) y(e.settings, t) !== void 0 && b(o, t, n.value);
476
324
  }
477
325
  return o.locale = t, {
@@ -479,7 +327,7 @@ function Ne(e, t, n) {
479
327
  settings: o
480
328
  };
481
329
  }
482
- function Pe(e, t, n = []) {
330
+ function Se(e, t, n = []) {
483
331
  let r = {
484
332
  translated: [],
485
333
  missing: [],
@@ -489,11 +337,11 @@ function Pe(e, t, n = []) {
489
337
  let n = y(t, a);
490
338
  if (typeof n != "string") continue;
491
339
  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}`));
340
+ (o || n !== "") && (o ? o.sourceHash === C(n) ? r.translated.push(`${e}/${a}`) : r.stale.push(`${e}/${a}`) : r.missing.push(`${e}/${a}`));
493
341
  }
494
342
  }, a = (e) => {
495
343
  for (let r of e) {
496
- if (je(r, t)) continue;
344
+ if (ye(r, t)) continue;
497
345
  let e = r.l10n?.[t];
498
346
  i(r.id, r, x(r, n), e?.text);
499
347
  let o = r.children;
@@ -503,34 +351,34 @@ function Pe(e, t, n = []) {
503
351
  };
504
352
  return a(e.blocks), i("settings", e.settings, [...g], e.settings?.l10n?.[t]?.text), r;
505
353
  }
506
- function Fe(e, t) {
507
- if (t === C(e) || !e.settings.locales?.includes(t)) return [];
354
+ function Ce(e, t) {
355
+ if (t === w(e) || !e.settings.locales?.includes(t)) return [];
508
356
  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);
357
+ 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
358
  };
511
359
  return r(e.blocks), n;
512
360
  }
513
- function Ie(e, t, n = []) {
514
- if (t === C(e) || !e.settings.locales?.includes(t)) return [];
361
+ function we(e, t, n = []) {
362
+ if (t === w(e) || !e.settings.locales?.includes(t)) return [];
515
363
  let r = [], i = (e, n, i) => {
516
- r.push(...Le(n, t, i).map((t) => `${e}/${t}`));
364
+ r.push(...Te(n, t, i).map((t) => `${e}/${t}`));
517
365
  }, a = (e) => {
518
366
  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
367
  };
520
368
  return a(e.blocks), i("settings", e.settings, g), r;
521
369
  }
522
- function Le(e, t, n) {
370
+ function Te(e, t, n) {
523
371
  let r = e.l10n?.[t];
524
372
  return n.filter((t) => {
525
373
  let n = y(e, t);
526
374
  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
375
  });
528
376
  }
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);
377
+ function Ee(e, t, n = {}) {
378
+ let r = w(e), i = (e, n, i) => {
379
+ let a = Te(e, t, i), o = m(e.l10n ?? {}), s = o[t] ?? {}, c = m(e);
532
380
  delete c.l10n;
533
- for (let [e, t] of De(s.set)) b(c, e, t);
381
+ for (let [e, t] of he(s.set)) b(c, e, t);
534
382
  for (let [t, n] of Object.entries(s.text ?? {})) y(e, t) !== void 0 && b(c, t, n.value);
535
383
  delete o[t];
536
384
  let l = {}, u = /* @__PURE__ */ new Set([
@@ -542,10 +390,10 @@ function Re(e, t, n = {}) {
542
390
  let r = y(e, t), i = y(c, t);
543
391
  h(r, i) ? (s.text?.[t] || a.includes(t)) && n(t) && typeof r == "string" && r !== "" && ((l.text ??= {})[t] = {
544
392
  value: r,
545
- sourceHash: S(r)
393
+ sourceHash: C(r)
546
394
  }) : n(t) && typeof r == "string" && typeof i == "string" ? (l.text ??= {})[t] = {
547
395
  value: r,
548
- sourceHash: S(i)
396
+ sourceHash: C(i)
549
397
  } : (l.set ??= {})[t] = r === void 0 ? null : m(r);
550
398
  }
551
399
  let d = (e, t) => {
@@ -569,21 +417,21 @@ function Re(e, t, n = {}) {
569
417
  };
570
418
  for (let t of Object.values(o)) {
571
419
  let n = m(e);
572
- for (let [e, r] of De(t.set)) b(n, e, r);
420
+ for (let [e, r] of he(t.set)) b(n, e, r);
573
421
  for (let [r, i] of Object.entries(t.text ?? {})) y(e, r) !== void 0 && b(n, r, i.value);
574
422
  for (let [n, r] of Object.entries(t.text ?? {})) {
575
423
  let i = y(c, n);
576
424
  if (typeof i != "string") (t.set ??= {})[n] = r.value, delete t.text[n];
577
425
  else {
578
426
  let t = y(e, n);
579
- typeof t == "string" && r.sourceHash === S(t) && (r.sourceHash = S(i));
427
+ typeof t == "string" && r.sourceHash === C(t) && (r.sourceHash = C(i));
580
428
  }
581
429
  }
582
430
  d(t, n);
583
431
  }
584
432
  return Object.keys(l).length && (d(l, e), o[r] = l), Object.keys(o).length && (c.l10n = o), c;
585
433
  }, 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);
434
+ 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
435
  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
436
  }), o = i(e.settings, (e) => g.includes(e), g);
589
437
  return o.locale = t, o.locales = e.settings.locales.map((e) => e === t ? r : e), {
@@ -591,12 +439,12 @@ function Re(e, t, n = {}) {
591
439
  settings: o
592
440
  };
593
441
  }
594
- var ze = "Sections with a wrapper cannot be placed inside wrappers.";
595
- function Be(e, t, n = []) {
442
+ var De = "Sections with a wrapper cannot be placed inside wrappers.";
443
+ function Oe(e, t, n = []) {
596
444
  let r = Object.fromEntries(F(e.blocks).flatMap((e) => {
597
445
  if (e.type !== "custom") return [];
598
446
  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]] : [];
447
+ return t.length && Pe.has(e.id) && D("invalid_operation", 0, Fe), t.length ? [[e.id, t]] : [];
600
448
  }));
601
449
  return {
602
450
  op: "setDefaultLocale",
@@ -604,7 +452,7 @@ function Be(e, t, n = []) {
604
452
  ...Object.keys(r).length ? { customTextFields: r } : {}
605
453
  };
606
454
  }
607
- var w = class extends Error {
455
+ var T = class extends Error {
608
456
  code;
609
457
  opIndex;
610
458
  blockId;
@@ -612,164 +460,164 @@ var w = class extends Error {
612
460
  super(n), this.name = "OperationError", this.code = e, this.opIndex = t, r !== void 0 && (this.blockId = r);
613
461
  }
614
462
  };
615
- function Ve(e) {
463
+ function ke(e) {
616
464
  return e === "1" ? 1 : e === "3" || e === "1-2-1" ? 3 : e === "4" ? 4 : 2;
617
465
  }
618
- function He(e, t, n = {}) {
466
+ function Ae(e, t, n = {}) {
619
467
  let r = m(e);
620
- return T(r, t, n), r;
468
+ return E(r, t, n), r;
621
469
  }
622
- function T(e, t, n = {}) {
470
+ function E(e, t, n = {}) {
623
471
  let r = {
624
472
  locks: n.locks ?? [],
625
473
  session: n.session ?? null
626
474
  };
627
- t.forEach((t, n) => ut(e, t, n, r));
475
+ t.forEach((t, n) => $e(e, t, n, r));
628
476
  }
629
- var Ue = /* @__PURE__ */ new Set([
477
+ var je = /* @__PURE__ */ new Set([
630
478
  "id",
631
479
  "type",
632
480
  "children",
633
481
  "l10n"
634
- ]), We = /* @__PURE__ */ new Set(["locales", "l10n"]), Ge = /* @__PURE__ */ new Set([
482
+ ]), Me = /* @__PURE__ */ new Set(["locales", "l10n"]), Ne = /* @__PURE__ */ new Set([
635
483
  "locale",
636
484
  "locales",
637
485
  "l10n"
638
- ]), Ke = /* @__PURE__ */ new Set([
486
+ ]), Pe = /* @__PURE__ */ new Set([
639
487
  "__proto__",
640
488
  "constructor",
641
489
  "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);
490
+ ]), Fe = "customTextFields must map existing custom block ids to lists of string fieldValues paths.";
491
+ function D(e, t, n, r) {
492
+ throw new T(e, t, n, r);
645
493
  }
646
- function D(e) {
494
+ function O(e) {
647
495
  return typeof e == "object" && !!e && !Array.isArray(e);
648
496
  }
649
- function O(e) {
497
+ function k(e) {
650
498
  return e.type === "section";
651
499
  }
652
- function k(e) {
500
+ function Ie(e) {
653
501
  return Array.isArray(e.blocks) ? e.blocks : [];
654
502
  }
655
- function Je(e) {
503
+ function Le(e) {
656
504
  let t = e.children;
657
505
  return Array.isArray(t) ? t.map((e) => Array.isArray(e) ? e : []) : [];
658
506
  }
659
- function* Ye(e, t) {
507
+ function* Re(e, t) {
660
508
  for (let n = 0; n < e.length; n++) {
661
509
  let r = e[n];
662
- if (D(r) && (yield {
510
+ if (O(r) && (yield {
663
511
  block: r,
664
512
  list: e,
665
513
  index: n,
666
514
  parent: t
667
515
  }, typeof r.id == "string")) {
668
- if (O(r)) for (let [e, t] of Je(r).entries()) yield* Ye(t, {
516
+ if (k(r)) for (let [e, t] of Le(r).entries()) yield* Re(t, {
669
517
  sectionId: r.id,
670
518
  column: e
671
519
  });
672
- else r.type === "wrapper" && Array.isArray(r.children) && (yield* Ye(r.children, { wrapperId: r.id }));
520
+ else r.type === "wrapper" && Array.isArray(r.children) && (yield* Re(r.children, { wrapperId: r.id }));
673
521
  }
674
522
  }
675
523
  }
676
524
  function A(e, t) {
677
- for (let n of Ye(k(e), null)) if (n.block.id === t) return n;
525
+ for (let n of Re(Ie(e), null)) if (n.block.id === t) return n;
678
526
  return null;
679
527
  }
680
528
  function j(e) {
681
- if (!D(e)) return [];
529
+ if (!O(e)) return [];
682
530
  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);
531
+ if (k(e)) for (let n of Le(e)) for (let e of ze(n)) t.push(e);
532
+ else if (e.type === "wrapper" && Array.isArray(e.children)) for (let n of ze(e.children)) t.push(n);
685
533
  return t;
686
534
  }
687
- function Xe(e) {
535
+ function ze(e) {
688
536
  return e.flatMap(j);
689
537
  }
690
538
  function M(e, t) {
691
- return typeof e.blockId != "string" || e.blockId === "" ? E("invalid_operation", t, "blockId must be a block id.") : e.blockId;
539
+ return typeof e.blockId != "string" || e.blockId === "" ? D("invalid_operation", t, "blockId must be a block id.") : e.blockId;
692
540
  }
693
- function Ze(e, t) {
541
+ function Be(e, t) {
694
542
  let n = e.parent;
695
- return n === null ? null : D(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
543
+ return n === null ? null : O(n) && typeof n.sectionId == "string" && typeof n.column == "number" && Number.isInteger(n.column) ? {
696
544
  sectionId: n.sectionId,
697
545
  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\" }.");
546
+ } : 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
547
  }
700
- function Qe(e, t) {
548
+ function Ve(e, t) {
701
549
  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.");
550
+ return n === null ? null : typeof n == "string" && n !== "" ? n : D("invalid_operation", t, "after must be null or a block id.");
703
551
  }
704
552
  function N(e, t) {
705
553
  let n = e.expect;
706
- return n == null ? null : D(n) ? n : E("invalid_operation", t, "expect must be an object.");
554
+ return n == null ? null : O(n) ? n : D("invalid_operation", t, "expect must be an object.");
707
555
  }
708
- function $e(e, t, n) {
556
+ function He(e, t, n) {
709
557
  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.");
558
+ (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
559
  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.`);
560
+ o.length === 0 && i.length === 0 && D("invalid_operation", t, "Set or unset at least one key.");
561
+ for (let e of [...o, ...i]) n.has(e) && D("invalid_operation", t, `"${e}" can't be set or unset.`);
714
562
  let s = i.find((e) => o.includes(e));
715
- return s !== void 0 && E("invalid_operation", t, `"${s}" is both set and unset.`), {
563
+ return s !== void 0 && D("invalid_operation", t, `"${s}" is both set and unset.`), {
716
564
  set: Object.fromEntries(o.map((e) => [e, a[e]])),
717
565
  unset: i
718
566
  };
719
567
  }
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");
568
+ function Ue(e, t, n) {
569
+ 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") {
570
+ 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.");
571
+ for (let n of e.children) Ue(n, t, "wrapper");
724
572
  return;
725
573
  }
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);
574
+ if (!k(e)) return;
575
+ 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
576
  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");
577
+ 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.");
578
+ for (let e of r) for (let n of e) Ue(n, t, "column");
731
579
  }
732
580
  function P(e, t) {
733
581
  return e.session === null || t.sessionId !== e.session;
734
582
  }
735
- function tt(e, t, n) {
583
+ function We(e, t, n) {
736
584
  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);
585
+ r && D("lock_held", n, `Block "${r.blockId}" is being edited in another session.`, r.blockId);
738
586
  }
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);
587
+ function Ge(e, t, n, r) {
588
+ 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
589
  }
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));
590
+ function Ke(e, t, n, r) {
591
+ 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
592
  }
745
- function it(e, t, n) {
593
+ function qe(e, t, n) {
746
594
  if (t === null) return Array.isArray(e.blocks) || (e.blocks = []), e.blocks;
747
595
  if ("wrapperId" in t) {
748
596
  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);
597
+ 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
598
  }
751
599
  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.`);
600
+ if (!r) return D("block_missing", n, `No section with id "${t.sectionId}".`, t.sectionId);
601
+ if (!k(r.block)) return D("invalid_operation", n, `Block "${t.sectionId}" isn't a section.`);
754
602
  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]);
603
+ 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
604
  }
757
- function at(e, t, n) {
605
+ function Je(e, t, n) {
758
606
  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;
607
+ let r = e.findIndex((e) => O(e) && e.id === t);
608
+ return r === -1 ? D("anchor_missing", n, `No block "${t}" in the target container.`, t) : r + 1;
761
609
  }
762
- function ot(e, t, n, r) {
763
- let i = Ve(t), a = Array.isArray(e.children) ? e.children : [];
610
+ function Ye(e, t, n, r) {
611
+ let i = ke(t), a = Array.isArray(e.children) ? e.children : [];
764
612
  for (let e = i; e < a.length; e++) {
765
613
  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.`);
614
+ 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
615
  }
768
616
  let o = a.slice(0, i);
769
617
  for (; o.length < i;) o.push([]);
770
618
  e.children = o;
771
619
  }
772
- function st(e, t, n) {
620
+ function Xe(e, t, n) {
773
621
  for (let [n, r] of Object.entries(t)) n === "__proto__" ? Object.defineProperty(e, n, {
774
622
  value: m(r),
775
623
  writable: !0,
@@ -778,8 +626,8 @@ function st(e, t, n) {
778
626
  }) : e[n] = m(r);
779
627
  for (let t of n) delete e[t];
780
628
  }
781
- function ct(e) {
782
- return pe(e).map((t) => {
629
+ function Ze(e) {
630
+ return ne(e).map((t) => {
783
631
  let n = t.path.replace(/\.(items|icons|rows)\[.*$/, "").replace(/\[(\d+)\]/g, ".$1").split(".").reduce((e, t) => e[t], e);
784
632
  return {
785
633
  id: t.id,
@@ -787,114 +635,114 @@ function ct(e) {
787
635
  };
788
636
  });
789
637
  }
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);
638
+ function Qe(e, t, n) {
639
+ 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)));
640
+ a && D("invalid_operation", t, `Element id "${a.id}" must not contain "." or "/".`, a.blockId);
793
641
  }
794
- function ut(e, t, n, r) {
642
+ function $e(e, t, n, r) {
795
643
  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({
644
+ switch (O(i) && typeof i.op == "string" || D("invalid_operation", n, "Each operation must be an object with an \"op\"."), i.op) {
645
+ case "addBlock": return et(e, i, n);
646
+ case "moveBlock": return tt(e, i, n, r);
647
+ case "deleteBlock": return nt(e, i, n, r);
648
+ case "updateBlock": return rt(e, i, n, r);
649
+ case "updateSettings": return it(e, i, n);
650
+ case "setContent": return yt(e, i, n, r);
651
+ case "setDefaultLocale": return bt(e, i, n, r);
652
+ case "addLocale": return st(e, i, n);
653
+ case "removeLocale": return lt(e, i, n);
654
+ case "updateBlockLocale": return _t(e, i, n, r);
655
+ case "updateSettingsLocale": return vt(e, i, n);
656
+ default: D("invalid_operation", n, `Unknown operation "${i.op}".`);
657
+ }
658
+ }
659
+ function et(e, t, n) {
660
+ let r = Be(t, n), i = Ve(t, n), a = t.block;
661
+ Ue(a, n, r === null ? "root" : "wrapperId" in r ? "wrapper" : "column"), Qe({
814
662
  blocks: [a],
815
663
  settings: e.settings
816
664
  }, 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);
665
+ let o = new Set(ze(Ie(e))), s = /* @__PURE__ */ new Set();
666
+ 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);
667
+ let c = qe(e, r, n), l = Je(c, i, n);
668
+ gt(e, a, r, n, !0), c.splice(l, 0, m(a));
669
+ }
670
+ function tt(e, t, n, r) {
671
+ 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);
672
+ if (!l) return D("block_missing", n, `No block with id "${i}".`, i);
673
+ if (We(r, j(l.block), n), s) {
674
+ let e = l.index > 0 ? l.list[l.index - 1] : null, t = O(e) ? e.id ?? null : null;
675
+ h(l.parent, c) && h(t, s.after ?? null) || D("precondition_failed", n, `Block "${i}" has moved since.`, i);
828
676
  }
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);
677
+ 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.");
678
+ let u = qe(e, a, n);
679
+ 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
680
  }
833
- function pt(e, t, n, r) {
681
+ function nt(e, t, n, r) {
834
682
  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);
683
+ if (!o) return D("block_missing", n, `No block with id "${i}".`, i);
684
+ 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);
685
+ }
686
+ function rt(e, t, n, r) {
687
+ let i = M(t, n), { set: a, unset: o } = He(t, n, je), s = N(t, n), c = A(e, i);
688
+ if (!c) return D("block_missing", n, `No block with id "${i}".`, i);
689
+ let l = c.block, u = k(l);
690
+ 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
691
  let d = { ...l };
844
- st(d, a, o), lt({
692
+ Xe(d, a, o), Qe({
845
693
  blocks: [d],
846
694
  settings: e.settings
847
695
  }, n, {
848
696
  blocks: [l],
849
697
  settings: e.settings
850
- }), u && Object.hasOwn(a, "columns") && ot(l, a.columns, n, i), st(l, a, o);
851
- let f = xe(l);
698
+ }), u && Object.hasOwn(a, "columns") && Ye(l, a.columns, n, i), Xe(l, a, o);
699
+ let f = ue(l);
852
700
  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
701
  }
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 = {});
702
+ function it(e, t, n) {
703
+ let { set: r, unset: i } = He(t, n, Me), a = N(t, n);
704
+ 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
705
  let o = e.settings;
858
- a && rt(o, a, n), st(o, r, i);
859
- let s = Ce(e.settings);
706
+ a && Ke(o, a, n), Xe(o, r, i);
707
+ let s = fe(e.settings);
860
708
  h(o.l10n, s.l10n) || (s.l10n ? o.l10n = s.l10n : delete o.l10n);
861
709
  }
862
- function gt(e, t) {
710
+ function at(e, t) {
863
711
  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;
712
+ return oe(n) && n !== "__proto__" && n !== "constructor" && n !== "prototype" || D("invalid_operation", t, "locale must be a language tag."), n;
865
713
  }
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;
714
+ function ot(e, t, n) {
715
+ let r = at(t, n);
716
+ return e.settings.locales?.includes(r) || D("invalid_operation", n, `Locale "${r}" isn't in settings.locales.`), r;
869
717
  }
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);
718
+ function st(e, t, n) {
719
+ let r = at(t, n), i = e.settings.locales ?? [], a = r.toLowerCase(), o = t.position === void 0 ? i.length : t.position;
720
+ (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
721
  }
874
722
  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) : []] : []);
723
+ return e.flatMap((e) => O(e) ? [e, ...k(e) ? Le(e).flatMap(F) : e.type === "wrapper" && Array.isArray(e.children) ? F(e.children) : []] : []);
876
724
  }
877
- function yt(e, t) {
725
+ function ct(e, t) {
878
726
  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);
727
+ return O(n) && O(n[t]) ? n[t] : {};
728
+ }
729
+ function lt(e, t, n) {
730
+ let r = ot(e, t, n), i = N(t, n);
731
+ 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.");
732
+ 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]]] : []));
733
+ !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.`);
734
+ for (let e of [...o, a]) O(e.l10n) && (delete e.l10n[r], Object.keys(e.l10n).length === 0 && delete e.l10n);
887
735
  e.settings.locales.splice(e.settings.locales.indexOf(r), 1), e.settings.locales.length === 0 && delete e.settings.locales;
888
736
  }
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") && [
737
+ function ut(e, t, n) {
738
+ (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
739
  "text",
892
740
  "set",
893
741
  "unset",
894
742
  ...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.");
743
+ ].some((t) => e[t] !== void 0) || D("invalid_operation", t, "A locale update needs text, set, unset or a block's boolean hidden.");
896
744
  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."), {
745
+ 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
746
  text: e.text ?? {},
899
747
  set: e.set ?? {},
900
748
  unset: e.unset ?? [],
@@ -902,22 +750,22 @@ function xt(e, t, n) {
902
750
  expect: r
903
751
  };
904
752
  }
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.`);
753
+ function dt(e, t, n, r) {
754
+ 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
755
  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.`);
756
+ let a = i.split("."), o = r ? Ne : je, s = a.length === 1 ? e : y(e, a.slice(0, -1).join("."));
757
+ (!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
758
  }
911
759
  }
912
- function Ct(e, t, n, r) {
760
+ function ft(e, t, n, r) {
913
761
  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);
762
+ 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);
763
+ t.hidden !== void 0 && !h(e.hidden === !0, t.hidden) && D("precondition_failed", n, "The locale's hidden state has changed since.", r);
916
764
  }
917
765
  }
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 : {};
766
+ function pt(e, t, n) {
767
+ O(e.l10n) || (e.l10n = {});
768
+ let r = e.l10n, i = Object.prototype.hasOwnProperty.call(r, t) ? r[t] : void 0, a = O(i) ? i : {};
921
769
  a !== i && (r[t] = a);
922
770
  for (let e of n.unset) a.text && delete a.text[e], a.set && delete a.set[e];
923
771
  for (let [e, t] of Object.entries(n.text)) a.text ||= {}, a.text[e] = m(t), a.set && delete a.set[e];
@@ -925,63 +773,317 @@ function wt(e, t, n) {
925
773
  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
774
  }
927
775
  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;
776
+ return O(e) ? e.type === "slot" || Array.isArray(e.children) && e.children.some((e) => Array.isArray(e) ? e.some(I) : I(e)) : !1;
929
777
  }
930
- function Tt(e) {
931
- return D(e) && D(e.l10n) && Object.values(e.l10n).some((e) => D(e) && e.hidden === !0);
778
+ function mt(e) {
779
+ return O(e) && O(e.l10n) && Object.values(e.l10n).some((e) => O(e) && e.hidden === !0);
932
780
  }
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));
781
+ function ht(e) {
782
+ 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
783
  }
936
- function Dt(e, t, n, r, i) {
784
+ function gt(e, t, n, r, i) {
937
785
  if (!I(t)) return;
938
786
  let a = n, o = !1;
939
787
  for (; a !== null;) {
940
788
  let t = A(e, "wrapperId" in a ? a.wrapperId : a.sectionId);
941
789
  if (!t) break;
942
- Tt(t.block) && (o = !0), a = t.parent;
790
+ mt(t.block) && (o = !0), a = t.parent;
943
791
  }
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);
792
+ (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
793
  }
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);
794
+ function _t(e, t, n, r) {
795
+ let i = ot(e, t, n), a = M(t, n), o = ut(t, n, !1), s = F(Ie(e)).find((e) => e.id === a);
796
+ 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
797
  }
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);
798
+ function vt(e, t, n) {
799
+ let r = ot(e, t, n), i = ut(t, n, !0), a = e.settings;
800
+ dt(a, i, n, !0), ft(ct(a, r), i.expect, n), pt(a, r, i);
953
801
  }
954
- function At(e, t, n, r) {
802
+ function yt(e, t, n, r) {
955
803
  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);
804
+ 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.");
805
+ Qe(i, n, e);
958
806
  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);
807
+ 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
808
  }
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]);
809
+ function bt(e, t, n, r) {
810
+ let i = at(t, n);
811
+ e.settings.locales?.includes(i) || D("invalid_operation", n, `"${i}" is not a language version of this template.`);
812
+ let a = Ce(e, i);
813
+ 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
814
  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);
815
+ o && D("locked_by_others", n, "Other sessions hold locks on this template.", o.blockId);
968
816
  let s = t.customTextFields;
969
817
  if (s !== void 0) {
970
818
  let t = F(e.blocks);
971
- (!D(s) || Object.getOwnPropertyNames(s).some((e) => {
972
- if (Ke.has(e)) return !0;
819
+ (!O(s) || Object.getOwnPropertyNames(s).some((e) => {
820
+ if (Pe.has(e)) return !0;
973
821
  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);
822
+ return r?.type !== "custom" || !Array.isArray(n) || n.some((e) => typeof e != "string" || !v(e) || !S("custom", e) || typeof y(r, e) != "string");
823
+ })) && D("invalid_operation", n, Fe);
976
824
  }
977
- let c = Re(e, i, t.customTextFields);
825
+ let c = Ee(e, i, t.customTextFields);
978
826
  e.blocks = c.blocks, e.settings = c.settings;
979
827
  }
828
+ var xt = {
829
+ 1: [100],
830
+ 2: [50, 50],
831
+ 3: [
832
+ 33.33,
833
+ 33.33,
834
+ 33.34
835
+ ],
836
+ 4: [
837
+ 25,
838
+ 25,
839
+ 25,
840
+ 25
841
+ ],
842
+ "1-2": [33.33, 66.67],
843
+ "2-1": [66.67, 33.33],
844
+ "1-3": [25, 75],
845
+ "3-1": [75, 25],
846
+ "1-2-1": [
847
+ 25,
848
+ 50,
849
+ 25
850
+ ]
851
+ };
852
+ function St(e) {
853
+ return Object.hasOwn(xt, e) ? xt[e] : [100];
854
+ }
855
+ function Ct(e) {
856
+ return typeof e == "number" && Number.isFinite(e) && e > 0;
857
+ }
858
+ function wt(e) {
859
+ let t = e.columnWidths;
860
+ if (t === void 0) return null;
861
+ if (!Array.isArray(t)) return "value";
862
+ if (t.length !== ke(e.columns)) return "count";
863
+ for (let e = 0; e < t.length; e++) if (!Ct(t[e])) return "value";
864
+ return null;
865
+ }
866
+ var Tt = 0xe8d4a51000, Et = 1e4;
867
+ function Dt(e) {
868
+ let t = e.length, n = 0;
869
+ for (let r = 0; r < t; r++) {
870
+ let t = e[r];
871
+ t > n && (n = t);
872
+ }
873
+ let r = [], i = 0n;
874
+ for (let a = 0; a < t; a++) {
875
+ let t = BigInt(Math.round(e[a] / n * Tt));
876
+ r.push(t), i += t;
877
+ }
878
+ let a = [], o = [], s = BigInt(Et);
879
+ for (let e = 0; e < t; e++) {
880
+ let t = r[e] * s;
881
+ a.push(Number(t / i)), o.push(t % i);
882
+ }
883
+ for (let e = 0; e < t; e++) a[e] < 1 && (a[e] = 1);
884
+ let c = 0;
885
+ for (let e = 0; e < t; e++) c += a[e];
886
+ let l = Et - c, u = Array.from({ length: t }, (e, t) => t);
887
+ if (l > 0) {
888
+ u.sort((e, t) => o[e] === o[t] ? e - t : o[e] > o[t] ? -1 : 1);
889
+ for (let e = 0; e < l; e++) a[u[e]] += 1;
890
+ } else if (l < 0) {
891
+ u.sort((e, t) => o[e] === o[t] ? t - e : o[e] < o[t] ? -1 : 1);
892
+ let e = -l;
893
+ for (let t of u) {
894
+ if (e === 0) break;
895
+ let n = a[t] - 1;
896
+ if (n <= 0) continue;
897
+ let r = Math.min(n, e);
898
+ a[t] = a[t] - r, e -= r;
899
+ }
900
+ }
901
+ return a.map((e) => e / 100);
902
+ }
903
+ function Ot(e) {
904
+ return e.columnWidths !== void 0 && wt(e) === null ? Dt(e.columnWidths) : [...St(e.columns)];
905
+ }
906
+ var kt = [
907
+ "cover",
908
+ "contain",
909
+ "auto"
910
+ ], At = [
911
+ "left",
912
+ "center",
913
+ "right"
914
+ ], jt = [
915
+ "top",
916
+ "center",
917
+ "bottom"
918
+ ];
980
919
  function Mt(e) {
920
+ return {
921
+ url: e,
922
+ size: "cover",
923
+ position: {
924
+ x: "center",
925
+ y: "center"
926
+ },
927
+ repeat: !1
928
+ };
929
+ }
930
+ function Nt(e) {
931
+ let t = "";
932
+ for (let n of e) {
933
+ let e = n.charCodeAt(0);
934
+ t += e < 32 || e === 127 || n === "'" || n === "\"" || n === "\\" ? `%${e.toString(16).toUpperCase().padStart(2, "0")}` : n;
935
+ }
936
+ return t;
937
+ }
938
+ function Pt(e) {
939
+ let t = typeof e?.url == "string" ? e.url.trim() : "";
940
+ if (!e || !t) return null;
941
+ 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";
942
+ return {
943
+ url: Nt(t),
944
+ size: n,
945
+ position: `${i} ${a}`,
946
+ repeat: e.repeat ? "repeat" : "no-repeat"
947
+ };
948
+ }
949
+ var Ft = [
950
+ "top",
951
+ "middle",
952
+ "bottom"
953
+ ];
954
+ function It(e) {
955
+ let t = e.hero;
956
+ if (!t || typeof t != "object") return null;
957
+ if (e.columns !== "1") return {
958
+ applied: !1,
959
+ reason: "columns"
960
+ };
961
+ let n = Pt(e.backgroundImage);
962
+ if (n === null) return {
963
+ applied: !1,
964
+ reason: "image"
965
+ };
966
+ let r = Rt(e.backgroundImage), i = Lt(t.height) ? Math.round(t.height) : "image";
967
+ return i === "image" && r === null ? {
968
+ applied: !1,
969
+ reason: "size"
970
+ } : {
971
+ applied: !0,
972
+ image: n,
973
+ height: i,
974
+ verticalAlign: Ft.includes(t.verticalAlign) ? t.verticalAlign : "middle",
975
+ aspectRatio: r
976
+ };
977
+ }
978
+ function Lt(e) {
979
+ return typeof e == "number" && Number.isFinite(e) && e >= 1;
980
+ }
981
+ function Rt(e) {
982
+ let t = e?.naturalWidth, n = e?.naturalHeight;
983
+ return typeof t != "number" || typeof n != "number" || !Number.isFinite(t) || !Number.isFinite(n) || t <= 0 || n <= 0 ? null : n / t;
984
+ }
985
+ var zt = {
986
+ facebook: {
987
+ color: "#1877F2",
988
+ 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"
989
+ },
990
+ twitter: {
991
+ color: "#000000",
992
+ 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"
993
+ },
994
+ instagram: {
995
+ color: "#E4405F",
996
+ 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"
997
+ },
998
+ linkedin: {
999
+ color: "#0A66C2",
1000
+ 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"
1001
+ },
1002
+ xing: {
1003
+ color: "#006567",
1004
+ 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"
1005
+ },
1006
+ youtube: {
1007
+ color: "#FF0000",
1008
+ 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"
1009
+ },
1010
+ tiktok: {
1011
+ color: "#000000",
1012
+ 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"
1013
+ },
1014
+ pinterest: {
1015
+ color: "#BD081C",
1016
+ 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"
1017
+ },
1018
+ email: {
1019
+ color: "#6B7280",
1020
+ 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"
1021
+ },
1022
+ website: {
1023
+ color: "#6B7280",
1024
+ 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"
1025
+ },
1026
+ whatsapp: {
1027
+ color: "#25D366",
1028
+ 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"
1029
+ },
1030
+ telegram: {
1031
+ color: "#26A5E4",
1032
+ 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"
1033
+ },
1034
+ discord: {
1035
+ color: "#5865F2",
1036
+ 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"
1037
+ },
1038
+ snapchat: {
1039
+ color: "#FFFC00",
1040
+ 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"
1041
+ },
1042
+ reddit: {
1043
+ color: "#FF4500",
1044
+ 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"
1045
+ },
1046
+ github: {
1047
+ color: "#181717",
1048
+ 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"
1049
+ },
1050
+ dribbble: {
1051
+ color: "#EA4C89",
1052
+ 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"
1053
+ },
1054
+ behance: {
1055
+ color: "#1769FF",
1056
+ 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"
1057
+ }
1058
+ }, Bt = {
1059
+ dark: "#1f1f1f",
1060
+ light: "#ffffff"
1061
+ };
1062
+ function Vt(e) {
1063
+ return e === "dark" || e === "light" ? e : void 0;
1064
+ }
1065
+ function Ht(e, t) {
1066
+ let n = Vt(t);
1067
+ return {
1068
+ fill: n ? Bt[n] : zt[e].color,
1069
+ onFill: n === "light" ? Bt.dark : "#ffffff"
1070
+ };
1071
+ }
1072
+ function Ut(e, t) {
1073
+ if (Vt(t) === "dark" && (e === "plain" || e === "outlined")) return {
1074
+ color: Bt.light,
1075
+ opacity: .6,
1076
+ width: 1.4
1077
+ };
1078
+ }
1079
+ function Wt(e) {
1080
+ return e === "plain" ? .84 : .6;
1081
+ }
1082
+ function Gt(e) {
981
1083
  let t = e.children;
982
1084
  return e.type === "section" && Array.isArray(t) ? t : [];
983
1085
  }
984
- function Nt(e, t, n = null) {
1086
+ function Kt(e, t, n = null) {
985
1087
  for (let r = 0; r < e.length; r++) {
986
1088
  let i = e[r];
987
1089
  if (i.id === t) return {
@@ -989,28 +1091,28 @@ function Nt(e, t, n = null) {
989
1091
  parent: n,
990
1092
  after: r > 0 ? e[r - 1].id : null
991
1093
  };
992
- let a = Mt(i);
1094
+ let a = Gt(i);
993
1095
  for (let e = 0; e < a.length; e++) {
994
1096
  if (!Array.isArray(a[e])) continue;
995
- let n = Nt(a[e], t, {
1097
+ let n = Kt(a[e], t, {
996
1098
  sectionId: i.id,
997
1099
  column: e
998
1100
  });
999
1101
  if (n) return n;
1000
1102
  }
1001
1103
  if (i.type === "wrapper" && Array.isArray(i.children)) {
1002
- let e = Nt(i.children, t, { wrapperId: i.id });
1104
+ let e = Kt(i.children, t, { wrapperId: i.id });
1003
1105
  if (e) return e;
1004
1106
  }
1005
1107
  }
1006
1108
  return null;
1007
1109
  }
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);
1110
+ function qt(e, t, n) {
1111
+ let r = Kt(e.blocks, t);
1112
+ if (!r) throw new T("block_missing", n, `No block with id "${t}".`, t);
1011
1113
  return r;
1012
1114
  }
1013
- function Ft(e, t, n) {
1115
+ function Jt(e, t, n) {
1014
1116
  let r = {}, i = [], a = {}, o = [.../* @__PURE__ */ new Set([...Object.keys(t ?? {}), ...n ?? []])];
1015
1117
  for (let n of o) {
1016
1118
  let o = e[n];
@@ -1039,16 +1141,16 @@ function R(e, t, n, r) {
1039
1141
  expect: o
1040
1142
  };
1041
1143
  }
1042
- function It(e) {
1144
+ function Yt(e) {
1043
1145
  let { unset: t, ...n } = R(e, {}, [.../* @__PURE__ */ new Set([...Object.keys(e.text ?? {}), ...Object.keys(e.set ?? {})])], e.hidden === !0);
1044
1146
  return n;
1045
1147
  }
1046
1148
  function z(e) {
1047
- return e.flatMap((e) => [e, ...e.type === "wrapper" ? z(e.children) : Mt(e).flatMap(z)]);
1149
+ return e.flatMap((e) => [e, ...e.type === "wrapper" ? z(e.children) : Gt(e).flatMap(z)]);
1048
1150
  }
1049
- function Lt(e, t) {
1151
+ function Xt(e, t) {
1050
1152
  let n = m(e);
1051
- T(n, [t]);
1153
+ E(n, [t]);
1052
1154
  let r = [], i = (e, t, n) => {
1053
1155
  for (let [i, a] of Object.entries(e.l10n ?? {})) {
1054
1156
  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 +1178,7 @@ function Lt(e, t) {
1076
1178
  }
1077
1179
  return r;
1078
1180
  }
1079
- function Rt(e, t, n) {
1181
+ function Zt(e, t, n) {
1080
1182
  switch (t.op) {
1081
1183
  case "addBlock": return {
1082
1184
  op: "deleteBlock",
@@ -1084,7 +1186,7 @@ function Rt(e, t, n) {
1084
1186
  expect: { block: m(t.block) }
1085
1187
  };
1086
1188
  case "deleteBlock": {
1087
- let r = Pt(e, t.blockId, n);
1189
+ let r = qt(e, t.blockId, n);
1088
1190
  return {
1089
1191
  op: "addBlock",
1090
1192
  block: m(r.block),
@@ -1093,7 +1195,7 @@ function Rt(e, t, n) {
1093
1195
  };
1094
1196
  }
1095
1197
  case "moveBlock": {
1096
- let r = Pt(e, t.blockId, n);
1198
+ let r = qt(e, t.blockId, n);
1097
1199
  return {
1098
1200
  op: "moveBlock",
1099
1201
  blockId: t.blockId,
@@ -1106,23 +1208,23 @@ function Rt(e, t, n) {
1106
1208
  };
1107
1209
  }
1108
1210
  case "updateBlock": {
1109
- let r = Pt(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Ft(r, t.set, t.unset);
1211
+ let r = qt(e, t.blockId, n).block, { set: i, unset: a, expect: o } = Jt(r, t.set, t.unset);
1110
1212
  return [{
1111
1213
  op: "updateBlock",
1112
1214
  blockId: t.blockId,
1113
1215
  ...Object.keys(i).length > 0 ? { set: i } : {},
1114
1216
  ...a.length > 0 ? { unset: a } : {},
1115
1217
  expect: o
1116
- }, ...Lt(e, t)];
1218
+ }, ...Xt(e, t)];
1117
1219
  }
1118
1220
  case "updateSettings": {
1119
- let { set: n, unset: r, expect: i } = Ft(e.settings, t.set, t.unset);
1221
+ let { set: n, unset: r, expect: i } = Jt(e.settings, t.set, t.unset);
1120
1222
  return [{
1121
1223
  op: "updateSettings",
1122
1224
  ...Object.keys(n).length > 0 ? { set: n } : {},
1123
1225
  ...r.length > 0 ? { unset: r } : {},
1124
1226
  expect: i
1125
- }, ...Lt(e, t)];
1227
+ }, ...Xt(e, t)];
1126
1228
  }
1127
1229
  case "addLocale": return {
1128
1230
  op: "removeLocale",
@@ -1141,12 +1243,12 @@ function Rt(e, t, n) {
1141
1243
  op: "updateBlockLocale",
1142
1244
  blockId: r.id,
1143
1245
  locale: t.locale,
1144
- ...It(e)
1246
+ ...Yt(e)
1145
1247
  });
1146
1248
  }
1147
1249
  let r = e.settings.l10n?.[t.locale];
1148
1250
  if (r) {
1149
- let { hidden: e, ...i } = It(r);
1251
+ let { hidden: e, ...i } = Yt(r);
1150
1252
  n.push({
1151
1253
  op: "updateSettingsLocale",
1152
1254
  locale: t.locale,
@@ -1158,7 +1260,7 @@ function Rt(e, t, n) {
1158
1260
  case "updateBlockLocale":
1159
1261
  case "updateSettingsLocale": {
1160
1262
  let n = m(e);
1161
- T(n, [t]);
1263
+ E(n, [t]);
1162
1264
  let r = [.../* @__PURE__ */ new Set([
1163
1265
  ...Object.keys(t.text ?? {}),
1164
1266
  ...Object.keys(t.set ?? {}),
@@ -1190,32 +1292,32 @@ function Rt(e, t, n) {
1190
1292
  };
1191
1293
  }
1192
1294
  }
1193
- function zt(e, t) {
1295
+ function Qt(e, t) {
1194
1296
  let n = m(e), r = [];
1195
1297
  return t.forEach((e, t) => {
1196
1298
  try {
1197
- let i = Rt(n, e, t);
1198
- r.push(...Array.isArray(i) ? [...i].reverse() : [i]), T(n, [e]);
1299
+ let i = Zt(n, e, t);
1300
+ r.push(...Array.isArray(i) ? [...i].reverse() : [i]), E(n, [e]);
1199
1301
  } catch (e) {
1200
- throw e instanceof w ? new w(e.code, t, e.message, e.blockId) : e;
1302
+ throw e instanceof T ? new T(e.code, t, e.message, e.blockId) : e;
1201
1303
  }
1202
1304
  }), r.reverse();
1203
1305
  }
1204
- function Bt(e) {
1306
+ function $t(e) {
1205
1307
  return e === "invalid_operation" ? 422 : e === "content_too_large" ? 413 : 409;
1206
1308
  }
1207
- var Vt = class extends he {
1309
+ var en = class extends ie {
1208
1310
  opIndex;
1209
1311
  holder;
1210
1312
  holders;
1211
1313
  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);
1314
+ 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
1315
  }
1214
1316
  };
1215
- function Ht(e) {
1317
+ function tn(e) {
1216
1318
  return e.type === "section";
1217
1319
  }
1218
- function Ut(e) {
1320
+ function nn(e) {
1219
1321
  return e.type === "custom";
1220
1322
  }
1221
1323
  function B(e) {
@@ -1224,16 +1326,16 @@ function B(e) {
1224
1326
  function V(e) {
1225
1327
  return e.type === "wrapper";
1226
1328
  }
1227
- var Wt = {
1329
+ var rn = {
1228
1330
  content: "<p>Enter your title</p>",
1229
1331
  level: 2,
1230
1332
  textAlign: "left"
1231
- }, Gt = { content: "<p>Enter your text here</p>" }, Kt = {
1333
+ }, an = { content: "<p>Enter your text here</p>" }, on = {
1232
1334
  src: "",
1233
1335
  alt: "",
1234
1336
  width: "full",
1235
1337
  align: "center"
1236
- }, qt = {
1338
+ }, sn = {
1237
1339
  text: "Click Here",
1238
1340
  url: "",
1239
1341
  backgroundColor: "#333333",
@@ -1247,36 +1349,36 @@ var Wt = {
1247
1349
  left: 24
1248
1350
  },
1249
1351
  align: "center"
1250
- }, Jt = {
1352
+ }, cn = {
1251
1353
  lineStyle: "solid",
1252
1354
  color: "#e0e0e0",
1253
1355
  thickness: 1,
1254
1356
  width: "full"
1255
- }, Yt = { columns: "1" }, Xt = {
1357
+ }, ln = { columns: "1" }, un = {
1256
1358
  url: "",
1257
1359
  thumbnailUrl: "",
1258
1360
  alt: "Video",
1259
1361
  width: "full",
1260
1362
  align: "center"
1261
- }, Zt = {
1363
+ }, dn = {
1262
1364
  iconStyle: "solid",
1263
1365
  iconSize: "medium",
1264
1366
  spacing: 10,
1265
1367
  align: "center"
1266
- }, Qt = { height: 24 }, $t = { content: "" }, en = {
1368
+ }, fn = { height: 24 }, pn = { content: "" }, mn = {
1267
1369
  fontSize: 15,
1268
1370
  textAlign: "center",
1269
1371
  separator: "|",
1270
1372
  separatorColor: "#e0e0e0",
1271
1373
  spacing: 10
1272
- }, tn = {
1374
+ }, hn = {
1273
1375
  hasHeaderRow: !0,
1274
1376
  borderColor: "#e0e0e0",
1275
1377
  borderWidth: 1,
1276
1378
  cellPadding: 8,
1277
1379
  fontSize: 15,
1278
1380
  textAlign: "left"
1279
- }, nn = {
1381
+ }, gn = {
1280
1382
  targetDate: "",
1281
1383
  timezone: "UTC",
1282
1384
  showDays: !0,
@@ -1296,21 +1398,21 @@ var Wt = {
1296
1398
  expiredMessage: "This offer has expired",
1297
1399
  expiredImageUrl: "",
1298
1400
  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 = {
1401
+ }, _n = {
1402
+ title: rn,
1403
+ paragraph: an,
1404
+ image: on,
1405
+ button: sn,
1406
+ divider: cn,
1407
+ section: ln,
1408
+ video: un,
1409
+ social: dn,
1410
+ spacer: fn,
1411
+ html: pn,
1412
+ menu: mn,
1413
+ table: hn,
1414
+ countdown: gn
1415
+ }, vn = {
1314
1416
  width: 600,
1315
1417
  backgroundColor: "#ffffff",
1316
1418
  textColor: "#1a1a1a",
@@ -1318,28 +1420,28 @@ var Wt = {
1318
1420
  fontFamily: "Arial",
1319
1421
  locale: "en"
1320
1422
  };
1321
- function on(e) {
1423
+ function yn(e) {
1322
1424
  return typeof e == "object" && !!e && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype;
1323
1425
  }
1324
- function sn(e, t) {
1426
+ function bn(e, t) {
1325
1427
  let n = { ...e };
1326
1428
  for (let r of Object.keys(t)) {
1327
1429
  let i = e[r], a = t[r];
1328
- a !== void 0 && (n[r] = on(i) && on(a) ? sn(i, a) : a);
1430
+ a !== void 0 && (n[r] = yn(i) && yn(a) ? bn(i, a) : a);
1329
1431
  }
1330
1432
  return n;
1331
1433
  }
1332
- function cn(e = "Arial", t) {
1434
+ function xn(e = "Arial", t) {
1333
1435
  return {
1334
1436
  blocks: [],
1335
1437
  settings: {
1336
- ...an,
1438
+ ...vn,
1337
1439
  fontFamily: e,
1338
1440
  ...t
1339
1441
  }
1340
1442
  };
1341
1443
  }
1342
- var ln = [
1444
+ var Sn = [
1343
1445
  "ar",
1344
1446
  "he",
1345
1447
  "iw",
@@ -1353,15 +1455,15 @@ var ln = [
1353
1455
  "ckb",
1354
1456
  "ks"
1355
1457
  ];
1356
- function un(e) {
1458
+ function Cn(e) {
1357
1459
  let t = e?.trim().replace(/_/g, "-").split("-")[0]?.toLowerCase();
1358
- return !!t && ln.includes(t);
1460
+ return !!t && Sn.includes(t);
1359
1461
  }
1360
- function dn(e) {
1361
- return e.direction === "ltr" || e.direction === "rtl" ? e.direction : un(e.locale) ? "rtl" : "ltr";
1462
+ function wn(e) {
1463
+ return e.direction === "ltr" || e.direction === "rtl" ? e.direction : Cn(e.locale) ? "rtl" : "ltr";
1362
1464
  }
1363
- var fn = 2e4, pn = /* @__PURE__ */ new Set(["\"", "'"]);
1364
- function mn(e, t) {
1465
+ var Tn = 2e4, En = /* @__PURE__ */ new Set(["\"", "'"]);
1466
+ function Dn(e, t) {
1365
1467
  let n = null, r = "tag";
1366
1468
  for (let i = t; i < e.length; i++) {
1367
1469
  let t = e[i];
@@ -1369,7 +1471,7 @@ function mn(e, t) {
1369
1471
  else {
1370
1472
  if (r === "beforeValue") {
1371
1473
  if (H(t)) continue;
1372
- if (pn.has(t)) {
1474
+ if (En.has(t)) {
1373
1475
  n = t, r = "tag";
1374
1476
  continue;
1375
1477
  }
@@ -1384,12 +1486,12 @@ function mn(e, t) {
1384
1486
  }
1385
1487
  return -1;
1386
1488
  }
1387
- function hn(e, t) {
1489
+ function On(e, t) {
1388
1490
  let n = null;
1389
1491
  for (let r = t; r < e.length; r++) {
1390
1492
  let t = e[r];
1391
1493
  if (n !== null) t === n && (n = null);
1392
- else if (pn.has(t)) n = t;
1494
+ else if (En.has(t)) n = t;
1393
1495
  else if (t === ">") return {
1394
1496
  end: r,
1395
1497
  nextSpan: -1
@@ -1404,13 +1506,13 @@ function hn(e, t) {
1404
1506
  nextSpan: -1
1405
1507
  };
1406
1508
  }
1407
- function gn(e) {
1509
+ function kn(e) {
1408
1510
  return e !== " " && e !== " " && e !== "\n" && e !== "\r" && e !== "\f" && e !== "=" && e !== ">" && e !== "/";
1409
1511
  }
1410
1512
  function H(e) {
1411
1513
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
1412
1514
  }
1413
- var _n = {
1515
+ var An = {
1414
1516
  AMP: "&",
1415
1517
  COPY: "©",
1416
1518
  GT: ">",
@@ -1677,16 +1779,16 @@ function U(e) {
1677
1779
  let n = t[1] === "x" || t[1] === "X" ? Number.parseInt(t.slice(2), 16) : Number.parseInt(t.slice(1), 10);
1678
1780
  return !Number.isFinite(n) || n < 1 || n > 1114111 || n >= 55296 && n <= 57343 ? e : String.fromCodePoint(n);
1679
1781
  }
1680
- return Object.hasOwn(_n, t) ? _n[t] : e;
1782
+ return Object.hasOwn(An, t) ? An[t] : e;
1681
1783
  }) : e;
1682
1784
  }
1683
- function vn(e, t) {
1785
+ function jn(e, t) {
1684
1786
  let n = t.toLowerCase(), r = 0;
1685
1787
  for (; r < e.length;) {
1686
1788
  for (; r < e.length && (H(e[r]) || e[r] === "/");) r++;
1687
1789
  if (r >= e.length) break;
1688
1790
  let t = r;
1689
- for (; r < e.length && gn(e[r]);) r++;
1791
+ for (; r < e.length && kn(e[r]);) r++;
1690
1792
  let i = e.substring(t, r).toLowerCase();
1691
1793
  if (i === "") {
1692
1794
  r++;
@@ -1696,7 +1798,7 @@ function vn(e, t) {
1696
1798
  if (e[r] !== "=") continue;
1697
1799
  for (r++; r < e.length && H(e[r]);) r++;
1698
1800
  let a = e[r];
1699
- if (pn.has(a)) {
1801
+ if (En.has(a)) {
1700
1802
  let t = r + 1, o = e.indexOf(a, t);
1701
1803
  if (o === -1) return null;
1702
1804
  if (i === n) return U(e.substring(t, o));
@@ -1709,12 +1811,12 @@ function vn(e, t) {
1709
1811
  }
1710
1812
  return null;
1711
1813
  }
1712
- function yn(e, t) {
1713
- return xn(e, t, !0);
1814
+ function Mn(e, t) {
1815
+ return Pn(e, t, !0);
1714
1816
  }
1715
- function bn(e) {
1817
+ function Nn(e) {
1716
1818
  let t = [];
1717
- return xn(e, (n, r, i) => {
1819
+ return Pn(e, (n, r, i) => {
1718
1820
  let a = e.slice(r, i);
1719
1821
  return t.push({
1720
1822
  start: r,
@@ -1723,7 +1825,7 @@ function bn(e) {
1723
1825
  }), a;
1724
1826
  }, !0), t;
1725
1827
  }
1726
- function xn(e, t, n) {
1828
+ function Pn(e, t, n) {
1727
1829
  let r = "", i = 0;
1728
1830
  for (; i < e.length;) {
1729
1831
  let a = e.indexOf("<span", i);
@@ -1736,7 +1838,7 @@ function xn(e, t, n) {
1736
1838
  r += e.substring(i, a + 5), i = a + 5;
1737
1839
  continue;
1738
1840
  }
1739
- let { end: s, nextSpan: c } = hn(e, a + 5);
1841
+ let { end: s, nextSpan: c } = On(e, a + 5);
1740
1842
  if (c !== -1) {
1741
1843
  r += e.substring(i, c), i = c;
1742
1844
  continue;
@@ -1745,12 +1847,12 @@ function xn(e, t, n) {
1745
1847
  r += e.substring(i);
1746
1848
  break;
1747
1849
  }
1748
- let l = e.substring(a + 5, s), u = Cn(l, "data-merge-tag") ?? Cn(l, "data-logic-merge-tag");
1850
+ let l = e.substring(a + 5, s), u = In(l, "data-merge-tag") ?? In(l, "data-logic-merge-tag");
1749
1851
  if (u === null) {
1750
1852
  r += e.substring(i, s + 1), i = s + 1;
1751
1853
  continue;
1752
1854
  }
1753
- let d = Sn(e, s + 1, n);
1855
+ let d = Fn(e, s + 1, n);
1754
1856
  if (d === -1) {
1755
1857
  r += e.substring(i);
1756
1858
  break;
@@ -1759,7 +1861,7 @@ function xn(e, t, n) {
1759
1861
  }
1760
1862
  return r;
1761
1863
  }
1762
- function Sn(e, t, n) {
1864
+ function Fn(e, t, n) {
1763
1865
  if (!n) {
1764
1866
  let n = e.indexOf("</span>", t);
1765
1867
  return n === -1 ? -1 : n + 7;
@@ -1768,7 +1870,7 @@ function Sn(e, t, n) {
1768
1870
  for (; i < e.length;) {
1769
1871
  let t = e.indexOf("<", i);
1770
1872
  if (t === -1) return -1;
1771
- let n = mn(e, t + 1);
1873
+ let n = Dn(e, t + 1);
1772
1874
  if (n === -1) return -1;
1773
1875
  let a = e.startsWith("</span", t), o = e.startsWith("<span", t), s = e[t + (a ? 6 : 5)];
1774
1876
  if ((o || a) && (s === ">" || s === "/" || /\s/.test(s)) && (r += a ? -1 : 1, r === 0)) return n + 1;
@@ -1776,8 +1878,8 @@ function Sn(e, t, n) {
1776
1878
  }
1777
1879
  return -1;
1778
1880
  }
1779
- function Cn(e, t) {
1780
- return vn(e, t);
1881
+ function In(e, t) {
1882
+ return jn(e, t);
1781
1883
  }
1782
1884
  var W = {
1783
1885
  liquid: {
@@ -1811,7 +1913,7 @@ function G(e) {
1811
1913
  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
1914
  });
1813
1915
  }
1814
- function wn(e, t, n) {
1916
+ function Ln(e, t, n) {
1815
1917
  for (let r = n; r < e.length; r++) {
1816
1918
  let n = e.charCodeAt(r);
1817
1919
  if (n === 10 || n === 13 || n === 8232 || n === 8233) return {
@@ -1853,7 +1955,7 @@ function K(e, t, n, r = 0, i = Infinity) {
1853
1955
  let r = u?.lastIndex ?? t + s.length, i = a === "mailchimp" && n === "value" ? {
1854
1956
  close: e.startsWith(c, r) ? r : -1,
1855
1957
  lineBreak: -1
1856
- } : wn(e, c, Math.max(r, t + s.length + +(n === "value")));
1958
+ } : Ln(e, c, Math.max(r, t + s.length + +(n === "value")));
1857
1959
  if (i.lineBreak >= 0) {
1858
1960
  let r = i.lineBreak, o = n === "logic" && (a === "liquid" || a === "ampscript") ? e.lastIndexOf(s, r) : -1;
1859
1961
  p = o > t ? o : r + 1;
@@ -1875,7 +1977,7 @@ function K(e, t, n, r = 0, i = Infinity) {
1875
1977
  }
1876
1978
  return f;
1877
1979
  }
1878
- function Tn(e, t) {
1980
+ function Rn(e, t) {
1879
1981
  let n = G(t);
1880
1982
  if (!n) {
1881
1983
  let n = RegExp(`(${t.value.source}|${t.logic.source})`, "g");
@@ -1903,7 +2005,7 @@ function Tn(e, t) {
1903
2005
  o = t + 2;
1904
2006
  continue;
1905
2007
  }
1906
- let c = wn(e, "|*", a.lastIndex);
2008
+ let c = Ln(e, "|*", a.lastIndex);
1907
2009
  if (c.lineBreak >= 0) {
1908
2010
  o = c.lineBreak + 1;
1909
2011
  continue;
@@ -1925,73 +2027,73 @@ function Tn(e, t) {
1925
2027
  }
1926
2028
  return r;
1927
2029
  }
1928
- function En(e) {
2030
+ function zn(e) {
1929
2031
  return typeof e == "string" && e.trim() !== "" ? e : null;
1930
2032
  }
1931
- function Dn(e) {
2033
+ function Bn(e) {
1932
2034
  return Object.values(W).find((t) => t.value.source === e.value.source) ?? null;
1933
2035
  }
1934
- function On(e) {
1935
- return En(e.opener) ?? Dn(e)?.opener ?? null;
2036
+ function Vn(e) {
2037
+ return zn(e.opener) ?? Bn(e)?.opener ?? null;
1936
2038
  }
1937
- function kn(e) {
1938
- return En(e.closer) ?? Dn(e)?.closer ?? null;
2039
+ function Hn(e) {
2040
+ return zn(e.closer) ?? Bn(e)?.closer ?? null;
1939
2041
  }
1940
- function An(e) {
2042
+ function Un(e) {
1941
2043
  return e ? typeof e == "string" ? W[e] ?? W.liquid : e : W.liquid;
1942
2044
  }
1943
- function jn(e) {
2045
+ function Wn(e) {
1944
2046
  let t = e.source, n = e.flags.replace("g", "");
1945
2047
  return RegExp(`^${t}$`, n);
1946
2048
  }
1947
- function Mn(e, t) {
2049
+ function Gn(e, t) {
1948
2050
  let n = e?.trim() || "";
1949
- return !jn(t.logic).test(n) && jn(t.value).test(n);
2051
+ return !Wn(t.logic).test(n) && Wn(t.value).test(n);
1950
2052
  }
1951
- function Nn(e, t) {
2053
+ function Kn(e, t) {
1952
2054
  let n = t.find((t) => t.value === e);
1953
2055
  return n ? n.label : e;
1954
2056
  }
1955
- function Pn(e, t) {
1956
- return q(e, "data-merge-tag", (e) => Nn(e, t));
2057
+ function qn(e, t) {
2058
+ return q(e, "data-merge-tag", (e) => Kn(e, t));
1957
2059
  }
1958
- function Fn(e, t) {
2060
+ function Jn(e, t) {
1959
2061
  return t.find((t) => t.value === e)?.sample;
1960
2062
  }
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 });
2063
+ function Yn(e, t) {
2064
+ return q(e, "data-merge-tag", (e) => $n(Jn(e, t) ?? Kn(e, t)), { unwrap: (e) => Jn(e, t) !== void 0 });
1963
2065
  }
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) });
2066
+ function Xn(e, t, n) {
2067
+ let r = (e) => t.some((t) => t.value === e) || Gn(e, n), i = (e) => tr(e, n);
2068
+ 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
2069
  }
1968
- function Rn(e) {
2070
+ function Zn(e) {
1969
2071
  return e.some((e) => e.sample !== void 0);
1970
2072
  }
1971
- function zn(e, t) {
2073
+ function Qn(e, t) {
1972
2074
  if (!e) return e;
1973
2075
  let n = e;
1974
2076
  for (let e of t) e.sample !== void 0 && (n = n.split(e.value).join(e.sample));
1975
2077
  return n;
1976
2078
  }
1977
- function Bn(e) {
2079
+ function $n(e) {
1978
2080
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
1979
2081
  }
1980
- function Vn(e, t) {
2082
+ function er(e, t) {
1981
2083
  if (!e) return !1;
1982
2084
  if (G(t)) return K(e, t, "value", 0, 1).length > 0 || K(e, t, "logic", 0, 1).length > 0;
1983
2085
  let n = new RegExp(t.value.source, t.value.flags), r = new RegExp(t.logic.source, t.logic.flags);
1984
2086
  return n.test(e) || r.test(e);
1985
2087
  }
1986
- function Hn(e, t) {
1987
- return jn(t.logic).test(e?.trim() || "");
2088
+ function tr(e, t) {
2089
+ return Wn(t.logic).test(e?.trim() || "");
1988
2090
  }
1989
- function Un(e, t) {
2091
+ function nr(e, t) {
1990
2092
  let n = new RegExp(t.logic.source, t.logic.flags.replace("g", "")), r = e.match(n);
1991
2093
  return r && r[1] ? r[1].toUpperCase() : e;
1992
2094
  }
1993
- function Wn(e, t) {
1994
- return q(e, "data-logic-merge-tag", (e) => Un(e, t));
2095
+ function rr(e, t) {
2096
+ return q(e, "data-logic-merge-tag", (e) => nr(e, t));
1995
2097
  }
1996
2098
  function q(e, t, n, r) {
1997
2099
  let i = "", a = 0;
@@ -2006,7 +2108,7 @@ function q(e, t, n, r) {
2006
2108
  i += e.substring(a, o + 5), a = o + 5;
2007
2109
  continue;
2008
2110
  }
2009
- let { end: c, nextSpan: l } = hn(e, o + 5);
2111
+ let { end: c, nextSpan: l } = On(e, o + 5);
2010
2112
  if (l !== -1) {
2011
2113
  i += e.substring(a, l), a = l;
2012
2114
  continue;
@@ -2015,7 +2117,7 @@ function q(e, t, n, r) {
2015
2117
  i += e.substring(a);
2016
2118
  break;
2017
2119
  }
2018
- let u = vn(e.substring(o + 5, c), t);
2120
+ let u = jn(e.substring(o + 5, c), t);
2019
2121
  if (u === null) {
2020
2122
  i += e.substring(a, c + 1), a = c + 1;
2021
2123
  continue;
@@ -2030,14 +2132,14 @@ function q(e, t, n, r) {
2030
2132
  }
2031
2133
  return i;
2032
2134
  }
2033
- var Gn = {
2135
+ var ir = {
2034
2136
  title: ["content"],
2035
2137
  paragraph: ["content"]
2036
2138
  };
2037
- function Kn(e) {
2139
+ function ar(e) {
2038
2140
  let t = [], n = /<[a-z][\w:-]*\b/gi;
2039
2141
  for (; n.exec(e);) {
2040
- let r = mn(e, n.lastIndex);
2142
+ let r = Dn(e, n.lastIndex);
2041
2143
  if (r < 0) break;
2042
2144
  let i = n.lastIndex, a = e.slice(i, r), o = /[^\s"'<>/=]+\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+))/g;
2043
2145
  for (let e; e = o.exec(a);) {
@@ -2051,8 +2153,8 @@ function Kn(e) {
2051
2153
  }
2052
2154
  return t;
2053
2155
  }
2054
- function qn(e, t, n) {
2055
- let r = n === "html" ? bn(e) : [], i = n === "html" ? Kn(e) : [], a = r.map((e) => ({
2156
+ function or(e, t, n) {
2157
+ let r = n === "html" ? Nn(e) : [], i = n === "html" ? ar(e) : [], a = r.map((e) => ({
2056
2158
  ...e,
2057
2159
  attribute: !1
2058
2160
  })), o = 0, s = G(t) !== void 0, c = (n, r) => {
@@ -2087,7 +2189,7 @@ function qn(e, t, n) {
2087
2189
  for (let e of r) c(l, e.start), l = e.end;
2088
2190
  return c(l, e.length), a.sort((e, t) => e.start - t.start);
2089
2191
  }
2090
- function Jn(e) {
2192
+ function sr(e) {
2091
2193
  if (!e.includes("&")) return { text: e };
2092
2194
  let t = "", n = [0], r = 0, i = (i) => {
2093
2195
  for (t += e.slice(r, i); r < i;) n.push(++r);
@@ -2104,17 +2206,17 @@ function Jn(e) {
2104
2206
  offsets: n
2105
2207
  };
2106
2208
  }
2107
- var J = /* @__PURE__ */ new Map(), Yn = 32;
2108
- function Xn(e) {
2209
+ var J = /* @__PURE__ */ new Map(), cr = 32;
2210
+ function lr(e) {
2109
2211
  let t = JSON.stringify(e), n = J.get(t);
2110
2212
  if (n === void 0) {
2111
2213
  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);
2214
+ 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
2215
  }
2114
2216
  return n;
2115
2217
  }
2116
- function Zn(e, t, n) {
2117
- let r = n.length ? Xn(n) : null;
2218
+ function ur(e, t, n) {
2219
+ let r = n.length ? lr(n) : null;
2118
2220
  if (!r) return [];
2119
2221
  let i = [];
2120
2222
  if (t === "text") i.push({
@@ -2123,7 +2225,7 @@ function Zn(e, t, n) {
2123
2225
  attribute: !1
2124
2226
  });
2125
2227
  else {
2126
- i.push(...Kn(e).map((e) => ({
2228
+ i.push(...ar(e).map((e) => ({
2127
2229
  ...e,
2128
2230
  attribute: !0
2129
2231
  })));
@@ -2134,7 +2236,7 @@ function Zn(e, t, n) {
2134
2236
  end: r.index,
2135
2237
  attribute: !1
2136
2238
  });
2137
- let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) : mn(e, t.lastIndex);
2239
+ let a = r[0] === "<!--" ? e.indexOf("-->", t.lastIndex) : Dn(e, t.lastIndex);
2138
2240
  if (a < 0) return [];
2139
2241
  n = a + (r[0] === "<!--" ? 3 : 1), t.lastIndex = n;
2140
2242
  }
@@ -2147,7 +2249,7 @@ function Zn(e, t, n) {
2147
2249
  let a = [];
2148
2250
  for (let n of i) {
2149
2251
  r.lastIndex = 0;
2150
- let i = e.slice(n.start, n.end), o = t === "html" ? Jn(i) : {
2252
+ let i = e.slice(n.start, n.end), o = t === "html" ? sr(i) : {
2151
2253
  text: i,
2152
2254
  offsets: void 0
2153
2255
  };
@@ -2166,42 +2268,42 @@ function Zn(e, t, n) {
2166
2268
  }
2167
2269
  return a;
2168
2270
  }
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));
2271
+ function dr(e, t, n, r) {
2272
+ 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
2273
  return [...i, ...a].sort((e, t) => e.start - t.start);
2172
2274
  }
2173
- function $n(e, t, n) {
2275
+ function fr(e, t, n) {
2174
2276
  let r = "", i = 0;
2175
2277
  return t.forEach((t, a) => {
2176
2278
  r += e.slice(i, t.start), r += t.attribute ? `__x${n[a]}__` : `<x id="${n[a]}"/>`, i = t.end;
2177
2279
  }), r + e.slice(i);
2178
2280
  }
2179
- function er(e, t, n, r) {
2180
- let i = Qn(e, t, n, r);
2281
+ function pr(e, t, n, r) {
2282
+ let i = dr(e, t, n, r);
2181
2283
  return {
2182
- text: $n(e, i, i.map((e, t) => t + 1)),
2284
+ text: fr(e, i, i.map((e, t) => t + 1)),
2183
2285
  tokens: i.map((e) => e.markup)
2184
2286
  };
2185
2287
  }
2186
- function tr(e, t) {
2288
+ function mr(e, t) {
2187
2289
  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
2290
  let s = Number(i ?? a ?? o);
2189
2291
  return (s < 1 || s > t.length || n.has(s)) && (r = !1), n.add(s), t[s - 1] ?? "";
2190
2292
  });
2191
2293
  return r && n.size === t.length ? i : null;
2192
2294
  }
2193
- function nr(e, t, n, r, i) {
2194
- let a = Qn(e, n, r, i), o = /* @__PURE__ */ new Set(), s = (e) => {
2295
+ function hr(e, t, n, r, i) {
2296
+ let a = dr(e, n, r, i), o = /* @__PURE__ */ new Set(), s = (e) => {
2195
2297
  let n = t.findIndex((t, n) => !o.has(n) && e(t));
2196
2298
  return n >= 0 && o.add(n), n;
2197
2299
  }, c = a.map((e) => s((t) => t === e.markup));
2198
2300
  return a.forEach((e, t) => {
2199
2301
  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));
2302
+ }), 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
2303
  }
2202
- function rr(e, t, n = []) {
2304
+ function gr(e, t, n = []) {
2203
2305
  let r = /* @__PURE__ */ new Map();
2204
- if (t === C(e) || !e.settings.locales?.includes(t)) return r;
2306
+ if (t === w(e) || !e.settings.locales?.includes(t)) return r;
2205
2307
  let i = (e, n, i, a) => {
2206
2308
  let o = n.l10n?.[t];
2207
2309
  for (let t of i) {
@@ -2212,7 +2314,7 @@ function rr(e, t, n = []) {
2212
2314
  target: e,
2213
2315
  path: t,
2214
2316
  source: i,
2215
- format: a && Gn[a]?.includes(t) ? "html" : "text",
2317
+ format: a && ir[a]?.includes(t) ? "html" : "text",
2216
2318
  text: o?.text?.[t]
2217
2319
  });
2218
2320
  }
@@ -2227,16 +2329,16 @@ function rr(e, t, n = []) {
2227
2329
  };
2228
2330
  return a(e.blocks), i({ kind: "settings" }, e.settings, g), r;
2229
2331
  }
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)) {
2332
+ function _r(e, t, n) {
2333
+ let r = n.only === "all" ? null : Se(e, t, n.definitions), i = r && /* @__PURE__ */ new Set([...r.missing, ...r.stale]), a = [], o = {};
2334
+ for (let [r, s] of gr(e, t, n.definitions)) {
2233
2335
  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;
2336
+ 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
2337
  a.push({
2236
2338
  id: r,
2237
2339
  format: s.format,
2238
2340
  source: e.text,
2239
- sourceHash: S(s.source),
2341
+ sourceHash: C(s.source),
2240
2342
  ...t == null ? {} : { text: t }
2241
2343
  }), o[r] = e.tokens;
2242
2344
  }
@@ -2245,8 +2347,8 @@ function ir(e, t, n) {
2245
2347
  tokens: o
2246
2348
  };
2247
2349
  }
2248
- function ar(e, t, n, r) {
2249
- let i = rr(e, t, r.definitions), a = /* @__PURE__ */ new Map(), o = (e) => {
2350
+ function vr(e, t, n, r) {
2351
+ let i = gr(e, t, r.definitions), a = /* @__PURE__ */ new Map(), o = (e) => {
2250
2352
  for (let t of e) if (a.set(t.id, t), t.type === "section") for (let e of t.children) o(e);
2251
2353
  else t.type === "wrapper" && o(t.children);
2252
2354
  };
@@ -2262,8 +2364,8 @@ function ar(e, t, n, r) {
2262
2364
  });
2263
2365
  continue;
2264
2366
  }
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) {
2367
+ let o = Object.hasOwn(r.tokens, t.id) ? r.tokens[t.id] : void 0, u = o ? mr(t.text, o) : null;
2368
+ if (!o || u === null || hr(u, o, r.syntax, n.format, r) === null) {
2267
2369
  l.push({
2268
2370
  id: t.id,
2269
2371
  reason: "tags_changed"
@@ -2292,20 +2394,20 @@ function ar(e, t, n, r) {
2292
2394
  rejected: l
2293
2395
  };
2294
2396
  }
2295
- var or = 1e7, sr = 2e3;
2296
- function cr(e) {
2397
+ var yr = 1e7, br = 2e3;
2398
+ function xr(e) {
2297
2399
  return new e.Liquid({
2298
2400
  strictVariables: !1,
2299
2401
  strictFilters: !1,
2300
2402
  outputEscape: "escape",
2301
- memoryLimit: or,
2302
- renderLimit: sr,
2403
+ memoryLimit: yr,
2404
+ renderLimit: br,
2303
2405
  templates: {}
2304
2406
  });
2305
2407
  }
2306
2408
  function Y(e, t) {
2307
2409
  let n = m(e);
2308
- return !t || Object.keys(t).length === 0 ? n : sn(n, t);
2410
+ return !t || Object.keys(t).length === 0 ? n : bn(n, t);
2309
2411
  }
2310
2412
  function X(e) {
2311
2413
  return e === void 0 ? void 0 : m(e);
@@ -2313,7 +2415,7 @@ function X(e) {
2313
2415
  function Z() {
2314
2416
  return crypto.randomUUID();
2315
2417
  }
2316
- function lr(e = 0) {
2418
+ function Sr(e = 0) {
2317
2419
  return {
2318
2420
  top: e,
2319
2421
  right: e,
@@ -2322,100 +2424,100 @@ function lr(e = 0) {
2322
2424
  };
2323
2425
  }
2324
2426
  function Q(e = 10) {
2325
- return { padding: lr(e) };
2427
+ return { padding: Sr(e) };
2326
2428
  }
2327
- function ur(e = {}) {
2429
+ function Cr(e = {}) {
2328
2430
  return Y({
2329
2431
  id: Z(),
2330
2432
  type: "title",
2331
- ...Wt,
2433
+ ...rn,
2332
2434
  styles: Q()
2333
2435
  }, e);
2334
2436
  }
2335
- function dr(e = {}) {
2437
+ function wr(e = {}) {
2336
2438
  return Y({
2337
2439
  id: Z(),
2338
2440
  type: "paragraph",
2339
- ...Gt,
2441
+ ...an,
2340
2442
  styles: Q()
2341
2443
  }, e);
2342
2444
  }
2343
- function fr(e = {}) {
2445
+ function Tr(e = {}) {
2344
2446
  return Y({
2345
2447
  id: Z(),
2346
2448
  type: "image",
2347
- ...Kt,
2449
+ ...on,
2348
2450
  styles: Q()
2349
2451
  }, e);
2350
2452
  }
2351
- function pr(e = {}) {
2453
+ function Er(e = {}) {
2352
2454
  return Y({
2353
2455
  id: Z(),
2354
2456
  type: "button",
2355
- ...qt,
2457
+ ...sn,
2356
2458
  styles: Q()
2357
2459
  }, e);
2358
2460
  }
2359
- function mr(e = {}) {
2461
+ function Dr(e = {}) {
2360
2462
  return Y({
2361
2463
  id: Z(),
2362
2464
  type: "divider",
2363
- ...Jt,
2465
+ ...cn,
2364
2466
  styles: Q(20)
2365
2467
  }, e);
2366
2468
  }
2367
- function hr(e = {}) {
2469
+ function Or(e = {}) {
2368
2470
  return Y({
2369
2471
  id: Z(),
2370
2472
  type: "section",
2371
- ...Yt,
2473
+ ...ln,
2372
2474
  children: [[]],
2373
2475
  styles: Q(20)
2374
2476
  }, e);
2375
2477
  }
2376
- function gr(e = {}) {
2478
+ function kr(e = {}) {
2377
2479
  return Y({
2378
2480
  id: Z(),
2379
2481
  type: "video",
2380
- ...Xt,
2482
+ ...un,
2381
2483
  styles: Q()
2382
2484
  }, e);
2383
2485
  }
2384
- function _r(e = {}) {
2486
+ function Ar(e = {}) {
2385
2487
  return Y({
2386
2488
  id: Z(),
2387
2489
  type: "social",
2388
2490
  icons: [],
2389
- ...Zt,
2491
+ ...dn,
2390
2492
  styles: Q()
2391
2493
  }, e);
2392
2494
  }
2393
- function vr(e = {}) {
2495
+ function jr(e = {}) {
2394
2496
  return Y({
2395
2497
  id: Z(),
2396
2498
  type: "spacer",
2397
- ...Qt,
2499
+ ...fn,
2398
2500
  styles: Q(0)
2399
2501
  }, e);
2400
2502
  }
2401
- function yr(e = {}) {
2503
+ function Mr(e = {}) {
2402
2504
  return Y({
2403
2505
  id: Z(),
2404
2506
  type: "html",
2405
- ...$t,
2507
+ ...pn,
2406
2508
  styles: Q()
2407
2509
  }, e);
2408
2510
  }
2409
- function br(e = {}) {
2511
+ function Nr(e = {}) {
2410
2512
  return Y({
2411
2513
  id: Z(),
2412
2514
  type: "menu",
2413
2515
  items: [],
2414
- ...en,
2516
+ ...mn,
2415
2517
  styles: Q()
2416
2518
  }, e);
2417
2519
  }
2418
- function xr(e, t) {
2520
+ function Pr(e, t) {
2419
2521
  return Array.from({ length: t }, () => ({
2420
2522
  id: Z(),
2421
2523
  cells: Array.from({ length: e }, () => ({
@@ -2424,29 +2526,29 @@ function xr(e, t) {
2424
2526
  }))
2425
2527
  }));
2426
2528
  }
2427
- function Sr(e = {}) {
2529
+ function Fr(e = {}) {
2428
2530
  return Y({
2429
2531
  id: Z(),
2430
2532
  type: "table",
2431
- rows: xr(3, 3),
2432
- ...tn,
2533
+ rows: Pr(3, 3),
2534
+ ...hn,
2433
2535
  styles: Q()
2434
2536
  }, e);
2435
2537
  }
2436
- function Cr(e = {}) {
2538
+ function Ir(e = {}) {
2437
2539
  return Y({
2438
2540
  id: Z(),
2439
2541
  type: "countdown",
2440
- ...nn,
2542
+ ...gn,
2441
2543
  styles: Q()
2442
2544
  }, e);
2443
2545
  }
2444
- function wr(e) {
2546
+ function Lr(e) {
2445
2547
  return e.type === "repeatable" ? e.default ?? [] : e.type === "boolean" ? e.default ?? !1 : e.type === "number" ? e.default ?? 0 : e.default ?? "";
2446
2548
  }
2447
- function Tr(e) {
2549
+ function Rr(e) {
2448
2550
  let t = {};
2449
- for (let n of e.fields) t[n.key] = X(wr(n));
2551
+ for (let n of e.fields) t[n.key] = X(Lr(n));
2450
2552
  let n = Y(Q(), X(e.defaultStyles));
2451
2553
  return {
2452
2554
  id: Z(),
@@ -2457,14 +2559,14 @@ function Tr(e) {
2457
2559
  ...e.dataSource ? { dataSourceFetched: !1 } : {}
2458
2560
  };
2459
2561
  }
2460
- function Er() {
2562
+ function zr() {
2461
2563
  return {
2462
2564
  id: Z(),
2463
2565
  type: "slot",
2464
2566
  styles: Q(0)
2465
2567
  };
2466
2568
  }
2467
- function Dr(e = {}) {
2569
+ function Br(e = {}) {
2468
2570
  return Y({
2469
2571
  id: Z(),
2470
2572
  type: "wrapper",
@@ -2472,27 +2574,27 @@ function Dr(e = {}) {
2472
2574
  styles: Q(0)
2473
2575
  }, e);
2474
2576
  }
2475
- function Or(e, t) {
2577
+ function Vr(e, t) {
2476
2578
  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));
2579
+ case "section": return Or(X(t?.section));
2580
+ case "title": return Cr(X(t?.title));
2581
+ case "paragraph": return wr(X(t?.paragraph));
2582
+ case "image": return Tr(X(t?.image));
2583
+ case "button": return Er(X(t?.button));
2584
+ case "divider": return Dr(X(t?.divider));
2585
+ case "video": return kr(X(t?.video));
2586
+ case "social": return Ar(X(t?.social));
2587
+ case "spacer": return jr(X(t?.spacer));
2588
+ case "html": return Mr(X(t?.html));
2589
+ case "menu": return Nr(X(t?.menu));
2590
+ case "table": return Fr(X(t?.table));
2591
+ case "countdown": return Ir(X(t?.countdown));
2490
2592
  case "slot": throw Error("[Templatical] slot cannot be inserted into content. Use createSlotBlock() to build a layout.");
2491
2593
  case "wrapper": throw Error("[Templatical] wrapper cannot be inserted into content. Use createWrapperBlock() to build a layout.");
2492
2594
  default: throw Error(`Unknown block type: ${e}`);
2493
2595
  }
2494
2596
  }
2495
- function kr(e, t) {
2597
+ function Hr(e, t) {
2496
2598
  let n = e.l10n;
2497
2599
  if (!n || t.size === 0) return;
2498
2600
  let r = (n) => {
@@ -2507,7 +2609,7 @@ function kr(e, t) {
2507
2609
  n && (e[t] = Object.fromEntries(Object.entries(n).map(([e, t]) => [r(e), t])));
2508
2610
  }
2509
2611
  }
2510
- function Ar(e) {
2612
+ function Ur(e) {
2511
2613
  let t = JSON.parse(JSON.stringify(e)), n = (e) => {
2512
2614
  e.id = Z();
2513
2615
  let t = /* @__PURE__ */ new Map(), r = (e, n) => {
@@ -2524,54 +2626,54 @@ function Ar(e) {
2524
2626
  if (e.type === "social") for (let t of e.icons) r(t, "icons");
2525
2627
  if (e.type === "section") for (let t of e.children) for (let e of t) n(e);
2526
2628
  if (e.type === "wrapper") for (let t of e.children) n(t);
2527
- kr(e, t);
2629
+ Hr(e, t);
2528
2630
  };
2529
2631
  return n(t), t;
2530
2632
  }
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";
2633
+ 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
2634
  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);
2635
+ 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
2636
  else V(a) && $(a.children, t, a, r, !0);
2535
2637
  }
2536
- function Rr(e) {
2638
+ function Zr(e) {
2537
2639
  let t = 0;
2538
2640
  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);
2641
+ if (i && tn(e) && e.wrapper) throw Error(Yr);
2642
+ if (B(e) && (t += 1, r)) throw Error(Gr);
2541
2643
  if (V(e)) {
2542
- if (r) throw Error(Mr);
2543
- if (e.children.some(V)) throw Error(Nr);
2644
+ if (r) throw Error(Gr);
2645
+ if (e.children.some(V)) throw Error(Kr);
2544
2646
  }
2545
- }), t !== 1) throw Error(jr);
2647
+ }), t !== 1) throw Error(Wr);
2546
2648
  }
2547
- function zr(e) {
2649
+ function Qr(e) {
2548
2650
  $(e.blocks, (e) => {
2549
- if (B(e)) throw Error(Fr);
2651
+ if (B(e)) throw Error(Jr);
2550
2652
  });
2551
2653
  }
2552
- function Br(e) {
2654
+ function $r(e) {
2553
2655
  $(e.blocks, (e) => {
2554
- if (V(e)) throw Error(Lr);
2656
+ if (V(e)) throw Error(Xr);
2555
2657
  });
2556
2658
  }
2557
- function Vr(e) {
2659
+ function ei(e) {
2558
2660
  let t = !1;
2559
2661
  return $(e.blocks, (e, n) => {
2560
2662
  B(e) && n !== null && V(n) && (t = !0);
2561
2663
  }), t;
2562
2664
  }
2563
- function Hr(e) {
2665
+ function ti(e) {
2564
2666
  if (B(e)) return e;
2565
2667
  if (V(e)) {
2566
- let t = Ar({
2668
+ let t = Ur({
2567
2669
  ...e,
2568
2670
  children: []
2569
2671
  });
2570
- return t.children = e.children.map(Hr), t;
2672
+ return t.children = e.children.map(ti), t;
2571
2673
  }
2572
- return Ar(e);
2674
+ return Ur(e);
2573
2675
  }
2574
- function Ur(e) {
2676
+ function ni(e) {
2575
2677
  for (let t = 0; t < e.length; t++) {
2576
2678
  let n = e[t];
2577
2679
  if (B(n)) return {
@@ -2579,23 +2681,23 @@ function Ur(e) {
2579
2681
  index: t
2580
2682
  };
2581
2683
  if (V(n)) {
2582
- let e = Ur(n.children);
2684
+ let e = ni(n.children);
2583
2685
  if (e) return e;
2584
2686
  }
2585
2687
  }
2586
2688
  return null;
2587
2689
  }
2588
- function Wr(e) {
2589
- for (let t of e) if (Ht(t)) {
2690
+ function ri(e) {
2691
+ for (let t of e) if (tn(t)) {
2590
2692
  if (t.wrapper) return !0;
2591
- for (let e of t.children) if (Wr(e)) return !0;
2693
+ for (let e of t.children) if (ri(e)) return !0;
2592
2694
  }
2593
2695
  return !1;
2594
2696
  }
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);
2697
+ function ii(e, t) {
2698
+ if (Zr(e), Qr(t), $r(t), ei(e) && ri(t.blocks)) throw Error(qr);
2699
+ let n = e.blocks.map(ti), r = ni(n);
2700
+ if (!r) throw Error(Wr);
2599
2701
  return r.parent.splice(r.index, 1, ...m(t.blocks)), {
2600
2702
  blocks: n,
2601
2703
  settings: {
@@ -2604,7 +2706,7 @@ function Gr(e, t) {
2604
2706
  }
2605
2707
  };
2606
2708
  }
2607
- var Kr = Object.freeze([
2709
+ var ai = Object.freeze([
2608
2710
  "http",
2609
2711
  "https",
2610
2712
  "mailto",
@@ -2620,37 +2722,37 @@ Object.freeze([
2620
2722
  "data",
2621
2723
  "vbscript"
2622
2724
  ]);
2623
- function qr(e) {
2725
+ function oi(e) {
2624
2726
  return e.replace(/[\t\n\r]/g, "").replace(/^[\u0000-\u0020]+/, "").trimEnd();
2625
2727
  }
2626
- function Jr(e) {
2627
- let t = /^([a-z][a-z0-9+.-]*):/i.exec(qr(e));
2728
+ function si(e) {
2729
+ let t = /^([a-z][a-z0-9+.-]*):/i.exec(oi(e));
2628
2730
  return t ? t[1].toLowerCase() : null;
2629
2731
  }
2630
- var Yr = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i, Xr = Object.freeze([
2732
+ var ci = /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i, li = Object.freeze([
2631
2733
  "href",
2632
2734
  "xlink:href",
2633
2735
  "background",
2634
2736
  "poster",
2635
2737
  "src"
2636
- ]), Zr = Object.freeze([
2738
+ ]), ui = Object.freeze([
2637
2739
  "srcdoc",
2638
2740
  "ping",
2639
2741
  "formaction",
2640
2742
  "action"
2641
2743
  ]);
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);
2744
+ function di(e, t) {
2745
+ let n = oi(e), r = si(n);
2746
+ return r === null || ai.some((e) => e === r) ? !0 : t.toLowerCase() === "src" && ci.test(n);
2645
2747
  }
2646
- var $r = /<\/?p\b[^<>]*>/gi, ei = /<p\b([^<>]*)>\s*<\/p>/gi;
2647
- function ti(e) {
2648
- return e.replace($r, "").trim() === "";
2748
+ var fi = /<\/?p\b[^<>]*>/gi, pi = /<p\b([^<>]*)>\s*<\/p>/gi;
2749
+ function mi(e) {
2750
+ return e.replace(fi, "").trim() === "";
2649
2751
  }
2650
- function ni(e) {
2651
- return ti(e) ? e : e.replace(ei, "<p$1>&nbsp;</p>");
2752
+ function hi(e) {
2753
+ return mi(e) ? e : e.replace(pi, "<p$1>&nbsp;</p>");
2652
2754
  }
2653
- var ri = {
2755
+ var gi = {
2654
2756
  arial: "Arial, sans-serif",
2655
2757
  helvetica: "Helvetica, sans-serif",
2656
2758
  georgia: "Georgia, serif",
@@ -2659,13 +2761,13 @@ var ri = {
2659
2761
  "trebuchet ms": "'Trebuchet MS', sans-serif",
2660
2762
  "courier new": "'Courier New', monospace",
2661
2763
  tahoma: "Tahoma, sans-serif"
2662
- }, ii = /* @__PURE__ */ new Set([
2764
+ }, _i = /* @__PURE__ */ new Set([
2663
2765
  "inherit",
2664
2766
  "initial",
2665
2767
  "unset",
2666
2768
  "revert",
2667
2769
  "revert-layer"
2668
- ]), ai = /* @__PURE__ */ new Set([
2770
+ ]), vi = /* @__PURE__ */ new Set([
2669
2771
  "serif",
2670
2772
  "sans-serif",
2671
2773
  "monospace",
@@ -2680,14 +2782,14 @@ var ri = {
2680
2782
  "math",
2681
2783
  "fangsong"
2682
2784
  ]);
2683
- function oi(e) {
2785
+ function yi(e) {
2684
2786
  return e === " " || e === " " || e === "\n" || e === "\r" || e === "\f";
2685
2787
  }
2686
- function si(e) {
2788
+ function bi(e) {
2687
2789
  if (typeof e != "string") return [];
2688
2790
  let t = e.replace(/!\s*important\s*$/i, ""), n = [], r = 0;
2689
2791
  for (;;) {
2690
- for (; r < t.length && oi(t[r]);) r++;
2792
+ for (; r < t.length && yi(t[r]);) r++;
2691
2793
  if (r >= t.length) return [];
2692
2794
  let e = t[r];
2693
2795
  if (e === "\"" || e === "'") {
@@ -2704,7 +2806,7 @@ function si(e) {
2704
2806
  }
2705
2807
  }
2706
2808
  if (!o) return [];
2707
- for (; a < t.length && oi(t[a]);) a++;
2809
+ for (; a < t.length && yi(t[a]);) a++;
2708
2810
  if (a < t.length && t[a] !== ",") return [];
2709
2811
  n.push({
2710
2812
  name: i,
@@ -2712,7 +2814,7 @@ function si(e) {
2712
2814
  }), r = a;
2713
2815
  } else {
2714
2816
  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 [];
2817
+ if (a === "" || a.includes("\"") || a.includes("'") || _i.has(a.toLowerCase())) return [];
2716
2818
  n.push({
2717
2819
  name: a,
2718
2820
  quoted: !1
@@ -2722,26 +2824,26 @@ function si(e) {
2722
2824
  r++;
2723
2825
  }
2724
2826
  }
2725
- function ci(e) {
2827
+ function xi(e) {
2726
2828
  return `'${e.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
2727
2829
  }
2728
- function li(e) {
2729
- return !e.quoted && ai.has(e.name.toLowerCase());
2830
+ function Si(e) {
2831
+ return !e.quoted && vi.has(e.name.toLowerCase());
2730
2832
  }
2731
- function ui(e) {
2732
- return si(e)[0]?.name ?? "";
2833
+ function Ci(e) {
2834
+ return bi(e)[0]?.name ?? "";
2733
2835
  }
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);
2836
+ function wi(e, t) {
2837
+ 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
2838
  if (i) return n(i);
2737
- let a = si(e);
2839
+ let a = bi(e);
2738
2840
  if (a.length !== 1) return e;
2739
2841
  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}`);
2842
+ return c ? n(c) : gi[s] || (Si(o) ? e : `${xi(o.name)}, ${t.defaultFallback}`);
2741
2843
  }
2742
- function fi(e) {
2844
+ function Ti(e) {
2743
2845
  if (typeof e != "object" || !e) return !1;
2744
2846
  let t = e;
2745
2847
  return Array.isArray(t.blocks);
2746
2848
  }
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 };
2849
+ 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 };