@paperless/core 2.22.0-alpha.29 → 2.22.0-alpha.30
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/dist/build/index.esm.js +1 -1
- package/dist/{paperless/p-a9c0aab3.entry.js → build/p-0595952f.entry.js} +1 -1
- package/dist/{paperless/p-9e06356b.entry.js → build/p-09501f74.entry.js} +1 -1
- package/dist/build/{p-2e67ae6a.entry.js → p-112991fa.entry.js} +1 -1
- package/dist/build/{p-cf436a7d.entry.js → p-16625524.entry.js} +1 -1
- package/dist/build/{p-31399606.entry.js → p-1831ba61.entry.js} +1 -1
- package/dist/build/{p-1cbe78fd.entry.js → p-1a4eeaed.entry.js} +1 -1
- package/dist/build/{p-cfbd02e6.entry.js → p-1bc013ea.entry.js} +1 -1
- package/dist/build/{p-561dabe7.entry.js → p-1e33b62a.entry.js} +1 -1
- package/dist/{paperless/p-bbf7b9e7.entry.js → build/p-2461cae0.entry.js} +1 -1
- package/dist/{paperless/p-ade3a57a.entry.js → build/p-26a84c2f.entry.js} +1 -1
- package/dist/build/p-3224460c.entry.js +1 -0
- package/dist/build/{p-b85ee4b7.entry.js → p-3d4eed8c.entry.js} +1 -1
- package/dist/build/p-42907ce1.entry.js +1 -0
- package/dist/build/{p-f1c6f25b.entry.js → p-43dd13df.entry.js} +1 -1
- package/dist/{paperless/p-8382e7c2.entry.js → build/p-443e1609.entry.js} +1 -1
- package/dist/{paperless/p-6df6a0ba.entry.js → build/p-4a695d0f.entry.js} +1 -1
- package/dist/build/{p-14223e98.entry.js → p-4ade4fd6.entry.js} +1 -1
- package/dist/{paperless/p-6aa93bf9.entry.js → build/p-4b03700c.entry.js} +1 -1
- package/dist/build/{p-70974f53.entry.js → p-4c885671.entry.js} +1 -1
- package/dist/{paperless/p-e907c9d3.entry.js → build/p-5abb4596.entry.js} +1 -1
- package/dist/build/{p-25961586.entry.js → p-5fb0fde5.entry.js} +1 -1
- package/dist/{paperless/p-464fd7c4.entry.js → build/p-62f081db.entry.js} +1 -1
- package/dist/build/{p-5f422b65.js → p-66626b17.js} +1 -1
- package/dist/{paperless/p-c16870f5.entry.js → build/p-6ddff445.entry.js} +1 -1
- package/dist/build/{p-50de21e1.entry.js → p-71936600.entry.js} +1 -1
- package/dist/{paperless/p-9cdee500.entry.js → build/p-75c0d205.entry.js} +1 -1
- package/dist/build/{p-2a37b400.entry.js → p-796ade92.entry.js} +1 -1
- package/dist/build/{p-a6369294.entry.js → p-7b05d594.entry.js} +1 -1
- package/dist/build/{p-60a3f1ee.entry.js → p-8073ff56.entry.js} +1 -1
- package/dist/build/{p-abe821ce.entry.js → p-8527dffc.entry.js} +1 -1
- package/dist/{paperless/p-ba7ccf80.entry.js → build/p-88434ef8.entry.js} +1 -1
- package/dist/build/p-8b074922.entry.js +1 -0
- package/dist/build/{p-8824a0ef.entry.js → p-8c36f589.entry.js} +1 -1
- package/dist/build/{p-d5d45034.entry.js → p-8d872235.entry.js} +1 -1
- package/dist/build/{p-d81c6c9e.entry.js → p-8f5d0259.entry.js} +1 -1
- package/dist/build/{p-9fd28756.entry.js → p-91c17aaa.entry.js} +1 -1
- package/dist/{paperless/p-166704d6.entry.js → build/p-96020614.entry.js} +1 -1
- package/dist/build/p-BaOYiNIi.js +1 -0
- package/dist/build/{p-Jt5e0RAn.js → p-Ds4BJt6D.js} +1 -1
- package/dist/build/p-UEOqFwec.js +2 -0
- package/dist/build/{p-fa1a067a.entry.js → p-a075f933.entry.js} +1 -1
- package/dist/{paperless/p-60923e39.entry.js → build/p-a3c931c3.entry.js} +1 -1
- package/dist/build/{p-80922205.entry.js → p-ac64c055.entry.js} +1 -1
- package/dist/build/{p-93ce18e4.entry.js → p-b39702b5.entry.js} +1 -1
- package/dist/build/{p-7ac9dc1e.entry.js → p-b660c06c.entry.js} +1 -1
- package/dist/{paperless/p-a7d200c3.entry.js → build/p-cc67c333.entry.js} +1 -1
- package/dist/build/{p-1c17ee9b.entry.js → p-cce41338.entry.js} +1 -1
- package/dist/{paperless/p-260a97c9.entry.js → build/p-d79097e9.entry.js} +1 -1
- package/dist/build/{p-ee7858e4.entry.js → p-d824b806.entry.js} +1 -1
- package/dist/build/{p-a232b345.entry.js → p-dad6be91.entry.js} +1 -1
- package/dist/build/{p-8644a3f1.entry.js → p-dc7e3d2d.entry.js} +1 -1
- package/dist/build/{p-c298abac.entry.js → p-dcc913e0.entry.js} +1 -1
- package/dist/{paperless/p-f5be155f.entry.js → build/p-e6c0c26a.entry.js} +1 -1
- package/dist/build/{p-1f15cd98.entry.js → p-e8911355.entry.js} +1 -1
- package/dist/build/{p-5c5cdb06.entry.js → p-eb88330f.entry.js} +1 -1
- package/dist/build/p-f16b7c0e.entry.js +3 -0
- package/dist/build/{p-0388615e.entry.js → p-f71542cd.entry.js} +1 -1
- package/dist/build/{p-d8681bdc.entry.js → p-fc461e09.entry.js} +1 -1
- package/dist/{paperless/p-18454ce9.entry.js → build/p-fd71dc2b.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-CcocepA-.js → index-BTgZ3S70.js} +179 -1808
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +3 -3
- package/dist/cjs/p-attachment.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +3 -3
- package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +3 -3
- package/dist/cjs/p-calendar.cjs.entry.js +3 -3
- package/dist/cjs/p-card-body.cjs.entry.js +3 -3
- package/dist/cjs/p-card-container.cjs.entry.js +3 -3
- package/dist/cjs/p-card-header.cjs.entry.js +3 -3
- package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
- package/dist/cjs/p-content-slider.cjs.entry.js +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js +35 -91
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-divider.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-dropdown-menu-item_2.cjs.entry.js +3 -3
- package/dist/cjs/p-empty-state_8.cjs.entry.js +3 -3
- package/dist/cjs/p-field_3.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
- package/dist/cjs/p-illustration.cjs.entry.js +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-layout.cjs.entry.js +1 -1
- package/dist/cjs/p-listing-item.cjs.entry.js +3 -3
- package/dist/cjs/p-listing-line.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +3 -3
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-title.cjs.entry.js +3 -3
- package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +3 -3
- package/dist/cjs/p-radio.cjs.entry.js +3 -3
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-select.cjs.entry.js +3 -3
- package/dist/cjs/p-smile.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper-item_2.cjs.entry.js +3 -3
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/p-table-column.cjs.entry.js +1 -1
- package/dist/cjs/p-table-extra-header.cjs.entry.js +1 -1
- package/dist/cjs/p-table-row-action.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +3 -3
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/cjs/{state-BseAB3i4.js → state-DvN6PtKJ.js} +1 -1
- package/dist/cjs/{themed-host.component-BSIZm-L8.js → themed-host.component-BD_w9S3m.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Ci0JKTmE.js → p--JxtpGtF.js} +1 -1
- package/dist/components/{p-CccN0jY7.js → p-2ng-Aose.js} +1 -1
- package/dist/components/{p-BBmuctek.js → p-Akpqyi53.js} +1 -1
- package/dist/components/{p-BhtaAZAJ.js → p-B0_4fWrY.js} +1 -1
- package/dist/components/{p-Czs7mxeO.js → p-B7T2fQYF.js} +1 -1
- package/dist/components/{p-Coxruux_.js → p-BBpjifjG.js} +1 -1
- package/dist/components/{p-4UKRYZET.js → p-BF6PPgsp.js} +1 -1
- package/dist/components/{p-CGJYpylb.js → p-BImUbzui.js} +1 -1
- package/dist/components/{p--JDhF4GL.js → p-BY-iZ7C8.js} +1 -1
- package/dist/components/{p-Djf2rBRX.js → p-BkkPm9Yp.js} +1 -1
- package/dist/components/{p-BE2DRulM.js → p-Bw7wEGKa.js} +1 -1
- package/dist/components/{p-Cs8Ak0MQ.js → p-BwD4wr14.js} +1 -1
- package/dist/components/{p-C7Bjyf-i.js → p-C1fCuFhI.js} +1 -1
- package/dist/components/{p-prb4IQlb.js → p-C23JF7PQ.js} +1 -1
- package/dist/components/{p-BuAyIir2.js → p-CCufTu-v.js} +1 -1
- package/dist/components/{p-BA1QFuzs.js → p-CFmYQoDA.js} +1 -1
- package/dist/components/{p-BPP8ZYwN.js → p-CGFPlslj.js} +1 -1
- package/dist/components/{p-B4tCVctO.js → p-CIqBta1w.js} +1 -1
- package/dist/components/{p-CCvROjOe.js → p-CNMa-_yN.js} +1 -1
- package/dist/components/{p-BV-h5ALt.js → p-CPlMlM6g.js} +1 -1
- package/dist/components/{p-DAuzJ_qL.js → p-CQaFushj.js} +1 -1
- package/dist/components/{p-Dl4hxOHI.js → p-CeX--L43.js} +1 -1
- package/dist/components/{p-JhZXmipA.js → p-Ch5U9kWZ.js} +1 -1
- package/dist/components/{p-DSj0Jf2L.js → p-Cmsf0PX2.js} +1 -1
- package/dist/components/{p-B7SbywpL.js → p-CpaA1Iq7.js} +1 -1
- package/dist/components/{p-BX8yg_1a.js → p-CpnSfiGo.js} +1 -1
- package/dist/components/{p-BaXKEl7X.js → p-CtHAbYCa.js} +1 -1
- package/dist/components/{p-BCAgJ4w6.js → p-D-IyTfol.js} +1 -1
- package/dist/components/{p-BnzXRlCu.js → p-D08B3cFE.js} +1 -1
- package/dist/components/{p-BVuxBNP3.js → p-D5_UJJpn.js} +1 -1
- package/dist/components/{p-_3tBkyNJ.js → p-DCq0eMpP.js} +1 -1
- package/dist/components/{p-DNMiuEx4.js → p-DM8w1S9L.js} +1 -1
- package/dist/components/{p-CHydrUrt.js → p-DPtX6elD.js} +1 -1
- package/dist/components/{p-25xYytwu.js → p-Dd8d_pro.js} +1 -1
- package/dist/components/{p-DxW06-IZ.js → p-DfBWP1bt.js} +1 -1
- package/dist/components/{p-KuL1SNit.js → p-DoDhkUVy.js} +1 -1
- package/dist/components/{p-DxNTB_Qq.js → p-DqfNKkNq.js} +1 -1
- package/dist/components/{p-Ds35QicK.js → p-DvzTP_tN.js} +1 -1
- package/dist/components/{p-0y7dmBHx.js → p-J_pAdYL8.js} +1 -1
- package/dist/components/{p-CtQJmtcM.js → p-Ml3Ytiv7.js} +1 -1
- package/dist/components/{p-swqKzLDH.js → p-OF_TU9VQ.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar-group.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-backdrop.js +1 -1
- package/dist/components/p-badge.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-body.js +1 -1
- package/dist/components/p-card-container.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/{p-qmmFrZxi.js → p-dWa7wUe3.js} +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-divider.js +1 -1
- package/dist/components/p-drawer-body.js +1 -1
- package/dist/components/p-drawer-container.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-container.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/{p-DZjr9R4d.js → p-h4mS749f.js} +1 -1
- package/dist/components/{p-D4KmlZ0u.js → p-hBh42vsk.js} +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/{p-DuYGcgJi.js → p-iMCMxc-_.js} +1 -1
- package/dist/components/p-iban-icon.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-illustration.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-layout.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-listing-line.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-loader.js +1 -1
- package/dist/components/p-mR4MYqqI.js +2 -0
- package/dist/components/p-modal-body.js +1 -1
- package/dist/components/p-modal-container.js +1 -1
- package/dist/components/p-modal-footer.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/{p-BV81Joa3.js → p-nUd8Wpbr.js} +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-navigation-title.js +1 -1
- package/dist/components/p-pagination-pages-item.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-container.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-smile.js +1 -1
- package/dist/components/p-stepper-item.js +1 -1
- package/dist/components/p-stepper-line.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-column.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-extra-header.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-action.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/{index-BDccsg1s.js → index-UEOqFwec.js} +179 -1808
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-accordion.entry.js +3 -3
- package/dist/esm/p-attachment.entry.js +1 -1
- package/dist/esm/p-avatar-group.entry.js +1 -1
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-backdrop.entry.js +3 -3
- package/dist/esm/p-badge_3.entry.js +3 -3
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +3 -3
- package/dist/esm/p-calendar.entry.js +3 -3
- package/dist/esm/p-card-body.entry.js +3 -3
- package/dist/esm/p-card-container.entry.js +3 -3
- package/dist/esm/p-card-header.entry.js +3 -3
- package/dist/esm/p-checkbox_3.entry.js +3 -3
- package/dist/esm/p-content-slider.entry.js +1 -1
- package/dist/esm/p-cropper.entry.js +35 -91
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-divider.entry.js +3 -3
- package/dist/esm/p-drawer-body_3.entry.js +3 -3
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-dropdown-menu-item_2.entry.js +3 -3
- package/dist/esm/p-empty-state_8.entry.js +3 -3
- package/dist/esm/p-field_3.entry.js +3 -3
- package/dist/esm/p-floating-menu-item.entry.js +3 -3
- package/dist/esm/p-iban-icon.entry.js +1 -1
- package/dist/esm/p-illustration.entry.js +1 -1
- package/dist/esm/p-info-panel.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-layout.entry.js +1 -1
- package/dist/esm/p-listing-item.entry.js +3 -3
- package/dist/esm/p-listing-line.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +3 -3
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +3 -3
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +3 -3
- package/dist/esm/p-navigation-title.entry.js +3 -3
- package/dist/esm/p-pagination_3.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +3 -3
- package/dist/esm/p-radio.entry.js +3 -3
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-select.entry.js +3 -3
- package/dist/esm/p-smile.entry.js +1 -1
- package/dist/esm/p-stepper-item_2.entry.js +3 -3
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-tab-container.entry.js +1 -1
- package/dist/esm/p-tab-item.entry.js +3 -3
- package/dist/esm/p-table-column.entry.js +1 -1
- package/dist/esm/p-table-extra-header.entry.js +1 -1
- package/dist/esm/p-table-row-action.entry.js +1 -1
- package/dist/esm/p-table.entry.js +1 -1
- package/dist/esm/p-toast-container.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +3 -3
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +3 -3
- package/dist/esm/paperless.js +3 -3
- package/dist/esm/{state-xB9Jw2TG.js → state-gBMIsdMW.js} +1 -1
- package/dist/esm/{themed-host.component-CLTQ6QFZ.js → themed-host.component-Bt4FhEsY.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/{build/p-a9c0aab3.entry.js → paperless/p-0595952f.entry.js} +1 -1
- package/dist/{build/p-9e06356b.entry.js → paperless/p-09501f74.entry.js} +1 -1
- package/dist/paperless/{p-2e67ae6a.entry.js → p-112991fa.entry.js} +1 -1
- package/dist/paperless/{p-cf436a7d.entry.js → p-16625524.entry.js} +1 -1
- package/dist/paperless/{p-31399606.entry.js → p-1831ba61.entry.js} +1 -1
- package/dist/paperless/{p-1cbe78fd.entry.js → p-1a4eeaed.entry.js} +1 -1
- package/dist/paperless/{p-cfbd02e6.entry.js → p-1bc013ea.entry.js} +1 -1
- package/dist/paperless/{p-561dabe7.entry.js → p-1e33b62a.entry.js} +1 -1
- package/dist/{build/p-bbf7b9e7.entry.js → paperless/p-2461cae0.entry.js} +1 -1
- package/dist/{build/p-ade3a57a.entry.js → paperless/p-26a84c2f.entry.js} +1 -1
- package/dist/paperless/p-3224460c.entry.js +1 -0
- package/dist/paperless/{p-b85ee4b7.entry.js → p-3d4eed8c.entry.js} +1 -1
- package/dist/paperless/p-42907ce1.entry.js +1 -0
- package/dist/paperless/{p-f1c6f25b.entry.js → p-43dd13df.entry.js} +1 -1
- package/dist/{build/p-8382e7c2.entry.js → paperless/p-443e1609.entry.js} +1 -1
- package/dist/{build/p-6df6a0ba.entry.js → paperless/p-4a695d0f.entry.js} +1 -1
- package/dist/paperless/{p-14223e98.entry.js → p-4ade4fd6.entry.js} +1 -1
- package/dist/{build/p-6aa93bf9.entry.js → paperless/p-4b03700c.entry.js} +1 -1
- package/dist/paperless/{p-70974f53.entry.js → p-4c885671.entry.js} +1 -1
- package/dist/{build/p-e907c9d3.entry.js → paperless/p-5abb4596.entry.js} +1 -1
- package/dist/paperless/{p-25961586.entry.js → p-5fb0fde5.entry.js} +1 -1
- package/dist/{build/p-464fd7c4.entry.js → paperless/p-62f081db.entry.js} +1 -1
- package/dist/{build/p-c16870f5.entry.js → paperless/p-6ddff445.entry.js} +1 -1
- package/dist/paperless/{p-50de21e1.entry.js → p-71936600.entry.js} +1 -1
- package/dist/{build/p-9cdee500.entry.js → paperless/p-75c0d205.entry.js} +1 -1
- package/dist/paperless/{p-2a37b400.entry.js → p-796ade92.entry.js} +1 -1
- package/dist/paperless/{p-a6369294.entry.js → p-7b05d594.entry.js} +1 -1
- package/dist/paperless/{p-60a3f1ee.entry.js → p-8073ff56.entry.js} +1 -1
- package/dist/paperless/{p-abe821ce.entry.js → p-8527dffc.entry.js} +1 -1
- package/dist/{build/p-ba7ccf80.entry.js → paperless/p-88434ef8.entry.js} +1 -1
- package/dist/paperless/p-8b074922.entry.js +1 -0
- package/dist/paperless/{p-8824a0ef.entry.js → p-8c36f589.entry.js} +1 -1
- package/dist/paperless/{p-d5d45034.entry.js → p-8d872235.entry.js} +1 -1
- package/dist/paperless/{p-d81c6c9e.entry.js → p-8f5d0259.entry.js} +1 -1
- package/dist/paperless/{p-9fd28756.entry.js → p-91c17aaa.entry.js} +1 -1
- package/dist/{build/p-166704d6.entry.js → paperless/p-96020614.entry.js} +1 -1
- package/dist/paperless/p-BaOYiNIi.js +1 -0
- package/dist/paperless/{p-Jt5e0RAn.js → p-Ds4BJt6D.js} +1 -1
- package/dist/paperless/p-UEOqFwec.js +2 -0
- package/dist/paperless/{p-fa1a067a.entry.js → p-a075f933.entry.js} +1 -1
- package/dist/{build/p-60923e39.entry.js → paperless/p-a3c931c3.entry.js} +1 -1
- package/dist/paperless/{p-80922205.entry.js → p-ac64c055.entry.js} +1 -1
- package/dist/paperless/{p-93ce18e4.entry.js → p-b39702b5.entry.js} +1 -1
- package/dist/paperless/{p-7ac9dc1e.entry.js → p-b660c06c.entry.js} +1 -1
- package/dist/{build/p-a7d200c3.entry.js → paperless/p-cc67c333.entry.js} +1 -1
- package/dist/paperless/{p-1c17ee9b.entry.js → p-cce41338.entry.js} +1 -1
- package/dist/{build/p-260a97c9.entry.js → paperless/p-d79097e9.entry.js} +1 -1
- package/dist/paperless/{p-ee7858e4.entry.js → p-d824b806.entry.js} +1 -1
- package/dist/paperless/{p-a232b345.entry.js → p-dad6be91.entry.js} +1 -1
- package/dist/paperless/{p-8644a3f1.entry.js → p-dc7e3d2d.entry.js} +1 -1
- package/dist/paperless/{p-c298abac.entry.js → p-dcc913e0.entry.js} +1 -1
- package/dist/{build/p-f5be155f.entry.js → paperless/p-e6c0c26a.entry.js} +1 -1
- package/dist/paperless/{p-1f15cd98.entry.js → p-e8911355.entry.js} +1 -1
- package/dist/paperless/{p-5c5cdb06.entry.js → p-eb88330f.entry.js} +1 -1
- package/dist/paperless/p-f16b7c0e.entry.js +3 -0
- package/dist/paperless/{p-0388615e.entry.js → p-f71542cd.entry.js} +1 -1
- package/dist/paperless/{p-d8681bdc.entry.js → p-fc461e09.entry.js} +1 -1
- package/dist/{build/p-18454ce9.entry.js → paperless/p-fd71dc2b.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +5120 -5186
- package/hydrate/index.mjs +5120 -5186
- package/package.json +1 -1
- package/dist/build/p-5a2d19ec.entry.js +0 -1
- package/dist/build/p-75ba802e.entry.js +0 -3
- package/dist/build/p-8c1bf7ea.entry.js +0 -1
- package/dist/build/p-BDccsg1s.js +0 -2
- package/dist/build/p-BErFyukm.js +0 -1
- package/dist/build/p-c577e542.entry.js +0 -1
- package/dist/components/p-et-2f2Wz.js +0 -2
- package/dist/paperless/p-5a2d19ec.entry.js +0 -1
- package/dist/paperless/p-75ba802e.entry.js +0 -3
- package/dist/paperless/p-8c1bf7ea.entry.js +0 -1
- package/dist/paperless/p-BDccsg1s.js +0 -2
- package/dist/paperless/p-BErFyukm.js +0 -1
- package/dist/paperless/p-c577e542.entry.js +0 -1
|
@@ -26,254 +26,9 @@ const globalScripts = () => {};
|
|
|
26
26
|
const globalStyles = ".w-full{width:100%}.touch-none{touch-action:none}.font-ambit{font-family:Ambit,sans-serif}.font-geist{font-family:Geist,serif}.text-base{font-size:1rem;line-height:1.5rem}.lining-nums{--tw-numeric-figure:lining-nums}.lining-nums,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.text-inherit{color:inherit}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}*{box-sizing:border-box;font-family:Geist,serif}.w-full{width:100%}.touch-none{touch-action:none}.font-ambit{font-family:Ambit,sans-serif}.font-geist{font-family:Geist,serif}.text-base{font-size:1rem;line-height:1.5rem}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-inherit{color:inherit}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@import url(https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap);@import url(https://fonts.cdnfonts.com/css/ambit);*,* button,.font-geist,.font-geist button{font-variant-numeric:lining-nums tabular-nums}body,html{-webkit-font-smoothing:antialiased;max-width:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));text-rendering:optimizeLegibility;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}body[data-theme=dark]{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(35 41 52/var(--tw-bg-opacity,1));color:rgb(163 165 169/var(--tw-text-opacity,1))}body:not([data-theme=dark]){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));color:rgb(116 120 127/var(--tw-text-opacity,1))}html{height:-moz-stretch;height:-webkit-stretch;height:-webkit-fill-available;height:-moz-available;height:stretch}body{font-size:1rem;font-weight:500;height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:-moz-stretch;height:-webkit-stretch;height:-webkit-fill-available;height:-moz-available;height:stretch;line-height:1.5rem}body *{box-sizing:border-box}a,a:visited{color:inherit}h1,h2,h3,h4,h5{font-family:Ambit,sans-serif;font-weight:700}h1{font-size:2rem;line-height:2.5rem}h2{font-size:1.5rem;line-height:2rem}h3{font-size:1.25rem}h3,h4{line-height:1.75rem}h4{font-size:1.125rem}body[data-theme=dark] h1,body[data-theme=dark] h2,body[data-theme=dark] h3,body[data-theme=dark] h4,body[data-theme=dark] h5{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}body:not([data-theme=dark]) h1,body:not([data-theme=dark]) h2,body:not([data-theme=dark]) h3,body:not([data-theme=dark]) h4,body:not([data-theme=dark]) h5{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.scroll-lock{-webkit-overflow-scrolling:auto;overflow:hidden;overscroll-behavior:none;touch-action:none}";
|
|
27
27
|
|
|
28
28
|
/*
|
|
29
|
-
Stencil Client Platform v4.41.
|
|
29
|
+
Stencil Client Platform v4.41.2 | MIT Licensed | https://stenciljs.com
|
|
30
30
|
*/
|
|
31
|
-
var __create = Object.create;
|
|
32
|
-
var __defProp = Object.defineProperty;
|
|
33
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
34
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
35
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
36
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
37
|
-
var __typeError = (msg) => {
|
|
38
|
-
throw TypeError(msg);
|
|
39
|
-
};
|
|
40
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
41
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
42
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
43
|
-
};
|
|
44
|
-
var __export = (target, all) => {
|
|
45
|
-
for (var name in all)
|
|
46
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
47
|
-
};
|
|
48
|
-
var __copyProps = (to, from, except, desc) => {
|
|
49
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
50
|
-
for (let key of __getOwnPropNames(from))
|
|
51
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
52
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
53
|
-
}
|
|
54
|
-
return to;
|
|
55
|
-
};
|
|
56
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
57
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
58
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
59
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
60
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
61
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
62
|
-
mod
|
|
63
|
-
));
|
|
64
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
65
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
66
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
67
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
68
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
69
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
70
31
|
|
|
71
|
-
// node_modules/balanced-match/index.js
|
|
72
|
-
var require_balanced_match = __commonJS({
|
|
73
|
-
"node_modules/balanced-match/index.js"(exports, module) {
|
|
74
|
-
module.exports = balanced;
|
|
75
|
-
function balanced(a, b, str) {
|
|
76
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
77
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
78
|
-
var r = range(a, b, str);
|
|
79
|
-
return r && {
|
|
80
|
-
start: r[0],
|
|
81
|
-
end: r[1],
|
|
82
|
-
pre: str.slice(0, r[0]),
|
|
83
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
84
|
-
post: str.slice(r[1] + b.length)
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
function maybeMatch(reg, str) {
|
|
88
|
-
var m = str.match(reg);
|
|
89
|
-
return m ? m[0] : null;
|
|
90
|
-
}
|
|
91
|
-
balanced.range = range;
|
|
92
|
-
function range(a, b, str) {
|
|
93
|
-
var begs, beg, left, right, result;
|
|
94
|
-
var ai = str.indexOf(a);
|
|
95
|
-
var bi = str.indexOf(b, ai + 1);
|
|
96
|
-
var i2 = ai;
|
|
97
|
-
if (ai >= 0 && bi > 0) {
|
|
98
|
-
if (a === b) {
|
|
99
|
-
return [ai, bi];
|
|
100
|
-
}
|
|
101
|
-
begs = [];
|
|
102
|
-
left = str.length;
|
|
103
|
-
while (i2 >= 0 && !result) {
|
|
104
|
-
if (i2 == ai) {
|
|
105
|
-
begs.push(i2);
|
|
106
|
-
ai = str.indexOf(a, i2 + 1);
|
|
107
|
-
} else if (begs.length == 1) {
|
|
108
|
-
result = [begs.pop(), bi];
|
|
109
|
-
} else {
|
|
110
|
-
beg = begs.pop();
|
|
111
|
-
if (beg < left) {
|
|
112
|
-
left = beg;
|
|
113
|
-
right = bi;
|
|
114
|
-
}
|
|
115
|
-
bi = str.indexOf(b, i2 + 1);
|
|
116
|
-
}
|
|
117
|
-
i2 = ai < bi && ai >= 0 ? ai : bi;
|
|
118
|
-
}
|
|
119
|
-
if (begs.length) {
|
|
120
|
-
result = [left, right];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return result;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
// node_modules/brace-expansion/index.js
|
|
129
|
-
var require_brace_expansion = __commonJS({
|
|
130
|
-
"node_modules/brace-expansion/index.js"(exports, module) {
|
|
131
|
-
var balanced = require_balanced_match();
|
|
132
|
-
module.exports = expandTop;
|
|
133
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
134
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
135
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
136
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
137
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
138
|
-
function numeric(str) {
|
|
139
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
140
|
-
}
|
|
141
|
-
function escapeBraces(str) {
|
|
142
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
143
|
-
}
|
|
144
|
-
function unescapeBraces(str) {
|
|
145
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
146
|
-
}
|
|
147
|
-
function parseCommaParts(str) {
|
|
148
|
-
if (!str)
|
|
149
|
-
return [""];
|
|
150
|
-
var parts = [];
|
|
151
|
-
var m = balanced("{", "}", str);
|
|
152
|
-
if (!m)
|
|
153
|
-
return str.split(",");
|
|
154
|
-
var pre = m.pre;
|
|
155
|
-
var body = m.body;
|
|
156
|
-
var post = m.post;
|
|
157
|
-
var p = pre.split(",");
|
|
158
|
-
p[p.length - 1] += "{" + body + "}";
|
|
159
|
-
var postParts = parseCommaParts(post);
|
|
160
|
-
if (post.length) {
|
|
161
|
-
p[p.length - 1] += postParts.shift();
|
|
162
|
-
p.push.apply(p, postParts);
|
|
163
|
-
}
|
|
164
|
-
parts.push.apply(parts, p);
|
|
165
|
-
return parts;
|
|
166
|
-
}
|
|
167
|
-
function expandTop(str) {
|
|
168
|
-
if (!str)
|
|
169
|
-
return [];
|
|
170
|
-
if (str.substr(0, 2) === "{}") {
|
|
171
|
-
str = "\\{\\}" + str.substr(2);
|
|
172
|
-
}
|
|
173
|
-
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
174
|
-
}
|
|
175
|
-
function embrace(str) {
|
|
176
|
-
return "{" + str + "}";
|
|
177
|
-
}
|
|
178
|
-
function isPadded(el) {
|
|
179
|
-
return /^-?0\d/.test(el);
|
|
180
|
-
}
|
|
181
|
-
function lte(i2, y) {
|
|
182
|
-
return i2 <= y;
|
|
183
|
-
}
|
|
184
|
-
function gte(i2, y) {
|
|
185
|
-
return i2 >= y;
|
|
186
|
-
}
|
|
187
|
-
function expand2(str, isTop) {
|
|
188
|
-
var expansions = [];
|
|
189
|
-
var m = balanced("{", "}", str);
|
|
190
|
-
if (!m) return [str];
|
|
191
|
-
var pre = m.pre;
|
|
192
|
-
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
193
|
-
if (/\$$/.test(m.pre)) {
|
|
194
|
-
for (var k = 0; k < post.length; k++) {
|
|
195
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
196
|
-
expansions.push(expansion);
|
|
197
|
-
}
|
|
198
|
-
} else {
|
|
199
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
200
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
201
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
202
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
203
|
-
if (!isSequence && !isOptions) {
|
|
204
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
205
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
206
|
-
return expand2(str);
|
|
207
|
-
}
|
|
208
|
-
return [str];
|
|
209
|
-
}
|
|
210
|
-
var n;
|
|
211
|
-
if (isSequence) {
|
|
212
|
-
n = m.body.split(/\.\./);
|
|
213
|
-
} else {
|
|
214
|
-
n = parseCommaParts(m.body);
|
|
215
|
-
if (n.length === 1) {
|
|
216
|
-
n = expand2(n[0], false).map(embrace);
|
|
217
|
-
if (n.length === 1) {
|
|
218
|
-
return post.map(function(p) {
|
|
219
|
-
return m.pre + n[0] + p;
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
var N;
|
|
225
|
-
if (isSequence) {
|
|
226
|
-
var x = numeric(n[0]);
|
|
227
|
-
var y = numeric(n[1]);
|
|
228
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
229
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
230
|
-
var test = lte;
|
|
231
|
-
var reverse = y < x;
|
|
232
|
-
if (reverse) {
|
|
233
|
-
incr *= -1;
|
|
234
|
-
test = gte;
|
|
235
|
-
}
|
|
236
|
-
var pad = n.some(isPadded);
|
|
237
|
-
N = [];
|
|
238
|
-
for (var i2 = x; test(i2, y); i2 += incr) {
|
|
239
|
-
var c;
|
|
240
|
-
if (isAlphaSequence) {
|
|
241
|
-
c = String.fromCharCode(i2);
|
|
242
|
-
if (c === "\\")
|
|
243
|
-
c = "";
|
|
244
|
-
} else {
|
|
245
|
-
c = String(i2);
|
|
246
|
-
if (pad) {
|
|
247
|
-
var need = width - c.length;
|
|
248
|
-
if (need > 0) {
|
|
249
|
-
var z = new Array(need + 1).join("0");
|
|
250
|
-
if (i2 < 0)
|
|
251
|
-
c = "-" + z + c.slice(1);
|
|
252
|
-
else
|
|
253
|
-
c = z + c;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
N.push(c);
|
|
258
|
-
}
|
|
259
|
-
} else {
|
|
260
|
-
N = [];
|
|
261
|
-
for (var j = 0; j < n.length; j++) {
|
|
262
|
-
N.push.apply(N, expand2(n[j], false));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
for (var j = 0; j < N.length; j++) {
|
|
266
|
-
for (var k = 0; k < post.length; k++) {
|
|
267
|
-
var expansion = pre + N[j] + post[k];
|
|
268
|
-
if (!isTop || isSequence || expansion)
|
|
269
|
-
expansions.push(expansion);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
return expansions;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
32
|
var Build = {
|
|
278
33
|
isDev: BUILD.isDev ? true : false,
|
|
279
34
|
isBrowser: true,
|
|
@@ -814,1534 +569,11 @@ var readTask = /* @__PURE__ */ queueTask(queueDomReads, false);
|
|
|
814
569
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
815
570
|
|
|
816
571
|
// src/runtime/asset-path.ts
|
|
817
|
-
var getAssetPath = (
|
|
818
|
-
const assetUrl = new URL(
|
|
572
|
+
var getAssetPath = (path) => {
|
|
573
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
819
574
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
820
575
|
};
|
|
821
|
-
var setAssetPath = (
|
|
822
|
-
|
|
823
|
-
// src/utils/helpers.ts
|
|
824
|
-
var isDef = (v) => v != null && v !== void 0;
|
|
825
|
-
var isComplexType = (o) => {
|
|
826
|
-
o = typeof o;
|
|
827
|
-
return o === "object" || o === "function";
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
831
|
-
var import_brace_expansion = __toESM(require_brace_expansion());
|
|
832
|
-
|
|
833
|
-
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
834
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
835
|
-
var assertValidPattern = (pattern) => {
|
|
836
|
-
if (typeof pattern !== "string") {
|
|
837
|
-
throw new TypeError("invalid pattern");
|
|
838
|
-
}
|
|
839
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
840
|
-
throw new TypeError("pattern is too long");
|
|
841
|
-
}
|
|
842
|
-
};
|
|
843
|
-
|
|
844
|
-
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
845
|
-
var posixClasses = {
|
|
846
|
-
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
847
|
-
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
848
|
-
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
849
|
-
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
850
|
-
"[:cntrl:]": ["\\p{Cc}", true],
|
|
851
|
-
"[:digit:]": ["\\p{Nd}", true],
|
|
852
|
-
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
853
|
-
"[:lower:]": ["\\p{Ll}", true],
|
|
854
|
-
"[:print:]": ["\\p{C}", true],
|
|
855
|
-
"[:punct:]": ["\\p{P}", true],
|
|
856
|
-
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
857
|
-
"[:upper:]": ["\\p{Lu}", true],
|
|
858
|
-
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
859
|
-
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
860
|
-
};
|
|
861
|
-
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
862
|
-
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
863
|
-
var rangesToString = (ranges) => ranges.join("");
|
|
864
|
-
var parseClass = (glob, position) => {
|
|
865
|
-
const pos = position;
|
|
866
|
-
if (glob.charAt(pos) !== "[") {
|
|
867
|
-
throw new Error("not in a brace expression");
|
|
868
|
-
}
|
|
869
|
-
const ranges = [];
|
|
870
|
-
const negs = [];
|
|
871
|
-
let i2 = pos + 1;
|
|
872
|
-
let sawStart = false;
|
|
873
|
-
let uflag = false;
|
|
874
|
-
let escaping = false;
|
|
875
|
-
let negate = false;
|
|
876
|
-
let endPos = pos;
|
|
877
|
-
let rangeStart = "";
|
|
878
|
-
WHILE: while (i2 < glob.length) {
|
|
879
|
-
const c = glob.charAt(i2);
|
|
880
|
-
if ((c === "!" || c === "^") && i2 === pos + 1) {
|
|
881
|
-
negate = true;
|
|
882
|
-
i2++;
|
|
883
|
-
continue;
|
|
884
|
-
}
|
|
885
|
-
if (c === "]" && sawStart && !escaping) {
|
|
886
|
-
endPos = i2 + 1;
|
|
887
|
-
break;
|
|
888
|
-
}
|
|
889
|
-
sawStart = true;
|
|
890
|
-
if (c === "\\") {
|
|
891
|
-
if (!escaping) {
|
|
892
|
-
escaping = true;
|
|
893
|
-
i2++;
|
|
894
|
-
continue;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
if (c === "[" && !escaping) {
|
|
898
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
899
|
-
if (glob.startsWith(cls, i2)) {
|
|
900
|
-
if (rangeStart) {
|
|
901
|
-
return ["$.", false, glob.length - pos, true];
|
|
902
|
-
}
|
|
903
|
-
i2 += cls.length;
|
|
904
|
-
if (neg)
|
|
905
|
-
negs.push(unip);
|
|
906
|
-
else
|
|
907
|
-
ranges.push(unip);
|
|
908
|
-
uflag = uflag || u;
|
|
909
|
-
continue WHILE;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
escaping = false;
|
|
914
|
-
if (rangeStart) {
|
|
915
|
-
if (c > rangeStart) {
|
|
916
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
917
|
-
} else if (c === rangeStart) {
|
|
918
|
-
ranges.push(braceEscape(c));
|
|
919
|
-
}
|
|
920
|
-
rangeStart = "";
|
|
921
|
-
i2++;
|
|
922
|
-
continue;
|
|
923
|
-
}
|
|
924
|
-
if (glob.startsWith("-]", i2 + 1)) {
|
|
925
|
-
ranges.push(braceEscape(c + "-"));
|
|
926
|
-
i2 += 2;
|
|
927
|
-
continue;
|
|
928
|
-
}
|
|
929
|
-
if (glob.startsWith("-", i2 + 1)) {
|
|
930
|
-
rangeStart = c;
|
|
931
|
-
i2 += 2;
|
|
932
|
-
continue;
|
|
933
|
-
}
|
|
934
|
-
ranges.push(braceEscape(c));
|
|
935
|
-
i2++;
|
|
936
|
-
}
|
|
937
|
-
if (endPos < i2) {
|
|
938
|
-
return ["", false, 0, false];
|
|
939
|
-
}
|
|
940
|
-
if (!ranges.length && !negs.length) {
|
|
941
|
-
return ["$.", false, glob.length - pos, true];
|
|
942
|
-
}
|
|
943
|
-
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
944
|
-
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
945
|
-
return [regexpEscape(r), false, endPos - pos, false];
|
|
946
|
-
}
|
|
947
|
-
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
948
|
-
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
949
|
-
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
950
|
-
return [comb, uflag, endPos - pos, true];
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
// node_modules/minimatch/dist/esm/unescape.js
|
|
954
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
955
|
-
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
// node_modules/minimatch/dist/esm/ast.js
|
|
959
|
-
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
960
|
-
var isExtglobType = (c) => types.has(c);
|
|
961
|
-
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
962
|
-
var startNoDot = "(?!\\.)";
|
|
963
|
-
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
964
|
-
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
965
|
-
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
966
|
-
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
967
|
-
var qmark = "[^/]";
|
|
968
|
-
var star = qmark + "*?";
|
|
969
|
-
var starNoEmpty = qmark + "+?";
|
|
970
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
971
|
-
var _AST = class _AST {
|
|
972
|
-
constructor(type, parent, options = {}) {
|
|
973
|
-
__privateAdd(this, _AST_instances);
|
|
974
|
-
__publicField(this, "type");
|
|
975
|
-
__privateAdd(this, _root);
|
|
976
|
-
__privateAdd(this, _hasMagic);
|
|
977
|
-
__privateAdd(this, _uflag, false);
|
|
978
|
-
__privateAdd(this, _parts, []);
|
|
979
|
-
__privateAdd(this, _parent);
|
|
980
|
-
__privateAdd(this, _parentIndex);
|
|
981
|
-
__privateAdd(this, _negs);
|
|
982
|
-
__privateAdd(this, _filledNegs, false);
|
|
983
|
-
__privateAdd(this, _options);
|
|
984
|
-
__privateAdd(this, _toString);
|
|
985
|
-
// set to true if it's an extglob with no children
|
|
986
|
-
// (which really means one child of '')
|
|
987
|
-
__privateAdd(this, _emptyExt, false);
|
|
988
|
-
this.type = type;
|
|
989
|
-
if (type)
|
|
990
|
-
__privateSet(this, _hasMagic, true);
|
|
991
|
-
__privateSet(this, _parent, parent);
|
|
992
|
-
__privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
|
|
993
|
-
__privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
|
|
994
|
-
__privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
|
|
995
|
-
if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
|
|
996
|
-
__privateGet(this, _negs).push(this);
|
|
997
|
-
__privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
|
|
998
|
-
}
|
|
999
|
-
get hasMagic() {
|
|
1000
|
-
if (__privateGet(this, _hasMagic) !== void 0)
|
|
1001
|
-
return __privateGet(this, _hasMagic);
|
|
1002
|
-
for (const p of __privateGet(this, _parts)) {
|
|
1003
|
-
if (typeof p === "string")
|
|
1004
|
-
continue;
|
|
1005
|
-
if (p.type || p.hasMagic)
|
|
1006
|
-
return __privateSet(this, _hasMagic, true);
|
|
1007
|
-
}
|
|
1008
|
-
return __privateGet(this, _hasMagic);
|
|
1009
|
-
}
|
|
1010
|
-
// reconstructs the pattern
|
|
1011
|
-
toString() {
|
|
1012
|
-
if (__privateGet(this, _toString) !== void 0)
|
|
1013
|
-
return __privateGet(this, _toString);
|
|
1014
|
-
if (!this.type) {
|
|
1015
|
-
return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
|
|
1016
|
-
} else {
|
|
1017
|
-
return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
push(...parts) {
|
|
1021
|
-
for (const p of parts) {
|
|
1022
|
-
if (p === "")
|
|
1023
|
-
continue;
|
|
1024
|
-
if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
|
|
1025
|
-
throw new Error("invalid part: " + p);
|
|
1026
|
-
}
|
|
1027
|
-
__privateGet(this, _parts).push(p);
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
toJSON() {
|
|
1031
|
-
var _a;
|
|
1032
|
-
const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
|
|
1033
|
-
if (this.isStart() && !this.type)
|
|
1034
|
-
ret.unshift([]);
|
|
1035
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
|
|
1036
|
-
ret.push({});
|
|
1037
|
-
}
|
|
1038
|
-
return ret;
|
|
1039
|
-
}
|
|
1040
|
-
isStart() {
|
|
1041
|
-
var _a;
|
|
1042
|
-
if (__privateGet(this, _root) === this)
|
|
1043
|
-
return true;
|
|
1044
|
-
if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
|
|
1045
|
-
return false;
|
|
1046
|
-
if (__privateGet(this, _parentIndex) === 0)
|
|
1047
|
-
return true;
|
|
1048
|
-
const p = __privateGet(this, _parent);
|
|
1049
|
-
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
1050
|
-
const pp = __privateGet(p, _parts)[i2];
|
|
1051
|
-
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
1052
|
-
return false;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
return true;
|
|
1056
|
-
}
|
|
1057
|
-
isEnd() {
|
|
1058
|
-
var _a, _b, _c;
|
|
1059
|
-
if (__privateGet(this, _root) === this)
|
|
1060
|
-
return true;
|
|
1061
|
-
if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
|
|
1062
|
-
return true;
|
|
1063
|
-
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
1064
|
-
return false;
|
|
1065
|
-
if (!this.type)
|
|
1066
|
-
return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
|
|
1067
|
-
const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
|
|
1068
|
-
return __privateGet(this, _parentIndex) === pl - 1;
|
|
1069
|
-
}
|
|
1070
|
-
copyIn(part) {
|
|
1071
|
-
if (typeof part === "string")
|
|
1072
|
-
this.push(part);
|
|
1073
|
-
else
|
|
1074
|
-
this.push(part.clone(this));
|
|
1075
|
-
}
|
|
1076
|
-
clone(parent) {
|
|
1077
|
-
const c = new _AST(this.type, parent);
|
|
1078
|
-
for (const p of __privateGet(this, _parts)) {
|
|
1079
|
-
c.copyIn(p);
|
|
1080
|
-
}
|
|
1081
|
-
return c;
|
|
1082
|
-
}
|
|
1083
|
-
static fromGlob(pattern, options = {}) {
|
|
1084
|
-
var _a;
|
|
1085
|
-
const ast = new _AST(null, void 0, options);
|
|
1086
|
-
__privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
|
|
1087
|
-
return ast;
|
|
1088
|
-
}
|
|
1089
|
-
// returns the regular expression if there's magic, or the unescaped
|
|
1090
|
-
// string if not.
|
|
1091
|
-
toMMPattern() {
|
|
1092
|
-
if (this !== __privateGet(this, _root))
|
|
1093
|
-
return __privateGet(this, _root).toMMPattern();
|
|
1094
|
-
const glob = this.toString();
|
|
1095
|
-
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
1096
|
-
const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
1097
|
-
if (!anyMagic) {
|
|
1098
|
-
return body;
|
|
1099
|
-
}
|
|
1100
|
-
const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
|
|
1101
|
-
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
1102
|
-
_src: re,
|
|
1103
|
-
_glob: glob
|
|
1104
|
-
});
|
|
1105
|
-
}
|
|
1106
|
-
get options() {
|
|
1107
|
-
return __privateGet(this, _options);
|
|
1108
|
-
}
|
|
1109
|
-
// returns the string match, the regexp source, whether there's magic
|
|
1110
|
-
// in the regexp (so a regular expression is required) and whether or
|
|
1111
|
-
// not the uflag is needed for the regular expression (for posix classes)
|
|
1112
|
-
// TODO: instead of injecting the start/end at this point, just return
|
|
1113
|
-
// the BODY of the regexp, along with the start/end portions suitable
|
|
1114
|
-
// for binding the start/end in either a joined full-path makeRe context
|
|
1115
|
-
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
1116
|
-
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
1117
|
-
//
|
|
1118
|
-
// In part-matching mode, the start is:
|
|
1119
|
-
// - if not isStart: nothing
|
|
1120
|
-
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
1121
|
-
// - if dots allowed or not possible: ^
|
|
1122
|
-
// - if dots possible and not allowed: ^(?!\.)
|
|
1123
|
-
// end is:
|
|
1124
|
-
// - if not isEnd(): nothing
|
|
1125
|
-
// - else: $
|
|
1126
|
-
//
|
|
1127
|
-
// In full-path matching mode, we put the slash at the START of the
|
|
1128
|
-
// pattern, so start is:
|
|
1129
|
-
// - if first pattern: same as part-matching mode
|
|
1130
|
-
// - if not isStart(): nothing
|
|
1131
|
-
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
1132
|
-
// - if dots allowed or not possible: /
|
|
1133
|
-
// - if dots possible and not allowed: /(?!\.)
|
|
1134
|
-
// end is:
|
|
1135
|
-
// - if last pattern, same as part-matching mode
|
|
1136
|
-
// - else nothing
|
|
1137
|
-
//
|
|
1138
|
-
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
1139
|
-
// there to bind the end of the negated pattern portion, and it's easier to
|
|
1140
|
-
// just stick it in now rather than try to inject it later in the middle of
|
|
1141
|
-
// the pattern.
|
|
1142
|
-
//
|
|
1143
|
-
// We can just always return the same end, and leave it up to the caller
|
|
1144
|
-
// to know whether it's going to be used joined or in parts.
|
|
1145
|
-
// And, if the start is adjusted slightly, can do the same there:
|
|
1146
|
-
// - if not isStart: nothing
|
|
1147
|
-
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
1148
|
-
// - if dots allowed or not possible: (?:/|^)
|
|
1149
|
-
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
1150
|
-
//
|
|
1151
|
-
// But it's better to have a simpler binding without a conditional, for
|
|
1152
|
-
// performance, so probably better to return both start options.
|
|
1153
|
-
//
|
|
1154
|
-
// Then the caller just ignores the end if it's not the first pattern,
|
|
1155
|
-
// and the start always gets applied.
|
|
1156
|
-
//
|
|
1157
|
-
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
1158
|
-
// so the caller can just attach $ at the end of the pattern when building.
|
|
1159
|
-
//
|
|
1160
|
-
// So the todo is:
|
|
1161
|
-
// - better detect what kind of start is needed
|
|
1162
|
-
// - return both flavors of starting pattern
|
|
1163
|
-
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
1164
|
-
//
|
|
1165
|
-
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
1166
|
-
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
1167
|
-
// that dot prevention biz to live in the extglob portions, because eg
|
|
1168
|
-
// +(*|.x*) can match .xy but not .yx.
|
|
1169
|
-
//
|
|
1170
|
-
// So, return the two flavors if it's #root and the first child is not an
|
|
1171
|
-
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
1172
|
-
// use the (?:^|/) style of start binding.
|
|
1173
|
-
//
|
|
1174
|
-
// Even simplified further:
|
|
1175
|
-
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
1176
|
-
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
1177
|
-
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
1178
|
-
toRegExpSource(allowDot) {
|
|
1179
|
-
var _a;
|
|
1180
|
-
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
1181
|
-
if (__privateGet(this, _root) === this)
|
|
1182
|
-
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
1183
|
-
if (!this.type) {
|
|
1184
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
1185
|
-
const src = __privateGet(this, _parts).map((p) => {
|
|
1186
|
-
var _a2;
|
|
1187
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
1188
|
-
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
1189
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1190
|
-
return re;
|
|
1191
|
-
}).join("");
|
|
1192
|
-
let start2 = "";
|
|
1193
|
-
if (this.isStart()) {
|
|
1194
|
-
if (typeof __privateGet(this, _parts)[0] === "string") {
|
|
1195
|
-
const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
|
|
1196
|
-
if (!dotTravAllowed) {
|
|
1197
|
-
const aps = addPatternStart;
|
|
1198
|
-
const needNoTrav = (
|
|
1199
|
-
// dots are allowed, and the pattern starts with [ or .
|
|
1200
|
-
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
1201
|
-
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
1202
|
-
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
1203
|
-
);
|
|
1204
|
-
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
1205
|
-
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
let end = "";
|
|
1210
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
|
|
1211
|
-
end = "(?:$|\\/)";
|
|
1212
|
-
}
|
|
1213
|
-
const final2 = start2 + src + end;
|
|
1214
|
-
return [
|
|
1215
|
-
final2,
|
|
1216
|
-
unescape(src),
|
|
1217
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1218
|
-
__privateGet(this, _uflag)
|
|
1219
|
-
];
|
|
1220
|
-
}
|
|
1221
|
-
const repeated = this.type === "*" || this.type === "+";
|
|
1222
|
-
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
1223
|
-
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
1224
|
-
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
1225
|
-
const s = this.toString();
|
|
1226
|
-
__privateSet(this, _parts, [s]);
|
|
1227
|
-
this.type = null;
|
|
1228
|
-
__privateSet(this, _hasMagic, void 0);
|
|
1229
|
-
return [s, unescape(this.toString()), false, false];
|
|
1230
|
-
}
|
|
1231
|
-
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
1232
|
-
if (bodyDotAllowed === body) {
|
|
1233
|
-
bodyDotAllowed = "";
|
|
1234
|
-
}
|
|
1235
|
-
if (bodyDotAllowed) {
|
|
1236
|
-
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
1237
|
-
}
|
|
1238
|
-
let final = "";
|
|
1239
|
-
if (this.type === "!" && __privateGet(this, _emptyExt)) {
|
|
1240
|
-
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
1241
|
-
} else {
|
|
1242
|
-
const close = this.type === "!" ? (
|
|
1243
|
-
// !() must match something,but !(x) can match ''
|
|
1244
|
-
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
1245
|
-
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
1246
|
-
final = start + body + close;
|
|
1247
|
-
}
|
|
1248
|
-
return [
|
|
1249
|
-
final,
|
|
1250
|
-
unescape(body),
|
|
1251
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
1252
|
-
__privateGet(this, _uflag)
|
|
1253
|
-
];
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
_root = new WeakMap();
|
|
1257
|
-
_hasMagic = new WeakMap();
|
|
1258
|
-
_uflag = new WeakMap();
|
|
1259
|
-
_parts = new WeakMap();
|
|
1260
|
-
_parent = new WeakMap();
|
|
1261
|
-
_parentIndex = new WeakMap();
|
|
1262
|
-
_negs = new WeakMap();
|
|
1263
|
-
_filledNegs = new WeakMap();
|
|
1264
|
-
_options = new WeakMap();
|
|
1265
|
-
_toString = new WeakMap();
|
|
1266
|
-
_emptyExt = new WeakMap();
|
|
1267
|
-
_AST_instances = new WeakSet();
|
|
1268
|
-
fillNegs_fn = function() {
|
|
1269
|
-
if (this !== __privateGet(this, _root))
|
|
1270
|
-
throw new Error("should only call on root");
|
|
1271
|
-
if (__privateGet(this, _filledNegs))
|
|
1272
|
-
return this;
|
|
1273
|
-
this.toString();
|
|
1274
|
-
__privateSet(this, _filledNegs, true);
|
|
1275
|
-
let n;
|
|
1276
|
-
while (n = __privateGet(this, _negs).pop()) {
|
|
1277
|
-
if (n.type !== "!")
|
|
1278
|
-
continue;
|
|
1279
|
-
let p = n;
|
|
1280
|
-
let pp = __privateGet(p, _parent);
|
|
1281
|
-
while (pp) {
|
|
1282
|
-
for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
|
|
1283
|
-
for (const part of __privateGet(n, _parts)) {
|
|
1284
|
-
if (typeof part === "string") {
|
|
1285
|
-
throw new Error("string part in extglob AST??");
|
|
1286
|
-
}
|
|
1287
|
-
part.copyIn(__privateGet(pp, _parts)[i2]);
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
p = pp;
|
|
1291
|
-
pp = __privateGet(p, _parent);
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
return this;
|
|
1295
|
-
};
|
|
1296
|
-
_AST_static = new WeakSet();
|
|
1297
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
1298
|
-
var _a, _b;
|
|
1299
|
-
let escaping = false;
|
|
1300
|
-
let inBrace = false;
|
|
1301
|
-
let braceStart = -1;
|
|
1302
|
-
let braceNeg = false;
|
|
1303
|
-
if (ast.type === null) {
|
|
1304
|
-
let i3 = pos;
|
|
1305
|
-
let acc2 = "";
|
|
1306
|
-
while (i3 < str.length) {
|
|
1307
|
-
const c = str.charAt(i3++);
|
|
1308
|
-
if (escaping || c === "\\") {
|
|
1309
|
-
escaping = !escaping;
|
|
1310
|
-
acc2 += c;
|
|
1311
|
-
continue;
|
|
1312
|
-
}
|
|
1313
|
-
if (inBrace) {
|
|
1314
|
-
if (i3 === braceStart + 1) {
|
|
1315
|
-
if (c === "^" || c === "!") {
|
|
1316
|
-
braceNeg = true;
|
|
1317
|
-
}
|
|
1318
|
-
} else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
|
|
1319
|
-
inBrace = false;
|
|
1320
|
-
}
|
|
1321
|
-
acc2 += c;
|
|
1322
|
-
continue;
|
|
1323
|
-
} else if (c === "[") {
|
|
1324
|
-
inBrace = true;
|
|
1325
|
-
braceStart = i3;
|
|
1326
|
-
braceNeg = false;
|
|
1327
|
-
acc2 += c;
|
|
1328
|
-
continue;
|
|
1329
|
-
}
|
|
1330
|
-
if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
|
|
1331
|
-
ast.push(acc2);
|
|
1332
|
-
acc2 = "";
|
|
1333
|
-
const ext2 = new _AST(c, ast);
|
|
1334
|
-
i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
|
|
1335
|
-
ast.push(ext2);
|
|
1336
|
-
continue;
|
|
1337
|
-
}
|
|
1338
|
-
acc2 += c;
|
|
1339
|
-
}
|
|
1340
|
-
ast.push(acc2);
|
|
1341
|
-
return i3;
|
|
1342
|
-
}
|
|
1343
|
-
let i2 = pos + 1;
|
|
1344
|
-
let part = new _AST(null, ast);
|
|
1345
|
-
const parts = [];
|
|
1346
|
-
let acc = "";
|
|
1347
|
-
while (i2 < str.length) {
|
|
1348
|
-
const c = str.charAt(i2++);
|
|
1349
|
-
if (escaping || c === "\\") {
|
|
1350
|
-
escaping = !escaping;
|
|
1351
|
-
acc += c;
|
|
1352
|
-
continue;
|
|
1353
|
-
}
|
|
1354
|
-
if (inBrace) {
|
|
1355
|
-
if (i2 === braceStart + 1) {
|
|
1356
|
-
if (c === "^" || c === "!") {
|
|
1357
|
-
braceNeg = true;
|
|
1358
|
-
}
|
|
1359
|
-
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
1360
|
-
inBrace = false;
|
|
1361
|
-
}
|
|
1362
|
-
acc += c;
|
|
1363
|
-
continue;
|
|
1364
|
-
} else if (c === "[") {
|
|
1365
|
-
inBrace = true;
|
|
1366
|
-
braceStart = i2;
|
|
1367
|
-
braceNeg = false;
|
|
1368
|
-
acc += c;
|
|
1369
|
-
continue;
|
|
1370
|
-
}
|
|
1371
|
-
if (isExtglobType(c) && str.charAt(i2) === "(") {
|
|
1372
|
-
part.push(acc);
|
|
1373
|
-
acc = "";
|
|
1374
|
-
const ext2 = new _AST(c, part);
|
|
1375
|
-
part.push(ext2);
|
|
1376
|
-
i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
|
|
1377
|
-
continue;
|
|
1378
|
-
}
|
|
1379
|
-
if (c === "|") {
|
|
1380
|
-
part.push(acc);
|
|
1381
|
-
acc = "";
|
|
1382
|
-
parts.push(part);
|
|
1383
|
-
part = new _AST(null, ast);
|
|
1384
|
-
continue;
|
|
1385
|
-
}
|
|
1386
|
-
if (c === ")") {
|
|
1387
|
-
if (acc === "" && __privateGet(ast, _parts).length === 0) {
|
|
1388
|
-
__privateSet(ast, _emptyExt, true);
|
|
1389
|
-
}
|
|
1390
|
-
part.push(acc);
|
|
1391
|
-
acc = "";
|
|
1392
|
-
ast.push(...parts, part);
|
|
1393
|
-
return i2;
|
|
1394
|
-
}
|
|
1395
|
-
acc += c;
|
|
1396
|
-
}
|
|
1397
|
-
ast.type = null;
|
|
1398
|
-
__privateSet(ast, _hasMagic, void 0);
|
|
1399
|
-
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
1400
|
-
return i2;
|
|
1401
|
-
};
|
|
1402
|
-
partsToRegExp_fn = function(dot) {
|
|
1403
|
-
return __privateGet(this, _parts).map((p) => {
|
|
1404
|
-
if (typeof p === "string") {
|
|
1405
|
-
throw new Error("string type in extglob ast??");
|
|
1406
|
-
}
|
|
1407
|
-
const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
|
|
1408
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1409
|
-
return re;
|
|
1410
|
-
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
1411
|
-
};
|
|
1412
|
-
parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
1413
|
-
let escaping = false;
|
|
1414
|
-
let re = "";
|
|
1415
|
-
let uflag = false;
|
|
1416
|
-
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1417
|
-
const c = glob.charAt(i2);
|
|
1418
|
-
if (escaping) {
|
|
1419
|
-
escaping = false;
|
|
1420
|
-
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1421
|
-
continue;
|
|
1422
|
-
}
|
|
1423
|
-
if (c === "\\") {
|
|
1424
|
-
if (i2 === glob.length - 1) {
|
|
1425
|
-
re += "\\\\";
|
|
1426
|
-
} else {
|
|
1427
|
-
escaping = true;
|
|
1428
|
-
}
|
|
1429
|
-
continue;
|
|
1430
|
-
}
|
|
1431
|
-
if (c === "[") {
|
|
1432
|
-
const [src, needUflag, consumed, magic] = parseClass(glob, i2);
|
|
1433
|
-
if (consumed) {
|
|
1434
|
-
re += src;
|
|
1435
|
-
uflag = uflag || needUflag;
|
|
1436
|
-
i2 += consumed - 1;
|
|
1437
|
-
hasMagic = hasMagic || magic;
|
|
1438
|
-
continue;
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
if (c === "*") {
|
|
1442
|
-
if (noEmpty && glob === "*")
|
|
1443
|
-
re += starNoEmpty;
|
|
1444
|
-
else
|
|
1445
|
-
re += star;
|
|
1446
|
-
hasMagic = true;
|
|
1447
|
-
continue;
|
|
1448
|
-
}
|
|
1449
|
-
if (c === "?") {
|
|
1450
|
-
re += qmark;
|
|
1451
|
-
hasMagic = true;
|
|
1452
|
-
continue;
|
|
1453
|
-
}
|
|
1454
|
-
re += regExpEscape(c);
|
|
1455
|
-
}
|
|
1456
|
-
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1457
|
-
};
|
|
1458
|
-
__privateAdd(_AST, _AST_static);
|
|
1459
|
-
var AST = _AST;
|
|
1460
|
-
|
|
1461
|
-
// node_modules/minimatch/dist/esm/escape.js
|
|
1462
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1463
|
-
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
1467
|
-
var minimatch = (p, pattern, options = {}) => {
|
|
1468
|
-
assertValidPattern(pattern);
|
|
1469
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1470
|
-
return false;
|
|
1471
|
-
}
|
|
1472
|
-
return new Minimatch(pattern, options).match(p);
|
|
1473
|
-
};
|
|
1474
|
-
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1475
|
-
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
1476
|
-
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
1477
|
-
var starDotExtTestNocase = (ext2) => {
|
|
1478
|
-
ext2 = ext2.toLowerCase();
|
|
1479
|
-
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
1480
|
-
};
|
|
1481
|
-
var starDotExtTestNocaseDot = (ext2) => {
|
|
1482
|
-
ext2 = ext2.toLowerCase();
|
|
1483
|
-
return (f) => f.toLowerCase().endsWith(ext2);
|
|
1484
|
-
};
|
|
1485
|
-
var starDotStarRE = /^\*+\.\*+$/;
|
|
1486
|
-
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
1487
|
-
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
1488
|
-
var dotStarRE = /^\.\*+$/;
|
|
1489
|
-
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
1490
|
-
var starRE = /^\*+$/;
|
|
1491
|
-
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
1492
|
-
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
1493
|
-
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
1494
|
-
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
1495
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1496
|
-
if (!ext2)
|
|
1497
|
-
return noext;
|
|
1498
|
-
ext2 = ext2.toLowerCase();
|
|
1499
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1500
|
-
};
|
|
1501
|
-
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
1502
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1503
|
-
if (!ext2)
|
|
1504
|
-
return noext;
|
|
1505
|
-
ext2 = ext2.toLowerCase();
|
|
1506
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1507
|
-
};
|
|
1508
|
-
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
1509
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1510
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1511
|
-
};
|
|
1512
|
-
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
1513
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1514
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1515
|
-
};
|
|
1516
|
-
var qmarksTestNoExt = ([$0]) => {
|
|
1517
|
-
const len = $0.length;
|
|
1518
|
-
return (f) => f.length === len && !f.startsWith(".");
|
|
1519
|
-
};
|
|
1520
|
-
var qmarksTestNoExtDot = ([$0]) => {
|
|
1521
|
-
const len = $0.length;
|
|
1522
|
-
return (f) => f.length === len && f !== "." && f !== "..";
|
|
1523
|
-
};
|
|
1524
|
-
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1525
|
-
var path = {
|
|
1526
|
-
win32: { sep: "\\" },
|
|
1527
|
-
posix: { sep: "/" }
|
|
1528
|
-
};
|
|
1529
|
-
var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
1530
|
-
minimatch.sep = sep;
|
|
1531
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
1532
|
-
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1533
|
-
var qmark2 = "[^/]";
|
|
1534
|
-
var star2 = qmark2 + "*?";
|
|
1535
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1536
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1537
|
-
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1538
|
-
minimatch.filter = filter;
|
|
1539
|
-
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1540
|
-
var defaults = (def) => {
|
|
1541
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1542
|
-
return minimatch;
|
|
1543
|
-
}
|
|
1544
|
-
const orig = minimatch;
|
|
1545
|
-
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1546
|
-
return Object.assign(m, {
|
|
1547
|
-
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1548
|
-
constructor(pattern, options = {}) {
|
|
1549
|
-
super(pattern, ext(def, options));
|
|
1550
|
-
}
|
|
1551
|
-
static defaults(options) {
|
|
1552
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1555
|
-
AST: class AST extends orig.AST {
|
|
1556
|
-
/* c8 ignore start */
|
|
1557
|
-
constructor(type, parent, options = {}) {
|
|
1558
|
-
super(type, parent, ext(def, options));
|
|
1559
|
-
}
|
|
1560
|
-
/* c8 ignore stop */
|
|
1561
|
-
static fromGlob(pattern, options = {}) {
|
|
1562
|
-
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1563
|
-
}
|
|
1564
|
-
},
|
|
1565
|
-
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1566
|
-
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1567
|
-
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1568
|
-
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1569
|
-
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1570
|
-
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1571
|
-
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1572
|
-
sep: orig.sep,
|
|
1573
|
-
GLOBSTAR
|
|
1574
|
-
});
|
|
1575
|
-
};
|
|
1576
|
-
minimatch.defaults = defaults;
|
|
1577
|
-
var braceExpand = (pattern, options = {}) => {
|
|
1578
|
-
assertValidPattern(pattern);
|
|
1579
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1580
|
-
return [pattern];
|
|
1581
|
-
}
|
|
1582
|
-
return (0, import_brace_expansion.default)(pattern);
|
|
1583
|
-
};
|
|
1584
|
-
minimatch.braceExpand = braceExpand;
|
|
1585
|
-
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1586
|
-
minimatch.makeRe = makeRe;
|
|
1587
|
-
var match = (list, pattern, options = {}) => {
|
|
1588
|
-
const mm = new Minimatch(pattern, options);
|
|
1589
|
-
list = list.filter((f) => mm.match(f));
|
|
1590
|
-
if (mm.options.nonull && !list.length) {
|
|
1591
|
-
list.push(pattern);
|
|
1592
|
-
}
|
|
1593
|
-
return list;
|
|
1594
|
-
};
|
|
1595
|
-
minimatch.match = match;
|
|
1596
|
-
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1597
|
-
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1598
|
-
var Minimatch = class {
|
|
1599
|
-
options;
|
|
1600
|
-
set;
|
|
1601
|
-
pattern;
|
|
1602
|
-
windowsPathsNoEscape;
|
|
1603
|
-
nonegate;
|
|
1604
|
-
negate;
|
|
1605
|
-
comment;
|
|
1606
|
-
empty;
|
|
1607
|
-
preserveMultipleSlashes;
|
|
1608
|
-
partial;
|
|
1609
|
-
globSet;
|
|
1610
|
-
globParts;
|
|
1611
|
-
nocase;
|
|
1612
|
-
isWindows;
|
|
1613
|
-
platform;
|
|
1614
|
-
windowsNoMagicRoot;
|
|
1615
|
-
regexp;
|
|
1616
|
-
constructor(pattern, options = {}) {
|
|
1617
|
-
assertValidPattern(pattern);
|
|
1618
|
-
options = options || {};
|
|
1619
|
-
this.options = options;
|
|
1620
|
-
this.pattern = pattern;
|
|
1621
|
-
this.platform = options.platform || defaultPlatform;
|
|
1622
|
-
this.isWindows = this.platform === "win32";
|
|
1623
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
|
|
1624
|
-
if (this.windowsPathsNoEscape) {
|
|
1625
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1626
|
-
}
|
|
1627
|
-
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1628
|
-
this.regexp = null;
|
|
1629
|
-
this.negate = false;
|
|
1630
|
-
this.nonegate = !!options.nonegate;
|
|
1631
|
-
this.comment = false;
|
|
1632
|
-
this.empty = false;
|
|
1633
|
-
this.partial = !!options.partial;
|
|
1634
|
-
this.nocase = !!this.options.nocase;
|
|
1635
|
-
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1636
|
-
this.globSet = [];
|
|
1637
|
-
this.globParts = [];
|
|
1638
|
-
this.set = [];
|
|
1639
|
-
this.make();
|
|
1640
|
-
}
|
|
1641
|
-
hasMagic() {
|
|
1642
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
1643
|
-
return true;
|
|
1644
|
-
}
|
|
1645
|
-
for (const pattern of this.set) {
|
|
1646
|
-
for (const part of pattern) {
|
|
1647
|
-
if (typeof part !== "string")
|
|
1648
|
-
return true;
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
return false;
|
|
1652
|
-
}
|
|
1653
|
-
debug(..._) {
|
|
1654
|
-
}
|
|
1655
|
-
make() {
|
|
1656
|
-
const pattern = this.pattern;
|
|
1657
|
-
const options = this.options;
|
|
1658
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1659
|
-
this.comment = true;
|
|
1660
|
-
return;
|
|
1661
|
-
}
|
|
1662
|
-
if (!pattern) {
|
|
1663
|
-
this.empty = true;
|
|
1664
|
-
return;
|
|
1665
|
-
}
|
|
1666
|
-
this.parseNegate();
|
|
1667
|
-
this.globSet = [...new Set(this.braceExpand())];
|
|
1668
|
-
if (options.debug) {
|
|
1669
|
-
this.debug = (...args) => console.error(...args);
|
|
1670
|
-
}
|
|
1671
|
-
this.debug(this.pattern, this.globSet);
|
|
1672
|
-
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1673
|
-
this.globParts = this.preprocess(rawGlobParts);
|
|
1674
|
-
this.debug(this.pattern, this.globParts);
|
|
1675
|
-
let set = this.globParts.map((s, _, __) => {
|
|
1676
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1677
|
-
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1678
|
-
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1679
|
-
if (isUNC) {
|
|
1680
|
-
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1681
|
-
} else if (isDrive) {
|
|
1682
|
-
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
return s.map((ss) => this.parse(ss));
|
|
1686
|
-
});
|
|
1687
|
-
this.debug(this.pattern, set);
|
|
1688
|
-
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1689
|
-
if (this.isWindows) {
|
|
1690
|
-
for (let i2 = 0; i2 < this.set.length; i2++) {
|
|
1691
|
-
const p = this.set[i2];
|
|
1692
|
-
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
1693
|
-
p[2] = "?";
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
this.debug(this.pattern, this.set);
|
|
1698
|
-
}
|
|
1699
|
-
// various transforms to equivalent pattern sets that are
|
|
1700
|
-
// faster to process in a filesystem walk. The goal is to
|
|
1701
|
-
// eliminate what we can, and push all ** patterns as far
|
|
1702
|
-
// to the right as possible, even if it increases the number
|
|
1703
|
-
// of patterns that we have to process.
|
|
1704
|
-
preprocess(globParts) {
|
|
1705
|
-
if (this.options.noglobstar) {
|
|
1706
|
-
for (let i2 = 0; i2 < globParts.length; i2++) {
|
|
1707
|
-
for (let j = 0; j < globParts[i2].length; j++) {
|
|
1708
|
-
if (globParts[i2][j] === "**") {
|
|
1709
|
-
globParts[i2][j] = "*";
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1715
|
-
if (optimizationLevel >= 2) {
|
|
1716
|
-
globParts = this.firstPhasePreProcess(globParts);
|
|
1717
|
-
globParts = this.secondPhasePreProcess(globParts);
|
|
1718
|
-
} else if (optimizationLevel >= 1) {
|
|
1719
|
-
globParts = this.levelOneOptimize(globParts);
|
|
1720
|
-
} else {
|
|
1721
|
-
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1722
|
-
}
|
|
1723
|
-
return globParts;
|
|
1724
|
-
}
|
|
1725
|
-
// just get rid of adjascent ** portions
|
|
1726
|
-
adjascentGlobstarOptimize(globParts) {
|
|
1727
|
-
return globParts.map((parts) => {
|
|
1728
|
-
let gs = -1;
|
|
1729
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1730
|
-
let i2 = gs;
|
|
1731
|
-
while (parts[i2 + 1] === "**") {
|
|
1732
|
-
i2++;
|
|
1733
|
-
}
|
|
1734
|
-
if (i2 !== gs) {
|
|
1735
|
-
parts.splice(gs, i2 - gs);
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
return parts;
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
// get rid of adjascent ** and resolve .. portions
|
|
1742
|
-
levelOneOptimize(globParts) {
|
|
1743
|
-
return globParts.map((parts) => {
|
|
1744
|
-
parts = parts.reduce((set, part) => {
|
|
1745
|
-
const prev = set[set.length - 1];
|
|
1746
|
-
if (part === "**" && prev === "**") {
|
|
1747
|
-
return set;
|
|
1748
|
-
}
|
|
1749
|
-
if (part === "..") {
|
|
1750
|
-
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1751
|
-
set.pop();
|
|
1752
|
-
return set;
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
set.push(part);
|
|
1756
|
-
return set;
|
|
1757
|
-
}, []);
|
|
1758
|
-
return parts.length === 0 ? [""] : parts;
|
|
1759
|
-
});
|
|
1760
|
-
}
|
|
1761
|
-
levelTwoFileOptimize(parts) {
|
|
1762
|
-
if (!Array.isArray(parts)) {
|
|
1763
|
-
parts = this.slashSplit(parts);
|
|
1764
|
-
}
|
|
1765
|
-
let didSomething = false;
|
|
1766
|
-
do {
|
|
1767
|
-
didSomething = false;
|
|
1768
|
-
if (!this.preserveMultipleSlashes) {
|
|
1769
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1770
|
-
const p = parts[i2];
|
|
1771
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1772
|
-
continue;
|
|
1773
|
-
if (p === "." || p === "") {
|
|
1774
|
-
didSomething = true;
|
|
1775
|
-
parts.splice(i2, 1);
|
|
1776
|
-
i2--;
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1780
|
-
didSomething = true;
|
|
1781
|
-
parts.pop();
|
|
1782
|
-
}
|
|
1783
|
-
}
|
|
1784
|
-
let dd = 0;
|
|
1785
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1786
|
-
const p = parts[dd - 1];
|
|
1787
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1788
|
-
didSomething = true;
|
|
1789
|
-
parts.splice(dd - 1, 2);
|
|
1790
|
-
dd -= 2;
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
} while (didSomething);
|
|
1794
|
-
return parts.length === 0 ? [""] : parts;
|
|
1795
|
-
}
|
|
1796
|
-
// First phase: single-pattern processing
|
|
1797
|
-
// <pre> is 1 or more portions
|
|
1798
|
-
// <rest> is 1 or more portions
|
|
1799
|
-
// <p> is any portion other than ., .., '', or **
|
|
1800
|
-
// <e> is . or ''
|
|
1801
|
-
//
|
|
1802
|
-
// **/.. is *brutal* for filesystem walking performance, because
|
|
1803
|
-
// it effectively resets the recursive walk each time it occurs,
|
|
1804
|
-
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
1805
|
-
// or most strings (other than .., ., and '') can be.
|
|
1806
|
-
//
|
|
1807
|
-
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
1808
|
-
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
1809
|
-
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
1810
|
-
// **/**/<rest> -> **/<rest>
|
|
1811
|
-
//
|
|
1812
|
-
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
1813
|
-
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
1814
|
-
firstPhasePreProcess(globParts) {
|
|
1815
|
-
let didSomething = false;
|
|
1816
|
-
do {
|
|
1817
|
-
didSomething = false;
|
|
1818
|
-
for (let parts of globParts) {
|
|
1819
|
-
let gs = -1;
|
|
1820
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1821
|
-
let gss = gs;
|
|
1822
|
-
while (parts[gss + 1] === "**") {
|
|
1823
|
-
gss++;
|
|
1824
|
-
}
|
|
1825
|
-
if (gss > gs) {
|
|
1826
|
-
parts.splice(gs + 1, gss - gs);
|
|
1827
|
-
}
|
|
1828
|
-
let next = parts[gs + 1];
|
|
1829
|
-
const p = parts[gs + 2];
|
|
1830
|
-
const p2 = parts[gs + 3];
|
|
1831
|
-
if (next !== "..")
|
|
1832
|
-
continue;
|
|
1833
|
-
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
1834
|
-
continue;
|
|
1835
|
-
}
|
|
1836
|
-
didSomething = true;
|
|
1837
|
-
parts.splice(gs, 1);
|
|
1838
|
-
const other = parts.slice(0);
|
|
1839
|
-
other[gs] = "**";
|
|
1840
|
-
globParts.push(other);
|
|
1841
|
-
gs--;
|
|
1842
|
-
}
|
|
1843
|
-
if (!this.preserveMultipleSlashes) {
|
|
1844
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1845
|
-
const p = parts[i2];
|
|
1846
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1847
|
-
continue;
|
|
1848
|
-
if (p === "." || p === "") {
|
|
1849
|
-
didSomething = true;
|
|
1850
|
-
parts.splice(i2, 1);
|
|
1851
|
-
i2--;
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1855
|
-
didSomething = true;
|
|
1856
|
-
parts.pop();
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
let dd = 0;
|
|
1860
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1861
|
-
const p = parts[dd - 1];
|
|
1862
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1863
|
-
didSomething = true;
|
|
1864
|
-
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
1865
|
-
const splin = needDot ? ["."] : [];
|
|
1866
|
-
parts.splice(dd - 1, 2, ...splin);
|
|
1867
|
-
if (parts.length === 0)
|
|
1868
|
-
parts.push("");
|
|
1869
|
-
dd -= 2;
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
} while (didSomething);
|
|
1874
|
-
return globParts;
|
|
1875
|
-
}
|
|
1876
|
-
// second phase: multi-pattern dedupes
|
|
1877
|
-
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
1878
|
-
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
1879
|
-
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
1880
|
-
//
|
|
1881
|
-
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
1882
|
-
// ^-- not valid because ** doens't follow symlinks
|
|
1883
|
-
secondPhasePreProcess(globParts) {
|
|
1884
|
-
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1885
|
-
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1886
|
-
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1887
|
-
if (!matched)
|
|
1888
|
-
continue;
|
|
1889
|
-
globParts[i2] = matched;
|
|
1890
|
-
globParts[j] = [];
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
return globParts.filter((gs) => gs.length);
|
|
1894
|
-
}
|
|
1895
|
-
partsMatch(a, b, emptyGSMatch = false) {
|
|
1896
|
-
let ai = 0;
|
|
1897
|
-
let bi = 0;
|
|
1898
|
-
let result = [];
|
|
1899
|
-
let which = "";
|
|
1900
|
-
while (ai < a.length && bi < b.length) {
|
|
1901
|
-
if (a[ai] === b[bi]) {
|
|
1902
|
-
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1903
|
-
ai++;
|
|
1904
|
-
bi++;
|
|
1905
|
-
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1906
|
-
result.push(a[ai]);
|
|
1907
|
-
ai++;
|
|
1908
|
-
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1909
|
-
result.push(b[bi]);
|
|
1910
|
-
bi++;
|
|
1911
|
-
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1912
|
-
if (which === "b")
|
|
1913
|
-
return false;
|
|
1914
|
-
which = "a";
|
|
1915
|
-
result.push(a[ai]);
|
|
1916
|
-
ai++;
|
|
1917
|
-
bi++;
|
|
1918
|
-
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1919
|
-
if (which === "a")
|
|
1920
|
-
return false;
|
|
1921
|
-
which = "b";
|
|
1922
|
-
result.push(b[bi]);
|
|
1923
|
-
ai++;
|
|
1924
|
-
bi++;
|
|
1925
|
-
} else {
|
|
1926
|
-
return false;
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
return a.length === b.length && result;
|
|
1930
|
-
}
|
|
1931
|
-
parseNegate() {
|
|
1932
|
-
if (this.nonegate)
|
|
1933
|
-
return;
|
|
1934
|
-
const pattern = this.pattern;
|
|
1935
|
-
let negate = false;
|
|
1936
|
-
let negateOffset = 0;
|
|
1937
|
-
for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
|
|
1938
|
-
negate = !negate;
|
|
1939
|
-
negateOffset++;
|
|
1940
|
-
}
|
|
1941
|
-
if (negateOffset)
|
|
1942
|
-
this.pattern = pattern.slice(negateOffset);
|
|
1943
|
-
this.negate = negate;
|
|
1944
|
-
}
|
|
1945
|
-
// set partial to true to test if, for example,
|
|
1946
|
-
// "/a/b" matches the start of "/*/b/*/d"
|
|
1947
|
-
// Partial means, if you run out of file before you run
|
|
1948
|
-
// out of pattern, then that's fine, as long as all
|
|
1949
|
-
// the parts match.
|
|
1950
|
-
matchOne(file, pattern, partial = false) {
|
|
1951
|
-
const options = this.options;
|
|
1952
|
-
if (this.isWindows) {
|
|
1953
|
-
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1954
|
-
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1955
|
-
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1956
|
-
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1957
|
-
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1958
|
-
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1959
|
-
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1960
|
-
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1961
|
-
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1962
|
-
pattern[pdi] = fd;
|
|
1963
|
-
if (pdi > fdi) {
|
|
1964
|
-
pattern = pattern.slice(pdi);
|
|
1965
|
-
} else if (fdi > pdi) {
|
|
1966
|
-
file = file.slice(fdi);
|
|
1967
|
-
}
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1972
|
-
if (optimizationLevel >= 2) {
|
|
1973
|
-
file = this.levelTwoFileOptimize(file);
|
|
1974
|
-
}
|
|
1975
|
-
this.debug("matchOne", this, { file, pattern });
|
|
1976
|
-
this.debug("matchOne", file.length, pattern.length);
|
|
1977
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1978
|
-
this.debug("matchOne loop");
|
|
1979
|
-
var p = pattern[pi];
|
|
1980
|
-
var f = file[fi];
|
|
1981
|
-
this.debug(pattern, p, f);
|
|
1982
|
-
if (p === false) {
|
|
1983
|
-
return false;
|
|
1984
|
-
}
|
|
1985
|
-
if (p === GLOBSTAR) {
|
|
1986
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1987
|
-
var fr = fi;
|
|
1988
|
-
var pr = pi + 1;
|
|
1989
|
-
if (pr === pl) {
|
|
1990
|
-
this.debug("** at the end");
|
|
1991
|
-
for (; fi < fl; fi++) {
|
|
1992
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1993
|
-
return false;
|
|
1994
|
-
}
|
|
1995
|
-
return true;
|
|
1996
|
-
}
|
|
1997
|
-
while (fr < fl) {
|
|
1998
|
-
var swallowee = file[fr];
|
|
1999
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
2000
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
2001
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
2002
|
-
return true;
|
|
2003
|
-
} else {
|
|
2004
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
2005
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
2006
|
-
break;
|
|
2007
|
-
}
|
|
2008
|
-
this.debug("globstar swallow a segment, and continue");
|
|
2009
|
-
fr++;
|
|
2010
|
-
}
|
|
2011
|
-
}
|
|
2012
|
-
if (partial) {
|
|
2013
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
2014
|
-
if (fr === fl) {
|
|
2015
|
-
return true;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
return false;
|
|
2019
|
-
}
|
|
2020
|
-
let hit;
|
|
2021
|
-
if (typeof p === "string") {
|
|
2022
|
-
hit = f === p;
|
|
2023
|
-
this.debug("string match", p, f, hit);
|
|
2024
|
-
} else {
|
|
2025
|
-
hit = p.test(f);
|
|
2026
|
-
this.debug("pattern match", p, f, hit);
|
|
2027
|
-
}
|
|
2028
|
-
if (!hit)
|
|
2029
|
-
return false;
|
|
2030
|
-
}
|
|
2031
|
-
if (fi === fl && pi === pl) {
|
|
2032
|
-
return true;
|
|
2033
|
-
} else if (fi === fl) {
|
|
2034
|
-
return partial;
|
|
2035
|
-
} else if (pi === pl) {
|
|
2036
|
-
return fi === fl - 1 && file[fi] === "";
|
|
2037
|
-
} else {
|
|
2038
|
-
throw new Error("wtf?");
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
braceExpand() {
|
|
2042
|
-
return braceExpand(this.pattern, this.options);
|
|
2043
|
-
}
|
|
2044
|
-
parse(pattern) {
|
|
2045
|
-
assertValidPattern(pattern);
|
|
2046
|
-
const options = this.options;
|
|
2047
|
-
if (pattern === "**")
|
|
2048
|
-
return GLOBSTAR;
|
|
2049
|
-
if (pattern === "")
|
|
2050
|
-
return "";
|
|
2051
|
-
let m;
|
|
2052
|
-
let fastTest = null;
|
|
2053
|
-
if (m = pattern.match(starRE)) {
|
|
2054
|
-
fastTest = options.dot ? starTestDot : starTest;
|
|
2055
|
-
} else if (m = pattern.match(starDotExtRE)) {
|
|
2056
|
-
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
2057
|
-
} else if (m = pattern.match(qmarksRE)) {
|
|
2058
|
-
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
2059
|
-
} else if (m = pattern.match(starDotStarRE)) {
|
|
2060
|
-
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
2061
|
-
} else if (m = pattern.match(dotStarRE)) {
|
|
2062
|
-
fastTest = dotStarTest;
|
|
2063
|
-
}
|
|
2064
|
-
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
2065
|
-
if (fastTest && typeof re === "object") {
|
|
2066
|
-
Reflect.defineProperty(re, "test", { value: fastTest });
|
|
2067
|
-
}
|
|
2068
|
-
return re;
|
|
2069
|
-
}
|
|
2070
|
-
makeRe() {
|
|
2071
|
-
if (this.regexp || this.regexp === false)
|
|
2072
|
-
return this.regexp;
|
|
2073
|
-
const set = this.set;
|
|
2074
|
-
if (!set.length) {
|
|
2075
|
-
this.regexp = false;
|
|
2076
|
-
return this.regexp;
|
|
2077
|
-
}
|
|
2078
|
-
const options = this.options;
|
|
2079
|
-
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
2080
|
-
const flags = new Set(options.nocase ? ["i"] : []);
|
|
2081
|
-
let re = set.map((pattern) => {
|
|
2082
|
-
const pp = pattern.map((p) => {
|
|
2083
|
-
if (p instanceof RegExp) {
|
|
2084
|
-
for (const f of p.flags.split(""))
|
|
2085
|
-
flags.add(f);
|
|
2086
|
-
}
|
|
2087
|
-
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
2088
|
-
});
|
|
2089
|
-
pp.forEach((p, i2) => {
|
|
2090
|
-
const next = pp[i2 + 1];
|
|
2091
|
-
const prev = pp[i2 - 1];
|
|
2092
|
-
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
2093
|
-
return;
|
|
2094
|
-
}
|
|
2095
|
-
if (prev === void 0) {
|
|
2096
|
-
if (next !== void 0 && next !== GLOBSTAR) {
|
|
2097
|
-
pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
2098
|
-
} else {
|
|
2099
|
-
pp[i2] = twoStar;
|
|
2100
|
-
}
|
|
2101
|
-
} else if (next === void 0) {
|
|
2102
|
-
pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
|
|
2103
|
-
} else if (next !== GLOBSTAR) {
|
|
2104
|
-
pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
2105
|
-
pp[i2 + 1] = GLOBSTAR;
|
|
2106
|
-
}
|
|
2107
|
-
});
|
|
2108
|
-
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
|
2109
|
-
}).join("|");
|
|
2110
|
-
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
2111
|
-
re = "^" + open + re + close + "$";
|
|
2112
|
-
if (this.negate)
|
|
2113
|
-
re = "^(?!" + re + ").+$";
|
|
2114
|
-
try {
|
|
2115
|
-
this.regexp = new RegExp(re, [...flags].join(""));
|
|
2116
|
-
} catch (ex) {
|
|
2117
|
-
this.regexp = false;
|
|
2118
|
-
}
|
|
2119
|
-
return this.regexp;
|
|
2120
|
-
}
|
|
2121
|
-
slashSplit(p) {
|
|
2122
|
-
if (this.preserveMultipleSlashes) {
|
|
2123
|
-
return p.split("/");
|
|
2124
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
2125
|
-
return ["", ...p.split(/\/+/)];
|
|
2126
|
-
} else {
|
|
2127
|
-
return p.split(/\/+/);
|
|
2128
|
-
}
|
|
2129
|
-
}
|
|
2130
|
-
match(f, partial = this.partial) {
|
|
2131
|
-
this.debug("match", f, this.pattern);
|
|
2132
|
-
if (this.comment) {
|
|
2133
|
-
return false;
|
|
2134
|
-
}
|
|
2135
|
-
if (this.empty) {
|
|
2136
|
-
return f === "";
|
|
2137
|
-
}
|
|
2138
|
-
if (f === "/" && partial) {
|
|
2139
|
-
return true;
|
|
2140
|
-
}
|
|
2141
|
-
const options = this.options;
|
|
2142
|
-
if (this.isWindows) {
|
|
2143
|
-
f = f.split("\\").join("/");
|
|
2144
|
-
}
|
|
2145
|
-
const ff = this.slashSplit(f);
|
|
2146
|
-
this.debug(this.pattern, "split", ff);
|
|
2147
|
-
const set = this.set;
|
|
2148
|
-
this.debug(this.pattern, "set", set);
|
|
2149
|
-
let filename = ff[ff.length - 1];
|
|
2150
|
-
if (!filename) {
|
|
2151
|
-
for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
|
|
2152
|
-
filename = ff[i2];
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
for (let i2 = 0; i2 < set.length; i2++) {
|
|
2156
|
-
const pattern = set[i2];
|
|
2157
|
-
let file = ff;
|
|
2158
|
-
if (options.matchBase && pattern.length === 1) {
|
|
2159
|
-
file = [filename];
|
|
2160
|
-
}
|
|
2161
|
-
const hit = this.matchOne(file, pattern, partial);
|
|
2162
|
-
if (hit) {
|
|
2163
|
-
if (options.flipNegate) {
|
|
2164
|
-
return true;
|
|
2165
|
-
}
|
|
2166
|
-
return !this.negate;
|
|
2167
|
-
}
|
|
2168
|
-
}
|
|
2169
|
-
if (options.flipNegate) {
|
|
2170
|
-
return false;
|
|
2171
|
-
}
|
|
2172
|
-
return this.negate;
|
|
2173
|
-
}
|
|
2174
|
-
static defaults(def) {
|
|
2175
|
-
return minimatch.defaults(def).Minimatch;
|
|
2176
|
-
}
|
|
2177
|
-
};
|
|
2178
|
-
minimatch.AST = AST;
|
|
2179
|
-
minimatch.Minimatch = Minimatch;
|
|
2180
|
-
minimatch.escape = escape;
|
|
2181
|
-
minimatch.unescape = unescape;
|
|
2182
|
-
|
|
2183
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
2184
|
-
function queryNonceMetaTagContent(doc) {
|
|
2185
|
-
var _a, _b, _c;
|
|
2186
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
// src/utils/regular-expression.ts
|
|
2190
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
2191
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2192
|
-
};
|
|
2193
|
-
|
|
2194
|
-
// src/utils/remote-value.ts
|
|
2195
|
-
var RemoteValue = class _RemoteValue {
|
|
2196
|
-
/**
|
|
2197
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2198
|
-
*
|
|
2199
|
-
* @param serialized The serialized LocalValue object
|
|
2200
|
-
* @returns The original JavaScript value/object
|
|
2201
|
-
*/
|
|
2202
|
-
static fromLocalValue(serialized) {
|
|
2203
|
-
const type = serialized[TYPE_CONSTANT];
|
|
2204
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2205
|
-
switch (type) {
|
|
2206
|
-
case "string" /* String */:
|
|
2207
|
-
return value;
|
|
2208
|
-
case "boolean" /* Boolean */:
|
|
2209
|
-
return value;
|
|
2210
|
-
case "bigint" /* BigInt */:
|
|
2211
|
-
return BigInt(value);
|
|
2212
|
-
case "undefined" /* Undefined */:
|
|
2213
|
-
return void 0;
|
|
2214
|
-
case "null" /* Null */:
|
|
2215
|
-
return null;
|
|
2216
|
-
case "number" /* Number */:
|
|
2217
|
-
if (value === "NaN") return NaN;
|
|
2218
|
-
if (value === "-0") return -0;
|
|
2219
|
-
if (value === "Infinity") return Infinity;
|
|
2220
|
-
if (value === "-Infinity") return -Infinity;
|
|
2221
|
-
return value;
|
|
2222
|
-
case "array" /* Array */:
|
|
2223
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2224
|
-
case "date" /* Date */:
|
|
2225
|
-
return new Date(value);
|
|
2226
|
-
case "map" /* Map */:
|
|
2227
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
2228
|
-
for (const [key, val] of value) {
|
|
2229
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2230
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2231
|
-
map2.set(deserializedKey, deserializedValue);
|
|
2232
|
-
}
|
|
2233
|
-
return map2;
|
|
2234
|
-
case "object" /* Object */:
|
|
2235
|
-
const obj = {};
|
|
2236
|
-
for (const [key, val] of value) {
|
|
2237
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2238
|
-
}
|
|
2239
|
-
return obj;
|
|
2240
|
-
case "regexp" /* RegularExpression */:
|
|
2241
|
-
const { pattern, flags } = value;
|
|
2242
|
-
return new RegExp(pattern, flags);
|
|
2243
|
-
case "set" /* Set */:
|
|
2244
|
-
const set = /* @__PURE__ */ new Set();
|
|
2245
|
-
for (const item of value) {
|
|
2246
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
2247
|
-
}
|
|
2248
|
-
return set;
|
|
2249
|
-
case "symbol" /* Symbol */:
|
|
2250
|
-
return Symbol(value);
|
|
2251
|
-
default:
|
|
2252
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
2253
|
-
}
|
|
2254
|
-
}
|
|
2255
|
-
/**
|
|
2256
|
-
* Utility method to deserialize multiple LocalValues at once
|
|
2257
|
-
*
|
|
2258
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
2259
|
-
* @returns Array of deserialized JavaScript values
|
|
2260
|
-
*/
|
|
2261
|
-
static fromLocalValueArray(serializedValues) {
|
|
2262
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2263
|
-
}
|
|
2264
|
-
/**
|
|
2265
|
-
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2266
|
-
*
|
|
2267
|
-
* @param obj Object to verify
|
|
2268
|
-
* @returns boolean indicating if the object has LocalValue structure
|
|
2269
|
-
*/
|
|
2270
|
-
static isLocalValueObject(obj) {
|
|
2271
|
-
if (typeof obj !== "object" || obj === null) {
|
|
2272
|
-
return false;
|
|
2273
|
-
}
|
|
2274
|
-
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2275
|
-
return false;
|
|
2276
|
-
}
|
|
2277
|
-
const type = obj[TYPE_CONSTANT];
|
|
2278
|
-
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2279
|
-
if (!hasTypeProperty) {
|
|
2280
|
-
return false;
|
|
2281
|
-
}
|
|
2282
|
-
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2283
|
-
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2284
|
-
}
|
|
2285
|
-
return true;
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
|
|
2289
|
-
// src/utils/result.ts
|
|
2290
|
-
var result_exports = {};
|
|
2291
|
-
__export(result_exports, {
|
|
2292
|
-
err: () => err,
|
|
2293
|
-
map: () => map,
|
|
2294
|
-
ok: () => ok,
|
|
2295
|
-
unwrap: () => unwrap,
|
|
2296
|
-
unwrapErr: () => unwrapErr
|
|
2297
|
-
});
|
|
2298
|
-
var ok = (value) => ({
|
|
2299
|
-
isOk: true,
|
|
2300
|
-
isErr: false,
|
|
2301
|
-
value
|
|
2302
|
-
});
|
|
2303
|
-
var err = (value) => ({
|
|
2304
|
-
isOk: false,
|
|
2305
|
-
isErr: true,
|
|
2306
|
-
value
|
|
2307
|
-
});
|
|
2308
|
-
function map(result, fn) {
|
|
2309
|
-
if (result.isOk) {
|
|
2310
|
-
const val = fn(result.value);
|
|
2311
|
-
if (val instanceof Promise) {
|
|
2312
|
-
return val.then((newVal) => ok(newVal));
|
|
2313
|
-
} else {
|
|
2314
|
-
return ok(val);
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
if (result.isErr) {
|
|
2318
|
-
const value = result.value;
|
|
2319
|
-
return err(value);
|
|
2320
|
-
}
|
|
2321
|
-
throw "should never get here";
|
|
2322
|
-
}
|
|
2323
|
-
var unwrap = (result) => {
|
|
2324
|
-
if (result.isOk) {
|
|
2325
|
-
return result.value;
|
|
2326
|
-
} else {
|
|
2327
|
-
throw result.value;
|
|
2328
|
-
}
|
|
2329
|
-
};
|
|
2330
|
-
var unwrapErr = (result) => {
|
|
2331
|
-
if (result.isErr) {
|
|
2332
|
-
return result.value;
|
|
2333
|
-
} else {
|
|
2334
|
-
throw result.value;
|
|
2335
|
-
}
|
|
2336
|
-
};
|
|
2337
|
-
|
|
2338
|
-
// src/utils/serialize.ts
|
|
2339
|
-
function deserializeProperty(value) {
|
|
2340
|
-
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2341
|
-
return value;
|
|
2342
|
-
}
|
|
2343
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
2344
|
-
}
|
|
576
|
+
var setAssetPath = (path) => plt.$resourcesUrl$ = path;
|
|
2345
577
|
|
|
2346
578
|
// src/utils/style.ts
|
|
2347
579
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -2992,6 +1224,14 @@ var installDevTools = () => {
|
|
|
2992
1224
|
};
|
|
2993
1225
|
}
|
|
2994
1226
|
};
|
|
1227
|
+
|
|
1228
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
1229
|
+
function queryNonceMetaTagContent(doc) {
|
|
1230
|
+
var _a, _b, _c;
|
|
1231
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// src/runtime/styles.ts
|
|
2995
1235
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2996
1236
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2997
1237
|
let style = styles.get(scopeId2);
|
|
@@ -3025,10 +1265,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3025
1265
|
}
|
|
3026
1266
|
const existingStyleElm = (BUILD.hydrateClientSide || BUILD.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
3027
1267
|
if (existingStyleElm) {
|
|
3028
|
-
existingStyleElm.
|
|
1268
|
+
existingStyleElm.textContent = style;
|
|
3029
1269
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
3030
1270
|
styleElm = win.document.createElement("style");
|
|
3031
|
-
styleElm.
|
|
1271
|
+
styleElm.textContent = style;
|
|
3032
1272
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
3033
1273
|
if (nonce != null) {
|
|
3034
1274
|
styleElm.setAttribute("nonce", nonce);
|
|
@@ -3057,7 +1297,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3057
1297
|
} else {
|
|
3058
1298
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
3059
1299
|
if (existingStyleContainer) {
|
|
3060
|
-
existingStyleContainer.
|
|
1300
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
3061
1301
|
} else {
|
|
3062
1302
|
styleContainerNode.prepend(styleElm);
|
|
3063
1303
|
}
|
|
@@ -3070,7 +1310,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
3070
1310
|
styleContainerNode.insertBefore(styleElm, null);
|
|
3071
1311
|
}
|
|
3072
1312
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
3073
|
-
styleElm.
|
|
1313
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
3074
1314
|
}
|
|
3075
1315
|
if (appliedStyles) {
|
|
3076
1316
|
appliedStyles.add(scopeId2);
|
|
@@ -3131,6 +1371,15 @@ var hydrateScopedToShadow = () => {
|
|
|
3131
1371
|
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
3132
1372
|
}
|
|
3133
1373
|
};
|
|
1374
|
+
|
|
1375
|
+
// src/utils/helpers.ts
|
|
1376
|
+
var isDef = (v) => v != null && v !== void 0;
|
|
1377
|
+
var isComplexType = (o) => {
|
|
1378
|
+
o = typeof o;
|
|
1379
|
+
return o === "object" || o === "function";
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
// src/runtime/vdom/h.ts
|
|
3134
1383
|
var h = (nodeName, vnodeData, ...children) => {
|
|
3135
1384
|
if (typeof nodeName === "string") {
|
|
3136
1385
|
nodeName = transformTag(nodeName);
|
|
@@ -3210,7 +1459,8 @@ var newVNode = (tag, text) => {
|
|
|
3210
1459
|
const vnode = {
|
|
3211
1460
|
$flags$: 0,
|
|
3212
1461
|
$tag$: tag,
|
|
3213
|
-
|
|
1462
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
1463
|
+
$text$: text != null ? text : null,
|
|
3214
1464
|
$elm$: null,
|
|
3215
1465
|
$children$: null
|
|
3216
1466
|
};
|
|
@@ -3330,7 +1580,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3330
1580
|
);
|
|
3331
1581
|
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
3332
1582
|
if (styleSheet) {
|
|
3333
|
-
|
|
1583
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
3334
1584
|
}
|
|
3335
1585
|
}
|
|
3336
1586
|
}
|
|
@@ -3408,7 +1658,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3408
1658
|
slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
|
|
3409
1659
|
});
|
|
3410
1660
|
}
|
|
3411
|
-
if (BUILD.shadowDom && shadowRoot) {
|
|
1661
|
+
if (BUILD.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {
|
|
3412
1662
|
let rnIdex = 0;
|
|
3413
1663
|
const rnLen = shadowRootNodes.length;
|
|
3414
1664
|
if (rnLen) {
|
|
@@ -3691,6 +1941,11 @@ var findCorrespondingNode = (node, type) => {
|
|
|
3691
1941
|
return sibling;
|
|
3692
1942
|
};
|
|
3693
1943
|
|
|
1944
|
+
// src/utils/regular-expression.ts
|
|
1945
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
1946
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1947
|
+
};
|
|
1948
|
+
|
|
3694
1949
|
// src/utils/shadow-css.ts
|
|
3695
1950
|
/**
|
|
3696
1951
|
* @license
|
|
@@ -3756,9 +2011,6 @@ var createSupportsRuleRe = (selector) => {
|
|
|
3756
2011
|
"g"
|
|
3757
2012
|
);
|
|
3758
2013
|
};
|
|
3759
|
-
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
3760
|
-
var _colonHostRe = createSupportsRuleRe(":host");
|
|
3761
|
-
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
3762
2014
|
var _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
3763
2015
|
var stripComments = (input) => {
|
|
3764
2016
|
return input.replace(_commentRe, "");
|
|
@@ -3836,6 +2088,9 @@ var insertPolyfillHostInCssText = (cssText) => {
|
|
|
3836
2088
|
supportsBlocks.push(selectorContent);
|
|
3837
2089
|
return `@supports selector(${placeholder})`;
|
|
3838
2090
|
});
|
|
2091
|
+
const _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
2092
|
+
const _colonHostRe = createSupportsRuleRe(":host");
|
|
2093
|
+
const _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
3839
2094
|
cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
|
|
3840
2095
|
supportsBlocks.forEach((originalSelector, index) => {
|
|
3841
2096
|
cssText = cssText.replace(`__supports_${index}__`, originalSelector);
|
|
@@ -3959,16 +2214,16 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
|
|
|
3959
2214
|
let scopedSelector = "";
|
|
3960
2215
|
let startIndex = 0;
|
|
3961
2216
|
let res;
|
|
3962
|
-
const
|
|
2217
|
+
const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
|
|
3963
2218
|
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
3964
2219
|
let shouldScope = !hasHost;
|
|
3965
|
-
while ((res =
|
|
2220
|
+
while ((res = sep.exec(selector)) !== null) {
|
|
3966
2221
|
const separator = res[1];
|
|
3967
2222
|
const part2 = selector.slice(startIndex, res.index).trim();
|
|
3968
2223
|
shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;
|
|
3969
2224
|
const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;
|
|
3970
2225
|
scopedSelector += `${scopedPart} ${separator} `;
|
|
3971
|
-
startIndex =
|
|
2226
|
+
startIndex = sep.lastIndex;
|
|
3972
2227
|
}
|
|
3973
2228
|
const part = selector.substring(startIndex);
|
|
3974
2229
|
shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
|
|
@@ -4104,6 +2359,111 @@ var getMode = (ref) => {
|
|
|
4104
2359
|
var _a;
|
|
4105
2360
|
return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;
|
|
4106
2361
|
};
|
|
2362
|
+
|
|
2363
|
+
// src/utils/remote-value.ts
|
|
2364
|
+
var RemoteValue = class _RemoteValue {
|
|
2365
|
+
/**
|
|
2366
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
2367
|
+
*
|
|
2368
|
+
* @param serialized The serialized LocalValue object
|
|
2369
|
+
* @returns The original JavaScript value/object
|
|
2370
|
+
*/
|
|
2371
|
+
static fromLocalValue(serialized) {
|
|
2372
|
+
const type = serialized[TYPE_CONSTANT];
|
|
2373
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
2374
|
+
switch (type) {
|
|
2375
|
+
case "string" /* String */:
|
|
2376
|
+
return value;
|
|
2377
|
+
case "boolean" /* Boolean */:
|
|
2378
|
+
return value;
|
|
2379
|
+
case "bigint" /* BigInt */:
|
|
2380
|
+
return BigInt(value);
|
|
2381
|
+
case "undefined" /* Undefined */:
|
|
2382
|
+
return void 0;
|
|
2383
|
+
case "null" /* Null */:
|
|
2384
|
+
return null;
|
|
2385
|
+
case "number" /* Number */:
|
|
2386
|
+
if (value === "NaN") return NaN;
|
|
2387
|
+
if (value === "-0") return -0;
|
|
2388
|
+
if (value === "Infinity") return Infinity;
|
|
2389
|
+
if (value === "-Infinity") return -Infinity;
|
|
2390
|
+
return value;
|
|
2391
|
+
case "array" /* Array */:
|
|
2392
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
2393
|
+
case "date" /* Date */:
|
|
2394
|
+
return new Date(value);
|
|
2395
|
+
case "map" /* Map */:
|
|
2396
|
+
const map = /* @__PURE__ */ new Map();
|
|
2397
|
+
for (const [key, val] of value) {
|
|
2398
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
2399
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
2400
|
+
map.set(deserializedKey, deserializedValue);
|
|
2401
|
+
}
|
|
2402
|
+
return map;
|
|
2403
|
+
case "object" /* Object */:
|
|
2404
|
+
const obj = {};
|
|
2405
|
+
for (const [key, val] of value) {
|
|
2406
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
2407
|
+
}
|
|
2408
|
+
return obj;
|
|
2409
|
+
case "regexp" /* RegularExpression */:
|
|
2410
|
+
const { pattern, flags } = value;
|
|
2411
|
+
return new RegExp(pattern, flags);
|
|
2412
|
+
case "set" /* Set */:
|
|
2413
|
+
const set = /* @__PURE__ */ new Set();
|
|
2414
|
+
for (const item of value) {
|
|
2415
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
2416
|
+
}
|
|
2417
|
+
return set;
|
|
2418
|
+
case "symbol" /* Symbol */:
|
|
2419
|
+
return Symbol(value);
|
|
2420
|
+
default:
|
|
2421
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
2426
|
+
*
|
|
2427
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
2428
|
+
* @returns Array of deserialized JavaScript values
|
|
2429
|
+
*/
|
|
2430
|
+
static fromLocalValueArray(serializedValues) {
|
|
2431
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
2435
|
+
*
|
|
2436
|
+
* @param obj Object to verify
|
|
2437
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
2438
|
+
*/
|
|
2439
|
+
static isLocalValueObject(obj) {
|
|
2440
|
+
if (typeof obj !== "object" || obj === null) {
|
|
2441
|
+
return false;
|
|
2442
|
+
}
|
|
2443
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
2444
|
+
return false;
|
|
2445
|
+
}
|
|
2446
|
+
const type = obj[TYPE_CONSTANT];
|
|
2447
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
2448
|
+
if (!hasTypeProperty) {
|
|
2449
|
+
return false;
|
|
2450
|
+
}
|
|
2451
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
2452
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
2453
|
+
}
|
|
2454
|
+
return true;
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
|
|
2458
|
+
// src/utils/serialize.ts
|
|
2459
|
+
function deserializeProperty(value) {
|
|
2460
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
2461
|
+
return value;
|
|
2462
|
+
}
|
|
2463
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
// src/runtime/parse-property-value.ts
|
|
4107
2467
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
4108
2468
|
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
4109
2469
|
propValue = deserializeProperty(propValue);
|
|
@@ -4355,7 +2715,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
4355
2715
|
`The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
|
|
4356
2716
|
);
|
|
4357
2717
|
}
|
|
4358
|
-
if (BUILD.vdomText && newVNode2.$text$
|
|
2718
|
+
if (BUILD.vdomText && newVNode2.$text$ != null) {
|
|
4359
2719
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
4360
2720
|
} else if (BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
4361
2721
|
elm = newVNode2.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
|
|
@@ -4367,9 +2727,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
4367
2727
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
4368
2728
|
}
|
|
4369
2729
|
if (!win.document) {
|
|
4370
|
-
throw new Error(
|
|
4371
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
4372
|
-
);
|
|
2730
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
4373
2731
|
}
|
|
4374
2732
|
elm = newVNode2.$elm$ = BUILD.svg ? win.document.createElementNS(
|
|
4375
2733
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -4627,7 +2985,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
4627
2985
|
const tag = newVNode2.$tag$;
|
|
4628
2986
|
const text = newVNode2.$text$;
|
|
4629
2987
|
let defaultHolder;
|
|
4630
|
-
if (!BUILD.vdomText || text
|
|
2988
|
+
if (!BUILD.vdomText || text == null) {
|
|
4631
2989
|
if (BUILD.svg) {
|
|
4632
2990
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
4633
2991
|
}
|
|
@@ -4721,16 +3079,18 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
4721
3079
|
}
|
|
4722
3080
|
};
|
|
4723
3081
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
4724
|
-
if (BUILD.
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
3082
|
+
if (BUILD.slotRelocation) {
|
|
3083
|
+
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
|
|
3084
|
+
addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
3085
|
+
} else if (typeof newNode["s-sn"] === "string") {
|
|
3086
|
+
if (BUILD.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3087
|
+
patchParentNode(newNode);
|
|
3088
|
+
}
|
|
3089
|
+
parent.insertBefore(newNode, reference);
|
|
3090
|
+
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3091
|
+
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
3092
|
+
return newNode;
|
|
4729
3093
|
}
|
|
4730
|
-
parent.insertBefore(newNode, reference);
|
|
4731
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
4732
|
-
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
4733
|
-
return newNode;
|
|
4734
3094
|
}
|
|
4735
3095
|
if (parent.__insertBefore) {
|
|
4736
3096
|
return parent.__insertBefore(newNode, reference);
|
|
@@ -4989,8 +3349,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
4989
3349
|
endSchedule();
|
|
4990
3350
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
4991
3351
|
};
|
|
4992
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
4993
|
-
console.error(
|
|
3352
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
3353
|
+
console.error(err);
|
|
4994
3354
|
fn();
|
|
4995
3355
|
}) : fn();
|
|
4996
3356
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -6050,7 +4410,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6050
4410
|
});
|
|
6051
4411
|
});
|
|
6052
4412
|
if (cmpTags.length > 0) {
|
|
6053
|
-
if (hasSlotRelocation) {
|
|
4413
|
+
if (BUILD.slotRelocation && hasSlotRelocation) {
|
|
6054
4414
|
dataStyles.textContent += SLOT_FB_CSS;
|
|
6055
4415
|
}
|
|
6056
4416
|
if (BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute)) {
|
|
@@ -6177,11 +4537,22 @@ function setTagTransformer(transformer) {
|
|
|
6177
4537
|
|
|
6178
4538
|
// src/runtime/vdom/jsx-dev-runtime.ts
|
|
6179
4539
|
function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
|
|
6180
|
-
const
|
|
6181
|
-
const
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
4540
|
+
const propsObj = props || {};
|
|
4541
|
+
const { children, ...rest } = propsObj;
|
|
4542
|
+
let vnodeData = rest;
|
|
4543
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
4544
|
+
vnodeData = { ...rest, key };
|
|
4545
|
+
}
|
|
4546
|
+
if (vnodeData && Object.keys(vnodeData).length === 0) {
|
|
4547
|
+
vnodeData = null;
|
|
4548
|
+
}
|
|
4549
|
+
if (children !== void 0) {
|
|
4550
|
+
if (Array.isArray(children)) {
|
|
4551
|
+
return h(type, vnodeData, ...children);
|
|
4552
|
+
}
|
|
4553
|
+
if (typeof children === "object" && children !== null && "$flags$" in children) {
|
|
4554
|
+
return h(type, vnodeData, children);
|
|
4555
|
+
}
|
|
6185
4556
|
return h(type, vnodeData, children);
|
|
6186
4557
|
}
|
|
6187
4558
|
return h(type, vnodeData);
|
|
@@ -6192,7 +4563,7 @@ function jsx(type, props, key) {
|
|
|
6192
4563
|
const propsObj = props || {};
|
|
6193
4564
|
const { children, ...rest } = propsObj;
|
|
6194
4565
|
let vnodeData = rest;
|
|
6195
|
-
if (key !== void 0) {
|
|
4566
|
+
if (key !== void 0 && !("key" in rest)) {
|
|
6196
4567
|
vnodeData = { ...rest, key };
|
|
6197
4568
|
}
|
|
6198
4569
|
if (vnodeData && Object.keys(vnodeData).length === 0) {
|