@templatical/editor 0.51.1 → 0.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-DawbUywc.js} +16 -17
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-9ySsXOTU.js} +25 -26
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-CupPhmsN.js} +141 -143
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-DqT4PgQ0.js} +6 -8
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-28agTycW.js} +66 -67
- package/dist/BlockIssueBadge-BxpDy3u-.js +33 -0
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-B-4bmJ3t.js} +26 -27
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-QI82yF54.js} +4 -5
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BKJaLkUN.js} +52 -53
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-CTw4JThq.js} +12 -13
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-CXQqN3VP.js} +16 -17
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-DwwFuh1h.js} +3 -5
- package/dist/CommentsSidebar-9ZfiC2DO.js +500 -0
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-CU2yTWtF.js} +21 -22
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-BqoYzf_6.js} +55 -56
- package/dist/IssuesPanel-4ykrf1ax.js +359 -0
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DM4g6j7b.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CfscnwCn.js} +243 -250
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-Dy08GEwE.js} +449 -452
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BgEp7iCp.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-B9dtUthD.js} +14 -15
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DxujhYJ4.js} +30 -31
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-CPFEjJZd.js} +12 -13
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-CWXfurGh.js} +233 -236
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-C4s_JYCx.js} +16 -17
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-o6HmE8GR.js} +40 -40
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-CWLrly6l.js} +58 -59
- package/dist/SavedBlocksBrowserModal-CE8n4EBS.js +359 -0
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-BE1N9rNZ.js} +7 -9
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-Dwl94xhP.js} +14 -15
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-CS0f1Ues.js} +75 -76
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-DBD0X5nV.js} +54 -56
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-DaFjP9QK.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-DSqtle77.js} +78 -79
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-JykPyD_8.js} +5 -6
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-BZPFfKrf.js} +977 -985
- package/dist/{TplModal-DCzBzicE.js → TplModal-DLMssVlt.js} +16 -17
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BkbYUs0Q.js} +37 -38
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-DP7HaYWv.js} +5 -7
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-DECaBwLq.js} +11 -12
- package/dist/WrapperBlock-BsJv_Fiw.js +44 -0
- package/dist/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +3 -5
- package/dist/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +2 -3
- package/dist/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +1 -2
- package/dist/{blockTypeIcons-NzaYvAI4.js → blockTypeIcons-BHjlPnPf.js} +23 -23
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +1 -2
- package/dist/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +1 -2
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js → AiAltTextPopover-SEEjkd-I.js} +24 -25
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-SEEjkd-I.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BGLLSKLm.js} +43 -44
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BGLLSKLm.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DKDAaBNi.js} +129 -131
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DKDAaBNi.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-0wBarZSH.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-0wBarZSH.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-qf-cfEpy.js} +52 -53
- package/dist/cdn/chunks/AiRewriteMenu-qf-cfEpy.js.map +1 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js +34 -0
- package/dist/cdn/chunks/BlockIssueBadge-jdf91-nk.js.map +1 -0
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-DGBh6mqe.js} +22 -23
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-DGBh6mqe.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-BMNK_F9p.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-BMNK_F9p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-JMWIoVWh.js} +34 -35
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-JMWIoVWh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Bsf1rGW9.js} +13 -14
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Bsf1rGW9.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-CXByAoUz.js} +16 -17
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-CXByAoUz.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-DoJnKLXI.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-DoJnKLXI.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-CUtgvdBC.js} +110 -110
- package/dist/cdn/chunks/CommentsSidebar-CUtgvdBC.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-BqRw147R.js} +19 -20
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-BqRw147R.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-xobieKoU.js} +28 -29
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-xobieKoU.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-C7LfxaAY.js} +76 -77
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-C7LfxaAY.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-CZuLTazv.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-CZuLTazv.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-BIi05UQu.js} +258 -265
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-BIi05UQu.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-Cpcod6_U.js} +152 -155
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-Cpcod6_U.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-BIdcW_1f.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-BIdcW_1f.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-BvWg8o5E.js} +35 -36
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-BvWg8o5E.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BgKEVUtV.js} +28 -29
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BgKEVUtV.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-tBz8McZf.js} +33 -34
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-tBz8McZf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-B3Rj_cWF.js} +197 -200
- package/dist/cdn/chunks/ParagraphEditor-B3Rj_cWF.js.map +1 -0
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-CjOdD2xj.js} +21 -22
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-CjOdD2xj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DNjR_sNN.js} +30 -31
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DNjR_sNN.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-CUhpawq0.js} +77 -78
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-CUhpawq0.js.map} +1 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-BPYcRoGa.js +356 -0
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-BPYcRoGa.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C6--Bc81.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C6--Bc81.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-DUavxpbU.js} +16 -17
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-DUavxpbU.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-CKtI-dof.js} +72 -73
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-CKtI-dof.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-CDQTgESD.js} +68 -70
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-CDQTgESD.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-CcUpEpAn.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-CcUpEpAn.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-Cob7RLyK.js} +71 -72
- package/dist/cdn/chunks/TitleEditor-Cob7RLyK.js.map +1 -0
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-J7Vwhvha.js} +6 -7
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-J7Vwhvha.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CdpsvNOR.js} +977 -985
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CdpsvNOR.js.map} +1 -1
- package/dist/cdn/chunks/TplModal-CFPDgbwQ.js +51 -0
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-CFPDgbwQ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-BYlLRvRJ.js} +34 -35
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-BYlLRvRJ.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-C6SOVoiT.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-C6SOVoiT.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-Dvg0ZfAW.js} +12 -13
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-Dvg0ZfAW.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-C7Md56IT.js} +14 -15
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-C7Md56IT.js.map} +1 -1
- package/dist/cdn/chunks/{_plugin-vue_export-helper-B3ysoDQm.js → _plugin-vue_export-helper-Djzt4Yr7.js} +1 -2
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js → aiErrors-C3QEMB0x.js} +4 -6
- package/dist/cdn/chunks/{aiErrors-D5UOoYOt.js.map → aiErrors-C3QEMB0x.js.map} +1 -1
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js → aiImageContext-BQ5mQ6B5.js} +3 -4
- package/dist/cdn/chunks/{aiImageContext-BH4Ss1h3.js.map → aiImageContext-BQ5mQ6B5.js.map} +1 -1
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js → aiRewritePreview-DlMyx6Si.js} +2 -3
- package/dist/cdn/chunks/{aiRewritePreview-DLGM05Ge.js.map → aiRewritePreview-DlMyx6Si.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js +21 -0
- package/dist/cdn/chunks/blockTypeIcons-D7FW7Ypo.js.map +1 -0
- package/dist/cdn/chunks/{ca-C7mTzW1r.js → ca-CD-Kt1qz.js} +2 -3
- package/dist/cdn/chunks/{ca-C7mTzW1r.js.map → ca-CD-Kt1qz.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CYQH3J0b.js → ca-Cc6eL0ZS.js} +2 -3
- package/dist/cdn/chunks/{ca-CYQH3J0b.js.map → ca-Cc6eL0ZS.js.map} +1 -1
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js → createCloudRuntime-Cth2JCEh.js} +58 -77
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-Cth2JCEh.js.map} +1 -1
- package/dist/cdn/chunks/{de-DBOTcDj2.js → de-6M4JoHoD.js} +2 -3
- package/dist/cdn/chunks/{de-DBOTcDj2.js.map → de-6M4JoHoD.js.map} +1 -1
- package/dist/cdn/chunks/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +2 -3
- package/dist/cdn/chunks/{de-DNuYQTmS.js.map → de-CeFJ6wbM.js.map} +1 -1
- package/dist/cdn/chunks/{de-JvCTMJPy.js → de-DtrXVcuY.js} +2 -3
- package/dist/cdn/chunks/{de-JvCTMJPy.js.map → de-DtrXVcuY.js.map} +1 -1
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js → dist-8ym3y-pH.js} +44 -45
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-8ym3y-pH.js.map} +1 -1
- package/dist/{dist-DI4_YSnG.js → cdn/chunks/dist-BMzNabtD.js} +107 -109
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-BMzNabtD.js.map} +1 -1
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js +872 -0
- package/dist/cdn/chunks/dompurify-JVtr5-B1.js.map +1 -0
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js → draggable-Du8AUMFT.js} +654 -654
- package/dist/cdn/chunks/draggable-Du8AUMFT.js.map +1 -0
- package/dist/{editor-modal-Bzhl-PgI.js → cdn/chunks/editor-modal-CyCe560f.js} +893 -979
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-CyCe560f.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +2 -3
- package/dist/cdn/chunks/{emojiData-6m0DBh7O.js.map → emojiData-CBNuCfum.js.map} +1 -1
- package/dist/cdn/chunks/{en-CW71OK66.js → en-D14i5nFh.js} +2 -3
- package/dist/cdn/chunks/{en-CW71OK66.js.map → en-D14i5nFh.js.map} +1 -1
- package/dist/cdn/chunks/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +2 -3
- package/dist/cdn/chunks/{en-CDhWRrF_.js.map → en-FzUuJ8HW.js.map} +1 -1
- package/dist/cdn/chunks/en-TIqv4ag3.js +1 -0
- package/dist/cdn/chunks/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +2 -3
- package/dist/cdn/chunks/{es-CAv-Vldw.js.map → es-Dw_h7Oll.js.map} +1 -1
- package/dist/cdn/chunks/{es-DdK7zQfi.js → es-zDacbMhs.js} +2 -3
- package/dist/cdn/chunks/{es-DdK7zQfi.js.map → es-zDacbMhs.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-taJTZlLK.js → extensions-CFF2KWy-.js} +60 -65
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-CFF2KWy-.js.map} +1 -1
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +2 -3
- package/dist/cdn/chunks/{formatAbsoluteDateTime-DMmop3C-.js.map → formatAbsoluteDateTime-Ck2_zXra.js.map} +1 -1
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +1 -2
- package/dist/cdn/chunks/{formatRelativeTime-CtUU-QZ8.js.map → formatRelativeTime-BTD8Ktt-.js.map} +1 -1
- package/dist/cdn/chunks/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +2 -3
- package/dist/cdn/chunks/{fr-DVPtxpR6.js.map → fr-BJaeKu_8.js.map} +1 -1
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +2 -3
- package/dist/cdn/chunks/{fr-Dz5Bgb7-.js.map → fr-CSgYtjOd.js.map} +1 -1
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js → htmlparser-hu3YnNQU.js} +6 -11
- package/dist/cdn/chunks/{htmlparser-CDRsn-gn.js.map → htmlparser-hu3YnNQU.js.map} +1 -1
- package/dist/cdn/chunks/{icons-DNX6StSs.js → icons-okSPsLOa.js} +111 -114
- package/dist/cdn/chunks/icons-okSPsLOa.js.map +1 -0
- package/dist/cdn/chunks/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +2 -3
- package/dist/cdn/chunks/{ja-Di-zJiT8.js.map → ja-B7H3ID8O.js.map} +1 -1
- package/dist/cdn/chunks/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +2 -3
- package/dist/cdn/chunks/{ja-dcWzjStz.js.map → ja-Cu2HdYaK.js.map} +1 -1
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js → keys-CUj6UA38.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-CUj6UA38.js.map} +1 -1
- package/dist/{liquid.browser-Ct2-EezB.js → cdn/chunks/liquid.browser-rubac0VA.js} +993 -937
- package/dist/cdn/chunks/liquid.browser-rubac0VA.js.map +1 -0
- package/dist/cdn/chunks/{logger-Tj0RPskW.js → logger-CqQTfJGx.js} +2 -3
- package/dist/cdn/chunks/{logger-Tj0RPskW.js.map → logger-CqQTfJGx.js.map} +1 -1
- package/dist/cdn/chunks/{nl-CvVuHYFL.js → nl-176ySmc5.js} +2 -3
- package/dist/cdn/chunks/{nl-CvVuHYFL.js.map → nl-176ySmc5.js.map} +1 -1
- package/dist/cdn/chunks/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +2 -3
- package/dist/cdn/chunks/{nl-LZNqQgE4.js.map → nl-1Ai2NykB.js.map} +1 -1
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js → normalizeMergeTagMarkup-C_KlfSW4.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-C_KlfSW4.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-BcXIz7oJ.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-BcXIz7oJ.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-CHM-ZKvE.js.map → pt-BR-Bp92Fc6J.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-D6P_mNwA.js.map → pt-BR-CIbp__Z7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +2 -3
- package/dist/cdn/chunks/{pt-BR-ZhO4vgyq.js.map → pt-BR-dDlTwX18.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js → pusher-x9rNqzon.js} +3 -4
- package/dist/cdn/chunks/{pusher-Cs4GGEtd.js.map → pusher-x9rNqzon.js.map} +1 -1
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +2 -3
- package/dist/cdn/chunks/{readableTextColor-f8Kykfnh.js.map → readableTextColor-BfZUGnVj.js.map} +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-Y_bBpyJl.js → rolldown-runtime-QGRDbDUS.js} +1 -2
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-CN85EDrO.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-jsTDmkbb.js} +608 -632
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-jsTDmkbb.js.map} +1 -1
- package/dist/cdn/chunks/src-C7bkofBL.js +647 -0
- package/dist/cdn/chunks/src-C7bkofBL.js.map +1 -0
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-DEd87i_U.js} +502 -537
- package/dist/cdn/chunks/src-DEd87i_U.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-DwWrYnUj.js} +188 -171
- package/dist/cdn/chunks/src-DwWrYnUj.js.map +1 -0
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +2 -3
- package/dist/cdn/chunks/{styleConstants-v1dNKgJf.js.map → styleConstants-B8xVRiwX.js.map} +1 -1
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +2 -3
- package/dist/cdn/chunks/{templateSettingsFields-YCFVBVYh.js.map → templateSettingsFields-cjlP-jdw.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CtVrAViq.js → tiptap-CbiTlECY.js} +3402 -3278
- package/dist/cdn/chunks/tiptap-CbiTlECY.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-DY8_-ETE.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-DY8_-ETE.js.map} +1 -1
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js +2582 -0
- package/dist/cdn/chunks/useEditorCore-BrY66C2y.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-vjZJwKrV.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-vjZJwKrV.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-D8pY4LTq.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-D8pY4LTq.js.map} +1 -1
- package/dist/{useLogicTag-DKLZ1T9H.js → cdn/chunks/useLogicTag-DBJDtpKA.js} +6 -5
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-DBJDtpKA.js.map} +1 -1
- package/dist/{useMergeTag-Bhdx7AKk.js → cdn/chunks/useMergeTag-B-aG--s1.js} +8 -7
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-B-aG--s1.js.map} +1 -1
- package/dist/{usePopoverPosition-BZea45XK.js → cdn/chunks/usePopoverPosition-DSMtmu2W.js} +8 -10
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-DSMtmu2W.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-vjQ0fe-L.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-vjQ0fe-L.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-hZTvYBHO.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-hZTvYBHO.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +1433 -1454
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-BZ8o0eet.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-DfAAfILv.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-Bk4mGdr7.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-MhUf_azW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-CShJwVFv.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-CTfD6OCt.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-DCgO4A1r.js} +31 -37
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-CvhTA2KG.js} +6 -11
- package/dist/{de-DBOTcDj2.js → de-6M4JoHoD.js} +1 -2
- package/dist/{de-DNuYQTmS.js → de-CeFJ6wbM.js} +1 -2
- package/dist/{de-JvCTMJPy.js → de-DtrXVcuY.js} +1 -2
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{cdn/chunks/dist-S-rLGqax.js → dist-ByCWA2Tv.js} +101 -101
- package/dist/{dist-DtOF3bDW.js → dist-CKi_npZM.js} +378 -343
- package/dist/{dist-C7EtxNCb.js → dist-CVy-7PHQ.js} +55 -56
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-C_dV9QAx.js → dist-D6cMdrfG.js} +133 -133
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-CuLwJF7H.js → dist-Dd5MU2Ev.js} +23 -14
- package/dist/dist-DyFArF_G.js +4 -0
- package/dist/{dist-DBxgrOeo.js → dist-V7W1UhVr.js} +1882 -1792
- package/dist/{dist-DPcf6XZ8.js → dist-p3wymUDt.js} +2 -3
- package/dist/dist-pA3ooG6N.js +4 -0
- package/dist/{dist-3HpYixwF.js → dist-txQLT2sF.js} +173 -161
- package/dist/{cdn/chunks/editor-modal-CI6EfeMd.js → editor-modal-zaZHcmlO.js} +915 -859
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- package/dist/en-Db76vJbY.js +1 -0
- package/dist/{en-CDhWRrF_.js → en-FzUuJ8HW.js} +1 -2
- package/dist/{es-CAv-Vldw.js → es-Dw_h7Oll.js} +1 -2
- package/dist/{es-DdK7zQfi.js → es-zDacbMhs.js} +1 -2
- package/dist/{extensions-CdyweA50.js → extensions-fo_c-vqf.js} +82 -91
- package/dist/{eye-DWkSvYpj.js → eye-7W4t5e0Q.js} +1 -2
- package/dist/{formatAbsoluteDateTime-DMmop3C-.js → formatAbsoluteDateTime-Ck2_zXra.js} +1 -2
- package/dist/{formatRelativeTime-CtUU-QZ8.js → formatRelativeTime-BTD8Ktt-.js} +0 -1
- package/dist/{fr-DVPtxpR6.js → fr-BJaeKu_8.js} +1 -2
- package/dist/{fr-Dz5Bgb7-.js → fr-CSgYtjOd.js} +1 -2
- package/dist/{image-DesWjcZ4.js → image-BDiRFzSd.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Cxi3-Kh9.js} +1 -2
- package/dist/{ja-Di-zJiT8.js → ja-B7H3ID8O.js} +1 -2
- package/dist/{ja-dcWzjStz.js → ja-Cu2HdYaK.js} +1 -2
- package/dist/{keys-Zd9KWRD1.js → keys-BgRERHzu.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-ju_2Cmir.js} +1 -2
- package/dist/{cdn/chunks/liquid.browser-Bbt17cVz.js → liquid.browser-DUXEekoN.js} +991 -939
- package/dist/{list-bojQr9bn.js → list-DYZJf0aZ.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-BZRD0a4I.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-DuEw4Zfx.js} +1 -2
- package/dist/{nl-CvVuHYFL.js → nl-176ySmc5.js} +1 -2
- package/dist/{nl-LZNqQgE4.js → nl-1Ai2NykB.js} +1 -2
- package/dist/{normalizeMergeTagMarkup-P6SUBuPv.js → normalizeMergeTagMarkup-CELnOlgK.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-CePMr2kK.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-D3aFCL7c.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks--_xc0XK3.js} +4 -5
- package/dist/{pt-BR-CHM-ZKvE.js → pt-BR-Bp92Fc6J.js} +1 -2
- package/dist/{pt-BR-D6P_mNwA.js → pt-BR-CIbp__Z7.js} +1 -2
- package/dist/{pt-BR-ZhO4vgyq.js → pt-BR-dDlTwX18.js} +1 -2
- package/dist/{readableTextColor-f8Kykfnh.js → readableTextColor-BfZUGnVj.js} +1 -2
- package/dist/{refresh-cw-C6M2mHNC.js → refresh-cw-xnro7_Sk.js} +1 -2
- package/dist/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/dist/{runtime-dom.esm-bundler-B8WCZWUm.js → runtime-dom.esm-bundler-BURR-bj5.js} +121 -122
- package/dist/sanitizeHtml-BzfzpYJY.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-CDrstRBv.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DROkPOaX.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-Bx6u_tjn.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-D7MGsg0d.js} +553 -564
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-CdaTtvoz.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-BbCROH_f.js} +1 -2
- package/dist/style.css +1 -1
- package/dist/{styleConstants-v1dNKgJf.js → styleConstants-B8xVRiwX.js} +1 -2
- package/dist/{templateSettingsFields-YCFVBVYh.js → templateSettingsFields-cjlP-jdw.js} +1 -2
- package/dist/templatical-editor.js +1231 -1251
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-CGacJ9Vw.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-DxCd7zIy.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-7_oaitpf.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DuFEOi_0.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DEMmUKuO.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-BSo2sSID.js} +1568 -1573
- package/dist/useEditorRoot-BMcoCLBx.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-BBrHTdu8.js} +3 -4
- package/dist/{cdn/chunks/useLogicTag-B49Nc53Y.js → useLogicTag-ZPC39rfH.js} +4 -7
- package/dist/{cdn/chunks/useMergeTag-B0KryMj8.js → useMergeTag-BQ4qqWpQ.js} +6 -9
- package/dist/{cdn/chunks/usePopoverPosition-C829ps5i.js → usePopoverPosition-DV1PxL66.js} +6 -12
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-BSyAV4pk.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CnEeTfhs.js} +1001 -1002
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-B22FXAF5.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-BpfG7v9g.js} +1 -2
- package/package.json +26 -24
- package/dist/BlockIssueBadge-CKwZ1Vgn.js +0 -34
- package/dist/CommentsSidebar-Ca3DyFOX.js +0 -500
- package/dist/IssuesPanel-C8nMUccy.js +0 -360
- package/dist/SavedBlocksBrowserModal-wnkvxpm_.js +0 -360
- package/dist/WrapperBlock-BO619LAb.js +0 -45
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js +0 -35
- package/dist/cdn/chunks/BlockIssueBadge-DAn2vsMJ.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-CCvplq1Z.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/ParagraphEditor-CqSj6Ayz.js.map +0 -1
- package/dist/cdn/chunks/SavedBlocksBrowserModal-DtOz_X5S.js +0 -357
- package/dist/cdn/chunks/TitleEditor-Ccv6uoTz.js.map +0 -1
- package/dist/cdn/chunks/TplModal-BXQzmsJX.js +0 -52
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-ikZAmd6U.js.map +0 -1
- package/dist/cdn/chunks/draggable-DZ0gwUJ6.js.map +0 -1
- package/dist/cdn/chunks/en-ifvu6oPv.js +0 -1
- package/dist/cdn/chunks/icons-DNX6StSs.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-Bbt17cVz.js.map +0 -1
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js +0 -62
- package/dist/cdn/chunks/sanitizeRichTextHtml-DeISfLFr.js.map +0 -1
- package/dist/cdn/chunks/src-BNFnxfrA.js.map +0 -1
- package/dist/cdn/chunks/src-Bs_yxk3h.js.map +0 -1
- package/dist/cdn/chunks/src-YGkzYyu0.js +0 -649
- package/dist/cdn/chunks/src-YGkzYyu0.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js +0 -2586
- package/dist/cdn/chunks/useEditorCore-CCVFi1YZ.js.map +0 -1
- package/dist/cdn/chunks/useEditorRoot-CR5GjJD6.js +0 -10
- package/dist/dist-BPFcLKTw.js +0 -5
- package/dist/dist-D7Yj7E-F.js +0 -5
- package/dist/en-DwV15ltA.js +0 -1
- package/dist/sanitizeRichTextHtml-DeISfLFr.js +0 -60
- package/dist/useEditorRoot-DUy67lJu.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/.pnpm/liquidjs@10.30.1/node_modules/liquidjs/dist/liquid.browser.mjs
|
|
2
2
|
var e = class {
|
|
3
3
|
constructor(e, t, n, r, i) {
|
|
4
4
|
this.kind = e, this.input = t, this.begin = n, this.end = r, this.file = i;
|
|
@@ -30,43 +30,53 @@ function c(e) {
|
|
|
30
30
|
return e && o(e.next) && o(e.throw) && o(e.return);
|
|
31
31
|
}
|
|
32
32
|
function l(e) {
|
|
33
|
-
return e =
|
|
33
|
+
return e = h(e), a(e) ? e : _(e) ? "" : v(e) ? e.map((e) => l(e)).join("") : String(e);
|
|
34
34
|
}
|
|
35
35
|
function u(e, t, n) {
|
|
36
|
-
|
|
36
|
+
let r = t;
|
|
37
|
+
for (let t = 0; t < n && r < e.length; t++) r += e.codePointAt(r) > 65535 ? 2 : 1;
|
|
38
|
+
return r;
|
|
37
39
|
}
|
|
38
40
|
function d(e) {
|
|
39
|
-
|
|
41
|
+
let t = 0;
|
|
42
|
+
for (let n = 0; n < e.length; n = u(e, n, 1)) t++;
|
|
43
|
+
return t;
|
|
40
44
|
}
|
|
41
|
-
function f(e) {
|
|
42
|
-
|
|
45
|
+
function f(e, t, n) {
|
|
46
|
+
if (t < 0 && (t = e.length + t), !n || i.call(e, t)) return e[t];
|
|
43
47
|
}
|
|
44
48
|
function p(e) {
|
|
49
|
+
return e = h(e), v(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : se(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
|
|
50
|
+
}
|
|
51
|
+
function m(e) {
|
|
52
|
+
return e = h(e), _(e) ? [] : v(e) ? e : [e];
|
|
53
|
+
}
|
|
54
|
+
function h(e) {
|
|
45
55
|
return e instanceof t && o(e.valueOf) ? e.valueOf() : e;
|
|
46
56
|
}
|
|
47
57
|
function ee(e) {
|
|
48
|
-
return +
|
|
58
|
+
return +h(e) || 0;
|
|
49
59
|
}
|
|
50
|
-
function
|
|
60
|
+
function g(e) {
|
|
51
61
|
return typeof e == "number";
|
|
52
62
|
}
|
|
53
63
|
function te(e) {
|
|
54
64
|
return e && o(e.toLiquid) ? te(e.toLiquid()) : e;
|
|
55
65
|
}
|
|
56
|
-
function
|
|
66
|
+
function _(e) {
|
|
57
67
|
return e == null;
|
|
58
68
|
}
|
|
59
69
|
function ne(e) {
|
|
60
70
|
return e === void 0;
|
|
61
71
|
}
|
|
62
|
-
function
|
|
72
|
+
function v(e) {
|
|
63
73
|
return n.call(e) === "[object Array]";
|
|
64
74
|
}
|
|
65
75
|
function re(e) {
|
|
66
|
-
return e &&
|
|
76
|
+
return e && g(e.length);
|
|
67
77
|
}
|
|
68
78
|
function ie(e) {
|
|
69
|
-
return
|
|
79
|
+
return se(e) && Symbol.iterator in e;
|
|
70
80
|
}
|
|
71
81
|
function ae(e, t) {
|
|
72
82
|
e ||= {};
|
|
@@ -76,59 +86,59 @@ function ae(e, t) {
|
|
|
76
86
|
function oe(e) {
|
|
77
87
|
return e[e.length - 1];
|
|
78
88
|
}
|
|
79
|
-
function
|
|
89
|
+
function se(e) {
|
|
80
90
|
let t = typeof e;
|
|
81
91
|
return e !== null && (t === "object" || t === "function");
|
|
82
92
|
}
|
|
83
|
-
function
|
|
93
|
+
function ce(e, t, n = 1) {
|
|
84
94
|
let r = [];
|
|
85
95
|
for (let i = e; i < t; i += n) r.push(i);
|
|
86
96
|
return r;
|
|
87
97
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
98
|
+
function y(e, t, n = " ") {
|
|
99
|
+
return ue(e, t, n, (e, t) => t + e);
|
|
90
100
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
101
|
+
function le(e, t, n = " ") {
|
|
102
|
+
return ue(e, t, n, (e, t) => e + t);
|
|
93
103
|
}
|
|
94
|
-
function
|
|
104
|
+
function ue(e, t, n, r) {
|
|
95
105
|
e = String(e);
|
|
96
106
|
let i = t - e.length;
|
|
97
107
|
return i <= 0 ? e : r(e, n.repeat(i));
|
|
98
108
|
}
|
|
99
|
-
function
|
|
109
|
+
function de(e) {
|
|
100
110
|
return e;
|
|
101
111
|
}
|
|
102
|
-
function
|
|
112
|
+
function fe(e) {
|
|
103
113
|
return [...e].some((e) => e >= "a" && e <= "z") ? e.toUpperCase() : e.toLowerCase();
|
|
104
114
|
}
|
|
105
|
-
function fe(e, t) {
|
|
106
|
-
return e.length > t ? e.slice(0, t - 3) + "..." : e;
|
|
107
|
-
}
|
|
108
115
|
function pe(e, t) {
|
|
109
|
-
return
|
|
116
|
+
return e.length > t ? e.slice(0, t - 3) + "..." : e;
|
|
110
117
|
}
|
|
111
118
|
function me(e, t) {
|
|
112
|
-
return
|
|
119
|
+
return _(e) && _(t) ? 0 : _(e) ? 1 : _(t) || e < t ? -1 : +(e > t);
|
|
120
|
+
}
|
|
121
|
+
function he(e, t) {
|
|
122
|
+
return _(e) && _(t) ? 0 : _(e) ? 1 : _(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
|
|
113
123
|
}
|
|
114
|
-
function
|
|
124
|
+
function ge(e) {
|
|
115
125
|
return function(...t) {
|
|
116
|
-
return e.call(this, ...t.map(
|
|
126
|
+
return e.call(this, ...t.map(h));
|
|
117
127
|
};
|
|
118
128
|
}
|
|
119
|
-
function
|
|
129
|
+
function b(e) {
|
|
120
130
|
return function(...t) {
|
|
121
131
|
return e.call(this, ...t.map(ee));
|
|
122
132
|
};
|
|
123
133
|
}
|
|
124
|
-
function*
|
|
134
|
+
function* _e(e) {
|
|
125
135
|
let t = /* @__PURE__ */ new Set();
|
|
126
136
|
for (let n of e) {
|
|
127
137
|
let e = JSON.stringify(n);
|
|
128
138
|
t.has(e) || (t.add(e), yield n);
|
|
129
139
|
}
|
|
130
140
|
}
|
|
131
|
-
var
|
|
141
|
+
var ve = "__liquidClass__", x = class extends Error {
|
|
132
142
|
constructor(e, t) {
|
|
133
143
|
super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", {
|
|
134
144
|
value: e,
|
|
@@ -136,36 +146,36 @@ var ge = "__liquidClass__", x = class extends Error {
|
|
|
136
146
|
}), Object.defineProperty(this, "token", {
|
|
137
147
|
value: t,
|
|
138
148
|
enumerable: !1
|
|
139
|
-
}), Object.defineProperty(this,
|
|
149
|
+
}), Object.defineProperty(this, ve, {
|
|
140
150
|
value: "LiquidError",
|
|
141
151
|
enumerable: !1
|
|
142
152
|
});
|
|
143
153
|
}
|
|
144
154
|
update() {
|
|
145
155
|
Object.defineProperty(this, "context", {
|
|
146
|
-
value:
|
|
156
|
+
value: Ee(this.token),
|
|
147
157
|
enumerable: !1
|
|
148
|
-
}), this.message =
|
|
158
|
+
}), this.message = De(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
|
|
149
159
|
}
|
|
150
160
|
static is(e) {
|
|
151
|
-
return e?.[
|
|
161
|
+
return e?.[ve] === "LiquidError";
|
|
152
162
|
}
|
|
153
|
-
},
|
|
163
|
+
}, ye = class extends x {
|
|
154
164
|
constructor(e, t) {
|
|
155
165
|
super(e, t), this.name = "TokenizationError", super.update();
|
|
156
166
|
}
|
|
157
|
-
},
|
|
167
|
+
}, be = class extends x {
|
|
158
168
|
constructor(e, t) {
|
|
159
169
|
super(e, t), this.name = "ParseError", this.message = e.message, super.update();
|
|
160
170
|
}
|
|
161
|
-
},
|
|
171
|
+
}, xe = class extends x {
|
|
162
172
|
constructor(e, t) {
|
|
163
173
|
super(e, t.token), this.name = "RenderError", this.message = e.message, super.update();
|
|
164
174
|
}
|
|
165
175
|
static is(e) {
|
|
166
176
|
return e.name === "RenderError";
|
|
167
177
|
}
|
|
168
|
-
},
|
|
178
|
+
}, Se = class extends x {
|
|
169
179
|
constructor(e) {
|
|
170
180
|
super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
|
|
171
181
|
let t = e.length > 1 ? "s" : "";
|
|
@@ -174,27 +184,27 @@ var ge = "__liquidClass__", x = class extends Error {
|
|
|
174
184
|
static is(e) {
|
|
175
185
|
return e.name === "LiquidErrors";
|
|
176
186
|
}
|
|
177
|
-
},
|
|
187
|
+
}, Ce = class extends x {
|
|
178
188
|
constructor(e, t) {
|
|
179
189
|
super(e, t), this.name = "UndefinedVariableError", this.message = e.message, super.update();
|
|
180
190
|
}
|
|
181
|
-
},
|
|
191
|
+
}, we = class extends Error {
|
|
182
192
|
constructor(e) {
|
|
183
193
|
super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
|
|
184
194
|
}
|
|
185
|
-
},
|
|
195
|
+
}, Te = class extends Error {
|
|
186
196
|
constructor(e) {
|
|
187
197
|
super(e), this.name = "AssertionError", this.message = e + "";
|
|
188
198
|
}
|
|
189
199
|
};
|
|
190
|
-
function
|
|
200
|
+
function Ee(e) {
|
|
191
201
|
let [t, n] = e.getPosition(), r = e.input.split("\n"), i = Math.max(t - 2, 1), a = Math.min(t + 3, r.length);
|
|
192
|
-
return
|
|
193
|
-
let i = `${e === t ? ">> " : " "}${
|
|
202
|
+
return ce(i, a + 1).map((e) => {
|
|
203
|
+
let i = `${e === t ? ">> " : " "}${y(String(e), String(a).length)}| `, o = e === t ? "\n" + y("^", n + i.length) : "";
|
|
194
204
|
return i += r[e - 1], i += o, i;
|
|
195
205
|
}).join("\n");
|
|
196
206
|
}
|
|
197
|
-
function
|
|
207
|
+
function De(e, t) {
|
|
198
208
|
t.file && (e += `, file:${t.file}`);
|
|
199
209
|
let [n, r] = t.getPosition();
|
|
200
210
|
return e += `, line:${n}, col:${r}`, e;
|
|
@@ -328,21 +338,21 @@ var S = [
|
|
|
328
338
|
0,
|
|
329
339
|
0,
|
|
330
340
|
0
|
|
331
|
-
],
|
|
332
|
-
function
|
|
341
|
+
], Oe = 1, C = 4, ke = 8, Ae = 16, je = 32, Me = 64, Ne = 128;
|
|
342
|
+
function Pe(e) {
|
|
333
343
|
let t = e.charCodeAt(0);
|
|
334
|
-
return t >= 128 ? !S[t] : !!(S[t] &
|
|
344
|
+
return t >= 128 ? !S[t] : !!(S[t] & Oe);
|
|
335
345
|
}
|
|
336
|
-
S[160] = S[5760] = S[6158] = S[8192] = S[8193] = S[8194] = S[8195] = S[8196] = S[8197] = S[8198] = S[8199] = S[8200] = S[8201] = S[8202] = S[8232] = S[8233] = S[8239] = S[8287] = S[12288] = C, S[8220] = S[8221] =
|
|
346
|
+
S[160] = S[5760] = S[6158] = S[8192] = S[8193] = S[8194] = S[8195] = S[8196] = S[8197] = S[8198] = S[8199] = S[8200] = S[8201] = S[8202] = S[8232] = S[8233] = S[8239] = S[8287] = S[12288] = C, S[8220] = S[8221] = Ne;
|
|
337
347
|
function w(e, t) {
|
|
338
|
-
if (!e) throw new
|
|
348
|
+
if (!e) throw new Te(typeof t == "function" ? t() : t || `expect ${e} to be true`);
|
|
339
349
|
}
|
|
340
|
-
function
|
|
350
|
+
function Fe(e, t = `unexpected ${JSON.stringify(e)}`) {
|
|
341
351
|
w(!e, t);
|
|
342
352
|
}
|
|
343
|
-
var
|
|
353
|
+
var Ie = class extends t {
|
|
344
354
|
*equals(e) {
|
|
345
|
-
return
|
|
355
|
+
return _(yield h(e));
|
|
346
356
|
}
|
|
347
357
|
gt() {
|
|
348
358
|
return !1;
|
|
@@ -359,9 +369,9 @@ var Pe = class extends t {
|
|
|
359
369
|
valueOf() {
|
|
360
370
|
return null;
|
|
361
371
|
}
|
|
362
|
-
},
|
|
372
|
+
}, Le = class e extends t {
|
|
363
373
|
*equals(t) {
|
|
364
|
-
return t instanceof e ? !1 : (t = yield
|
|
374
|
+
return t instanceof e ? !1 : (t = yield h(t), a(t) || v(t) ? t.length === 0 : se(t) ? Object.keys(t).length === 0 : !1);
|
|
365
375
|
}
|
|
366
376
|
gt() {
|
|
367
377
|
return !1;
|
|
@@ -381,14 +391,14 @@ var Pe = class extends t {
|
|
|
381
391
|
static is(t) {
|
|
382
392
|
return t instanceof e;
|
|
383
393
|
}
|
|
384
|
-
},
|
|
394
|
+
}, Re = class e extends Le {
|
|
385
395
|
*equals(e) {
|
|
386
|
-
return e === !1 ||
|
|
396
|
+
return e === !1 || _(yield h(e)) ? !0 : a(e) ? /^\s*$/.test(e) : yield super.equals(e);
|
|
387
397
|
}
|
|
388
398
|
static is(t) {
|
|
389
399
|
return t instanceof e;
|
|
390
400
|
}
|
|
391
|
-
},
|
|
401
|
+
}, ze = class extends t {
|
|
392
402
|
constructor(e, t, n) {
|
|
393
403
|
super(), this.i = 0, this.length = e, this.name = `${n}-${t}`;
|
|
394
404
|
}
|
|
@@ -416,65 +426,65 @@ var Pe = class extends t {
|
|
|
416
426
|
valueOf() {
|
|
417
427
|
return JSON.stringify(this);
|
|
418
428
|
}
|
|
419
|
-
},
|
|
429
|
+
}, Be = class {
|
|
420
430
|
constructor() {
|
|
421
431
|
this.buffer = "";
|
|
422
432
|
}
|
|
423
433
|
write(e) {
|
|
424
434
|
this.buffer += l(e);
|
|
425
435
|
}
|
|
426
|
-
},
|
|
436
|
+
}, Ve = class {
|
|
427
437
|
constructor() {
|
|
428
438
|
throw this.buffer = "", this.stream = null, Error("streaming not supported in browser");
|
|
429
439
|
}
|
|
430
|
-
},
|
|
440
|
+
}, He = class {
|
|
431
441
|
constructor() {
|
|
432
442
|
this.buffer = "";
|
|
433
443
|
}
|
|
434
444
|
write(e) {
|
|
435
|
-
e =
|
|
445
|
+
e = h(e), this.buffer = typeof e != "string" && this.buffer === "" ? e : l(this.buffer) + l(e);
|
|
436
446
|
}
|
|
437
|
-
},
|
|
447
|
+
}, Ue = class extends t {
|
|
438
448
|
constructor(e = () => "") {
|
|
439
449
|
super(), this.superBlockRender = e;
|
|
440
450
|
}
|
|
441
451
|
*super() {
|
|
442
|
-
let e = new
|
|
452
|
+
let e = new Be();
|
|
443
453
|
return yield this.superBlockRender(e), e.buffer;
|
|
444
454
|
}
|
|
445
455
|
};
|
|
446
456
|
function T(e) {
|
|
447
457
|
return e && o(e.equals) && o(e.gt) && o(e.geq) && o(e.lt) && o(e.leq);
|
|
448
458
|
}
|
|
449
|
-
var
|
|
459
|
+
var We = new Ie(), Ge = {
|
|
450
460
|
true: !0,
|
|
451
461
|
false: !1,
|
|
452
|
-
nil:
|
|
453
|
-
null:
|
|
454
|
-
empty: new
|
|
455
|
-
blank: new
|
|
456
|
-
},
|
|
457
|
-
function
|
|
458
|
-
let t =
|
|
462
|
+
nil: We,
|
|
463
|
+
null: We,
|
|
464
|
+
empty: new Le(),
|
|
465
|
+
blank: new Re()
|
|
466
|
+
}, Ke = /* @__PURE__ */ new WeakMap();
|
|
467
|
+
function qe(e) {
|
|
468
|
+
let t = Ke.get(e);
|
|
459
469
|
if (t) return t;
|
|
460
470
|
let n = {};
|
|
461
471
|
for (let [t, r] of Object.entries(e)) {
|
|
462
472
|
let e = n;
|
|
463
473
|
for (let n = 0; n < t.length; n++) {
|
|
464
474
|
let r = t[n];
|
|
465
|
-
e[r] = e[r] || {}, n === t.length - 1 &&
|
|
475
|
+
e[r] = e[r] || {}, n === t.length - 1 && Pe(t[n]) && (e[r].needBoundary = !0), e = e[r];
|
|
466
476
|
}
|
|
467
477
|
e.data = r, e.end = !0;
|
|
468
478
|
}
|
|
469
|
-
return
|
|
479
|
+
return Ke.set(e, n), n;
|
|
470
480
|
}
|
|
471
|
-
var
|
|
472
|
-
return
|
|
481
|
+
var Je = function() {
|
|
482
|
+
return Je = Object.assign || function(e) {
|
|
473
483
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
474
484
|
return e;
|
|
475
|
-
},
|
|
485
|
+
}, Je.apply(this, arguments);
|
|
476
486
|
};
|
|
477
|
-
function
|
|
487
|
+
function E(e, t, n, r) {
|
|
478
488
|
function i(e) {
|
|
479
489
|
return e instanceof n ? e : new n(function(t) {
|
|
480
490
|
t(e);
|
|
@@ -501,19 +511,19 @@ function D(e, t, n, r) {
|
|
|
501
511
|
c((r = r.apply(e, t || [])).next());
|
|
502
512
|
});
|
|
503
513
|
}
|
|
504
|
-
function
|
|
514
|
+
function Ye(e, t) {
|
|
505
515
|
let n = t || e;
|
|
506
516
|
return (t, ...r) => t ? n(...r) : e(...r);
|
|
507
517
|
}
|
|
508
|
-
function
|
|
509
|
-
return
|
|
518
|
+
function D(e) {
|
|
519
|
+
return E(this, void 0, void 0, function* () {
|
|
510
520
|
if (!c(e)) return e;
|
|
511
521
|
let t, n = !1, r = "next";
|
|
512
522
|
do {
|
|
513
523
|
let i = e[r](t);
|
|
514
524
|
n = !!i.done, t = i.value, r = "next";
|
|
515
525
|
try {
|
|
516
|
-
c(t) && (t =
|
|
526
|
+
c(t) && (t = D(t)), s(t) && (t = yield t);
|
|
517
527
|
} catch (e) {
|
|
518
528
|
r = "throw", t = e;
|
|
519
529
|
}
|
|
@@ -521,24 +531,24 @@ function O(e) {
|
|
|
521
531
|
return t;
|
|
522
532
|
});
|
|
523
533
|
}
|
|
524
|
-
function
|
|
534
|
+
function O(e) {
|
|
525
535
|
if (!c(e)) return e;
|
|
526
536
|
let t, n = !1, r = "next";
|
|
527
537
|
do {
|
|
528
538
|
let i = e[r](t);
|
|
529
539
|
if (n = !!i.done, t = i.value, r = "next", c(t)) try {
|
|
530
|
-
t =
|
|
540
|
+
t = O(t);
|
|
531
541
|
} catch (e) {
|
|
532
542
|
r = "throw", t = e;
|
|
533
543
|
}
|
|
534
544
|
} while (!n);
|
|
535
545
|
return t;
|
|
536
546
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
547
|
+
var Xe = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
|
|
548
|
+
function Ze(e) {
|
|
539
549
|
return [
|
|
540
550
|
31,
|
|
541
|
-
|
|
551
|
+
et(e) ? 29 : 28,
|
|
542
552
|
31,
|
|
543
553
|
30,
|
|
544
554
|
31,
|
|
@@ -551,20 +561,20 @@ function Je(e) {
|
|
|
551
561
|
31
|
|
552
562
|
];
|
|
553
563
|
}
|
|
554
|
-
function
|
|
564
|
+
function Qe(e) {
|
|
555
565
|
let t = 0;
|
|
556
|
-
for (let n = 0; n < e.getMonth(); ++n) t +=
|
|
566
|
+
for (let n = 0; n < e.getMonth(); ++n) t += Ze(e)[n];
|
|
557
567
|
return t + e.getDate();
|
|
558
568
|
}
|
|
559
|
-
function
|
|
569
|
+
function $e(e, t) {
|
|
560
570
|
let n = (e.getDay() - t + 7) % 7;
|
|
561
|
-
return String(Math.floor((
|
|
571
|
+
return String(Math.floor((Qe(e) - 1 - n + 7) / 7));
|
|
562
572
|
}
|
|
563
|
-
function
|
|
573
|
+
function et(e) {
|
|
564
574
|
let t = e.getFullYear();
|
|
565
575
|
return !!(!(t & 3) && (t % 100 || t % 400 == 0 && t));
|
|
566
576
|
}
|
|
567
|
-
function
|
|
577
|
+
function tt(e) {
|
|
568
578
|
let t = e.getDate();
|
|
569
579
|
if ([
|
|
570
580
|
11,
|
|
@@ -578,10 +588,10 @@ function Qe(e) {
|
|
|
578
588
|
default: return "th";
|
|
579
589
|
}
|
|
580
590
|
}
|
|
581
|
-
function
|
|
591
|
+
function nt(e) {
|
|
582
592
|
return Math.floor(e.getFullYear() / 100);
|
|
583
593
|
}
|
|
584
|
-
var
|
|
594
|
+
var rt = {
|
|
585
595
|
C: 2,
|
|
586
596
|
d: 2,
|
|
587
597
|
e: 2,
|
|
@@ -596,24 +606,25 @@ var et = {
|
|
|
596
606
|
S: 2,
|
|
597
607
|
U: 2,
|
|
598
608
|
W: 2,
|
|
599
|
-
y: 2
|
|
600
|
-
|
|
601
|
-
|
|
609
|
+
y: 2,
|
|
610
|
+
Y: 4
|
|
611
|
+
}, it = /* @__PURE__ */ new Set("aAbBceklpP");
|
|
612
|
+
function at(e, t) {
|
|
602
613
|
let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
|
|
603
|
-
return (e.getTimezoneOffset() > 0 ? "-" : "+") +
|
|
614
|
+
return (e.getTimezoneOffset() > 0 ? "-" : "+") + y(r, 2, "0") + (t.flags[":"] ? ":" : "") + y(i, 2, "0");
|
|
604
615
|
}
|
|
605
|
-
var
|
|
616
|
+
var ot = {
|
|
606
617
|
a: (e) => e.getShortWeekdayName(),
|
|
607
618
|
A: (e) => e.getLongWeekdayName(),
|
|
608
619
|
b: (e) => e.getShortMonthName(),
|
|
609
620
|
B: (e) => e.getLongMonthName(),
|
|
610
621
|
c: (e) => e.toLocaleString(),
|
|
611
|
-
C: (e) =>
|
|
622
|
+
C: (e) => nt(e),
|
|
612
623
|
d: (e) => e.getDate(),
|
|
613
624
|
e: (e) => e.getDate(),
|
|
614
625
|
H: (e) => e.getHours(),
|
|
615
626
|
I: (e) => String(e.getHours() % 12 || 12),
|
|
616
|
-
j: (e) =>
|
|
627
|
+
j: (e) => Qe(e),
|
|
617
628
|
k: (e) => e.getHours(),
|
|
618
629
|
l: (e) => String(e.getHours() % 12 || 12),
|
|
619
630
|
L: (e) => e.getMilliseconds(),
|
|
@@ -621,36 +632,36 @@ var rt = {
|
|
|
621
632
|
M: (e) => e.getMinutes(),
|
|
622
633
|
N: (e, t) => {
|
|
623
634
|
var n;
|
|
624
|
-
let r = Number(t.width) || 9, i =
|
|
625
|
-
return (n = t.memoryLimit) == null || n.use(r - i.length),
|
|
635
|
+
let r = Number(t.width) || 9, i = y(String(e.getMilliseconds()), 3, "0").slice(0, r);
|
|
636
|
+
return (n = t.memoryLimit) == null || n.use(r - i.length), le(i, r, "0");
|
|
626
637
|
},
|
|
627
638
|
p: (e) => e.getHours() < 12 ? "AM" : "PM",
|
|
628
639
|
P: (e) => e.getHours() < 12 ? "am" : "pm",
|
|
629
|
-
q: (e) =>
|
|
640
|
+
q: (e) => tt(e),
|
|
630
641
|
s: (e) => Math.floor(e.dateValue() / 1e3),
|
|
631
642
|
S: (e) => e.getSeconds(),
|
|
632
643
|
u: (e) => e.getDay() || 7,
|
|
633
|
-
U: (e) =>
|
|
644
|
+
U: (e) => $e(e, 0),
|
|
634
645
|
w: (e) => e.getDay(),
|
|
635
|
-
W: (e) =>
|
|
646
|
+
W: (e) => $e(e, 1),
|
|
636
647
|
x: (e) => e.toLocaleDateString(),
|
|
637
648
|
X: (e) => e.toLocaleTimeString(),
|
|
638
649
|
y: (e) => (e.getFullYear() % 100 + 100) % 100,
|
|
639
650
|
Y: (e) => e.getFullYear(),
|
|
640
|
-
z:
|
|
641
|
-
Z: (e, t) => e.getTimeZoneName() ||
|
|
651
|
+
z: at,
|
|
652
|
+
Z: (e, t) => e.getTimeZoneName() || at(e, t),
|
|
642
653
|
t: () => " ",
|
|
643
654
|
n: () => "\n",
|
|
644
655
|
"%": () => "%"
|
|
645
656
|
};
|
|
646
|
-
|
|
647
|
-
function
|
|
657
|
+
ot.h = ot.b;
|
|
658
|
+
function k(e, t, n) {
|
|
648
659
|
let r = "", i = t, a;
|
|
649
|
-
for (; a =
|
|
660
|
+
for (; a = Xe.exec(i);) r += i.slice(0, a.index), i = i.slice(a.index + a[0].length), r += st(e, a, n);
|
|
650
661
|
return r + i;
|
|
651
662
|
}
|
|
652
|
-
function
|
|
653
|
-
let [r, i = "", a, o, s] = t, c =
|
|
663
|
+
function st(e, t, n) {
|
|
664
|
+
let [r, i = "", a, o, s] = t, c = ot[s];
|
|
654
665
|
if (!c) return r;
|
|
655
666
|
let l = {};
|
|
656
667
|
for (let e of i) l[e] = !0;
|
|
@@ -659,13 +670,13 @@ function at(e, t, n) {
|
|
|
659
670
|
width: a,
|
|
660
671
|
modifier: o,
|
|
661
672
|
memoryLimit: n
|
|
662
|
-
})), d =
|
|
663
|
-
return l["^"] ? u = u.toUpperCase() : l["#"] && (u =
|
|
673
|
+
})), d = it.has(s) ? " " : "0", f = Number(a) || rt[s] || 0;
|
|
674
|
+
return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), d === "0" && u[0] === "-" ? "-" + y(u.slice(1), f - 1, d) : y(u, f, d);
|
|
664
675
|
}
|
|
665
|
-
function
|
|
676
|
+
function ct() {
|
|
666
677
|
return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
|
|
667
678
|
}
|
|
668
|
-
var
|
|
679
|
+
var lt = 6e4, ut = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, dt = [
|
|
669
680
|
"January",
|
|
670
681
|
"February",
|
|
671
682
|
"March",
|
|
@@ -678,7 +689,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
678
689
|
"October",
|
|
679
690
|
"November",
|
|
680
691
|
"December"
|
|
681
|
-
],
|
|
692
|
+
], ft = dt.map((e) => e.slice(0, 3)), pt = [
|
|
682
693
|
"Sunday",
|
|
683
694
|
"Monday",
|
|
684
695
|
"Tuesday",
|
|
@@ -686,10 +697,10 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
686
697
|
"Thursday",
|
|
687
698
|
"Friday",
|
|
688
699
|
"Saturday"
|
|
689
|
-
],
|
|
700
|
+
], mt = pt.map((e) => e.slice(0, 3)), A = class e {
|
|
690
701
|
constructor(t, n, r) {
|
|
691
|
-
this.locale = n, this.DateTimeFormat =
|
|
692
|
-
let i = (this.date.getTimezoneOffset() - this.timezoneOffset) *
|
|
702
|
+
this.locale = n, this.DateTimeFormat = ct(), this.date = new Date(t), this.timezoneFixed = r !== void 0, r === void 0 && (r = this.date.getTimezoneOffset()), this.timezoneOffset = a(r) ? e.getTimezoneOffset(r, this.date) : r, this.timezoneName = a(r) ? r : "";
|
|
703
|
+
let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * lt, o = this.date.getTime() + i;
|
|
693
704
|
this.displayDate = new Date(o);
|
|
694
705
|
}
|
|
695
706
|
getTime() {
|
|
@@ -739,16 +750,16 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
739
750
|
if (this.DateTimeFormat) return this.DateTimeFormat().resolvedOptions().timeZone;
|
|
740
751
|
}
|
|
741
752
|
getLongMonthName() {
|
|
742
|
-
return this.format({ month: "long" }) ??
|
|
753
|
+
return this.format({ month: "long" }) ?? dt[this.getMonth()];
|
|
743
754
|
}
|
|
744
755
|
getShortMonthName() {
|
|
745
|
-
return this.format({ month: "short" }) ??
|
|
756
|
+
return this.format({ month: "short" }) ?? ft[this.getMonth()];
|
|
746
757
|
}
|
|
747
758
|
getLongWeekdayName() {
|
|
748
|
-
return this.format({ weekday: "long" }) ??
|
|
759
|
+
return this.format({ weekday: "long" }) ?? pt[this.displayDate.getDay()];
|
|
749
760
|
}
|
|
750
761
|
getShortWeekdayName() {
|
|
751
|
-
return this.format({ weekday: "short" }) ??
|
|
762
|
+
return this.format({ weekday: "short" }) ?? mt[this.displayDate.getDay()];
|
|
752
763
|
}
|
|
753
764
|
valid() {
|
|
754
765
|
return !isNaN(this.getTime());
|
|
@@ -757,7 +768,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
757
768
|
return this.DateTimeFormat && this.DateTimeFormat(this.locale, e).format(this.displayDate);
|
|
758
769
|
}
|
|
759
770
|
static createDateFixedToTimezone(t, n) {
|
|
760
|
-
let r = t.match(
|
|
771
|
+
let r = t.match(ut);
|
|
761
772
|
if (r && r[1] === "Z") return new e(+new Date(t), n, 0);
|
|
762
773
|
if (r && r[2] && r[3] && r[4]) {
|
|
763
774
|
let [, , i, a, o] = r, s = (i === "+" ? -1 : 1) * (parseInt(a, 10) * 60 + parseInt(o, 10));
|
|
@@ -769,7 +780,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
769
780
|
let n = t.toLocaleString("en-US", { timeZone: e }), r = t.toLocaleString("en-US", { timeZone: "UTC" }), i = new Date(n);
|
|
770
781
|
return (+new Date(r) - i) / 6e4;
|
|
771
782
|
}
|
|
772
|
-
},
|
|
783
|
+
}, ht = class {
|
|
773
784
|
constructor(e, t) {
|
|
774
785
|
this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
|
|
775
786
|
}
|
|
@@ -779,7 +790,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
779
790
|
check(e) {
|
|
780
791
|
+e > 0 && w(+e <= this.limit, this.message);
|
|
781
792
|
}
|
|
782
|
-
},
|
|
793
|
+
}, gt = class extends e {
|
|
783
794
|
constructor(e, [t, n], r, i, a, o, s, c) {
|
|
784
795
|
super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
|
|
785
796
|
let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
|
|
@@ -790,36 +801,36 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
790
801
|
get content() {
|
|
791
802
|
return this.input.slice(this.contentRange[0], this.contentRange[1]);
|
|
792
803
|
}
|
|
793
|
-
},
|
|
804
|
+
}, _t = class extends gt {
|
|
794
805
|
constructor(e, t, n, r, i) {
|
|
795
806
|
let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
|
|
796
|
-
super(
|
|
807
|
+
super(K.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new I(e, r.operators, i, this.contentRange, r.groupedExpressions), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
797
808
|
}
|
|
798
|
-
},
|
|
809
|
+
}, vt = class extends gt {
|
|
799
810
|
constructor(e, t, n, r, i) {
|
|
800
811
|
let { trimOutputLeft: a, trimOutputRight: o, outputDelimiterLeft: s, outputDelimiterRight: c } = r, l = [t + s.length, n - c.length];
|
|
801
|
-
super(
|
|
812
|
+
super(K.Output, l, e, t, n, a, o, i);
|
|
802
813
|
}
|
|
803
|
-
},
|
|
814
|
+
}, yt = class extends e {
|
|
804
815
|
constructor(e, t, n, r) {
|
|
805
|
-
super(
|
|
816
|
+
super(K.HTML, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.trimLeft = 0, this.trimRight = 0;
|
|
806
817
|
}
|
|
807
818
|
getContent() {
|
|
808
819
|
return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
|
|
809
820
|
}
|
|
810
|
-
},
|
|
821
|
+
}, bt = class extends e {
|
|
811
822
|
constructor(e, t, n, r) {
|
|
812
|
-
super(
|
|
823
|
+
super(K.Number, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Number(this.getText());
|
|
813
824
|
}
|
|
814
|
-
},
|
|
825
|
+
}, xt = class extends e {
|
|
815
826
|
constructor(e, t, n, r) {
|
|
816
|
-
super(
|
|
827
|
+
super(K.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
|
|
817
828
|
}
|
|
818
|
-
},
|
|
829
|
+
}, St = class extends e {
|
|
819
830
|
constructor(e, t, n, r) {
|
|
820
|
-
super(
|
|
831
|
+
super(K.Literal, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.literal = this.getText(), this.content = Ge[this.literal];
|
|
821
832
|
}
|
|
822
|
-
},
|
|
833
|
+
}, Ct = {
|
|
823
834
|
"==": 2,
|
|
824
835
|
"!=": 2,
|
|
825
836
|
">": 2,
|
|
@@ -830,7 +841,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
830
841
|
not: 1,
|
|
831
842
|
and: 0,
|
|
832
843
|
or: 0
|
|
833
|
-
},
|
|
844
|
+
}, wt = {
|
|
834
845
|
"==": 0,
|
|
835
846
|
"!=": 0,
|
|
836
847
|
">": 0,
|
|
@@ -841,26 +852,26 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
841
852
|
not: 1,
|
|
842
853
|
and: 0,
|
|
843
854
|
or: 0
|
|
844
|
-
},
|
|
855
|
+
}, Tt = class extends e {
|
|
845
856
|
constructor(e, t, n, r) {
|
|
846
|
-
super(
|
|
857
|
+
super(K.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
|
|
847
858
|
}
|
|
848
859
|
getPrecedence() {
|
|
849
|
-
return this.operator in
|
|
860
|
+
return this.operator in Ct ? Ct[this.operator] : 1;
|
|
850
861
|
}
|
|
851
|
-
},
|
|
862
|
+
}, Et = class extends e {
|
|
852
863
|
constructor(e, t, n, r, i, a) {
|
|
853
|
-
super(
|
|
864
|
+
super(K.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
|
|
854
865
|
}
|
|
855
|
-
},
|
|
866
|
+
}, Dt = class extends e {
|
|
856
867
|
constructor(e, t, n, r, i, a) {
|
|
857
|
-
super(
|
|
868
|
+
super(K.Filter, n, r, i, a), this.name = e, this.args = t;
|
|
858
869
|
}
|
|
859
|
-
},
|
|
870
|
+
}, Ot = class extends e {
|
|
860
871
|
constructor(e, t, n, r, i, a) {
|
|
861
|
-
super(
|
|
872
|
+
super(K.Hash, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.name = r, this.value = i, this.file = a;
|
|
862
873
|
}
|
|
863
|
-
},
|
|
874
|
+
}, kt = /[\da-fA-F]/, At = /[0-7]/, jt = {
|
|
864
875
|
b: "\b",
|
|
865
876
|
f: "\f",
|
|
866
877
|
n: "\n",
|
|
@@ -868,98 +879,98 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
868
879
|
t: " ",
|
|
869
880
|
v: "\v"
|
|
870
881
|
};
|
|
871
|
-
function
|
|
882
|
+
function Mt(e) {
|
|
872
883
|
let t = e.charCodeAt(0);
|
|
873
884
|
return t >= 97 ? t - 87 : t >= 65 ? t - 55 : t - 48;
|
|
874
885
|
}
|
|
875
|
-
function
|
|
886
|
+
function Nt(e) {
|
|
876
887
|
let t = "";
|
|
877
888
|
for (let n = 1; n < e.length - 1; n++) if (e[n] !== "\\") t += e[n];
|
|
878
|
-
else if (
|
|
889
|
+
else if (jt[e[n + 1]] !== void 0) t += jt[e[++n]];
|
|
879
890
|
else if (e[n + 1] === "u") {
|
|
880
891
|
let r = 0, i = n + 2;
|
|
881
|
-
for (; i <= n + 5 &&
|
|
892
|
+
for (; i <= n + 5 && kt.test(e[i]);) r = r * 16 + Mt(e[i++]);
|
|
882
893
|
n = i - 1, t += String.fromCharCode(r);
|
|
883
|
-
} else if (!
|
|
894
|
+
} else if (!At.test(e[n + 1])) t += e[++n];
|
|
884
895
|
else {
|
|
885
896
|
let r = n + 1, i = 0;
|
|
886
|
-
for (; r <= n + 3 &&
|
|
897
|
+
for (; r <= n + 3 && At.test(e[r]);) i = i * 8 + Mt(e[r++]);
|
|
887
898
|
n = r - 1, t += String.fromCharCode(i);
|
|
888
899
|
}
|
|
889
900
|
return t;
|
|
890
901
|
}
|
|
891
|
-
var
|
|
902
|
+
var Pt = class extends e {
|
|
892
903
|
constructor(e, t, n, r) {
|
|
893
|
-
super(
|
|
904
|
+
super(K.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = Nt(this.getText());
|
|
894
905
|
}
|
|
895
|
-
},
|
|
906
|
+
}, Ft = class extends e {
|
|
896
907
|
constructor(e, t, n, r, i, a) {
|
|
897
|
-
super(
|
|
908
|
+
super(K.Range, e, t, n, a), this.input = e, this.begin = t, this.end = n, this.lhs = r, this.rhs = i, this.file = a;
|
|
898
909
|
}
|
|
899
|
-
},
|
|
910
|
+
}, It = class extends gt {
|
|
900
911
|
constructor(e, t, n, r, i) {
|
|
901
|
-
super(
|
|
912
|
+
super(K.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new I(e, r.operators, i, this.contentRange, r.groupedExpressions), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
|
|
902
913
|
}
|
|
903
914
|
get args() {
|
|
904
915
|
return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
905
916
|
}
|
|
906
|
-
},
|
|
917
|
+
}, Lt = class extends e {
|
|
907
918
|
constructor(e, t, n, r, i, a) {
|
|
908
|
-
super(
|
|
919
|
+
super(K.FilteredValue, n, r, i, a), this.initial = e, this.filters = t, this.input = n, this.begin = r, this.end = i, this.file = a;
|
|
909
920
|
}
|
|
910
|
-
},
|
|
911
|
-
function
|
|
912
|
-
return typeof global == "object" && global.performance || typeof window == "object" && window.performance ||
|
|
921
|
+
}, Rt = { now: () => Date.now() };
|
|
922
|
+
function zt() {
|
|
923
|
+
return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Rt;
|
|
913
924
|
}
|
|
914
|
-
var
|
|
925
|
+
var Bt = class {
|
|
915
926
|
renderTemplatesToNodeStream(e, t) {
|
|
916
|
-
let n = new
|
|
917
|
-
return Promise.resolve().then(() =>
|
|
927
|
+
let n = new Ve();
|
|
928
|
+
return Promise.resolve().then(() => D(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
|
|
918
929
|
}
|
|
919
930
|
*renderTemplates(e, t, n) {
|
|
920
|
-
n ||= t.opts.keepOutputType ? new
|
|
931
|
+
n ||= t.opts.keepOutputType ? new He() : new Be(), t.renderLimit.check(zt().now());
|
|
921
932
|
let r = [];
|
|
922
933
|
for (let i of e) {
|
|
923
|
-
t.renderLimit.check(
|
|
934
|
+
t.renderLimit.check(zt().now());
|
|
924
935
|
try {
|
|
925
936
|
let e = yield i.render(t, n);
|
|
926
937
|
if (e && n.write(e), t.breakCalled || t.continueCalled) break;
|
|
927
938
|
} catch (e) {
|
|
928
|
-
let n = x.is(e) ? e : new
|
|
939
|
+
let n = x.is(e) ? e : new xe(e, i);
|
|
929
940
|
if (t.opts.catchAllErrors) r.push(n);
|
|
930
941
|
else throw n;
|
|
931
942
|
}
|
|
932
943
|
}
|
|
933
|
-
if (r.length) throw new
|
|
944
|
+
if (r.length) throw new Se(r);
|
|
934
945
|
return n.buffer;
|
|
935
946
|
}
|
|
936
947
|
};
|
|
937
|
-
function
|
|
938
|
-
return
|
|
948
|
+
function Vt(e) {
|
|
949
|
+
return v(e);
|
|
939
950
|
}
|
|
940
|
-
var
|
|
951
|
+
var Ht = class {
|
|
941
952
|
constructor(e, t, n) {
|
|
942
|
-
this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler :
|
|
953
|
+
this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler : de, this.raw = !o(t) && !!t?.raw, this.args = e.args, this.liquid = n;
|
|
943
954
|
}
|
|
944
955
|
*render(e, t) {
|
|
945
956
|
let n = [];
|
|
946
|
-
for (let e of this.args)
|
|
957
|
+
for (let e of this.args) Vt(e) ? n.push([e[0], yield j(e[1], t)]) : n.push(yield j(e, t));
|
|
947
958
|
return yield this.handler.apply({
|
|
948
959
|
context: t,
|
|
949
960
|
token: this.token,
|
|
950
961
|
liquid: this.liquid
|
|
951
962
|
}, [e, ...n]);
|
|
952
963
|
}
|
|
953
|
-
},
|
|
964
|
+
}, Ut = class {
|
|
954
965
|
constructor(e) {
|
|
955
|
-
this.postfix = [...
|
|
966
|
+
this.postfix = [...Yt(e)];
|
|
956
967
|
}
|
|
957
968
|
*evaluate(e, t) {
|
|
958
969
|
w(e, "unable to evaluate: context not defined");
|
|
959
970
|
let n = [];
|
|
960
|
-
for (let r of this.postfix) if (
|
|
971
|
+
for (let r of this.postfix) if (Yn(r)) {
|
|
961
972
|
let t = n.pop(), i;
|
|
962
|
-
if (
|
|
973
|
+
if (wt[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
|
|
963
974
|
else {
|
|
964
975
|
let a = n.pop();
|
|
965
976
|
i = yield e.opts.operators[r.operator](a, t, e);
|
|
@@ -975,26 +986,26 @@ var Bt = class {
|
|
|
975
986
|
function* j(e, t, n = !1) {
|
|
976
987
|
if (e) {
|
|
977
988
|
if ("content" in e) return e.content;
|
|
978
|
-
if (
|
|
979
|
-
if (
|
|
980
|
-
if (
|
|
989
|
+
if (J(e)) return yield Kt(e, t, n);
|
|
990
|
+
if (nr(e)) return yield Jt(e, t);
|
|
991
|
+
if (rr(e)) return yield Wt(e, t, n);
|
|
981
992
|
}
|
|
982
993
|
}
|
|
983
|
-
function*
|
|
994
|
+
function* Wt(e, t, n) {
|
|
984
995
|
w(t.liquid, "FilteredValueToken evaluation requires liquid instance in context"), n ||= t.opts.lenientIf && e.filters.length > 0 && e.filters[0].name === "default";
|
|
985
996
|
let r = yield e.initial.evaluate(t, n);
|
|
986
997
|
for (let n of e.filters) {
|
|
987
998
|
let e = t.liquid.filters[n.name];
|
|
988
|
-
w(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new
|
|
999
|
+
w(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Ht(n, e, t.liquid).render(r, t);
|
|
989
1000
|
}
|
|
990
1001
|
return r;
|
|
991
1002
|
}
|
|
992
|
-
function*
|
|
993
|
-
return yield
|
|
1003
|
+
function* Gt(e, t, n = !1) {
|
|
1004
|
+
return yield h(yield j(e, t, n));
|
|
994
1005
|
}
|
|
995
|
-
function*
|
|
1006
|
+
function* Kt(e, t, n) {
|
|
996
1007
|
let r = [];
|
|
997
|
-
for (let n of e.props) r.push(yield
|
|
1008
|
+
for (let n of e.props) r.push(yield Gt(n, t, !1));
|
|
998
1009
|
try {
|
|
999
1010
|
if (e.variable) {
|
|
1000
1011
|
let i = yield j(e.variable, t, n);
|
|
@@ -1003,86 +1014,86 @@ function* Wt(e, t, n) {
|
|
|
1003
1014
|
return yield t._get(r);
|
|
1004
1015
|
} catch (t) {
|
|
1005
1016
|
if (n && t.name === "InternalUndefinedVariableError") return null;
|
|
1006
|
-
throw new
|
|
1017
|
+
throw new Ce(t, e);
|
|
1007
1018
|
}
|
|
1008
1019
|
}
|
|
1009
|
-
function
|
|
1020
|
+
function qt(e) {
|
|
1010
1021
|
return e.content;
|
|
1011
1022
|
}
|
|
1012
|
-
function*
|
|
1013
|
-
let n = yield
|
|
1014
|
-
return t.memoryLimit.use(r - n + 1),
|
|
1023
|
+
function* Jt(e, t) {
|
|
1024
|
+
let n = yield Gt(e.lhs, t), r = yield Gt(e.rhs, t);
|
|
1025
|
+
return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
|
|
1015
1026
|
}
|
|
1016
|
-
function*
|
|
1027
|
+
function* Yt(e) {
|
|
1017
1028
|
let t = [];
|
|
1018
|
-
for (let n of e) if (
|
|
1029
|
+
for (let n of e) if (Yn(n)) {
|
|
1019
1030
|
for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
|
|
1020
1031
|
t.push(n);
|
|
1021
1032
|
} else yield n;
|
|
1022
1033
|
for (; t.length;) yield t.pop();
|
|
1023
1034
|
}
|
|
1024
1035
|
function M(e, t) {
|
|
1025
|
-
return !
|
|
1036
|
+
return !N(e, t);
|
|
1026
1037
|
}
|
|
1027
|
-
function
|
|
1028
|
-
return e =
|
|
1038
|
+
function N(e, t) {
|
|
1039
|
+
return e = h(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
|
|
1029
1040
|
}
|
|
1030
|
-
var
|
|
1041
|
+
var Xt = {
|
|
1031
1042
|
"==": function* (e, t) {
|
|
1032
|
-
return yield
|
|
1043
|
+
return yield P(e, t);
|
|
1033
1044
|
},
|
|
1034
1045
|
"!=": function* (e, t) {
|
|
1035
|
-
return !(yield
|
|
1046
|
+
return !(yield P(e, t));
|
|
1036
1047
|
},
|
|
1037
1048
|
">": function* (e, t) {
|
|
1038
|
-
return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield
|
|
1049
|
+
return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield h(e)) > (yield h(t));
|
|
1039
1050
|
},
|
|
1040
1051
|
"<": function* (e, t) {
|
|
1041
|
-
return T(e) ? yield e.lt(t) : T(t) ? yield t.gt(e) : (yield
|
|
1052
|
+
return T(e) ? yield e.lt(t) : T(t) ? yield t.gt(e) : (yield h(e)) < (yield h(t));
|
|
1042
1053
|
},
|
|
1043
1054
|
">=": function* (e, t) {
|
|
1044
|
-
return T(e) ? yield e.geq(t) : T(t) ? yield t.leq(e) : (yield
|
|
1055
|
+
return T(e) ? yield e.geq(t) : T(t) ? yield t.leq(e) : (yield h(e)) >= (yield h(t));
|
|
1045
1056
|
},
|
|
1046
1057
|
"<=": function* (e, t) {
|
|
1047
|
-
return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield
|
|
1058
|
+
return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield h(e)) <= (yield h(t));
|
|
1048
1059
|
},
|
|
1049
1060
|
contains: function* (e, t) {
|
|
1050
|
-
return e = yield
|
|
1061
|
+
return e = yield h(e), v(e) ? yield Qt(e, t) : o(e?.indexOf) ? e.indexOf(yield h(t)) > -1 : !1;
|
|
1051
1062
|
},
|
|
1052
1063
|
not: function* (e, t) {
|
|
1053
|
-
return
|
|
1064
|
+
return N(yield h(e), t);
|
|
1054
1065
|
},
|
|
1055
1066
|
and: function* (e, t, n) {
|
|
1056
|
-
return M(yield
|
|
1067
|
+
return M(yield h(e), n) && M(yield h(t), n);
|
|
1057
1068
|
},
|
|
1058
1069
|
or: function* (e, t, n) {
|
|
1059
|
-
return M(yield
|
|
1070
|
+
return M(yield h(e), n) || M(yield h(t), n);
|
|
1060
1071
|
}
|
|
1061
1072
|
};
|
|
1062
|
-
function*
|
|
1063
|
-
return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield
|
|
1073
|
+
function* P(e, t) {
|
|
1074
|
+
return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield h(e), t = yield h(t), v(e) ? v(t) && (yield Zt(e, t)) : e === t);
|
|
1064
1075
|
}
|
|
1065
|
-
function*
|
|
1076
|
+
function* Zt(e, t) {
|
|
1066
1077
|
if (e.length !== t.length) return !1;
|
|
1067
|
-
for (let n = 0; n < e.length; n++) if (!(yield
|
|
1078
|
+
for (let n = 0; n < e.length; n++) if (!(yield P(e[n], t[n]))) return !1;
|
|
1068
1079
|
return !0;
|
|
1069
1080
|
}
|
|
1070
|
-
function*
|
|
1071
|
-
for (let n of e) if (yield
|
|
1081
|
+
function* Qt(e, t) {
|
|
1082
|
+
for (let n of e) if (yield P(n, t)) return !0;
|
|
1072
1083
|
return !1;
|
|
1073
1084
|
}
|
|
1074
|
-
var
|
|
1085
|
+
var $t = class {
|
|
1075
1086
|
constructor(e, t, n, r) {
|
|
1076
1087
|
this.key = e, this.value = t, this.next = n, this.prev = r;
|
|
1077
1088
|
}
|
|
1078
|
-
},
|
|
1089
|
+
}, en = class {
|
|
1079
1090
|
constructor(e, t = 0) {
|
|
1080
|
-
this.limit = e, this.size = t, this.cache = {}, this.head = new
|
|
1091
|
+
this.limit = e, this.size = t, this.cache = {}, this.head = new $t("HEAD", null, null, null), this.tail = new $t("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
|
|
1081
1092
|
}
|
|
1082
1093
|
write(e, t) {
|
|
1083
1094
|
if (this.cache[e]) this.cache[e].value = t;
|
|
1084
1095
|
else {
|
|
1085
|
-
let n = new
|
|
1096
|
+
let n = new $t(e, t, this.head.next, this.head);
|
|
1086
1097
|
this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
|
|
1087
1098
|
}
|
|
1088
1099
|
}
|
|
@@ -1102,7 +1113,7 @@ var Qt = class {
|
|
|
1102
1113
|
this.size > this.limit && this.remove(this.tail.prev.key);
|
|
1103
1114
|
}
|
|
1104
1115
|
};
|
|
1105
|
-
function
|
|
1116
|
+
function tn(e, t) {
|
|
1106
1117
|
let n = document.createElement("base");
|
|
1107
1118
|
n.href = e;
|
|
1108
1119
|
let r = document.getElementsByTagName("head")[0];
|
|
@@ -1112,14 +1123,14 @@ function en(e, t) {
|
|
|
1112
1123
|
let a = i.href;
|
|
1113
1124
|
return r.removeChild(n), a;
|
|
1114
1125
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return e.length && oe(e) !== "/" && (e += "/"),
|
|
1126
|
+
function nn(e, t, n) {
|
|
1127
|
+
return e.length && oe(e) !== "/" && (e += "/"), tn(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
|
|
1117
1128
|
let i = r.split("/").pop();
|
|
1118
1129
|
return /\.\w+$/.test(i) ? e : t + r + n;
|
|
1119
1130
|
});
|
|
1120
1131
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1132
|
+
function rn(e) {
|
|
1133
|
+
return E(this, void 0, void 0, function* () {
|
|
1123
1134
|
return new Promise((t, n) => {
|
|
1124
1135
|
let r = new XMLHttpRequest();
|
|
1125
1136
|
r.onload = () => {
|
|
@@ -1130,93 +1141,93 @@ function nn(e) {
|
|
|
1130
1141
|
});
|
|
1131
1142
|
});
|
|
1132
1143
|
}
|
|
1133
|
-
function
|
|
1144
|
+
function an(e) {
|
|
1134
1145
|
let t = new XMLHttpRequest();
|
|
1135
1146
|
if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
|
|
1136
1147
|
return t.responseText;
|
|
1137
1148
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1149
|
+
function on(e) {
|
|
1150
|
+
return E(this, void 0, void 0, function* () {
|
|
1140
1151
|
return !0;
|
|
1141
1152
|
});
|
|
1142
1153
|
}
|
|
1143
|
-
function
|
|
1154
|
+
function sn(e) {
|
|
1144
1155
|
return !0;
|
|
1145
1156
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1157
|
+
function cn(e) {
|
|
1158
|
+
return tn(e, ".");
|
|
1148
1159
|
}
|
|
1149
|
-
var
|
|
1160
|
+
var ln = /*#__PURE__*/ Object.freeze({
|
|
1150
1161
|
__proto__: null,
|
|
1151
|
-
resolve:
|
|
1152
|
-
readFile:
|
|
1153
|
-
readFileSync:
|
|
1154
|
-
exists:
|
|
1155
|
-
existsSync:
|
|
1156
|
-
dirname:
|
|
1162
|
+
resolve: nn,
|
|
1163
|
+
readFile: rn,
|
|
1164
|
+
readFileSync: an,
|
|
1165
|
+
exists: on,
|
|
1166
|
+
existsSync: sn,
|
|
1167
|
+
dirname: cn,
|
|
1157
1168
|
sep: "/"
|
|
1158
1169
|
});
|
|
1159
|
-
function
|
|
1170
|
+
function un(e, t) {
|
|
1160
1171
|
typeof t == "string" ? e.use(t.length) : t === null || typeof t == "number" || typeof t == "boolean" ? e.use(JSON.stringify(t).length) : Array.isArray(t) ? e.use(t.length + 1) : typeof t == "object" && e.use(2);
|
|
1161
1172
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return e =
|
|
1173
|
+
function dn(e, t, ...n) {
|
|
1174
|
+
return e = h(e), v(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : N(e, this.context) ? t : e;
|
|
1164
1175
|
}
|
|
1165
|
-
function
|
|
1176
|
+
function fn(e, t = 0) {
|
|
1166
1177
|
let n = this.context.memoryLimit;
|
|
1167
|
-
return JSON.stringify(e, (e, t) => (
|
|
1178
|
+
return JSON.stringify(e, (e, t) => (un(n, t), t), t);
|
|
1168
1179
|
}
|
|
1169
|
-
function
|
|
1180
|
+
function pn(e, t = 0) {
|
|
1170
1181
|
let n = this.context.memoryLimit, r = [];
|
|
1171
1182
|
return JSON.stringify(e, function(e, t) {
|
|
1172
|
-
if (typeof t != "object" || !t) return
|
|
1183
|
+
if (typeof t != "object" || !t) return un(n, t), t;
|
|
1173
1184
|
for (; r.length > 0 && r[r.length - 1] !== this;) r.pop();
|
|
1174
|
-
return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t),
|
|
1185
|
+
return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), un(n, t), t);
|
|
1175
1186
|
}, t);
|
|
1176
1187
|
}
|
|
1177
|
-
function
|
|
1188
|
+
function mn(e) {
|
|
1178
1189
|
return Number(e);
|
|
1179
1190
|
}
|
|
1180
|
-
var
|
|
1181
|
-
default:
|
|
1191
|
+
var hn = {
|
|
1192
|
+
default: dn,
|
|
1182
1193
|
raw: {
|
|
1183
1194
|
raw: !0,
|
|
1184
|
-
handler:
|
|
1195
|
+
handler: de
|
|
1185
1196
|
},
|
|
1186
|
-
jsonify:
|
|
1187
|
-
to_integer:
|
|
1188
|
-
json:
|
|
1189
|
-
inspect:
|
|
1190
|
-
},
|
|
1197
|
+
jsonify: fn,
|
|
1198
|
+
to_integer: mn,
|
|
1199
|
+
json: fn,
|
|
1200
|
+
inspect: pn
|
|
1201
|
+
}, gn = {
|
|
1191
1202
|
"&": "&",
|
|
1192
1203
|
"<": "<",
|
|
1193
1204
|
">": ">",
|
|
1194
1205
|
"\"": """,
|
|
1195
1206
|
"'": "'"
|
|
1196
|
-
},
|
|
1207
|
+
}, _n = {
|
|
1197
1208
|
"&": "&",
|
|
1198
1209
|
"<": "<",
|
|
1199
1210
|
">": ">",
|
|
1200
1211
|
""": "\"",
|
|
1201
1212
|
"'": "'"
|
|
1202
1213
|
};
|
|
1203
|
-
function P(e) {
|
|
1204
|
-
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => hn[e]);
|
|
1205
|
-
}
|
|
1206
|
-
function _n(e) {
|
|
1207
|
-
return P.call(this, e);
|
|
1208
|
-
}
|
|
1209
1214
|
function vn(e) {
|
|
1210
|
-
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(
|
|
1215
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => gn[e]);
|
|
1211
1216
|
}
|
|
1212
1217
|
function yn(e) {
|
|
1213
|
-
return
|
|
1218
|
+
return vn.call(this, e);
|
|
1214
1219
|
}
|
|
1215
1220
|
function bn(e) {
|
|
1221
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => _n[e]);
|
|
1222
|
+
}
|
|
1223
|
+
function xn(e) {
|
|
1224
|
+
return vn.call(this, bn.call(this, e));
|
|
1225
|
+
}
|
|
1226
|
+
function Sn(e) {
|
|
1216
1227
|
let t = l(e);
|
|
1217
1228
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "<br />\n");
|
|
1218
1229
|
}
|
|
1219
|
-
function
|
|
1230
|
+
function Cn(e) {
|
|
1220
1231
|
let t = l(e);
|
|
1221
1232
|
this.context.memoryLimit.use(t.length);
|
|
1222
1233
|
let n = /* @__PURE__ */ new Map([
|
|
@@ -1242,33 +1253,33 @@ function xn(e) {
|
|
|
1242
1253
|
}
|
|
1243
1254
|
return r;
|
|
1244
1255
|
}
|
|
1245
|
-
var
|
|
1256
|
+
var wn = /*#__PURE__*/ Object.freeze({
|
|
1246
1257
|
__proto__: null,
|
|
1247
|
-
escape:
|
|
1248
|
-
xml_escape:
|
|
1249
|
-
escape_once:
|
|
1250
|
-
newline_to_br:
|
|
1251
|
-
strip_html:
|
|
1252
|
-
}),
|
|
1258
|
+
escape: vn,
|
|
1259
|
+
xml_escape: yn,
|
|
1260
|
+
escape_once: xn,
|
|
1261
|
+
newline_to_br: Sn,
|
|
1262
|
+
strip_html: Cn
|
|
1263
|
+
}), Tn = class {
|
|
1253
1264
|
constructor(e) {
|
|
1254
1265
|
this.mapping = e, this.sep = "/";
|
|
1255
1266
|
}
|
|
1256
1267
|
exists(e) {
|
|
1257
|
-
return
|
|
1268
|
+
return E(this, void 0, void 0, function* () {
|
|
1258
1269
|
return this.existsSync(e);
|
|
1259
1270
|
});
|
|
1260
1271
|
}
|
|
1261
1272
|
existsSync(e) {
|
|
1262
|
-
return !
|
|
1273
|
+
return !_(this.mapping[e]);
|
|
1263
1274
|
}
|
|
1264
1275
|
readFile(e) {
|
|
1265
|
-
return
|
|
1276
|
+
return E(this, void 0, void 0, function* () {
|
|
1266
1277
|
return this.readFileSync(e);
|
|
1267
1278
|
});
|
|
1268
1279
|
}
|
|
1269
1280
|
readFileSync(e) {
|
|
1270
1281
|
let t = this.mapping[e];
|
|
1271
|
-
if (
|
|
1282
|
+
if (_(t)) throw Error(`ENOENT: ${e}`);
|
|
1272
1283
|
return t;
|
|
1273
1284
|
}
|
|
1274
1285
|
dirname(e) {
|
|
@@ -1291,7 +1302,7 @@ var Sn = /*#__PURE__*/ Object.freeze({
|
|
|
1291
1302
|
keyValueSeparator: ":",
|
|
1292
1303
|
cache: void 0,
|
|
1293
1304
|
extname: "",
|
|
1294
|
-
fs:
|
|
1305
|
+
fs: ln,
|
|
1295
1306
|
dynamicPartials: !0,
|
|
1296
1307
|
jsTruthy: !1,
|
|
1297
1308
|
dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
|
|
@@ -1312,50 +1323,50 @@ var Sn = /*#__PURE__*/ Object.freeze({
|
|
|
1312
1323
|
lenientIf: !1,
|
|
1313
1324
|
globals: {},
|
|
1314
1325
|
keepOutputType: !1,
|
|
1315
|
-
operators:
|
|
1326
|
+
operators: Xt,
|
|
1316
1327
|
groupedExpressions: !1,
|
|
1317
1328
|
memoryLimit: Infinity,
|
|
1318
1329
|
parseLimit: Infinity,
|
|
1319
1330
|
renderLimit: Infinity
|
|
1320
1331
|
};
|
|
1321
|
-
function
|
|
1332
|
+
function En(e) {
|
|
1322
1333
|
if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
|
|
1323
1334
|
let t;
|
|
1324
|
-
t = typeof e.cache == "number" ? e.cache > 0 ? new
|
|
1335
|
+
t = typeof e.cache == "number" ? e.cache > 0 ? new en(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new en(1024) : void 0, e.cache = t;
|
|
1325
1336
|
}
|
|
1326
|
-
return e = Object.assign(Object.assign(Object.assign({}, F), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e),
|
|
1337
|
+
return e = Object.assign(Object.assign(Object.assign({}, F), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), e.fs.dirname && e.fs.sep || !e.relativeReference || (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = On(e.root), e.partials = On(e.partials), e.layouts = On(e.layouts), e.outputEscape = e.outputEscape && Dn(e.outputEscape), e.locale || (e.locale = ct()?.().resolvedOptions().locale ?? "en-US"), e.templates && (e.fs = new Tn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
|
|
1327
1338
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return e === "escape" ?
|
|
1339
|
+
function Dn(e) {
|
|
1340
|
+
return e === "escape" ? vn : e === "json" ? hn.json : (w(o(e), "`outputEscape` need to be of type string or function"), e);
|
|
1330
1341
|
}
|
|
1331
|
-
function
|
|
1342
|
+
function On(e) {
|
|
1332
1343
|
let t = [];
|
|
1333
|
-
return
|
|
1344
|
+
return v(e) && (t = e), a(e) && (t = [e]), t;
|
|
1334
1345
|
}
|
|
1335
|
-
function
|
|
1346
|
+
function kn(e, t) {
|
|
1336
1347
|
let n = !1;
|
|
1337
1348
|
for (let r = 0; r < e.length; r++) {
|
|
1338
1349
|
let i = e[r];
|
|
1339
|
-
|
|
1350
|
+
Jn(i) && (!n && i.trimLeft && An(e[r - 1], t.greedy), q(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && jn(e[r + 1], t.greedy));
|
|
1340
1351
|
}
|
|
1341
1352
|
}
|
|
1342
|
-
function
|
|
1343
|
-
if (!e || !
|
|
1344
|
-
let n = t ? C :
|
|
1353
|
+
function An(e, t) {
|
|
1354
|
+
if (!e || !Xn(e)) return;
|
|
1355
|
+
let n = t ? C : Ae;
|
|
1345
1356
|
for (; S[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
|
|
1346
1357
|
}
|
|
1347
|
-
function
|
|
1348
|
-
if (!e || !
|
|
1349
|
-
let n = t ? C :
|
|
1358
|
+
function jn(e, t) {
|
|
1359
|
+
if (!e || !Xn(e)) return;
|
|
1360
|
+
let n = t ? C : Ae;
|
|
1350
1361
|
for (; S[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
|
|
1351
1362
|
e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
|
|
1352
1363
|
}
|
|
1353
|
-
var
|
|
1364
|
+
var I = class {
|
|
1354
1365
|
constructor(e, t = F.operators, n, r, i = !1) {
|
|
1355
|
-
this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie =
|
|
1366
|
+
this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = qe(t), this.literalTrie = qe(Ge), this.groupedExpressions = i;
|
|
1356
1367
|
}
|
|
1357
1368
|
readExpression() {
|
|
1358
|
-
return new
|
|
1369
|
+
return new Ut(this.readExpressionTokens());
|
|
1359
1370
|
}
|
|
1360
1371
|
*readExpressionTokens() {
|
|
1361
1372
|
for (; this.p < this.N;) {
|
|
@@ -1372,16 +1383,16 @@ var L = class {
|
|
|
1372
1383
|
readOperator() {
|
|
1373
1384
|
this.skipBlank();
|
|
1374
1385
|
let e = this.matchTrie(this.opTrie);
|
|
1375
|
-
if (e !== -1) return new
|
|
1386
|
+
if (e !== -1) return new Tt(this.input, this.p, this.p = e, this.file);
|
|
1376
1387
|
}
|
|
1377
1388
|
matchTrie(e) {
|
|
1378
1389
|
let t = e, n = this.p, r;
|
|
1379
1390
|
for (; t[this.input[n]] && n < this.N;) t = t[this.input[n++]], t.end && (r = t);
|
|
1380
|
-
return !r || r.needBoundary &&
|
|
1391
|
+
return !r || r.needBoundary && Pe(this.peek(n - this.p)) ? -1 : n;
|
|
1381
1392
|
}
|
|
1382
1393
|
readFilteredValue() {
|
|
1383
1394
|
let e = this.p, t = this.readExpression();
|
|
1384
|
-
return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new
|
|
1395
|
+
return this.assert(t.valid(), `invalid value expression: ${this.snapshot()}`), new Lt(t, this.readFilters(), this.input, e, this.p, this.file);
|
|
1385
1396
|
}
|
|
1386
1397
|
readFilters() {
|
|
1387
1398
|
let e = [];
|
|
@@ -1392,7 +1403,7 @@ var L = class {
|
|
|
1392
1403
|
}
|
|
1393
1404
|
}
|
|
1394
1405
|
readFilter() {
|
|
1395
|
-
if (this.skipBlank(), this.end() || this.peek() === ")") return null;
|
|
1406
|
+
if (this.skipBlank(), this.end() || this.peek() === ")" || this.peek() === ",") return null;
|
|
1396
1407
|
this.assert(this.read() === "|", "expected \"|\" before filter");
|
|
1397
1408
|
let e = this.readIdentifier();
|
|
1398
1409
|
if (!e.size()) return this.assert(this.end(), "expected filter name"), null;
|
|
@@ -1402,8 +1413,8 @@ var L = class {
|
|
|
1402
1413
|
let e = this.readFilterArg();
|
|
1403
1414
|
e && t.push(e), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|" || this.peek() === ")", () => `unexpected character ${this.snapshot()}`);
|
|
1404
1415
|
} while (this.peek() === ",");
|
|
1405
|
-
else if (!(this.peek() === "|" || this.peek() === ")" || this.end())) throw this.error("expected \":\" after filter name");
|
|
1406
|
-
return new
|
|
1416
|
+
else if (!(this.peek() === "|" || this.peek() === ")" || this.peek() === "," || this.end())) throw this.error("expected \":\" after filter name");
|
|
1417
|
+
return new Dt(e.getText(), t, this.input, e.begin, this.p, this.file);
|
|
1407
1418
|
}
|
|
1408
1419
|
readFilterArg() {
|
|
1409
1420
|
let e = this.readValue();
|
|
@@ -1419,7 +1430,7 @@ var L = class {
|
|
|
1419
1430
|
let n = this.readTopLevelToken(e);
|
|
1420
1431
|
t.push(n);
|
|
1421
1432
|
}
|
|
1422
|
-
return
|
|
1433
|
+
return kn(t, e), t;
|
|
1423
1434
|
}
|
|
1424
1435
|
readTopLevelToken(e) {
|
|
1425
1436
|
let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
|
|
@@ -1428,23 +1439,23 @@ var L = class {
|
|
|
1428
1439
|
readHTMLToken(e) {
|
|
1429
1440
|
let t = this.p;
|
|
1430
1441
|
for (; this.p < this.N && !e.some((e) => this.match(e));) ++this.p;
|
|
1431
|
-
return new
|
|
1442
|
+
return new yt(this.input, t, this.p, this.file);
|
|
1432
1443
|
}
|
|
1433
1444
|
readTagToken(e) {
|
|
1434
1445
|
let { file: t, input: n } = this, r = this.p;
|
|
1435
1446
|
if (this.readToDelimiter(e.tagDelimiterRight) === -1) throw this.error(`tag ${this.snapshot(r)} not closed`, r);
|
|
1436
|
-
let i = new
|
|
1447
|
+
let i = new _t(n, r, this.p, e, t);
|
|
1437
1448
|
return i.name === "raw" && (this.rawBeginAt = r), i;
|
|
1438
1449
|
}
|
|
1439
1450
|
readToDelimiter(e, t = !1) {
|
|
1440
|
-
for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() &
|
|
1451
|
+
for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() & ke) this.readQuoted();
|
|
1441
1452
|
else if (++this.p, this.rmatch(e)) return this.p;
|
|
1442
1453
|
return -1;
|
|
1443
1454
|
}
|
|
1444
1455
|
readOutputToken(e = F) {
|
|
1445
1456
|
let { file: t, input: n } = this, { outputDelimiterRight: r } = e, i = this.p;
|
|
1446
1457
|
if (this.readToDelimiter(r, !0) === -1) throw this.error(`output ${this.snapshot(i)} not closed`, i);
|
|
1447
|
-
return new
|
|
1458
|
+
return new vt(n, i, this.p, e, t);
|
|
1448
1459
|
}
|
|
1449
1460
|
readEndrawOrRawContent(e) {
|
|
1450
1461
|
let { tagDelimiterLeft: t, tagDelimiterRight: n } = e, r = this.p, i = this.readTo(t) - t.length;
|
|
@@ -1452,7 +1463,7 @@ var L = class {
|
|
|
1452
1463
|
else for (; this.p <= this.N;) {
|
|
1453
1464
|
if (this.rmatch(n)) {
|
|
1454
1465
|
let t = this.p;
|
|
1455
|
-
return r === i ? (this.rawBeginAt = -1, new
|
|
1466
|
+
return r === i ? (this.rawBeginAt = -1, new _t(this.input, r, t, e, this.file)) : (this.p = i, new yt(this.input, r, i, this.file));
|
|
1456
1467
|
}
|
|
1457
1468
|
if (this.rmatch(t)) break;
|
|
1458
1469
|
this.p++;
|
|
@@ -1472,16 +1483,16 @@ var L = class {
|
|
|
1472
1483
|
let t = this.p;
|
|
1473
1484
|
this.readToDelimiter("\n");
|
|
1474
1485
|
let n = this.p;
|
|
1475
|
-
return new
|
|
1486
|
+
return new It(this.input, t, n, e, this.file);
|
|
1476
1487
|
}
|
|
1477
1488
|
error(e, t = this.p) {
|
|
1478
|
-
return new
|
|
1489
|
+
return new ye(e, new xt(this.input, t, this.N, this.file));
|
|
1479
1490
|
}
|
|
1480
1491
|
assert(e, t, n) {
|
|
1481
1492
|
if (!e) throw this.error(typeof t == "function" ? t() : t, n);
|
|
1482
1493
|
}
|
|
1483
1494
|
snapshot(e = this.p) {
|
|
1484
|
-
return JSON.stringify(
|
|
1495
|
+
return JSON.stringify(pe(this.input.slice(e, this.N), 32));
|
|
1485
1496
|
}
|
|
1486
1497
|
readWord() {
|
|
1487
1498
|
return this.readIdentifier();
|
|
@@ -1489,8 +1500,8 @@ var L = class {
|
|
|
1489
1500
|
readIdentifier() {
|
|
1490
1501
|
this.skipBlank();
|
|
1491
1502
|
let e = this.p;
|
|
1492
|
-
for (; !this.end() &&
|
|
1493
|
-
return new
|
|
1503
|
+
for (; !this.end() && Pe(this.peek());) ++this.p;
|
|
1504
|
+
return new xt(this.input, e, this.p, this.file);
|
|
1494
1505
|
}
|
|
1495
1506
|
readNonEmptyIdentifier() {
|
|
1496
1507
|
let e = this.readIdentifier();
|
|
@@ -1514,7 +1525,7 @@ var L = class {
|
|
|
1514
1525
|
let r;
|
|
1515
1526
|
this.skipBlank();
|
|
1516
1527
|
let i = a(e) ? e : e ? "=" : ":";
|
|
1517
|
-
return this.peek() === i && (++this.p, r = this.readValue()), new
|
|
1528
|
+
return this.peek() === i && (++this.p, r = this.readValue()), new Ot(this.input, t, this.p, n, r, this.file);
|
|
1518
1529
|
}
|
|
1519
1530
|
remaining() {
|
|
1520
1531
|
return this.input.slice(this.p, this.N);
|
|
@@ -1537,18 +1548,18 @@ var L = class {
|
|
|
1537
1548
|
let e = this.p, t = this.readLiteral() || this.readQuoted() || this.readNumber();
|
|
1538
1549
|
!t && this.peek() === "(" && (t = this.readGroupOrRange());
|
|
1539
1550
|
let n = this.readProperties(!t);
|
|
1540
|
-
return n.length ? new
|
|
1551
|
+
return n.length ? new Et(t, n, this.input, e, this.p) : t;
|
|
1541
1552
|
}
|
|
1542
1553
|
readScopeValue() {
|
|
1543
1554
|
this.skipBlank();
|
|
1544
1555
|
let e = this.p, t = this.readProperties();
|
|
1545
|
-
if (t.length) return new
|
|
1556
|
+
if (t.length) return new Et(void 0, t, this.input, e, this.p);
|
|
1546
1557
|
}
|
|
1547
1558
|
readProperties(e = !0) {
|
|
1548
1559
|
let t = [];
|
|
1549
1560
|
for (;;) if (this.peek() === "[") {
|
|
1550
1561
|
this.p++;
|
|
1551
|
-
let e = this.readValue() || new
|
|
1562
|
+
let e = this.readValue() || new xt(this.input, this.p, this.p, this.file);
|
|
1552
1563
|
this.assert(this.readTo("]") !== -1, "[ not closed"), t.push(e);
|
|
1553
1564
|
} else {
|
|
1554
1565
|
if (e && !t.length) {
|
|
@@ -1570,13 +1581,13 @@ var L = class {
|
|
|
1570
1581
|
readNumber() {
|
|
1571
1582
|
this.skipBlank();
|
|
1572
1583
|
let e = !1, t = !1, n = 0;
|
|
1573
|
-
for (this.peekType() &
|
|
1584
|
+
for (this.peekType() & Me && n++; this.p + n <= this.N;) if (this.peekType(n) & je) t = !0, n++;
|
|
1574
1585
|
else if (this.peek(n) === "." && this.peek(n + 1) !== ".") {
|
|
1575
1586
|
if (e || !t) return;
|
|
1576
1587
|
e = !0, n++;
|
|
1577
1588
|
} else break;
|
|
1578
|
-
if (t && !
|
|
1579
|
-
let e = new
|
|
1589
|
+
if (t && !Pe(this.peek(n))) {
|
|
1590
|
+
let e = new bt(this.input, this.p, this.p + n, this.file);
|
|
1580
1591
|
return this.advance(n), e;
|
|
1581
1592
|
}
|
|
1582
1593
|
}
|
|
@@ -1584,7 +1595,7 @@ var L = class {
|
|
|
1584
1595
|
this.skipBlank();
|
|
1585
1596
|
let e = this.matchTrie(this.literalTrie);
|
|
1586
1597
|
if (e === -1) return;
|
|
1587
|
-
let t = new
|
|
1598
|
+
let t = new St(this.input, this.p, e, this.file);
|
|
1588
1599
|
return this.p = e, t;
|
|
1589
1600
|
}
|
|
1590
1601
|
readGroupOrRange() {
|
|
@@ -1596,13 +1607,13 @@ var L = class {
|
|
|
1596
1607
|
if (this.skipBlank(), this.peek() === "." && this.peek(1) === ".") {
|
|
1597
1608
|
this.p += 2;
|
|
1598
1609
|
let n = this.readValueOrThrow();
|
|
1599
|
-
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new
|
|
1610
|
+
return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Ft(this.input, e, this.p, t, n, this.file);
|
|
1600
1611
|
}
|
|
1601
1612
|
if (this.groupedExpressions) {
|
|
1602
|
-
let n = new
|
|
1613
|
+
let n = new Ut([t, ...this.readExpressionTokens()]);
|
|
1603
1614
|
this.assert(n.valid(), () => `invalid value expression: ${this.snapshot()}`);
|
|
1604
1615
|
let r = this.readFilters();
|
|
1605
|
-
return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new
|
|
1616
|
+
return this.skipBlank(), this.assert(this.read() === ")", "unbalanced parentheses"), new Lt(n, r, this.input, e, this.p, this.file);
|
|
1606
1617
|
}
|
|
1607
1618
|
throw this.error("invalid range syntax");
|
|
1608
1619
|
}
|
|
@@ -1613,11 +1624,11 @@ var L = class {
|
|
|
1613
1624
|
readQuoted() {
|
|
1614
1625
|
this.skipBlank();
|
|
1615
1626
|
let e = this.p;
|
|
1616
|
-
if (!(this.peekType() &
|
|
1627
|
+
if (!(this.peekType() & ke)) return;
|
|
1617
1628
|
++this.p;
|
|
1618
1629
|
let t = !1;
|
|
1619
1630
|
for (; this.p < this.N && (++this.p, this.input[this.p - 1] !== this.input[e] || t);) t ? t = !1 : this.input[this.p - 1] === "\\" && (t = !0);
|
|
1620
|
-
return new
|
|
1631
|
+
return new Pt(this.input, e, this.p, this.file);
|
|
1621
1632
|
}
|
|
1622
1633
|
*readFileNameTemplate(e) {
|
|
1623
1634
|
let { outputDelimiterLeft: t } = e, n = [
|
|
@@ -1647,7 +1658,7 @@ var L = class {
|
|
|
1647
1658
|
skipBlank() {
|
|
1648
1659
|
for (; this.peekType() & C;) ++this.p;
|
|
1649
1660
|
}
|
|
1650
|
-
},
|
|
1661
|
+
}, Mn = class {
|
|
1651
1662
|
constructor(e, t) {
|
|
1652
1663
|
this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
|
|
1653
1664
|
}
|
|
@@ -1662,7 +1673,7 @@ var L = class {
|
|
|
1662
1673
|
this.trigger("start");
|
|
1663
1674
|
let e;
|
|
1664
1675
|
for (; !this.stopRequested && (e = this.tokens.shift());) {
|
|
1665
|
-
if (this.trigger("token", e) ||
|
|
1676
|
+
if (this.trigger("token", e) || q(e) && this.trigger(`tag:${e.name}`, e)) continue;
|
|
1666
1677
|
let t = this.parseToken(e, this.tokens);
|
|
1667
1678
|
this.trigger("template", t);
|
|
1668
1679
|
}
|
|
@@ -1671,18 +1682,18 @@ var L = class {
|
|
|
1671
1682
|
stop() {
|
|
1672
1683
|
return this.stopRequested = !0, this;
|
|
1673
1684
|
}
|
|
1674
|
-
},
|
|
1685
|
+
}, Nn = class {
|
|
1675
1686
|
constructor(e) {
|
|
1676
1687
|
this.token = e;
|
|
1677
1688
|
}
|
|
1678
|
-
},
|
|
1689
|
+
}, L = class extends Nn {
|
|
1679
1690
|
constructor(e, t, n) {
|
|
1680
1691
|
super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
|
|
1681
1692
|
}
|
|
1682
|
-
},
|
|
1693
|
+
}, R = class {
|
|
1683
1694
|
constructor(e, t) {
|
|
1684
1695
|
this.hash = {};
|
|
1685
|
-
let n = e instanceof
|
|
1696
|
+
let n = e instanceof I ? e : new I(e, {});
|
|
1686
1697
|
for (let e of n.readHashes(t)) this.hash[e.name.content] = e.value;
|
|
1687
1698
|
}
|
|
1688
1699
|
*render(e) {
|
|
@@ -1691,22 +1702,22 @@ var L = class {
|
|
|
1691
1702
|
return t;
|
|
1692
1703
|
}
|
|
1693
1704
|
};
|
|
1694
|
-
function
|
|
1695
|
-
return class extends
|
|
1705
|
+
function Pn(e) {
|
|
1706
|
+
return class extends L {
|
|
1696
1707
|
constructor(t, n, r) {
|
|
1697
1708
|
super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
|
|
1698
1709
|
}
|
|
1699
1710
|
*render(t, n) {
|
|
1700
|
-
let r = yield new
|
|
1711
|
+
let r = yield new R(this.token.args, t.opts.keyValueSeparator).render(t);
|
|
1701
1712
|
return yield e.render.call(this, t, n, r);
|
|
1702
1713
|
}
|
|
1703
1714
|
};
|
|
1704
1715
|
}
|
|
1705
|
-
var
|
|
1716
|
+
var z = class {
|
|
1706
1717
|
constructor(e, t) {
|
|
1707
1718
|
this.filters = [];
|
|
1708
|
-
let n = typeof e == "string" ? new
|
|
1709
|
-
this.initial = n.initial, this.filters = n.filters.map((e) => new
|
|
1719
|
+
let n = typeof e == "string" ? new I(e, t.options.operators, void 0, void 0, t.options.groupedExpressions).readFilteredValue() : e;
|
|
1720
|
+
this.initial = n.initial, this.filters = n.filters.map((e) => new Ht(e, this.getFilter(t, e.name), t));
|
|
1710
1721
|
}
|
|
1711
1722
|
*value(e, t) {
|
|
1712
1723
|
t ||= e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
|
|
@@ -1718,37 +1729,37 @@ var B = class {
|
|
|
1718
1729
|
let n = e.filters[t];
|
|
1719
1730
|
return w(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
|
|
1720
1731
|
}
|
|
1721
|
-
},
|
|
1732
|
+
}, Fn = class extends Nn {
|
|
1722
1733
|
constructor(e, t) {
|
|
1723
1734
|
super(e);
|
|
1724
|
-
let n = new
|
|
1725
|
-
this.value = new
|
|
1735
|
+
let n = new I(e.input, t.options.operators, e.file, e.contentRange, t.options.groupedExpressions);
|
|
1736
|
+
this.value = new z(n.readFilteredValue(), t);
|
|
1726
1737
|
let r = this.value.filters, i = t.options.outputEscape;
|
|
1727
1738
|
if (!r[r.length - 1]?.raw && i) {
|
|
1728
|
-
let e = new
|
|
1729
|
-
r.push(new
|
|
1739
|
+
let e = new Dt(toString.call(i), [], "", 0, 0);
|
|
1740
|
+
r.push(new Ht(e, i, t));
|
|
1730
1741
|
}
|
|
1731
1742
|
}
|
|
1732
1743
|
*render(e, t) {
|
|
1733
|
-
let n = yield
|
|
1744
|
+
let n = yield h(yield this.value.value(e, !1));
|
|
1734
1745
|
t.write(n);
|
|
1735
1746
|
}
|
|
1736
1747
|
*arguments() {
|
|
1737
1748
|
yield this.value;
|
|
1738
1749
|
}
|
|
1739
|
-
},
|
|
1750
|
+
}, In = class extends Nn {
|
|
1740
1751
|
constructor(e) {
|
|
1741
1752
|
super(e), this.str = e.getContent();
|
|
1742
1753
|
}
|
|
1743
1754
|
*render(e, t) {
|
|
1744
1755
|
t.write(this.str);
|
|
1745
1756
|
}
|
|
1746
|
-
},
|
|
1757
|
+
}, B = class e {
|
|
1747
1758
|
constructor(e, t) {
|
|
1748
1759
|
this.segments = e, this.location = t;
|
|
1749
1760
|
}
|
|
1750
1761
|
toString() {
|
|
1751
|
-
return
|
|
1762
|
+
return Kn(this.segments, !0);
|
|
1752
1763
|
}
|
|
1753
1764
|
toArray() {
|
|
1754
1765
|
function* t(...n) {
|
|
@@ -1756,16 +1767,16 @@ var B = class {
|
|
|
1756
1767
|
}
|
|
1757
1768
|
return Array.from(t(...this.segments));
|
|
1758
1769
|
}
|
|
1759
|
-
},
|
|
1770
|
+
}, Ln = class {
|
|
1760
1771
|
constructor() {
|
|
1761
1772
|
this.map = /* @__PURE__ */ new Map();
|
|
1762
1773
|
}
|
|
1763
1774
|
get(e) {
|
|
1764
|
-
let t =
|
|
1775
|
+
let t = Kn([e.segments[0]]);
|
|
1765
1776
|
return this.map.has(t) || this.map.set(t, []), this.map.get(t);
|
|
1766
1777
|
}
|
|
1767
1778
|
has(e) {
|
|
1768
|
-
return this.map.has(
|
|
1779
|
+
return this.map.has(Kn([e.segments[0]]));
|
|
1769
1780
|
}
|
|
1770
1781
|
push(e) {
|
|
1771
1782
|
this.get(e).push(e);
|
|
@@ -1773,9 +1784,9 @@ var B = class {
|
|
|
1773
1784
|
asObject() {
|
|
1774
1785
|
return Object.fromEntries(this.map);
|
|
1775
1786
|
}
|
|
1776
|
-
},
|
|
1777
|
-
function*
|
|
1778
|
-
let r = new
|
|
1787
|
+
}, Rn = { partials: !0 };
|
|
1788
|
+
function* zn(e, t, n) {
|
|
1789
|
+
let r = new Ln(), i = new Ln(), o = new Ln(), s = new Bn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
|
|
1779
1790
|
function l(e, t) {
|
|
1780
1791
|
r.push(e);
|
|
1781
1792
|
let n = t.alias(e);
|
|
@@ -1786,14 +1797,14 @@ function* In(e, t, n) {
|
|
|
1786
1797
|
let n = e.segments[0];
|
|
1787
1798
|
a(n) && !t.has(n) && i.push(e);
|
|
1788
1799
|
}
|
|
1789
|
-
for (let n of e.segments) n instanceof
|
|
1800
|
+
for (let n of e.segments) n instanceof B && l(n, t);
|
|
1790
1801
|
}
|
|
1791
1802
|
function* u(e, r) {
|
|
1792
|
-
if (e.arguments) for (let t of e.arguments()) for (let e of
|
|
1803
|
+
if (e.arguments) for (let t of e.arguments()) for (let e of Vn(t)) l(e, r);
|
|
1793
1804
|
if (e.localScope) for (let t of e.localScope()) {
|
|
1794
1805
|
r.add(t.content), r.deleteAlias(t.content);
|
|
1795
1806
|
let [e, n] = t.getPosition();
|
|
1796
|
-
o.push(new
|
|
1807
|
+
o.push(new B([t.content], {
|
|
1797
1808
|
row: e,
|
|
1798
1809
|
col: n,
|
|
1799
1810
|
file: t.file
|
|
@@ -1807,12 +1818,12 @@ function* In(e, t, n) {
|
|
|
1807
1818
|
return;
|
|
1808
1819
|
}
|
|
1809
1820
|
if (c.has(i.name)) return;
|
|
1810
|
-
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new
|
|
1821
|
+
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Bn(o) : r.push(o);
|
|
1811
1822
|
for (let e of i.scope) if (a(e)) o.add(e);
|
|
1812
1823
|
else {
|
|
1813
1824
|
let [t, n] = e;
|
|
1814
1825
|
o.add(t);
|
|
1815
|
-
let r = Array.from(
|
|
1826
|
+
let r = Array.from(Vn(n));
|
|
1816
1827
|
r.length && s.setAlias(t, r[0].segments);
|
|
1817
1828
|
}
|
|
1818
1829
|
for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
|
|
@@ -1831,13 +1842,13 @@ function* In(e, t, n) {
|
|
|
1831
1842
|
locals: o.asObject()
|
|
1832
1843
|
};
|
|
1833
1844
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1845
|
+
function V(e, t = {}) {
|
|
1846
|
+
return D(zn(e, Object.assign(Object.assign({}, Rn), t).partials, !1));
|
|
1836
1847
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return
|
|
1848
|
+
function H(e, t = {}) {
|
|
1849
|
+
return O(zn(e, Object.assign(Object.assign({}, Rn), t).partials, !0));
|
|
1839
1850
|
}
|
|
1840
|
-
var
|
|
1851
|
+
var Bn = class {
|
|
1841
1852
|
constructor(e) {
|
|
1842
1853
|
this.stack = [{
|
|
1843
1854
|
names: e,
|
|
@@ -1864,7 +1875,7 @@ var Ln = class {
|
|
|
1864
1875
|
let t = e.segments[0];
|
|
1865
1876
|
if (!a(t)) return;
|
|
1866
1877
|
let n = this.getAlias(t);
|
|
1867
|
-
if (n !== void 0) return new
|
|
1878
|
+
if (n !== void 0) return new B([...n, ...e.segments.slice(1)], e.location);
|
|
1868
1879
|
}
|
|
1869
1880
|
setAlias(e, t) {
|
|
1870
1881
|
this.stack[this.stack.length - 1].aliases.set(e, t);
|
|
@@ -1879,45 +1890,45 @@ var Ln = class {
|
|
|
1879
1890
|
}
|
|
1880
1891
|
}
|
|
1881
1892
|
};
|
|
1882
|
-
function*
|
|
1883
|
-
Y(e) ? yield*
|
|
1893
|
+
function* Vn(e) {
|
|
1894
|
+
Y(e) ? yield* U(e) : e instanceof z && (yield* Hn(e));
|
|
1884
1895
|
}
|
|
1885
|
-
function*
|
|
1886
|
-
for (let t of e.initial.postfix) Y(t) && (yield*
|
|
1887
|
-
for (let t of e.filters) for (let e of t.args)
|
|
1896
|
+
function* Hn(e) {
|
|
1897
|
+
for (let t of e.initial.postfix) Y(t) && (yield* U(t));
|
|
1898
|
+
for (let t of e.filters) for (let e of t.args) Vt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
|
|
1888
1899
|
}
|
|
1889
|
-
function*
|
|
1890
|
-
|
|
1900
|
+
function* U(e) {
|
|
1901
|
+
nr(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : rr(e) ? yield* Un(e) : J(e) && (yield Wn(e));
|
|
1891
1902
|
}
|
|
1892
|
-
function*
|
|
1893
|
-
if (
|
|
1894
|
-
for (let t of e.initial.postfix) Y(t) && (yield*
|
|
1895
|
-
for (let t of e.filters) for (let e of t.args)
|
|
1903
|
+
function* Un(e) {
|
|
1904
|
+
if (rr(e)) {
|
|
1905
|
+
for (let t of e.initial.postfix) Y(t) && (yield* U(t));
|
|
1906
|
+
for (let t of e.filters) for (let e of t.args) Vt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
|
|
1896
1907
|
}
|
|
1897
1908
|
}
|
|
1898
|
-
function
|
|
1909
|
+
function Wn(e) {
|
|
1899
1910
|
let t = [], n = e.file, r = e.props[0];
|
|
1900
|
-
n ||= r.file,
|
|
1901
|
-
for (let r of e.props.slice(1)) n ||= r.file,
|
|
1911
|
+
n ||= r.file, Qn(r) || er(r) || tr(r) ? t.push(r.content) : J(r) && t.push(...Wn(r).segments);
|
|
1912
|
+
for (let r of e.props.slice(1)) n ||= r.file, Qn(r) || er(r) || tr(r) ? t.push(r.content) : J(r) && t.push(Wn(r));
|
|
1902
1913
|
let [i, a] = e.getPosition();
|
|
1903
|
-
return new
|
|
1914
|
+
return new B(t, {
|
|
1904
1915
|
row: i,
|
|
1905
1916
|
col: a,
|
|
1906
1917
|
file: n
|
|
1907
1918
|
});
|
|
1908
1919
|
}
|
|
1909
|
-
var
|
|
1910
|
-
function
|
|
1920
|
+
var Gn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
|
|
1921
|
+
function Kn(e, t = !1) {
|
|
1911
1922
|
let n = [], r = e[0];
|
|
1912
|
-
a(r) && (!t || r.match(
|
|
1913
|
-
for (let t of e.slice(1)) t instanceof
|
|
1923
|
+
a(r) && (!t || r.match(Gn) ? n.push(`${r}`) : n.push(`['${r}']`));
|
|
1924
|
+
for (let t of e.slice(1)) t instanceof B ? n.push(`[${Kn(t.segments)}]`) : a(t) ? t.match(Gn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
|
|
1914
1925
|
return n.join("");
|
|
1915
1926
|
}
|
|
1916
|
-
var
|
|
1927
|
+
var W;
|
|
1917
1928
|
(function(e) {
|
|
1918
1929
|
e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
|
|
1919
|
-
})(
|
|
1920
|
-
var
|
|
1930
|
+
})(W ||= {});
|
|
1931
|
+
var qn = class {
|
|
1921
1932
|
constructor(e) {
|
|
1922
1933
|
if (this.options = e, e.relativeReference) {
|
|
1923
1934
|
let t = e.fs.sep;
|
|
@@ -1931,9 +1942,9 @@ var Wn = class {
|
|
|
1931
1942
|
this.shouldLoadRelative = (e) => n.some((t) => e.startsWith(t));
|
|
1932
1943
|
} else this.shouldLoadRelative = (e) => !1;
|
|
1933
1944
|
let t = e.fs;
|
|
1934
|
-
this.contains =
|
|
1945
|
+
this.contains = Ye(t.contains?.bind(t) || (() => E(this, void 0, void 0, function* () {
|
|
1935
1946
|
return !0;
|
|
1936
|
-
})), t.containsSync?.bind(t) || (() => !0)), this.exists =
|
|
1947
|
+
})), t.containsSync?.bind(t) || (() => !0)), this.exists = Ye(t.exists?.bind(t) || (() => E(this, void 0, void 0, function* () {
|
|
1937
1948
|
return !1;
|
|
1938
1949
|
})), t.existsSync?.bind(t));
|
|
1939
1950
|
}
|
|
@@ -1966,15 +1977,15 @@ var Wn = class {
|
|
|
1966
1977
|
let n = /* @__PURE__ */ Error("ENOENT");
|
|
1967
1978
|
return n.message = `ENOENT: Failed to lookup "${e}" in "${t}"`, n.code = "ENOENT", n;
|
|
1968
1979
|
}
|
|
1969
|
-
},
|
|
1980
|
+
}, G = class {
|
|
1970
1981
|
constructor(e) {
|
|
1971
|
-
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new
|
|
1982
|
+
this.liquid = e, this.cache = this.liquid.options.cache, this.fs = this.liquid.options.fs, this.parseFile = this.cache ? this._parseFileCached : this._parseFile, this.loader = new qn(this.liquid.options), this.parseLimit = new ht("parse length", e.options.parseLimit), this.readFile = Ye(this.fs.readFile?.bind(this.fs) || (() => E(this, void 0, void 0, function* () {
|
|
1972
1983
|
throw Error("readFile not implemented");
|
|
1973
1984
|
})), this.fs.readFileSync?.bind(this.fs));
|
|
1974
1985
|
}
|
|
1975
1986
|
parse(e, t) {
|
|
1976
1987
|
e = String(e), this.parseLimit.use(e.length);
|
|
1977
|
-
let n = new
|
|
1988
|
+
let n = new I(e, this.liquid.options.operators, t, void 0, this.liquid.options.groupedExpressions).readTopLevelTokens(this.liquid.options);
|
|
1978
1989
|
return this.parseTokens(n);
|
|
1979
1990
|
}
|
|
1980
1991
|
parseTokens(e) {
|
|
@@ -1985,27 +1996,27 @@ var Wn = class {
|
|
|
1985
1996
|
if (this.liquid.options.catchAllErrors) r.push(e);
|
|
1986
1997
|
else throw e;
|
|
1987
1998
|
}
|
|
1988
|
-
if (r.length) throw new
|
|
1999
|
+
if (r.length) throw new Se(r);
|
|
1989
2000
|
return n;
|
|
1990
2001
|
}
|
|
1991
2002
|
parseToken(e, t) {
|
|
1992
2003
|
try {
|
|
1993
|
-
if (
|
|
2004
|
+
if (q(e)) {
|
|
1994
2005
|
let n = this.liquid.tags[e.name];
|
|
1995
2006
|
return w(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
|
|
1996
2007
|
}
|
|
1997
|
-
return
|
|
2008
|
+
return Zn(e) ? new Fn(e, this.liquid) : new In(e);
|
|
1998
2009
|
} catch (t) {
|
|
1999
|
-
throw x.is(t) ? t : new
|
|
2010
|
+
throw x.is(t) ? t : new be(t, e);
|
|
2000
2011
|
}
|
|
2001
2012
|
}
|
|
2002
2013
|
parseStream(e) {
|
|
2003
|
-
return new
|
|
2014
|
+
return new Mn(e, (e, t) => this.parseToken(e, t));
|
|
2004
2015
|
}
|
|
2005
|
-
*_parseFileCached(e, t, n =
|
|
2016
|
+
*_parseFileCached(e, t, n = W.Root, r) {
|
|
2006
2017
|
let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
|
|
2007
2018
|
if (o) return o;
|
|
2008
|
-
let s = this._parseFile(e, t, n, r), c = t ? yield s :
|
|
2019
|
+
let s = this._parseFile(e, t, n, r), c = t ? yield s : D(s);
|
|
2009
2020
|
i.write(a, c);
|
|
2010
2021
|
try {
|
|
2011
2022
|
return yield c;
|
|
@@ -2013,46 +2024,49 @@ var Wn = class {
|
|
|
2013
2024
|
throw i.remove(a), e;
|
|
2014
2025
|
}
|
|
2015
2026
|
}
|
|
2016
|
-
*_parseFile(e, t, n =
|
|
2027
|
+
*_parseFile(e, t, n = W.Root, r) {
|
|
2017
2028
|
let i = yield this.loader.lookup(e, n, t, r);
|
|
2018
2029
|
return this.parse(yield this.readFile(!!t, i), i);
|
|
2019
2030
|
}
|
|
2020
|
-
},
|
|
2031
|
+
}, K;
|
|
2021
2032
|
(function(e) {
|
|
2022
2033
|
e[e.Number = 1] = "Number", e[e.Literal = 2] = "Literal", e[e.Tag = 4] = "Tag", e[e.Output = 8] = "Output", e[e.HTML = 16] = "HTML", e[e.Filter = 32] = "Filter", e[e.Hash = 64] = "Hash", e[e.PropertyAccess = 128] = "PropertyAccess", e[e.Word = 256] = "Word", e[e.Range = 512] = "Range", e[e.Quoted = 1024] = "Quoted", e[e.Operator = 2048] = "Operator", e[e.FilteredValue = 4096] = "FilteredValue", e[e.GroupedExpression = 8192] = "GroupedExpression", e[e.Delimited = 12] = "Delimited";
|
|
2023
|
-
})(
|
|
2024
|
-
function Gn(e) {
|
|
2025
|
-
return !!(X(e) & q.Delimited);
|
|
2026
|
-
}
|
|
2027
|
-
function Kn(e) {
|
|
2028
|
-
return X(e) === q.Operator;
|
|
2029
|
-
}
|
|
2030
|
-
function qn(e) {
|
|
2031
|
-
return X(e) === q.HTML;
|
|
2032
|
-
}
|
|
2034
|
+
})(K ||= {});
|
|
2033
2035
|
function Jn(e) {
|
|
2034
|
-
return X(e)
|
|
2035
|
-
}
|
|
2036
|
-
function J(e) {
|
|
2037
|
-
return X(e) === q.Tag;
|
|
2036
|
+
return !!(X(e) & K.Delimited);
|
|
2038
2037
|
}
|
|
2039
2038
|
function Yn(e) {
|
|
2040
|
-
return X(e) ===
|
|
2039
|
+
return X(e) === K.Operator;
|
|
2041
2040
|
}
|
|
2042
2041
|
function Xn(e) {
|
|
2043
|
-
return X(e) ===
|
|
2042
|
+
return X(e) === K.HTML;
|
|
2044
2043
|
}
|
|
2045
2044
|
function Zn(e) {
|
|
2046
|
-
return X(e) ===
|
|
2045
|
+
return X(e) === K.Output;
|
|
2046
|
+
}
|
|
2047
|
+
function q(e) {
|
|
2048
|
+
return X(e) === K.Tag;
|
|
2047
2049
|
}
|
|
2048
2050
|
function Qn(e) {
|
|
2049
|
-
return X(e) ===
|
|
2051
|
+
return X(e) === K.Quoted;
|
|
2050
2052
|
}
|
|
2051
2053
|
function $n(e) {
|
|
2052
|
-
return X(e) ===
|
|
2054
|
+
return X(e) === K.Literal;
|
|
2053
2055
|
}
|
|
2054
2056
|
function er(e) {
|
|
2055
|
-
return X(e) ===
|
|
2057
|
+
return X(e) === K.Number;
|
|
2058
|
+
}
|
|
2059
|
+
function J(e) {
|
|
2060
|
+
return X(e) === K.PropertyAccess;
|
|
2061
|
+
}
|
|
2062
|
+
function tr(e) {
|
|
2063
|
+
return X(e) === K.Word;
|
|
2064
|
+
}
|
|
2065
|
+
function nr(e) {
|
|
2066
|
+
return X(e) === K.Range;
|
|
2067
|
+
}
|
|
2068
|
+
function rr(e) {
|
|
2069
|
+
return X(e) === K.FilteredValue;
|
|
2056
2070
|
}
|
|
2057
2071
|
function Y(e) {
|
|
2058
2072
|
return (X(e) & 5763) > 0;
|
|
@@ -2060,13 +2074,29 @@ function Y(e) {
|
|
|
2060
2074
|
function X(e) {
|
|
2061
2075
|
return e ? e.kind : -1;
|
|
2062
2076
|
}
|
|
2077
|
+
var ir = /*#__PURE__*/ Object.freeze({
|
|
2078
|
+
__proto__: null,
|
|
2079
|
+
isDelimitedToken: Jn,
|
|
2080
|
+
isOperatorToken: Yn,
|
|
2081
|
+
isHTMLToken: Xn,
|
|
2082
|
+
isOutputToken: Zn,
|
|
2083
|
+
isTagToken: q,
|
|
2084
|
+
isQuotedToken: Qn,
|
|
2085
|
+
isLiteralToken: $n,
|
|
2086
|
+
isNumberToken: er,
|
|
2087
|
+
isPropertyAccessToken: J,
|
|
2088
|
+
isWordToken: tr,
|
|
2089
|
+
isRangeToken: nr,
|
|
2090
|
+
isFilteredValueToken: rr,
|
|
2091
|
+
isValueToken: Y
|
|
2092
|
+
});
|
|
2063
2093
|
function Z(e) {
|
|
2064
2094
|
let t = Object.create(null);
|
|
2065
2095
|
return e && Object.assign(t, e), t;
|
|
2066
2096
|
}
|
|
2067
2097
|
var Q = class e {
|
|
2068
2098
|
constructor(e = {}, t = F, n = {}, { memoryLimit: r, renderLimit: i, liquid: a } = {}) {
|
|
2069
|
-
this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments =
|
|
2099
|
+
this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments = se(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new ht("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new ht("template render", zt().now() + (n.renderLimit ?? t.renderLimit)), this.liquid = a;
|
|
2070
2100
|
}
|
|
2071
2101
|
getRegister(e, t = void 0) {
|
|
2072
2102
|
return this.registers[e] = this.registers[e] || t;
|
|
@@ -2085,24 +2115,24 @@ var Q = class e {
|
|
|
2085
2115
|
this.globals,
|
|
2086
2116
|
this.environments,
|
|
2087
2117
|
...this.scopes
|
|
2088
|
-
].reduce((e, t) =>
|
|
2118
|
+
].reduce((e, t) => Je(e, t), {});
|
|
2089
2119
|
}
|
|
2090
2120
|
get(e) {
|
|
2091
2121
|
return this.getSync(e);
|
|
2092
2122
|
}
|
|
2093
2123
|
getSync(e) {
|
|
2094
|
-
return
|
|
2124
|
+
return O(this._get(e));
|
|
2095
2125
|
}
|
|
2096
2126
|
*_get(e) {
|
|
2097
2127
|
let t = this.findScope(e[0]);
|
|
2098
2128
|
return yield this._getFromScope(t, e);
|
|
2099
2129
|
}
|
|
2100
2130
|
getFromScope(e, t) {
|
|
2101
|
-
return
|
|
2131
|
+
return O(this._getFromScope(e, t));
|
|
2102
2132
|
}
|
|
2103
2133
|
*_getFromScope(e, t, n = this.strictVariables) {
|
|
2104
2134
|
a(t) && (t = t.split("."));
|
|
2105
|
-
for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new
|
|
2135
|
+
for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new we(t.slice(0, r + 1).join("."));
|
|
2106
2136
|
return e;
|
|
2107
2137
|
}
|
|
2108
2138
|
push(e) {
|
|
@@ -2134,157 +2164,167 @@ var Q = class e {
|
|
|
2134
2164
|
return e in this.environments ? this.environments : this.globals;
|
|
2135
2165
|
}
|
|
2136
2166
|
readProperty(e, n) {
|
|
2137
|
-
if (e = te(e), n =
|
|
2138
|
-
if (
|
|
2139
|
-
let r =
|
|
2140
|
-
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ?
|
|
2167
|
+
if (e = te(e), n = h(n), _(e)) return e;
|
|
2168
|
+
if (v(e) && g(n)) return f(e, n, this.ownPropertyOnly);
|
|
2169
|
+
let r = ar(e, n, this.ownPropertyOnly);
|
|
2170
|
+
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? cr(e) : n === "first" ? or(e, this.ownPropertyOnly) : n === "last" ? sr(e, this.ownPropertyOnly) : r;
|
|
2141
2171
|
}
|
|
2142
2172
|
};
|
|
2143
|
-
function
|
|
2173
|
+
function ar(e, n, r) {
|
|
2144
2174
|
if (!r || i.call(e, n) || e instanceof t) return e[n];
|
|
2145
2175
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return
|
|
2176
|
+
function or(e, t) {
|
|
2177
|
+
return v(e) ? f(e, 0, t) : ar(e, "first", t);
|
|
2148
2178
|
}
|
|
2149
|
-
function
|
|
2150
|
-
return
|
|
2179
|
+
function sr(e, t) {
|
|
2180
|
+
return v(e) ? f(e, -1, t) : ar(e, "last", t);
|
|
2151
2181
|
}
|
|
2152
|
-
function
|
|
2182
|
+
function cr(e) {
|
|
2153
2183
|
if (i.call(e, "size") || e.size !== void 0) return e.size;
|
|
2154
|
-
if (
|
|
2184
|
+
if (v(e) || a(e)) return e.length;
|
|
2155
2185
|
if (typeof e == "object") return Object.keys(e).length;
|
|
2156
2186
|
}
|
|
2157
2187
|
var $;
|
|
2158
2188
|
(function(e) {
|
|
2159
2189
|
e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
|
|
2160
2190
|
})($ ||= {});
|
|
2161
|
-
var
|
|
2162
|
-
function
|
|
2191
|
+
var lr = b(Math.abs), ur = b(Math.max), dr = b(Math.min), fr = b(Math.ceil), pr = b((e, t, n = !1) => n ? Math.floor(e / t) : e / t), mr = b(Math.floor), hr = b((e, t) => e - t), gr = b((e, t) => e + t), _r = b((e, t) => (e % t + t) % t), vr = b((e, t) => e * t);
|
|
2192
|
+
function yr(e, t) {
|
|
2193
|
+
let [n, r = "0"] = String(e).split("e");
|
|
2194
|
+
return Number(`${n}e${Number(r) + t}`);
|
|
2195
|
+
}
|
|
2196
|
+
function br(e, t = 0) {
|
|
2163
2197
|
e = ee(e), t = ee(t);
|
|
2164
|
-
let n =
|
|
2165
|
-
|
|
2198
|
+
let n = yr(Math.abs(e), t);
|
|
2199
|
+
if (!(n <= 2 ** 53 - 1)) return e;
|
|
2200
|
+
let r = yr(Math.round(n), -t);
|
|
2201
|
+
return e < 0 ? -r : r;
|
|
2166
2202
|
}
|
|
2167
|
-
var
|
|
2203
|
+
var xr = /*#__PURE__*/ Object.freeze({
|
|
2168
2204
|
__proto__: null,
|
|
2169
|
-
abs:
|
|
2170
|
-
at_least:
|
|
2171
|
-
at_most:
|
|
2172
|
-
ceil:
|
|
2173
|
-
divided_by:
|
|
2174
|
-
floor:
|
|
2175
|
-
minus:
|
|
2176
|
-
plus:
|
|
2177
|
-
modulo:
|
|
2178
|
-
times:
|
|
2179
|
-
round:
|
|
2180
|
-
}),
|
|
2205
|
+
abs: lr,
|
|
2206
|
+
at_least: ur,
|
|
2207
|
+
at_most: dr,
|
|
2208
|
+
ceil: fr,
|
|
2209
|
+
divided_by: pr,
|
|
2210
|
+
floor: mr,
|
|
2211
|
+
minus: hr,
|
|
2212
|
+
plus: gr,
|
|
2213
|
+
modulo: _r,
|
|
2214
|
+
times: vr,
|
|
2215
|
+
round: br
|
|
2216
|
+
}), Sr = (e) => decodeURIComponent(l(e).replace(/\+/g, " ")), Cr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), wr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Tr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), Er = /[^\p{M}\p{L}\p{Nd}]+/gu, Dr = {
|
|
2181
2217
|
raw: /\s+/g,
|
|
2182
|
-
default:
|
|
2218
|
+
default: Er,
|
|
2183
2219
|
pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
|
|
2184
2220
|
ascii: /[^A-Za-z0-9]+/g,
|
|
2185
|
-
latin:
|
|
2221
|
+
latin: Er,
|
|
2186
2222
|
none: null
|
|
2187
2223
|
};
|
|
2188
|
-
function
|
|
2224
|
+
function Or(e, t = "default", n = !1) {
|
|
2189
2225
|
e = l(e);
|
|
2190
|
-
let r =
|
|
2191
|
-
return r && (t === "latin" && (e =
|
|
2226
|
+
let r = Dr[t];
|
|
2227
|
+
return r && (t === "latin" && (e = kr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
|
|
2192
2228
|
}
|
|
2193
|
-
function
|
|
2229
|
+
function kr(e) {
|
|
2194
2230
|
return e.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
|
|
2195
2231
|
}
|
|
2196
|
-
var
|
|
2232
|
+
var Ar = /*#__PURE__*/ Object.freeze({
|
|
2197
2233
|
__proto__: null,
|
|
2198
|
-
url_decode:
|
|
2199
|
-
url_encode:
|
|
2200
|
-
cgi_escape:
|
|
2201
|
-
uri_escape:
|
|
2202
|
-
slugify:
|
|
2203
|
-
}),
|
|
2204
|
-
let n =
|
|
2234
|
+
url_decode: Sr,
|
|
2235
|
+
url_encode: Cr,
|
|
2236
|
+
cgi_escape: wr,
|
|
2237
|
+
uri_escape: Tr,
|
|
2238
|
+
slugify: Or
|
|
2239
|
+
}), jr = ge(function(e, t) {
|
|
2240
|
+
let n = m(e), r = _(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
|
|
2205
2241
|
for (let e = 0; e < n.length; e++) i += String(n[e]).length;
|
|
2206
2242
|
return this.context.memoryLimit.use(i), Array.prototype.join.call(n, r);
|
|
2207
|
-
}),
|
|
2208
|
-
return re(e) ?
|
|
2209
|
-
}),
|
|
2210
|
-
return re(e) ?
|
|
2211
|
-
}),
|
|
2212
|
-
let t =
|
|
2243
|
+
}), Mr = ge(function(e) {
|
|
2244
|
+
return re(e) ? f(e, -1, this.context.ownPropertyOnly) : "";
|
|
2245
|
+
}), Nr = ge(function(e) {
|
|
2246
|
+
return re(e) ? f(e, 0, this.context.ownPropertyOnly) : "";
|
|
2247
|
+
}), Pr = ge(function(e) {
|
|
2248
|
+
let t = m(e);
|
|
2213
2249
|
return this.context.memoryLimit.use(t.length), [...t].reverse();
|
|
2214
2250
|
});
|
|
2215
|
-
function*
|
|
2216
|
-
let r = [], i =
|
|
2251
|
+
function* Fr(e, t, n) {
|
|
2252
|
+
let r = [], i = m(e);
|
|
2217
2253
|
this.context.memoryLimit.use(i.length);
|
|
2218
2254
|
for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
|
|
2219
2255
|
return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
|
|
2220
2256
|
}
|
|
2221
|
-
function*
|
|
2222
|
-
return yield*
|
|
2257
|
+
function* Ir(e, t) {
|
|
2258
|
+
return yield* Fr.call(this, e, t, me);
|
|
2223
2259
|
}
|
|
2224
|
-
function*
|
|
2225
|
-
return yield*
|
|
2260
|
+
function* Lr(e, t) {
|
|
2261
|
+
return yield* Fr.call(this, e, t, he);
|
|
2226
2262
|
}
|
|
2227
|
-
var
|
|
2228
|
-
function*
|
|
2229
|
-
let n = [], r =
|
|
2263
|
+
var Rr = (e) => e && e.length || 0;
|
|
2264
|
+
function* zr(e, t) {
|
|
2265
|
+
let n = [], r = m(e);
|
|
2230
2266
|
this.context.memoryLimit.use(r.length);
|
|
2231
2267
|
for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
|
|
2232
2268
|
return n;
|
|
2233
2269
|
}
|
|
2234
|
-
function*
|
|
2235
|
-
let n = 0, r =
|
|
2270
|
+
function* Br(e, t) {
|
|
2271
|
+
let n = 0, r = m(e);
|
|
2236
2272
|
for (let e of r) {
|
|
2237
2273
|
let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
|
|
2238
2274
|
n += Number.isNaN(r) ? 0 : r;
|
|
2239
2275
|
}
|
|
2240
2276
|
return n;
|
|
2241
2277
|
}
|
|
2242
|
-
function
|
|
2243
|
-
let t =
|
|
2244
|
-
return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !h(
|
|
2278
|
+
function Vr(e) {
|
|
2279
|
+
let t = m(e);
|
|
2280
|
+
return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !_(h(e)));
|
|
2245
2281
|
}
|
|
2246
|
-
function
|
|
2247
|
-
let n =
|
|
2282
|
+
function Hr(e, t = []) {
|
|
2283
|
+
let n = m(e), r = m(t);
|
|
2248
2284
|
return this.context.memoryLimit.use(n.length + r.length), Array.prototype.concat.call(n, r);
|
|
2249
2285
|
}
|
|
2250
|
-
function
|
|
2251
|
-
return
|
|
2286
|
+
function Ur(e, t) {
|
|
2287
|
+
return Hr.call(this, e, [t]);
|
|
2252
2288
|
}
|
|
2253
|
-
function
|
|
2254
|
-
let n =
|
|
2289
|
+
function Wr(e, t) {
|
|
2290
|
+
let n = m(e);
|
|
2255
2291
|
this.context.memoryLimit.use(n.length);
|
|
2256
2292
|
let r = [...n];
|
|
2257
2293
|
return r.unshift(t), r;
|
|
2258
2294
|
}
|
|
2259
|
-
function
|
|
2260
|
-
let t =
|
|
2295
|
+
function Gr(e) {
|
|
2296
|
+
let t = m(e);
|
|
2261
2297
|
this.context.memoryLimit.use(t.length);
|
|
2262
2298
|
let n = [...t];
|
|
2263
2299
|
return n.pop(), n;
|
|
2264
2300
|
}
|
|
2265
|
-
function
|
|
2266
|
-
let t =
|
|
2301
|
+
function Kr(e) {
|
|
2302
|
+
let t = m(e);
|
|
2267
2303
|
this.context.memoryLimit.use(t.length);
|
|
2268
2304
|
let n = [...t];
|
|
2269
2305
|
return n.shift(), n;
|
|
2270
2306
|
}
|
|
2271
|
-
function
|
|
2272
|
-
|
|
2307
|
+
function qr(e, t, n = 1) {
|
|
2308
|
+
if (e = h(e), _(e)) return [];
|
|
2309
|
+
if (v(e) || (e = l(e)), t = t < 0 ? (v(e) ? e.length : d(e)) + t : t, t < 0 || n < 0) return v(e) ? [] : "";
|
|
2310
|
+
if (this.context.memoryLimit.use(n), v(e)) return Array.prototype.slice.call(e, t, t + n);
|
|
2311
|
+
let r = u(e, 0, t);
|
|
2312
|
+
return e.slice(r, u(e, r, n));
|
|
2273
2313
|
}
|
|
2274
|
-
function*
|
|
2275
|
-
return this.context.opts.jekyllWhere ?
|
|
2314
|
+
function* Jr(e, t) {
|
|
2315
|
+
return this.context.opts.jekyllWhere ? Le.is(t) ? yield P(e, t) : v(e) ? yield Qt(e, t) : yield P(e, t) : t === void 0 ? M(e, this.context) : yield P(e, t);
|
|
2276
2316
|
}
|
|
2277
|
-
function*
|
|
2278
|
-
t =
|
|
2279
|
-
let i = new
|
|
2317
|
+
function* Yr(e, t, n, r) {
|
|
2318
|
+
t = m(t), this.context.memoryLimit.use(t.length);
|
|
2319
|
+
let i = new I(l(n)).readScopeValue(), a = [];
|
|
2280
2320
|
for (let n of t) {
|
|
2281
2321
|
let t = yield j(i, this.context.spawn(n));
|
|
2282
|
-
(yield
|
|
2322
|
+
(yield Jr.call(this, t, r)) === e && a.push(n);
|
|
2283
2323
|
}
|
|
2284
2324
|
return a;
|
|
2285
2325
|
}
|
|
2286
|
-
function*
|
|
2287
|
-
let i = [], a = new
|
|
2326
|
+
function* Xr(e, t, n, r) {
|
|
2327
|
+
let i = [], a = new z(l(r), this.liquid), o = m(t);
|
|
2288
2328
|
this.context.memoryLimit.use(o.length);
|
|
2289
2329
|
for (let t of o) {
|
|
2290
2330
|
this.context.push({ [n]: t });
|
|
@@ -2293,22 +2333,22 @@ function* Gr(e, t, n, r) {
|
|
|
2293
2333
|
}
|
|
2294
2334
|
return i;
|
|
2295
2335
|
}
|
|
2296
|
-
function*
|
|
2297
|
-
return yield*
|
|
2336
|
+
function* Zr(e, t, n) {
|
|
2337
|
+
return yield* Yr.call(this, !0, e, t, n);
|
|
2298
2338
|
}
|
|
2299
|
-
function*
|
|
2300
|
-
return yield*
|
|
2339
|
+
function* Qr(e, t, n) {
|
|
2340
|
+
return yield* Yr.call(this, !1, e, t, n);
|
|
2301
2341
|
}
|
|
2302
|
-
function*
|
|
2303
|
-
return yield*
|
|
2342
|
+
function* $r(e, t, n) {
|
|
2343
|
+
return yield* Xr.call(this, !0, e, t, n);
|
|
2304
2344
|
}
|
|
2305
|
-
function*
|
|
2306
|
-
return yield*
|
|
2345
|
+
function* ei(e, t, n) {
|
|
2346
|
+
return yield* Xr.call(this, !1, e, t, n);
|
|
2307
2347
|
}
|
|
2308
|
-
function*
|
|
2348
|
+
function* ti(e, t) {
|
|
2309
2349
|
let n = /* @__PURE__ */ new Map();
|
|
2310
|
-
e =
|
|
2311
|
-
let r = new
|
|
2350
|
+
e = p(e);
|
|
2351
|
+
let r = new I(l(t)).readScopeValue();
|
|
2312
2352
|
this.context.memoryLimit.use(e.length);
|
|
2313
2353
|
for (let t of e) {
|
|
2314
2354
|
let e = yield j(r, this.context.spawn(t));
|
|
@@ -2319,9 +2359,9 @@ function* Xr(e, t) {
|
|
|
2319
2359
|
items: t
|
|
2320
2360
|
}));
|
|
2321
2361
|
}
|
|
2322
|
-
function*
|
|
2323
|
-
let r = /* @__PURE__ */ new Map(), i = new
|
|
2324
|
-
e =
|
|
2362
|
+
function* ni(e, t, n) {
|
|
2363
|
+
let r = /* @__PURE__ */ new Map(), i = new z(l(n), this.liquid);
|
|
2364
|
+
e = p(e), this.context.memoryLimit.use(e.length);
|
|
2325
2365
|
for (let n of e) {
|
|
2326
2366
|
this.context.push({ [t]: n });
|
|
2327
2367
|
let e = yield i.value(this.context);
|
|
@@ -2332,136 +2372,137 @@ function* Zr(e, t, n) {
|
|
|
2332
2372
|
items: t
|
|
2333
2373
|
}));
|
|
2334
2374
|
}
|
|
2335
|
-
function*
|
|
2336
|
-
let r = new
|
|
2375
|
+
function* ri(e, t, n) {
|
|
2376
|
+
let r = new I(l(t)).readScopeValue(), i = m(e);
|
|
2337
2377
|
for (let e = 0; e < i.length; e++) {
|
|
2338
2378
|
let t = yield j(r, this.context.spawn(i[e]));
|
|
2339
|
-
if (yield
|
|
2379
|
+
if (yield Jr.call(this, t, n)) return [e, i[e]];
|
|
2340
2380
|
}
|
|
2341
2381
|
}
|
|
2342
|
-
function*
|
|
2343
|
-
let r = new
|
|
2382
|
+
function* ii(e, t, n) {
|
|
2383
|
+
let r = new z(l(n), this.liquid), i = m(e);
|
|
2344
2384
|
for (let e = 0; e < i.length; e++) {
|
|
2345
2385
|
this.context.push({ [t]: i[e] });
|
|
2346
2386
|
let n = yield r.value(this.context);
|
|
2347
2387
|
if (this.context.pop(), n) return [e, i[e]];
|
|
2348
2388
|
}
|
|
2349
2389
|
}
|
|
2350
|
-
function*
|
|
2351
|
-
return !!(yield*
|
|
2390
|
+
function* ai(e, t, n) {
|
|
2391
|
+
return !!(yield* ri.call(this, e, t, n));
|
|
2352
2392
|
}
|
|
2353
|
-
function*
|
|
2354
|
-
return !!(yield*
|
|
2393
|
+
function* oi(e, t, n) {
|
|
2394
|
+
return !!(yield* ii.call(this, e, t, n));
|
|
2355
2395
|
}
|
|
2356
|
-
function*
|
|
2357
|
-
let r = yield*
|
|
2396
|
+
function* si(e, t, n) {
|
|
2397
|
+
let r = yield* ri.call(this, e, t, n);
|
|
2358
2398
|
return r ? r[0] : void 0;
|
|
2359
2399
|
}
|
|
2360
|
-
function*
|
|
2361
|
-
let r = yield*
|
|
2400
|
+
function* ci(e, t, n) {
|
|
2401
|
+
let r = yield* ii.call(this, e, t, n);
|
|
2362
2402
|
return r ? r[0] : void 0;
|
|
2363
2403
|
}
|
|
2364
|
-
function*
|
|
2365
|
-
let r = yield*
|
|
2404
|
+
function* li(e, t, n) {
|
|
2405
|
+
let r = yield* ri.call(this, e, t, n);
|
|
2366
2406
|
return r ? r[1] : void 0;
|
|
2367
2407
|
}
|
|
2368
|
-
function*
|
|
2369
|
-
let r = yield*
|
|
2408
|
+
function* ui(e, t, n) {
|
|
2409
|
+
let r = yield* ii.call(this, e, t, n);
|
|
2370
2410
|
return r ? r[1] : void 0;
|
|
2371
2411
|
}
|
|
2372
|
-
function
|
|
2373
|
-
return e =
|
|
2412
|
+
function di(e) {
|
|
2413
|
+
return e = m(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
|
|
2374
2414
|
}
|
|
2375
|
-
function
|
|
2376
|
-
if (e =
|
|
2377
|
-
|
|
2415
|
+
function fi(e, t = 1) {
|
|
2416
|
+
if (e = h(e), _(e)) return [];
|
|
2417
|
+
v(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
|
|
2378
2418
|
let n = [...e].sort(() => Math.random() - .5);
|
|
2379
2419
|
return t === 1 ? n[0] : n.slice(0, t);
|
|
2380
2420
|
}
|
|
2381
|
-
var
|
|
2421
|
+
var pi = /*#__PURE__*/ Object.freeze({
|
|
2382
2422
|
__proto__: null,
|
|
2383
|
-
join:
|
|
2384
|
-
last:
|
|
2385
|
-
first:
|
|
2386
|
-
reverse:
|
|
2387
|
-
sort:
|
|
2388
|
-
sort_natural:
|
|
2389
|
-
size:
|
|
2390
|
-
map:
|
|
2391
|
-
sum:
|
|
2392
|
-
compact:
|
|
2393
|
-
concat:
|
|
2394
|
-
push:
|
|
2395
|
-
unshift:
|
|
2396
|
-
pop:
|
|
2397
|
-
shift:
|
|
2398
|
-
slice:
|
|
2399
|
-
where:
|
|
2400
|
-
reject:
|
|
2401
|
-
where_exp:
|
|
2402
|
-
reject_exp:
|
|
2403
|
-
group_by:
|
|
2404
|
-
group_by_exp:
|
|
2405
|
-
has:
|
|
2406
|
-
has_exp:
|
|
2407
|
-
find_index:
|
|
2408
|
-
find_index_exp:
|
|
2409
|
-
find:
|
|
2410
|
-
find_exp:
|
|
2411
|
-
uniq:
|
|
2412
|
-
sample:
|
|
2423
|
+
join: jr,
|
|
2424
|
+
last: Mr,
|
|
2425
|
+
first: Nr,
|
|
2426
|
+
reverse: Pr,
|
|
2427
|
+
sort: Ir,
|
|
2428
|
+
sort_natural: Lr,
|
|
2429
|
+
size: Rr,
|
|
2430
|
+
map: zr,
|
|
2431
|
+
sum: Br,
|
|
2432
|
+
compact: Vr,
|
|
2433
|
+
concat: Hr,
|
|
2434
|
+
push: Ur,
|
|
2435
|
+
unshift: Wr,
|
|
2436
|
+
pop: Gr,
|
|
2437
|
+
shift: Kr,
|
|
2438
|
+
slice: qr,
|
|
2439
|
+
where: Zr,
|
|
2440
|
+
reject: Qr,
|
|
2441
|
+
where_exp: $r,
|
|
2442
|
+
reject_exp: ei,
|
|
2443
|
+
group_by: ti,
|
|
2444
|
+
group_by_exp: ni,
|
|
2445
|
+
has: ai,
|
|
2446
|
+
has_exp: oi,
|
|
2447
|
+
find_index: si,
|
|
2448
|
+
find_index_exp: ci,
|
|
2449
|
+
find: li,
|
|
2450
|
+
find_exp: ui,
|
|
2451
|
+
uniq: di,
|
|
2452
|
+
sample: fi
|
|
2413
2453
|
});
|
|
2414
|
-
function
|
|
2454
|
+
function mi(e, t, n) {
|
|
2415
2455
|
let r = (e?.length ?? 0) + (n?.length ?? 0);
|
|
2416
2456
|
this.context.memoryLimit.use(r);
|
|
2417
|
-
let i =
|
|
2418
|
-
return i ? (t =
|
|
2457
|
+
let i = bi(e, this.context.opts, n);
|
|
2458
|
+
return i ? (t = h(t), t = _(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), k(i, t, this.context.memoryLimit)) : e;
|
|
2419
2459
|
}
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2460
|
+
function hi(e) {
|
|
2461
|
+
return mi.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
|
|
2422
2462
|
}
|
|
2423
|
-
function
|
|
2424
|
-
|
|
2463
|
+
function gi(e) {
|
|
2464
|
+
let t = bi(e, this.context.opts, void 0, "en-US");
|
|
2465
|
+
return t ? k(t, "%a, %d %b %Y %H:%M:%S %z", this.context.memoryLimit) : e;
|
|
2425
2466
|
}
|
|
2426
|
-
function
|
|
2427
|
-
return
|
|
2467
|
+
function _i(e, t, n) {
|
|
2468
|
+
return yi.call(this, e, "%b", t, n);
|
|
2428
2469
|
}
|
|
2429
|
-
function
|
|
2430
|
-
return
|
|
2470
|
+
function vi(e, t, n) {
|
|
2471
|
+
return yi.call(this, e, "%B", t, n);
|
|
2431
2472
|
}
|
|
2432
|
-
function
|
|
2433
|
-
let i =
|
|
2473
|
+
function yi(e, t, n, r) {
|
|
2474
|
+
let i = bi(e, this.context.opts);
|
|
2434
2475
|
if (!i) return e;
|
|
2435
2476
|
let a = this.context.memoryLimit;
|
|
2436
2477
|
if (n === "ordinal") {
|
|
2437
2478
|
let e = i.getDate();
|
|
2438
|
-
return r === "US" ?
|
|
2479
|
+
return r === "US" ? k(i, `${t} ${e}%q, %Y`, a) : k(i, `${e}%q ${t} %Y`, a);
|
|
2439
2480
|
}
|
|
2440
|
-
return
|
|
2481
|
+
return k(i, `%d ${t} %Y`, a);
|
|
2441
2482
|
}
|
|
2442
|
-
function
|
|
2443
|
-
let
|
|
2444
|
-
if (e =
|
|
2483
|
+
function bi(e, t, n, r = t.locale) {
|
|
2484
|
+
let i, o = n ?? t.timezoneOffset;
|
|
2485
|
+
if (e = h(e), !_(e)) return i = e === "now" || e === "today" ? new A(Date.now(), r, o) : g(e) ? new A(e * 1e3, r, o) : a(e) ? /^\d+$/.test(e) ? new A(e * 1e3, r, o) : t.preserveTimezones && n === void 0 ? A.createDateFixedToTimezone(e, r) : new A(e, r, o) : new A(e, r, o), i.valid() ? i : void 0;
|
|
2445
2486
|
}
|
|
2446
|
-
var
|
|
2487
|
+
var xi = /*#__PURE__*/ Object.freeze({
|
|
2447
2488
|
__proto__: null,
|
|
2448
|
-
date:
|
|
2449
|
-
date_to_xmlschema:
|
|
2450
|
-
date_to_rfc822:
|
|
2451
|
-
date_to_string:
|
|
2452
|
-
date_to_long_string:
|
|
2453
|
-
}),
|
|
2454
|
-
function
|
|
2489
|
+
date: mi,
|
|
2490
|
+
date_to_xmlschema: hi,
|
|
2491
|
+
date_to_rfc822: gi,
|
|
2492
|
+
date_to_string: _i,
|
|
2493
|
+
date_to_long_string: vi
|
|
2494
|
+
}), Si = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, Ci = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
|
|
2495
|
+
function wi(e, t) {
|
|
2455
2496
|
w(arguments.length === 2, "append expect 2 arguments");
|
|
2456
2497
|
let n = l(e), r = l(t);
|
|
2457
2498
|
return this.context.memoryLimit.use(n.length + r.length), n + r;
|
|
2458
2499
|
}
|
|
2459
|
-
function
|
|
2500
|
+
function Ti(e, t) {
|
|
2460
2501
|
w(arguments.length === 2, "prepend expect 2 arguments");
|
|
2461
2502
|
let n = l(e), r = l(t);
|
|
2462
2503
|
return this.context.memoryLimit.use(n.length + r.length), r + n;
|
|
2463
2504
|
}
|
|
2464
|
-
function
|
|
2505
|
+
function Ei(e, t) {
|
|
2465
2506
|
let n = 0;
|
|
2466
2507
|
for (let r of e) {
|
|
2467
2508
|
if (!t.has(r)) break;
|
|
@@ -2469,7 +2510,7 @@ function xi(e, t) {
|
|
|
2469
2510
|
}
|
|
2470
2511
|
return n;
|
|
2471
2512
|
}
|
|
2472
|
-
function
|
|
2513
|
+
function Di(e, t, n = 0) {
|
|
2473
2514
|
let r = e.length;
|
|
2474
2515
|
for (; r > n;) {
|
|
2475
2516
|
let i = r - n >= 2 && e.codePointAt(r - 2) > 65535 ? 2 : 1;
|
|
@@ -2478,84 +2519,84 @@ function Si(e, t, n = 0) {
|
|
|
2478
2519
|
}
|
|
2479
2520
|
return r;
|
|
2480
2521
|
}
|
|
2481
|
-
function
|
|
2522
|
+
function Oi(e, t) {
|
|
2482
2523
|
let n = l(e);
|
|
2483
|
-
return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(
|
|
2524
|
+
return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(Ei(n, new Set(t)))) : n.trimStart();
|
|
2484
2525
|
}
|
|
2485
|
-
function
|
|
2526
|
+
function ki(e) {
|
|
2486
2527
|
let t = l(e);
|
|
2487
2528
|
return this.context.memoryLimit.use(t.length), t.toLowerCase();
|
|
2488
2529
|
}
|
|
2489
|
-
function
|
|
2530
|
+
function Ai(e) {
|
|
2490
2531
|
let t = l(e);
|
|
2491
2532
|
return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
|
|
2492
2533
|
}
|
|
2493
|
-
function
|
|
2534
|
+
function ji(e, t) {
|
|
2494
2535
|
let n = l(e);
|
|
2495
2536
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
|
|
2496
2537
|
}
|
|
2497
|
-
function
|
|
2538
|
+
function Mi(e, t) {
|
|
2498
2539
|
let n = l(e);
|
|
2499
2540
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
|
|
2500
2541
|
}
|
|
2501
|
-
function
|
|
2542
|
+
function Ni(e, t) {
|
|
2502
2543
|
let n = l(e), r = l(t);
|
|
2503
2544
|
this.context.memoryLimit.use(n.length + r.length);
|
|
2504
2545
|
let i = n.lastIndexOf(r);
|
|
2505
2546
|
return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
|
|
2506
2547
|
}
|
|
2507
|
-
function
|
|
2508
|
-
return e = l(e), this.context.memoryLimit.use(e.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), e.slice(0,
|
|
2548
|
+
function Pi(e, t) {
|
|
2549
|
+
return e = l(e), this.context.memoryLimit.use(e.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), e.slice(0, Di(e, new Set(t)))) : e.trimEnd();
|
|
2509
2550
|
}
|
|
2510
|
-
function
|
|
2551
|
+
function Fi(e, t) {
|
|
2511
2552
|
let n = l(e);
|
|
2512
2553
|
this.context.memoryLimit.use(n.length);
|
|
2513
2554
|
let r = n.split(l(t));
|
|
2514
2555
|
for (; r.length && r[r.length - 1] === "";) r.pop();
|
|
2515
2556
|
return r;
|
|
2516
2557
|
}
|
|
2517
|
-
function
|
|
2558
|
+
function Ii(e, t) {
|
|
2518
2559
|
let n = l(e);
|
|
2519
2560
|
if (this.context.memoryLimit.use(n.length), t) {
|
|
2520
2561
|
let e = new Set(l(t));
|
|
2521
2562
|
this.context.memoryLimit.use(e.size);
|
|
2522
|
-
let r =
|
|
2523
|
-
return n.slice(r,
|
|
2563
|
+
let r = Ei(n, e);
|
|
2564
|
+
return n.slice(r, Di(n, e, r));
|
|
2524
2565
|
}
|
|
2525
2566
|
return n.trim();
|
|
2526
2567
|
}
|
|
2527
|
-
function
|
|
2568
|
+
function Li(e) {
|
|
2528
2569
|
let t = l(e);
|
|
2529
2570
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
|
|
2530
2571
|
}
|
|
2531
|
-
function
|
|
2572
|
+
function Ri(e) {
|
|
2532
2573
|
let t = l(e);
|
|
2533
2574
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ").trim();
|
|
2534
2575
|
}
|
|
2535
|
-
function
|
|
2576
|
+
function zi(e) {
|
|
2536
2577
|
return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
2537
2578
|
}
|
|
2538
|
-
function
|
|
2579
|
+
function Bi(e, t, n) {
|
|
2539
2580
|
let r = l(e);
|
|
2540
2581
|
t = l(t), n = l(n);
|
|
2541
2582
|
let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
|
|
2542
2583
|
return this.context.memoryLimit.use(a), i.join(n);
|
|
2543
2584
|
}
|
|
2544
|
-
function
|
|
2585
|
+
function Vi(e, t, n) {
|
|
2545
2586
|
let r = l(e);
|
|
2546
2587
|
return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
|
|
2547
2588
|
}
|
|
2548
|
-
function
|
|
2589
|
+
function Hi(e, t, n) {
|
|
2549
2590
|
let r = l(e), i = l(t), a = l(n);
|
|
2550
2591
|
this.context.memoryLimit.use(r.length + i.length + a.length);
|
|
2551
2592
|
let o = r.lastIndexOf(i);
|
|
2552
2593
|
return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
|
|
2553
2594
|
}
|
|
2554
|
-
function
|
|
2595
|
+
function Ui(e, t = 50, n = "...") {
|
|
2555
2596
|
let r = l(e);
|
|
2556
|
-
return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.
|
|
2597
|
+
return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t || u(r, 0, t) >= r.length ? e : r.slice(0, u(r, 0, Math.max(t - d(n), 0))) + n;
|
|
2557
2598
|
}
|
|
2558
|
-
function
|
|
2599
|
+
function Wi(e, t = 15, n = "...") {
|
|
2559
2600
|
let r = l(e);
|
|
2560
2601
|
n = l(n), this.context.memoryLimit.use(r.length + n.length);
|
|
2561
2602
|
let i = r.trimStart().split(/\s+/);
|
|
@@ -2563,112 +2604,116 @@ function zi(e, t = 15, n = "...") {
|
|
|
2563
2604
|
let a = i.slice(0, t).join(" ");
|
|
2564
2605
|
return i.length >= t && (a += n), a;
|
|
2565
2606
|
}
|
|
2566
|
-
function
|
|
2607
|
+
function Gi(e) {
|
|
2567
2608
|
let t = l(e);
|
|
2568
2609
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
|
|
2569
2610
|
}
|
|
2570
|
-
function
|
|
2611
|
+
function Ki(e, t) {
|
|
2571
2612
|
let n = l(e);
|
|
2572
2613
|
if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
|
|
2573
2614
|
switch (t) {
|
|
2574
|
-
case "cjk": return (e.match(
|
|
2575
|
-
case "auto": return
|
|
2615
|
+
case "cjk": return (e.match(Si) || []).length + (e.match(Ci) || []).length;
|
|
2616
|
+
case "auto": return Si.test(e) ? e.match(Si).length + (e.match(Ci) || []).length : e.split(/\s+/).length;
|
|
2576
2617
|
default: return e.split(/\s+/).length;
|
|
2577
2618
|
}
|
|
2578
2619
|
}
|
|
2579
|
-
function
|
|
2620
|
+
function qi(e, t = "and") {
|
|
2621
|
+
let n = m(e);
|
|
2580
2622
|
t = l(t);
|
|
2581
|
-
let
|
|
2582
|
-
for (let
|
|
2583
|
-
switch (this.context.memoryLimit.use(
|
|
2623
|
+
let r = t.length + n.length * 2;
|
|
2624
|
+
for (let e = 0; e < n.length; e++) r += l(n[e]).length;
|
|
2625
|
+
switch (this.context.memoryLimit.use(r), n.length) {
|
|
2584
2626
|
case 0: return "";
|
|
2585
|
-
case 1: return
|
|
2586
|
-
case 2: return `${
|
|
2587
|
-
default: return `${
|
|
2627
|
+
case 1: return n[0];
|
|
2628
|
+
case 2: return `${n[0]} ${t} ${n[1]}`;
|
|
2629
|
+
default: return `${n.slice(0, -1).join(", ")}, ${t} ${n[n.length - 1]}`;
|
|
2588
2630
|
}
|
|
2589
2631
|
}
|
|
2590
|
-
var
|
|
2632
|
+
var Ji = /*#__PURE__*/ Object.freeze({
|
|
2591
2633
|
__proto__: null,
|
|
2592
|
-
append:
|
|
2593
|
-
prepend:
|
|
2594
|
-
lstrip:
|
|
2595
|
-
downcase:
|
|
2596
|
-
upcase:
|
|
2597
|
-
remove:
|
|
2598
|
-
remove_first:
|
|
2599
|
-
remove_last:
|
|
2600
|
-
rstrip:
|
|
2601
|
-
split:
|
|
2602
|
-
strip:
|
|
2603
|
-
strip_newlines:
|
|
2604
|
-
squish:
|
|
2605
|
-
capitalize:
|
|
2606
|
-
replace:
|
|
2607
|
-
replace_first:
|
|
2608
|
-
replace_last:
|
|
2609
|
-
truncate:
|
|
2610
|
-
truncatewords:
|
|
2611
|
-
normalize_whitespace:
|
|
2612
|
-
number_of_words:
|
|
2613
|
-
array_to_sentence_string:
|
|
2634
|
+
append: wi,
|
|
2635
|
+
prepend: Ti,
|
|
2636
|
+
lstrip: Oi,
|
|
2637
|
+
downcase: ki,
|
|
2638
|
+
upcase: Ai,
|
|
2639
|
+
remove: ji,
|
|
2640
|
+
remove_first: Mi,
|
|
2641
|
+
remove_last: Ni,
|
|
2642
|
+
rstrip: Pi,
|
|
2643
|
+
split: Fi,
|
|
2644
|
+
strip: Ii,
|
|
2645
|
+
strip_newlines: Li,
|
|
2646
|
+
squish: Ri,
|
|
2647
|
+
capitalize: zi,
|
|
2648
|
+
replace: Bi,
|
|
2649
|
+
replace_first: Vi,
|
|
2650
|
+
replace_last: Hi,
|
|
2651
|
+
truncate: Ui,
|
|
2652
|
+
truncatewords: Wi,
|
|
2653
|
+
normalize_whitespace: Gi,
|
|
2654
|
+
number_of_words: Ki,
|
|
2655
|
+
array_to_sentence_string: qi
|
|
2614
2656
|
});
|
|
2615
|
-
function
|
|
2657
|
+
function Yi(e) {
|
|
2616
2658
|
let t = new TextEncoder().encode(e), n = "";
|
|
2617
2659
|
for (let e = 0; e < t.length; e += 32768) n += String.fromCharCode(...t.subarray(e, e + 32768));
|
|
2618
2660
|
return btoa(n);
|
|
2619
2661
|
}
|
|
2620
|
-
function
|
|
2662
|
+
function Xi(e) {
|
|
2621
2663
|
return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
|
|
2622
2664
|
}
|
|
2623
|
-
function
|
|
2665
|
+
function Zi(e) {
|
|
2624
2666
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
|
|
2625
2667
|
let t = l(e);
|
|
2626
|
-
return this.context.memoryLimit.use(t.length),
|
|
2668
|
+
return this.context.memoryLimit.use(t.length), Yi(t);
|
|
2627
2669
|
}
|
|
2628
|
-
function
|
|
2670
|
+
function Qi(e) {
|
|
2629
2671
|
let t = l(e);
|
|
2630
|
-
return this.context.memoryLimit.use(t.length),
|
|
2672
|
+
return this.context.memoryLimit.use(t.length), w($i(t), "invalid base64 provided to base64_decode"), Xi(t);
|
|
2631
2673
|
}
|
|
2632
|
-
|
|
2674
|
+
function $i(e) {
|
|
2675
|
+
return e = e.replace(/[\t\n\f\r ]/g, ""), e.length % 4 == 0 && (e = e.replace(/==?$/, "")), e.length % 4 != 1 && /^[A-Za-z0-9+/]*$/.test(e);
|
|
2676
|
+
}
|
|
2677
|
+
var ea = /*#__PURE__*/ Object.freeze({
|
|
2633
2678
|
__proto__: null,
|
|
2634
|
-
base64_encode:
|
|
2635
|
-
base64_decode:
|
|
2679
|
+
base64_encode: Zi,
|
|
2680
|
+
base64_decode: Qi
|
|
2636
2681
|
});
|
|
2637
|
-
function
|
|
2682
|
+
function ta(e) {
|
|
2638
2683
|
let t = new Uint8Array(e), n = "";
|
|
2639
2684
|
for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
|
|
2640
2685
|
return n;
|
|
2641
2686
|
}
|
|
2642
|
-
function
|
|
2643
|
-
return
|
|
2687
|
+
function na(e) {
|
|
2688
|
+
return E(this, void 0, void 0, function* () {
|
|
2644
2689
|
let t = new TextEncoder().encode(e);
|
|
2645
|
-
return
|
|
2690
|
+
return ta(yield crypto.subtle.digest("SHA-256", t));
|
|
2646
2691
|
});
|
|
2647
2692
|
}
|
|
2648
|
-
function
|
|
2649
|
-
return
|
|
2693
|
+
function ra(e, t) {
|
|
2694
|
+
return E(this, void 0, void 0, function* () {
|
|
2650
2695
|
let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
|
|
2651
2696
|
name: "HMAC",
|
|
2652
2697
|
hash: "SHA-256"
|
|
2653
2698
|
}, !1, ["sign"]);
|
|
2654
|
-
return
|
|
2699
|
+
return ta(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
|
|
2655
2700
|
});
|
|
2656
2701
|
}
|
|
2657
|
-
function
|
|
2702
|
+
function ia(e) {
|
|
2658
2703
|
let t = l(e);
|
|
2659
|
-
return this.context.memoryLimit.use(t.length),
|
|
2704
|
+
return this.context.memoryLimit.use(t.length), na(t);
|
|
2660
2705
|
}
|
|
2661
|
-
function
|
|
2706
|
+
function aa(e, t) {
|
|
2662
2707
|
let n = l(e), r = l(t);
|
|
2663
|
-
return this.context.memoryLimit.use(n.length + r.length),
|
|
2708
|
+
return this.context.memoryLimit.use(n.length + r.length), ra(n, r);
|
|
2664
2709
|
}
|
|
2665
|
-
var
|
|
2710
|
+
var oa = /*#__PURE__*/ Object.freeze({
|
|
2666
2711
|
__proto__: null,
|
|
2667
|
-
sha256:
|
|
2668
|
-
hmac_sha256:
|
|
2669
|
-
}),
|
|
2712
|
+
sha256: ia,
|
|
2713
|
+
hmac_sha256: aa
|
|
2714
|
+
}), sa = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, wn), xr), Ar), pi), xi), Ji), ea), oa), hn), ca = class extends L {
|
|
2670
2715
|
constructor(e, t, n) {
|
|
2671
|
-
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", "expected \"=\""), this.tokenizer.advance(), this.value = new
|
|
2716
|
+
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", "expected \"=\""), this.tokenizer.advance(), this.value = new z(this.tokenizer.readFilteredValue(), this.liquid);
|
|
2672
2717
|
}
|
|
2673
2718
|
*render(e) {
|
|
2674
2719
|
e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
|
|
@@ -2679,27 +2724,27 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2679
2724
|
*localScope() {
|
|
2680
2725
|
yield this.identifier;
|
|
2681
2726
|
}
|
|
2682
|
-
},
|
|
2727
|
+
}, la = [
|
|
2683
2728
|
"offset",
|
|
2684
2729
|
"limit",
|
|
2685
2730
|
"reversed"
|
|
2686
|
-
],
|
|
2731
|
+
], ua = class extends L {
|
|
2687
2732
|
constructor(e, t, n, r) {
|
|
2688
2733
|
super(e, t, n);
|
|
2689
2734
|
let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
2690
2735
|
if (!i.size() || a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
|
|
2691
|
-
this.variable = i.content, this.collection = o, this.hash = new
|
|
2736
|
+
this.variable = i.content, this.collection = o, this.hash = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
|
|
2692
2737
|
let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:else", (e) => {
|
|
2693
|
-
|
|
2738
|
+
Fe(e.args), s = this.elseTemplates;
|
|
2694
2739
|
}).on("tag:endfor", (e) => {
|
|
2695
|
-
|
|
2740
|
+
Fe(e.args), c.stop();
|
|
2696
2741
|
}).on("template", (e) => s.push(e)).on("end", () => {
|
|
2697
2742
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2698
2743
|
});
|
|
2699
2744
|
c.start();
|
|
2700
2745
|
}
|
|
2701
2746
|
*render(e, t) {
|
|
2702
|
-
let n = this.liquid.renderer, r =
|
|
2747
|
+
let n = this.liquid.renderer, r = p(yield j(this.collection, e));
|
|
2703
2748
|
if (!r.length) {
|
|
2704
2749
|
yield n.renderTemplates(this.elseTemplates, e, t);
|
|
2705
2750
|
return;
|
|
@@ -2707,8 +2752,8 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2707
2752
|
let i = "continue-" + this.variable + "-" + this.collection.getText();
|
|
2708
2753
|
e.push(Z({ continue: e.getRegister(i, {}) }));
|
|
2709
2754
|
let a = yield this.hash.render(e);
|
|
2710
|
-
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) =>
|
|
2711
|
-
let o = Z({ forloop: new
|
|
2755
|
+
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => la.includes(e)) : la.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? fa(e, a.offset) : t === "limit" ? pa(e, a.limit) : da(e), r), e.setRegister(i, (a.offset || 0) + r.length);
|
|
2756
|
+
let o = Z({ forloop: new ze(r.length, this.collection.getText(), this.variable) });
|
|
2712
2757
|
e.push(o);
|
|
2713
2758
|
for (let i of r) {
|
|
2714
2759
|
if (o[this.variable] = i, e.continueCalled = e.breakCalled = !1, yield n.renderTemplates(this.templates, e, t), e.breakCalled) break;
|
|
@@ -2728,20 +2773,20 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2728
2773
|
return [this.variable, "forloop"];
|
|
2729
2774
|
}
|
|
2730
2775
|
};
|
|
2731
|
-
function
|
|
2776
|
+
function da(e) {
|
|
2732
2777
|
return [...e].reverse();
|
|
2733
2778
|
}
|
|
2734
|
-
function
|
|
2779
|
+
function fa(e, t) {
|
|
2735
2780
|
return e.slice(t);
|
|
2736
2781
|
}
|
|
2737
|
-
function
|
|
2782
|
+
function pa(e, t) {
|
|
2738
2783
|
return e.slice(0, t);
|
|
2739
2784
|
}
|
|
2740
|
-
var
|
|
2785
|
+
var ma = class extends L {
|
|
2741
2786
|
constructor(e, t, n, r) {
|
|
2742
2787
|
for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
|
|
2743
2788
|
let e = t.shift();
|
|
2744
|
-
if (
|
|
2789
|
+
if (q(e) && e.name === "endcapture") return;
|
|
2745
2790
|
this.templates.push(r.parseToken(e, t));
|
|
2746
2791
|
}
|
|
2747
2792
|
throw Error(`tag ${e.getText()} not closed`);
|
|
@@ -2761,9 +2806,9 @@ var ca = class extends R {
|
|
|
2761
2806
|
*localScope() {
|
|
2762
2807
|
yield this.identifier;
|
|
2763
2808
|
}
|
|
2764
|
-
},
|
|
2809
|
+
}, ha = class extends L {
|
|
2765
2810
|
constructor(e, t, n, r) {
|
|
2766
|
-
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new
|
|
2811
|
+
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new z(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
2767
2812
|
let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
|
|
2768
2813
|
if (a > 0) return;
|
|
2769
2814
|
i = [];
|
|
@@ -2783,8 +2828,8 @@ var ca = class extends R {
|
|
|
2783
2828
|
o.start();
|
|
2784
2829
|
}
|
|
2785
2830
|
*render(e, t) {
|
|
2786
|
-
let n = this.liquid.renderer, r = yield
|
|
2787
|
-
for (let a of this.branches) for (let o of a.values) if (yield
|
|
2831
|
+
let n = this.liquid.renderer, r = yield h(yield this.value.value(e, e.opts.lenientIf)), i = !1;
|
|
2832
|
+
for (let a of this.branches) for (let o of a.values) if (yield P(r, yield j(o, e, e.opts.lenientIf))) {
|
|
2788
2833
|
yield n.renderTemplates(a.templates, e, t), i = !0;
|
|
2789
2834
|
break;
|
|
2790
2835
|
}
|
|
@@ -2797,20 +2842,20 @@ var ca = class extends R {
|
|
|
2797
2842
|
let e = this.branches.flatMap((e) => e.templates);
|
|
2798
2843
|
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
2799
2844
|
}
|
|
2800
|
-
},
|
|
2845
|
+
}, ga = class extends L {
|
|
2801
2846
|
constructor(e, t, n) {
|
|
2802
2847
|
for (super(e, t, n); t.length;) {
|
|
2803
2848
|
let e = t.shift();
|
|
2804
|
-
if (
|
|
2849
|
+
if (q(e) && e.name === "endcomment") return;
|
|
2805
2850
|
}
|
|
2806
2851
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2807
2852
|
}
|
|
2808
2853
|
render() {}
|
|
2809
|
-
},
|
|
2854
|
+
}, _a = class extends L {
|
|
2810
2855
|
constructor(e, t, n, r) {
|
|
2811
2856
|
super(e, t, n);
|
|
2812
2857
|
let i = this.tokenizer;
|
|
2813
|
-
for (this.file =
|
|
2858
|
+
for (this.file = va(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
|
|
2814
2859
|
i.skipBlank();
|
|
2815
2860
|
let e = i.p, t = i.readIdentifier();
|
|
2816
2861
|
if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
|
|
@@ -2829,19 +2874,19 @@ var ca = class extends R {
|
|
|
2829
2874
|
i.p = e;
|
|
2830
2875
|
break;
|
|
2831
2876
|
}
|
|
2832
|
-
this.hash = new
|
|
2877
|
+
this.hash = new R(i, n.options.keyValueSeparator);
|
|
2833
2878
|
}
|
|
2834
2879
|
*render(e, t) {
|
|
2835
|
-
let { liquid: n, hash: r } = this, i = yield
|
|
2880
|
+
let { liquid: n, hash: r } = this, i = yield ba(this.file, e, n);
|
|
2836
2881
|
w(i, () => `illegal file path "${i}"`);
|
|
2837
2882
|
let a = e.spawn(), o = a.bottom();
|
|
2838
|
-
if (
|
|
2883
|
+
if (Je(o, yield r.render(e)), this.with) {
|
|
2839
2884
|
let { value: t, alias: n } = this.with;
|
|
2840
2885
|
o[n || i] = yield j(t, e);
|
|
2841
2886
|
}
|
|
2842
2887
|
if (this.forBinding) {
|
|
2843
|
-
let { value: r, alias: s } = this.forBinding, c =
|
|
2844
|
-
o.forloop = new
|
|
2888
|
+
let { value: r, alias: s } = this.forBinding, c = p(yield j(r, e));
|
|
2889
|
+
o.forloop = new ze(c.length, r.getText(), s);
|
|
2845
2890
|
for (let e of c) {
|
|
2846
2891
|
o[s] = e;
|
|
2847
2892
|
let r = yield n._parsePartialFile(i, a.sync, this.currentFile);
|
|
@@ -2885,30 +2930,30 @@ var ca = class extends R {
|
|
|
2885
2930
|
}
|
|
2886
2931
|
}
|
|
2887
2932
|
};
|
|
2888
|
-
function
|
|
2933
|
+
function va(e, t, n) {
|
|
2889
2934
|
if (t.options.dynamicPartials) {
|
|
2890
2935
|
let t = e.readValue();
|
|
2891
|
-
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 :
|
|
2936
|
+
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Qn(t) ? ya(n.parse(qt(t))) : t;
|
|
2892
2937
|
}
|
|
2893
|
-
let r = [...e.readFileNameTemplate(t.options)], i =
|
|
2938
|
+
let r = [...e.readFileNameTemplate(t.options)], i = ya(n.parseTokens(r));
|
|
2894
2939
|
return i === "none" ? void 0 : i;
|
|
2895
2940
|
}
|
|
2896
|
-
function
|
|
2897
|
-
return e.length === 1 &&
|
|
2941
|
+
function ya(e) {
|
|
2942
|
+
return e.length === 1 && Xn(e[0].token) ? e[0].token.getContent() : e;
|
|
2898
2943
|
}
|
|
2899
|
-
function*
|
|
2944
|
+
function* ba(e, t, n) {
|
|
2900
2945
|
return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield j(e, t);
|
|
2901
2946
|
}
|
|
2902
|
-
var
|
|
2947
|
+
var xa = class extends L {
|
|
2903
2948
|
constructor(e, t, n, r) {
|
|
2904
2949
|
super(e, t, n);
|
|
2905
2950
|
let { tokenizer: i } = e;
|
|
2906
|
-
this.file =
|
|
2951
|
+
this.file = va(i, this.liquid, r), this.currentFile = e.file;
|
|
2907
2952
|
let a = i.p;
|
|
2908
|
-
i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new
|
|
2953
|
+
i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new R(i, n.options.jekyllInclude || n.options.keyValueSeparator);
|
|
2909
2954
|
}
|
|
2910
2955
|
*render(e, t) {
|
|
2911
|
-
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield
|
|
2956
|
+
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield ba(this.file, e, n);
|
|
2912
2957
|
w(o, () => `illegal file path "${o}"`);
|
|
2913
2958
|
let s = e.saveRegister("blocks", "blockMode");
|
|
2914
2959
|
e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
|
|
@@ -2933,59 +2978,65 @@ var ha = class extends R {
|
|
|
2933
2978
|
*arguments() {
|
|
2934
2979
|
yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
|
|
2935
2980
|
}
|
|
2936
|
-
},
|
|
2981
|
+
}, Sa = class extends L {
|
|
2937
2982
|
constructor(e, t, n) {
|
|
2938
2983
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2939
2984
|
}
|
|
2940
2985
|
render(e, t) {
|
|
2941
2986
|
let n = e.environments;
|
|
2942
|
-
|
|
2987
|
+
g(n[this.variable]) || (n[this.variable] = 0), t.write(l(--n[this.variable]));
|
|
2943
2988
|
}
|
|
2944
2989
|
*localScope() {
|
|
2945
2990
|
yield this.identifier;
|
|
2946
2991
|
}
|
|
2947
|
-
},
|
|
2992
|
+
}, Ca = class extends L {
|
|
2948
2993
|
constructor(e, t, n) {
|
|
2949
2994
|
super(e, t, n), this.candidates = [];
|
|
2950
|
-
let r = this.tokenizer.readValue();
|
|
2951
|
-
for (this.tokenizer.skipBlank(),
|
|
2952
|
-
let e = this.tokenizer.
|
|
2953
|
-
|
|
2995
|
+
let r = this.tokenizer.p, i = this.tokenizer.readValue();
|
|
2996
|
+
for (this.tokenizer.skipBlank(), i && (this.tokenizer.peek() === ":" ? (this.group = i, this.tokenizer.advance()) : this.tokenizer.p = r); !this.tokenizer.end();) {
|
|
2997
|
+
let e = this.tokenizer.readFilteredValue();
|
|
2998
|
+
this.candidates.push(e), this.tokenizer.readTo(",");
|
|
2954
2999
|
}
|
|
2955
3000
|
this.tokenizer.assert(this.candidates.length, () => `empty candidates: "${e.getText()}"`);
|
|
2956
3001
|
}
|
|
2957
3002
|
*render(e, t) {
|
|
2958
|
-
let n = `cycle:${yield j(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
|
|
3003
|
+
let n = `cycle:${yield j(this.group, e)}:` + this.candidates.map((e) => e.getText()).join(","), r = e.getRegister("cycle", {}), i = r[n];
|
|
2959
3004
|
i === void 0 && (i = r[n] = 0);
|
|
2960
|
-
let a = this.candidates[i];
|
|
2961
|
-
|
|
3005
|
+
let a = new z(this.candidates[i], this.liquid);
|
|
3006
|
+
i = (i + 1) % this.candidates.length, r[n] = i;
|
|
3007
|
+
let o = yield h(yield a.value(e, !1)), s = this.liquid.options.outputEscape;
|
|
3008
|
+
return s && !a.filters[a.filters.length - 1]?.raw && (o = yield s.call({
|
|
3009
|
+
context: e,
|
|
3010
|
+
token: this.token,
|
|
3011
|
+
liquid: this.liquid
|
|
3012
|
+
}, o)), o;
|
|
2962
3013
|
}
|
|
2963
3014
|
*arguments() {
|
|
2964
3015
|
yield* this.candidates, this.group && (yield this.group);
|
|
2965
3016
|
}
|
|
2966
|
-
},
|
|
3017
|
+
}, wa = class extends L {
|
|
2967
3018
|
constructor(e, t, n, r) {
|
|
2968
3019
|
super(e, t, n), this.branches = [];
|
|
2969
3020
|
let i = [];
|
|
2970
3021
|
r.parseStream(t).on("start", () => this.branches.push({
|
|
2971
|
-
value: new
|
|
3022
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
2972
3023
|
templates: i = []
|
|
2973
3024
|
})).on("tag:elsif", (e) => {
|
|
2974
3025
|
w(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
|
|
2975
|
-
value: new
|
|
3026
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
2976
3027
|
templates: i = []
|
|
2977
3028
|
});
|
|
2978
3029
|
}).on("tag:else", (e) => {
|
|
2979
|
-
|
|
3030
|
+
Fe(e.args), w(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
|
|
2980
3031
|
}).on("tag:endif", function(e) {
|
|
2981
|
-
|
|
3032
|
+
Fe(e.args), this.stop();
|
|
2982
3033
|
}).on("template", (e) => i.push(e)).on("end", () => {
|
|
2983
3034
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2984
3035
|
}).start();
|
|
2985
3036
|
}
|
|
2986
3037
|
*render(e, t) {
|
|
2987
3038
|
let n = this.liquid.renderer;
|
|
2988
|
-
for (let { value: r, templates: i } of this.branches) if (M(yield
|
|
3039
|
+
for (let { value: r, templates: i } of this.branches) if (M(yield h(yield r.value(e, e.opts.lenientIf)), e)) {
|
|
2989
3040
|
yield n.renderTemplates(i, e, t);
|
|
2990
3041
|
return;
|
|
2991
3042
|
}
|
|
@@ -2998,22 +3049,22 @@ var ha = class extends R {
|
|
|
2998
3049
|
arguments() {
|
|
2999
3050
|
return this.branches.map((e) => e.value);
|
|
3000
3051
|
}
|
|
3001
|
-
},
|
|
3052
|
+
}, Ta = class extends L {
|
|
3002
3053
|
constructor(e, t, n) {
|
|
3003
3054
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
3004
3055
|
}
|
|
3005
3056
|
render(e, t) {
|
|
3006
3057
|
let n = e.environments;
|
|
3007
|
-
|
|
3058
|
+
g(n[this.variable]) || (n[this.variable] = 0);
|
|
3008
3059
|
let r = n[this.variable];
|
|
3009
3060
|
n[this.variable]++, t.write(l(r));
|
|
3010
3061
|
}
|
|
3011
3062
|
*localScope() {
|
|
3012
3063
|
yield this.identifier;
|
|
3013
3064
|
}
|
|
3014
|
-
},
|
|
3065
|
+
}, Ea = class extends L {
|
|
3015
3066
|
constructor(e, t, n, r) {
|
|
3016
|
-
super(e, t, n), this.file =
|
|
3067
|
+
super(e, t, n), this.file = va(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
|
|
3017
3068
|
}
|
|
3018
3069
|
*render(e, t) {
|
|
3019
3070
|
let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
|
|
@@ -3021,7 +3072,7 @@ var ha = class extends R {
|
|
|
3021
3072
|
e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
|
|
3022
3073
|
return;
|
|
3023
3074
|
}
|
|
3024
|
-
let o = yield
|
|
3075
|
+
let o = yield ba(this.file, e, n);
|
|
3025
3076
|
w(o, () => `illegal file path "${o}"`);
|
|
3026
3077
|
let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
|
|
3027
3078
|
e.setRegister("blockMode", $.STORE);
|
|
@@ -3043,13 +3094,13 @@ var ha = class extends R {
|
|
|
3043
3094
|
scope: Object.keys(this.args.hash)
|
|
3044
3095
|
};
|
|
3045
3096
|
}
|
|
3046
|
-
},
|
|
3097
|
+
}, Da = class extends L {
|
|
3047
3098
|
constructor(e, t, n, r) {
|
|
3048
3099
|
super(e, t, n), this.templates = [];
|
|
3049
3100
|
let i = /\w+/.exec(e.args);
|
|
3050
3101
|
for (this.block = i ? i[0] : ""; t.length;) {
|
|
3051
3102
|
let e = t.shift();
|
|
3052
|
-
if (
|
|
3103
|
+
if (q(e) && e.name === "endblock") return;
|
|
3053
3104
|
let n = r.parseToken(e, t);
|
|
3054
3105
|
this.templates.push(n);
|
|
3055
3106
|
}
|
|
@@ -3057,7 +3108,7 @@ var ha = class extends R {
|
|
|
3057
3108
|
}
|
|
3058
3109
|
*render(e, t) {
|
|
3059
3110
|
let n = this.getBlockRender(e);
|
|
3060
|
-
e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new
|
|
3111
|
+
e.getRegister("blockMode") === $.STORE ? e.getRegister("blocks", {})[this.block] = n : yield n(new Ue(), t);
|
|
3061
3112
|
}
|
|
3062
3113
|
getBlockRender(e) {
|
|
3063
3114
|
let t = this, { liquid: n, templates: r } = this, i = e.getRegister("blocks", {})[this.block], a = function* (i, a) {
|
|
@@ -3065,7 +3116,7 @@ var ha = class extends R {
|
|
|
3065
3116
|
if (o.includes(t)) throw Error("block tag cannot be nested");
|
|
3066
3117
|
o.push(t), e.push(Z({ block: i })), yield n.renderer.renderTemplates(r, e, a), e.pop(), o.pop();
|
|
3067
3118
|
};
|
|
3068
|
-
return i ? (e, t) => i(new
|
|
3119
|
+
return i ? (e, t) => i(new Ue((t) => a(e, t)), t) : a;
|
|
3069
3120
|
}
|
|
3070
3121
|
*children() {
|
|
3071
3122
|
return this.templates;
|
|
@@ -3073,11 +3124,11 @@ var ha = class extends R {
|
|
|
3073
3124
|
blockScope() {
|
|
3074
3125
|
return ["block"];
|
|
3075
3126
|
}
|
|
3076
|
-
},
|
|
3127
|
+
}, Oa = class extends L {
|
|
3077
3128
|
constructor(e, t, n) {
|
|
3078
3129
|
for (super(e, t, n), this.tokens = []; t.length;) {
|
|
3079
3130
|
let e = t.shift();
|
|
3080
|
-
if (
|
|
3131
|
+
if (q(e) && e.name === "endraw") return;
|
|
3081
3132
|
this.tokens.push(e);
|
|
3082
3133
|
}
|
|
3083
3134
|
throw Error(`tag ${e.getText()} not closed`);
|
|
@@ -3085,7 +3136,7 @@ var ha = class extends R {
|
|
|
3085
3136
|
render() {
|
|
3086
3137
|
return this.tokens.map((e) => e.getText()).join("");
|
|
3087
3138
|
}
|
|
3088
|
-
},
|
|
3139
|
+
}, ka = class extends ze {
|
|
3089
3140
|
constructor(e, t, n, r) {
|
|
3090
3141
|
super(e, n, r), this.length = e, this.cols = t;
|
|
3091
3142
|
}
|
|
@@ -3104,153 +3155,157 @@ var ha = class extends R {
|
|
|
3104
3155
|
col_last() {
|
|
3105
3156
|
return this.col() === this.cols;
|
|
3106
3157
|
}
|
|
3107
|
-
},
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
blockScope() {
|
|
3151
|
-
return [this.variable, "tablerowloop"];
|
|
3152
|
-
}
|
|
3153
|
-
},
|
|
3154
|
-
unless: class extends R {
|
|
3155
|
-
constructor(e, t, n, r) {
|
|
3156
|
-
super(e, t, n), this.branches = [], this.elseTemplates = [];
|
|
3157
|
-
let i = [], a = 0;
|
|
3158
|
-
r.parseStream(t).on("start", () => this.branches.push({
|
|
3159
|
-
value: new B(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3160
|
-
test: Jt,
|
|
3158
|
+
}, Aa = class extends L {
|
|
3159
|
+
constructor(e, t, n, r) {
|
|
3160
|
+
super(e, t, n);
|
|
3161
|
+
let i = this.tokenizer.readIdentifier();
|
|
3162
|
+
this.tokenizer.skipBlank();
|
|
3163
|
+
let a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
3164
|
+
if (a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
|
|
3165
|
+
this.variable = i.content, this.collection = o, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
|
|
3166
|
+
let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (e) => s.push(e)).on("end", () => {
|
|
3167
|
+
throw Error(`tag ${e.getText()} not closed`);
|
|
3168
|
+
});
|
|
3169
|
+
c.start();
|
|
3170
|
+
}
|
|
3171
|
+
*render(e, t) {
|
|
3172
|
+
let n = p(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
|
|
3173
|
+
n = n.slice(i, i + a);
|
|
3174
|
+
let o = r.cols || n.length, s = this.liquid.renderer, c = new ka(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
|
|
3175
|
+
e.push(l);
|
|
3176
|
+
for (let r = 0; r < n.length; r++, c.next()) l[this.variable] = n[r], c.col0() === 0 && (c.row() !== 1 && t.write("</tr>"), t.write(`<tr class="row${c.row()}">`)), t.write(`<td class="col${c.col()}">`), yield s.renderTemplates(this.templates, e, t), t.write("</td>");
|
|
3177
|
+
n.length && t.write("</tr>"), e.pop();
|
|
3178
|
+
}
|
|
3179
|
+
*children() {
|
|
3180
|
+
return this.templates;
|
|
3181
|
+
}
|
|
3182
|
+
*arguments() {
|
|
3183
|
+
yield this.collection;
|
|
3184
|
+
for (let e of Object.values(this.args.hash)) Y(e) && (yield e);
|
|
3185
|
+
}
|
|
3186
|
+
blockScope() {
|
|
3187
|
+
return [this.variable, "tablerowloop"];
|
|
3188
|
+
}
|
|
3189
|
+
}, ja = class extends L {
|
|
3190
|
+
constructor(e, t, n, r) {
|
|
3191
|
+
super(e, t, n), this.branches = [], this.elseTemplates = [];
|
|
3192
|
+
let i = [], a = 0;
|
|
3193
|
+
r.parseStream(t).on("start", () => this.branches.push({
|
|
3194
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3195
|
+
test: N,
|
|
3196
|
+
templates: i = []
|
|
3197
|
+
})).on("tag:elsif", (e) => {
|
|
3198
|
+
a > 0 ? i = [] : this.branches.push({
|
|
3199
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3200
|
+
test: M,
|
|
3161
3201
|
templates: i = []
|
|
3162
|
-
})
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
*render(e, t) {
|
|
3179
|
-
let n = this.liquid.renderer;
|
|
3180
|
-
for (let { value: r, test: i, templates: a } of this.branches) if (i(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
|
|
3181
|
-
yield n.renderTemplates(a, e, t);
|
|
3182
|
-
return;
|
|
3183
|
-
}
|
|
3184
|
-
yield n.renderTemplates(this.elseTemplates, e, t);
|
|
3185
|
-
}
|
|
3186
|
-
*children() {
|
|
3187
|
-
let e = this.branches.flatMap((e) => e.templates);
|
|
3188
|
-
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
3189
|
-
}
|
|
3190
|
-
arguments() {
|
|
3191
|
-
return this.branches.map((e) => e.value);
|
|
3192
|
-
}
|
|
3193
|
-
},
|
|
3194
|
-
break: class extends R {
|
|
3195
|
-
render(e, t) {
|
|
3196
|
-
e.breakCalled = !0;
|
|
3197
|
-
}
|
|
3198
|
-
},
|
|
3199
|
-
continue: class extends R {
|
|
3200
|
-
render(e, t) {
|
|
3201
|
-
e.continueCalled = !0;
|
|
3202
|
-
}
|
|
3203
|
-
},
|
|
3204
|
-
echo: class extends R {
|
|
3205
|
-
constructor(e, t, n) {
|
|
3206
|
-
super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new B(this.tokenizer.readFilteredValue(), this.liquid));
|
|
3207
|
-
}
|
|
3208
|
-
*render(e, t) {
|
|
3209
|
-
if (!this.value) return;
|
|
3210
|
-
let n = yield p(yield this.value.value(e, !1));
|
|
3211
|
-
t.write(n);
|
|
3212
|
-
}
|
|
3213
|
-
*arguments() {
|
|
3214
|
-
this.value && (yield this.value);
|
|
3215
|
-
}
|
|
3216
|
-
},
|
|
3217
|
-
liquid: class extends R {
|
|
3218
|
-
constructor(e, t, n, r) {
|
|
3219
|
-
super(e, t, n);
|
|
3220
|
-
let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
|
|
3221
|
-
this.templates = r.parseTokens(i);
|
|
3222
|
-
}
|
|
3223
|
-
*render(e, t) {
|
|
3224
|
-
yield this.liquid.renderer.renderTemplates(this.templates, e, t);
|
|
3225
|
-
}
|
|
3226
|
-
*children() {
|
|
3227
|
-
return this.templates;
|
|
3228
|
-
}
|
|
3229
|
-
},
|
|
3230
|
-
"#": class extends R {
|
|
3231
|
-
constructor(e, t, n) {
|
|
3232
|
-
if (super(e, t, n), e.args.search(/\n\s*[^#\s]/g) !== -1) throw Error("every line of an inline comment must start with a '#' character");
|
|
3202
|
+
});
|
|
3203
|
+
}).on("tag:else", () => {
|
|
3204
|
+
a++, i = this.elseTemplates;
|
|
3205
|
+
}).on("tag:endunless", function() {
|
|
3206
|
+
this.stop();
|
|
3207
|
+
}).on("template", (e) => {
|
|
3208
|
+
(i !== this.elseTemplates || a === 1) && i.push(e);
|
|
3209
|
+
}).on("end", () => {
|
|
3210
|
+
throw Error(`tag ${e.getText()} not closed`);
|
|
3211
|
+
}).start();
|
|
3212
|
+
}
|
|
3213
|
+
*render(e, t) {
|
|
3214
|
+
let n = this.liquid.renderer;
|
|
3215
|
+
for (let { value: r, test: i, templates: a } of this.branches) if (i(yield h(yield r.value(e, e.opts.lenientIf)), e)) {
|
|
3216
|
+
yield n.renderTemplates(a, e, t);
|
|
3217
|
+
return;
|
|
3233
3218
|
}
|
|
3234
|
-
|
|
3219
|
+
yield n.renderTemplates(this.elseTemplates, e, t);
|
|
3220
|
+
}
|
|
3221
|
+
*children() {
|
|
3222
|
+
let e = this.branches.flatMap((e) => e.templates);
|
|
3223
|
+
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
3235
3224
|
}
|
|
3236
|
-
|
|
3225
|
+
arguments() {
|
|
3226
|
+
return this.branches.map((e) => e.value);
|
|
3227
|
+
}
|
|
3228
|
+
}, Ma = class extends L {
|
|
3229
|
+
render(e, t) {
|
|
3230
|
+
e.breakCalled = !0;
|
|
3231
|
+
}
|
|
3232
|
+
}, Na = class extends L {
|
|
3233
|
+
render(e, t) {
|
|
3234
|
+
e.continueCalled = !0;
|
|
3235
|
+
}
|
|
3236
|
+
}, Pa = class extends L {
|
|
3237
|
+
constructor(e, t, n) {
|
|
3238
|
+
super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new z(this.tokenizer.readFilteredValue(), this.liquid));
|
|
3239
|
+
}
|
|
3240
|
+
*render(e, t) {
|
|
3241
|
+
if (!this.value) return;
|
|
3242
|
+
let n = yield h(yield this.value.value(e, !1)), r = this.liquid.options.outputEscape;
|
|
3243
|
+
r && !this.value.filters[this.value.filters.length - 1]?.raw && (n = yield r.call({
|
|
3244
|
+
context: e,
|
|
3245
|
+
token: this.token,
|
|
3246
|
+
liquid: this.liquid
|
|
3247
|
+
}, n)), t.write(n);
|
|
3248
|
+
}
|
|
3249
|
+
*arguments() {
|
|
3250
|
+
this.value && (yield this.value);
|
|
3251
|
+
}
|
|
3252
|
+
}, Fa = class extends L {
|
|
3253
|
+
constructor(e, t, n, r) {
|
|
3254
|
+
super(e, t, n);
|
|
3255
|
+
let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
|
|
3256
|
+
this.templates = r.parseTokens(i);
|
|
3257
|
+
}
|
|
3258
|
+
*render(e, t) {
|
|
3259
|
+
yield this.liquid.renderer.renderTemplates(this.templates, e, t);
|
|
3260
|
+
}
|
|
3261
|
+
*children() {
|
|
3262
|
+
return this.templates;
|
|
3263
|
+
}
|
|
3264
|
+
}, Ia = class extends L {
|
|
3265
|
+
constructor(e, t, n) {
|
|
3266
|
+
if (super(e, t, n), e.args.search(/\n\s*[^#\s]/g) !== -1) throw Error("every line of an inline comment must start with a '#' character");
|
|
3267
|
+
}
|
|
3268
|
+
render() {}
|
|
3269
|
+
}, La = {
|
|
3270
|
+
assign: ca,
|
|
3271
|
+
for: ua,
|
|
3272
|
+
capture: ma,
|
|
3273
|
+
case: ha,
|
|
3274
|
+
comment: ga,
|
|
3275
|
+
include: xa,
|
|
3276
|
+
render: _a,
|
|
3277
|
+
decrement: Sa,
|
|
3278
|
+
increment: Ta,
|
|
3279
|
+
cycle: Ca,
|
|
3280
|
+
if: wa,
|
|
3281
|
+
layout: Ea,
|
|
3282
|
+
block: Da,
|
|
3283
|
+
raw: Oa,
|
|
3284
|
+
tablerow: Aa,
|
|
3285
|
+
unless: ja,
|
|
3286
|
+
break: Ma,
|
|
3287
|
+
continue: Na,
|
|
3288
|
+
echo: Pa,
|
|
3289
|
+
liquid: Fa,
|
|
3290
|
+
"#": Ia
|
|
3291
|
+
}, Ra = class e {
|
|
3237
3292
|
constructor(e = {}) {
|
|
3238
|
-
this.renderer = new
|
|
3293
|
+
this.renderer = new Bt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = En(e), this.parser = new G(this), ae(La, (e, t) => this.registerTag(t, e)), ae(sa, (e, t) => this.registerFilter(t, e));
|
|
3239
3294
|
}
|
|
3240
3295
|
parse(e, t) {
|
|
3241
|
-
return new
|
|
3296
|
+
return new G(this).parse(e, t);
|
|
3242
3297
|
}
|
|
3243
3298
|
_render(e, t, n) {
|
|
3244
3299
|
let r = t instanceof Q ? t : new Q(t, this.options, n, { liquid: this });
|
|
3245
3300
|
return this.renderer.renderTemplates(e, r);
|
|
3246
3301
|
}
|
|
3247
3302
|
render(e, t, n) {
|
|
3248
|
-
return
|
|
3249
|
-
return
|
|
3303
|
+
return E(this, void 0, void 0, function* () {
|
|
3304
|
+
return D(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
|
|
3250
3305
|
});
|
|
3251
3306
|
}
|
|
3252
3307
|
renderSync(e, t, n) {
|
|
3253
|
-
return
|
|
3308
|
+
return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
|
|
3254
3309
|
}
|
|
3255
3310
|
renderToNodeStream(e, t, n = {}) {
|
|
3256
3311
|
let r = new Q(t, this.options, n, { liquid: this });
|
|
@@ -3261,59 +3316,59 @@ var ha = class extends R {
|
|
|
3261
3316
|
return this._render(r, t, n);
|
|
3262
3317
|
}
|
|
3263
3318
|
parseAndRender(e, t, n) {
|
|
3264
|
-
return
|
|
3265
|
-
return
|
|
3319
|
+
return E(this, void 0, void 0, function* () {
|
|
3320
|
+
return D(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
|
|
3266
3321
|
});
|
|
3267
3322
|
}
|
|
3268
3323
|
parseAndRenderSync(e, t, n) {
|
|
3269
|
-
return
|
|
3324
|
+
return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
|
|
3270
3325
|
}
|
|
3271
3326
|
_parsePartialFile(e, t, n) {
|
|
3272
|
-
return new
|
|
3327
|
+
return new G(this).parseFile(e, t, W.Partials, n);
|
|
3273
3328
|
}
|
|
3274
3329
|
_parseLayoutFile(e, t, n) {
|
|
3275
|
-
return new
|
|
3330
|
+
return new G(this).parseFile(e, t, W.Layouts, n);
|
|
3276
3331
|
}
|
|
3277
3332
|
_parseFile(e, t, n, r) {
|
|
3278
|
-
return new
|
|
3333
|
+
return new G(this).parseFile(e, t, n, r);
|
|
3279
3334
|
}
|
|
3280
3335
|
parseFile(e, t) {
|
|
3281
|
-
return
|
|
3282
|
-
return
|
|
3336
|
+
return E(this, void 0, void 0, function* () {
|
|
3337
|
+
return D(new G(this).parseFile(e, !1, t));
|
|
3283
3338
|
});
|
|
3284
3339
|
}
|
|
3285
3340
|
parseFileSync(e, t) {
|
|
3286
|
-
return
|
|
3341
|
+
return O(new G(this).parseFile(e, !0, t));
|
|
3287
3342
|
}
|
|
3288
3343
|
*_renderFile(e, t, n) {
|
|
3289
3344
|
let r = yield this._parseFile(e, n.sync, n.lookupType);
|
|
3290
3345
|
return yield this._render(r, t, n);
|
|
3291
3346
|
}
|
|
3292
3347
|
renderFile(e, t, n) {
|
|
3293
|
-
return
|
|
3294
|
-
return
|
|
3348
|
+
return E(this, void 0, void 0, function* () {
|
|
3349
|
+
return D(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
|
|
3295
3350
|
});
|
|
3296
3351
|
}
|
|
3297
3352
|
renderFileSync(e, t, n) {
|
|
3298
|
-
return
|
|
3353
|
+
return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
|
|
3299
3354
|
}
|
|
3300
3355
|
renderFileToNodeStream(e, t, n) {
|
|
3301
|
-
return
|
|
3356
|
+
return E(this, void 0, void 0, function* () {
|
|
3302
3357
|
let r = yield this.parseFile(e);
|
|
3303
3358
|
return this.renderToNodeStream(r, t, n);
|
|
3304
3359
|
});
|
|
3305
3360
|
}
|
|
3306
3361
|
_evalValue(e, t) {
|
|
3307
|
-
let n = new
|
|
3362
|
+
let n = new z(e, this), r = t instanceof Q ? t : new Q(t, this.options, {}, { liquid: this });
|
|
3308
3363
|
return n.value(r);
|
|
3309
3364
|
}
|
|
3310
3365
|
evalValue(e, t) {
|
|
3311
|
-
return
|
|
3312
|
-
return
|
|
3366
|
+
return E(this, void 0, void 0, function* () {
|
|
3367
|
+
return D(this._evalValue(e, t));
|
|
3313
3368
|
});
|
|
3314
3369
|
}
|
|
3315
3370
|
evalValueSync(e, t) {
|
|
3316
|
-
return
|
|
3371
|
+
return O(this._evalValue(e, t));
|
|
3317
3372
|
}
|
|
3318
3373
|
registerFilter(e, t) {
|
|
3319
3374
|
this.filters[e] = t;
|
|
@@ -3322,7 +3377,7 @@ var ha = class extends R {
|
|
|
3322
3377
|
delete this.filters[e];
|
|
3323
3378
|
}
|
|
3324
3379
|
registerTag(e, t) {
|
|
3325
|
-
this.tags[e] = o(t) ? t :
|
|
3380
|
+
this.tags[e] = o(t) ? t : Pn(t);
|
|
3326
3381
|
}
|
|
3327
3382
|
plugin(t) {
|
|
3328
3383
|
return t.call(this, e);
|
|
@@ -3332,91 +3387,88 @@ var ha = class extends R {
|
|
|
3332
3387
|
return function(n, r, i) {
|
|
3333
3388
|
if (t) {
|
|
3334
3389
|
t = !1;
|
|
3335
|
-
let n =
|
|
3390
|
+
let n = On(this.root);
|
|
3336
3391
|
e.options.root.unshift(...n), e.options.layouts.unshift(...n), e.options.partials.unshift(...n);
|
|
3337
3392
|
}
|
|
3338
3393
|
e.renderFile(n, r).then((e) => i(null, e), i);
|
|
3339
3394
|
};
|
|
3340
3395
|
}
|
|
3341
3396
|
analyze(e, t = {}) {
|
|
3342
|
-
return
|
|
3343
|
-
return
|
|
3397
|
+
return E(this, void 0, void 0, function* () {
|
|
3398
|
+
return V(e, t);
|
|
3344
3399
|
});
|
|
3345
3400
|
}
|
|
3346
3401
|
analyzeSync(e, t = {}) {
|
|
3347
|
-
return
|
|
3402
|
+
return H(e, t);
|
|
3348
3403
|
}
|
|
3349
3404
|
parseAndAnalyze(e, t, n = {}) {
|
|
3350
|
-
return
|
|
3351
|
-
return
|
|
3405
|
+
return E(this, void 0, void 0, function* () {
|
|
3406
|
+
return V(this.parse(e, t), n);
|
|
3352
3407
|
});
|
|
3353
3408
|
}
|
|
3354
3409
|
parseAndAnalyzeSync(e, t, n = {}) {
|
|
3355
|
-
return
|
|
3410
|
+
return H(this.parse(e, t), n);
|
|
3356
3411
|
}
|
|
3357
3412
|
variables(e, t = {}) {
|
|
3358
|
-
return
|
|
3359
|
-
let n = yield
|
|
3413
|
+
return E(this, void 0, void 0, function* () {
|
|
3414
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3360
3415
|
return Object.keys(n.variables);
|
|
3361
3416
|
});
|
|
3362
3417
|
}
|
|
3363
3418
|
variablesSync(e, t = {}) {
|
|
3364
|
-
let n =
|
|
3419
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3365
3420
|
return Object.keys(n.variables);
|
|
3366
3421
|
}
|
|
3367
3422
|
fullVariables(e, t = {}) {
|
|
3368
|
-
return
|
|
3369
|
-
let n = yield
|
|
3423
|
+
return E(this, void 0, void 0, function* () {
|
|
3424
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3370
3425
|
return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
|
|
3371
3426
|
});
|
|
3372
3427
|
}
|
|
3373
3428
|
fullVariablesSync(e, t = {}) {
|
|
3374
|
-
let n =
|
|
3429
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3375
3430
|
return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
|
|
3376
3431
|
}
|
|
3377
3432
|
variableSegments(e, t = {}) {
|
|
3378
|
-
return
|
|
3379
|
-
let n = yield
|
|
3380
|
-
return Array.from(
|
|
3433
|
+
return E(this, void 0, void 0, function* () {
|
|
3434
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3435
|
+
return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3381
3436
|
});
|
|
3382
3437
|
}
|
|
3383
3438
|
variableSegmentsSync(e, t = {}) {
|
|
3384
|
-
let n =
|
|
3385
|
-
return Array.from(
|
|
3439
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3440
|
+
return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3386
3441
|
}
|
|
3387
3442
|
globalVariables(e, t = {}) {
|
|
3388
|
-
return
|
|
3389
|
-
let n = yield
|
|
3443
|
+
return E(this, void 0, void 0, function* () {
|
|
3444
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3390
3445
|
return Object.keys(n.globals);
|
|
3391
3446
|
});
|
|
3392
3447
|
}
|
|
3393
3448
|
globalVariablesSync(e, t = {}) {
|
|
3394
|
-
let n =
|
|
3449
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3395
3450
|
return Object.keys(n.globals);
|
|
3396
3451
|
}
|
|
3397
3452
|
globalFullVariables(e, t = {}) {
|
|
3398
|
-
return
|
|
3399
|
-
let n = yield
|
|
3453
|
+
return E(this, void 0, void 0, function* () {
|
|
3454
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3400
3455
|
return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
|
|
3401
3456
|
});
|
|
3402
3457
|
}
|
|
3403
3458
|
globalFullVariablesSync(e, t = {}) {
|
|
3404
|
-
let n =
|
|
3459
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3405
3460
|
return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
|
|
3406
3461
|
}
|
|
3407
3462
|
globalVariableSegments(e, t = {}) {
|
|
3408
|
-
return
|
|
3409
|
-
let n = yield
|
|
3410
|
-
return Array.from(
|
|
3463
|
+
return E(this, void 0, void 0, function* () {
|
|
3464
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3465
|
+
return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3411
3466
|
});
|
|
3412
3467
|
}
|
|
3413
3468
|
globalVariableSegmentsSync(e, t = {}) {
|
|
3414
|
-
let n =
|
|
3415
|
-
return Array.from(
|
|
3469
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3470
|
+
return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3416
3471
|
}
|
|
3417
|
-
};
|
|
3472
|
+
}, za = "[VI]{version}[/VI]";
|
|
3418
3473
|
/* istanbul ignore file */
|
|
3419
|
-
|
|
3420
|
-
export { Ta as Liquid };
|
|
3421
|
-
|
|
3422
|
-
//# sourceMappingURL=liquid.browser-Bbt17cVz.js.map
|
|
3474
|
+
export { Te as AssertionError, ca as AssignTag, Da as BlockTag, Ma as BreakTag, ma as CaptureTag, ha as CaseTag, ga as CommentTag, Q as Context, Na as ContinueTag, Ca as CycleTag, Sa as DecrementTag, t as Drop, Pa as EchoTag, Ut as Expression, Ht as Filter, ua as ForTag, R as Hash, wa as IfTag, xa as IncludeTag, Ta as IncrementTag, Ia as InlineCommentTag, Ea as LayoutTag, Ra as Liquid, x as LiquidError, Fa as LiquidTag, W as LookupType, Fn as Output, be as ParseError, Mn as ParseStream, G as Parser, Oa as RawTag, xe as RenderError, _a as RenderTag, Aa as TablerowTag, L as Tag, _t as TagToken, e as Token, K as TokenKind, ye as TokenizationError, I as Tokenizer, ir as TypeGuards, Ce as UndefinedVariableError, ja as UnlessTag, z as Value, B as Variable, V as analyze, H as analyzeSync, w as assert, qe as createTrie, Xt as defaultOperators, F as defaultOptions, qt as evalQuotedToken, j as evalToken, Gt as evalTokenValue, sa as filters, N as isFalsy, M as isTruthy, La as tags, D as toPromise, h as toValue, O as toValueSync, za as version };
|