@nldd/design-system 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +5 -5
- package/dist/cdn/autoloader.js +139 -139
- package/dist/cdn/chunks/{accordion-DgR70Lf-.js → accordion-BcgFdNtq.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-BDevWF9t.js → accordion-item-DIoa4wMw.js} +6 -6
- package/dist/cdn/chunks/{activity-indicator-B-iqA8XF.js → activity-indicator-BmpMwyBH.js} +7 -7
- package/dist/cdn/chunks/{admonition-PKX7ePb3.js → admonition-DUsuT-qK.js} +6 -6
- package/dist/cdn/chunks/{avatar-Bm_cbn5X.js → avatar-BFnVbTB9.js} +8 -8
- package/dist/cdn/chunks/{avatar-group-5XxwtbbC.js → avatar-group-BDgLxUn9.js} +16 -16
- package/dist/cdn/chunks/{badge-CpxDQfHS.js → badge-CAN4lWcI.js} +7 -7
- package/dist/cdn/chunks/{banner-Ccc9LgDk.js → banner-BncAmkYl.js} +9 -9
- package/dist/cdn/chunks/{bar-split-view-0yxggCZe.js → bar-split-view-hlmRlFit.js} +6 -6
- package/dist/cdn/chunks/{blockquote-CmbDjlPB.js → blockquote-DUAwVT6v.js} +6 -6
- package/dist/cdn/chunks/{box-DQjgR2YI.js → box-CasAZ5pk.js} +4 -4
- package/dist/cdn/chunks/{breadcrumbs-C8yzb9pA.js → breadcrumbs-DBHmoFPu.js} +7 -7
- package/dist/cdn/chunks/{button-D_KfPyHS.js → button-IRm7Oibq.js} +12 -12
- package/dist/cdn/chunks/{button-bar-f-qcw_zA.js → button-bar-CocGraYA.js} +5 -5
- package/dist/cdn/chunks/{button-group-Dq3q44jB.js → button-group-BfNf2BZe.js} +4 -4
- package/dist/cdn/chunks/{card-CDT7nkKG.js → card-BaomP9oB.js} +5 -5
- package/dist/cdn/chunks/{cell-B7ksoCyd.js → cell-Dir3g5vA.js} +8 -8
- package/dist/cdn/chunks/{checkbox-CUReiYVg.js → checkbox-CIXkUW3R.js} +7 -7
- package/dist/cdn/chunks/{checkbox-field-CkQ8WLSq.js → checkbox-field-DQ4MlASP.js} +9 -9
- package/dist/cdn/chunks/{checkbox-group-BpDzGuFk.js → checkbox-group-C8E46V4D.js} +3 -3
- package/dist/cdn/chunks/{class-map-BQWXee9F.js → class-map-D0fkDSLP.js} +1 -1
- package/dist/cdn/chunks/{code-editor-CwLcukqn.js → code-editor-C8YqZrN-.js} +6 -6
- package/dist/cdn/chunks/{code-viewer-CvSF5fyg.js → code-viewer-Ck7wxfDo.js} +10 -10
- package/dist/cdn/chunks/{codemirror-input-CcaHTu9u.js → codemirror-input-DNrSyYSw.js} +142 -143
- package/dist/cdn/chunks/{collection-DqqkdrVS.js → collection-DprNdn8V.js} +9 -9
- package/dist/cdn/chunks/{combo-box-BQ9jS1fP.js → combo-box-B2L79FY5.js} +10 -10
- package/dist/cdn/chunks/{container-BC5PiMvR.js → container-Cg4kOUN8.js} +5 -5
- package/dist/cdn/chunks/{custom-element-DGdiDiuN.js → custom-element-CDepWGgp.js} +1 -1
- package/dist/cdn/chunks/{date-field-Dmli_GlI.js → date-field-Dsw2EkcZ.js} +13 -13
- package/dist/cdn/chunks/{date-picker-BCHBh6vd.js → date-picker-ugS3-VBq.js} +13 -13
- package/dist/cdn/chunks/{decorate-D2snH_th.js → decorate-CuJsiFnl.js} +10 -12
- package/dist/cdn/chunks/{described-by-mixin-Doan1yj6.js → described-by-mixin-Ih_IoqBD.js} +2 -2
- package/dist/cdn/chunks/{description-cell-QL0CUcxH.js → description-cell-DiLwKDva.js} +8 -8
- package/dist/cdn/chunks/{dev-checks-BQsZ10CZ.js → dev-checks-Bfy3qHxO.js} +2 -2
- package/dist/cdn/chunks/{directive-helpers-BtIbEaBv.js → directive-helpers-DEvA8txp.js} +1 -1
- package/dist/cdn/chunks/{dist-Dtn2rsM6.js → dist-BEZuPWxd.js} +78 -79
- package/dist/cdn/chunks/{dist-CUCs0edm.js → dist-BFGGXlGI.js} +113 -114
- package/dist/cdn/chunks/{dist-DM49yEzE.js → dist-BYPfq6x4.js} +5 -6
- package/dist/cdn/chunks/{dist-CeovKDYB.js → dist-C8wDJyDH.js} +69 -70
- package/dist/cdn/chunks/{dist-0sEOO4c9.js → dist-CUXioD4z.js} +296 -297
- package/dist/cdn/chunks/{dist-BTUxFM2V.js → dist-Cr0OiT-0.js} +1 -1
- package/dist/cdn/chunks/{dist-QheJD595.js → dist-CrMq7oqC.js} +2 -2
- package/dist/cdn/chunks/{dist-BX-aE56q.js → dist-DPnEBzju.js} +44 -45
- package/dist/cdn/chunks/{dist-CoM5yDHD.js → dist-Djmp37M0.js} +54 -55
- package/dist/cdn/chunks/{dist-Dj0pXI2B.js → dist-DsQS8bTi.js} +33 -34
- package/dist/cdn/chunks/{dist-CJ-hLN4o.js → dist-UpdpX10o.js} +88 -89
- package/dist/cdn/chunks/{dist-DizTxYTi.js → dist-cg8p9qPS.js} +17 -18
- package/dist/cdn/chunks/{dist-3C80SZN9.js → dist-s2b8iJ30.js} +82 -83
- package/dist/cdn/chunks/{divider-D8o0JPE2.js → divider-DeLH4QwC.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BX6UhFBl.js → document-tab-bar-bOkWFMdJ.js} +10 -10
- package/dist/cdn/chunks/{dropdown-afozwXVW.js → dropdown-C1NBctuB.js} +6 -6
- package/dist/cdn/chunks/{file-field-BKhUYcHf.js → file-field-DFjBl7rn.js} +16 -16
- package/dist/cdn/chunks/{floating-ui.dom-CB34tcZx.js → floating-ui.dom-DlsknQ4T.js} +3 -3
- package/dist/cdn/chunks/{form-actions-Ddg9vIVq.js → form-actions-DcsN5H-J.js} +2 -2
- package/dist/cdn/chunks/{form-associated-mixin-BMQQpMlL.js → form-associated-mixin-YG9BXK0j.js} +2 -2
- package/dist/cdn/chunks/{form-field-DDBYuAl_.js → form-field-BWtox2o0.js} +17 -8
- package/dist/cdn/chunks/{form-DnZIiX9b.js → form-mkjbjprY.js} +1 -1
- package/dist/cdn/chunks/{form-section-Co0TM35-.js → form-section-CLuotkhm.js} +3 -3
- package/dist/cdn/chunks/{full-bleed-section-DD8ibmsa.js → full-bleed-section-CZfvZFDs.js} +4 -4
- package/dist/cdn/chunks/{hero-BYrY2MZc.js → hero-C_x5gAKl.js} +5 -5
- package/dist/cdn/chunks/{icon-BzeHXcdi.js → icon-CeybqndL.js} +4 -4
- package/dist/cdn/chunks/{icon-button-BErQf42w.js → icon-button-BLe-iiU5.js} +12 -12
- package/dist/cdn/chunks/{icon-cell-DGIMXKxK.js → icon-cell-DUBctf2q.js} +8 -7
- package/dist/cdn/chunks/{identity-Cq-WnU6u.js → identity-C4FW2LCv.js} +10 -10
- package/dist/cdn/chunks/{if-defined-CuY6t6gH.js → if-defined-DwzUaXrb.js} +1 -1
- package/dist/cdn/chunks/{image-BjjyqV0V.js → image-7aQSrryL.js} +10 -10
- package/dist/cdn/chunks/{inline-dialog-Bk2G7f5r.js → inline-dialog-B9o9ckxL.js} +10 -10
- package/dist/cdn/chunks/{just-in-time-education-Dxh5DNCy.js → just-in-time-education-C-3THmVJ.js} +7 -7
- package/dist/cdn/chunks/{kanban-BvmtB9D9.js → kanban-BemPSLk8.js} +7 -7
- package/dist/cdn/chunks/{kanban-column-CJ2g7pgA.js → kanban-column-CYZjUBUd.js} +38 -37
- package/dist/cdn/chunks/{keyboard-shortcut-BV5DFQtT.js → keyboard-shortcut-BK35aEeR.js} +5 -5
- package/dist/cdn/chunks/{languages-DJjHEjGl.js → languages-CT6Im_c5.js} +3475 -1841
- package/dist/cdn/chunks/{link-BcukwT5Y.js → link-Lbw4Ut52.js} +7 -7
- package/dist/cdn/chunks/{link-group-Ci1q3uEd.js → link-group-B1XXP70E.js} +3 -3
- package/dist/cdn/chunks/{list-CFFHWUSC.js → list-D2vWEpYC.js} +11 -11
- package/dist/cdn/chunks/{list-item-Bg1NyOXd.js → list-item-Y0wOQqRa.js} +7 -7
- package/dist/cdn/chunks/{list-item-segment-DJ8pk08-.js → list-item-segment-BamNSRcL.js} +5 -5
- package/dist/cdn/chunks/{menu-BEjqhn1-.js → menu-Cvwt6mA5.js} +13 -13
- package/dist/cdn/chunks/{menu-bar-DkjXy-TE.js → menu-bar-D9Etcq_r.js} +7 -7
- package/dist/cdn/chunks/{menu-bar-item-3cJS29Ey.js → menu-bar-item-BUVqi3o-.js} +7 -7
- package/dist/cdn/chunks/{menu-divider-CYmEimsb.js → menu-divider-BqRMxjF3.js} +4 -4
- package/dist/cdn/chunks/{menu-group-ggwAcgis.js → menu-group-BSnRGQgm.js} +6 -6
- package/dist/cdn/chunks/{menu-item-BzH9H87h.js → menu-item-UQoejlK0.js} +6 -6
- package/dist/cdn/chunks/{menu.template-PG82-P20.js → menu.template-CewvJO-Y.js} +10 -7
- package/dist/cdn/chunks/{modal-dialog-Bu7ETELf.js → modal-dialog-C6XUoI95.js} +5 -5
- package/dist/cdn/chunks/{multi-line-text-field-CQTKNBN7.js → multi-line-text-field-4Vn5Nrjo.js} +7 -7
- package/dist/cdn/chunks/{navigation-split-view-elMoUjHh.js → navigation-split-view-BEwcAHWu.js} +5 -5
- package/dist/cdn/chunks/{nl.generated-Lu29XEF3.js → nl.generated-CrkPlg69.js} +1 -1
- package/dist/cdn/chunks/{notification-DCjXGfbY.js → notification-DxsARz6U.js} +8 -8
- package/dist/cdn/chunks/{number-field-BUQUcG--.js → number-field-wFK_taVU.js} +10 -10
- package/dist/cdn/chunks/{one-half-one-half-section-DiGkeUVr.js → one-half-one-half-section-CyedWMlH.js} +4 -4
- package/dist/cdn/chunks/{one-third-two-thirds-section-q_AP4qIJ.js → one-third-two-thirds-section-LRJlzoAZ.js} +4 -4
- package/dist/cdn/chunks/{one-time-code-field-BybS_l6h.js → one-time-code-field-BYQfRePV.js} +9 -9
- package/dist/cdn/chunks/{overflow-menu-Duey_XJs.js → overflow-menu-BdEHECvL.js} +1 -1
- package/dist/cdn/chunks/{page-BrIeWp1b.js → page-DpGgV58g.js} +7 -7
- package/dist/cdn/chunks/{page-footer-DPQg9Qbw.js → page-footer-DxaWwS8U.js} +6 -6
- package/dist/cdn/chunks/{page-section-mixin-B8FbeXaK.js → page-section-mixin-DigQhtVE.js} +4 -4
- package/dist/cdn/chunks/{pagination-CfLJwflH.js → pagination-Ch0EdxDX.js} +8 -8
- package/dist/cdn/chunks/{password-field-CmoopbNF.js → password-field-Dm8ah1v8.js} +10 -10
- package/dist/cdn/chunks/{popover-CPAR4N_a.js → popover-Bhr3Nbst.js} +9 -9
- package/dist/cdn/chunks/{progress-bar-vKGXvxfe.js → progress-bar-BBpNc1Wm.js} +9 -9
- package/dist/cdn/chunks/{progress-circle-dweisHzt.js → progress-circle-DfbawfeQ.js} +9 -9
- package/dist/cdn/chunks/{radio-button-DE1K49_2.js → radio-button-D_KTcIAN.js} +6 -6
- package/dist/cdn/chunks/{radio-button-field-DCrWiVoA.js → radio-button-field-H_NQqcZp.js} +8 -8
- package/dist/cdn/chunks/{radio-button-group-oLP_1cGy.js → radio-button-group-kbaWn4YY.js} +3 -3
- package/dist/cdn/chunks/{reflect-non-default-Bu3rpCvg.js → reflect-non-default-DUOcGZKf.js} +1 -1
- package/dist/cdn/chunks/{render-marked-BE3kBc1D.js → render-marked-DnJwRVpy.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-COCN6knt.js → reorder-handle-cell-BI4CugME.js} +5 -5
- package/dist/cdn/chunks/{reorder-handle-mixin-CG-KhmuT.js → reorder-handle-mixin-LPcbGhhD.js} +2 -2
- package/dist/cdn/chunks/{repeat-D69H_dsv.js → repeat-BBqtniIo.js} +2 -2
- package/dist/cdn/chunks/{rich-text-jEyIU58i.js → rich-text-xlU1NiF6.js} +4 -4
- package/dist/cdn/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
- package/dist/cdn/chunks/{row-header-mixin-BejxhOCs.js → row-header-mixin-CyqWb67i.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-Cae9xqXr.js → scroll-fade-CTn6QJuM.js} +2 -2
- package/dist/cdn/chunks/{search-field-B8woxFh-.js → search-field-OpYujGwS.js} +11 -11
- package/dist/cdn/chunks/{segmented-control-DbOi6Wk6.js → segmented-control-8NtY_sU6.js} +8 -8
- package/dist/cdn/chunks/{shadow-resets-CNmJbdJw.js → shadow-resets-CtbMaZlz.js} +2 -2
- package/dist/cdn/chunks/{sheet-bK663_K4.js → sheet-C_biEFcb.js} +4 -4
- package/dist/cdn/chunks/{shell-DLu1fHOH.js → shell-OXRr3zFb.js} +4 -4
- package/dist/cdn/chunks/{side-by-side-split-view-vNhUmTiE.js → side-by-side-split-view-DVXrHULp.js} +6 -6
- package/dist/cdn/chunks/{sidebar-section-CoE5F_h5.js → sidebar-section-DYa_6OWF.js} +9 -9
- package/dist/cdn/chunks/{simple-section-1v7a_ZgI.js → simple-section-CGUSyUAl.js} +4 -4
- package/dist/cdn/chunks/{skip-link-C6B6mMkA.js → skip-link-Dl2ouKZk.js} +6 -6
- package/dist/cdn/chunks/{slider-BT-q6SP2.js → slider-Do-LOJNR.js} +10 -10
- package/dist/cdn/chunks/{spacer-DlFn3NtV.js → spacer-BgHrBz2X.js} +4 -4
- package/dist/cdn/chunks/{spacer-cell-Dy_twSDQ.js → spacer-cell-CiQ8Ufpp.js} +6 -6
- package/dist/cdn/chunks/{split-button-URHM5eTx.js → split-button-Sd_-qYSD.js} +8 -8
- package/dist/cdn/chunks/{split-view-divider-DeLyeDBx.js → split-view-divider-D1TzV2VR.js} +4 -4
- package/dist/cdn/chunks/{stacked-split-view-D0kiQJmL.js → stacked-split-view-Ctlqwe0S.js} +6 -6
- package/dist/cdn/chunks/{static-html-CAKb1-Ht.js → static-html-C8oeEnJZ.js} +1 -1
- package/dist/cdn/chunks/{status-bar-Bov-LrPy.js → status-bar-u2SmYnKZ.js} +14 -6
- package/dist/cdn/chunks/{step-bar-BLtsl_S_.js → step-bar-BA852p33.js} +7 -7
- package/dist/cdn/chunks/{step-cell-cxM7vhtH.js → step-cell-DF9xadrF.js} +6 -6
- package/dist/cdn/chunks/{stepper-DeIcLT7G.js → stepper-dRpkKCse.js} +9 -9
- package/dist/cdn/chunks/{style-map-CQX4CmTz.js → style-map-eCE91iAi.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-A7AU6Agu.js → swatch-picker-Bjv3Yyk1.js} +7 -7
- package/dist/cdn/chunks/{switch-D0UPsKws.js → switch-DJBzXPfD.js} +7 -7
- package/dist/cdn/chunks/{switch-field-D63lc5C0.js → switch-field-uMAxSz6L.js} +8 -8
- package/dist/cdn/chunks/{tab-bar-CzGSRfKd.js → tab-bar-DLHqLs6Y.js} +21 -17
- package/dist/cdn/chunks/tab-bar.i18n-9sChoP56.js +6 -0
- package/dist/cdn/chunks/{table-DfunY2Dn.js → table-BLvkO5AG.js} +6 -6
- package/dist/cdn/chunks/{tag-DSWjjDBo.js → tag-DYhl2u2I.js} +6 -6
- package/dist/cdn/chunks/{term-Bk9cdlCz.js → term-D79d-lz3.js} +12 -12
- package/dist/cdn/chunks/{text-cell-DUOJAXZo.js → text-cell-BbVoThab.js} +11 -11
- package/dist/cdn/chunks/{text-editor-BIbYF0AB.js → text-editor-dZhei5Gg.js} +13 -13
- package/dist/cdn/chunks/{text-field-CAnQNcXB.js → text-field-DmKGVJvm.js} +7 -7
- package/dist/cdn/chunks/{text-CDBiVulh.js → text-kRZ3cyId.js} +5 -5
- package/dist/cdn/chunks/{text-wrap-COu7AY91.js → text-wrap-C6QQbSuj.js} +2 -2
- package/dist/cdn/chunks/{time-field-xriXgFMl.js → time-field-BXVxhV80.js} +15 -15
- package/dist/cdn/chunks/{time-picker-D3_KbYUW.js → time-picker-BjJfPmir.js} +9 -9
- package/dist/cdn/chunks/{title-HPn4c-s5.js → title-DsOLSMHj.js} +6 -6
- package/dist/cdn/chunks/{title-cell-BXMZkbXf.js → title-cell-DXcur6Eb.js} +10 -10
- package/dist/cdn/chunks/{toggle-button-DY22KEwY.js → toggle-button-7fasRpr1.js} +10 -10
- package/dist/cdn/chunks/{toggle-button-group-DsjZofEG.js → toggle-button-group-B9No_FIj.js} +3 -3
- package/dist/cdn/chunks/{token-DwT2i71b.js → token-BYCl-dDP.js} +7 -7
- package/dist/cdn/chunks/{token-field-CQxSARGi.js → token-field-C9fGsIxB.js} +11 -11
- package/dist/cdn/chunks/{toolbar-CaDvhCqm.js → toolbar-CBs6yMNd.js} +10 -10
- package/dist/cdn/chunks/{toolbar-item-BDl4ys-w.js → toolbar-item-DYVo5I60.js} +5 -8
- package/dist/cdn/chunks/{toolbar-title-yGR8Hzhp.js → toolbar-title-Bu5PbFPP.js} +5 -5
- package/dist/cdn/chunks/{toolbar.styles-DlyfZkRq.js → toolbar.styles-BUS-XIdr.js} +4 -3
- package/dist/cdn/chunks/{tooltip-BDiYghAz.js → tooltip-yXDfEbZ1.js} +8 -8
- package/dist/cdn/chunks/{top-navigation-bar-ibsjezN_.js → top-navigation-bar-DW6xYKY0.js} +19 -19
- package/dist/cdn/chunks/{top-title-bar-BKdwEZfj.js → top-title-bar-Fk4jzs8I.js} +12 -9
- package/dist/cdn/chunks/{two-thirds-one-third-section-DmumCsGo.js → two-thirds-one-third-section-B9a1YYXm.js} +4 -4
- package/dist/cdn/chunks/{validation-list-CXcJfvOJ.js → validation-list-BAyP6Ccd.js} +5 -5
- package/dist/cdn/chunks/{visibility-mixin-C7s59UlL.js → visibility-mixin-9Nr_J68Z.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-CMzKHcSc.js → visually-hidden-BN6jVrRE.js} +2 -2
- package/dist/cdn/chunks/{window-CSNx5wt1.js → window-D4rLzdHo.js} +5 -5
- package/dist/cdn/chunks/{with-translations-0oyNXfdD.js → with-translations-RkK-Bq8M.js} +3 -3
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +4 -1
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar-item.js +1 -7
- package/dist/components/actions/toolbar/toolbar-item.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +1 -0
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/content/identity/identity.d.ts +6 -0
- package/dist/components/content/identity/identity.d.ts.map +1 -1
- package/dist/components/content/identity/identity.js +6 -0
- package/dist/components/content/identity/identity.js.map +1 -1
- package/dist/components/content/identity/identity.styles.js +2 -2
- package/dist/components/content/rich-text/rich-text.d.ts +8 -8
- package/dist/components/content/rich-text/rich-text.js +8 -8
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +9 -0
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -0
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +2 -1
- package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.d.ts +8 -0
- package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js +1 -0
- package/dist/components/navigation/tab-bar/tab-bar.i18n.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.js +16 -0
- package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +3 -2
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +6 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +12 -6
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.js +28 -7
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -1
- package/dist/css/rich-text.css +5 -0
- package/dist/nldd.min.js +1711 -1696
- package/dist/translations/en-US.d.ts.map +1 -1
- package/dist/translations/en-US.js +1 -0
- package/dist/translations/en-US.js.map +1 -1
- package/dist/translations/fy.d.ts.map +1 -1
- package/dist/translations/fy.js +1 -0
- package/dist/translations/fy.js.map +1 -1
- package/dist/translations/nl.generated.d.ts +1 -0
- package/dist/translations/nl.generated.d.ts.map +1 -1
- package/dist/translations/pap-AW.d.ts.map +1 -1
- package/dist/translations/pap-AW.js +1 -0
- package/dist/translations/pap-AW.js.map +1 -1
- package/dist/translations/pap-CW.d.ts.map +1 -1
- package/dist/translations/pap-CW.js +1 -0
- package/dist/translations/pap-CW.js.map +1 -1
- package/dist/types/react.d.ts +4 -4
- package/dist/types/vue.d.ts +4 -4
- package/dist/utilities/dev-rules.generated.js +1 -1
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/reflect-non-default.d.ts +2 -1
- package/dist/utilities/reflect-non-default.d.ts.map +1 -1
- package/dist/utilities/reflect-non-default.js +3 -2
- package/dist/utilities/reflect-non-default.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +6 -6
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +0 -1583
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +0 -3
|
@@ -1,1583 +0,0 @@
|
|
|
1
|
-
// node_modules/@lezer/common/dist/index.js
|
|
2
|
-
var e = 1024, t = 0, n = class {
|
|
3
|
-
constructor(e, t) {
|
|
4
|
-
this.from = e, this.to = t;
|
|
5
|
-
}
|
|
6
|
-
}, r = class {
|
|
7
|
-
constructor(e = {}) {
|
|
8
|
-
this.id = t++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
9
|
-
throw Error("This node type doesn't define a deserialize function");
|
|
10
|
-
}), this.combine = e.combine || null;
|
|
11
|
-
}
|
|
12
|
-
add(e) {
|
|
13
|
-
if (this.perNode) throw RangeError("Can't add per-node props to node types");
|
|
14
|
-
return typeof e != "function" && (e = o.match(e)), (t) => {
|
|
15
|
-
let n = e(t);
|
|
16
|
-
return n === void 0 ? null : [this, n];
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
r.closedBy = new r({ deserialize: (e) => e.split(" ") }), r.openedBy = new r({ deserialize: (e) => e.split(" ") }), r.group = new r({ deserialize: (e) => e.split(" ") }), r.isolate = new r({ deserialize: (e) => {
|
|
21
|
-
if (e && e != "rtl" && e != "ltr" && e != "auto") throw RangeError("Invalid value for isolate: " + e);
|
|
22
|
-
return e || "auto";
|
|
23
|
-
} }), r.contextHash = new r({ perNode: !0 }), r.lookAhead = new r({ perNode: !0 }), r.mounted = new r({ perNode: !0 });
|
|
24
|
-
var i = class {
|
|
25
|
-
constructor(e, t, n, r = !1) {
|
|
26
|
-
this.tree = e, this.overlay = t, this.parser = n, this.bracketed = r;
|
|
27
|
-
}
|
|
28
|
-
static get(e) {
|
|
29
|
-
return e && e.props && e.props[r.mounted.id];
|
|
30
|
-
}
|
|
31
|
-
}, a = Object.create(null), o = class e {
|
|
32
|
-
constructor(e, t, n, r = 0) {
|
|
33
|
-
this.name = e, this.props = t, this.id = n, this.flags = r;
|
|
34
|
-
}
|
|
35
|
-
static define(t) {
|
|
36
|
-
let n = t.props && t.props.length ? Object.create(null) : a, r = +!!t.top | (t.skipped ? 2 : 0) | (t.error ? 4 : 0) | (t.name == null ? 8 : 0), i = new e(t.name || "", n, t.id, r);
|
|
37
|
-
if (t.props) {
|
|
38
|
-
for (let e of t.props) if (Array.isArray(e) || (e = e(i)), e) {
|
|
39
|
-
if (e[0].perNode) throw RangeError("Can't store a per-node prop on a node type");
|
|
40
|
-
n[e[0].id] = e[1];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return i;
|
|
44
|
-
}
|
|
45
|
-
prop(e) {
|
|
46
|
-
return this.props[e.id];
|
|
47
|
-
}
|
|
48
|
-
get isTop() {
|
|
49
|
-
return (this.flags & 1) > 0;
|
|
50
|
-
}
|
|
51
|
-
get isSkipped() {
|
|
52
|
-
return (this.flags & 2) > 0;
|
|
53
|
-
}
|
|
54
|
-
get isError() {
|
|
55
|
-
return (this.flags & 4) > 0;
|
|
56
|
-
}
|
|
57
|
-
get isAnonymous() {
|
|
58
|
-
return (this.flags & 8) > 0;
|
|
59
|
-
}
|
|
60
|
-
is(e) {
|
|
61
|
-
if (typeof e == "string") {
|
|
62
|
-
if (this.name == e) return !0;
|
|
63
|
-
let t = this.prop(r.group);
|
|
64
|
-
return t ? t.indexOf(e) > -1 : !1;
|
|
65
|
-
}
|
|
66
|
-
return this.id == e;
|
|
67
|
-
}
|
|
68
|
-
static match(e) {
|
|
69
|
-
let t = Object.create(null);
|
|
70
|
-
for (let n in e) for (let r of n.split(" ")) t[r] = e[n];
|
|
71
|
-
return (e) => {
|
|
72
|
-
for (let n = e.prop(r.group), i = -1; i < (n ? n.length : 0); i++) {
|
|
73
|
-
let r = t[i < 0 ? e.name : n[i]];
|
|
74
|
-
if (r) return r;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
o.none = new o("", Object.create(null), 0, 8);
|
|
80
|
-
var s = class e {
|
|
81
|
-
constructor(e) {
|
|
82
|
-
this.types = e;
|
|
83
|
-
for (let t = 0; t < e.length; t++) if (e[t].id != t) throw RangeError("Node type ids should correspond to array positions when creating a node set");
|
|
84
|
-
}
|
|
85
|
-
extend(...t) {
|
|
86
|
-
let n = [];
|
|
87
|
-
for (let e of this.types) {
|
|
88
|
-
let r = null;
|
|
89
|
-
for (let n of t) {
|
|
90
|
-
let t = n(e);
|
|
91
|
-
if (t) {
|
|
92
|
-
r || (r = Object.assign({}, e.props));
|
|
93
|
-
let n = t[1], i = t[0];
|
|
94
|
-
i.combine && i.id in r && (n = i.combine(r[i.id], n)), r[i.id] = n;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
n.push(r ? new o(e.name, r, e.id, e.flags) : e);
|
|
98
|
-
}
|
|
99
|
-
return new e(n);
|
|
100
|
-
}
|
|
101
|
-
}, c = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u;
|
|
102
|
-
(function(e) {
|
|
103
|
-
e[e.ExcludeBuffers = 1] = "ExcludeBuffers", e[e.IncludeAnonymous = 2] = "IncludeAnonymous", e[e.IgnoreMounts = 4] = "IgnoreMounts", e[e.IgnoreOverlays = 8] = "IgnoreOverlays", e[e.EnterBracketed = 16] = "EnterBracketed";
|
|
104
|
-
})(u || (u = {}));
|
|
105
|
-
var d = class e {
|
|
106
|
-
constructor(e, t, n, r, i) {
|
|
107
|
-
if (this.type = e, this.children = t, this.positions = n, this.length = r, this.props = null, i && i.length) {
|
|
108
|
-
this.props = Object.create(null);
|
|
109
|
-
for (let [e, t] of i) this.props[typeof e == "number" ? e : e.id] = t;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
toString() {
|
|
113
|
-
let e = i.get(this);
|
|
114
|
-
if (e && !e.overlay) return e.tree.toString();
|
|
115
|
-
let t = "";
|
|
116
|
-
for (let e of this.children) {
|
|
117
|
-
let n = e.toString();
|
|
118
|
-
n && (t && (t += ","), t += n);
|
|
119
|
-
}
|
|
120
|
-
return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
|
|
121
|
-
}
|
|
122
|
-
cursor(e = 0) {
|
|
123
|
-
return new T(this.topNode, e);
|
|
124
|
-
}
|
|
125
|
-
cursorAt(e, t = 0, n = 0) {
|
|
126
|
-
let r = new T(c.get(this) || this.topNode);
|
|
127
|
-
return r.moveTo(e, t), c.set(this, r._tree), r;
|
|
128
|
-
}
|
|
129
|
-
get topNode() {
|
|
130
|
-
return new _(this, 0, 0, null);
|
|
131
|
-
}
|
|
132
|
-
resolve(e, t = 0) {
|
|
133
|
-
let n = h(c.get(this) || this.topNode, e, t, !1);
|
|
134
|
-
return c.set(this, n), n;
|
|
135
|
-
}
|
|
136
|
-
resolveInner(e, t = 0) {
|
|
137
|
-
let n = h(l.get(this) || this.topNode, e, t, !0);
|
|
138
|
-
return l.set(this, n), n;
|
|
139
|
-
}
|
|
140
|
-
resolveStack(e, t = 0) {
|
|
141
|
-
return w(this, e, t);
|
|
142
|
-
}
|
|
143
|
-
iterate(e) {
|
|
144
|
-
let { enter: t, leave: n, from: r = 0, to: i = this.length } = e, a = e.mode || 0, o = (a & u.IncludeAnonymous) > 0;
|
|
145
|
-
for (let e = this.cursor(a | u.IncludeAnonymous);;) {
|
|
146
|
-
let a = !1;
|
|
147
|
-
if (e.from <= i && e.to >= r && (!o && e.type.isAnonymous || t(e) !== !1)) {
|
|
148
|
-
if (e.firstChild()) continue;
|
|
149
|
-
a = !0;
|
|
150
|
-
}
|
|
151
|
-
for (; a && n && (o || !e.type.isAnonymous) && n(e), !e.nextSibling();) {
|
|
152
|
-
if (!e.parent()) return;
|
|
153
|
-
a = !0;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
prop(e) {
|
|
158
|
-
return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
|
|
159
|
-
}
|
|
160
|
-
get propValues() {
|
|
161
|
-
let e = [];
|
|
162
|
-
if (this.props) for (let t in this.props) e.push([+t, this.props[t]]);
|
|
163
|
-
return e;
|
|
164
|
-
}
|
|
165
|
-
balance(t = {}) {
|
|
166
|
-
return this.children.length <= 8 ? this : A(o.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new e(this.type, t, n, r, this.propValues), t.makeTree || ((t, n, r) => new e(o.none, t, n, r)));
|
|
167
|
-
}
|
|
168
|
-
static build(e) {
|
|
169
|
-
return D(e);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
d.empty = new d(o.none, [], [], 0);
|
|
173
|
-
var f = class e {
|
|
174
|
-
constructor(e, t) {
|
|
175
|
-
this.buffer = e, this.index = t;
|
|
176
|
-
}
|
|
177
|
-
get id() {
|
|
178
|
-
return this.buffer[this.index - 4];
|
|
179
|
-
}
|
|
180
|
-
get start() {
|
|
181
|
-
return this.buffer[this.index - 3];
|
|
182
|
-
}
|
|
183
|
-
get end() {
|
|
184
|
-
return this.buffer[this.index - 2];
|
|
185
|
-
}
|
|
186
|
-
get size() {
|
|
187
|
-
return this.buffer[this.index - 1];
|
|
188
|
-
}
|
|
189
|
-
get pos() {
|
|
190
|
-
return this.index;
|
|
191
|
-
}
|
|
192
|
-
next() {
|
|
193
|
-
this.index -= 4;
|
|
194
|
-
}
|
|
195
|
-
fork() {
|
|
196
|
-
return new e(this.buffer, this.index);
|
|
197
|
-
}
|
|
198
|
-
}, p = class e {
|
|
199
|
-
constructor(e, t, n) {
|
|
200
|
-
this.buffer = e, this.length = t, this.set = n;
|
|
201
|
-
}
|
|
202
|
-
get type() {
|
|
203
|
-
return o.none;
|
|
204
|
-
}
|
|
205
|
-
toString() {
|
|
206
|
-
let e = [];
|
|
207
|
-
for (let t = 0; t < this.buffer.length;) e.push(this.childString(t)), t = this.buffer[t + 3];
|
|
208
|
-
return e.join(",");
|
|
209
|
-
}
|
|
210
|
-
childString(e) {
|
|
211
|
-
let t = this.buffer[e], n = this.buffer[e + 3], r = this.set.types[t], i = r.name;
|
|
212
|
-
if (/\W/.test(i) && !r.isError && (i = JSON.stringify(i)), e += 4, n == e) return i;
|
|
213
|
-
let a = [];
|
|
214
|
-
for (; e < n;) a.push(this.childString(e)), e = this.buffer[e + 3];
|
|
215
|
-
return i + "(" + a.join(",") + ")";
|
|
216
|
-
}
|
|
217
|
-
findChild(e, t, n, r, i) {
|
|
218
|
-
let { buffer: a } = this, o = -1;
|
|
219
|
-
for (let s = e; s != t && !(m(i, r, a[s + 1], a[s + 2]) && (o = s, n > 0)); s = a[s + 3]);
|
|
220
|
-
return o;
|
|
221
|
-
}
|
|
222
|
-
slice(t, n, r) {
|
|
223
|
-
let i = this.buffer, a = new Uint16Array(n - t), o = 0;
|
|
224
|
-
for (let e = t, s = 0; e < n;) {
|
|
225
|
-
a[s++] = i[e++], a[s++] = i[e++] - r;
|
|
226
|
-
let n = a[s++] = i[e++] - r;
|
|
227
|
-
a[s++] = i[e++] - t, o = Math.max(o, n);
|
|
228
|
-
}
|
|
229
|
-
return new e(a, o, this.set);
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
function m(e, t, n, r) {
|
|
233
|
-
switch (e) {
|
|
234
|
-
case -2: return n < t;
|
|
235
|
-
case -1: return r >= t && n < t;
|
|
236
|
-
case 0: return n < t && r > t;
|
|
237
|
-
case 1: return n <= t && r > t;
|
|
238
|
-
case 2: return r > t;
|
|
239
|
-
case 4: return !0;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
function h(e, t, n, r) {
|
|
243
|
-
for (; e.from == e.to || (n < 1 ? e.from >= t : e.from > t) || (n > -1 ? e.to <= t : e.to < t);) {
|
|
244
|
-
let t = !r && e instanceof _ && e.index < 0 ? null : e.parent;
|
|
245
|
-
if (!t) return e;
|
|
246
|
-
e = t;
|
|
247
|
-
}
|
|
248
|
-
let i = r ? 0 : u.IgnoreOverlays;
|
|
249
|
-
if (r) for (let r = e, a = r.parent; a; r = a, a = r.parent) r instanceof _ && r.index < 0 && a.enter(t, n, i)?.from != r.from && (e = a);
|
|
250
|
-
for (;;) {
|
|
251
|
-
let r = e.enter(t, n, i);
|
|
252
|
-
if (!r) return e;
|
|
253
|
-
e = r;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
var g = class {
|
|
257
|
-
cursor(e = 0) {
|
|
258
|
-
return new T(this, e);
|
|
259
|
-
}
|
|
260
|
-
getChild(e, t = null, n = null) {
|
|
261
|
-
let r = v(this, e, t, n);
|
|
262
|
-
return r.length ? r[0] : null;
|
|
263
|
-
}
|
|
264
|
-
getChildren(e, t = null, n = null) {
|
|
265
|
-
return v(this, e, t, n);
|
|
266
|
-
}
|
|
267
|
-
resolve(e, t = 0) {
|
|
268
|
-
return h(this, e, t, !1);
|
|
269
|
-
}
|
|
270
|
-
resolveInner(e, t = 0) {
|
|
271
|
-
return h(this, e, t, !0);
|
|
272
|
-
}
|
|
273
|
-
matchContext(e) {
|
|
274
|
-
return y(this.parent, e);
|
|
275
|
-
}
|
|
276
|
-
enterUnfinishedNodesBefore(e) {
|
|
277
|
-
let t = this.childBefore(e), n = this;
|
|
278
|
-
for (; t;) {
|
|
279
|
-
let e = t.lastChild;
|
|
280
|
-
if (!e || e.to != t.to) break;
|
|
281
|
-
e.type.isError && e.from == e.to ? (n = t, t = e.prevSibling) : t = e;
|
|
282
|
-
}
|
|
283
|
-
return n;
|
|
284
|
-
}
|
|
285
|
-
get node() {
|
|
286
|
-
return this;
|
|
287
|
-
}
|
|
288
|
-
get next() {
|
|
289
|
-
return this.parent;
|
|
290
|
-
}
|
|
291
|
-
}, _ = class e extends g {
|
|
292
|
-
constructor(e, t, n, r) {
|
|
293
|
-
super(), this._tree = e, this.from = t, this.index = n, this._parent = r;
|
|
294
|
-
}
|
|
295
|
-
get type() {
|
|
296
|
-
return this._tree.type;
|
|
297
|
-
}
|
|
298
|
-
get name() {
|
|
299
|
-
return this._tree.type.name;
|
|
300
|
-
}
|
|
301
|
-
get to() {
|
|
302
|
-
return this.from + this._tree.length;
|
|
303
|
-
}
|
|
304
|
-
nextChild(t, n, r, a, o = 0) {
|
|
305
|
-
for (let s = this;;) {
|
|
306
|
-
for (let { children: c, positions: l } = s._tree, f = n > 0 ? c.length : -1; t != f; t += n) {
|
|
307
|
-
let f = c[t], h = l[t] + s.from, g;
|
|
308
|
-
if (o & u.EnterBracketed && f instanceof d && (g = i.get(f)) && !g.overlay && g.bracketed && r >= h && r <= h + f.length || m(a, r, h, h + f.length)) {
|
|
309
|
-
if (f instanceof p) {
|
|
310
|
-
if (o & u.ExcludeBuffers) continue;
|
|
311
|
-
let e = f.findChild(0, f.buffer.length, n, r - h, a);
|
|
312
|
-
if (e > -1) return new x(new b(s, f, t, h), null, e);
|
|
313
|
-
} else if (o & u.IncludeAnonymous || !f.type.isAnonymous || E(f)) {
|
|
314
|
-
let c;
|
|
315
|
-
if (!(o & u.IgnoreMounts) && (c = i.get(f)) && !c.overlay) return new e(c.tree, h, t, s);
|
|
316
|
-
let l = new e(f, h, t, s);
|
|
317
|
-
return o & u.IncludeAnonymous || !l.type.isAnonymous ? l : l.nextChild(n < 0 ? f.children.length - 1 : 0, n, r, a, o);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
if (o & u.IncludeAnonymous || !s.type.isAnonymous || (t = s.index >= 0 ? s.index + n : n < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s)) return null;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
get firstChild() {
|
|
325
|
-
return this.nextChild(0, 1, 0, 4);
|
|
326
|
-
}
|
|
327
|
-
get lastChild() {
|
|
328
|
-
return this.nextChild(this._tree.children.length - 1, -1, 0, 4);
|
|
329
|
-
}
|
|
330
|
-
childAfter(e) {
|
|
331
|
-
return this.nextChild(0, 1, e, 2);
|
|
332
|
-
}
|
|
333
|
-
childBefore(e) {
|
|
334
|
-
return this.nextChild(this._tree.children.length - 1, -1, e, -2);
|
|
335
|
-
}
|
|
336
|
-
prop(e) {
|
|
337
|
-
return this._tree.prop(e);
|
|
338
|
-
}
|
|
339
|
-
enter(t, n, r = 0) {
|
|
340
|
-
let a;
|
|
341
|
-
if (!(r & u.IgnoreOverlays) && (a = i.get(this._tree)) && a.overlay) {
|
|
342
|
-
let i = t - this.from, o = r & u.EnterBracketed && a.bracketed;
|
|
343
|
-
for (let { from: t, to: r } of a.overlay) if ((n > 0 || o ? t <= i : t < i) && (n < 0 || o ? r >= i : r > i)) return new e(a.tree, a.overlay[0].from + this.from, -1, this);
|
|
344
|
-
}
|
|
345
|
-
return this.nextChild(0, 1, t, n, r);
|
|
346
|
-
}
|
|
347
|
-
nextSignificantParent() {
|
|
348
|
-
let e = this;
|
|
349
|
-
for (; e.type.isAnonymous && e._parent;) e = e._parent;
|
|
350
|
-
return e;
|
|
351
|
-
}
|
|
352
|
-
get parent() {
|
|
353
|
-
return this._parent ? this._parent.nextSignificantParent() : null;
|
|
354
|
-
}
|
|
355
|
-
get nextSibling() {
|
|
356
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4) : null;
|
|
357
|
-
}
|
|
358
|
-
get prevSibling() {
|
|
359
|
-
return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4) : null;
|
|
360
|
-
}
|
|
361
|
-
get tree() {
|
|
362
|
-
return this._tree;
|
|
363
|
-
}
|
|
364
|
-
toTree() {
|
|
365
|
-
return this._tree;
|
|
366
|
-
}
|
|
367
|
-
toString() {
|
|
368
|
-
return this._tree.toString();
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
function v(e, t, n, r) {
|
|
372
|
-
let i = e.cursor(), a = [];
|
|
373
|
-
if (!i.firstChild()) return a;
|
|
374
|
-
if (n != null) {
|
|
375
|
-
for (let e = !1; !e;) if (e = i.type.is(n), !i.nextSibling()) return a;
|
|
376
|
-
}
|
|
377
|
-
for (;;) {
|
|
378
|
-
if (r != null && i.type.is(r)) return a;
|
|
379
|
-
if (i.type.is(t) && a.push(i.node), !i.nextSibling()) return r == null ? a : [];
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function y(e, t, n = t.length - 1) {
|
|
383
|
-
for (let r = e; n >= 0; r = r.parent) {
|
|
384
|
-
if (!r) return !1;
|
|
385
|
-
if (!r.type.isAnonymous) {
|
|
386
|
-
if (t[n] && t[n] != r.name) return !1;
|
|
387
|
-
n--;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return !0;
|
|
391
|
-
}
|
|
392
|
-
var b = class {
|
|
393
|
-
constructor(e, t, n, r) {
|
|
394
|
-
this.parent = e, this.buffer = t, this.index = n, this.start = r;
|
|
395
|
-
}
|
|
396
|
-
}, x = class e extends g {
|
|
397
|
-
get name() {
|
|
398
|
-
return this.type.name;
|
|
399
|
-
}
|
|
400
|
-
get from() {
|
|
401
|
-
return this.context.start + this.context.buffer.buffer[this.index + 1];
|
|
402
|
-
}
|
|
403
|
-
get to() {
|
|
404
|
-
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
405
|
-
}
|
|
406
|
-
constructor(e, t, n) {
|
|
407
|
-
super(), this.context = e, this._parent = t, this.index = n, this.type = e.buffer.set.types[e.buffer.buffer[n]];
|
|
408
|
-
}
|
|
409
|
-
child(t, n, r) {
|
|
410
|
-
let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], t, n - this.context.start, r);
|
|
411
|
-
return a < 0 ? null : new e(this.context, this, a);
|
|
412
|
-
}
|
|
413
|
-
get firstChild() {
|
|
414
|
-
return this.child(1, 0, 4);
|
|
415
|
-
}
|
|
416
|
-
get lastChild() {
|
|
417
|
-
return this.child(-1, 0, 4);
|
|
418
|
-
}
|
|
419
|
-
childAfter(e) {
|
|
420
|
-
return this.child(1, e, 2);
|
|
421
|
-
}
|
|
422
|
-
childBefore(e) {
|
|
423
|
-
return this.child(-1, e, -2);
|
|
424
|
-
}
|
|
425
|
-
prop(e) {
|
|
426
|
-
return this.type.prop(e);
|
|
427
|
-
}
|
|
428
|
-
enter(t, n, r = 0) {
|
|
429
|
-
if (r & u.ExcludeBuffers) return null;
|
|
430
|
-
let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], n > 0 ? 1 : -1, t - this.context.start, n);
|
|
431
|
-
return a < 0 ? null : new e(this.context, this, a);
|
|
432
|
-
}
|
|
433
|
-
get parent() {
|
|
434
|
-
return this._parent || this.context.parent.nextSignificantParent();
|
|
435
|
-
}
|
|
436
|
-
externalSibling(e) {
|
|
437
|
-
return this._parent ? null : this.context.parent.nextChild(this.context.index + e, e, 0, 4);
|
|
438
|
-
}
|
|
439
|
-
get nextSibling() {
|
|
440
|
-
let { buffer: t } = this.context, n = t.buffer[this.index + 3];
|
|
441
|
-
return n < (this._parent ? t.buffer[this._parent.index + 3] : t.buffer.length) ? new e(this.context, this._parent, n) : this.externalSibling(1);
|
|
442
|
-
}
|
|
443
|
-
get prevSibling() {
|
|
444
|
-
let { buffer: t } = this.context, n = this._parent ? this._parent.index + 4 : 0;
|
|
445
|
-
return this.index == n ? this.externalSibling(-1) : new e(this.context, this._parent, t.findChild(n, this.index, -1, 0, 4));
|
|
446
|
-
}
|
|
447
|
-
get tree() {
|
|
448
|
-
return null;
|
|
449
|
-
}
|
|
450
|
-
toTree() {
|
|
451
|
-
let e = [], t = [], { buffer: n } = this.context, r = this.index + 4, i = n.buffer[this.index + 3];
|
|
452
|
-
if (i > r) {
|
|
453
|
-
let a = n.buffer[this.index + 1];
|
|
454
|
-
e.push(n.slice(r, i, a)), t.push(0);
|
|
455
|
-
}
|
|
456
|
-
return new d(this.type, e, t, this.to - this.from);
|
|
457
|
-
}
|
|
458
|
-
toString() {
|
|
459
|
-
return this.context.buffer.childString(this.index);
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
function S(e) {
|
|
463
|
-
if (!e.length) return null;
|
|
464
|
-
let t = 0, n = e[0];
|
|
465
|
-
for (let r = 1; r < e.length; r++) {
|
|
466
|
-
let i = e[r];
|
|
467
|
-
(i.from > n.from || i.to < n.to) && (n = i, t = r);
|
|
468
|
-
}
|
|
469
|
-
let r = n instanceof _ && n.index < 0 ? null : n.parent, i = e.slice();
|
|
470
|
-
return r ? i[t] = r : i.splice(t, 1), new C(i, n);
|
|
471
|
-
}
|
|
472
|
-
var C = class {
|
|
473
|
-
constructor(e, t) {
|
|
474
|
-
this.heads = e, this.node = t;
|
|
475
|
-
}
|
|
476
|
-
get next() {
|
|
477
|
-
return S(this.heads);
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
function w(e, t, n) {
|
|
481
|
-
let r = e.resolveInner(t, n), a = null;
|
|
482
|
-
for (let e = r instanceof _ ? r : r.context.parent; e; e = e.parent) if (e.index < 0) {
|
|
483
|
-
let i = e.parent;
|
|
484
|
-
(a || (a = [r])).push(i.resolve(t, n)), e = i;
|
|
485
|
-
} else {
|
|
486
|
-
let o = i.get(e.tree);
|
|
487
|
-
if (o && o.overlay && o.overlay[0].from <= t && o.overlay[o.overlay.length - 1].to >= t) {
|
|
488
|
-
let i = new _(o.tree, o.overlay[0].from + e.from, -1, e);
|
|
489
|
-
(a || (a = [r])).push(h(i, t, n, !1));
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
return a ? S(a) : r;
|
|
493
|
-
}
|
|
494
|
-
var T = class {
|
|
495
|
-
get name() {
|
|
496
|
-
return this.type.name;
|
|
497
|
-
}
|
|
498
|
-
constructor(e, t = 0) {
|
|
499
|
-
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~u.EnterBracketed, e instanceof _) this.yieldNode(e);
|
|
500
|
-
else {
|
|
501
|
-
this._tree = e.context.parent, this.buffer = e.context;
|
|
502
|
-
for (let t = e._parent; t; t = t._parent) this.stack.unshift(t.index);
|
|
503
|
-
this.bufferNode = e, this.yieldBuf(e.index);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
yieldNode(e) {
|
|
507
|
-
return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
|
|
508
|
-
}
|
|
509
|
-
yieldBuf(e, t) {
|
|
510
|
-
this.index = e;
|
|
511
|
-
let { start: n, buffer: r } = this.buffer;
|
|
512
|
-
return this.type = t || r.set.types[r.buffer[e]], this.from = n + r.buffer[e + 1], this.to = n + r.buffer[e + 2], !0;
|
|
513
|
-
}
|
|
514
|
-
yield(e) {
|
|
515
|
-
return e ? e instanceof _ ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
|
|
516
|
-
}
|
|
517
|
-
toString() {
|
|
518
|
-
return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
|
|
519
|
-
}
|
|
520
|
-
enterChild(e, t, n) {
|
|
521
|
-
if (!this.buffer) return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, n, this.mode));
|
|
522
|
-
let { buffer: r } = this.buffer, i = r.findChild(this.index + 4, r.buffer[this.index + 3], e, t - this.buffer.start, n);
|
|
523
|
-
return i < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(i));
|
|
524
|
-
}
|
|
525
|
-
firstChild() {
|
|
526
|
-
return this.enterChild(1, 0, 4);
|
|
527
|
-
}
|
|
528
|
-
lastChild() {
|
|
529
|
-
return this.enterChild(-1, 0, 4);
|
|
530
|
-
}
|
|
531
|
-
childAfter(e) {
|
|
532
|
-
return this.enterChild(1, e, 2);
|
|
533
|
-
}
|
|
534
|
-
childBefore(e) {
|
|
535
|
-
return this.enterChild(-1, e, -2);
|
|
536
|
-
}
|
|
537
|
-
enter(e, t, n = this.mode) {
|
|
538
|
-
return this.buffer ? n & u.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
539
|
-
}
|
|
540
|
-
parent() {
|
|
541
|
-
if (!this.buffer) return this.yieldNode(this.mode & u.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
542
|
-
if (this.stack.length) return this.yieldBuf(this.stack.pop());
|
|
543
|
-
let e = this.mode & u.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
544
|
-
return this.buffer = null, this.yieldNode(e);
|
|
545
|
-
}
|
|
546
|
-
sibling(e) {
|
|
547
|
-
if (!this.buffer) return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
|
|
548
|
-
let { buffer: t } = this.buffer, n = this.stack.length - 1;
|
|
549
|
-
if (e < 0) {
|
|
550
|
-
let e = n < 0 ? 0 : this.stack[n] + 4;
|
|
551
|
-
if (this.index != e) return this.yieldBuf(t.findChild(e, this.index, -1, 0, 4));
|
|
552
|
-
} else {
|
|
553
|
-
let e = t.buffer[this.index + 3];
|
|
554
|
-
if (e < (n < 0 ? t.buffer.length : t.buffer[this.stack[n] + 3])) return this.yieldBuf(e);
|
|
555
|
-
}
|
|
556
|
-
return n < 0 && this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode));
|
|
557
|
-
}
|
|
558
|
-
nextSibling() {
|
|
559
|
-
return this.sibling(1);
|
|
560
|
-
}
|
|
561
|
-
prevSibling() {
|
|
562
|
-
return this.sibling(-1);
|
|
563
|
-
}
|
|
564
|
-
atLastNode(e) {
|
|
565
|
-
let t, n, { buffer: r } = this;
|
|
566
|
-
if (r) {
|
|
567
|
-
if (e > 0) {
|
|
568
|
-
if (this.index < r.buffer.buffer.length) return !1;
|
|
569
|
-
} else for (let e = 0; e < this.index; e++) if (r.buffer.buffer[e + 3] < this.index) return !1;
|
|
570
|
-
({index: t, parent: n} = r);
|
|
571
|
-
} else ({index: t, _parent: n} = this._tree);
|
|
572
|
-
for (; n; {index: t, _parent: n} = n) if (t > -1) for (let r = t + e, i = e < 0 ? -1 : n._tree.children.length; r != i; r += e) {
|
|
573
|
-
let e = n._tree.children[r];
|
|
574
|
-
if (this.mode & u.IncludeAnonymous || e instanceof p || !e.type.isAnonymous || E(e)) return !1;
|
|
575
|
-
}
|
|
576
|
-
return !0;
|
|
577
|
-
}
|
|
578
|
-
move(e, t) {
|
|
579
|
-
if (t && this.enterChild(e, 0, 4)) return !0;
|
|
580
|
-
for (;;) {
|
|
581
|
-
if (this.sibling(e)) return !0;
|
|
582
|
-
if (this.atLastNode(e) || !this.parent()) return !1;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
next(e = !0) {
|
|
586
|
-
return this.move(1, e);
|
|
587
|
-
}
|
|
588
|
-
prev(e = !0) {
|
|
589
|
-
return this.move(-1, e);
|
|
590
|
-
}
|
|
591
|
-
moveTo(e, t = 0) {
|
|
592
|
-
for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(););
|
|
593
|
-
for (; this.enterChild(1, e, t););
|
|
594
|
-
return this;
|
|
595
|
-
}
|
|
596
|
-
get node() {
|
|
597
|
-
if (!this.buffer) return this._tree;
|
|
598
|
-
let e = this.bufferNode, t = null, n = 0;
|
|
599
|
-
if (e && e.context == this.buffer) scan: for (let r = this.index, i = this.stack.length; i >= 0;) {
|
|
600
|
-
for (let a = e; a; a = a._parent) if (a.index == r) {
|
|
601
|
-
if (r == this.index) return a;
|
|
602
|
-
t = a, n = i + 1;
|
|
603
|
-
break scan;
|
|
604
|
-
}
|
|
605
|
-
r = this.stack[--i];
|
|
606
|
-
}
|
|
607
|
-
for (let e = n; e < this.stack.length; e++) t = new x(this.buffer, t, this.stack[e]);
|
|
608
|
-
return this.bufferNode = new x(this.buffer, t, this.index);
|
|
609
|
-
}
|
|
610
|
-
get tree() {
|
|
611
|
-
return this.buffer ? null : this._tree._tree;
|
|
612
|
-
}
|
|
613
|
-
iterate(e, t) {
|
|
614
|
-
for (let n = 0;;) {
|
|
615
|
-
let r = !1;
|
|
616
|
-
if (this.type.isAnonymous || e(this) !== !1) {
|
|
617
|
-
if (this.firstChild()) {
|
|
618
|
-
n++;
|
|
619
|
-
continue;
|
|
620
|
-
}
|
|
621
|
-
this.type.isAnonymous || (r = !0);
|
|
622
|
-
}
|
|
623
|
-
for (;;) {
|
|
624
|
-
if (r && t && t(this), r = this.type.isAnonymous, !n) return;
|
|
625
|
-
if (this.nextSibling()) break;
|
|
626
|
-
this.parent(), n--, r = !0;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
matchContext(e) {
|
|
631
|
-
if (!this.buffer) return y(this.node.parent, e);
|
|
632
|
-
let { buffer: t } = this.buffer, { types: n } = t.set;
|
|
633
|
-
for (let r = e.length - 1, i = this.stack.length - 1; r >= 0; i--) {
|
|
634
|
-
if (i < 0) return y(this._tree, e, r);
|
|
635
|
-
let a = n[t.buffer[this.stack[i]]];
|
|
636
|
-
if (!a.isAnonymous) {
|
|
637
|
-
if (e[r] && e[r] != a.name) return !1;
|
|
638
|
-
r--;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
return !0;
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
function E(e) {
|
|
645
|
-
return e.children.some((e) => e instanceof p || !e.type.isAnonymous || E(e));
|
|
646
|
-
}
|
|
647
|
-
function D(t) {
|
|
648
|
-
let { buffer: n, nodeSet: i, maxBufferLength: a = e, reused: o = [], minRepeatType: s = i.types.length } = t, c = Array.isArray(n) ? new f(n, n.length) : n, l = i.types, u = 0, m = 0;
|
|
649
|
-
function h(e, t, n, r, d, f) {
|
|
650
|
-
let { id: S, start: C, end: w, size: T } = c, E = m, D = u;
|
|
651
|
-
if (T < 0) {
|
|
652
|
-
if (c.next(), T == -1) {
|
|
653
|
-
let t = o[S];
|
|
654
|
-
n.push(t), r.push(C - e);
|
|
655
|
-
return;
|
|
656
|
-
}
|
|
657
|
-
if (T == -3) {
|
|
658
|
-
u = S;
|
|
659
|
-
return;
|
|
660
|
-
}
|
|
661
|
-
if (T == -4) {
|
|
662
|
-
m = S;
|
|
663
|
-
return;
|
|
664
|
-
}
|
|
665
|
-
throw RangeError(`Unrecognized record size: ${T}`);
|
|
666
|
-
}
|
|
667
|
-
let O = l[S], k, j, M = C - e;
|
|
668
|
-
if (w - C <= a && (j = b(c.pos - t, d))) {
|
|
669
|
-
let t = new Uint16Array(j.size - j.skip), n = c.pos - j.size, r = t.length;
|
|
670
|
-
for (; c.pos > n;) r = x(j.start, t, r);
|
|
671
|
-
k = new p(t, w - j.start, i), M = j.start - e;
|
|
672
|
-
} else {
|
|
673
|
-
let e = c.pos - T;
|
|
674
|
-
c.next();
|
|
675
|
-
let t = [], n = [], r = S >= s ? S : -1, i = 0, o = w;
|
|
676
|
-
for (; c.pos > e;) r >= 0 && c.id == r && c.size >= 0 ? (c.end <= o - a && (v(t, n, C, i, c.end, o, r, E, D), i = t.length, o = c.end), c.next()) : f > 2500 ? g(C, e, t, n) : h(C, e, t, n, r, f + 1);
|
|
677
|
-
if (r >= 0 && i > 0 && i < t.length && v(t, n, C, i, C, o, r, E, D), t.reverse(), n.reverse(), r > -1 && i > 0) {
|
|
678
|
-
let e = _(O, D);
|
|
679
|
-
k = A(O, t, n, 0, t.length, 0, w - C, e, e);
|
|
680
|
-
} else k = y(O, t, n, w - C, E - w, D);
|
|
681
|
-
}
|
|
682
|
-
n.push(k), r.push(M);
|
|
683
|
-
}
|
|
684
|
-
function g(e, t, n, r) {
|
|
685
|
-
let o = [], s = 0, l = -1;
|
|
686
|
-
for (; c.pos > t;) {
|
|
687
|
-
let { id: e, start: t, end: n, size: r } = c;
|
|
688
|
-
if (r > 4) c.next();
|
|
689
|
-
else if (l > -1 && t < l) break;
|
|
690
|
-
else l < 0 && (l = n - a), o.push(e, t, n), s++, c.next();
|
|
691
|
-
}
|
|
692
|
-
if (s) {
|
|
693
|
-
let t = new Uint16Array(s * 4), a = o[o.length - 2];
|
|
694
|
-
for (let e = o.length - 3, n = 0; e >= 0; e -= 3) t[n++] = o[e], t[n++] = o[e + 1] - a, t[n++] = o[e + 2] - a, t[n++] = n;
|
|
695
|
-
n.push(new p(t, o[2] - a, i)), r.push(a - e);
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
function _(e, t) {
|
|
699
|
-
return (n, i, a) => {
|
|
700
|
-
let o = 0, s = n.length - 1, c, l;
|
|
701
|
-
if (s >= 0 && (c = n[s]) instanceof d) {
|
|
702
|
-
if (!s && c.type == e && c.length == a) return c;
|
|
703
|
-
(l = c.prop(r.lookAhead)) && (o = i[s] + c.length + l);
|
|
704
|
-
}
|
|
705
|
-
return y(e, n, i, a, o, t);
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
function v(e, t, n, r, a, o, s, c, l) {
|
|
709
|
-
let u = [], d = [];
|
|
710
|
-
for (; e.length > r;) u.push(e.pop()), d.push(t.pop() + n - a);
|
|
711
|
-
e.push(y(i.types[s], u, d, o - a, c - o, l)), t.push(a - n);
|
|
712
|
-
}
|
|
713
|
-
function y(e, t, n, i, a, o, s) {
|
|
714
|
-
if (o) {
|
|
715
|
-
let e = [r.contextHash, o];
|
|
716
|
-
s = s ? [e].concat(s) : [e];
|
|
717
|
-
}
|
|
718
|
-
if (a > 25) {
|
|
719
|
-
let e = [r.lookAhead, a];
|
|
720
|
-
s = s ? [e].concat(s) : [e];
|
|
721
|
-
}
|
|
722
|
-
return new d(e, t, n, i, s);
|
|
723
|
-
}
|
|
724
|
-
function b(e, t) {
|
|
725
|
-
let n = c.fork(), r = 0, i = 0, o = 0, l = n.end - a, u = {
|
|
726
|
-
size: 0,
|
|
727
|
-
start: 0,
|
|
728
|
-
skip: 0
|
|
729
|
-
};
|
|
730
|
-
scan: for (let a = n.pos - e; n.pos > a;) {
|
|
731
|
-
let e = n.size;
|
|
732
|
-
if (n.id == t && e >= 0) {
|
|
733
|
-
u.size = r, u.start = i, u.skip = o, o += 4, r += 4, n.next();
|
|
734
|
-
continue;
|
|
735
|
-
}
|
|
736
|
-
let c = n.pos - e;
|
|
737
|
-
if (e < 0 || c < a || n.start < l) break;
|
|
738
|
-
let d = n.id >= s ? 4 : 0, f = n.start;
|
|
739
|
-
for (n.next(); n.pos > c;) {
|
|
740
|
-
if (n.size < 0) {
|
|
741
|
-
if (n.size == -3 || n.size == -4) d += 4;
|
|
742
|
-
else break scan;
|
|
743
|
-
} else n.id >= s && (d += 4);
|
|
744
|
-
n.next();
|
|
745
|
-
}
|
|
746
|
-
i = f, r += e, o += d;
|
|
747
|
-
}
|
|
748
|
-
return (t < 0 || r == e) && (u.size = r, u.start = i, u.skip = o), u.size > 4 ? u : void 0;
|
|
749
|
-
}
|
|
750
|
-
function x(e, t, n) {
|
|
751
|
-
let { id: r, start: i, end: a, size: o } = c;
|
|
752
|
-
if (c.next(), o >= 0 && r < s) {
|
|
753
|
-
let s = n;
|
|
754
|
-
if (o > 4) {
|
|
755
|
-
let r = c.pos - (o - 4);
|
|
756
|
-
for (; c.pos > r;) n = x(e, t, n);
|
|
757
|
-
}
|
|
758
|
-
t[--n] = s, t[--n] = a - e, t[--n] = i - e, t[--n] = r;
|
|
759
|
-
} else o == -3 ? u = r : o == -4 && (m = r);
|
|
760
|
-
return n;
|
|
761
|
-
}
|
|
762
|
-
let S = [], C = [];
|
|
763
|
-
for (; c.pos > 0;) h(t.start || 0, t.bufferStart || 0, S, C, -1, 0);
|
|
764
|
-
let w = t.length ?? (S.length ? C[0] + S[0].length : 0);
|
|
765
|
-
return new d(l[t.topID], S.reverse(), C.reverse(), w);
|
|
766
|
-
}
|
|
767
|
-
var O = /* @__PURE__ */ new WeakMap();
|
|
768
|
-
function k(e, t) {
|
|
769
|
-
if (!e.isAnonymous || t instanceof p || t.type != e) return 1;
|
|
770
|
-
let n = O.get(t);
|
|
771
|
-
if (n == null) {
|
|
772
|
-
n = 1;
|
|
773
|
-
for (let r of t.children) {
|
|
774
|
-
if (r.type != e || !(r instanceof d)) {
|
|
775
|
-
n = 1;
|
|
776
|
-
break;
|
|
777
|
-
}
|
|
778
|
-
n += k(e, r);
|
|
779
|
-
}
|
|
780
|
-
O.set(t, n);
|
|
781
|
-
}
|
|
782
|
-
return n;
|
|
783
|
-
}
|
|
784
|
-
function A(e, t, n, r, i, a, o, s, c) {
|
|
785
|
-
let l = 0;
|
|
786
|
-
for (let n = r; n < i; n++) l += k(e, t[n]);
|
|
787
|
-
let u = Math.ceil(l * 1.5 / 8), d = [], f = [];
|
|
788
|
-
function p(t, n, r, i, o) {
|
|
789
|
-
for (let s = r; s < i;) {
|
|
790
|
-
let r = s, l = n[s], m = k(e, t[s]);
|
|
791
|
-
for (s++; s < i; s++) {
|
|
792
|
-
let n = k(e, t[s]);
|
|
793
|
-
if (m + n >= u) break;
|
|
794
|
-
m += n;
|
|
795
|
-
}
|
|
796
|
-
if (s == r + 1) {
|
|
797
|
-
if (m > u) {
|
|
798
|
-
let e = t[r];
|
|
799
|
-
p(e.children, e.positions, 0, e.children.length, n[r] + o);
|
|
800
|
-
continue;
|
|
801
|
-
}
|
|
802
|
-
d.push(t[r]);
|
|
803
|
-
} else {
|
|
804
|
-
let i = n[s - 1] + t[s - 1].length - l;
|
|
805
|
-
d.push(A(e, t, n, r, s, l, i, null, c));
|
|
806
|
-
}
|
|
807
|
-
f.push(l + o - a);
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
return p(t, n, r, i, 0), (s || c)(d, f, o);
|
|
811
|
-
}
|
|
812
|
-
var j = class {
|
|
813
|
-
constructor() {
|
|
814
|
-
this.map = /* @__PURE__ */ new WeakMap();
|
|
815
|
-
}
|
|
816
|
-
setBuffer(e, t, n) {
|
|
817
|
-
let r = this.map.get(e);
|
|
818
|
-
r || this.map.set(e, r = /* @__PURE__ */ new Map()), r.set(t, n);
|
|
819
|
-
}
|
|
820
|
-
getBuffer(e, t) {
|
|
821
|
-
let n = this.map.get(e);
|
|
822
|
-
return n && n.get(t);
|
|
823
|
-
}
|
|
824
|
-
set(e, t) {
|
|
825
|
-
e instanceof x ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof _ && this.map.set(e.tree, t);
|
|
826
|
-
}
|
|
827
|
-
get(e) {
|
|
828
|
-
return e instanceof x ? this.getBuffer(e.context.buffer, e.index) : e instanceof _ ? this.map.get(e.tree) : void 0;
|
|
829
|
-
}
|
|
830
|
-
cursorSet(e, t) {
|
|
831
|
-
e.buffer ? this.setBuffer(e.buffer.buffer, e.index, t) : this.map.set(e.tree, t);
|
|
832
|
-
}
|
|
833
|
-
cursorGet(e) {
|
|
834
|
-
return e.buffer ? this.getBuffer(e.buffer.buffer, e.index) : this.map.get(e.tree);
|
|
835
|
-
}
|
|
836
|
-
}, M = class e {
|
|
837
|
-
constructor(e, t, n, r, i = !1, a = !1) {
|
|
838
|
-
this.from = e, this.to = t, this.tree = n, this.offset = r, this.open = !!i | (a ? 2 : 0);
|
|
839
|
-
}
|
|
840
|
-
get openStart() {
|
|
841
|
-
return (this.open & 1) > 0;
|
|
842
|
-
}
|
|
843
|
-
get openEnd() {
|
|
844
|
-
return (this.open & 2) > 0;
|
|
845
|
-
}
|
|
846
|
-
static addTree(t, n = [], r = !1) {
|
|
847
|
-
let i = [new e(0, t.length, t, 0, !1, r)];
|
|
848
|
-
for (let e of n) e.to > t.length && i.push(e);
|
|
849
|
-
return i;
|
|
850
|
-
}
|
|
851
|
-
static applyChanges(t, n, r = 128) {
|
|
852
|
-
if (!n.length) return t;
|
|
853
|
-
let i = [], a = 1, o = t.length ? t[0] : null;
|
|
854
|
-
for (let s = 0, c = 0, l = 0;; s++) {
|
|
855
|
-
let u = s < n.length ? n[s] : null, d = u ? u.fromA : 1e9;
|
|
856
|
-
if (d - c >= r) for (; o && o.from < d;) {
|
|
857
|
-
let n = o;
|
|
858
|
-
if (c >= n.from || d <= n.to || l) {
|
|
859
|
-
let t = Math.max(n.from, c) - l, r = Math.min(n.to, d) - l;
|
|
860
|
-
n = t >= r ? null : new e(t, r, n.tree, n.offset + l, s > 0, !!u);
|
|
861
|
-
}
|
|
862
|
-
if (n && i.push(n), o.to > d) break;
|
|
863
|
-
o = a < t.length ? t[a++] : null;
|
|
864
|
-
}
|
|
865
|
-
if (!u) break;
|
|
866
|
-
c = u.toA, l = u.toA - u.toB;
|
|
867
|
-
}
|
|
868
|
-
return i;
|
|
869
|
-
}
|
|
870
|
-
}, ee = class {
|
|
871
|
-
startParse(e, t, r) {
|
|
872
|
-
return typeof e == "string" && (e = new te(e)), r = r ? r.length ? r.map((e) => new n(e.from, e.to)) : [new n(0, 0)] : [new n(0, e.length)], this.createParse(e, t || [], r);
|
|
873
|
-
}
|
|
874
|
-
parse(e, t, n) {
|
|
875
|
-
let r = this.startParse(e, t, n);
|
|
876
|
-
for (;;) {
|
|
877
|
-
let e = r.advance();
|
|
878
|
-
if (e) return e;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
}, te = class {
|
|
882
|
-
constructor(e) {
|
|
883
|
-
this.string = e;
|
|
884
|
-
}
|
|
885
|
-
get length() {
|
|
886
|
-
return this.string.length;
|
|
887
|
-
}
|
|
888
|
-
chunk(e) {
|
|
889
|
-
return this.string.slice(e);
|
|
890
|
-
}
|
|
891
|
-
get lineChunks() {
|
|
892
|
-
return !1;
|
|
893
|
-
}
|
|
894
|
-
read(e, t) {
|
|
895
|
-
return this.string.slice(e, t);
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
function ne(e) {
|
|
899
|
-
return (t, n, r, i) => new oe(t, e, n, r, i);
|
|
900
|
-
}
|
|
901
|
-
var re = class {
|
|
902
|
-
constructor(e, t, n, r, i, a) {
|
|
903
|
-
this.parser = e, this.parse = t, this.overlay = n, this.bracketed = r, this.target = i, this.from = a;
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
function ie(e) {
|
|
907
|
-
if (!e.length || e.some((e) => e.from >= e.to)) throw RangeError("Invalid inner parse ranges given: " + JSON.stringify(e));
|
|
908
|
-
}
|
|
909
|
-
var ae = class {
|
|
910
|
-
constructor(e, t, n, r, i, a, o, s) {
|
|
911
|
-
this.parser = e, this.predicate = t, this.mounts = n, this.index = r, this.start = i, this.bracketed = a, this.target = o, this.prev = s, this.depth = 0, this.ranges = [];
|
|
912
|
-
}
|
|
913
|
-
}, N = new r({ perNode: !0 }), oe = class {
|
|
914
|
-
constructor(e, t, n, r, i) {
|
|
915
|
-
this.nest = t, this.input = n, this.fragments = r, this.ranges = i, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e;
|
|
916
|
-
}
|
|
917
|
-
advance() {
|
|
918
|
-
if (this.baseParse) {
|
|
919
|
-
let e = this.baseParse.advance();
|
|
920
|
-
if (!e) return null;
|
|
921
|
-
if (this.baseParse = null, this.baseTree = e, this.startInner(), this.stoppedAt != null) for (let e of this.inner) e.parse.stopAt(this.stoppedAt);
|
|
922
|
-
}
|
|
923
|
-
if (this.innerDone == this.inner.length) {
|
|
924
|
-
let e = this.baseTree;
|
|
925
|
-
return this.stoppedAt != null && (e = new d(e.type, e.children, e.positions, e.length, e.propValues.concat([[N, this.stoppedAt]]))), e;
|
|
926
|
-
}
|
|
927
|
-
let e = this.inner[this.innerDone], t = e.parse.advance();
|
|
928
|
-
if (t) {
|
|
929
|
-
this.innerDone++;
|
|
930
|
-
let n = Object.assign(Object.create(null), e.target.props);
|
|
931
|
-
n[r.mounted.id] = new i(t, e.overlay, e.parser, e.bracketed), e.target.props = n;
|
|
932
|
-
}
|
|
933
|
-
return null;
|
|
934
|
-
}
|
|
935
|
-
get parsedPos() {
|
|
936
|
-
if (this.baseParse) return 0;
|
|
937
|
-
let e = this.input.length;
|
|
938
|
-
for (let t = this.innerDone; t < this.inner.length; t++) this.inner[t].from < e && (e = Math.min(e, this.inner[t].parse.parsedPos));
|
|
939
|
-
return e;
|
|
940
|
-
}
|
|
941
|
-
stopAt(e) {
|
|
942
|
-
if (this.stoppedAt = e, this.baseParse) this.baseParse.stopAt(e);
|
|
943
|
-
else for (let t = this.innerDone; t < this.inner.length; t++) this.inner[t].parse.stopAt(e);
|
|
944
|
-
}
|
|
945
|
-
startInner() {
|
|
946
|
-
let e = new ue(this.fragments), t = null, r = null, i = new T(new _(this.baseTree, this.ranges[0].from, 0, null), u.IncludeAnonymous | u.IgnoreMounts);
|
|
947
|
-
scan: for (let a, o;;) {
|
|
948
|
-
let s = !0, c;
|
|
949
|
-
if (this.stoppedAt != null && i.from >= this.stoppedAt) s = !1;
|
|
950
|
-
else if (e.hasNode(i)) {
|
|
951
|
-
if (t) {
|
|
952
|
-
let e = t.mounts.find((e) => e.frag.from <= i.from && e.frag.to >= i.to && e.mount.overlay);
|
|
953
|
-
if (e) for (let n of e.mount.overlay) {
|
|
954
|
-
let r = n.from + e.pos, a = n.to + e.pos;
|
|
955
|
-
r >= i.from && a <= i.to && !t.ranges.some((e) => e.from < a && e.to > r) && t.ranges.push({
|
|
956
|
-
from: r,
|
|
957
|
-
to: a
|
|
958
|
-
});
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
s = !1;
|
|
962
|
-
} else if (r && (o = se(r.ranges, i.from, i.to))) s = o != 2;
|
|
963
|
-
else if (!i.type.isAnonymous && (a = this.nest(i, this.input)) && (i.from < i.to || !a.overlay)) {
|
|
964
|
-
i.tree || (le(i), t && t.depth++, r && r.depth++);
|
|
965
|
-
let o = e.findMounts(i.from, a.parser);
|
|
966
|
-
if (typeof a.overlay == "function") t = new ae(a.parser, a.overlay, o, this.inner.length, i.from, !!a.bracketed, i.tree, t);
|
|
967
|
-
else {
|
|
968
|
-
let e = F(this.ranges, a.overlay || (i.from < i.to ? [new n(i.from, i.to)] : []));
|
|
969
|
-
e.length && ie(e), (e.length || !a.overlay) && this.inner.push(new re(a.parser, e.length ? a.parser.startParse(this.input, I(o, e), e) : a.parser.startParse(""), a.overlay ? a.overlay.map((e) => new n(e.from - i.from, e.to - i.from)) : null, !!a.bracketed, i.tree, e.length ? e[0].from : i.from)), a.overlay ? e.length && (r = {
|
|
970
|
-
ranges: e,
|
|
971
|
-
depth: 0,
|
|
972
|
-
prev: r
|
|
973
|
-
}) : s = !1;
|
|
974
|
-
}
|
|
975
|
-
} else if (t && (c = t.predicate(i)) && (c === !0 && (c = new n(i.from, i.to)), c.from < c.to)) {
|
|
976
|
-
let e = t.ranges.length - 1;
|
|
977
|
-
e >= 0 && t.ranges[e].to == c.from ? t.ranges[e] = {
|
|
978
|
-
from: t.ranges[e].from,
|
|
979
|
-
to: c.to
|
|
980
|
-
} : t.ranges.push(c);
|
|
981
|
-
}
|
|
982
|
-
if (s && i.firstChild()) t && t.depth++, r && r.depth++;
|
|
983
|
-
else for (; !i.nextSibling();) {
|
|
984
|
-
if (!i.parent()) break scan;
|
|
985
|
-
if (t && !--t.depth) {
|
|
986
|
-
let e = F(this.ranges, t.ranges);
|
|
987
|
-
e.length && (ie(e), this.inner.splice(t.index, 0, new re(t.parser, t.parser.startParse(this.input, I(t.mounts, e), e), t.ranges.map((e) => new n(e.from - t.start, e.to - t.start)), t.bracketed, t.target, e[0].from))), t = t.prev;
|
|
988
|
-
}
|
|
989
|
-
r && !--r.depth && (r = r.prev);
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
|
-
function se(e, t, n) {
|
|
995
|
-
for (let r of e) {
|
|
996
|
-
if (r.from >= n) break;
|
|
997
|
-
if (r.to > t) return r.from <= t && r.to >= n ? 2 : 1;
|
|
998
|
-
}
|
|
999
|
-
return 0;
|
|
1000
|
-
}
|
|
1001
|
-
function ce(e, t, n, r, i, a) {
|
|
1002
|
-
if (t < n) {
|
|
1003
|
-
let o = e.buffer[t + 1];
|
|
1004
|
-
r.push(e.slice(t, n, o)), i.push(o - a);
|
|
1005
|
-
}
|
|
1006
|
-
}
|
|
1007
|
-
function le(e) {
|
|
1008
|
-
let { node: t } = e, n = [], r = t.context.buffer;
|
|
1009
|
-
do
|
|
1010
|
-
n.push(e.index), e.parent();
|
|
1011
|
-
while (!e.tree);
|
|
1012
|
-
let i = e.tree, a = i.children.indexOf(r), s = i.children[a], c = s.buffer, l = [a];
|
|
1013
|
-
function u(e, r, i, a, o, f) {
|
|
1014
|
-
let p = n[f], m = [], h = [];
|
|
1015
|
-
ce(s, e, p, m, h, a);
|
|
1016
|
-
let g = c[p + 1], _ = c[p + 2];
|
|
1017
|
-
l.push(m.length);
|
|
1018
|
-
let v = f ? u(p + 4, c[p + 3], s.set.types[c[p]], g, _ - g, f - 1) : t.toTree();
|
|
1019
|
-
return m.push(v), h.push(g - a), ce(s, c[p + 3], r, m, h, a), new d(i, m, h, o);
|
|
1020
|
-
}
|
|
1021
|
-
i.children[a] = u(0, c.length, o.none, 0, s.length, n.length - 1);
|
|
1022
|
-
for (let t of l) {
|
|
1023
|
-
let n = e.tree.children[t], r = e.tree.positions[t];
|
|
1024
|
-
e.yield(new _(n, r + e.from, t, e._tree));
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
var P = class {
|
|
1028
|
-
constructor(e, t) {
|
|
1029
|
-
this.offset = t, this.done = !1, this.cursor = e.cursor(u.IncludeAnonymous | u.IgnoreMounts);
|
|
1030
|
-
}
|
|
1031
|
-
moveTo(e) {
|
|
1032
|
-
let { cursor: t } = this, n = e - this.offset;
|
|
1033
|
-
for (; !this.done && t.from < n;) if (!(t.to >= e && t.enter(n, 1, u.IgnoreOverlays | u.ExcludeBuffers))) {
|
|
1034
|
-
if (t.to <= e) t.next(!1) || (this.done = !0);
|
|
1035
|
-
else break;
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
hasNode(e) {
|
|
1039
|
-
if (this.moveTo(e.from), !this.done && this.cursor.from + this.offset == e.from && this.cursor.tree) for (let t = this.cursor.tree;;) {
|
|
1040
|
-
if (t == e.tree) return !0;
|
|
1041
|
-
if (t.children.length && t.positions[0] == 0 && t.children[0] instanceof d) t = t.children[0];
|
|
1042
|
-
else break;
|
|
1043
|
-
}
|
|
1044
|
-
return !1;
|
|
1045
|
-
}
|
|
1046
|
-
}, ue = class {
|
|
1047
|
-
constructor(e) {
|
|
1048
|
-
if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) {
|
|
1049
|
-
let t = this.curFrag = e[0];
|
|
1050
|
-
this.curTo = t.tree.prop(N) ?? t.to, this.inner = new P(t.tree, -t.offset);
|
|
1051
|
-
} else this.curFrag = this.inner = null;
|
|
1052
|
-
}
|
|
1053
|
-
hasNode(e) {
|
|
1054
|
-
for (; this.curFrag && e.from >= this.curTo;) this.nextFrag();
|
|
1055
|
-
return this.curFrag && this.curFrag.from <= e.from && this.curTo >= e.to && this.inner.hasNode(e);
|
|
1056
|
-
}
|
|
1057
|
-
nextFrag() {
|
|
1058
|
-
if (this.fragI++, this.fragI == this.fragments.length) this.curFrag = this.inner = null;
|
|
1059
|
-
else {
|
|
1060
|
-
let e = this.curFrag = this.fragments[this.fragI];
|
|
1061
|
-
this.curTo = e.tree.prop(N) ?? e.to, this.inner = new P(e.tree, -e.offset);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
findMounts(e, t) {
|
|
1065
|
-
let n = [];
|
|
1066
|
-
if (this.inner) {
|
|
1067
|
-
this.inner.cursor.moveTo(e, 1);
|
|
1068
|
-
for (let e = this.inner.cursor.node; e; e = e.parent) {
|
|
1069
|
-
let i = e.tree?.prop(r.mounted);
|
|
1070
|
-
if (i && i.parser == t) for (let t = this.fragI; t < this.fragments.length; t++) {
|
|
1071
|
-
let r = this.fragments[t];
|
|
1072
|
-
if (r.from >= e.to) break;
|
|
1073
|
-
r.tree == this.curFrag.tree && n.push({
|
|
1074
|
-
frag: r,
|
|
1075
|
-
pos: e.from - r.offset,
|
|
1076
|
-
mount: i
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
return n;
|
|
1082
|
-
}
|
|
1083
|
-
};
|
|
1084
|
-
function F(e, t) {
|
|
1085
|
-
let r = null, i = t;
|
|
1086
|
-
for (let a = 1, o = 0; a < e.length; a++) {
|
|
1087
|
-
let s = e[a - 1].to, c = e[a].from;
|
|
1088
|
-
for (; o < i.length; o++) {
|
|
1089
|
-
let e = i[o];
|
|
1090
|
-
if (e.from >= c) break;
|
|
1091
|
-
e.to <= s || (r || (i = r = t.slice()), e.from < s ? (r[o] = new n(e.from, s), e.to > c && r.splice(o + 1, 0, new n(c, e.to))) : e.to > c ? r[o--] = new n(c, e.to) : r.splice(o--, 1));
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
return i;
|
|
1095
|
-
}
|
|
1096
|
-
function de(e, t, r, i) {
|
|
1097
|
-
let a = 0, o = 0, s = !1, c = !1, l = -1e9, u = [];
|
|
1098
|
-
for (;;) {
|
|
1099
|
-
let d = a == e.length ? 1e9 : s ? e[a].to : e[a].from, f = o == t.length ? 1e9 : c ? t[o].to : t[o].from;
|
|
1100
|
-
if (s != c) {
|
|
1101
|
-
let e = Math.max(l, r), t = Math.min(d, f, i);
|
|
1102
|
-
e < t && u.push(new n(e, t));
|
|
1103
|
-
}
|
|
1104
|
-
if (l = Math.min(d, f), l == 1e9) break;
|
|
1105
|
-
d == l && (s ? (s = !1, a++) : s = !0), f == l && (c ? (c = !1, o++) : c = !0);
|
|
1106
|
-
}
|
|
1107
|
-
return u;
|
|
1108
|
-
}
|
|
1109
|
-
function I(e, t) {
|
|
1110
|
-
let r = [];
|
|
1111
|
-
for (let { pos: i, mount: a, frag: o } of e) {
|
|
1112
|
-
let e = i + (a.overlay ? a.overlay[0].from : 0), s = e + a.tree.length, c = Math.max(o.from, e), l = Math.min(o.to, s);
|
|
1113
|
-
if (a.overlay) {
|
|
1114
|
-
let s = de(t, a.overlay.map((e) => new n(e.from + i, e.to + i)), c, l);
|
|
1115
|
-
for (let t = 0, n = c;; t++) {
|
|
1116
|
-
let i = t == s.length, c = i ? l : s[t].from;
|
|
1117
|
-
if (c > n && r.push(new M(n, c, a.tree, -e, o.from >= n || o.openStart, o.to <= c || o.openEnd)), i) break;
|
|
1118
|
-
n = s[t].to;
|
|
1119
|
-
}
|
|
1120
|
-
} else r.push(new M(c, l, a.tree, -e, o.from >= e || o.openStart, o.to <= s || o.openEnd));
|
|
1121
|
-
}
|
|
1122
|
-
return r;
|
|
1123
|
-
}
|
|
1124
|
-
// node_modules/@lezer/highlight/dist/index.js
|
|
1125
|
-
var fe = 0, L = class e {
|
|
1126
|
-
constructor(e, t, n, r) {
|
|
1127
|
-
this.name = e, this.set = t, this.base = n, this.modified = r, this.id = fe++;
|
|
1128
|
-
}
|
|
1129
|
-
toString() {
|
|
1130
|
-
let { name: e } = this;
|
|
1131
|
-
for (let t of this.modified) t.name && (e = `${t.name}(${e})`);
|
|
1132
|
-
return e;
|
|
1133
|
-
}
|
|
1134
|
-
static define(t, n) {
|
|
1135
|
-
let r = typeof t == "string" ? t : "?";
|
|
1136
|
-
if (t instanceof e && (n = t), n?.base) throw Error("Can not derive from a modified tag");
|
|
1137
|
-
let i = new e(r, [], null, []);
|
|
1138
|
-
if (i.set.push(i), n) for (let e of n.set) i.set.push(e);
|
|
1139
|
-
return i;
|
|
1140
|
-
}
|
|
1141
|
-
static defineModifier(e) {
|
|
1142
|
-
let t = new me(e);
|
|
1143
|
-
return (e) => e.modified.indexOf(t) > -1 ? e : me.get(e.base || e, e.modified.concat(t).sort((e, t) => e.id - t.id));
|
|
1144
|
-
}
|
|
1145
|
-
}, pe = 0, me = class e {
|
|
1146
|
-
constructor(e) {
|
|
1147
|
-
this.name = e, this.instances = [], this.id = pe++;
|
|
1148
|
-
}
|
|
1149
|
-
static get(t, n) {
|
|
1150
|
-
if (!n.length) return t;
|
|
1151
|
-
let r = n[0].instances.find((e) => e.base == t && he(n, e.modified));
|
|
1152
|
-
if (r) return r;
|
|
1153
|
-
let i = [], a = new L(t.name, i, t, n);
|
|
1154
|
-
for (let e of n) e.instances.push(a);
|
|
1155
|
-
let o = ge(n);
|
|
1156
|
-
for (let n of t.set) if (!n.modified.length) for (let t of o) i.push(e.get(n, t));
|
|
1157
|
-
return a;
|
|
1158
|
-
}
|
|
1159
|
-
};
|
|
1160
|
-
function he(e, t) {
|
|
1161
|
-
return e.length == t.length && e.every((e, n) => e == t[n]);
|
|
1162
|
-
}
|
|
1163
|
-
function ge(e) {
|
|
1164
|
-
let t = [[]];
|
|
1165
|
-
for (let n = 0; n < e.length; n++) for (let r = 0, i = t.length; r < i; r++) t.push(t[r].concat(e[n]));
|
|
1166
|
-
return t.sort((e, t) => t.length - e.length);
|
|
1167
|
-
}
|
|
1168
|
-
function _e(e) {
|
|
1169
|
-
let t = Object.create(null);
|
|
1170
|
-
for (let n in e) {
|
|
1171
|
-
let r = e[n];
|
|
1172
|
-
Array.isArray(r) || (r = [r]);
|
|
1173
|
-
for (let e of n.split(" ")) if (e) {
|
|
1174
|
-
let n = [], i = 2, a = e;
|
|
1175
|
-
for (let t = 0;;) {
|
|
1176
|
-
if (a == "..." && t > 0 && t + 3 == e.length) {
|
|
1177
|
-
i = 1;
|
|
1178
|
-
break;
|
|
1179
|
-
}
|
|
1180
|
-
let r = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);
|
|
1181
|
-
if (!r) throw RangeError("Invalid path: " + e);
|
|
1182
|
-
if (n.push(r[0] == "*" ? "" : r[0][0] == "\"" ? JSON.parse(r[0]) : r[0]), t += r[0].length, t == e.length) break;
|
|
1183
|
-
let o = e[t++];
|
|
1184
|
-
if (t == e.length && o == "!") {
|
|
1185
|
-
i = 0;
|
|
1186
|
-
break;
|
|
1187
|
-
}
|
|
1188
|
-
if (o != "/") throw RangeError("Invalid path: " + e);
|
|
1189
|
-
a = e.slice(t);
|
|
1190
|
-
}
|
|
1191
|
-
let o = n.length - 1, s = n[o];
|
|
1192
|
-
if (!s) throw RangeError("Invalid path: " + e);
|
|
1193
|
-
t[s] = new R(r, i, o > 0 ? n.slice(0, o) : null).sort(t[s]);
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
return ve.add(t);
|
|
1197
|
-
}
|
|
1198
|
-
var ve = new r({ combine(e, t) {
|
|
1199
|
-
let n, r, i;
|
|
1200
|
-
for (; e || t;) {
|
|
1201
|
-
if (!e || t && e.depth <= t.depth ? (i = t, t = t.next) : (i = e, e = e.next), n && n.mode == i.mode && !i.context && !n.context) continue;
|
|
1202
|
-
let a = new R(i.tags, i.mode, i.context);
|
|
1203
|
-
n ? n.next = a : r = a, n = a;
|
|
1204
|
-
}
|
|
1205
|
-
return r;
|
|
1206
|
-
} }), R = class {
|
|
1207
|
-
constructor(e, t, n, r) {
|
|
1208
|
-
this.tags = e, this.mode = t, this.context = n, this.next = r;
|
|
1209
|
-
}
|
|
1210
|
-
get opaque() {
|
|
1211
|
-
return this.mode == 0;
|
|
1212
|
-
}
|
|
1213
|
-
get inherit() {
|
|
1214
|
-
return this.mode == 1;
|
|
1215
|
-
}
|
|
1216
|
-
sort(e) {
|
|
1217
|
-
return !e || e.depth < this.depth ? (this.next = e, this) : (e.next = this.sort(e.next), e);
|
|
1218
|
-
}
|
|
1219
|
-
get depth() {
|
|
1220
|
-
return this.context ? this.context.length : 0;
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
|
-
R.empty = new R([], 2, null);
|
|
1224
|
-
function ye(e, t) {
|
|
1225
|
-
let n = Object.create(null);
|
|
1226
|
-
for (let t of e) if (!Array.isArray(t.tag)) n[t.tag.id] = t.class;
|
|
1227
|
-
else for (let e of t.tag) n[e.id] = t.class;
|
|
1228
|
-
let { scope: r, all: i = null } = t || {};
|
|
1229
|
-
return {
|
|
1230
|
-
style: (e) => {
|
|
1231
|
-
let t = i;
|
|
1232
|
-
for (let r of e) for (let e of r.set) {
|
|
1233
|
-
let r = n[e.id];
|
|
1234
|
-
if (r) {
|
|
1235
|
-
t = t ? t + " " + r : r;
|
|
1236
|
-
break;
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
return t;
|
|
1240
|
-
},
|
|
1241
|
-
scope: r
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
function be(e, t) {
|
|
1245
|
-
let n = null;
|
|
1246
|
-
for (let r of e) {
|
|
1247
|
-
let e = r.style(t);
|
|
1248
|
-
e && (n = n ? n + " " + e : e);
|
|
1249
|
-
}
|
|
1250
|
-
return n;
|
|
1251
|
-
}
|
|
1252
|
-
function xe(e, t, n, r = 0, i = e.length) {
|
|
1253
|
-
let a = new Se(r, Array.isArray(t) ? t : [t], n);
|
|
1254
|
-
a.highlightRange(e.cursor(), r, i, "", a.highlighters), a.flush(i);
|
|
1255
|
-
}
|
|
1256
|
-
var Se = class {
|
|
1257
|
-
constructor(e, t, n) {
|
|
1258
|
-
this.at = e, this.highlighters = t, this.span = n, this.class = "";
|
|
1259
|
-
}
|
|
1260
|
-
startSpan(e, t) {
|
|
1261
|
-
t != this.class && (this.flush(e), e > this.at && (this.at = e), this.class = t);
|
|
1262
|
-
}
|
|
1263
|
-
flush(e) {
|
|
1264
|
-
e > this.at && this.class && this.span(this.at, e, this.class);
|
|
1265
|
-
}
|
|
1266
|
-
highlightRange(e, t, n, i, a) {
|
|
1267
|
-
let { type: o, from: s, to: c } = e;
|
|
1268
|
-
if (s >= n || c <= t) return;
|
|
1269
|
-
o.isTop && (a = this.highlighters.filter((e) => !e.scope || e.scope(o)));
|
|
1270
|
-
let l = i, u = Ce(e) || R.empty, d = be(a, u.tags);
|
|
1271
|
-
if (d && (l && (l += " "), l += d, u.mode == 1 && (i += (i ? " " : "") + d)), this.startSpan(Math.max(t, s), l), u.opaque) return;
|
|
1272
|
-
let f = e.tree && e.tree.prop(r.mounted);
|
|
1273
|
-
if (f && f.overlay) {
|
|
1274
|
-
let r = e.node.enter(f.overlay[0].from + s, 1), o = this.highlighters.filter((e) => !e.scope || e.scope(f.tree.type)), u = e.firstChild();
|
|
1275
|
-
for (let d = 0, p = s;; d++) {
|
|
1276
|
-
let m = d < f.overlay.length ? f.overlay[d] : null, h = m ? m.from + s : c, g = Math.max(t, p), _ = Math.min(n, h);
|
|
1277
|
-
if (g < _ && u) for (; e.from < _ && (this.highlightRange(e, g, _, i, a), this.startSpan(Math.min(_, e.to), l), !(e.to >= h || !e.nextSibling())););
|
|
1278
|
-
if (!m || h > n) break;
|
|
1279
|
-
p = m.to + s, p > t && (this.highlightRange(r.cursor(), Math.max(t, m.from + s), Math.min(n, p), "", o), this.startSpan(Math.min(n, p), l));
|
|
1280
|
-
}
|
|
1281
|
-
u && e.parent();
|
|
1282
|
-
} else if (e.firstChild()) {
|
|
1283
|
-
f && (i = "");
|
|
1284
|
-
do
|
|
1285
|
-
if (!(e.to <= t)) {
|
|
1286
|
-
if (e.from >= n) break;
|
|
1287
|
-
this.highlightRange(e, t, n, i, a), this.startSpan(Math.min(n, e.to), l);
|
|
1288
|
-
}
|
|
1289
|
-
while (e.nextSibling());
|
|
1290
|
-
e.parent();
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
function Ce(e) {
|
|
1295
|
-
let t = e.type.prop(ve);
|
|
1296
|
-
for (; t && t.context && !e.matchContext(t.context);) t = t.next;
|
|
1297
|
-
return t || null;
|
|
1298
|
-
}
|
|
1299
|
-
var z = L.define, B = z(), V = z(), we = z(V), Te = z(V), H = z(), U = z(H), W = z(H), G = z(), K = z(G), q = z(), J = z(), Y = z(), X = z(Y), Z = z(), Q = {
|
|
1300
|
-
comment: B,
|
|
1301
|
-
lineComment: z(B),
|
|
1302
|
-
blockComment: z(B),
|
|
1303
|
-
docComment: z(B),
|
|
1304
|
-
name: V,
|
|
1305
|
-
variableName: z(V),
|
|
1306
|
-
typeName: we,
|
|
1307
|
-
tagName: z(we),
|
|
1308
|
-
propertyName: Te,
|
|
1309
|
-
attributeName: z(Te),
|
|
1310
|
-
className: z(V),
|
|
1311
|
-
labelName: z(V),
|
|
1312
|
-
namespace: z(V),
|
|
1313
|
-
macroName: z(V),
|
|
1314
|
-
literal: H,
|
|
1315
|
-
string: U,
|
|
1316
|
-
docString: z(U),
|
|
1317
|
-
character: z(U),
|
|
1318
|
-
attributeValue: z(U),
|
|
1319
|
-
number: W,
|
|
1320
|
-
integer: z(W),
|
|
1321
|
-
float: z(W),
|
|
1322
|
-
bool: z(H),
|
|
1323
|
-
regexp: z(H),
|
|
1324
|
-
escape: z(H),
|
|
1325
|
-
color: z(H),
|
|
1326
|
-
url: z(H),
|
|
1327
|
-
keyword: q,
|
|
1328
|
-
self: z(q),
|
|
1329
|
-
null: z(q),
|
|
1330
|
-
atom: z(q),
|
|
1331
|
-
unit: z(q),
|
|
1332
|
-
modifier: z(q),
|
|
1333
|
-
operatorKeyword: z(q),
|
|
1334
|
-
controlKeyword: z(q),
|
|
1335
|
-
definitionKeyword: z(q),
|
|
1336
|
-
moduleKeyword: z(q),
|
|
1337
|
-
operator: J,
|
|
1338
|
-
derefOperator: z(J),
|
|
1339
|
-
arithmeticOperator: z(J),
|
|
1340
|
-
logicOperator: z(J),
|
|
1341
|
-
bitwiseOperator: z(J),
|
|
1342
|
-
compareOperator: z(J),
|
|
1343
|
-
updateOperator: z(J),
|
|
1344
|
-
definitionOperator: z(J),
|
|
1345
|
-
typeOperator: z(J),
|
|
1346
|
-
controlOperator: z(J),
|
|
1347
|
-
punctuation: Y,
|
|
1348
|
-
separator: z(Y),
|
|
1349
|
-
bracket: X,
|
|
1350
|
-
angleBracket: z(X),
|
|
1351
|
-
squareBracket: z(X),
|
|
1352
|
-
paren: z(X),
|
|
1353
|
-
brace: z(X),
|
|
1354
|
-
content: G,
|
|
1355
|
-
heading: K,
|
|
1356
|
-
heading1: z(K),
|
|
1357
|
-
heading2: z(K),
|
|
1358
|
-
heading3: z(K),
|
|
1359
|
-
heading4: z(K),
|
|
1360
|
-
heading5: z(K),
|
|
1361
|
-
heading6: z(K),
|
|
1362
|
-
contentSeparator: z(G),
|
|
1363
|
-
list: z(G),
|
|
1364
|
-
quote: z(G),
|
|
1365
|
-
emphasis: z(G),
|
|
1366
|
-
strong: z(G),
|
|
1367
|
-
link: z(G),
|
|
1368
|
-
monospace: z(G),
|
|
1369
|
-
strikethrough: z(G),
|
|
1370
|
-
inserted: z(),
|
|
1371
|
-
deleted: z(),
|
|
1372
|
-
changed: z(),
|
|
1373
|
-
invalid: z(),
|
|
1374
|
-
meta: Z,
|
|
1375
|
-
documentMeta: z(Z),
|
|
1376
|
-
annotation: z(Z),
|
|
1377
|
-
processingInstruction: z(Z),
|
|
1378
|
-
definition: L.defineModifier("definition"),
|
|
1379
|
-
constant: L.defineModifier("constant"),
|
|
1380
|
-
function: L.defineModifier("function"),
|
|
1381
|
-
standard: L.defineModifier("standard"),
|
|
1382
|
-
local: L.defineModifier("local"),
|
|
1383
|
-
special: L.defineModifier("special")
|
|
1384
|
-
};
|
|
1385
|
-
for (let e in Q) {
|
|
1386
|
-
let t = Q[e];
|
|
1387
|
-
t instanceof L && (t.name = e);
|
|
1388
|
-
}
|
|
1389
|
-
ye([
|
|
1390
|
-
{
|
|
1391
|
-
tag: Q.link,
|
|
1392
|
-
class: "tok-link"
|
|
1393
|
-
},
|
|
1394
|
-
{
|
|
1395
|
-
tag: Q.heading,
|
|
1396
|
-
class: "tok-heading"
|
|
1397
|
-
},
|
|
1398
|
-
{
|
|
1399
|
-
tag: Q.emphasis,
|
|
1400
|
-
class: "tok-emphasis"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
tag: Q.strong,
|
|
1404
|
-
class: "tok-strong"
|
|
1405
|
-
},
|
|
1406
|
-
{
|
|
1407
|
-
tag: Q.keyword,
|
|
1408
|
-
class: "tok-keyword"
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
tag: Q.atom,
|
|
1412
|
-
class: "tok-atom"
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
tag: Q.bool,
|
|
1416
|
-
class: "tok-bool"
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
tag: Q.url,
|
|
1420
|
-
class: "tok-url"
|
|
1421
|
-
},
|
|
1422
|
-
{
|
|
1423
|
-
tag: Q.labelName,
|
|
1424
|
-
class: "tok-labelName"
|
|
1425
|
-
},
|
|
1426
|
-
{
|
|
1427
|
-
tag: Q.inserted,
|
|
1428
|
-
class: "tok-inserted"
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
tag: Q.deleted,
|
|
1432
|
-
class: "tok-deleted"
|
|
1433
|
-
},
|
|
1434
|
-
{
|
|
1435
|
-
tag: Q.literal,
|
|
1436
|
-
class: "tok-literal"
|
|
1437
|
-
},
|
|
1438
|
-
{
|
|
1439
|
-
tag: Q.string,
|
|
1440
|
-
class: "tok-string"
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
tag: Q.number,
|
|
1444
|
-
class: "tok-number"
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
tag: [
|
|
1448
|
-
Q.regexp,
|
|
1449
|
-
Q.escape,
|
|
1450
|
-
Q.special(Q.string)
|
|
1451
|
-
],
|
|
1452
|
-
class: "tok-string2"
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
tag: Q.variableName,
|
|
1456
|
-
class: "tok-variableName"
|
|
1457
|
-
},
|
|
1458
|
-
{
|
|
1459
|
-
tag: Q.local(Q.variableName),
|
|
1460
|
-
class: "tok-variableName tok-local"
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
tag: Q.definition(Q.variableName),
|
|
1464
|
-
class: "tok-variableName tok-definition"
|
|
1465
|
-
},
|
|
1466
|
-
{
|
|
1467
|
-
tag: Q.special(Q.variableName),
|
|
1468
|
-
class: "tok-variableName2"
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
tag: Q.definition(Q.propertyName),
|
|
1472
|
-
class: "tok-propertyName tok-definition"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
tag: Q.typeName,
|
|
1476
|
-
class: "tok-typeName"
|
|
1477
|
-
},
|
|
1478
|
-
{
|
|
1479
|
-
tag: Q.namespace,
|
|
1480
|
-
class: "tok-namespace"
|
|
1481
|
-
},
|
|
1482
|
-
{
|
|
1483
|
-
tag: Q.className,
|
|
1484
|
-
class: "tok-className"
|
|
1485
|
-
},
|
|
1486
|
-
{
|
|
1487
|
-
tag: Q.macroName,
|
|
1488
|
-
class: "tok-macroName"
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
tag: Q.propertyName,
|
|
1492
|
-
class: "tok-propertyName"
|
|
1493
|
-
},
|
|
1494
|
-
{
|
|
1495
|
-
tag: Q.operator,
|
|
1496
|
-
class: "tok-operator"
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
tag: Q.comment,
|
|
1500
|
-
class: "tok-comment"
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
tag: Q.meta,
|
|
1504
|
-
class: "tok-meta"
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
tag: Q.invalid,
|
|
1508
|
-
class: "tok-invalid"
|
|
1509
|
-
},
|
|
1510
|
-
{
|
|
1511
|
-
tag: Q.punctuation,
|
|
1512
|
-
class: "tok-punctuation"
|
|
1513
|
-
}
|
|
1514
|
-
]);
|
|
1515
|
-
// node_modules/style-mod/src/style-mod.js
|
|
1516
|
-
var Ee = "ͼ", De = typeof Symbol > "u" ? "__ͼ" : Symbol.for(Ee), $ = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), Oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {}, ke = class {
|
|
1517
|
-
constructor(e, t) {
|
|
1518
|
-
this.rules = [];
|
|
1519
|
-
let { finish: n } = t || {};
|
|
1520
|
-
function r(e) {
|
|
1521
|
-
return /^@/.test(e) ? [e] : e.split(/,\s*/);
|
|
1522
|
-
}
|
|
1523
|
-
function i(e, t, a, o) {
|
|
1524
|
-
let s = [], c = /^@(\w+)\b/.exec(e[0]), l = c && c[1] == "keyframes";
|
|
1525
|
-
if (c && t == null) return a.push(e[0] + ";");
|
|
1526
|
-
for (let n in t) {
|
|
1527
|
-
let o = t[n];
|
|
1528
|
-
if (/&/.test(n)) i(n.split(/,\s*/).map((t) => e.map((e) => t.replace(/&/, e))).reduce((e, t) => e.concat(t)), o, a);
|
|
1529
|
-
else if (o && typeof o == "object") {
|
|
1530
|
-
if (!c) throw RangeError("The value of a property (" + n + ") should be a primitive value.");
|
|
1531
|
-
i(r(n), o, s, l);
|
|
1532
|
-
} else o != null && s.push(n.replace(/_.*/, "").replace(/[A-Z]/g, (e) => "-" + e.toLowerCase()) + ": " + o + ";");
|
|
1533
|
-
}
|
|
1534
|
-
(s.length || l) && a.push((n && !c && !o ? e.map(n) : e).join(", ") + " {" + s.join(" ") + "}");
|
|
1535
|
-
}
|
|
1536
|
-
for (let t in e) i(r(t), e[t], this.rules);
|
|
1537
|
-
}
|
|
1538
|
-
getRules() {
|
|
1539
|
-
return this.rules.join("\n");
|
|
1540
|
-
}
|
|
1541
|
-
static newName() {
|
|
1542
|
-
let e = Oe[De] || 1;
|
|
1543
|
-
return Oe[De] = e + 1, Ee + e.toString(36);
|
|
1544
|
-
}
|
|
1545
|
-
static mount(e, t, n) {
|
|
1546
|
-
let r = e[$], i = n && n.nonce;
|
|
1547
|
-
r ? i && r.setNonce(i) : r = new je(e, i), r.mount(Array.isArray(t) ? t : [t], e);
|
|
1548
|
-
}
|
|
1549
|
-
}, Ae = /* @__PURE__ */ new Map(), je = class {
|
|
1550
|
-
constructor(e, t) {
|
|
1551
|
-
let n = e.ownerDocument || e, r = n.defaultView;
|
|
1552
|
-
if (!e.head && e.adoptedStyleSheets && r.CSSStyleSheet) {
|
|
1553
|
-
let t = Ae.get(n);
|
|
1554
|
-
if (t) return e[$] = t;
|
|
1555
|
-
this.sheet = new r.CSSStyleSheet(), Ae.set(n, this);
|
|
1556
|
-
} else this.styleTag = n.createElement("style"), t && this.styleTag.setAttribute("nonce", t);
|
|
1557
|
-
this.modules = [], e[$] = this;
|
|
1558
|
-
}
|
|
1559
|
-
mount(e, t) {
|
|
1560
|
-
let n = this.sheet, r = 0, i = 0;
|
|
1561
|
-
for (let t = 0; t < e.length; t++) {
|
|
1562
|
-
let a = e[t], o = this.modules.indexOf(a);
|
|
1563
|
-
if (o < i && o > -1 && (this.modules.splice(o, 1), i--, o = -1), o == -1) {
|
|
1564
|
-
if (this.modules.splice(i++, 0, a), n) for (let e = 0; e < a.rules.length; e++) n.insertRule(a.rules[e], r++);
|
|
1565
|
-
} else {
|
|
1566
|
-
for (; i < o;) r += this.modules[i++].rules.length;
|
|
1567
|
-
r += a.rules.length, i++;
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
if (n) t.adoptedStyleSheets.indexOf(this.sheet) < 0 && (t.adoptedStyleSheets = [this.sheet, ...t.adoptedStyleSheets]);
|
|
1571
|
-
else {
|
|
1572
|
-
let e = "";
|
|
1573
|
-
for (let t = 0; t < this.modules.length; t++) e += this.modules[t].getRules() + "\n";
|
|
1574
|
-
this.styleTag.textContent = e;
|
|
1575
|
-
let n = t.head || t;
|
|
1576
|
-
this.styleTag.parentNode != n && n.insertBefore(this.styleTag, n.firstChild);
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
setNonce(e) {
|
|
1580
|
-
this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
export { ye as a, u as c, o as d, j as f, ne as g, M as h, _e as i, r as l, d as m, L as n, Q as o, ee as p, xe as r, e as s, ke as t, s as u };
|