@templatical/editor 0.51.0 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +208 -0
- package/dist/{AiAltTextPopover-BZQ95GXL.js → AiAltTextPopover-Cm11CsKH.js} +7 -8
- package/dist/{AiAltTextReview-DoBEudnE.js → AiAltTextReview-DE8t8Rud.js} +8 -9
- package/dist/{AiChatPanel-Bs6sES3b.js → AiChatPanel-7ftS7d40.js} +18 -20
- package/dist/{AiPanels-CfN7A-ZA.js → AiPanels-CxGp6klr.js} +5 -7
- package/dist/{AiRewriteMenu-C3ZfDDYy.js → AiRewriteMenu-DNI-5CUj.js} +21 -22
- package/dist/{BlockIssueBadge-CKwZ1Vgn.js → BlockIssueBadge-6Ri2FfX-.js} +6 -7
- package/dist/{BlockPreviewCanvas-BXNLLLYi.js → BlockPreviewCanvas-Df9iz7sK.js} +10 -11
- package/dist/{CloudHeaderExtras-CsJMEiyN.js → CloudHeaderExtras-CsgyNNV1.js} +3 -4
- package/dist/{CloudPanels-B4F5m7vy.js → CloudPanels-BDV4XQ_l.js} +8 -9
- package/dist/{CollaborationNotices-CNuDp7Y2.js → CollaborationNotices-JQ3vQoqO.js} +4 -5
- package/dist/{CollaboratorBar-BtHPiuHq.js → CollaboratorBar-EeqqWcX6.js} +4 -5
- package/dist/{CommentsPanel-CyCM-BvT.js → CommentsPanel-BuftXc0U.js} +3 -5
- package/dist/{CommentsSidebar-Ca3DyFOX.js → CommentsSidebar-Co3x4uH0.js} +16 -17
- package/dist/{CountdownBlock-DR4Xm2-T.js → CountdownBlock-BT3ZTH1F.js} +5 -6
- package/dist/{CountdownToolbar-CEIMPojJ.js → CountdownToolbar-CrL4WKy9.js} +8 -9
- package/dist/{IssuesPanel-C8nMUccy.js → IssuesPanel-BHFQ3wrP.js} +12 -13
- package/dist/{LoadingTrack-B0RKQWq3.js → LoadingTrack-DZA5AoP9.js} +3 -4
- package/dist/{LogicTagInsertButton-CqfU52CO.js → LogicTagInsertButton-CSD9cfJB.js} +23 -30
- package/dist/{MediaEditModal-DHtkZ4OU.js → MediaEditModal-DQl5w44r.js} +7 -10
- package/dist/{MediaPanels-CGcOB2pR.js → MediaPanels-BFWYuJot.js} +3 -5
- package/dist/{MergeTagInput-YnEkorTZ.js → MergeTagInput-DE7kWwXx.js} +5 -6
- package/dist/{MergeTagModeToggle-Dhb1DAcQ.js → MergeTagModeToggle-DvD0ne7N.js} +7 -8
- package/dist/{MergeTagTextarea-e4lnwtqZ.js → MergeTagTextarea-DVPQkiYY.js} +3 -4
- package/dist/{ParagraphEditor-B6NK0ytw.js → ParagraphEditor-D-nqs82g.js} +55 -58
- package/dist/{RestoreVersionDialog-Bq_IGOLJ.js → RestoreVersionDialog-DqUPsLB9.js} +7 -8
- package/dist/{RichTextEditorContent-AOM6fylS.js → RichTextEditorContent-Xq9D0Zs3.js} +9 -10
- package/dist/{SaveBlockDialog-C8GngfQx.js → SaveBlockDialog-DAPv70p4.js} +13 -14
- package/dist/{SavedBlocksBrowserModal-wnkvxpm_.js → SavedBlocksBrowserModal-SRtN5h9q.js} +17 -18
- package/dist/{SavedBlocksPanels-C2s3q0pJ.js → SavedBlocksPanels-ChbL9v9x.js} +3 -5
- package/dist/{SavedBlocksPickBar-BjcTiV87.js → SavedBlocksPickBar-hRaiLNdu.js} +6 -7
- package/dist/{TemplateSettings-BVBWpiDU.js → TemplateSettings-D0XcH32O.js} +14 -15
- package/dist/{TestEmailModal-SyhO9bn3.js → TestEmailModal-Cb5t0yB2.js} +16 -18
- package/dist/{TestEmailPanel-BDd2Rtav.js → TestEmailPanel-COJQa2A9.js} +3 -5
- package/dist/{TitleEditor-pxD53y_l.js → TitleEditor-BYk_9SpQ.js} +14 -15
- package/dist/{ToggleSwitch-D51U9cmR.js → ToggleSwitch-poGWbduy.js} +2 -3
- package/dist/{Toolbar-CZSPZYbj.js → Toolbar-Dku_pZni.js} +134 -142
- package/dist/{TplModal-DCzBzicE.js → TplModal-9IndEYk5.js} +6 -7
- package/dist/{VersionHistoryMenu-BQeWPT85.js → VersionHistoryMenu-BG5qayvg.js} +12 -13
- package/dist/{VersionHistoryPanels-BBm7YbRQ.js → VersionHistoryPanels-hPg7Q5-f.js} +3 -5
- package/dist/{VersionPreviewBanner-DUGF0tUJ.js → VersionPreviewBanner-CSs7zum_.js} +5 -6
- package/dist/{WrapperBlock-BO619LAb.js → WrapperBlock-DwjK_IdJ.js} +6 -7
- 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-yt7SLzub.js} +3 -4
- package/dist/bundle-stats.json +7 -7
- 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-DjMoJCgU.js} +7 -8
- package/dist/cdn/chunks/{AiAltTextPopover-CQu0Q_ZX.js.map → AiAltTextPopover-DjMoJCgU.js.map} +1 -1
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js → AiAltTextReview-BafAtBoA.js} +8 -9
- package/dist/cdn/chunks/{AiAltTextReview-CI2HbWfn.js.map → AiAltTextReview-BafAtBoA.js.map} +1 -1
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js → AiChatPanel-DXeZgc7D.js} +15 -17
- package/dist/cdn/chunks/{AiChatPanel-BYqn1bKu.js.map → AiChatPanel-DXeZgc7D.js.map} +1 -1
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js → AiPanels-B4uAVRoO.js} +5 -7
- package/dist/cdn/chunks/{AiPanels-CIFKQv8Y.js.map → AiPanels-B4uAVRoO.js.map} +1 -1
- package/dist/cdn/chunks/{AiRewriteMenu-Bhh71zcc.js → AiRewriteMenu-4F6vwhJ5.js} +21 -22
- package/dist/cdn/chunks/AiRewriteMenu-4F6vwhJ5.js.map +1 -0
- package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js → BlockIssueBadge-DIJDqqcY.js} +6 -7
- package/dist/cdn/chunks/{BlockIssueBadge-DAn2vsMJ.js.map → BlockIssueBadge-DIJDqqcY.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js → BlockPreviewCanvas-Ny1X_mee.js} +9 -10
- package/dist/cdn/chunks/{BlockPreviewCanvas-D0--EQkP.js.map → BlockPreviewCanvas-Ny1X_mee.js.map} +1 -1
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js → CloudHeaderExtras-DtMORiLS.js} +4 -5
- package/dist/cdn/chunks/{CloudHeaderExtras-DaUU8P8R.js.map → CloudHeaderExtras-DtMORiLS.js.map} +1 -1
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js → CloudPanels-BkmLc2Fl.js} +7 -8
- package/dist/cdn/chunks/{CloudPanels-C3jsxo_f.js.map → CloudPanels-BkmLc2Fl.js.map} +1 -1
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js → CollaborationNotices-Hf8r08Sw.js} +5 -6
- package/dist/cdn/chunks/{CollaborationNotices-DjRI8gvs.js.map → CollaborationNotices-Hf8r08Sw.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js → CollaboratorBar-II8eYtKu.js} +6 -7
- package/dist/cdn/chunks/{CollaboratorBar-Dfzm6A9A.js.map → CollaboratorBar-II8eYtKu.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js → CommentsPanel-CAiwilM2.js} +4 -6
- package/dist/cdn/chunks/{CommentsPanel-CSO79OeX.js.map → CommentsPanel-CAiwilM2.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js → CommentsSidebar-Dj8sDiLN.js} +18 -19
- package/dist/cdn/chunks/{CommentsSidebar-CCvplq1Z.js.map → CommentsSidebar-Dj8sDiLN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js → CountdownBlock-Dyr5P0IP.js} +6 -7
- package/dist/cdn/chunks/{CountdownBlock-C6USdwk3.js.map → CountdownBlock-Dyr5P0IP.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js → CountdownToolbar-CguFJdqn.js} +9 -10
- package/dist/cdn/chunks/{CountdownToolbar-Cjud2Tos.js.map → CountdownToolbar-CguFJdqn.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js → IssuesPanel-pr7_nuLI.js} +9 -10
- package/dist/cdn/chunks/{IssuesPanel-BaWHPDxZ.js.map → IssuesPanel-pr7_nuLI.js.map} +1 -1
- package/dist/cdn/chunks/LoadingTrack-DfJ_C33G.js +11 -0
- package/dist/cdn/chunks/{LoadingTrack-BIcL4NiY.js.map → LoadingTrack-DfJ_C33G.js.map} +1 -1
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js → LogicTagInsertButton-B_ldj3TO.js} +18 -25
- package/dist/cdn/chunks/{LogicTagInsertButton-CsL2JDOG.js.map → LogicTagInsertButton-B_ldj3TO.js.map} +1 -1
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js → MediaEditModal-CGfzcHwP.js} +7 -10
- package/dist/cdn/chunks/{MediaEditModal-BuHCiyMu.js.map → MediaEditModal-CGfzcHwP.js.map} +1 -1
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js → MediaPanels-D0BdxdqP.js} +4 -6
- package/dist/cdn/chunks/{MediaPanels-DAgUf_T1.js.map → MediaPanels-D0BdxdqP.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js → MergeTagInput-CFu9VXPS.js} +6 -7
- package/dist/cdn/chunks/{MergeTagInput-C8U-7LxL.js.map → MergeTagInput-CFu9VXPS.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js → MergeTagModeToggle-BFpK5dxg.js} +7 -8
- package/dist/cdn/chunks/{MergeTagModeToggle-Mm-p0A52.js.map → MergeTagModeToggle-BFpK5dxg.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js → MergeTagTextarea-Zo0mYWbf.js} +4 -5
- package/dist/cdn/chunks/{MergeTagTextarea-DuLScsWM.js.map → MergeTagTextarea-Zo0mYWbf.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js → ParagraphEditor-DsPLVAgm.js} +35 -38
- package/dist/cdn/chunks/{ParagraphEditor-CqSj6Ayz.js.map → ParagraphEditor-DsPLVAgm.js.map} +1 -1
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js → RestoreVersionDialog-B866zFP0.js} +9 -10
- package/dist/cdn/chunks/{RestoreVersionDialog-CdA5osuA.js.map → RestoreVersionDialog-B866zFP0.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js → RichTextEditorContent-DaY63kye.js} +9 -10
- package/dist/cdn/chunks/{RichTextEditorContent-Q1d2xqBT.js.map → RichTextEditorContent-DaY63kye.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js → SaveBlockDialog-B7nftAAS.js} +11 -12
- package/dist/cdn/chunks/{SaveBlockDialog-CijargAy.js.map → SaveBlockDialog-B7nftAAS.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js → SavedBlocksBrowserModal-B9XCjDfm.js} +13 -14
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DtOz_X5S.js.map → SavedBlocksBrowserModal-B9XCjDfm.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js → SavedBlocksPanels-C3nK90pz.js} +4 -6
- package/dist/cdn/chunks/{SavedBlocksPanels-BowyED5h.js.map → SavedBlocksPanels-C3nK90pz.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js → SavedBlocksPickBar-B166Mek9.js} +7 -8
- package/dist/cdn/chunks/{SavedBlocksPickBar-BPRaJBv3.js.map → SavedBlocksPickBar-B166Mek9.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js → TemplateSettings-jWpmuWDR.js} +13 -14
- package/dist/cdn/chunks/{TemplateSettings-ByZeBO34.js.map → TemplateSettings-jWpmuWDR.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js → TestEmailModal-DcwKhFnI.js} +15 -17
- package/dist/cdn/chunks/{TestEmailModal-BUVTj3Ic.js.map → TestEmailModal-DcwKhFnI.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js → TestEmailPanel-BDBAvAfI.js} +4 -6
- package/dist/cdn/chunks/{TestEmailPanel-BxutYoWg.js.map → TestEmailPanel-BDBAvAfI.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js → TitleEditor-R2lQw6WA.js} +15 -16
- package/dist/cdn/chunks/{TitleEditor-Ccv6uoTz.js.map → TitleEditor-R2lQw6WA.js.map} +1 -1
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js → ToggleSwitch-BDMugNES.js} +3 -4
- package/dist/cdn/chunks/{ToggleSwitch-Ctdmj621.js.map → ToggleSwitch-BDMugNES.js.map} +1 -1
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js → Toolbar-CnvfW72e.js} +156 -164
- package/dist/cdn/chunks/{Toolbar-DoprRgTn.js.map → Toolbar-CnvfW72e.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js → TplModal-BDyeS69p.js} +6 -7
- package/dist/cdn/chunks/{TplModal-BXQzmsJX.js.map → TplModal-BDyeS69p.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js → VersionHistoryMenu-CmpgUI4Q.js} +13 -14
- package/dist/cdn/chunks/{VersionHistoryMenu-BF2fNCvq.js.map → VersionHistoryMenu-CmpgUI4Q.js.map} +1 -1
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js → VersionHistoryPanels-DB_FZyyg.js} +4 -6
- package/dist/cdn/chunks/{VersionHistoryPanels-Dal0Uk69.js.map → VersionHistoryPanels-DB_FZyyg.js.map} +1 -1
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js → VersionPreviewBanner-CZ--HOoa.js} +6 -7
- package/dist/cdn/chunks/{VersionPreviewBanner-BaGcn-b1.js.map → VersionPreviewBanner-CZ--HOoa.js.map} +1 -1
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js → WrapperBlock-D3obNGab.js} +7 -8
- package/dist/cdn/chunks/{WrapperBlock-DkQJtLz0.js.map → WrapperBlock-D3obNGab.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-ikZAmd6U.js → blockTypeIcons-DFf7AyqI.js} +3 -4
- package/dist/cdn/chunks/{blockTypeIcons-ikZAmd6U.js.map → blockTypeIcons-DFf7AyqI.js.map} +1 -1
- 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-D6niZ2Rc.js} +27 -46
- package/dist/cdn/chunks/{createCloudRuntime-DpBWhrv3.js.map → createCloudRuntime-D6niZ2Rc.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-C2epoAwW.js} +3 -4
- package/dist/cdn/chunks/{dist-Bo8Thh8v.js.map → dist-C2epoAwW.js.map} +1 -1
- package/dist/cdn/chunks/{dist-S-rLGqax.js → dist-CONcGNwy.js} +4 -5
- package/dist/cdn/chunks/{dist-S-rLGqax.js.map → dist-CONcGNwy.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-B8hTTYFO.js} +19 -22
- package/dist/cdn/chunks/{draggable-DZ0gwUJ6.js.map → draggable-B8hTTYFO.js.map} +1 -1
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js → editor-modal-cvYkpbHD.js} +66 -81
- package/dist/cdn/chunks/{editor-modal-CI6EfeMd.js.map → editor-modal-cvYkpbHD.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-CKAXAo3Z.js +1 -0
- 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/{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-ClDhn88e.js} +12 -17
- package/dist/cdn/chunks/{extensions-taJTZlLK.js.map → extensions-ClDhn88e.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-HCBP93Ch.js} +50 -55
- package/dist/cdn/chunks/{icons-DNX6StSs.js.map → icons-HCBP93Ch.js.map} +1 -1
- 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-BF9gazbd.js} +3 -4
- package/dist/cdn/chunks/{keys-BTpmg2Tt.js.map → keys-BF9gazbd.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-Bbt17cVz.js → liquid.browser-DkLBNrft.js} +705 -687
- package/dist/cdn/chunks/liquid.browser-DkLBNrft.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-DpHCSESZ.js} +3 -4
- package/dist/cdn/chunks/{normalizeMergeTagMarkup-DyePIGqu.js.map → normalizeMergeTagMarkup-DpHCSESZ.js.map} +1 -1
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js → preRenderCustomBlocks-D-dsBq5t.js} +6 -7
- package/dist/cdn/chunks/{preRenderCustomBlocks-Dc-QLntG.js.map → preRenderCustomBlocks-D-dsBq5t.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-B2h15u0_.js +72 -0
- package/dist/cdn/chunks/sanitizeHtml-B2h15u0_.js.map +1 -0
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js → socialIcons-rJoqO1TJ.js} +167 -191
- package/dist/cdn/chunks/{socialIcons-BBvsTwCV.js.map → socialIcons-rJoqO1TJ.js.map} +1 -1
- package/dist/cdn/chunks/{src-Bs_yxk3h.js → src-BKpAis_q.js} +502 -537
- package/dist/cdn/chunks/src-BKpAis_q.js.map +1 -0
- package/dist/cdn/chunks/{src-BNFnxfrA.js → src-C9DTvn1H.js} +207 -171
- package/dist/cdn/chunks/src-C9DTvn1H.js.map +1 -0
- package/dist/cdn/chunks/src-CUH_EI7k.js +647 -0
- package/dist/cdn/chunks/src-CUH_EI7k.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-ChSZybTi.js} +3364 -3240
- package/dist/cdn/chunks/tiptap-ChSZybTi.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js → useCloudI18n-RJXyVnIf.js} +4 -5
- package/dist/cdn/chunks/{useCloudI18n-AVXhzbhQ.js.map → useCloudI18n-RJXyVnIf.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-CCVFi1YZ.js → useEditorCore-CjaEV_01.js} +534 -586
- package/dist/cdn/chunks/useEditorCore-CjaEV_01.js.map +1 -0
- package/dist/cdn/chunks/useEditorRoot-BT3c9CXj.js +9 -0
- package/dist/cdn/chunks/{useEditorRoot-CR5GjJD6.js.map → useEditorRoot-BT3c9CXj.js.map} +1 -1
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js → useI18n-11iqzC6m.js} +4 -5
- package/dist/cdn/chunks/{useI18n-CbVubQhM.js.map → useI18n-11iqzC6m.js.map} +1 -1
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js → useLogicTag-vy5KGg5D.js} +5 -6
- package/dist/cdn/chunks/{useLogicTag-B49Nc53Y.js.map → useLogicTag-vy5KGg5D.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js → useMergeTag-BFBBjnwh.js} +5 -6
- package/dist/cdn/chunks/{useMergeTag-B0KryMj8.js.map → useMergeTag-BFBBjnwh.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js → usePopoverPosition-AnVIwiVv.js} +7 -11
- package/dist/cdn/chunks/{usePopoverPosition-C829ps5i.js.map → usePopoverPosition-AnVIwiVv.js.map} +1 -1
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js → useScrollToBlock-C0dawxGr.js} +5 -7
- package/dist/cdn/chunks/{useScrollToBlock-CAwvulog.js.map → useScrollToBlock-C0dawxGr.js.map} +1 -1
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js → withCurrentFont-C3CquBQN.js} +3 -4
- package/dist/cdn/chunks/{withCurrentFont-DFPXeVfG.js.map → withCurrentFont-C3CquBQN.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +389 -378
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-yYsp5Xpk.js → check-N3x4z_rH.js} +1 -2
- package/dist/{chevron-down-DTmD06_j.js → chevron-down-gXu9qNwO.js} +1 -2
- package/dist/{chevron-right-BSeYZOxc.js → chevron-right-rL0ayGk5.js} +1 -2
- package/dist/{chevron-up-BOApwrxi.js → chevron-up-0ugh8HnW.js} +1 -2
- package/dist/{circle-alert-BMszY8im.js → circle-alert-B9Ls75B5.js} +1 -2
- package/dist/{clock-HADxnl6-.js → clock-BqHBaCLm.js} +1 -2
- package/dist/{createCloudRuntime-DVQI_ReU.js → createCloudRuntime-B5VIdnwz.js} +11 -17
- package/dist/{createLucideIcon-0lYYH3EW.js → createLucideIcon-BV7Gwz_Z.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-DI4_YSnG.js → dist-BA-jTQgw.js} +3 -4
- package/dist/{dist-BC-ZEYLd.js → dist-BF5zEHop.js} +2 -3
- package/dist/{dist-CyBwSiAa.js → dist-BS5uKktL.js} +2 -3
- package/dist/{dist-C7EtxNCb.js → dist-CEdyyDn7.js} +2 -3
- package/dist/{dist-Cr7RPxI9.js → dist-CWSG7Kj0.js} +478 -461
- package/dist/{dist-DXyGqIDE.js → dist-Cy8I5scI.js} +2 -3
- package/dist/{dist-DtOF3bDW.js → dist-CzrLYq2s.js} +398 -344
- package/dist/{dist-DVNjPKsH.js → dist-D6fZec6r.js} +3 -4
- package/dist/{dist-C_dV9QAx.js → dist-DDN7yR-w.js} +7 -7
- 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/{editor-modal-Bzhl-PgI.js → editor-modal-Du9VI9q4.js} +203 -218
- package/dist/{emojiData-6m0DBh7O.js → emojiData-CBNuCfum.js} +1 -2
- package/dist/en-CyEE7FPY.js +1 -0
- package/dist/{en-CW71OK66.js → en-D14i5nFh.js} +1 -2
- 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-FRYhx7qa.js} +59 -68
- package/dist/{eye-DWkSvYpj.js → eye-BKj9Tfnc.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-DNdvdTla.js} +1 -2
- package/dist/index.d.ts +6 -6
- package/dist/{info-ClWJGoZy.js → info-Bx-kBkbH.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-DBjrQkYH.js} +2 -3
- package/dist/{link-BqRicFTA.js → link-D8-rYdIQ.js} +1 -2
- package/dist/{liquid.browser-Ct2-EezB.js → liquid.browser-D1RxawkY.js} +704 -686
- package/dist/{list-bojQr9bn.js → list-BneisA27.js} +1 -2
- package/dist/{loader-circle-B2B8LbUu.js → loader-circle-DBEXphyx.js} +1 -2
- package/dist/{logger-k9Nbj3Cp.js → logger-BOu7oEtk.js} +1 -2
- package/dist/{message-circle-BEuiNsyZ.js → message-circle-Bg4xInCM.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-IH8COHzd.js} +30 -31
- package/dist/{package-DCROB4aM.js → package-B40Vkfsp.js} +1 -2
- package/dist/{pencil-CEotCKbf.js → pencil-CYdAHTds.js} +1 -2
- package/dist/{preRenderCustomBlocks-D8rr61_z.js → preRenderCustomBlocks-AbZArwkR.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-Bb1FWrU0.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-CLGymEyk.js} +7 -8
- package/dist/sanitizeHtml-CnOA1efV.js +942 -0
- package/dist/{search-Cy99zPYf.js → search-BZEo08gi.js} +1 -2
- package/dist/{send-BDLJFsf3.js → send-DHtrnXQs.js} +1 -2
- package/dist/{smartphone-CVvQaNA4.js → smartphone-dlN3vpA3.js} +1 -2
- package/dist/{socialIcons-Dd-jRiVe.js → socialIcons-B_d52_eS.js} +256 -267
- package/dist/{sparkles-Ce0Qz0ox.js → sparkles-NOttoDnJ.js} +1 -2
- package/dist/{square-BWlolnXe.js → square-B1CJgdt2.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 +413 -401
- package/dist/{text-align-start-D1V5gPTy.js → text-align-start-zpoXmb-Z.js} +1 -2
- package/dist/{trash-CZfiUFmw.js → trash-CGbk4Sgt.js} +1 -2
- package/dist/{triangle-alert-CFDzyFC7.js → triangle-alert-CKLMyGVp.js} +1 -2
- package/dist/{upload-BJfvdIrD.js → upload-DQoackAn.js} +1 -2
- package/dist/{useCloudI18n-Dcjua65H.js → useCloudI18n-DcLtxOQZ.js} +3 -4
- package/dist/{useEditorCore-BTLeAVlM.js → useEditorCore-DG9UvWUm.js} +931 -984
- package/dist/useEditorRoot-BKr6nNkC.js +7 -0
- package/dist/{useI18n-BdoY7xDE.js → useI18n-CeTm777E.js} +3 -4
- package/dist/{useLogicTag-DKLZ1T9H.js → useLogicTag-DFDYJeMN.js} +4 -5
- package/dist/{useMergeTag-Bhdx7AKk.js → useMergeTag-B46vACAG.js} +4 -5
- package/dist/{usePopoverPosition-BZea45XK.js → usePopoverPosition-C42kD7zt.js} +6 -10
- package/dist/{useScrollToBlock-FmNMALM_.js → useScrollToBlock-C-NzvjeO.js} +4 -6
- package/dist/{vue.runtime.esm-bundler-DgFJ6GPG.js → vue.runtime.esm-bundler-CrlI8j5R.js} +14 -18
- package/dist/{withCurrentFont-BATJHNve.js → withCurrentFont-v_a4Oso8.js} +2 -3
- package/dist/{x-CZ0Js0hA.js → x-zcrnmcmU.js} +1 -2
- package/package.json +24 -22
- package/dist/AiHeaderMenu-BEaTazx4.js +0 -36
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js +0 -37
- package/dist/cdn/chunks/AiHeaderMenu-oldAAFyL.js.map +0 -1
- package/dist/cdn/chunks/AiRewriteMenu-Bhh71zcc.js.map +0 -1
- package/dist/cdn/chunks/LoadingTrack-BIcL4NiY.js +0 -12
- package/dist/cdn/chunks/en-ifvu6oPv.js +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-K6fw_35b.js +0 -649
- package/dist/cdn/chunks/src-K6fw_35b.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CtVrAViq.js.map +0 -1
- 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.0/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;
|
|
@@ -36,7 +36,7 @@ function u(e, t, n) {
|
|
|
36
36
|
if (t < 0 && (t = e.length + t), !n || i.call(e, t)) return e[t];
|
|
37
37
|
}
|
|
38
38
|
function d(e) {
|
|
39
|
-
return e = p(e), g(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) :
|
|
39
|
+
return e = p(e), g(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : se(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
|
|
40
40
|
}
|
|
41
41
|
function f(e) {
|
|
42
42
|
return e = p(e), h(e) ? [] : g(e) ? e : [e];
|
|
@@ -66,7 +66,7 @@ function re(e) {
|
|
|
66
66
|
return e && m(e.length);
|
|
67
67
|
}
|
|
68
68
|
function ie(e) {
|
|
69
|
-
return
|
|
69
|
+
return se(e) && Symbol.iterator in e;
|
|
70
70
|
}
|
|
71
71
|
function ae(e, t) {
|
|
72
72
|
e ||= {};
|
|
@@ -76,59 +76,59 @@ function ae(e, t) {
|
|
|
76
76
|
function oe(e) {
|
|
77
77
|
return e[e.length - 1];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function se(e) {
|
|
80
80
|
let t = typeof e;
|
|
81
81
|
return e !== null && (t === "object" || t === "function");
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function ce(e, t, n = 1) {
|
|
84
84
|
let r = [];
|
|
85
85
|
for (let i = e; i < t; i += n) r.push(i);
|
|
86
86
|
return r;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function _(e, t, n = " ") {
|
|
89
|
+
return ue(e, t, n, (e, t) => t + e);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function le(e, t, n = " ") {
|
|
92
|
+
return ue(e, t, n, (e, t) => e + t);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function ue(e, t, n, r) {
|
|
95
95
|
e = String(e);
|
|
96
96
|
let i = t - e.length;
|
|
97
97
|
return i <= 0 ? e : r(e, n.repeat(i));
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function de(e) {
|
|
100
100
|
return e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function fe(e) {
|
|
103
103
|
return [...e].some((e) => e >= "a" && e <= "z") ? e.toUpperCase() : e.toLowerCase();
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function pe(e, t) {
|
|
106
106
|
return e.length > t ? e.slice(0, t - 3) + "..." : e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function me(e, t) {
|
|
109
109
|
return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || e < t ? -1 : +(e > t);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function he(e, t) {
|
|
112
112
|
return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ge(e) {
|
|
115
115
|
return function(...t) {
|
|
116
116
|
return e.call(this, ...t.map(p));
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function v(e) {
|
|
120
120
|
return function(...t) {
|
|
121
121
|
return e.call(this, ...t.map(ee));
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
function*
|
|
124
|
+
function* _e(e) {
|
|
125
125
|
let t = /* @__PURE__ */ new Set();
|
|
126
126
|
for (let n of e) {
|
|
127
127
|
let e = JSON.stringify(n);
|
|
128
128
|
t.has(e) || (t.add(e), yield n);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
var
|
|
131
|
+
var ve = "__liquidClass__", y = class extends Error {
|
|
132
132
|
constructor(e, t) {
|
|
133
133
|
super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", {
|
|
134
134
|
value: e,
|
|
@@ -136,36 +136,36 @@ var ge = "__liquidClass__", x = class extends Error {
|
|
|
136
136
|
}), Object.defineProperty(this, "token", {
|
|
137
137
|
value: t,
|
|
138
138
|
enumerable: !1
|
|
139
|
-
}), Object.defineProperty(this,
|
|
139
|
+
}), Object.defineProperty(this, ve, {
|
|
140
140
|
value: "LiquidError",
|
|
141
141
|
enumerable: !1
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
update() {
|
|
145
145
|
Object.defineProperty(this, "context", {
|
|
146
|
-
value:
|
|
146
|
+
value: Ee(this.token),
|
|
147
147
|
enumerable: !1
|
|
148
|
-
}), this.message =
|
|
148
|
+
}), 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
149
|
}
|
|
150
150
|
static is(e) {
|
|
151
|
-
return e?.[
|
|
151
|
+
return e?.[ve] === "LiquidError";
|
|
152
152
|
}
|
|
153
|
-
},
|
|
153
|
+
}, ye = class extends y {
|
|
154
154
|
constructor(e, t) {
|
|
155
155
|
super(e, t), this.name = "TokenizationError", super.update();
|
|
156
156
|
}
|
|
157
|
-
},
|
|
157
|
+
}, be = class extends y {
|
|
158
158
|
constructor(e, t) {
|
|
159
159
|
super(e, t), this.name = "ParseError", this.message = e.message, super.update();
|
|
160
160
|
}
|
|
161
|
-
},
|
|
161
|
+
}, xe = class extends y {
|
|
162
162
|
constructor(e, t) {
|
|
163
163
|
super(e, t.token), this.name = "RenderError", this.message = e.message, super.update();
|
|
164
164
|
}
|
|
165
165
|
static is(e) {
|
|
166
166
|
return e.name === "RenderError";
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, Se = class extends y {
|
|
169
169
|
constructor(e) {
|
|
170
170
|
super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
|
|
171
171
|
let t = e.length > 1 ? "s" : "";
|
|
@@ -174,32 +174,32 @@ var ge = "__liquidClass__", x = class extends Error {
|
|
|
174
174
|
static is(e) {
|
|
175
175
|
return e.name === "LiquidErrors";
|
|
176
176
|
}
|
|
177
|
-
},
|
|
177
|
+
}, Ce = class extends y {
|
|
178
178
|
constructor(e, t) {
|
|
179
179
|
super(e, t), this.name = "UndefinedVariableError", this.message = e.message, super.update();
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, we = class extends Error {
|
|
182
182
|
constructor(e) {
|
|
183
183
|
super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
|
|
184
184
|
}
|
|
185
|
-
},
|
|
185
|
+
}, Te = class extends Error {
|
|
186
186
|
constructor(e) {
|
|
187
187
|
super(e), this.name = "AssertionError", this.message = e + "";
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
function
|
|
190
|
+
function Ee(e) {
|
|
191
191
|
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 ? ">> " : " "}${
|
|
192
|
+
return ce(i, a + 1).map((e) => {
|
|
193
|
+
let i = `${e === t ? ">> " : " "}${_(String(e), String(a).length)}| `, o = e === t ? "\n" + _("^", n + i.length) : "";
|
|
194
194
|
return i += r[e - 1], i += o, i;
|
|
195
195
|
}).join("\n");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function De(e, t) {
|
|
198
198
|
t.file && (e += `, file:${t.file}`);
|
|
199
199
|
let [n, r] = t.getPosition();
|
|
200
200
|
return e += `, line:${n}, col:${r}`, e;
|
|
201
201
|
}
|
|
202
|
-
var
|
|
202
|
+
var b = [
|
|
203
203
|
0,
|
|
204
204
|
0,
|
|
205
205
|
0,
|
|
@@ -328,17 +328,17 @@ var S = [
|
|
|
328
328
|
0,
|
|
329
329
|
0,
|
|
330
330
|
0
|
|
331
|
-
],
|
|
332
|
-
function
|
|
331
|
+
], Oe = 1, x = 4, ke = 8, Ae = 16, je = 32, Me = 64, Ne = 128;
|
|
332
|
+
function S(e) {
|
|
333
333
|
let t = e.charCodeAt(0);
|
|
334
|
-
return t >= 128 ? !
|
|
334
|
+
return t >= 128 ? !b[t] : !!(b[t] & Oe);
|
|
335
335
|
}
|
|
336
|
-
|
|
337
|
-
function
|
|
338
|
-
if (!e) throw new
|
|
336
|
+
b[160] = b[5760] = b[6158] = b[8192] = b[8193] = b[8194] = b[8195] = b[8196] = b[8197] = b[8198] = b[8199] = b[8200] = b[8201] = b[8202] = b[8232] = b[8233] = b[8239] = b[8287] = b[12288] = x, b[8220] = b[8221] = Ne;
|
|
337
|
+
function C(e, t) {
|
|
338
|
+
if (!e) throw new Te(typeof t == "function" ? t() : t || `expect ${e} to be true`);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
|
|
340
|
+
function w(e, t = `unexpected ${JSON.stringify(e)}`) {
|
|
341
|
+
C(!e, t);
|
|
342
342
|
}
|
|
343
343
|
var Pe = class extends t {
|
|
344
344
|
*equals(e) {
|
|
@@ -361,7 +361,7 @@ var Pe = class extends t {
|
|
|
361
361
|
}
|
|
362
362
|
}, Fe = class e extends t {
|
|
363
363
|
*equals(t) {
|
|
364
|
-
return t instanceof e ? !1 : (t = yield p(t), a(t) || g(t) ? t.length === 0 :
|
|
364
|
+
return t instanceof e ? !1 : (t = yield p(t), a(t) || g(t) ? t.length === 0 : se(t) ? Object.keys(t).length === 0 : !1);
|
|
365
365
|
}
|
|
366
366
|
gt() {
|
|
367
367
|
return !1;
|
|
@@ -462,7 +462,7 @@ function Ge(e) {
|
|
|
462
462
|
let e = n;
|
|
463
463
|
for (let n = 0; n < t.length; n++) {
|
|
464
464
|
let r = t[n];
|
|
465
|
-
e[r] = e[r] || {}, n === t.length - 1 &&
|
|
465
|
+
e[r] = e[r] || {}, n === t.length - 1 && S(t[n]) && (e[r].needBoundary = !0), e = e[r];
|
|
466
466
|
}
|
|
467
467
|
e.data = r, e.end = !0;
|
|
468
468
|
}
|
|
@@ -600,7 +600,7 @@ var et = {
|
|
|
600
600
|
}, tt = /* @__PURE__ */ new Set("aAbBceklpP");
|
|
601
601
|
function nt(e, t) {
|
|
602
602
|
let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
|
|
603
|
-
return (e.getTimezoneOffset() > 0 ? "-" : "+") +
|
|
603
|
+
return (e.getTimezoneOffset() > 0 ? "-" : "+") + _(r, 2, "0") + (t.flags[":"] ? ":" : "") + _(i, 2, "0");
|
|
604
604
|
}
|
|
605
605
|
var rt = {
|
|
606
606
|
a: (e) => e.getShortWeekdayName(),
|
|
@@ -621,8 +621,8 @@ var rt = {
|
|
|
621
621
|
M: (e) => e.getMinutes(),
|
|
622
622
|
N: (e, t) => {
|
|
623
623
|
var n;
|
|
624
|
-
let r = Number(t.width) || 9, i =
|
|
625
|
-
return (n = t.memoryLimit) == null || n.use(r - i.length),
|
|
624
|
+
let r = Number(t.width) || 9, i = _(String(e.getMilliseconds()), 3, "0").slice(0, r);
|
|
625
|
+
return (n = t.memoryLimit) == null || n.use(r - i.length), le(i, r, "0");
|
|
626
626
|
},
|
|
627
627
|
p: (e) => e.getHours() < 12 ? "AM" : "PM",
|
|
628
628
|
P: (e) => e.getHours() < 12 ? "am" : "pm",
|
|
@@ -660,7 +660,7 @@ function at(e, t, n) {
|
|
|
660
660
|
modifier: o,
|
|
661
661
|
memoryLimit: n
|
|
662
662
|
})), d = tt.has(s) ? " " : "0", f = Number(a) || et[s] || 0;
|
|
663
|
-
return l["^"] ? u = u.toUpperCase() : l["#"] && (u =
|
|
663
|
+
return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), _(u, f, d);
|
|
664
664
|
}
|
|
665
665
|
function ot() {
|
|
666
666
|
return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
|
|
@@ -774,17 +774,17 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
774
774
|
this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
|
|
775
775
|
}
|
|
776
776
|
use(e) {
|
|
777
|
-
+e > 0 && (
|
|
777
|
+
+e > 0 && (C(this.base + +e <= this.limit, this.message), this.base += +e);
|
|
778
778
|
}
|
|
779
779
|
check(e) {
|
|
780
|
-
+e > 0 &&
|
|
780
|
+
+e > 0 && C(+e <= this.limit, this.message);
|
|
781
781
|
}
|
|
782
782
|
}, mt = class extends e {
|
|
783
783
|
constructor(e, [t, n], r, i, a, o, s, c) {
|
|
784
784
|
super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
|
|
785
785
|
let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
|
|
786
|
-
for (; d < f &&
|
|
787
|
-
for (; f > d &&
|
|
786
|
+
for (; d < f && b[r.charCodeAt(d)] & x;) d++;
|
|
787
|
+
for (; f > d && b[r.charCodeAt(f - 1)] & x;) f--;
|
|
788
788
|
this.contentRange = [d, f], this.trimLeft = l || o, this.trimRight = u || s;
|
|
789
789
|
}
|
|
790
790
|
get content() {
|
|
@@ -793,31 +793,31 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
793
793
|
}, ht = class extends mt {
|
|
794
794
|
constructor(e, t, n, r, i) {
|
|
795
795
|
let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
|
|
796
|
-
super(
|
|
796
|
+
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
797
|
}
|
|
798
798
|
}, gt = class extends mt {
|
|
799
799
|
constructor(e, t, n, r, i) {
|
|
800
800
|
let { trimOutputLeft: a, trimOutputRight: o, outputDelimiterLeft: s, outputDelimiterRight: c } = r, l = [t + s.length, n - c.length];
|
|
801
|
-
super(
|
|
801
|
+
super(K.Output, l, e, t, n, a, o, i);
|
|
802
802
|
}
|
|
803
803
|
}, _t = class extends e {
|
|
804
804
|
constructor(e, t, n, r) {
|
|
805
|
-
super(
|
|
805
|
+
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
806
|
}
|
|
807
807
|
getContent() {
|
|
808
808
|
return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
|
|
809
809
|
}
|
|
810
810
|
}, vt = class extends e {
|
|
811
811
|
constructor(e, t, n, r) {
|
|
812
|
-
super(
|
|
812
|
+
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
813
|
}
|
|
814
814
|
}, yt = class extends e {
|
|
815
815
|
constructor(e, t, n, r) {
|
|
816
|
-
super(
|
|
816
|
+
super(K.Word, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = this.getText();
|
|
817
817
|
}
|
|
818
818
|
}, bt = class extends e {
|
|
819
819
|
constructor(e, t, n, r) {
|
|
820
|
-
super(
|
|
820
|
+
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 = Ue[this.literal];
|
|
821
821
|
}
|
|
822
822
|
}, xt = {
|
|
823
823
|
"==": 2,
|
|
@@ -843,22 +843,22 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
|
|
|
843
843
|
or: 0
|
|
844
844
|
}, Ct = class extends e {
|
|
845
845
|
constructor(e, t, n, r) {
|
|
846
|
-
super(
|
|
846
|
+
super(K.Operator, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.operator = this.getText();
|
|
847
847
|
}
|
|
848
848
|
getPrecedence() {
|
|
849
849
|
return this.operator in xt ? xt[this.operator] : 1;
|
|
850
850
|
}
|
|
851
851
|
}, wt = class extends e {
|
|
852
852
|
constructor(e, t, n, r, i, a) {
|
|
853
|
-
super(
|
|
853
|
+
super(K.PropertyAccess, n, r, i, a), this.variable = e, this.props = t;
|
|
854
854
|
}
|
|
855
855
|
}, Tt = class extends e {
|
|
856
856
|
constructor(e, t, n, r, i, a) {
|
|
857
|
-
super(
|
|
857
|
+
super(K.Filter, n, r, i, a), this.name = e, this.args = t;
|
|
858
858
|
}
|
|
859
859
|
}, Et = class extends e {
|
|
860
860
|
constructor(e, t, n, r, i, a) {
|
|
861
|
-
super(
|
|
861
|
+
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
862
|
}
|
|
863
863
|
}, Dt = /[\da-fA-F]/, Ot = /[0-7]/, kt = {
|
|
864
864
|
b: "\b",
|
|
@@ -890,22 +890,22 @@ function jt(e) {
|
|
|
890
890
|
}
|
|
891
891
|
var Mt = class extends e {
|
|
892
892
|
constructor(e, t, n, r) {
|
|
893
|
-
super(
|
|
893
|
+
super(K.Quoted, e, t, n, r), this.input = e, this.begin = t, this.end = n, this.file = r, this.content = jt(this.getText());
|
|
894
894
|
}
|
|
895
895
|
}, Nt = class extends e {
|
|
896
896
|
constructor(e, t, n, r, i, a) {
|
|
897
|
-
super(
|
|
897
|
+
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
898
|
}
|
|
899
899
|
}, Pt = class extends mt {
|
|
900
900
|
constructor(e, t, n, r, i) {
|
|
901
|
-
super(
|
|
901
|
+
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
902
|
}
|
|
903
903
|
get args() {
|
|
904
904
|
return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
|
|
905
905
|
}
|
|
906
906
|
}, Ft = class extends e {
|
|
907
907
|
constructor(e, t, n, r, i, a) {
|
|
908
|
-
super(
|
|
908
|
+
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
909
|
}
|
|
910
910
|
}, It = { now: () => Date.now() };
|
|
911
911
|
function Lt() {
|
|
@@ -925,12 +925,12 @@ var Rt = class {
|
|
|
925
925
|
let e = yield i.render(t, n);
|
|
926
926
|
if (e && n.write(e), t.breakCalled || t.continueCalled) break;
|
|
927
927
|
} catch (e) {
|
|
928
|
-
let n =
|
|
928
|
+
let n = y.is(e) ? e : new xe(e, i);
|
|
929
929
|
if (t.opts.catchAllErrors) r.push(n);
|
|
930
930
|
else throw n;
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
if (r.length) throw new
|
|
933
|
+
if (r.length) throw new Se(r);
|
|
934
934
|
return n.buffer;
|
|
935
935
|
}
|
|
936
936
|
};
|
|
@@ -939,7 +939,7 @@ function zt(e) {
|
|
|
939
939
|
}
|
|
940
940
|
var Bt = class {
|
|
941
941
|
constructor(e, t, n) {
|
|
942
|
-
this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler :
|
|
942
|
+
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
943
|
}
|
|
944
944
|
*render(e, t) {
|
|
945
945
|
let n = [];
|
|
@@ -955,9 +955,9 @@ var Bt = class {
|
|
|
955
955
|
this.postfix = [...qt(e)];
|
|
956
956
|
}
|
|
957
957
|
*evaluate(e, t) {
|
|
958
|
-
|
|
958
|
+
C(e, "unable to evaluate: context not defined");
|
|
959
959
|
let n = [];
|
|
960
|
-
for (let r of this.postfix) if (
|
|
960
|
+
for (let r of this.postfix) if (qn(r)) {
|
|
961
961
|
let t = n.pop(), i;
|
|
962
962
|
if (St[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
|
|
963
963
|
else {
|
|
@@ -975,17 +975,17 @@ var Bt = class {
|
|
|
975
975
|
function* j(e, t, n = !1) {
|
|
976
976
|
if (e) {
|
|
977
977
|
if ("content" in e) return e.content;
|
|
978
|
-
if (
|
|
979
|
-
if (
|
|
980
|
-
if (
|
|
978
|
+
if (J(e)) return yield Wt(e, t, n);
|
|
979
|
+
if (er(e)) return yield Kt(e, t);
|
|
980
|
+
if (tr(e)) return yield Ht(e, t, n);
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
function* Ht(e, t, n) {
|
|
984
|
-
|
|
984
|
+
C(t.liquid, "FilteredValueToken evaluation requires liquid instance in context"), n ||= t.opts.lenientIf && e.filters.length > 0 && e.filters[0].name === "default";
|
|
985
985
|
let r = yield e.initial.evaluate(t, n);
|
|
986
986
|
for (let n of e.filters) {
|
|
987
987
|
let e = t.liquid.filters[n.name];
|
|
988
|
-
|
|
988
|
+
C(e || !t.liquid.options.strictFilters, () => `undefined filter: ${n.name}`), r = yield new Bt(n, e, t.liquid).render(r, t);
|
|
989
989
|
}
|
|
990
990
|
return r;
|
|
991
991
|
}
|
|
@@ -1003,7 +1003,7 @@ function* Wt(e, t, n) {
|
|
|
1003
1003
|
return yield t._get(r);
|
|
1004
1004
|
} catch (t) {
|
|
1005
1005
|
if (n && t.name === "InternalUndefinedVariableError") return null;
|
|
1006
|
-
throw new
|
|
1006
|
+
throw new Ce(t, e);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
function Gt(e) {
|
|
@@ -1011,28 +1011,28 @@ function Gt(e) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
function* Kt(e, t) {
|
|
1013
1013
|
let n = yield Ut(e.lhs, t), r = yield Ut(e.rhs, t);
|
|
1014
|
-
return t.memoryLimit.use(r - n + 1),
|
|
1014
|
+
return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
|
|
1015
1015
|
}
|
|
1016
1016
|
function* qt(e) {
|
|
1017
1017
|
let t = [];
|
|
1018
|
-
for (let n of e) if (
|
|
1018
|
+
for (let n of e) if (qn(n)) {
|
|
1019
1019
|
for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
|
|
1020
1020
|
t.push(n);
|
|
1021
1021
|
} else yield n;
|
|
1022
1022
|
for (; t.length;) yield t.pop();
|
|
1023
1023
|
}
|
|
1024
1024
|
function M(e, t) {
|
|
1025
|
-
return !
|
|
1025
|
+
return !N(e, t);
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function N(e, t) {
|
|
1028
1028
|
return e = p(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
|
|
1029
1029
|
}
|
|
1030
|
-
var
|
|
1030
|
+
var Jt = {
|
|
1031
1031
|
"==": function* (e, t) {
|
|
1032
|
-
return yield
|
|
1032
|
+
return yield P(e, t);
|
|
1033
1033
|
},
|
|
1034
1034
|
"!=": function* (e, t) {
|
|
1035
|
-
return !(yield
|
|
1035
|
+
return !(yield P(e, t));
|
|
1036
1036
|
},
|
|
1037
1037
|
">": function* (e, t) {
|
|
1038
1038
|
return T(e) ? yield e.gt(t) : T(t) ? yield t.lt(e) : (yield p(e)) > (yield p(t));
|
|
@@ -1047,10 +1047,10 @@ var Yt = {
|
|
|
1047
1047
|
return T(e) ? yield e.leq(t) : T(t) ? yield t.geq(e) : (yield p(e)) <= (yield p(t));
|
|
1048
1048
|
},
|
|
1049
1049
|
contains: function* (e, t) {
|
|
1050
|
-
return e = yield p(e), g(e) ? yield
|
|
1050
|
+
return e = yield p(e), g(e) ? yield Xt(e, t) : o(e?.indexOf) ? e.indexOf(yield p(t)) > -1 : !1;
|
|
1051
1051
|
},
|
|
1052
1052
|
not: function* (e, t) {
|
|
1053
|
-
return
|
|
1053
|
+
return N(yield p(e), t);
|
|
1054
1054
|
},
|
|
1055
1055
|
and: function* (e, t, n) {
|
|
1056
1056
|
return M(yield p(e), n) && M(yield p(t), n);
|
|
@@ -1059,30 +1059,30 @@ var Yt = {
|
|
|
1059
1059
|
return M(yield p(e), n) || M(yield p(t), n);
|
|
1060
1060
|
}
|
|
1061
1061
|
};
|
|
1062
|
-
function*
|
|
1063
|
-
return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield p(e), t = yield p(t), g(e) ? g(t) && (yield
|
|
1062
|
+
function* P(e, t) {
|
|
1063
|
+
return T(e) ? yield e.equals(t) : T(t) ? yield t.equals(e) : (e = yield p(e), t = yield p(t), g(e) ? g(t) && (yield Yt(e, t)) : e === t);
|
|
1064
1064
|
}
|
|
1065
|
-
function*
|
|
1065
|
+
function* Yt(e, t) {
|
|
1066
1066
|
if (e.length !== t.length) return !1;
|
|
1067
|
-
for (let n = 0; n < e.length; n++) if (!(yield
|
|
1067
|
+
for (let n = 0; n < e.length; n++) if (!(yield P(e[n], t[n]))) return !1;
|
|
1068
1068
|
return !0;
|
|
1069
1069
|
}
|
|
1070
|
-
function*
|
|
1071
|
-
for (let n of e) if (yield
|
|
1070
|
+
function* Xt(e, t) {
|
|
1071
|
+
for (let n of e) if (yield P(n, t)) return !0;
|
|
1072
1072
|
return !1;
|
|
1073
1073
|
}
|
|
1074
|
-
var
|
|
1074
|
+
var Zt = class {
|
|
1075
1075
|
constructor(e, t, n, r) {
|
|
1076
1076
|
this.key = e, this.value = t, this.next = n, this.prev = r;
|
|
1077
1077
|
}
|
|
1078
|
-
},
|
|
1078
|
+
}, Qt = class {
|
|
1079
1079
|
constructor(e, t = 0) {
|
|
1080
|
-
this.limit = e, this.size = t, this.cache = {}, this.head = new
|
|
1080
|
+
this.limit = e, this.size = t, this.cache = {}, this.head = new Zt("HEAD", null, null, null), this.tail = new Zt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
|
|
1081
1081
|
}
|
|
1082
1082
|
write(e, t) {
|
|
1083
1083
|
if (this.cache[e]) this.cache[e].value = t;
|
|
1084
1084
|
else {
|
|
1085
|
-
let n = new
|
|
1085
|
+
let n = new Zt(e, t, this.head.next, this.head);
|
|
1086
1086
|
this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
@@ -1102,7 +1102,7 @@ var Qt = class {
|
|
|
1102
1102
|
this.size > this.limit && this.remove(this.tail.prev.key);
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
|
-
function
|
|
1105
|
+
function $t(e, t) {
|
|
1106
1106
|
let n = document.createElement("base");
|
|
1107
1107
|
n.href = e;
|
|
1108
1108
|
let r = document.getElementsByTagName("head")[0];
|
|
@@ -1112,13 +1112,13 @@ function en(e, t) {
|
|
|
1112
1112
|
let a = i.href;
|
|
1113
1113
|
return r.removeChild(n), a;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
return e.length && oe(e) !== "/" && (e += "/"),
|
|
1115
|
+
function en(e, t, n) {
|
|
1116
|
+
return e.length && oe(e) !== "/" && (e += "/"), $t(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
|
|
1117
1117
|
let i = r.split("/").pop();
|
|
1118
1118
|
return /\.\w+$/.test(i) ? e : t + r + n;
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function tn(e) {
|
|
1122
1122
|
return D(this, void 0, void 0, function* () {
|
|
1123
1123
|
return new Promise((t, n) => {
|
|
1124
1124
|
let r = new XMLHttpRequest();
|
|
@@ -1130,87 +1130,87 @@ function nn(e) {
|
|
|
1130
1130
|
});
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function nn(e) {
|
|
1134
1134
|
let t = new XMLHttpRequest();
|
|
1135
1135
|
if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
|
|
1136
1136
|
return t.responseText;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function rn(e) {
|
|
1139
1139
|
return D(this, void 0, void 0, function* () {
|
|
1140
1140
|
return !0;
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function an(e) {
|
|
1144
1144
|
return !0;
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1147
|
-
return
|
|
1146
|
+
function on(e) {
|
|
1147
|
+
return $t(e, ".");
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1149
|
+
var sn = /*#__PURE__*/ Object.freeze({
|
|
1150
1150
|
__proto__: null,
|
|
1151
|
-
resolve:
|
|
1152
|
-
readFile:
|
|
1153
|
-
readFileSync:
|
|
1154
|
-
exists:
|
|
1155
|
-
existsSync:
|
|
1156
|
-
dirname:
|
|
1151
|
+
resolve: en,
|
|
1152
|
+
readFile: tn,
|
|
1153
|
+
readFileSync: nn,
|
|
1154
|
+
exists: rn,
|
|
1155
|
+
existsSync: an,
|
|
1156
|
+
dirname: on,
|
|
1157
1157
|
sep: "/"
|
|
1158
1158
|
});
|
|
1159
|
-
function
|
|
1159
|
+
function cn(e, t) {
|
|
1160
1160
|
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
1161
|
}
|
|
1162
|
-
function
|
|
1163
|
-
return e = p(e), g(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 :
|
|
1162
|
+
function ln(e, t, ...n) {
|
|
1163
|
+
return e = p(e), g(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : N(e, this.context) ? t : e;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function un(e, t = 0) {
|
|
1166
1166
|
let n = this.context.memoryLimit;
|
|
1167
|
-
return JSON.stringify(e, (e, t) => (
|
|
1167
|
+
return JSON.stringify(e, (e, t) => (cn(n, t), t), t);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function dn(e, t = 0) {
|
|
1170
1170
|
let n = this.context.memoryLimit, r = [];
|
|
1171
1171
|
return JSON.stringify(e, function(e, t) {
|
|
1172
|
-
if (typeof t != "object" || !t) return
|
|
1172
|
+
if (typeof t != "object" || !t) return cn(n, t), t;
|
|
1173
1173
|
for (; r.length > 0 && r[r.length - 1] !== this;) r.pop();
|
|
1174
|
-
return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t),
|
|
1174
|
+
return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), cn(n, t), t);
|
|
1175
1175
|
}, t);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function fn(e) {
|
|
1178
1178
|
return Number(e);
|
|
1179
1179
|
}
|
|
1180
|
-
var
|
|
1181
|
-
default:
|
|
1180
|
+
var pn = {
|
|
1181
|
+
default: ln,
|
|
1182
1182
|
raw: {
|
|
1183
1183
|
raw: !0,
|
|
1184
|
-
handler:
|
|
1184
|
+
handler: de
|
|
1185
1185
|
},
|
|
1186
|
-
jsonify:
|
|
1187
|
-
to_integer:
|
|
1188
|
-
json:
|
|
1189
|
-
inspect:
|
|
1190
|
-
},
|
|
1186
|
+
jsonify: un,
|
|
1187
|
+
to_integer: fn,
|
|
1188
|
+
json: un,
|
|
1189
|
+
inspect: dn
|
|
1190
|
+
}, mn = {
|
|
1191
1191
|
"&": "&",
|
|
1192
1192
|
"<": "<",
|
|
1193
1193
|
">": ">",
|
|
1194
1194
|
"\"": """,
|
|
1195
1195
|
"'": "'"
|
|
1196
|
-
},
|
|
1196
|
+
}, hn = {
|
|
1197
1197
|
"&": "&",
|
|
1198
1198
|
"<": "<",
|
|
1199
1199
|
">": ">",
|
|
1200
1200
|
""": "\"",
|
|
1201
1201
|
"'": "'"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1204
|
-
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) =>
|
|
1203
|
+
function gn(e) {
|
|
1204
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => mn[e]);
|
|
1205
1205
|
}
|
|
1206
1206
|
function _n(e) {
|
|
1207
|
-
return
|
|
1207
|
+
return gn.call(this, e);
|
|
1208
1208
|
}
|
|
1209
1209
|
function vn(e) {
|
|
1210
|
-
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) =>
|
|
1210
|
+
return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => hn[e]);
|
|
1211
1211
|
}
|
|
1212
1212
|
function yn(e) {
|
|
1213
|
-
return
|
|
1213
|
+
return gn.call(this, vn.call(this, e));
|
|
1214
1214
|
}
|
|
1215
1215
|
function bn(e) {
|
|
1216
1216
|
let t = l(e);
|
|
@@ -1244,7 +1244,7 @@ function xn(e) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
var Sn = /*#__PURE__*/ Object.freeze({
|
|
1246
1246
|
__proto__: null,
|
|
1247
|
-
escape:
|
|
1247
|
+
escape: gn,
|
|
1248
1248
|
xml_escape: _n,
|
|
1249
1249
|
escape_once: yn,
|
|
1250
1250
|
newline_to_br: bn,
|
|
@@ -1291,7 +1291,7 @@ var Sn = /*#__PURE__*/ Object.freeze({
|
|
|
1291
1291
|
keyValueSeparator: ":",
|
|
1292
1292
|
cache: void 0,
|
|
1293
1293
|
extname: "",
|
|
1294
|
-
fs:
|
|
1294
|
+
fs: sn,
|
|
1295
1295
|
dynamicPartials: !0,
|
|
1296
1296
|
jsTruthy: !1,
|
|
1297
1297
|
dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
|
|
@@ -1312,7 +1312,7 @@ var Sn = /*#__PURE__*/ Object.freeze({
|
|
|
1312
1312
|
lenientIf: !1,
|
|
1313
1313
|
globals: {},
|
|
1314
1314
|
keepOutputType: !1,
|
|
1315
|
-
operators:
|
|
1315
|
+
operators: Jt,
|
|
1316
1316
|
groupedExpressions: !1,
|
|
1317
1317
|
memoryLimit: Infinity,
|
|
1318
1318
|
parseLimit: Infinity,
|
|
@@ -1321,36 +1321,36 @@ var Sn = /*#__PURE__*/ Object.freeze({
|
|
|
1321
1321
|
function wn(e) {
|
|
1322
1322
|
if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
|
|
1323
1323
|
let t;
|
|
1324
|
-
t = typeof e.cache == "number" ? e.cache > 0 ? new
|
|
1324
|
+
t = typeof e.cache == "number" ? e.cache > 0 ? new Qt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new Qt(1024) : void 0, e.cache = t;
|
|
1325
1325
|
}
|
|
1326
|
-
return e = Object.assign(Object.assign(Object.assign({}, F), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e),
|
|
1326
|
+
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 = En(e.root), e.partials = En(e.partials), e.layouts = En(e.layouts), e.outputEscape = e.outputEscape && Tn(e.outputEscape), e.locale || (e.locale = ot()?.().resolvedOptions().locale ?? "en-US"), e.templates && (e.fs = new Cn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
|
|
1327
1327
|
}
|
|
1328
1328
|
function Tn(e) {
|
|
1329
|
-
return e === "escape" ?
|
|
1329
|
+
return e === "escape" ? gn : e === "json" ? pn.json : (C(o(e), "`outputEscape` need to be of type string or function"), e);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function En(e) {
|
|
1332
1332
|
let t = [];
|
|
1333
1333
|
return g(e) && (t = e), a(e) && (t = [e]), t;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Dn(e, t) {
|
|
1336
1336
|
let n = !1;
|
|
1337
1337
|
for (let r = 0; r < e.length; r++) {
|
|
1338
1338
|
let i = e[r];
|
|
1339
|
-
|
|
1339
|
+
Kn(i) && (!n && i.trimLeft && On(e[r - 1], t.greedy), q(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && kn(e[r + 1], t.greedy));
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
function Dn(e, t) {
|
|
1343
|
-
if (!e || !qn(e)) return;
|
|
1344
|
-
let n = t ? C : Oe;
|
|
1345
|
-
for (; S[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
|
|
1346
|
-
}
|
|
1347
1342
|
function On(e, t) {
|
|
1348
|
-
if (!e || !
|
|
1349
|
-
let n = t ?
|
|
1350
|
-
for (;
|
|
1343
|
+
if (!e || !Jn(e)) return;
|
|
1344
|
+
let n = t ? x : Ae;
|
|
1345
|
+
for (; b[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
|
|
1346
|
+
}
|
|
1347
|
+
function kn(e, t) {
|
|
1348
|
+
if (!e || !Jn(e)) return;
|
|
1349
|
+
let n = t ? x : Ae;
|
|
1350
|
+
for (; b[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
|
|
1351
1351
|
e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
|
|
1352
1352
|
}
|
|
1353
|
-
var
|
|
1353
|
+
var I = class {
|
|
1354
1354
|
constructor(e, t = F.operators, n, r, i = !1) {
|
|
1355
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 = Ge(t), this.literalTrie = Ge(Ue), this.groupedExpressions = i;
|
|
1356
1356
|
}
|
|
@@ -1377,7 +1377,7 @@ var L = class {
|
|
|
1377
1377
|
matchTrie(e) {
|
|
1378
1378
|
let t = e, n = this.p, r;
|
|
1379
1379
|
for (; t[this.input[n]] && n < this.N;) t = t[this.input[n++]], t.end && (r = t);
|
|
1380
|
-
return !r || r.needBoundary &&
|
|
1380
|
+
return !r || r.needBoundary && S(this.peek(n - this.p)) ? -1 : n;
|
|
1381
1381
|
}
|
|
1382
1382
|
readFilteredValue() {
|
|
1383
1383
|
let e = this.p, t = this.readExpression();
|
|
@@ -1419,7 +1419,7 @@ var L = class {
|
|
|
1419
1419
|
let n = this.readTopLevelToken(e);
|
|
1420
1420
|
t.push(n);
|
|
1421
1421
|
}
|
|
1422
|
-
return
|
|
1422
|
+
return Dn(t, e), t;
|
|
1423
1423
|
}
|
|
1424
1424
|
readTopLevelToken(e) {
|
|
1425
1425
|
let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
|
|
@@ -1437,7 +1437,7 @@ var L = class {
|
|
|
1437
1437
|
return i.name === "raw" && (this.rawBeginAt = r), i;
|
|
1438
1438
|
}
|
|
1439
1439
|
readToDelimiter(e, t = !1) {
|
|
1440
|
-
for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() &
|
|
1440
|
+
for (this.skipBlank(); this.p < this.N;) if (t && this.peekType() & ke) this.readQuoted();
|
|
1441
1441
|
else if (++this.p, this.rmatch(e)) return this.p;
|
|
1442
1442
|
return -1;
|
|
1443
1443
|
}
|
|
@@ -1475,13 +1475,13 @@ var L = class {
|
|
|
1475
1475
|
return new Pt(this.input, t, n, e, this.file);
|
|
1476
1476
|
}
|
|
1477
1477
|
error(e, t = this.p) {
|
|
1478
|
-
return new
|
|
1478
|
+
return new ye(e, new yt(this.input, t, this.N, this.file));
|
|
1479
1479
|
}
|
|
1480
1480
|
assert(e, t, n) {
|
|
1481
1481
|
if (!e) throw this.error(typeof t == "function" ? t() : t, n);
|
|
1482
1482
|
}
|
|
1483
1483
|
snapshot(e = this.p) {
|
|
1484
|
-
return JSON.stringify(
|
|
1484
|
+
return JSON.stringify(pe(this.input.slice(e, this.N), 32));
|
|
1485
1485
|
}
|
|
1486
1486
|
readWord() {
|
|
1487
1487
|
return this.readIdentifier();
|
|
@@ -1489,7 +1489,7 @@ var L = class {
|
|
|
1489
1489
|
readIdentifier() {
|
|
1490
1490
|
this.skipBlank();
|
|
1491
1491
|
let e = this.p;
|
|
1492
|
-
for (; !this.end() &&
|
|
1492
|
+
for (; !this.end() && S(this.peek());) ++this.p;
|
|
1493
1493
|
return new yt(this.input, e, this.p, this.file);
|
|
1494
1494
|
}
|
|
1495
1495
|
readNonEmptyIdentifier() {
|
|
@@ -1570,12 +1570,12 @@ var L = class {
|
|
|
1570
1570
|
readNumber() {
|
|
1571
1571
|
this.skipBlank();
|
|
1572
1572
|
let e = !1, t = !1, n = 0;
|
|
1573
|
-
for (this.peekType() &
|
|
1573
|
+
for (this.peekType() & Me && n++; this.p + n <= this.N;) if (this.peekType(n) & je) t = !0, n++;
|
|
1574
1574
|
else if (this.peek(n) === "." && this.peek(n + 1) !== ".") {
|
|
1575
1575
|
if (e || !t) return;
|
|
1576
1576
|
e = !0, n++;
|
|
1577
1577
|
} else break;
|
|
1578
|
-
if (t && !
|
|
1578
|
+
if (t && !S(this.peek(n))) {
|
|
1579
1579
|
let e = new vt(this.input, this.p, this.p + n, this.file);
|
|
1580
1580
|
return this.advance(n), e;
|
|
1581
1581
|
}
|
|
@@ -1613,7 +1613,7 @@ var L = class {
|
|
|
1613
1613
|
readQuoted() {
|
|
1614
1614
|
this.skipBlank();
|
|
1615
1615
|
let e = this.p;
|
|
1616
|
-
if (!(this.peekType() &
|
|
1616
|
+
if (!(this.peekType() & ke)) return;
|
|
1617
1617
|
++this.p;
|
|
1618
1618
|
let t = !1;
|
|
1619
1619
|
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);
|
|
@@ -1639,15 +1639,15 @@ var L = class {
|
|
|
1639
1639
|
return !0;
|
|
1640
1640
|
}
|
|
1641
1641
|
peekType(e = 0) {
|
|
1642
|
-
return this.p + e >= this.N ? 0 :
|
|
1642
|
+
return this.p + e >= this.N ? 0 : b[this.input.charCodeAt(this.p + e)];
|
|
1643
1643
|
}
|
|
1644
1644
|
peek(e = 0) {
|
|
1645
1645
|
return this.p + e >= this.N ? "" : this.input[this.p + e];
|
|
1646
1646
|
}
|
|
1647
1647
|
skipBlank() {
|
|
1648
|
-
for (; this.peekType() &
|
|
1648
|
+
for (; this.peekType() & x;) ++this.p;
|
|
1649
1649
|
}
|
|
1650
|
-
},
|
|
1650
|
+
}, An = class {
|
|
1651
1651
|
constructor(e, t) {
|
|
1652
1652
|
this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
|
|
1653
1653
|
}
|
|
@@ -1662,7 +1662,7 @@ var L = class {
|
|
|
1662
1662
|
this.trigger("start");
|
|
1663
1663
|
let e;
|
|
1664
1664
|
for (; !this.stopRequested && (e = this.tokens.shift());) {
|
|
1665
|
-
if (this.trigger("token", e) ||
|
|
1665
|
+
if (this.trigger("token", e) || q(e) && this.trigger(`tag:${e.name}`, e)) continue;
|
|
1666
1666
|
let t = this.parseToken(e, this.tokens);
|
|
1667
1667
|
this.trigger("template", t);
|
|
1668
1668
|
}
|
|
@@ -1671,18 +1671,18 @@ var L = class {
|
|
|
1671
1671
|
stop() {
|
|
1672
1672
|
return this.stopRequested = !0, this;
|
|
1673
1673
|
}
|
|
1674
|
-
},
|
|
1674
|
+
}, jn = class {
|
|
1675
1675
|
constructor(e) {
|
|
1676
1676
|
this.token = e;
|
|
1677
1677
|
}
|
|
1678
|
-
},
|
|
1678
|
+
}, L = class extends jn {
|
|
1679
1679
|
constructor(e, t, n) {
|
|
1680
1680
|
super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
|
|
1681
1681
|
}
|
|
1682
|
-
},
|
|
1682
|
+
}, R = class {
|
|
1683
1683
|
constructor(e, t) {
|
|
1684
1684
|
this.hash = {};
|
|
1685
|
-
let n = e instanceof
|
|
1685
|
+
let n = e instanceof I ? e : new I(e, {});
|
|
1686
1686
|
for (let e of n.readHashes(t)) this.hash[e.name.content] = e.value;
|
|
1687
1687
|
}
|
|
1688
1688
|
*render(e) {
|
|
@@ -1691,21 +1691,21 @@ var L = class {
|
|
|
1691
1691
|
return t;
|
|
1692
1692
|
}
|
|
1693
1693
|
};
|
|
1694
|
-
function
|
|
1695
|
-
return class extends
|
|
1694
|
+
function Mn(e) {
|
|
1695
|
+
return class extends L {
|
|
1696
1696
|
constructor(t, n, r) {
|
|
1697
1697
|
super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
|
|
1698
1698
|
}
|
|
1699
1699
|
*render(t, n) {
|
|
1700
|
-
let r = yield new
|
|
1700
|
+
let r = yield new R(this.token.args, t.opts.keyValueSeparator).render(t);
|
|
1701
1701
|
return yield e.render.call(this, t, n, r);
|
|
1702
1702
|
}
|
|
1703
1703
|
};
|
|
1704
1704
|
}
|
|
1705
|
-
var
|
|
1705
|
+
var z = class {
|
|
1706
1706
|
constructor(e, t) {
|
|
1707
1707
|
this.filters = [];
|
|
1708
|
-
let n = typeof e == "string" ? new
|
|
1708
|
+
let n = typeof e == "string" ? new I(e, t.options.operators, void 0, void 0, t.options.groupedExpressions).readFilteredValue() : e;
|
|
1709
1709
|
this.initial = n.initial, this.filters = n.filters.map((e) => new Bt(e, this.getFilter(t, e.name), t));
|
|
1710
1710
|
}
|
|
1711
1711
|
*value(e, t) {
|
|
@@ -1716,13 +1716,13 @@ var B = class {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
getFilter(e, t) {
|
|
1718
1718
|
let n = e.filters[t];
|
|
1719
|
-
return
|
|
1719
|
+
return C(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
|
|
1720
1720
|
}
|
|
1721
|
-
},
|
|
1721
|
+
}, Nn = class extends jn {
|
|
1722
1722
|
constructor(e, t) {
|
|
1723
1723
|
super(e);
|
|
1724
|
-
let n = new
|
|
1725
|
-
this.value = new
|
|
1724
|
+
let n = new I(e.input, t.options.operators, e.file, e.contentRange, t.options.groupedExpressions);
|
|
1725
|
+
this.value = new z(n.readFilteredValue(), t);
|
|
1726
1726
|
let r = this.value.filters, i = t.options.outputEscape;
|
|
1727
1727
|
if (!r[r.length - 1]?.raw && i) {
|
|
1728
1728
|
let e = new Tt(toString.call(i), [], "", 0, 0);
|
|
@@ -1736,19 +1736,19 @@ var B = class {
|
|
|
1736
1736
|
*arguments() {
|
|
1737
1737
|
yield this.value;
|
|
1738
1738
|
}
|
|
1739
|
-
},
|
|
1739
|
+
}, Pn = class extends jn {
|
|
1740
1740
|
constructor(e) {
|
|
1741
1741
|
super(e), this.str = e.getContent();
|
|
1742
1742
|
}
|
|
1743
1743
|
*render(e, t) {
|
|
1744
1744
|
t.write(this.str);
|
|
1745
1745
|
}
|
|
1746
|
-
},
|
|
1746
|
+
}, B = class e {
|
|
1747
1747
|
constructor(e, t) {
|
|
1748
1748
|
this.segments = e, this.location = t;
|
|
1749
1749
|
}
|
|
1750
1750
|
toString() {
|
|
1751
|
-
return
|
|
1751
|
+
return Wn(this.segments, !0);
|
|
1752
1752
|
}
|
|
1753
1753
|
toArray() {
|
|
1754
1754
|
function* t(...n) {
|
|
@@ -1756,16 +1756,16 @@ var B = class {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
return Array.from(t(...this.segments));
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1759
|
+
}, Fn = class {
|
|
1760
1760
|
constructor() {
|
|
1761
1761
|
this.map = /* @__PURE__ */ new Map();
|
|
1762
1762
|
}
|
|
1763
1763
|
get(e) {
|
|
1764
|
-
let t =
|
|
1764
|
+
let t = Wn([e.segments[0]]);
|
|
1765
1765
|
return this.map.has(t) || this.map.set(t, []), this.map.get(t);
|
|
1766
1766
|
}
|
|
1767
1767
|
has(e) {
|
|
1768
|
-
return this.map.has(
|
|
1768
|
+
return this.map.has(Wn([e.segments[0]]));
|
|
1769
1769
|
}
|
|
1770
1770
|
push(e) {
|
|
1771
1771
|
this.get(e).push(e);
|
|
@@ -1773,9 +1773,9 @@ var B = class {
|
|
|
1773
1773
|
asObject() {
|
|
1774
1774
|
return Object.fromEntries(this.map);
|
|
1775
1775
|
}
|
|
1776
|
-
},
|
|
1777
|
-
function*
|
|
1778
|
-
let r = new
|
|
1776
|
+
}, In = { partials: !0 };
|
|
1777
|
+
function* Ln(e, t, n) {
|
|
1778
|
+
let r = new Fn(), i = new Fn(), o = new Fn(), s = new Rn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
|
|
1779
1779
|
function l(e, t) {
|
|
1780
1780
|
r.push(e);
|
|
1781
1781
|
let n = t.alias(e);
|
|
@@ -1786,14 +1786,14 @@ function* In(e, t, n) {
|
|
|
1786
1786
|
let n = e.segments[0];
|
|
1787
1787
|
a(n) && !t.has(n) && i.push(e);
|
|
1788
1788
|
}
|
|
1789
|
-
for (let n of e.segments) n instanceof
|
|
1789
|
+
for (let n of e.segments) n instanceof B && l(n, t);
|
|
1790
1790
|
}
|
|
1791
1791
|
function* u(e, r) {
|
|
1792
|
-
if (e.arguments) for (let t of e.arguments()) for (let e of
|
|
1792
|
+
if (e.arguments) for (let t of e.arguments()) for (let e of zn(t)) l(e, r);
|
|
1793
1793
|
if (e.localScope) for (let t of e.localScope()) {
|
|
1794
1794
|
r.add(t.content), r.deleteAlias(t.content);
|
|
1795
1795
|
let [e, n] = t.getPosition();
|
|
1796
|
-
o.push(new
|
|
1796
|
+
o.push(new B([t.content], {
|
|
1797
1797
|
row: e,
|
|
1798
1798
|
col: n,
|
|
1799
1799
|
file: t.file
|
|
@@ -1807,12 +1807,12 @@ function* In(e, t, n) {
|
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
1809
|
if (c.has(i.name)) return;
|
|
1810
|
-
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new
|
|
1810
|
+
let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Rn(o) : r.push(o);
|
|
1811
1811
|
for (let e of i.scope) if (a(e)) o.add(e);
|
|
1812
1812
|
else {
|
|
1813
1813
|
let [t, n] = e;
|
|
1814
1814
|
o.add(t);
|
|
1815
|
-
let r = Array.from(
|
|
1815
|
+
let r = Array.from(zn(n));
|
|
1816
1816
|
r.length && s.setAlias(t, r[0].segments);
|
|
1817
1817
|
}
|
|
1818
1818
|
for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
|
|
@@ -1831,13 +1831,13 @@ function* In(e, t, n) {
|
|
|
1831
1831
|
locals: o.asObject()
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1835
|
-
return O(
|
|
1834
|
+
function V(e, t = {}) {
|
|
1835
|
+
return O(Ln(e, Object.assign(Object.assign({}, In), t).partials, !1));
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return k(
|
|
1837
|
+
function H(e, t = {}) {
|
|
1838
|
+
return k(Ln(e, Object.assign(Object.assign({}, In), t).partials, !0));
|
|
1839
1839
|
}
|
|
1840
|
-
var
|
|
1840
|
+
var Rn = class {
|
|
1841
1841
|
constructor(e) {
|
|
1842
1842
|
this.stack = [{
|
|
1843
1843
|
names: e,
|
|
@@ -1864,7 +1864,7 @@ var Ln = class {
|
|
|
1864
1864
|
let t = e.segments[0];
|
|
1865
1865
|
if (!a(t)) return;
|
|
1866
1866
|
let n = this.getAlias(t);
|
|
1867
|
-
if (n !== void 0) return new
|
|
1867
|
+
if (n !== void 0) return new B([...n, ...e.segments.slice(1)], e.location);
|
|
1868
1868
|
}
|
|
1869
1869
|
setAlias(e, t) {
|
|
1870
1870
|
this.stack[this.stack.length - 1].aliases.set(e, t);
|
|
@@ -1879,49 +1879,49 @@ var Ln = class {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
};
|
|
1882
|
-
function* Rn(e) {
|
|
1883
|
-
Y(e) ? yield* W(e) : e instanceof B && (yield* zn(e));
|
|
1884
|
-
}
|
|
1885
1882
|
function* zn(e) {
|
|
1886
|
-
|
|
1887
|
-
for (let t of e.filters) for (let e of t.args) zt(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
|
|
1888
|
-
}
|
|
1889
|
-
function* W(e) {
|
|
1890
|
-
$n(e) ? (yield* W(e.lhs), yield* W(e.rhs)) : er(e) ? yield* Bn(e) : Zn(e) && (yield Vn(e));
|
|
1883
|
+
Y(e) ? yield* U(e) : e instanceof z && (yield* Bn(e));
|
|
1891
1884
|
}
|
|
1892
1885
|
function* Bn(e) {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1886
|
+
for (let t of e.initial.postfix) Y(t) && (yield* U(t));
|
|
1887
|
+
for (let t of e.filters) for (let e of t.args) zt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
|
|
1888
|
+
}
|
|
1889
|
+
function* U(e) {
|
|
1890
|
+
er(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : tr(e) ? yield* Vn(e) : J(e) && (yield Hn(e));
|
|
1891
|
+
}
|
|
1892
|
+
function* Vn(e) {
|
|
1893
|
+
if (tr(e)) {
|
|
1894
|
+
for (let t of e.initial.postfix) Y(t) && (yield* U(t));
|
|
1895
|
+
for (let t of e.filters) for (let e of t.args) zt(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Hn(e) {
|
|
1899
1899
|
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,
|
|
1900
|
+
n ||= r.file, Xn(r) || Qn(r) || $n(r) ? t.push(r.content) : J(r) && t.push(...Hn(r).segments);
|
|
1901
|
+
for (let r of e.props.slice(1)) n ||= r.file, Xn(r) || Qn(r) || $n(r) ? t.push(r.content) : J(r) && t.push(Hn(r));
|
|
1902
1902
|
let [i, a] = e.getPosition();
|
|
1903
|
-
return new
|
|
1903
|
+
return new B(t, {
|
|
1904
1904
|
row: i,
|
|
1905
1905
|
col: a,
|
|
1906
1906
|
file: n
|
|
1907
1907
|
});
|
|
1908
1908
|
}
|
|
1909
|
-
var
|
|
1910
|
-
function
|
|
1909
|
+
var Un = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
|
|
1910
|
+
function Wn(e, t = !1) {
|
|
1911
1911
|
let n = [], r = e[0];
|
|
1912
|
-
a(r) && (!t || r.match(
|
|
1913
|
-
for (let t of e.slice(1)) t instanceof
|
|
1912
|
+
a(r) && (!t || r.match(Un) ? n.push(`${r}`) : n.push(`['${r}']`));
|
|
1913
|
+
for (let t of e.slice(1)) t instanceof B ? n.push(`[${Wn(t.segments)}]`) : a(t) ? t.match(Un) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
|
|
1914
1914
|
return n.join("");
|
|
1915
1915
|
}
|
|
1916
|
-
var
|
|
1916
|
+
var W;
|
|
1917
1917
|
(function(e) {
|
|
1918
1918
|
e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
|
|
1919
|
-
})(
|
|
1920
|
-
var
|
|
1919
|
+
})(W ||= {});
|
|
1920
|
+
var Gn = class {
|
|
1921
1921
|
constructor(e) {
|
|
1922
1922
|
if (this.options = e, e.relativeReference) {
|
|
1923
1923
|
let t = e.fs.sep;
|
|
1924
|
-
|
|
1924
|
+
C(t, "`fs.sep` is required for relative reference");
|
|
1925
1925
|
let n = [
|
|
1926
1926
|
"." + t,
|
|
1927
1927
|
".." + t,
|
|
@@ -1960,21 +1960,21 @@ var Wn = class {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
dirname(e) {
|
|
1962
1962
|
let t = this.options.fs;
|
|
1963
|
-
return
|
|
1963
|
+
return C(t.dirname, "`fs.dirname` is required for relative reference"), t.dirname(e);
|
|
1964
1964
|
}
|
|
1965
1965
|
lookupError(e, t) {
|
|
1966
1966
|
let n = /* @__PURE__ */ Error("ENOENT");
|
|
1967
1967
|
return n.message = `ENOENT: Failed to lookup "${e}" in "${t}"`, n.code = "ENOENT", n;
|
|
1968
1968
|
}
|
|
1969
|
-
},
|
|
1969
|
+
}, G = class {
|
|
1970
1970
|
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
|
|
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 Gn(this.liquid.options), this.parseLimit = new pt("parse length", e.options.parseLimit), this.readFile = Ke(this.fs.readFile?.bind(this.fs) || (() => D(this, void 0, void 0, function* () {
|
|
1972
1972
|
throw Error("readFile not implemented");
|
|
1973
1973
|
})), this.fs.readFileSync?.bind(this.fs));
|
|
1974
1974
|
}
|
|
1975
1975
|
parse(e, t) {
|
|
1976
1976
|
e = String(e), this.parseLimit.use(e.length);
|
|
1977
|
-
let n = new
|
|
1977
|
+
let n = new I(e, this.liquid.options.operators, t, void 0, this.liquid.options.groupedExpressions).readTopLevelTokens(this.liquid.options);
|
|
1978
1978
|
return this.parseTokens(n);
|
|
1979
1979
|
}
|
|
1980
1980
|
parseTokens(e) {
|
|
@@ -1985,24 +1985,24 @@ var Wn = class {
|
|
|
1985
1985
|
if (this.liquid.options.catchAllErrors) r.push(e);
|
|
1986
1986
|
else throw e;
|
|
1987
1987
|
}
|
|
1988
|
-
if (r.length) throw new
|
|
1988
|
+
if (r.length) throw new Se(r);
|
|
1989
1989
|
return n;
|
|
1990
1990
|
}
|
|
1991
1991
|
parseToken(e, t) {
|
|
1992
1992
|
try {
|
|
1993
|
-
if (
|
|
1993
|
+
if (q(e)) {
|
|
1994
1994
|
let n = this.liquid.tags[e.name];
|
|
1995
|
-
return
|
|
1995
|
+
return C(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
|
|
1996
1996
|
}
|
|
1997
|
-
return
|
|
1997
|
+
return Yn(e) ? new Nn(e, this.liquid) : new Pn(e);
|
|
1998
1998
|
} catch (t) {
|
|
1999
|
-
throw
|
|
1999
|
+
throw y.is(t) ? t : new be(t, e);
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
2002
|
parseStream(e) {
|
|
2003
|
-
return new
|
|
2003
|
+
return new An(e, (e, t) => this.parseToken(e, t));
|
|
2004
2004
|
}
|
|
2005
|
-
*_parseFileCached(e, t, n =
|
|
2005
|
+
*_parseFileCached(e, t, n = W.Root, r) {
|
|
2006
2006
|
let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
|
|
2007
2007
|
if (o) return o;
|
|
2008
2008
|
let s = this._parseFile(e, t, n, r), c = t ? yield s : O(s);
|
|
@@ -2013,46 +2013,49 @@ var Wn = class {
|
|
|
2013
2013
|
throw i.remove(a), e;
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
*_parseFile(e, t, n =
|
|
2016
|
+
*_parseFile(e, t, n = W.Root, r) {
|
|
2017
2017
|
let i = yield this.loader.lookup(e, n, t, r);
|
|
2018
2018
|
return this.parse(yield this.readFile(!!t, i), i);
|
|
2019
2019
|
}
|
|
2020
|
-
},
|
|
2020
|
+
}, K;
|
|
2021
2021
|
(function(e) {
|
|
2022
2022
|
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
|
-
}
|
|
2023
|
+
})(K ||= {});
|
|
2027
2024
|
function Kn(e) {
|
|
2028
|
-
return X(e)
|
|
2025
|
+
return !!(X(e) & K.Delimited);
|
|
2029
2026
|
}
|
|
2030
2027
|
function qn(e) {
|
|
2031
|
-
return X(e) ===
|
|
2028
|
+
return X(e) === K.Operator;
|
|
2032
2029
|
}
|
|
2033
2030
|
function Jn(e) {
|
|
2034
|
-
return X(e) ===
|
|
2035
|
-
}
|
|
2036
|
-
function J(e) {
|
|
2037
|
-
return X(e) === q.Tag;
|
|
2031
|
+
return X(e) === K.HTML;
|
|
2038
2032
|
}
|
|
2039
2033
|
function Yn(e) {
|
|
2040
|
-
return X(e) ===
|
|
2034
|
+
return X(e) === K.Output;
|
|
2035
|
+
}
|
|
2036
|
+
function q(e) {
|
|
2037
|
+
return X(e) === K.Tag;
|
|
2041
2038
|
}
|
|
2042
2039
|
function Xn(e) {
|
|
2043
|
-
return X(e) ===
|
|
2040
|
+
return X(e) === K.Quoted;
|
|
2044
2041
|
}
|
|
2045
2042
|
function Zn(e) {
|
|
2046
|
-
return X(e) ===
|
|
2043
|
+
return X(e) === K.Literal;
|
|
2047
2044
|
}
|
|
2048
2045
|
function Qn(e) {
|
|
2049
|
-
return X(e) ===
|
|
2046
|
+
return X(e) === K.Number;
|
|
2047
|
+
}
|
|
2048
|
+
function J(e) {
|
|
2049
|
+
return X(e) === K.PropertyAccess;
|
|
2050
2050
|
}
|
|
2051
2051
|
function $n(e) {
|
|
2052
|
-
return X(e) ===
|
|
2052
|
+
return X(e) === K.Word;
|
|
2053
2053
|
}
|
|
2054
2054
|
function er(e) {
|
|
2055
|
-
return X(e) ===
|
|
2055
|
+
return X(e) === K.Range;
|
|
2056
|
+
}
|
|
2057
|
+
function tr(e) {
|
|
2058
|
+
return X(e) === K.FilteredValue;
|
|
2056
2059
|
}
|
|
2057
2060
|
function Y(e) {
|
|
2058
2061
|
return (X(e) & 5763) > 0;
|
|
@@ -2060,13 +2063,29 @@ function Y(e) {
|
|
|
2060
2063
|
function X(e) {
|
|
2061
2064
|
return e ? e.kind : -1;
|
|
2062
2065
|
}
|
|
2066
|
+
var nr = /*#__PURE__*/ Object.freeze({
|
|
2067
|
+
__proto__: null,
|
|
2068
|
+
isDelimitedToken: Kn,
|
|
2069
|
+
isOperatorToken: qn,
|
|
2070
|
+
isHTMLToken: Jn,
|
|
2071
|
+
isOutputToken: Yn,
|
|
2072
|
+
isTagToken: q,
|
|
2073
|
+
isQuotedToken: Xn,
|
|
2074
|
+
isLiteralToken: Zn,
|
|
2075
|
+
isNumberToken: Qn,
|
|
2076
|
+
isPropertyAccessToken: J,
|
|
2077
|
+
isWordToken: $n,
|
|
2078
|
+
isRangeToken: er,
|
|
2079
|
+
isFilteredValueToken: tr,
|
|
2080
|
+
isValueToken: Y
|
|
2081
|
+
});
|
|
2063
2082
|
function Z(e) {
|
|
2064
2083
|
let t = Object.create(null);
|
|
2065
2084
|
return e && Object.assign(t, e), t;
|
|
2066
2085
|
}
|
|
2067
2086
|
var Q = class e {
|
|
2068
2087
|
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 =
|
|
2088
|
+
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 pt("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new pt("template render", Lt().now() + (n.renderLimit ?? t.renderLimit)), this.liquid = a;
|
|
2070
2089
|
}
|
|
2071
2090
|
getRegister(e, t = void 0) {
|
|
2072
2091
|
return this.registers[e] = this.registers[e] || t;
|
|
@@ -2102,7 +2121,7 @@ var Q = class e {
|
|
|
2102
2121
|
}
|
|
2103
2122
|
*_getFromScope(e, t, n = this.strictVariables) {
|
|
2104
2123
|
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
|
|
2124
|
+
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
2125
|
return e;
|
|
2107
2126
|
}
|
|
2108
2127
|
push(e) {
|
|
@@ -2136,20 +2155,20 @@ var Q = class e {
|
|
|
2136
2155
|
readProperty(e, n) {
|
|
2137
2156
|
if (e = te(e), n = p(n), h(e)) return e;
|
|
2138
2157
|
if (g(e) && m(n)) return u(e, n, this.ownPropertyOnly);
|
|
2139
|
-
let r =
|
|
2140
|
-
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ?
|
|
2158
|
+
let r = rr(e, n, this.ownPropertyOnly);
|
|
2159
|
+
return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? or(e) : n === "first" ? ir(e, this.ownPropertyOnly) : n === "last" ? ar(e, this.ownPropertyOnly) : r;
|
|
2141
2160
|
}
|
|
2142
2161
|
};
|
|
2143
|
-
function
|
|
2162
|
+
function rr(e, n, r) {
|
|
2144
2163
|
if (!r || i.call(e, n) || e instanceof t) return e[n];
|
|
2145
2164
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return g(e) ? u(e, 0, t) :
|
|
2165
|
+
function ir(e, t) {
|
|
2166
|
+
return g(e) ? u(e, 0, t) : rr(e, "first", t);
|
|
2148
2167
|
}
|
|
2149
|
-
function
|
|
2150
|
-
return g(e) ? u(e, -1, t) :
|
|
2168
|
+
function ar(e, t) {
|
|
2169
|
+
return g(e) ? u(e, -1, t) : rr(e, "last", t);
|
|
2151
2170
|
}
|
|
2152
|
-
function
|
|
2171
|
+
function or(e) {
|
|
2153
2172
|
if (i.call(e, "size") || e.size !== void 0) return e.size;
|
|
2154
2173
|
if (g(e) || a(e)) return e.length;
|
|
2155
2174
|
if (typeof e == "object") return Object.keys(e).length;
|
|
@@ -2158,80 +2177,80 @@ var $;
|
|
|
2158
2177
|
(function(e) {
|
|
2159
2178
|
e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
|
|
2160
2179
|
})($ ||= {});
|
|
2161
|
-
var
|
|
2162
|
-
function
|
|
2180
|
+
var sr = v(Math.abs), cr = v(Math.max), lr = v(Math.min), ur = v(Math.ceil), dr = v((e, t, n = !1) => n ? Math.floor(e / t) : e / t), fr = v(Math.floor), pr = v((e, t) => e - t), mr = v((e, t) => e + t), hr = v((e, t) => (e % t + t) % t), gr = v((e, t) => e * t);
|
|
2181
|
+
function _r(e, t = 0) {
|
|
2163
2182
|
e = ee(e), t = ee(t);
|
|
2164
2183
|
let n = 10 ** t, r = e * n * (1 + 2 ** -52);
|
|
2165
2184
|
return Math.round(r) / n;
|
|
2166
2185
|
}
|
|
2167
|
-
var
|
|
2186
|
+
var vr = /*#__PURE__*/ Object.freeze({
|
|
2168
2187
|
__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
|
-
}),
|
|
2188
|
+
abs: sr,
|
|
2189
|
+
at_least: cr,
|
|
2190
|
+
at_most: lr,
|
|
2191
|
+
ceil: ur,
|
|
2192
|
+
divided_by: dr,
|
|
2193
|
+
floor: fr,
|
|
2194
|
+
minus: pr,
|
|
2195
|
+
plus: mr,
|
|
2196
|
+
modulo: hr,
|
|
2197
|
+
times: gr,
|
|
2198
|
+
round: _r
|
|
2199
|
+
}), yr = (e) => decodeURIComponent(l(e).replace(/\+/g, " ")), br = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), xr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Sr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), Cr = /[^\p{M}\p{L}\p{Nd}]+/gu, wr = {
|
|
2181
2200
|
raw: /\s+/g,
|
|
2182
|
-
default:
|
|
2201
|
+
default: Cr,
|
|
2183
2202
|
pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
|
|
2184
2203
|
ascii: /[^A-Za-z0-9]+/g,
|
|
2185
|
-
latin:
|
|
2204
|
+
latin: Cr,
|
|
2186
2205
|
none: null
|
|
2187
2206
|
};
|
|
2188
|
-
function
|
|
2207
|
+
function Tr(e, t = "default", n = !1) {
|
|
2189
2208
|
e = l(e);
|
|
2190
|
-
let r =
|
|
2191
|
-
return r && (t === "latin" && (e =
|
|
2209
|
+
let r = wr[t];
|
|
2210
|
+
return r && (t === "latin" && (e = Er(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
|
|
2192
2211
|
}
|
|
2193
|
-
function
|
|
2212
|
+
function Er(e) {
|
|
2194
2213
|
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
2214
|
}
|
|
2196
|
-
var
|
|
2215
|
+
var Dr = /*#__PURE__*/ Object.freeze({
|
|
2197
2216
|
__proto__: null,
|
|
2198
|
-
url_decode:
|
|
2199
|
-
url_encode:
|
|
2200
|
-
cgi_escape:
|
|
2201
|
-
uri_escape:
|
|
2202
|
-
slugify:
|
|
2203
|
-
}),
|
|
2217
|
+
url_decode: yr,
|
|
2218
|
+
url_encode: br,
|
|
2219
|
+
cgi_escape: xr,
|
|
2220
|
+
uri_escape: Sr,
|
|
2221
|
+
slugify: Tr
|
|
2222
|
+
}), Or = ge(function(e, t) {
|
|
2204
2223
|
let n = f(e), r = h(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
|
|
2205
2224
|
for (let e = 0; e < n.length; e++) i += String(n[e]).length;
|
|
2206
2225
|
return this.context.memoryLimit.use(i), Array.prototype.join.call(n, r);
|
|
2207
|
-
}),
|
|
2226
|
+
}), kr = ge(function(e) {
|
|
2208
2227
|
return re(e) ? u(e, -1, this.context.ownPropertyOnly) : "";
|
|
2209
|
-
}),
|
|
2228
|
+
}), Ar = ge(function(e) {
|
|
2210
2229
|
return re(e) ? u(e, 0, this.context.ownPropertyOnly) : "";
|
|
2211
|
-
}),
|
|
2230
|
+
}), jr = ge(function(e) {
|
|
2212
2231
|
let t = f(e);
|
|
2213
2232
|
return this.context.memoryLimit.use(t.length), [...t].reverse();
|
|
2214
2233
|
});
|
|
2215
|
-
function*
|
|
2234
|
+
function* Mr(e, t, n) {
|
|
2216
2235
|
let r = [], i = f(e);
|
|
2217
2236
|
this.context.memoryLimit.use(i.length);
|
|
2218
2237
|
for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
|
|
2219
2238
|
return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
|
|
2220
2239
|
}
|
|
2221
|
-
function*
|
|
2222
|
-
return yield*
|
|
2240
|
+
function* Nr(e, t) {
|
|
2241
|
+
return yield* Mr.call(this, e, t, me);
|
|
2223
2242
|
}
|
|
2224
|
-
function* Mr(e, t) {
|
|
2225
|
-
return yield* Ar.call(this, e, t, me);
|
|
2226
|
-
}
|
|
2227
|
-
var Nr = (e) => e && e.length || 0;
|
|
2228
2243
|
function* Pr(e, t) {
|
|
2244
|
+
return yield* Mr.call(this, e, t, he);
|
|
2245
|
+
}
|
|
2246
|
+
var Fr = (e) => e && e.length || 0;
|
|
2247
|
+
function* Ir(e, t) {
|
|
2229
2248
|
let n = [], r = f(e);
|
|
2230
2249
|
this.context.memoryLimit.use(r.length);
|
|
2231
2250
|
for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
|
|
2232
2251
|
return n;
|
|
2233
2252
|
}
|
|
2234
|
-
function*
|
|
2253
|
+
function* Lr(e, t) {
|
|
2235
2254
|
let n = 0, r = f(e);
|
|
2236
2255
|
for (let e of r) {
|
|
2237
2256
|
let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
|
|
@@ -2239,52 +2258,52 @@ function* Fr(e, t) {
|
|
|
2239
2258
|
}
|
|
2240
2259
|
return n;
|
|
2241
2260
|
}
|
|
2242
|
-
function
|
|
2261
|
+
function Rr(e) {
|
|
2243
2262
|
let t = f(e);
|
|
2244
2263
|
return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !h(p(e)));
|
|
2245
2264
|
}
|
|
2246
|
-
function
|
|
2265
|
+
function zr(e, t = []) {
|
|
2247
2266
|
let n = f(e), r = f(t);
|
|
2248
2267
|
return this.context.memoryLimit.use(n.length + r.length), Array.prototype.concat.call(n, r);
|
|
2249
2268
|
}
|
|
2250
|
-
function
|
|
2251
|
-
return
|
|
2269
|
+
function Br(e, t) {
|
|
2270
|
+
return zr.call(this, e, [t]);
|
|
2252
2271
|
}
|
|
2253
|
-
function
|
|
2272
|
+
function Vr(e, t) {
|
|
2254
2273
|
let n = f(e);
|
|
2255
2274
|
this.context.memoryLimit.use(n.length);
|
|
2256
2275
|
let r = [...n];
|
|
2257
2276
|
return r.unshift(t), r;
|
|
2258
2277
|
}
|
|
2259
|
-
function
|
|
2278
|
+
function Hr(e) {
|
|
2260
2279
|
let t = f(e);
|
|
2261
2280
|
this.context.memoryLimit.use(t.length);
|
|
2262
2281
|
let n = [...t];
|
|
2263
2282
|
return n.pop(), n;
|
|
2264
2283
|
}
|
|
2265
|
-
function
|
|
2284
|
+
function Ur(e) {
|
|
2266
2285
|
let t = f(e);
|
|
2267
2286
|
this.context.memoryLimit.use(t.length);
|
|
2268
2287
|
let n = [...t];
|
|
2269
2288
|
return n.shift(), n;
|
|
2270
2289
|
}
|
|
2271
|
-
function
|
|
2290
|
+
function Wr(e, t, n = 1) {
|
|
2272
2291
|
return e = p(e), h(e) ? [] : (g(e) || (e = l(e)), t = t < 0 ? e.length + t : t, t < 0 || n < 0 ? g(e) ? [] : "" : (this.context.memoryLimit.use(n), g(e) ? Array.prototype.slice.call(e, t, t + n) : String.prototype.slice.call(e, t, t + n)));
|
|
2273
2292
|
}
|
|
2274
|
-
function*
|
|
2275
|
-
return this.context.opts.jekyllWhere ? Fe.is(t) ? yield
|
|
2293
|
+
function* Gr(e, t) {
|
|
2294
|
+
return this.context.opts.jekyllWhere ? Fe.is(t) ? yield P(e, t) : g(e) ? yield Xt(e, t) : yield P(e, t) : t === void 0 ? M(e, this.context) : yield P(e, t);
|
|
2276
2295
|
}
|
|
2277
|
-
function*
|
|
2296
|
+
function* Kr(e, t, n, r) {
|
|
2278
2297
|
t = f(t), this.context.memoryLimit.use(t.length);
|
|
2279
|
-
let i = new
|
|
2298
|
+
let i = new I(l(n)).readScopeValue(), a = [];
|
|
2280
2299
|
for (let n of t) {
|
|
2281
2300
|
let t = yield j(i, this.context.spawn(n));
|
|
2282
|
-
(yield
|
|
2301
|
+
(yield Gr.call(this, t, r)) === e && a.push(n);
|
|
2283
2302
|
}
|
|
2284
2303
|
return a;
|
|
2285
2304
|
}
|
|
2286
|
-
function*
|
|
2287
|
-
let i = [], a = new
|
|
2305
|
+
function* qr(e, t, n, r) {
|
|
2306
|
+
let i = [], a = new z(l(r), this.liquid), o = f(t);
|
|
2288
2307
|
this.context.memoryLimit.use(o.length);
|
|
2289
2308
|
for (let t of o) {
|
|
2290
2309
|
this.context.push({ [n]: t });
|
|
@@ -2293,22 +2312,22 @@ function* Gr(e, t, n, r) {
|
|
|
2293
2312
|
}
|
|
2294
2313
|
return i;
|
|
2295
2314
|
}
|
|
2296
|
-
function* Kr(e, t, n) {
|
|
2297
|
-
return yield* Wr.call(this, !0, e, t, n);
|
|
2298
|
-
}
|
|
2299
|
-
function* qr(e, t, n) {
|
|
2300
|
-
return yield* Wr.call(this, !1, e, t, n);
|
|
2301
|
-
}
|
|
2302
2315
|
function* Jr(e, t, n) {
|
|
2303
|
-
return yield*
|
|
2316
|
+
return yield* Kr.call(this, !0, e, t, n);
|
|
2304
2317
|
}
|
|
2305
2318
|
function* Yr(e, t, n) {
|
|
2306
|
-
return yield*
|
|
2319
|
+
return yield* Kr.call(this, !1, e, t, n);
|
|
2320
|
+
}
|
|
2321
|
+
function* Xr(e, t, n) {
|
|
2322
|
+
return yield* qr.call(this, !0, e, t, n);
|
|
2307
2323
|
}
|
|
2308
|
-
function*
|
|
2324
|
+
function* Zr(e, t, n) {
|
|
2325
|
+
return yield* qr.call(this, !1, e, t, n);
|
|
2326
|
+
}
|
|
2327
|
+
function* Qr(e, t) {
|
|
2309
2328
|
let n = /* @__PURE__ */ new Map();
|
|
2310
2329
|
e = d(e);
|
|
2311
|
-
let r = new
|
|
2330
|
+
let r = new I(l(t)).readScopeValue();
|
|
2312
2331
|
this.context.memoryLimit.use(e.length);
|
|
2313
2332
|
for (let t of e) {
|
|
2314
2333
|
let e = yield j(r, this.context.spawn(t));
|
|
@@ -2319,8 +2338,8 @@ function* Xr(e, t) {
|
|
|
2319
2338
|
items: t
|
|
2320
2339
|
}));
|
|
2321
2340
|
}
|
|
2322
|
-
function*
|
|
2323
|
-
let r = /* @__PURE__ */ new Map(), i = new
|
|
2341
|
+
function* $r(e, t, n) {
|
|
2342
|
+
let r = /* @__PURE__ */ new Map(), i = new z(l(n), this.liquid);
|
|
2324
2343
|
e = d(e), this.context.memoryLimit.use(e.length);
|
|
2325
2344
|
for (let n of e) {
|
|
2326
2345
|
this.context.push({ [t]: n });
|
|
@@ -2332,105 +2351,105 @@ function* Zr(e, t, n) {
|
|
|
2332
2351
|
items: t
|
|
2333
2352
|
}));
|
|
2334
2353
|
}
|
|
2335
|
-
function*
|
|
2336
|
-
let r = new
|
|
2354
|
+
function* ei(e, t, n) {
|
|
2355
|
+
let r = new I(l(t)).readScopeValue(), i = f(e);
|
|
2337
2356
|
for (let e = 0; e < i.length; e++) {
|
|
2338
2357
|
let t = yield j(r, this.context.spawn(i[e]));
|
|
2339
|
-
if (yield
|
|
2358
|
+
if (yield Gr.call(this, t, n)) return [e, i[e]];
|
|
2340
2359
|
}
|
|
2341
2360
|
}
|
|
2342
|
-
function*
|
|
2343
|
-
let r = new
|
|
2361
|
+
function* ti(e, t, n) {
|
|
2362
|
+
let r = new z(l(n), this.liquid), i = f(e);
|
|
2344
2363
|
for (let e = 0; e < i.length; e++) {
|
|
2345
2364
|
this.context.push({ [t]: i[e] });
|
|
2346
2365
|
let n = yield r.value(this.context);
|
|
2347
2366
|
if (this.context.pop(), n) return [e, i[e]];
|
|
2348
2367
|
}
|
|
2349
2368
|
}
|
|
2350
|
-
function*
|
|
2351
|
-
return !!(yield*
|
|
2369
|
+
function* ni(e, t, n) {
|
|
2370
|
+
return !!(yield* ei.call(this, e, t, n));
|
|
2352
2371
|
}
|
|
2353
|
-
function*
|
|
2354
|
-
return !!(yield*
|
|
2372
|
+
function* ri(e, t, n) {
|
|
2373
|
+
return !!(yield* ti.call(this, e, t, n));
|
|
2355
2374
|
}
|
|
2356
|
-
function*
|
|
2357
|
-
let r = yield*
|
|
2375
|
+
function* ii(e, t, n) {
|
|
2376
|
+
let r = yield* ei.call(this, e, t, n);
|
|
2358
2377
|
return r ? r[0] : void 0;
|
|
2359
2378
|
}
|
|
2360
|
-
function*
|
|
2361
|
-
let r = yield*
|
|
2379
|
+
function* ai(e, t, n) {
|
|
2380
|
+
let r = yield* ti.call(this, e, t, n);
|
|
2362
2381
|
return r ? r[0] : void 0;
|
|
2363
2382
|
}
|
|
2364
|
-
function*
|
|
2365
|
-
let r = yield*
|
|
2383
|
+
function* oi(e, t, n) {
|
|
2384
|
+
let r = yield* ei.call(this, e, t, n);
|
|
2366
2385
|
return r ? r[1] : void 0;
|
|
2367
2386
|
}
|
|
2368
|
-
function*
|
|
2369
|
-
let r = yield*
|
|
2387
|
+
function* si(e, t, n) {
|
|
2388
|
+
let r = yield* ti.call(this, e, t, n);
|
|
2370
2389
|
return r ? r[1] : void 0;
|
|
2371
2390
|
}
|
|
2372
|
-
function
|
|
2391
|
+
function ci(e) {
|
|
2373
2392
|
return e = f(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
|
|
2374
2393
|
}
|
|
2375
|
-
function
|
|
2394
|
+
function li(e, t = 1) {
|
|
2376
2395
|
if (e = p(e), h(e)) return [];
|
|
2377
2396
|
g(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
|
|
2378
2397
|
let n = [...e].sort(() => Math.random() - .5);
|
|
2379
2398
|
return t === 1 ? n[0] : n.slice(0, t);
|
|
2380
2399
|
}
|
|
2381
|
-
var
|
|
2400
|
+
var ui = /*#__PURE__*/ Object.freeze({
|
|
2382
2401
|
__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:
|
|
2402
|
+
join: Or,
|
|
2403
|
+
last: kr,
|
|
2404
|
+
first: Ar,
|
|
2405
|
+
reverse: jr,
|
|
2406
|
+
sort: Nr,
|
|
2407
|
+
sort_natural: Pr,
|
|
2408
|
+
size: Fr,
|
|
2409
|
+
map: Ir,
|
|
2410
|
+
sum: Lr,
|
|
2411
|
+
compact: Rr,
|
|
2412
|
+
concat: zr,
|
|
2413
|
+
push: Br,
|
|
2414
|
+
unshift: Vr,
|
|
2415
|
+
pop: Hr,
|
|
2416
|
+
shift: Ur,
|
|
2417
|
+
slice: Wr,
|
|
2418
|
+
where: Jr,
|
|
2419
|
+
reject: Yr,
|
|
2420
|
+
where_exp: Xr,
|
|
2421
|
+
reject_exp: Zr,
|
|
2422
|
+
group_by: Qr,
|
|
2423
|
+
group_by_exp: $r,
|
|
2424
|
+
has: ni,
|
|
2425
|
+
has_exp: ri,
|
|
2426
|
+
find_index: ii,
|
|
2427
|
+
find_index_exp: ai,
|
|
2428
|
+
find: oi,
|
|
2429
|
+
find_exp: si,
|
|
2430
|
+
uniq: ci,
|
|
2431
|
+
sample: li
|
|
2413
2432
|
});
|
|
2414
|
-
function
|
|
2433
|
+
function di(e, t, n) {
|
|
2415
2434
|
let r = (e?.length ?? 0) + (n?.length ?? 0);
|
|
2416
2435
|
this.context.memoryLimit.use(r);
|
|
2417
|
-
let i =
|
|
2436
|
+
let i = _i(e, this.context.opts, n);
|
|
2418
2437
|
return i ? (t = p(t), t = h(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), it(i, t, this.context.memoryLimit)) : e;
|
|
2419
2438
|
}
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2439
|
+
function fi(e) {
|
|
2440
|
+
return di.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
|
|
2422
2441
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2442
|
+
function pi(e) {
|
|
2443
|
+
return di.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
|
|
2425
2444
|
}
|
|
2426
|
-
function
|
|
2427
|
-
return
|
|
2445
|
+
function mi(e, t, n) {
|
|
2446
|
+
return gi.call(this, e, "%b", t, n);
|
|
2428
2447
|
}
|
|
2429
|
-
function
|
|
2430
|
-
return
|
|
2448
|
+
function hi(e, t, n) {
|
|
2449
|
+
return gi.call(this, e, "%B", t, n);
|
|
2431
2450
|
}
|
|
2432
|
-
function
|
|
2433
|
-
let i =
|
|
2451
|
+
function gi(e, t, n, r) {
|
|
2452
|
+
let i = _i(e, this.context.opts);
|
|
2434
2453
|
if (!i) return e;
|
|
2435
2454
|
let a = this.context.memoryLimit;
|
|
2436
2455
|
if (n === "ordinal") {
|
|
@@ -2439,29 +2458,29 @@ function mi(e, t, n, r) {
|
|
|
2439
2458
|
}
|
|
2440
2459
|
return it(i, `%d ${t} %Y`, a);
|
|
2441
2460
|
}
|
|
2442
|
-
function
|
|
2461
|
+
function _i(e, t, n) {
|
|
2443
2462
|
let r, i = n ?? t.timezoneOffset, o = t.locale;
|
|
2444
2463
|
if (e = p(e), !h(e)) return r = e === "now" || e === "today" ? new A(Date.now(), o, i) : m(e) ? new A(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new A(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? A.createDateFixedToTimezone(e, o) : new A(e, o, i) : new A(e, o, i), r.valid() ? r : void 0;
|
|
2445
2464
|
}
|
|
2446
|
-
var
|
|
2465
|
+
var vi = /*#__PURE__*/ Object.freeze({
|
|
2447
2466
|
__proto__: null,
|
|
2448
|
-
date:
|
|
2449
|
-
date_to_xmlschema:
|
|
2450
|
-
date_to_rfc822:
|
|
2451
|
-
date_to_string:
|
|
2452
|
-
date_to_long_string:
|
|
2453
|
-
}),
|
|
2454
|
-
function
|
|
2455
|
-
|
|
2467
|
+
date: di,
|
|
2468
|
+
date_to_xmlschema: fi,
|
|
2469
|
+
date_to_rfc822: pi,
|
|
2470
|
+
date_to_string: mi,
|
|
2471
|
+
date_to_long_string: hi
|
|
2472
|
+
}), yi = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, bi = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
|
|
2473
|
+
function xi(e, t) {
|
|
2474
|
+
C(arguments.length === 2, "append expect 2 arguments");
|
|
2456
2475
|
let n = l(e), r = l(t);
|
|
2457
2476
|
return this.context.memoryLimit.use(n.length + r.length), n + r;
|
|
2458
2477
|
}
|
|
2459
|
-
function
|
|
2460
|
-
|
|
2478
|
+
function Si(e, t) {
|
|
2479
|
+
C(arguments.length === 2, "prepend expect 2 arguments");
|
|
2461
2480
|
let n = l(e), r = l(t);
|
|
2462
2481
|
return this.context.memoryLimit.use(n.length + r.length), r + n;
|
|
2463
2482
|
}
|
|
2464
|
-
function
|
|
2483
|
+
function Ci(e, t) {
|
|
2465
2484
|
let n = 0;
|
|
2466
2485
|
for (let r of e) {
|
|
2467
2486
|
if (!t.has(r)) break;
|
|
@@ -2469,7 +2488,7 @@ function xi(e, t) {
|
|
|
2469
2488
|
}
|
|
2470
2489
|
return n;
|
|
2471
2490
|
}
|
|
2472
|
-
function
|
|
2491
|
+
function wi(e, t, n = 0) {
|
|
2473
2492
|
let r = e.length;
|
|
2474
2493
|
for (; r > n;) {
|
|
2475
2494
|
let i = r - n >= 2 && e.codePointAt(r - 2) > 65535 ? 2 : 1;
|
|
@@ -2478,84 +2497,84 @@ function Si(e, t, n = 0) {
|
|
|
2478
2497
|
}
|
|
2479
2498
|
return r;
|
|
2480
2499
|
}
|
|
2481
|
-
function
|
|
2500
|
+
function Ti(e, t) {
|
|
2482
2501
|
let n = l(e);
|
|
2483
|
-
return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(
|
|
2502
|
+
return this.context.memoryLimit.use(n.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), n.slice(Ci(n, new Set(t)))) : n.trimStart();
|
|
2484
2503
|
}
|
|
2485
|
-
function
|
|
2504
|
+
function Ei(e) {
|
|
2486
2505
|
let t = l(e);
|
|
2487
2506
|
return this.context.memoryLimit.use(t.length), t.toLowerCase();
|
|
2488
2507
|
}
|
|
2489
|
-
function
|
|
2508
|
+
function Di(e) {
|
|
2490
2509
|
let t = l(e);
|
|
2491
2510
|
return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
|
|
2492
2511
|
}
|
|
2493
|
-
function
|
|
2512
|
+
function Oi(e, t) {
|
|
2494
2513
|
let n = l(e);
|
|
2495
2514
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
|
|
2496
2515
|
}
|
|
2497
|
-
function
|
|
2516
|
+
function ki(e, t) {
|
|
2498
2517
|
let n = l(e);
|
|
2499
2518
|
return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
|
|
2500
2519
|
}
|
|
2501
|
-
function
|
|
2520
|
+
function Ai(e, t) {
|
|
2502
2521
|
let n = l(e), r = l(t);
|
|
2503
2522
|
this.context.memoryLimit.use(n.length + r.length);
|
|
2504
2523
|
let i = n.lastIndexOf(r);
|
|
2505
2524
|
return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
|
|
2506
2525
|
}
|
|
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,
|
|
2526
|
+
function ji(e, t) {
|
|
2527
|
+
return e = l(e), this.context.memoryLimit.use(e.length), t ? (t = l(t), this.context.memoryLimit.use(t.length), e.slice(0, wi(e, new Set(t)))) : e.trimEnd();
|
|
2509
2528
|
}
|
|
2510
|
-
function
|
|
2529
|
+
function Mi(e, t) {
|
|
2511
2530
|
let n = l(e);
|
|
2512
2531
|
this.context.memoryLimit.use(n.length);
|
|
2513
2532
|
let r = n.split(l(t));
|
|
2514
2533
|
for (; r.length && r[r.length - 1] === "";) r.pop();
|
|
2515
2534
|
return r;
|
|
2516
2535
|
}
|
|
2517
|
-
function
|
|
2536
|
+
function Ni(e, t) {
|
|
2518
2537
|
let n = l(e);
|
|
2519
2538
|
if (this.context.memoryLimit.use(n.length), t) {
|
|
2520
2539
|
let e = new Set(l(t));
|
|
2521
2540
|
this.context.memoryLimit.use(e.size);
|
|
2522
|
-
let r =
|
|
2523
|
-
return n.slice(r,
|
|
2541
|
+
let r = Ci(n, e);
|
|
2542
|
+
return n.slice(r, wi(n, e, r));
|
|
2524
2543
|
}
|
|
2525
2544
|
return n.trim();
|
|
2526
2545
|
}
|
|
2527
|
-
function
|
|
2546
|
+
function Pi(e) {
|
|
2528
2547
|
let t = l(e);
|
|
2529
2548
|
return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
|
|
2530
2549
|
}
|
|
2531
|
-
function
|
|
2550
|
+
function Fi(e) {
|
|
2532
2551
|
let t = l(e);
|
|
2533
2552
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ").trim();
|
|
2534
2553
|
}
|
|
2535
|
-
function
|
|
2554
|
+
function Ii(e) {
|
|
2536
2555
|
return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
|
2537
2556
|
}
|
|
2538
|
-
function
|
|
2557
|
+
function Li(e, t, n) {
|
|
2539
2558
|
let r = l(e);
|
|
2540
2559
|
t = l(t), n = l(n);
|
|
2541
2560
|
let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
|
|
2542
2561
|
return this.context.memoryLimit.use(a), i.join(n);
|
|
2543
2562
|
}
|
|
2544
|
-
function
|
|
2563
|
+
function Ri(e, t, n) {
|
|
2545
2564
|
let r = l(e);
|
|
2546
2565
|
return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
|
|
2547
2566
|
}
|
|
2548
|
-
function
|
|
2567
|
+
function zi(e, t, n) {
|
|
2549
2568
|
let r = l(e), i = l(t), a = l(n);
|
|
2550
2569
|
this.context.memoryLimit.use(r.length + i.length + a.length);
|
|
2551
2570
|
let o = r.lastIndexOf(i);
|
|
2552
2571
|
return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
|
|
2553
2572
|
}
|
|
2554
|
-
function
|
|
2573
|
+
function Bi(e, t = 50, n = "...") {
|
|
2555
2574
|
let r = l(e);
|
|
2556
2575
|
return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
|
|
2557
2576
|
}
|
|
2558
|
-
function
|
|
2577
|
+
function Vi(e, t = 15, n = "...") {
|
|
2559
2578
|
let r = l(e);
|
|
2560
2579
|
n = l(n), this.context.memoryLimit.use(r.length + n.length);
|
|
2561
2580
|
let i = r.trimStart().split(/\s+/);
|
|
@@ -2563,20 +2582,20 @@ function zi(e, t = 15, n = "...") {
|
|
|
2563
2582
|
let a = i.slice(0, t).join(" ");
|
|
2564
2583
|
return i.length >= t && (a += n), a;
|
|
2565
2584
|
}
|
|
2566
|
-
function
|
|
2585
|
+
function Hi(e) {
|
|
2567
2586
|
let t = l(e);
|
|
2568
2587
|
return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
|
|
2569
2588
|
}
|
|
2570
|
-
function
|
|
2589
|
+
function Ui(e, t) {
|
|
2571
2590
|
let n = l(e);
|
|
2572
2591
|
if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
|
|
2573
2592
|
switch (t) {
|
|
2574
|
-
case "cjk": return (e.match(
|
|
2575
|
-
case "auto": return
|
|
2593
|
+
case "cjk": return (e.match(yi) || []).length + (e.match(bi) || []).length;
|
|
2594
|
+
case "auto": return yi.test(e) ? e.match(yi).length + (e.match(bi) || []).length : e.split(/\s+/).length;
|
|
2576
2595
|
default: return e.split(/\s+/).length;
|
|
2577
2596
|
}
|
|
2578
2597
|
}
|
|
2579
|
-
function
|
|
2598
|
+
function Wi(e, t = "and") {
|
|
2580
2599
|
t = l(t);
|
|
2581
2600
|
let n = t.length + e.length * 2;
|
|
2582
2601
|
for (let t = 0; t < e.length; t++) n += l(e[t]).length;
|
|
@@ -2587,88 +2606,88 @@ function Hi(e, t = "and") {
|
|
|
2587
2606
|
default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
|
|
2588
2607
|
}
|
|
2589
2608
|
}
|
|
2590
|
-
var
|
|
2609
|
+
var Gi = /*#__PURE__*/ Object.freeze({
|
|
2591
2610
|
__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:
|
|
2611
|
+
append: xi,
|
|
2612
|
+
prepend: Si,
|
|
2613
|
+
lstrip: Ti,
|
|
2614
|
+
downcase: Ei,
|
|
2615
|
+
upcase: Di,
|
|
2616
|
+
remove: Oi,
|
|
2617
|
+
remove_first: ki,
|
|
2618
|
+
remove_last: Ai,
|
|
2619
|
+
rstrip: ji,
|
|
2620
|
+
split: Mi,
|
|
2621
|
+
strip: Ni,
|
|
2622
|
+
strip_newlines: Pi,
|
|
2623
|
+
squish: Fi,
|
|
2624
|
+
capitalize: Ii,
|
|
2625
|
+
replace: Li,
|
|
2626
|
+
replace_first: Ri,
|
|
2627
|
+
replace_last: zi,
|
|
2628
|
+
truncate: Bi,
|
|
2629
|
+
truncatewords: Vi,
|
|
2630
|
+
normalize_whitespace: Hi,
|
|
2631
|
+
number_of_words: Ui,
|
|
2632
|
+
array_to_sentence_string: Wi
|
|
2614
2633
|
});
|
|
2615
|
-
function
|
|
2634
|
+
function Ki(e) {
|
|
2616
2635
|
let t = new TextEncoder().encode(e), n = "";
|
|
2617
2636
|
for (let e = 0; e < t.length; e += 32768) n += String.fromCharCode(...t.subarray(e, e + 32768));
|
|
2618
2637
|
return btoa(n);
|
|
2619
2638
|
}
|
|
2620
|
-
function
|
|
2639
|
+
function qi(e) {
|
|
2621
2640
|
return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
|
|
2622
2641
|
}
|
|
2623
|
-
function
|
|
2642
|
+
function Ji(e) {
|
|
2624
2643
|
if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
|
|
2625
2644
|
let t = l(e);
|
|
2626
|
-
return this.context.memoryLimit.use(t.length),
|
|
2645
|
+
return this.context.memoryLimit.use(t.length), Ki(t);
|
|
2627
2646
|
}
|
|
2628
|
-
function
|
|
2647
|
+
function Yi(e) {
|
|
2629
2648
|
let t = l(e);
|
|
2630
|
-
return this.context.memoryLimit.use(t.length),
|
|
2649
|
+
return this.context.memoryLimit.use(t.length), qi(t);
|
|
2631
2650
|
}
|
|
2632
|
-
var
|
|
2651
|
+
var Xi = /*#__PURE__*/ Object.freeze({
|
|
2633
2652
|
__proto__: null,
|
|
2634
|
-
base64_encode:
|
|
2635
|
-
base64_decode:
|
|
2653
|
+
base64_encode: Ji,
|
|
2654
|
+
base64_decode: Yi
|
|
2636
2655
|
});
|
|
2637
|
-
function
|
|
2656
|
+
function Zi(e) {
|
|
2638
2657
|
let t = new Uint8Array(e), n = "";
|
|
2639
2658
|
for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
|
|
2640
2659
|
return n;
|
|
2641
2660
|
}
|
|
2642
|
-
function
|
|
2661
|
+
function Qi(e) {
|
|
2643
2662
|
return D(this, void 0, void 0, function* () {
|
|
2644
2663
|
let t = new TextEncoder().encode(e);
|
|
2645
|
-
return
|
|
2664
|
+
return Zi(yield crypto.subtle.digest("SHA-256", t));
|
|
2646
2665
|
});
|
|
2647
2666
|
}
|
|
2648
|
-
function
|
|
2667
|
+
function $i(e, t) {
|
|
2649
2668
|
return D(this, void 0, void 0, function* () {
|
|
2650
2669
|
let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
|
|
2651
2670
|
name: "HMAC",
|
|
2652
2671
|
hash: "SHA-256"
|
|
2653
2672
|
}, !1, ["sign"]);
|
|
2654
|
-
return
|
|
2673
|
+
return Zi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
|
|
2655
2674
|
});
|
|
2656
2675
|
}
|
|
2657
|
-
function
|
|
2676
|
+
function ea(e) {
|
|
2658
2677
|
let t = l(e);
|
|
2659
|
-
return this.context.memoryLimit.use(t.length),
|
|
2678
|
+
return this.context.memoryLimit.use(t.length), Qi(t);
|
|
2660
2679
|
}
|
|
2661
|
-
function
|
|
2680
|
+
function ta(e, t) {
|
|
2662
2681
|
let n = l(e), r = l(t);
|
|
2663
|
-
return this.context.memoryLimit.use(n.length + r.length),
|
|
2682
|
+
return this.context.memoryLimit.use(n.length + r.length), $i(n, r);
|
|
2664
2683
|
}
|
|
2665
|
-
var
|
|
2684
|
+
var na = /*#__PURE__*/ Object.freeze({
|
|
2666
2685
|
__proto__: null,
|
|
2667
|
-
sha256:
|
|
2668
|
-
hmac_sha256:
|
|
2669
|
-
}),
|
|
2686
|
+
sha256: ea,
|
|
2687
|
+
hmac_sha256: ta
|
|
2688
|
+
}), ra = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Sn), vr), Dr), ui), vi), Gi), Xi), na), pn), ia = class extends L {
|
|
2670
2689
|
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
|
|
2690
|
+
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
2691
|
}
|
|
2673
2692
|
*render(e) {
|
|
2674
2693
|
e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
|
|
@@ -2679,20 +2698,20 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2679
2698
|
*localScope() {
|
|
2680
2699
|
yield this.identifier;
|
|
2681
2700
|
}
|
|
2682
|
-
},
|
|
2701
|
+
}, aa = [
|
|
2683
2702
|
"offset",
|
|
2684
2703
|
"limit",
|
|
2685
2704
|
"reversed"
|
|
2686
|
-
],
|
|
2705
|
+
], oa = class extends L {
|
|
2687
2706
|
constructor(e, t, n, r) {
|
|
2688
2707
|
super(e, t, n);
|
|
2689
2708
|
let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
2690
2709
|
if (!i.size() || a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
|
|
2691
|
-
this.variable = i.content, this.collection = o, this.hash = new
|
|
2710
|
+
this.variable = i.content, this.collection = o, this.hash = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
|
|
2692
2711
|
let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:else", (e) => {
|
|
2693
|
-
|
|
2712
|
+
w(e.args), s = this.elseTemplates;
|
|
2694
2713
|
}).on("tag:endfor", (e) => {
|
|
2695
|
-
|
|
2714
|
+
w(e.args), c.stop();
|
|
2696
2715
|
}).on("template", (e) => s.push(e)).on("end", () => {
|
|
2697
2716
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2698
2717
|
});
|
|
@@ -2707,7 +2726,7 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2707
2726
|
let i = "continue-" + this.variable + "-" + this.collection.getText();
|
|
2708
2727
|
e.push(Z({ continue: e.getRegister(i, {}) }));
|
|
2709
2728
|
let a = yield this.hash.render(e);
|
|
2710
|
-
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) =>
|
|
2729
|
+
e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => aa.includes(e)) : aa.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? ca(e, a.offset) : t === "limit" ? la(e, a.limit) : sa(e), r), e.setRegister(i, (a.offset || 0) + r.length);
|
|
2711
2730
|
let o = Z({ forloop: new Le(r.length, this.collection.getText(), this.variable) });
|
|
2712
2731
|
e.push(o);
|
|
2713
2732
|
for (let i of r) {
|
|
@@ -2728,20 +2747,20 @@ var ea = /*#__PURE__*/ Object.freeze({
|
|
|
2728
2747
|
return [this.variable, "forloop"];
|
|
2729
2748
|
}
|
|
2730
2749
|
};
|
|
2731
|
-
function
|
|
2750
|
+
function sa(e) {
|
|
2732
2751
|
return [...e].reverse();
|
|
2733
2752
|
}
|
|
2734
|
-
function
|
|
2753
|
+
function ca(e, t) {
|
|
2735
2754
|
return e.slice(t);
|
|
2736
2755
|
}
|
|
2737
|
-
function
|
|
2756
|
+
function la(e, t) {
|
|
2738
2757
|
return e.slice(0, t);
|
|
2739
2758
|
}
|
|
2740
|
-
var
|
|
2759
|
+
var ua = class extends L {
|
|
2741
2760
|
constructor(e, t, n, r) {
|
|
2742
2761
|
for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
|
|
2743
2762
|
let e = t.shift();
|
|
2744
|
-
if (
|
|
2763
|
+
if (q(e) && e.name === "endcapture") return;
|
|
2745
2764
|
this.templates.push(r.parseToken(e, t));
|
|
2746
2765
|
}
|
|
2747
2766
|
throw Error(`tag ${e.getText()} not closed`);
|
|
@@ -2761,9 +2780,9 @@ var ca = class extends R {
|
|
|
2761
2780
|
*localScope() {
|
|
2762
2781
|
yield this.identifier;
|
|
2763
2782
|
}
|
|
2764
|
-
},
|
|
2783
|
+
}, da = class extends L {
|
|
2765
2784
|
constructor(e, t, n, r) {
|
|
2766
|
-
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new
|
|
2785
|
+
super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new z(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
|
|
2767
2786
|
let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
|
|
2768
2787
|
if (a > 0) return;
|
|
2769
2788
|
i = [];
|
|
@@ -2784,7 +2803,7 @@ var ca = class extends R {
|
|
|
2784
2803
|
}
|
|
2785
2804
|
*render(e, t) {
|
|
2786
2805
|
let n = this.liquid.renderer, r = yield p(yield this.value.value(e, e.opts.lenientIf)), i = !1;
|
|
2787
|
-
for (let a of this.branches) for (let o of a.values) if (yield
|
|
2806
|
+
for (let a of this.branches) for (let o of a.values) if (yield P(r, yield j(o, e, e.opts.lenientIf))) {
|
|
2788
2807
|
yield n.renderTemplates(a.templates, e, t), i = !0;
|
|
2789
2808
|
break;
|
|
2790
2809
|
}
|
|
@@ -2797,20 +2816,20 @@ var ca = class extends R {
|
|
|
2797
2816
|
let e = this.branches.flatMap((e) => e.templates);
|
|
2798
2817
|
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
2799
2818
|
}
|
|
2800
|
-
},
|
|
2819
|
+
}, fa = class extends L {
|
|
2801
2820
|
constructor(e, t, n) {
|
|
2802
2821
|
for (super(e, t, n); t.length;) {
|
|
2803
2822
|
let e = t.shift();
|
|
2804
|
-
if (
|
|
2823
|
+
if (q(e) && e.name === "endcomment") return;
|
|
2805
2824
|
}
|
|
2806
2825
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2807
2826
|
}
|
|
2808
2827
|
render() {}
|
|
2809
|
-
},
|
|
2828
|
+
}, pa = class extends L {
|
|
2810
2829
|
constructor(e, t, n, r) {
|
|
2811
2830
|
super(e, t, n);
|
|
2812
2831
|
let i = this.tokenizer;
|
|
2813
|
-
for (this.file =
|
|
2832
|
+
for (this.file = ma(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
|
|
2814
2833
|
i.skipBlank();
|
|
2815
2834
|
let e = i.p, t = i.readIdentifier();
|
|
2816
2835
|
if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
|
|
@@ -2829,11 +2848,11 @@ var ca = class extends R {
|
|
|
2829
2848
|
i.p = e;
|
|
2830
2849
|
break;
|
|
2831
2850
|
}
|
|
2832
|
-
this.hash = new
|
|
2851
|
+
this.hash = new R(i, n.options.keyValueSeparator);
|
|
2833
2852
|
}
|
|
2834
2853
|
*render(e, t) {
|
|
2835
|
-
let { liquid: n, hash: r } = this, i = yield
|
|
2836
|
-
|
|
2854
|
+
let { liquid: n, hash: r } = this, i = yield ga(this.file, e, n);
|
|
2855
|
+
C(i, () => `illegal file path "${i}"`);
|
|
2837
2856
|
let a = e.spawn(), o = a.bottom();
|
|
2838
2857
|
if (E(o, yield r.render(e)), this.with) {
|
|
2839
2858
|
let { value: t, alias: n } = this.with;
|
|
@@ -2885,31 +2904,31 @@ var ca = class extends R {
|
|
|
2885
2904
|
}
|
|
2886
2905
|
}
|
|
2887
2906
|
};
|
|
2888
|
-
function
|
|
2907
|
+
function ma(e, t, n) {
|
|
2889
2908
|
if (t.options.dynamicPartials) {
|
|
2890
2909
|
let t = e.readValue();
|
|
2891
|
-
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 :
|
|
2910
|
+
return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Xn(t) ? ha(n.parse(Gt(t))) : t;
|
|
2892
2911
|
}
|
|
2893
|
-
let r = [...e.readFileNameTemplate(t.options)], i =
|
|
2912
|
+
let r = [...e.readFileNameTemplate(t.options)], i = ha(n.parseTokens(r));
|
|
2894
2913
|
return i === "none" ? void 0 : i;
|
|
2895
2914
|
}
|
|
2896
|
-
function
|
|
2897
|
-
return e.length === 1 &&
|
|
2915
|
+
function ha(e) {
|
|
2916
|
+
return e.length === 1 && Jn(e[0].token) ? e[0].token.getContent() : e;
|
|
2898
2917
|
}
|
|
2899
|
-
function*
|
|
2918
|
+
function* ga(e, t, n) {
|
|
2900
2919
|
return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield j(e, t);
|
|
2901
2920
|
}
|
|
2902
|
-
var
|
|
2921
|
+
var _a = class extends L {
|
|
2903
2922
|
constructor(e, t, n, r) {
|
|
2904
2923
|
super(e, t, n);
|
|
2905
2924
|
let { tokenizer: i } = e;
|
|
2906
|
-
this.file =
|
|
2925
|
+
this.file = ma(i, this.liquid, r), this.currentFile = e.file;
|
|
2907
2926
|
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
|
|
2927
|
+
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
2928
|
}
|
|
2910
2929
|
*render(e, t) {
|
|
2911
|
-
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield
|
|
2912
|
-
|
|
2930
|
+
let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield ga(this.file, e, n);
|
|
2931
|
+
C(o, () => `illegal file path "${o}"`);
|
|
2913
2932
|
let s = e.saveRegister("blocks", "blockMode");
|
|
2914
2933
|
e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
|
|
2915
2934
|
let c = Z(yield r.render(e));
|
|
@@ -2933,7 +2952,7 @@ var ha = class extends R {
|
|
|
2933
2952
|
*arguments() {
|
|
2934
2953
|
yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
|
|
2935
2954
|
}
|
|
2936
|
-
},
|
|
2955
|
+
}, va = class extends L {
|
|
2937
2956
|
constructor(e, t, n) {
|
|
2938
2957
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
2939
2958
|
}
|
|
@@ -2944,7 +2963,7 @@ var ha = class extends R {
|
|
|
2944
2963
|
*localScope() {
|
|
2945
2964
|
yield this.identifier;
|
|
2946
2965
|
}
|
|
2947
|
-
},
|
|
2966
|
+
}, ya = class extends L {
|
|
2948
2967
|
constructor(e, t, n) {
|
|
2949
2968
|
super(e, t, n), this.candidates = [];
|
|
2950
2969
|
let r = this.tokenizer.readValue();
|
|
@@ -2963,22 +2982,22 @@ var ha = class extends R {
|
|
|
2963
2982
|
*arguments() {
|
|
2964
2983
|
yield* this.candidates, this.group && (yield this.group);
|
|
2965
2984
|
}
|
|
2966
|
-
},
|
|
2985
|
+
}, ba = class extends L {
|
|
2967
2986
|
constructor(e, t, n, r) {
|
|
2968
2987
|
super(e, t, n), this.branches = [];
|
|
2969
2988
|
let i = [];
|
|
2970
2989
|
r.parseStream(t).on("start", () => this.branches.push({
|
|
2971
|
-
value: new
|
|
2990
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
2972
2991
|
templates: i = []
|
|
2973
2992
|
})).on("tag:elsif", (e) => {
|
|
2974
|
-
|
|
2975
|
-
value: new
|
|
2993
|
+
C(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
|
|
2994
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
2976
2995
|
templates: i = []
|
|
2977
2996
|
});
|
|
2978
2997
|
}).on("tag:else", (e) => {
|
|
2979
|
-
|
|
2998
|
+
w(e.args), C(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
|
|
2980
2999
|
}).on("tag:endif", function(e) {
|
|
2981
|
-
|
|
3000
|
+
w(e.args), this.stop();
|
|
2982
3001
|
}).on("template", (e) => i.push(e)).on("end", () => {
|
|
2983
3002
|
throw Error(`tag ${e.getText()} not closed`);
|
|
2984
3003
|
}).start();
|
|
@@ -2998,7 +3017,7 @@ var ha = class extends R {
|
|
|
2998
3017
|
arguments() {
|
|
2999
3018
|
return this.branches.map((e) => e.value);
|
|
3000
3019
|
}
|
|
3001
|
-
},
|
|
3020
|
+
}, xa = class extends L {
|
|
3002
3021
|
constructor(e, t, n) {
|
|
3003
3022
|
super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
|
|
3004
3023
|
}
|
|
@@ -3011,9 +3030,9 @@ var ha = class extends R {
|
|
|
3011
3030
|
*localScope() {
|
|
3012
3031
|
yield this.identifier;
|
|
3013
3032
|
}
|
|
3014
|
-
},
|
|
3033
|
+
}, Sa = class extends L {
|
|
3015
3034
|
constructor(e, t, n, r) {
|
|
3016
|
-
super(e, t, n), this.file =
|
|
3035
|
+
super(e, t, n), this.file = ma(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
|
|
3017
3036
|
}
|
|
3018
3037
|
*render(e, t) {
|
|
3019
3038
|
let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
|
|
@@ -3021,8 +3040,8 @@ var ha = class extends R {
|
|
|
3021
3040
|
e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
|
|
3022
3041
|
return;
|
|
3023
3042
|
}
|
|
3024
|
-
let o = yield
|
|
3025
|
-
|
|
3043
|
+
let o = yield ga(this.file, e, n);
|
|
3044
|
+
C(o, () => `illegal file path "${o}"`);
|
|
3026
3045
|
let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
|
|
3027
3046
|
e.setRegister("blockMode", $.STORE);
|
|
3028
3047
|
let c = yield a.renderTemplates(this.templates, e), l = e.getRegister("blocks", {});
|
|
@@ -3043,13 +3062,13 @@ var ha = class extends R {
|
|
|
3043
3062
|
scope: Object.keys(this.args.hash)
|
|
3044
3063
|
};
|
|
3045
3064
|
}
|
|
3046
|
-
},
|
|
3065
|
+
}, Ca = class extends L {
|
|
3047
3066
|
constructor(e, t, n, r) {
|
|
3048
3067
|
super(e, t, n), this.templates = [];
|
|
3049
3068
|
let i = /\w+/.exec(e.args);
|
|
3050
3069
|
for (this.block = i ? i[0] : ""; t.length;) {
|
|
3051
3070
|
let e = t.shift();
|
|
3052
|
-
if (
|
|
3071
|
+
if (q(e) && e.name === "endblock") return;
|
|
3053
3072
|
let n = r.parseToken(e, t);
|
|
3054
3073
|
this.templates.push(n);
|
|
3055
3074
|
}
|
|
@@ -3073,11 +3092,11 @@ var ha = class extends R {
|
|
|
3073
3092
|
blockScope() {
|
|
3074
3093
|
return ["block"];
|
|
3075
3094
|
}
|
|
3076
|
-
},
|
|
3095
|
+
}, wa = class extends L {
|
|
3077
3096
|
constructor(e, t, n) {
|
|
3078
3097
|
for (super(e, t, n), this.tokens = []; t.length;) {
|
|
3079
3098
|
let e = t.shift();
|
|
3080
|
-
if (
|
|
3099
|
+
if (q(e) && e.name === "endraw") return;
|
|
3081
3100
|
this.tokens.push(e);
|
|
3082
3101
|
}
|
|
3083
3102
|
throw Error(`tag ${e.getText()} not closed`);
|
|
@@ -3085,7 +3104,7 @@ var ha = class extends R {
|
|
|
3085
3104
|
render() {
|
|
3086
3105
|
return this.tokens.map((e) => e.getText()).join("");
|
|
3087
3106
|
}
|
|
3088
|
-
},
|
|
3107
|
+
}, Ta = class extends Le {
|
|
3089
3108
|
constructor(e, t, n, r) {
|
|
3090
3109
|
super(e, n, r), this.length = e, this.cols = t;
|
|
3091
3110
|
}
|
|
@@ -3104,141 +3123,141 @@ var ha = class extends R {
|
|
|
3104
3123
|
col_last() {
|
|
3105
3124
|
return this.col() === this.cols;
|
|
3106
3125
|
}
|
|
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,
|
|
3126
|
+
}, Ea = class extends L {
|
|
3127
|
+
constructor(e, t, n, r) {
|
|
3128
|
+
super(e, t, n);
|
|
3129
|
+
let i = this.tokenizer.readIdentifier();
|
|
3130
|
+
this.tokenizer.skipBlank();
|
|
3131
|
+
let a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
|
|
3132
|
+
if (a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
|
|
3133
|
+
this.variable = i.content, this.collection = o, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
|
|
3134
|
+
let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (e) => s.push(e)).on("end", () => {
|
|
3135
|
+
throw Error(`tag ${e.getText()} not closed`);
|
|
3136
|
+
});
|
|
3137
|
+
c.start();
|
|
3138
|
+
}
|
|
3139
|
+
*render(e, t) {
|
|
3140
|
+
let n = d(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0, a = r.limit === void 0 ? n.length : r.limit;
|
|
3141
|
+
n = n.slice(i, i + a);
|
|
3142
|
+
let o = r.cols || n.length, s = this.liquid.renderer, c = new Ta(n.length, o, this.collection.getText(), this.variable), l = Z({ tablerowloop: c });
|
|
3143
|
+
e.push(l);
|
|
3144
|
+
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>");
|
|
3145
|
+
n.length && t.write("</tr>"), e.pop();
|
|
3146
|
+
}
|
|
3147
|
+
*children() {
|
|
3148
|
+
return this.templates;
|
|
3149
|
+
}
|
|
3150
|
+
*arguments() {
|
|
3151
|
+
yield this.collection;
|
|
3152
|
+
for (let e of Object.values(this.args.hash)) Y(e) && (yield e);
|
|
3153
|
+
}
|
|
3154
|
+
blockScope() {
|
|
3155
|
+
return [this.variable, "tablerowloop"];
|
|
3156
|
+
}
|
|
3157
|
+
}, Da = class extends L {
|
|
3158
|
+
constructor(e, t, n, r) {
|
|
3159
|
+
super(e, t, n), this.branches = [], this.elseTemplates = [];
|
|
3160
|
+
let i = [], a = 0;
|
|
3161
|
+
r.parseStream(t).on("start", () => this.branches.push({
|
|
3162
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3163
|
+
test: N,
|
|
3164
|
+
templates: i = []
|
|
3165
|
+
})).on("tag:elsif", (e) => {
|
|
3166
|
+
a > 0 ? i = [] : this.branches.push({
|
|
3167
|
+
value: new z(e.tokenizer.readFilteredValue(), this.liquid),
|
|
3168
|
+
test: M,
|
|
3161
3169
|
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");
|
|
3170
|
+
});
|
|
3171
|
+
}).on("tag:else", () => {
|
|
3172
|
+
a++, i = this.elseTemplates;
|
|
3173
|
+
}).on("tag:endunless", function() {
|
|
3174
|
+
this.stop();
|
|
3175
|
+
}).on("template", (e) => {
|
|
3176
|
+
(i !== this.elseTemplates || a === 1) && i.push(e);
|
|
3177
|
+
}).on("end", () => {
|
|
3178
|
+
throw Error(`tag ${e.getText()} not closed`);
|
|
3179
|
+
}).start();
|
|
3180
|
+
}
|
|
3181
|
+
*render(e, t) {
|
|
3182
|
+
let n = this.liquid.renderer;
|
|
3183
|
+
for (let { value: r, test: i, templates: a } of this.branches) if (i(yield p(yield r.value(e, e.opts.lenientIf)), e)) {
|
|
3184
|
+
yield n.renderTemplates(a, e, t);
|
|
3185
|
+
return;
|
|
3233
3186
|
}
|
|
3234
|
-
|
|
3187
|
+
yield n.renderTemplates(this.elseTemplates, e, t);
|
|
3188
|
+
}
|
|
3189
|
+
*children() {
|
|
3190
|
+
let e = this.branches.flatMap((e) => e.templates);
|
|
3191
|
+
return this.elseTemplates && e.push(...this.elseTemplates), e;
|
|
3192
|
+
}
|
|
3193
|
+
arguments() {
|
|
3194
|
+
return this.branches.map((e) => e.value);
|
|
3195
|
+
}
|
|
3196
|
+
}, Oa = class extends L {
|
|
3197
|
+
render(e, t) {
|
|
3198
|
+
e.breakCalled = !0;
|
|
3235
3199
|
}
|
|
3236
|
-
},
|
|
3200
|
+
}, ka = class extends L {
|
|
3201
|
+
render(e, t) {
|
|
3202
|
+
e.continueCalled = !0;
|
|
3203
|
+
}
|
|
3204
|
+
}, Aa = class extends L {
|
|
3205
|
+
constructor(e, t, n) {
|
|
3206
|
+
super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new z(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
|
+
}, ja = class extends L {
|
|
3217
|
+
constructor(e, t, n, r) {
|
|
3218
|
+
super(e, t, n);
|
|
3219
|
+
let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
|
|
3220
|
+
this.templates = r.parseTokens(i);
|
|
3221
|
+
}
|
|
3222
|
+
*render(e, t) {
|
|
3223
|
+
yield this.liquid.renderer.renderTemplates(this.templates, e, t);
|
|
3224
|
+
}
|
|
3225
|
+
*children() {
|
|
3226
|
+
return this.templates;
|
|
3227
|
+
}
|
|
3228
|
+
}, Ma = class extends L {
|
|
3229
|
+
constructor(e, t, n) {
|
|
3230
|
+
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");
|
|
3231
|
+
}
|
|
3232
|
+
render() {}
|
|
3233
|
+
}, Na = {
|
|
3234
|
+
assign: ia,
|
|
3235
|
+
for: oa,
|
|
3236
|
+
capture: ua,
|
|
3237
|
+
case: da,
|
|
3238
|
+
comment: fa,
|
|
3239
|
+
include: _a,
|
|
3240
|
+
render: pa,
|
|
3241
|
+
decrement: va,
|
|
3242
|
+
increment: xa,
|
|
3243
|
+
cycle: ya,
|
|
3244
|
+
if: ba,
|
|
3245
|
+
layout: Sa,
|
|
3246
|
+
block: Ca,
|
|
3247
|
+
raw: wa,
|
|
3248
|
+
tablerow: Ea,
|
|
3249
|
+
unless: Da,
|
|
3250
|
+
break: Oa,
|
|
3251
|
+
continue: ka,
|
|
3252
|
+
echo: Aa,
|
|
3253
|
+
liquid: ja,
|
|
3254
|
+
"#": Ma
|
|
3255
|
+
}, Pa = class e {
|
|
3237
3256
|
constructor(e = {}) {
|
|
3238
|
-
this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = wn(e), this.parser = new
|
|
3257
|
+
this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = wn(e), this.parser = new G(this), ae(Na, (e, t) => this.registerTag(t, e)), ae(ra, (e, t) => this.registerFilter(t, e));
|
|
3239
3258
|
}
|
|
3240
3259
|
parse(e, t) {
|
|
3241
|
-
return new
|
|
3260
|
+
return new G(this).parse(e, t);
|
|
3242
3261
|
}
|
|
3243
3262
|
_render(e, t, n) {
|
|
3244
3263
|
let r = t instanceof Q ? t : new Q(t, this.options, n, { liquid: this });
|
|
@@ -3269,21 +3288,21 @@ var ha = class extends R {
|
|
|
3269
3288
|
return k(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
|
|
3270
3289
|
}
|
|
3271
3290
|
_parsePartialFile(e, t, n) {
|
|
3272
|
-
return new
|
|
3291
|
+
return new G(this).parseFile(e, t, W.Partials, n);
|
|
3273
3292
|
}
|
|
3274
3293
|
_parseLayoutFile(e, t, n) {
|
|
3275
|
-
return new
|
|
3294
|
+
return new G(this).parseFile(e, t, W.Layouts, n);
|
|
3276
3295
|
}
|
|
3277
3296
|
_parseFile(e, t, n, r) {
|
|
3278
|
-
return new
|
|
3297
|
+
return new G(this).parseFile(e, t, n, r);
|
|
3279
3298
|
}
|
|
3280
3299
|
parseFile(e, t) {
|
|
3281
3300
|
return D(this, void 0, void 0, function* () {
|
|
3282
|
-
return O(new
|
|
3301
|
+
return O(new G(this).parseFile(e, !1, t));
|
|
3283
3302
|
});
|
|
3284
3303
|
}
|
|
3285
3304
|
parseFileSync(e, t) {
|
|
3286
|
-
return k(new
|
|
3305
|
+
return k(new G(this).parseFile(e, !0, t));
|
|
3287
3306
|
}
|
|
3288
3307
|
*_renderFile(e, t, n) {
|
|
3289
3308
|
let r = yield this._parseFile(e, n.sync, n.lookupType);
|
|
@@ -3304,7 +3323,7 @@ var ha = class extends R {
|
|
|
3304
3323
|
});
|
|
3305
3324
|
}
|
|
3306
3325
|
_evalValue(e, t) {
|
|
3307
|
-
let n = new
|
|
3326
|
+
let n = new z(e, this), r = t instanceof Q ? t : new Q(t, this.options, {}, { liquid: this });
|
|
3308
3327
|
return n.value(r);
|
|
3309
3328
|
}
|
|
3310
3329
|
evalValue(e, t) {
|
|
@@ -3322,7 +3341,7 @@ var ha = class extends R {
|
|
|
3322
3341
|
delete this.filters[e];
|
|
3323
3342
|
}
|
|
3324
3343
|
registerTag(e, t) {
|
|
3325
|
-
this.tags[e] = o(t) ? t :
|
|
3344
|
+
this.tags[e] = o(t) ? t : Mn(t);
|
|
3326
3345
|
}
|
|
3327
3346
|
plugin(t) {
|
|
3328
3347
|
return t.call(this, e);
|
|
@@ -3332,7 +3351,7 @@ var ha = class extends R {
|
|
|
3332
3351
|
return function(n, r, i) {
|
|
3333
3352
|
if (t) {
|
|
3334
3353
|
t = !1;
|
|
3335
|
-
let n =
|
|
3354
|
+
let n = En(this.root);
|
|
3336
3355
|
e.options.root.unshift(...n), e.options.layouts.unshift(...n), e.options.partials.unshift(...n);
|
|
3337
3356
|
}
|
|
3338
3357
|
e.renderFile(n, r).then((e) => i(null, e), i);
|
|
@@ -3340,81 +3359,80 @@ var ha = class extends R {
|
|
|
3340
3359
|
}
|
|
3341
3360
|
analyze(e, t = {}) {
|
|
3342
3361
|
return D(this, void 0, void 0, function* () {
|
|
3343
|
-
return
|
|
3362
|
+
return V(e, t);
|
|
3344
3363
|
});
|
|
3345
3364
|
}
|
|
3346
3365
|
analyzeSync(e, t = {}) {
|
|
3347
|
-
return
|
|
3366
|
+
return H(e, t);
|
|
3348
3367
|
}
|
|
3349
3368
|
parseAndAnalyze(e, t, n = {}) {
|
|
3350
3369
|
return D(this, void 0, void 0, function* () {
|
|
3351
|
-
return
|
|
3370
|
+
return V(this.parse(e, t), n);
|
|
3352
3371
|
});
|
|
3353
3372
|
}
|
|
3354
3373
|
parseAndAnalyzeSync(e, t, n = {}) {
|
|
3355
|
-
return
|
|
3374
|
+
return H(this.parse(e, t), n);
|
|
3356
3375
|
}
|
|
3357
3376
|
variables(e, t = {}) {
|
|
3358
3377
|
return D(this, void 0, void 0, function* () {
|
|
3359
|
-
let n = yield
|
|
3378
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3360
3379
|
return Object.keys(n.variables);
|
|
3361
3380
|
});
|
|
3362
3381
|
}
|
|
3363
3382
|
variablesSync(e, t = {}) {
|
|
3364
|
-
let n =
|
|
3383
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3365
3384
|
return Object.keys(n.variables);
|
|
3366
3385
|
}
|
|
3367
3386
|
fullVariables(e, t = {}) {
|
|
3368
3387
|
return D(this, void 0, void 0, function* () {
|
|
3369
|
-
let n = yield
|
|
3388
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3370
3389
|
return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
|
|
3371
3390
|
});
|
|
3372
3391
|
}
|
|
3373
3392
|
fullVariablesSync(e, t = {}) {
|
|
3374
|
-
let n =
|
|
3393
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3375
3394
|
return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
|
|
3376
3395
|
}
|
|
3377
3396
|
variableSegments(e, t = {}) {
|
|
3378
3397
|
return D(this, void 0, void 0, function* () {
|
|
3379
|
-
let n = yield
|
|
3380
|
-
return Array.from(
|
|
3398
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3399
|
+
return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3381
3400
|
});
|
|
3382
3401
|
}
|
|
3383
3402
|
variableSegmentsSync(e, t = {}) {
|
|
3384
|
-
let n =
|
|
3385
|
-
return Array.from(
|
|
3403
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3404
|
+
return Array.from(_e(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3386
3405
|
}
|
|
3387
3406
|
globalVariables(e, t = {}) {
|
|
3388
3407
|
return D(this, void 0, void 0, function* () {
|
|
3389
|
-
let n = yield
|
|
3408
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3390
3409
|
return Object.keys(n.globals);
|
|
3391
3410
|
});
|
|
3392
3411
|
}
|
|
3393
3412
|
globalVariablesSync(e, t = {}) {
|
|
3394
|
-
let n =
|
|
3413
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3395
3414
|
return Object.keys(n.globals);
|
|
3396
3415
|
}
|
|
3397
3416
|
globalFullVariables(e, t = {}) {
|
|
3398
3417
|
return D(this, void 0, void 0, function* () {
|
|
3399
|
-
let n = yield
|
|
3418
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3400
3419
|
return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
|
|
3401
3420
|
});
|
|
3402
3421
|
}
|
|
3403
3422
|
globalFullVariablesSync(e, t = {}) {
|
|
3404
|
-
let n =
|
|
3423
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3405
3424
|
return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
|
|
3406
3425
|
}
|
|
3407
3426
|
globalVariableSegments(e, t = {}) {
|
|
3408
3427
|
return D(this, void 0, void 0, function* () {
|
|
3409
|
-
let n = yield
|
|
3410
|
-
return Array.from(
|
|
3428
|
+
let n = yield V(a(e) ? this.parse(e) : e, t);
|
|
3429
|
+
return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3411
3430
|
});
|
|
3412
3431
|
}
|
|
3413
3432
|
globalVariableSegmentsSync(e, t = {}) {
|
|
3414
|
-
let n =
|
|
3415
|
-
return Array.from(
|
|
3433
|
+
let n = H(a(e) ? this.parse(e) : e, t);
|
|
3434
|
+
return Array.from(_e(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
|
|
3416
3435
|
}
|
|
3417
|
-
};
|
|
3436
|
+
}, Fa = "[VI]{version}[/VI]";
|
|
3418
3437
|
/* istanbul ignore file */
|
|
3419
|
-
|
|
3420
|
-
export { Ta as Liquid };
|
|
3438
|
+
export { Te as AssertionError, ia as AssignTag, Ca as BlockTag, Oa as BreakTag, ua as CaptureTag, da as CaseTag, fa as CommentTag, Q as Context, ka as ContinueTag, ya as CycleTag, va as DecrementTag, t as Drop, Aa as EchoTag, Vt as Expression, Bt as Filter, oa as ForTag, R as Hash, ba as IfTag, _a as IncludeTag, xa as IncrementTag, Ma as InlineCommentTag, Sa as LayoutTag, Pa as Liquid, y as LiquidError, ja as LiquidTag, W as LookupType, Nn as Output, be as ParseError, An as ParseStream, G as Parser, wa as RawTag, xe as RenderError, pa as RenderTag, Ea as TablerowTag, L as Tag, ht as TagToken, e as Token, K as TokenKind, ye as TokenizationError, I as Tokenizer, nr as TypeGuards, Ce as UndefinedVariableError, Da as UnlessTag, z as Value, B as Variable, V as analyze, H as analyzeSync, C as assert, Ge as createTrie, Jt as defaultOperators, F as defaultOptions, Gt as evalQuotedToken, j as evalToken, Ut as evalTokenValue, ra as filters, N as isFalsy, M as isTruthy, Na as tags, O as toPromise, p as toValue, k as toValueSync, Fa as version };
|