@roadtrip/components 3.11.0 → 3.11.2
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/cjs/{focus-visible-6771892b.js → focus-visible-6f34b3f4.js} +1 -1
- package/dist/cjs/focus-visible-6f34b3f4.js.map +1 -0
- package/dist/cjs/{index-e4bd5b5f.js → index-12592729.js} +411 -207
- package/dist/cjs/index-12592729.js.map +1 -0
- package/dist/cjs/{index-fd07207a.js → index-fb57f684.js} +1 -1
- package/dist/cjs/index-fb57f684.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js +3 -29
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{polyfill-9453e116.js → polyfill-b1fff766.js} +2 -2
- package/dist/cjs/polyfill-b1fff766.js.map +1 -0
- package/dist/cjs/road-accordion.cjs.entry.js +3 -3
- package/dist/cjs/road-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/road-alert.cjs.entry.js +1 -1
- package/dist/cjs/road-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/road-area-code.cjs.entry.js +9 -13
- package/dist/cjs/road-area-code.cjs.entry.js.map +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js.map +1 -1
- package/dist/cjs/road-avatar.cjs.entry.js +1 -1
- package/dist/cjs/road-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/road-badge_14.cjs.entry.js +7 -12
- package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
- package/dist/cjs/road-banner.cjs.entry.js +2 -2
- package/dist/cjs/road-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/road-button-floating.cjs.entry.js +2 -2
- package/dist/cjs/road-button-floating.cjs.entry.js.map +1 -1
- package/dist/cjs/road-card.cjs.entry.js +1 -1
- package/dist/cjs/road-card.cjs.entry.js.map +1 -1
- package/dist/cjs/road-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/road-carousel-item.cjs.entry.js.map +1 -1
- package/dist/cjs/road-carousel.cjs.entry.js +2 -2
- package/dist/cjs/road-carousel.cjs.entry.js.map +1 -1
- package/dist/cjs/road-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/road-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/road-chip.cjs.entry.js +3 -3
- package/dist/cjs/road-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/road-collapse.cjs.entry.js +1 -1
- package/dist/cjs/road-collapse.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dialog.cjs.entry.js +2 -2
- package/dist/cjs/road-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/road-duration.cjs.entry.js +1 -1
- package/dist/cjs/road-duration.cjs.entry.js.map +1 -1
- package/dist/cjs/road-flap.cjs.entry.js +1 -1
- package/dist/cjs/road-flap.cjs.entry.js.map +1 -1
- package/dist/cjs/road-global-navigation.cjs.entry.js +2 -2
- package/dist/cjs/road-global-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/road-illustration.cjs.entry.js +2 -2
- package/dist/cjs/road-illustration.cjs.entry.js.map +1 -1
- package/dist/cjs/road-img.cjs.entry.js +1 -1
- package/dist/cjs/road-img.cjs.entry.js.map +1 -1
- package/dist/cjs/road-modal.cjs.entry.js +2 -2
- package/dist/cjs/road-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/road-navbar-item.cjs.entry.js +1 -1
- package/dist/cjs/road-navbar-item.cjs.entry.js.map +1 -1
- package/dist/cjs/road-navbar.cjs.entry.js +2 -2
- package/dist/cjs/road-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/road-phone-number-input.cjs.entry.js +22 -16
- package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
- package/dist/cjs/road-plate-number.cjs.entry.js +2 -2
- package/dist/cjs/road-plate-number.cjs.entry.js.map +1 -1
- package/dist/cjs/road-profil-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/road-profil-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-horizontal.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical-item.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-indicator-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker-item.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js +1 -1
- package/dist/cjs/road-progress-tracker.cjs.entry.js.map +1 -1
- package/dist/cjs/road-progress.cjs.entry.js +1 -1
- package/dist/cjs/road-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/road-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/road-radio.cjs.entry.js +2 -2
- package/dist/cjs/road-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/road-range.cjs.entry.js +2 -2
- package/dist/cjs/road-range.cjs.entry.js.map +1 -1
- package/dist/cjs/road-rating.cjs.entry.js +2 -2
- package/dist/cjs/road-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-segmented-button-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-button.cjs.entry.js.map +1 -1
- package/dist/cjs/road-segmented-buttons.cjs.entry.js +1 -1
- package/dist/cjs/road-segmented-buttons.cjs.entry.js.map +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js +1 -1
- package/dist/cjs/road-select-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/road-select.cjs.entry.js +2 -2
- package/dist/cjs/road-select.cjs.entry.js.map +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/road-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js +1 -1
- package/dist/cjs/road-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/road-switch.cjs.entry.js +2 -2
- package/dist/cjs/road-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tab-bar.cjs.entry.js +2 -2
- package/dist/cjs/road-tab-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tab-button.cjs.entry.js +1 -1
- package/dist/cjs/road-tab-button.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tab.cjs.entry.js +1 -1
- package/dist/cjs/road-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/road-table.cjs.entry.js +1 -1
- package/dist/cjs/road-table.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js +1 -1
- package/dist/cjs/road-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tag.cjs.entry.js +2 -2
- package/dist/cjs/road-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/road-text.cjs.entry.js +1 -1
- package/dist/cjs/road-text.cjs.entry.js.map +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js +1 -1
- package/dist/cjs/road-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toast.cjs.entry.js +2 -2
- package/dist/cjs/road-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toggle.cjs.entry.js +2 -2
- package/dist/cjs/road-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title-page.cjs.entry.js.map +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js +1 -1
- package/dist/cjs/road-toolbar-title.cjs.entry.js.map +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/road-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/roadtrip.cjs.js +6 -103
- package/dist/cjs/roadtrip.cjs.js.map +1 -1
- package/dist/cjs/{utils-5203d152.js → utils-8db00648.js} +2 -2
- package/dist/cjs/utils-8db00648.js.map +1 -0
- package/dist/cjs/{utils-a450bad3.js → utils-90ef554a.js} +2 -2
- package/dist/cjs/utils-90ef554a.js.map +1 -0
- package/dist/collection/collection-manifest.json +74 -74
- package/dist/collection/components/accordion/accordion.js +3 -3
- package/dist/collection/components/alert/alert.js +3 -2
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/area-code/area-code.js +19 -38
- package/dist/collection/components/area-code/area-code.js.map +1 -1
- package/dist/collection/components/autocomplete/autocomplete.js +3 -2
- package/dist/collection/components/autocomplete/autocomplete.js.map +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +3 -2
- package/dist/collection/components/badge/badge.js.map +1 -1
- package/dist/collection/components/banner/banner.js +4 -3
- package/dist/collection/components/banner/banner.js.map +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button-floating/button-floating.js +2 -2
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/carousel/carousel.js +34 -18
- package/dist/collection/components/carousel/carousel.js.map +1 -1
- package/dist/collection/components/carousel-item/carousel-item.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/chip/chip.js +3 -3
- package/dist/collection/components/col/col.js +1 -1
- package/dist/collection/components/collapse/collapse.js +1 -1
- package/dist/collection/components/counter/counter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +8 -5
- package/dist/collection/components/dialog/dialog.js.map +1 -1
- package/dist/collection/components/drawer/{drawer.light.css → drawer.css} +0 -1
- package/dist/collection/components/drawer/drawer.js +11 -11
- package/dist/collection/components/drawer/drawer.js.map +1 -1
- package/dist/collection/components/drawer/drawer.stories.js +6 -7
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/duration/duration.js +5 -3
- package/dist/collection/components/duration/duration.js.map +1 -1
- package/dist/collection/components/flap/flap.js +1 -1
- package/dist/collection/components/global-navigation/global-navigation.js +2 -2
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/icon/icon.js +5 -4
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/icon/request.js +1 -1
- package/dist/collection/components/icon/svg/vehicle-car-search-color.svg +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/icon/validate.js +1 -1
- package/dist/collection/components/illustration/illustration.js +3 -3
- package/dist/collection/components/illustration/request.js +1 -1
- package/dist/collection/components/illustration/utils.js +1 -1
- package/dist/collection/components/illustration/validate.js +1 -1
- package/dist/collection/components/img/img.js +1 -1
- package/dist/collection/components/input/input.js +9 -5
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input-group/input-group.js +1 -1
- package/dist/collection/components/item/item.js +2 -2
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/modal/modal.js +6 -4
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/navbar/navbar.js +2 -2
- package/dist/collection/components/navbar-item/navbar-item.js +1 -1
- package/dist/collection/components/phone-number-input/phone-number-input.js +27 -19
- package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
- package/dist/collection/components/plate-number/plate-number.js +6 -4
- package/dist/collection/components/plate-number/plate-number.js.map +1 -1
- package/dist/collection/components/profil-dropdown/profil-dropdown.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/progress-indicator-horizontal/progress-indicator-horizontal.js +1 -1
- package/dist/collection/components/progress-indicator-vertical/progress-indicator-vertical.js +1 -1
- package/dist/collection/components/progress-indicator-vertical-item/progress-indicator-vertical-item.js +1 -1
- package/dist/collection/components/progress-tracker/progress-tracker.js +1 -1
- package/dist/collection/components/progress-tracker-item/progress-tracker-item.js +1 -1
- package/dist/collection/components/radio/radio.js +2 -2
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +2 -2
- package/dist/collection/components/rating/rating.js +2 -2
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/segmented-button/segmented-button.js +1 -1
- package/dist/collection/components/segmented-button-bar/segmented-button-bar.js +2 -2
- package/dist/collection/components/segmented-buttons/segmented-buttons.js +11 -6
- package/dist/collection/components/segmented-buttons/segmented-buttons.js.map +1 -1
- package/dist/collection/components/select/select.css +7 -3
- package/dist/collection/components/select/select.js +3 -2
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/select-filter/select-filter.js +4 -3
- package/dist/collection/components/select-filter/select-filter.js.map +1 -1
- package/dist/collection/components/skeleton/skeleton.js +1 -1
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/switch/switch.js +4 -3
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/tab/tab.js +3 -2
- package/dist/collection/components/tab/tab.js.map +1 -1
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +11 -6
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/tag/tag.js +2 -2
- package/dist/collection/components/text/text.js +1 -1
- package/dist/collection/components/textarea/textarea.js +5 -3
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/components/toast/toast.js +8 -5
- package/dist/collection/components/toast/toast.js.map +1 -1
- package/dist/collection/components/toggle/toggle.js +4 -3
- package/dist/collection/components/toggle/toggle.js.map +1 -1
- package/dist/collection/components/toolbar/toolbar.js +1 -1
- package/dist/collection/components/toolbar-title/toolbar-title.js +1 -1
- package/dist/collection/components/toolbar-title-page/toolbar-title-page.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +5 -3
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/global/app.js +1 -5
- package/dist/collection/global/app.js.map +1 -1
- package/dist/esm/{focus-visible-75a2ea2a.js → focus-visible-32bc70bb.js} +1 -1
- package/dist/esm/focus-visible-32bc70bb.js.map +1 -0
- package/dist/esm/{index-4b484f35.js → index-52302079.js} +412 -202
- package/dist/esm/index-52302079.js.map +1 -0
- package/dist/esm/{index-8f45025b.js → index-891decf5.js} +1 -1
- package/dist/esm/index-891decf5.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +4 -30
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/polyfill-dc7c89b2.js +7 -0
- package/dist/esm/polyfill-dc7c89b2.js.map +1 -0
- package/dist/esm/road-accordion.entry.js +3 -3
- package/dist/esm/road-accordion.entry.js.map +1 -1
- package/dist/esm/road-alert.entry.js +1 -1
- package/dist/esm/road-alert.entry.js.map +1 -1
- package/dist/esm/road-area-code.entry.js +9 -13
- package/dist/esm/road-area-code.entry.js.map +1 -1
- package/dist/esm/road-autocomplete.entry.js +1 -1
- package/dist/esm/road-autocomplete.entry.js.map +1 -1
- package/dist/esm/road-avatar.entry.js +1 -1
- package/dist/esm/road-avatar.entry.js.map +1 -1
- package/dist/esm/road-badge_14.entry.js +7 -12
- package/dist/esm/road-badge_14.entry.js.map +1 -1
- package/dist/esm/road-banner.entry.js +2 -2
- package/dist/esm/road-banner.entry.js.map +1 -1
- package/dist/esm/road-button-floating.entry.js +2 -2
- package/dist/esm/road-button-floating.entry.js.map +1 -1
- package/dist/esm/road-card.entry.js +1 -1
- package/dist/esm/road-card.entry.js.map +1 -1
- package/dist/esm/road-carousel-item.entry.js +1 -1
- package/dist/esm/road-carousel-item.entry.js.map +1 -1
- package/dist/esm/road-carousel.entry.js +2 -2
- package/dist/esm/road-carousel.entry.js.map +1 -1
- package/dist/esm/road-checkbox.entry.js +3 -3
- package/dist/esm/road-checkbox.entry.js.map +1 -1
- package/dist/esm/road-chip.entry.js +3 -3
- package/dist/esm/road-chip.entry.js.map +1 -1
- package/dist/esm/road-collapse.entry.js +1 -1
- package/dist/esm/road-collapse.entry.js.map +1 -1
- package/dist/esm/road-dialog.entry.js +2 -2
- package/dist/esm/road-dialog.entry.js.map +1 -1
- package/dist/esm/road-dropdown.entry.js +1 -1
- package/dist/esm/road-dropdown.entry.js.map +1 -1
- package/dist/esm/road-duration.entry.js +1 -1
- package/dist/esm/road-duration.entry.js.map +1 -1
- package/dist/esm/road-flap.entry.js +1 -1
- package/dist/esm/road-flap.entry.js.map +1 -1
- package/dist/esm/road-global-navigation.entry.js +2 -2
- package/dist/esm/road-global-navigation.entry.js.map +1 -1
- package/dist/esm/road-illustration.entry.js +2 -2
- package/dist/esm/road-illustration.entry.js.map +1 -1
- package/dist/esm/road-img.entry.js +1 -1
- package/dist/esm/road-img.entry.js.map +1 -1
- package/dist/esm/road-modal.entry.js +2 -2
- package/dist/esm/road-modal.entry.js.map +1 -1
- package/dist/esm/road-navbar-item.entry.js +1 -1
- package/dist/esm/road-navbar-item.entry.js.map +1 -1
- package/dist/esm/road-navbar.entry.js +2 -2
- package/dist/esm/road-navbar.entry.js.map +1 -1
- package/dist/esm/road-phone-number-input.entry.js +22 -16
- package/dist/esm/road-phone-number-input.entry.js.map +1 -1
- package/dist/esm/road-plate-number.entry.js +2 -2
- package/dist/esm/road-plate-number.entry.js.map +1 -1
- package/dist/esm/road-profil-dropdown.entry.js +1 -1
- package/dist/esm/road-profil-dropdown.entry.js.map +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js +1 -1
- package/dist/esm/road-progress-indicator-horizontal.entry.js.map +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical-item.entry.js.map +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js +1 -1
- package/dist/esm/road-progress-indicator-vertical.entry.js.map +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js +1 -1
- package/dist/esm/road-progress-tracker-item.entry.js.map +1 -1
- package/dist/esm/road-progress-tracker.entry.js +1 -1
- package/dist/esm/road-progress-tracker.entry.js.map +1 -1
- package/dist/esm/road-progress.entry.js +1 -1
- package/dist/esm/road-progress.entry.js.map +1 -1
- package/dist/esm/road-radio-group.entry.js +1 -1
- package/dist/esm/road-radio-group.entry.js.map +1 -1
- package/dist/esm/road-radio.entry.js +2 -2
- package/dist/esm/road-radio.entry.js.map +1 -1
- package/dist/esm/road-range.entry.js +2 -2
- package/dist/esm/road-range.entry.js.map +1 -1
- package/dist/esm/road-rating.entry.js +2 -2
- package/dist/esm/road-rating.entry.js.map +1 -1
- package/dist/esm/road-segmented-button-bar.entry.js +2 -2
- package/dist/esm/road-segmented-button-bar.entry.js.map +1 -1
- package/dist/esm/road-segmented-button.entry.js +1 -1
- package/dist/esm/road-segmented-button.entry.js.map +1 -1
- package/dist/esm/road-segmented-buttons.entry.js +1 -1
- package/dist/esm/road-segmented-buttons.entry.js.map +1 -1
- package/dist/esm/road-select-filter.entry.js +1 -1
- package/dist/esm/road-select-filter.entry.js.map +1 -1
- package/dist/esm/road-select.entry.js +2 -2
- package/dist/esm/road-select.entry.js.map +1 -1
- package/dist/esm/road-skeleton.entry.js +1 -1
- package/dist/esm/road-skeleton.entry.js.map +1 -1
- package/dist/esm/road-spinner.entry.js +1 -1
- package/dist/esm/road-spinner.entry.js.map +1 -1
- package/dist/esm/road-switch.entry.js +2 -2
- package/dist/esm/road-switch.entry.js.map +1 -1
- package/dist/esm/road-tab-bar.entry.js +2 -2
- package/dist/esm/road-tab-bar.entry.js.map +1 -1
- package/dist/esm/road-tab-button.entry.js +1 -1
- package/dist/esm/road-tab-button.entry.js.map +1 -1
- package/dist/esm/road-tab.entry.js +1 -1
- package/dist/esm/road-tab.entry.js.map +1 -1
- package/dist/esm/road-table.entry.js +1 -1
- package/dist/esm/road-table.entry.js.map +1 -1
- package/dist/esm/road-tabs.entry.js +1 -1
- package/dist/esm/road-tabs.entry.js.map +1 -1
- package/dist/esm/road-tag.entry.js +2 -2
- package/dist/esm/road-tag.entry.js.map +1 -1
- package/dist/esm/road-text.entry.js +1 -1
- package/dist/esm/road-text.entry.js.map +1 -1
- package/dist/esm/road-textarea.entry.js +1 -1
- package/dist/esm/road-textarea.entry.js.map +1 -1
- package/dist/esm/road-toast.entry.js +2 -2
- package/dist/esm/road-toast.entry.js.map +1 -1
- package/dist/esm/road-toggle.entry.js +2 -2
- package/dist/esm/road-toggle.entry.js.map +1 -1
- package/dist/esm/road-toolbar-title-page.entry.js +1 -1
- package/dist/esm/road-toolbar-title-page.entry.js.map +1 -1
- package/dist/esm/road-toolbar-title.entry.js +1 -1
- package/dist/esm/road-toolbar-title.entry.js.map +1 -1
- package/dist/esm/road-tooltip.entry.js +1 -1
- package/dist/esm/road-tooltip.entry.js.map +1 -1
- package/dist/esm/roadtrip.js +7 -104
- package/dist/esm/roadtrip.js.map +1 -1
- package/dist/esm/{utils-ff713b72.js → utils-79ac6aaf.js} +2 -2
- package/dist/esm/utils-79ac6aaf.js.map +1 -0
- package/dist/esm/{utils-7f4988b4.js → utils-8c28c2e1.js} +2 -2
- package/dist/esm/utils-8c28c2e1.js.map +1 -0
- package/dist/html.html-data.json +71 -87
- package/dist/loader/index.d.ts +1 -1
- package/dist/roadtrip/index.esm.js +1 -1
- package/dist/roadtrip/{p-ff52872b.entry.js → p-00e51171.entry.js} +2 -2
- package/dist/roadtrip/p-00e51171.entry.js.map +1 -0
- package/dist/roadtrip/p-028243c1.entry.js +2 -0
- package/dist/roadtrip/p-028243c1.entry.js.map +1 -0
- package/dist/roadtrip/{p-c259efd7.js → p-08ff1520.js} +2 -2
- package/dist/roadtrip/p-08ff1520.js.map +1 -0
- package/dist/roadtrip/p-0f8966f4.entry.js +2 -0
- package/dist/roadtrip/p-0f8966f4.entry.js.map +1 -0
- package/dist/roadtrip/{p-e68a3ae5.entry.js → p-0fca389a.entry.js} +2 -2
- package/dist/roadtrip/p-0fca389a.entry.js.map +1 -0
- package/dist/roadtrip/{p-a484102a.entry.js → p-13d54b3e.entry.js} +2 -2
- package/dist/roadtrip/p-13d54b3e.entry.js.map +1 -0
- package/dist/roadtrip/p-1a761fc0.entry.js +2 -0
- package/dist/roadtrip/p-1a761fc0.entry.js.map +1 -0
- package/dist/roadtrip/{p-9036a1e6.entry.js → p-1c5ac353.entry.js} +2 -2
- package/dist/roadtrip/p-1c5ac353.entry.js.map +1 -0
- package/dist/roadtrip/p-1ccae339.js +2 -0
- package/dist/roadtrip/p-1ccae339.js.map +1 -0
- package/dist/roadtrip/p-20b115ed.entry.js +2 -0
- package/dist/roadtrip/p-20b115ed.entry.js.map +1 -0
- package/dist/roadtrip/{p-0d99a5e7.entry.js → p-25683dc7.entry.js} +2 -2
- package/dist/roadtrip/p-25683dc7.entry.js.map +1 -0
- package/dist/roadtrip/{p-2d01d350.entry.js → p-25ade729.entry.js} +2 -2
- package/dist/roadtrip/p-25ade729.entry.js.map +1 -0
- package/dist/roadtrip/{p-7c4b331c.entry.js → p-2b5974fc.entry.js} +2 -2
- package/dist/roadtrip/p-2b5974fc.entry.js.map +1 -0
- package/dist/roadtrip/{p-b4dc061d.entry.js → p-2c8a6854.entry.js} +2 -2
- package/dist/roadtrip/p-2c8a6854.entry.js.map +1 -0
- package/dist/roadtrip/{p-7ec2d494.js → p-2d45ef28.js} +2 -2
- package/dist/roadtrip/p-2d45ef28.js.map +1 -0
- package/dist/roadtrip/{p-ee0196ea.entry.js → p-30fa62f4.entry.js} +2 -2
- package/dist/roadtrip/p-30fa62f4.entry.js.map +1 -0
- package/dist/roadtrip/{p-21c20210.entry.js → p-39d1c90a.entry.js} +2 -2
- package/dist/roadtrip/p-39d1c90a.entry.js.map +1 -0
- package/dist/roadtrip/{p-c8e9807b.entry.js → p-40daa53b.entry.js} +2 -2
- package/dist/roadtrip/p-40daa53b.entry.js.map +1 -0
- package/dist/roadtrip/p-414a2791.entry.js +2 -0
- package/dist/roadtrip/p-414a2791.entry.js.map +1 -0
- package/dist/roadtrip/p-46cccafc.entry.js +2 -0
- package/dist/roadtrip/p-46cccafc.entry.js.map +1 -0
- package/dist/roadtrip/{p-91e92e99.entry.js → p-4ba769a9.entry.js} +2 -2
- package/dist/roadtrip/p-4ba769a9.entry.js.map +1 -0
- package/dist/roadtrip/{p-093973f5.entry.js → p-4f47f4f7.entry.js} +2 -2
- package/dist/roadtrip/p-4f47f4f7.entry.js.map +1 -0
- package/dist/roadtrip/{p-1baffcc2.entry.js → p-4f5e8cc2.entry.js} +2 -2
- package/dist/roadtrip/p-4f5e8cc2.entry.js.map +1 -0
- package/dist/roadtrip/{p-8e216f6a.entry.js → p-5483109e.entry.js} +2 -2
- package/dist/roadtrip/p-5483109e.entry.js.map +1 -0
- package/dist/roadtrip/{p-9419bdaf.entry.js → p-5ab03aa4.entry.js} +2 -2
- package/dist/roadtrip/p-5ab03aa4.entry.js.map +1 -0
- package/dist/roadtrip/p-60e25858.entry.js +2 -0
- package/dist/roadtrip/p-60e25858.entry.js.map +1 -0
- package/dist/roadtrip/{p-93030cec.entry.js → p-6177bb46.entry.js} +2 -2
- package/dist/roadtrip/p-6177bb46.entry.js.map +1 -0
- package/dist/roadtrip/{p-4fd8c4db.entry.js → p-64aa6fd0.entry.js} +2 -2
- package/dist/roadtrip/p-64aa6fd0.entry.js.map +1 -0
- package/dist/roadtrip/{p-ff473633.entry.js → p-68599145.entry.js} +2 -2
- package/dist/roadtrip/p-68599145.entry.js.map +1 -0
- package/dist/roadtrip/p-6a27b5fc.entry.js +2 -0
- package/dist/roadtrip/p-6a27b5fc.entry.js.map +1 -0
- package/dist/roadtrip/{p-1974c993.entry.js → p-6f170c25.entry.js} +2 -2
- package/dist/roadtrip/p-6f170c25.entry.js.map +1 -0
- package/dist/roadtrip/{p-3604d557.entry.js → p-7048f786.entry.js} +2 -2
- package/dist/roadtrip/p-7048f786.entry.js.map +1 -0
- package/dist/roadtrip/{p-37ab7c7f.js → p-73fe2357.js} +1 -1
- package/dist/roadtrip/p-73fe2357.js.map +1 -0
- package/dist/roadtrip/{p-35ffaa87.entry.js → p-744198aa.entry.js} +2 -2
- package/dist/roadtrip/p-744198aa.entry.js.map +1 -0
- package/dist/roadtrip/{p-b5727aae.entry.js → p-76ccfc61.entry.js} +2 -2
- package/dist/roadtrip/p-76ccfc61.entry.js.map +1 -0
- package/dist/roadtrip/{p-1caeda78.entry.js → p-78e9bbd5.entry.js} +2 -2
- package/dist/roadtrip/p-78e9bbd5.entry.js.map +1 -0
- package/dist/roadtrip/{p-8f802447.entry.js → p-82919e58.entry.js} +2 -2
- package/dist/roadtrip/p-82919e58.entry.js.map +1 -0
- package/dist/roadtrip/p-90b35d7e.entry.js +2 -0
- package/dist/roadtrip/p-90b35d7e.entry.js.map +1 -0
- package/dist/roadtrip/{p-0bcf6d63.entry.js → p-90fac6e5.entry.js} +2 -2
- package/dist/roadtrip/p-90fac6e5.entry.js.map +1 -0
- package/dist/roadtrip/{p-73df1bef.entry.js → p-96abbe85.entry.js} +2 -2
- package/dist/roadtrip/p-96abbe85.entry.js.map +1 -0
- package/dist/roadtrip/{p-48596f8f.entry.js → p-995e1e53.entry.js} +2 -2
- package/dist/roadtrip/p-995e1e53.entry.js.map +1 -0
- package/dist/roadtrip/{p-5f4779b1.entry.js → p-9b170273.entry.js} +2 -2
- package/dist/roadtrip/p-9b170273.entry.js.map +1 -0
- package/dist/roadtrip/{p-43bdbf0a.entry.js → p-9bef58e1.entry.js} +2 -2
- package/dist/roadtrip/p-9bef58e1.entry.js.map +1 -0
- package/dist/roadtrip/p-9fefc8af.entry.js +2 -0
- package/dist/roadtrip/p-9fefc8af.entry.js.map +1 -0
- package/dist/roadtrip/p-a2a9a650.entry.js +2 -0
- package/dist/roadtrip/{p-7589e2bb.entry.js.map → p-a2a9a650.entry.js.map} +1 -1
- package/dist/roadtrip/p-b09c076d.entry.js +2 -0
- package/dist/roadtrip/p-b09c076d.entry.js.map +1 -0
- package/dist/roadtrip/{p-b7d3dc1a.entry.js → p-b2e7bfcb.entry.js} +2 -2
- package/dist/roadtrip/p-b2e7bfcb.entry.js.map +1 -0
- package/dist/roadtrip/p-b614a9fb.entry.js +2 -0
- package/dist/roadtrip/p-b614a9fb.entry.js.map +1 -0
- package/dist/roadtrip/{p-ebe3c26a.entry.js → p-b65f0a62.entry.js} +2 -2
- package/dist/roadtrip/p-b65f0a62.entry.js.map +1 -0
- package/dist/roadtrip/{p-29ff2bcd.entry.js → p-bfcedcfb.entry.js} +2 -2
- package/dist/roadtrip/p-bfcedcfb.entry.js.map +1 -0
- package/dist/roadtrip/{p-b259fee3.entry.js → p-c33f5249.entry.js} +2 -2
- package/dist/roadtrip/p-c33f5249.entry.js.map +1 -0
- package/dist/roadtrip/{p-439e1124.entry.js → p-cbe0c628.entry.js} +2 -2
- package/dist/roadtrip/p-cbe0c628.entry.js.map +1 -0
- package/dist/roadtrip/p-d651deea.entry.js +2 -0
- package/dist/roadtrip/p-d651deea.entry.js.map +1 -0
- package/dist/roadtrip/p-d794a8d4.entry.js +2 -0
- package/dist/roadtrip/p-d794a8d4.entry.js.map +1 -0
- package/dist/roadtrip/{p-295a97d7.entry.js → p-db7cb1c8.entry.js} +2 -2
- package/dist/roadtrip/p-db7cb1c8.entry.js.map +1 -0
- package/dist/roadtrip/{p-6598e293.entry.js → p-dcb280e3.entry.js} +2 -2
- package/dist/roadtrip/p-dcb280e3.entry.js.map +1 -0
- package/dist/roadtrip/{p-cb254685.entry.js → p-e2149bdf.entry.js} +2 -2
- package/dist/roadtrip/p-e2149bdf.entry.js.map +1 -0
- package/dist/roadtrip/{p-650eb7fb.entry.js → p-e2c6d81f.entry.js} +2 -2
- package/dist/roadtrip/p-e2c6d81f.entry.js.map +1 -0
- package/dist/roadtrip/{p-66a9a6e8.entry.js → p-e42a9ec4.entry.js} +2 -2
- package/dist/roadtrip/p-e42a9ec4.entry.js.map +1 -0
- package/dist/roadtrip/{p-9dd06f01.entry.js → p-ea28a425.entry.js} +2 -2
- package/dist/roadtrip/p-ea28a425.entry.js.map +1 -0
- package/dist/roadtrip/p-f3d586b3.js +3 -0
- package/dist/roadtrip/p-f3d586b3.js.map +1 -0
- package/dist/roadtrip/{p-9432708d.entry.js → p-f5cce766.entry.js} +2 -2
- package/dist/roadtrip/p-f5cce766.entry.js.map +1 -0
- package/dist/roadtrip/{p-5a4f9085.entry.js → p-f6d47cda.entry.js} +2 -2
- package/dist/roadtrip/p-f6d47cda.entry.js.map +1 -0
- package/dist/roadtrip/{p-b34aba1a.js → p-faa60880.js} +2 -2
- package/dist/roadtrip/p-faa60880.js.map +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/roadtrip/roadtrip.esm.js.map +1 -1
- package/dist/roadtrip/svg/vehicle-car-search-color.svg +1 -1
- package/dist/types/components/area-code/area-code.d.ts +4 -7
- package/dist/types/components/drawer/drawer.d.ts +0 -1
- package/dist/types/components.d.ts +571 -20
- package/dist/types/global/app.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +38 -5
- package/hydrate/index.d.ts +6 -6
- package/hydrate/index.js +285 -235
- package/package.json +2 -2
- package/dist/cjs/app-d9e5adfa.js +0 -9
- package/dist/cjs/app-d9e5adfa.js.map +0 -1
- package/dist/cjs/css-shim-68410b74.js +0 -8
- package/dist/cjs/css-shim-68410b74.js.map +0 -1
- package/dist/cjs/dom-225fc508.js +0 -77
- package/dist/cjs/dom-225fc508.js.map +0 -1
- package/dist/cjs/focus-visible-6771892b.js.map +0 -1
- package/dist/cjs/index-e4bd5b5f.js.map +0 -1
- package/dist/cjs/index-fd07207a.js.map +0 -1
- package/dist/cjs/polyfill-9453e116.js.map +0 -1
- package/dist/cjs/shadow-css-3c339190.js +0 -391
- package/dist/cjs/shadow-css-3c339190.js.map +0 -1
- package/dist/cjs/utils-5203d152.js.map +0 -1
- package/dist/cjs/utils-a450bad3.js.map +0 -1
- package/dist/collection/components/drawer/drawer.dark.css +0 -252
- package/dist/esm/app-a8a6f02a.js +0 -7
- package/dist/esm/app-a8a6f02a.js.map +0 -1
- package/dist/esm/css-shim-fa54d62f.js +0 -6
- package/dist/esm/css-shim-fa54d62f.js.map +0 -1
- package/dist/esm/dom-8de30773.js +0 -75
- package/dist/esm/dom-8de30773.js.map +0 -1
- package/dist/esm/focus-visible-75a2ea2a.js.map +0 -1
- package/dist/esm/index-4b484f35.js.map +0 -1
- package/dist/esm/index-8f45025b.js.map +0 -1
- package/dist/esm/polyfill-ab80527b.js +0 -7
- package/dist/esm/polyfill-ab80527b.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/shadow-css-af2290df.js +0 -389
- package/dist/esm/shadow-css-af2290df.js.map +0 -1
- package/dist/esm/utils-7f4988b4.js.map +0 -1
- package/dist/esm/utils-ff713b72.js.map +0 -1
- package/dist/roadtrip/p-00cfef9b.js +0 -22
- package/dist/roadtrip/p-00cfef9b.js.map +0 -1
- package/dist/roadtrip/p-093973f5.entry.js.map +0 -1
- package/dist/roadtrip/p-0bcf6d63.entry.js.map +0 -1
- package/dist/roadtrip/p-0d99a5e7.entry.js.map +0 -1
- package/dist/roadtrip/p-125c777f.entry.js +0 -2
- package/dist/roadtrip/p-125c777f.entry.js.map +0 -1
- package/dist/roadtrip/p-16285738.entry.js +0 -2
- package/dist/roadtrip/p-16285738.entry.js.map +0 -1
- package/dist/roadtrip/p-170a82e1.entry.js +0 -2
- package/dist/roadtrip/p-170a82e1.entry.js.map +0 -1
- package/dist/roadtrip/p-1974c993.entry.js.map +0 -1
- package/dist/roadtrip/p-198f586b.entry.js +0 -2
- package/dist/roadtrip/p-198f586b.entry.js.map +0 -1
- package/dist/roadtrip/p-1baffcc2.entry.js.map +0 -1
- package/dist/roadtrip/p-1caeda78.entry.js.map +0 -1
- package/dist/roadtrip/p-214218dd.entry.js +0 -2
- package/dist/roadtrip/p-214218dd.entry.js.map +0 -1
- package/dist/roadtrip/p-21c20210.entry.js.map +0 -1
- package/dist/roadtrip/p-295a97d7.entry.js.map +0 -1
- package/dist/roadtrip/p-298a51a3.js +0 -2
- package/dist/roadtrip/p-298a51a3.js.map +0 -1
- package/dist/roadtrip/p-29ff2bcd.entry.js.map +0 -1
- package/dist/roadtrip/p-2d01d350.entry.js.map +0 -1
- package/dist/roadtrip/p-35ffaa87.entry.js.map +0 -1
- package/dist/roadtrip/p-3604d557.entry.js.map +0 -1
- package/dist/roadtrip/p-37ab7c7f.js.map +0 -1
- package/dist/roadtrip/p-38597e21.entry.js +0 -2
- package/dist/roadtrip/p-38597e21.entry.js.map +0 -1
- package/dist/roadtrip/p-439e1124.entry.js.map +0 -1
- package/dist/roadtrip/p-43bdbf0a.entry.js.map +0 -1
- package/dist/roadtrip/p-48596f8f.entry.js.map +0 -1
- package/dist/roadtrip/p-4993da93.entry.js +0 -2
- package/dist/roadtrip/p-4993da93.entry.js.map +0 -1
- package/dist/roadtrip/p-4fd8c4db.entry.js.map +0 -1
- package/dist/roadtrip/p-50daca95.js +0 -13
- package/dist/roadtrip/p-50daca95.js.map +0 -1
- package/dist/roadtrip/p-564f4f31.entry.js +0 -2
- package/dist/roadtrip/p-564f4f31.entry.js.map +0 -1
- package/dist/roadtrip/p-5a4f9085.entry.js.map +0 -1
- package/dist/roadtrip/p-5f4779b1.entry.js.map +0 -1
- package/dist/roadtrip/p-62c563db.entry.js +0 -2
- package/dist/roadtrip/p-62c563db.entry.js.map +0 -1
- package/dist/roadtrip/p-650eb7fb.entry.js.map +0 -1
- package/dist/roadtrip/p-6598e293.entry.js.map +0 -1
- package/dist/roadtrip/p-66a9a6e8.entry.js.map +0 -1
- package/dist/roadtrip/p-73df1bef.entry.js.map +0 -1
- package/dist/roadtrip/p-7589e2bb.entry.js +0 -2
- package/dist/roadtrip/p-7c4b331c.entry.js.map +0 -1
- package/dist/roadtrip/p-7ec2d494.js.map +0 -1
- package/dist/roadtrip/p-8e216f6a.entry.js.map +0 -1
- package/dist/roadtrip/p-8f802447.entry.js.map +0 -1
- package/dist/roadtrip/p-9036a1e6.entry.js.map +0 -1
- package/dist/roadtrip/p-91e92e99.entry.js.map +0 -1
- package/dist/roadtrip/p-93030cec.entry.js.map +0 -1
- package/dist/roadtrip/p-9419bdaf.entry.js.map +0 -1
- package/dist/roadtrip/p-9432708d.entry.js.map +0 -1
- package/dist/roadtrip/p-9dd06f01.entry.js.map +0 -1
- package/dist/roadtrip/p-a32c7889.entry.js +0 -2
- package/dist/roadtrip/p-a32c7889.entry.js.map +0 -1
- package/dist/roadtrip/p-a484102a.entry.js.map +0 -1
- package/dist/roadtrip/p-abdbf6ac.js +0 -3
- package/dist/roadtrip/p-abdbf6ac.js.map +0 -1
- package/dist/roadtrip/p-b259fee3.entry.js.map +0 -1
- package/dist/roadtrip/p-b2cc540b.entry.js +0 -2
- package/dist/roadtrip/p-b2cc540b.entry.js.map +0 -1
- package/dist/roadtrip/p-b34aba1a.js.map +0 -1
- package/dist/roadtrip/p-b4dc061d.entry.js.map +0 -1
- package/dist/roadtrip/p-b5727aae.entry.js.map +0 -1
- package/dist/roadtrip/p-b7d3dc1a.entry.js.map +0 -1
- package/dist/roadtrip/p-c259efd7.js.map +0 -1
- package/dist/roadtrip/p-c56fe023.entry.js +0 -2
- package/dist/roadtrip/p-c56fe023.entry.js.map +0 -1
- package/dist/roadtrip/p-c8e9807b.entry.js.map +0 -1
- package/dist/roadtrip/p-cb254685.entry.js.map +0 -1
- package/dist/roadtrip/p-cd2e8f0a.entry.js +0 -2
- package/dist/roadtrip/p-cd2e8f0a.entry.js.map +0 -1
- package/dist/roadtrip/p-e68a3ae5.entry.js.map +0 -1
- package/dist/roadtrip/p-e8c090a5.js +0 -2
- package/dist/roadtrip/p-e8c090a5.js.map +0 -1
- package/dist/roadtrip/p-ebe3c26a.entry.js.map +0 -1
- package/dist/roadtrip/p-ee0196ea.entry.js.map +0 -1
- package/dist/roadtrip/p-f671758f.entry.js +0 -2
- package/dist/roadtrip/p-f671758f.entry.js.map +0 -1
- package/dist/roadtrip/p-fa98320c.js +0 -2
- package/dist/roadtrip/p-fa98320c.js.map +0 -1
- package/dist/roadtrip/p-ff473633.entry.js.map +0 -1
- package/dist/roadtrip/p-ff52872b.entry.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"polyfill-ab80527b.js","mappings":"AAAA;AACA,IAAI,MAAM,CAAC,yBAAyB,IAAI,IAAI,EAAE;;EAE5C,OAAO,6BAAe,oCAAC,CAAC;","names":[],"sources":["./src/utils/polyfill.ts"],"sourcesContent":["// @ts-ignore\nif (window.applyFocusVisiblePolyfill == null) {\n // @ts-ignore\n import('focus-visible');\n}"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Stencil Client Platform v3.4.2 | MIT Licensed | https://stenciljs.com
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
-
* found in the LICENSE file at https://angular.io/license
|
|
10
|
-
*
|
|
11
|
-
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
|
12
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
13
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
14
|
-
*/
|
|
15
|
-
const safeSelector = (selector) => {
|
|
16
|
-
const placeholders = [];
|
|
17
|
-
let index = 0;
|
|
18
|
-
// Replaces attribute selectors with placeholders.
|
|
19
|
-
// The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
|
|
20
|
-
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
21
|
-
const replaceBy = `__ph-${index}__`;
|
|
22
|
-
placeholders.push(keep);
|
|
23
|
-
index++;
|
|
24
|
-
return replaceBy;
|
|
25
|
-
});
|
|
26
|
-
// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
|
|
27
|
-
// WS and "+" would otherwise be interpreted as selector separators.
|
|
28
|
-
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
29
|
-
const replaceBy = `__ph-${index}__`;
|
|
30
|
-
placeholders.push(exp);
|
|
31
|
-
index++;
|
|
32
|
-
return pseudo + replaceBy;
|
|
33
|
-
});
|
|
34
|
-
const ss = {
|
|
35
|
-
content,
|
|
36
|
-
placeholders,
|
|
37
|
-
};
|
|
38
|
-
return ss;
|
|
39
|
-
};
|
|
40
|
-
const restoreSafeSelector = (placeholders, content) => {
|
|
41
|
-
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
42
|
-
};
|
|
43
|
-
const _polyfillHost = '-shadowcsshost';
|
|
44
|
-
const _polyfillSlotted = '-shadowcssslotted';
|
|
45
|
-
// note: :host-context pre-processed to -shadowcsshostcontext.
|
|
46
|
-
const _polyfillHostContext = '-shadowcsscontext';
|
|
47
|
-
const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
|
|
48
|
-
const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
|
|
49
|
-
const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
|
|
50
|
-
const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
|
|
51
|
-
const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
|
|
52
|
-
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
53
|
-
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
54
|
-
const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
|
|
55
|
-
const _polyfillHostRe = /-shadowcsshost/gim;
|
|
56
|
-
const _colonHostRe = /:host/gim;
|
|
57
|
-
const _colonSlottedRe = /::slotted/gim;
|
|
58
|
-
const _colonHostContextRe = /:host-context/gim;
|
|
59
|
-
const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
60
|
-
const stripComments = (input) => {
|
|
61
|
-
return input.replace(_commentRe, '');
|
|
62
|
-
};
|
|
63
|
-
const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
64
|
-
const extractCommentsWithHash = (input) => {
|
|
65
|
-
return input.match(_commentWithHashRe) || [];
|
|
66
|
-
};
|
|
67
|
-
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
68
|
-
const _curlyRe = /([{}])/g;
|
|
69
|
-
const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
70
|
-
const OPEN_CURLY = '{';
|
|
71
|
-
const CLOSE_CURLY = '}';
|
|
72
|
-
const BLOCK_PLACEHOLDER = '%BLOCK%';
|
|
73
|
-
const processRules = (input, ruleCallback) => {
|
|
74
|
-
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
75
|
-
let nextBlockIndex = 0;
|
|
76
|
-
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
77
|
-
const selector = m[2];
|
|
78
|
-
let content = '';
|
|
79
|
-
let suffix = m[4];
|
|
80
|
-
let contentPrefix = '';
|
|
81
|
-
if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
|
|
82
|
-
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
83
|
-
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
84
|
-
contentPrefix = '{';
|
|
85
|
-
}
|
|
86
|
-
const cssRule = {
|
|
87
|
-
selector,
|
|
88
|
-
content,
|
|
89
|
-
};
|
|
90
|
-
const rule = ruleCallback(cssRule);
|
|
91
|
-
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const escapeBlocks = (input) => {
|
|
95
|
-
const inputParts = input.split(_curlyRe);
|
|
96
|
-
const resultParts = [];
|
|
97
|
-
const escapedBlocks = [];
|
|
98
|
-
let bracketCount = 0;
|
|
99
|
-
let currentBlockParts = [];
|
|
100
|
-
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
101
|
-
const part = inputParts[partIndex];
|
|
102
|
-
if (part === CLOSE_CURLY) {
|
|
103
|
-
bracketCount--;
|
|
104
|
-
}
|
|
105
|
-
if (bracketCount > 0) {
|
|
106
|
-
currentBlockParts.push(part);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
if (currentBlockParts.length > 0) {
|
|
110
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
111
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
112
|
-
currentBlockParts = [];
|
|
113
|
-
}
|
|
114
|
-
resultParts.push(part);
|
|
115
|
-
}
|
|
116
|
-
if (part === OPEN_CURLY) {
|
|
117
|
-
bracketCount++;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
if (currentBlockParts.length > 0) {
|
|
121
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
122
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
123
|
-
}
|
|
124
|
-
const strEscapedBlocks = {
|
|
125
|
-
escapedString: resultParts.join(''),
|
|
126
|
-
blocks: escapedBlocks,
|
|
127
|
-
};
|
|
128
|
-
return strEscapedBlocks;
|
|
129
|
-
};
|
|
130
|
-
const insertPolyfillHostInCssText = (selector) => {
|
|
131
|
-
selector = selector
|
|
132
|
-
.replace(_colonHostContextRe, _polyfillHostContext)
|
|
133
|
-
.replace(_colonHostRe, _polyfillHost)
|
|
134
|
-
.replace(_colonSlottedRe, _polyfillSlotted);
|
|
135
|
-
return selector;
|
|
136
|
-
};
|
|
137
|
-
const convertColonRule = (cssText, regExp, partReplacer) => {
|
|
138
|
-
// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
|
|
139
|
-
return cssText.replace(regExp, (...m) => {
|
|
140
|
-
if (m[2]) {
|
|
141
|
-
const parts = m[2].split(',');
|
|
142
|
-
const r = [];
|
|
143
|
-
for (let i = 0; i < parts.length; i++) {
|
|
144
|
-
const p = parts[i].trim();
|
|
145
|
-
if (!p)
|
|
146
|
-
break;
|
|
147
|
-
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
148
|
-
}
|
|
149
|
-
return r.join(',');
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return _polyfillHostNoCombinator + m[3];
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
const colonHostPartReplacer = (host, part, suffix) => {
|
|
157
|
-
return host + part.replace(_polyfillHost, '') + suffix;
|
|
158
|
-
};
|
|
159
|
-
const convertColonHost = (cssText) => {
|
|
160
|
-
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
161
|
-
};
|
|
162
|
-
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
163
|
-
if (part.indexOf(_polyfillHost) > -1) {
|
|
164
|
-
return colonHostPartReplacer(host, part, suffix);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
return host + part + suffix + ', ' + part + ' ' + host + suffix;
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
171
|
-
const slotClass = '.' + slotScopeId + ' > ';
|
|
172
|
-
const selectors = [];
|
|
173
|
-
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
174
|
-
if (m[2]) {
|
|
175
|
-
const compound = m[2].trim();
|
|
176
|
-
const suffix = m[3];
|
|
177
|
-
const slottedSelector = slotClass + compound + suffix;
|
|
178
|
-
let prefixSelector = '';
|
|
179
|
-
for (let i = m[4] - 1; i >= 0; i--) {
|
|
180
|
-
const char = m[5][i];
|
|
181
|
-
if (char === '}' || char === ',') {
|
|
182
|
-
break;
|
|
183
|
-
}
|
|
184
|
-
prefixSelector = char + prefixSelector;
|
|
185
|
-
}
|
|
186
|
-
const orgSelector = prefixSelector + slottedSelector;
|
|
187
|
-
const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
|
|
188
|
-
if (orgSelector.trim() !== addedSelector.trim()) {
|
|
189
|
-
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
190
|
-
selectors.push({
|
|
191
|
-
orgSelector,
|
|
192
|
-
updatedSelector,
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
return slottedSelector;
|
|
196
|
-
}
|
|
197
|
-
else {
|
|
198
|
-
return _polyfillHostNoCombinator + m[3];
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
return {
|
|
202
|
-
selectors,
|
|
203
|
-
cssText,
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
const convertColonHostContext = (cssText) => {
|
|
207
|
-
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
208
|
-
};
|
|
209
|
-
const convertShadowDOMSelectors = (cssText) => {
|
|
210
|
-
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
|
|
211
|
-
};
|
|
212
|
-
const makeScopeMatcher = (scopeSelector) => {
|
|
213
|
-
const lre = /\[/g;
|
|
214
|
-
const rre = /\]/g;
|
|
215
|
-
scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
|
|
216
|
-
return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
|
|
217
|
-
};
|
|
218
|
-
const selectorNeedsScoping = (selector, scopeSelector) => {
|
|
219
|
-
const re = makeScopeMatcher(scopeSelector);
|
|
220
|
-
return !re.test(selector);
|
|
221
|
-
};
|
|
222
|
-
const injectScopingSelector = (selector, scopingSelector) => {
|
|
223
|
-
return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
|
|
224
|
-
return before + scopingSelector + colon + after;
|
|
225
|
-
});
|
|
226
|
-
};
|
|
227
|
-
const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
228
|
-
// In Android browser, the lastIndex is not reset when the regex is used in String.replace()
|
|
229
|
-
_polyfillHostRe.lastIndex = 0;
|
|
230
|
-
if (_polyfillHostRe.test(selector)) {
|
|
231
|
-
const replaceBy = `.${hostSelector}`;
|
|
232
|
-
return selector
|
|
233
|
-
.replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
|
|
234
|
-
.replace(_polyfillHostRe, replaceBy + ' ');
|
|
235
|
-
}
|
|
236
|
-
return scopeSelector + ' ' + selector;
|
|
237
|
-
};
|
|
238
|
-
const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
239
|
-
const isRe = /\[is=([^\]]*)\]/g;
|
|
240
|
-
scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
|
|
241
|
-
const className = '.' + scopeSelector;
|
|
242
|
-
const _scopeSelectorPart = (p) => {
|
|
243
|
-
let scopedP = p.trim();
|
|
244
|
-
if (!scopedP) {
|
|
245
|
-
return '';
|
|
246
|
-
}
|
|
247
|
-
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
248
|
-
scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
// remove :host since it should be unnecessary
|
|
252
|
-
const t = p.replace(_polyfillHostRe, '');
|
|
253
|
-
if (t.length > 0) {
|
|
254
|
-
scopedP = injectScopingSelector(t, className);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
return scopedP;
|
|
258
|
-
};
|
|
259
|
-
const safeContent = safeSelector(selector);
|
|
260
|
-
selector = safeContent.content;
|
|
261
|
-
let scopedSelector = '';
|
|
262
|
-
let startIndex = 0;
|
|
263
|
-
let res;
|
|
264
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
265
|
-
// If a selector appears before :host it should not be shimmed as it
|
|
266
|
-
// matches on ancestor elements and not on elements in the host's shadow
|
|
267
|
-
// `:host-context(div)` is transformed to
|
|
268
|
-
// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
|
|
269
|
-
// the `div` is not part of the component in the 2nd selectors and should not be scoped.
|
|
270
|
-
// Historically `component-tag:host` was matching the component so we also want to preserve
|
|
271
|
-
// this behavior to avoid breaking legacy apps (it should not match).
|
|
272
|
-
// The behavior should be:
|
|
273
|
-
// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
|
|
274
|
-
// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
|
|
275
|
-
// `:host-context(tag)`)
|
|
276
|
-
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
277
|
-
// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
|
|
278
|
-
let shouldScope = !hasHost;
|
|
279
|
-
while ((res = sep.exec(selector)) !== null) {
|
|
280
|
-
const separator = res[1];
|
|
281
|
-
const part = selector.slice(startIndex, res.index).trim();
|
|
282
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
283
|
-
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
284
|
-
scopedSelector += `${scopedPart} ${separator} `;
|
|
285
|
-
startIndex = sep.lastIndex;
|
|
286
|
-
}
|
|
287
|
-
const part = selector.substring(startIndex);
|
|
288
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
289
|
-
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
290
|
-
// replace the placeholders with their original values
|
|
291
|
-
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
292
|
-
};
|
|
293
|
-
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
294
|
-
return selector
|
|
295
|
-
.split(',')
|
|
296
|
-
.map((shallowPart) => {
|
|
297
|
-
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
298
|
-
return shallowPart.trim();
|
|
299
|
-
}
|
|
300
|
-
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
301
|
-
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
return shallowPart.trim();
|
|
305
|
-
}
|
|
306
|
-
})
|
|
307
|
-
.join(', ');
|
|
308
|
-
};
|
|
309
|
-
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
310
|
-
return processRules(cssText, (rule) => {
|
|
311
|
-
let selector = rule.selector;
|
|
312
|
-
let content = rule.content;
|
|
313
|
-
if (rule.selector[0] !== '@') {
|
|
314
|
-
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
315
|
-
}
|
|
316
|
-
else if (rule.selector.startsWith('@media') ||
|
|
317
|
-
rule.selector.startsWith('@supports') ||
|
|
318
|
-
rule.selector.startsWith('@page') ||
|
|
319
|
-
rule.selector.startsWith('@document')) {
|
|
320
|
-
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
321
|
-
}
|
|
322
|
-
const cssRule = {
|
|
323
|
-
selector: selector.replace(/\s{2,}/g, ' ').trim(),
|
|
324
|
-
content,
|
|
325
|
-
};
|
|
326
|
-
return cssRule;
|
|
327
|
-
});
|
|
328
|
-
};
|
|
329
|
-
const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
330
|
-
cssText = insertPolyfillHostInCssText(cssText);
|
|
331
|
-
cssText = convertColonHost(cssText);
|
|
332
|
-
cssText = convertColonHostContext(cssText);
|
|
333
|
-
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
334
|
-
cssText = slotted.cssText;
|
|
335
|
-
cssText = convertShadowDOMSelectors(cssText);
|
|
336
|
-
if (scopeId) {
|
|
337
|
-
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
338
|
-
}
|
|
339
|
-
cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
340
|
-
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
|
|
341
|
-
return {
|
|
342
|
-
cssText: cssText.trim(),
|
|
343
|
-
slottedSelectors: slotted.selectors,
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
347
|
-
const hostScopeId = scopeId + '-h';
|
|
348
|
-
const slotScopeId = scopeId + '-s';
|
|
349
|
-
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
350
|
-
cssText = stripComments(cssText);
|
|
351
|
-
const orgSelectors = [];
|
|
352
|
-
if (commentOriginalSelector) {
|
|
353
|
-
const processCommentedSelector = (rule) => {
|
|
354
|
-
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
355
|
-
const comment = `/*!@${rule.selector}*/`;
|
|
356
|
-
orgSelectors.push({ placeholder, comment });
|
|
357
|
-
rule.selector = placeholder + rule.selector;
|
|
358
|
-
return rule;
|
|
359
|
-
};
|
|
360
|
-
cssText = processRules(cssText, (rule) => {
|
|
361
|
-
if (rule.selector[0] !== '@') {
|
|
362
|
-
return processCommentedSelector(rule);
|
|
363
|
-
}
|
|
364
|
-
else if (rule.selector.startsWith('@media') ||
|
|
365
|
-
rule.selector.startsWith('@supports') ||
|
|
366
|
-
rule.selector.startsWith('@page') ||
|
|
367
|
-
rule.selector.startsWith('@document')) {
|
|
368
|
-
rule.content = processRules(rule.content, processCommentedSelector);
|
|
369
|
-
return rule;
|
|
370
|
-
}
|
|
371
|
-
return rule;
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
375
|
-
cssText = [scoped.cssText, ...commentsWithHash].join('\n');
|
|
376
|
-
if (commentOriginalSelector) {
|
|
377
|
-
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
378
|
-
cssText = cssText.replace(placeholder, comment);
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
382
|
-
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
383
|
-
});
|
|
384
|
-
return cssText;
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
export { scopeCss };
|
|
388
|
-
|
|
389
|
-
//# sourceMappingURL=shadow-css-af2290df.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"shadow-css-af2290df.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,YAAY,GAAG,CAAC,QAAQ,KAAK;AACnC,IAAI,MAAM,YAAY,GAAG,EAAE,CAAC;AAC5B,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC;AAClB;AACA;AACA,IAAI,QAAQ,GAAG,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AE,KAAK;AAC3D,YAAY,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC5D,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,KAAK;AACzD,QAAQ,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,WAAW,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;AAChG,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,OAAO,CAAC;AACnB;;;;","names":[],"sources":["./node_modules/@stencil/core/internal/client/shadow-css.js"],"sourcesContent":["/*\n Stencil Client Platform v3.4.2 | MIT Licensed | https://stenciljs.com\n */\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */\nconst safeSelector = (selector) => {\n const placeholders = [];\n let index = 0;\n // Replaces attribute selectors with placeholders.\n // The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\n selector = selector.replace(/(\\[[^\\]]*\\])/g, (_, keep) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n // WS and \"+\" would otherwise be interpreted as selector separators.\n const content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(exp);\n index++;\n return pseudo + replaceBy;\n });\n const ss = {\n content,\n placeholders,\n };\n return ss;\n};\nconst restoreSafeSelector = (placeholders, content) => {\n return content.replace(/__ph-(\\d+)__/g, (_, index) => placeholders[+index]);\n};\nconst _polyfillHost = '-shadowcsshost';\nconst _polyfillSlotted = '-shadowcssslotted';\n// note: :host-context pre-processed to -shadowcsshostcontext.\nconst _polyfillHostContext = '-shadowcsscontext';\nconst _parenSuffix = ')(?:\\\\((' + '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' + ')\\\\))?([^,{]*)';\nconst _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');\nconst _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');\nconst _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');\nconst _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\nconst _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nconst _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];\nconst _selectorReSuffix = '([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';\nconst _polyfillHostRe = /-shadowcsshost/gim;\nconst _colonHostRe = /:host/gim;\nconst _colonSlottedRe = /::slotted/gim;\nconst _colonHostContextRe = /:host-context/gim;\nconst _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\nconst stripComments = (input) => {\n return input.replace(_commentRe, '');\n};\nconst _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;\nconst extractCommentsWithHash = (input) => {\n return input.match(_commentWithHashRe) || [];\n};\nconst _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\nconst _curlyRe = /([{}])/g;\nconst _selectorPartsRe = /(^.*?[^\\\\])??((:+)(.*)|$)/;\nconst OPEN_CURLY = '{';\nconst CLOSE_CURLY = '}';\nconst BLOCK_PLACEHOLDER = '%BLOCK%';\nconst processRules = (input, ruleCallback) => {\n const inputWithEscapedBlocks = escapeBlocks(input);\n let nextBlockIndex = 0;\n return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = '';\n let suffix = m[4];\n let contentPrefix = '';\n if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = '{';\n }\n const cssRule = {\n selector,\n content,\n };\n const rule = ruleCallback(cssRule);\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n};\nconst escapeBlocks = (input) => {\n const inputParts = input.split(_curlyRe);\n const resultParts = [];\n const escapedBlocks = [];\n let bracketCount = 0;\n let currentBlockParts = [];\n for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {\n const part = inputParts[partIndex];\n if (part === CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n }\n else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part === OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n const strEscapedBlocks = {\n escapedString: resultParts.join(''),\n blocks: escapedBlocks,\n };\n return strEscapedBlocks;\n};\nconst insertPolyfillHostInCssText = (selector) => {\n selector = selector\n .replace(_colonHostContextRe, _polyfillHostContext)\n .replace(_colonHostRe, _polyfillHost)\n .replace(_colonSlottedRe, _polyfillSlotted);\n return selector;\n};\nconst convertColonRule = (cssText, regExp, partReplacer) => {\n // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\n return cssText.replace(regExp, (...m) => {\n if (m[2]) {\n const parts = m[2].split(',');\n const r = [];\n for (let i = 0; i < parts.length; i++) {\n const p = parts[i].trim();\n if (!p)\n break;\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(',');\n }\n else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n};\nconst colonHostPartReplacer = (host, part, suffix) => {\n return host + part.replace(_polyfillHost, '') + suffix;\n};\nconst convertColonHost = (cssText) => {\n return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);\n};\nconst colonHostContextPartReplacer = (host, part, suffix) => {\n if (part.indexOf(_polyfillHost) > -1) {\n return colonHostPartReplacer(host, part, suffix);\n }\n else {\n return host + part + suffix + ', ' + part + ' ' + host + suffix;\n }\n};\nconst convertColonSlotted = (cssText, slotScopeId) => {\n const slotClass = '.' + slotScopeId + ' > ';\n const selectors = [];\n cssText = cssText.replace(_cssColonSlottedRe, (...m) => {\n if (m[2]) {\n const compound = m[2].trim();\n const suffix = m[3];\n const slottedSelector = slotClass + compound + suffix;\n let prefixSelector = '';\n for (let i = m[4] - 1; i >= 0; i--) {\n const char = m[5][i];\n if (char === '}' || char === ',') {\n break;\n }\n prefixSelector = char + prefixSelector;\n }\n const orgSelector = prefixSelector + slottedSelector;\n const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;\n if (orgSelector.trim() !== addedSelector.trim()) {\n const updatedSelector = `${addedSelector}, ${orgSelector}`;\n selectors.push({\n orgSelector,\n updatedSelector,\n });\n }\n return slottedSelector;\n }\n else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n return {\n selectors,\n cssText,\n };\n};\nconst convertColonHostContext = (cssText) => {\n return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);\n};\nconst convertShadowDOMSelectors = (cssText) => {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);\n};\nconst makeScopeMatcher = (scopeSelector) => {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector = scopeSelector.replace(lre, '\\\\[').replace(rre, '\\\\]');\n return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n};\nconst selectorNeedsScoping = (selector, scopeSelector) => {\n const re = makeScopeMatcher(scopeSelector);\n return !re.test(selector);\n};\nconst injectScopingSelector = (selector, scopingSelector) => {\n return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {\n return before + scopingSelector + colon + after;\n });\n};\nconst applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {\n // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `.${hostSelector}`;\n return selector\n .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))\n .replace(_polyfillHostRe, replaceBy + ' ');\n }\n return scopeSelector + ' ' + selector;\n};\nconst applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);\n const className = '.' + scopeSelector;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return '';\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);\n }\n else {\n // remove :host since it should be unnecessary\n const t = p.replace(_polyfillHostRe, '');\n if (t.length > 0) {\n scopedP = injectScopingSelector(t, className);\n }\n }\n return scopedP;\n };\n const safeContent = safeSelector(selector);\n selector = safeContent.content;\n let scopedSelector = '';\n let startIndex = 0;\n let res;\n const sep = /( |>|\\+|~(?!=))\\s*/g;\n // If a selector appears before :host it should not be shimmed as it\n // matches on ancestor elements and not on elements in the host's shadow\n // `:host-context(div)` is transformed to\n // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n // the `div` is not part of the component in the 2nd selectors and should not be scoped.\n // Historically `component-tag:host` was matching the component so we also want to preserve\n // this behavior to avoid breaking legacy apps (it should not match).\n // The behavior should be:\n // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n // `:host-context(tag)`)\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\n let shouldScope = !hasHost;\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part = selector.slice(startIndex, res.index).trim();\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n // replace the placeholders with their original values\n return restoreSafeSelector(safeContent.placeholders, scopedSelector);\n};\nconst scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {\n return selector\n .split(',')\n .map((shallowPart) => {\n if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {\n return shallowPart.trim();\n }\n if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {\n return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();\n }\n else {\n return shallowPart.trim();\n }\n })\n .join(', ');\n};\nconst scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== '@') {\n selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);\n }\n else if (rule.selector.startsWith('@media') ||\n rule.selector.startsWith('@supports') ||\n rule.selector.startsWith('@page') ||\n rule.selector.startsWith('@document')) {\n content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);\n }\n const cssRule = {\n selector: selector.replace(/\\s{2,}/g, ' ').trim(),\n content,\n };\n return cssRule;\n });\n};\nconst scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {\n cssText = insertPolyfillHostInCssText(cssText);\n cssText = convertColonHost(cssText);\n cssText = convertColonHostContext(cssText);\n const slotted = convertColonSlotted(cssText, slotScopeId);\n cssText = slotted.cssText;\n cssText = convertShadowDOMSelectors(cssText);\n if (scopeId) {\n cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);\n }\n cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);\n cssText = cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm, ' $1 ');\n return {\n cssText: cssText.trim(),\n slottedSelectors: slotted.selectors,\n };\n};\nconst scopeCss = (cssText, scopeId, commentOriginalSelector) => {\n const hostScopeId = scopeId + '-h';\n const slotScopeId = scopeId + '-s';\n const commentsWithHash = extractCommentsWithHash(cssText);\n cssText = stripComments(cssText);\n const orgSelectors = [];\n if (commentOriginalSelector) {\n const processCommentedSelector = (rule) => {\n const placeholder = `/*!@___${orgSelectors.length}___*/`;\n const comment = `/*!@${rule.selector}*/`;\n orgSelectors.push({ placeholder, comment });\n rule.selector = placeholder + rule.selector;\n return rule;\n };\n cssText = processRules(cssText, (rule) => {\n if (rule.selector[0] !== '@') {\n return processCommentedSelector(rule);\n }\n else if (rule.selector.startsWith('@media') ||\n rule.selector.startsWith('@supports') ||\n rule.selector.startsWith('@page') ||\n rule.selector.startsWith('@document')) {\n rule.content = processRules(rule.content, processCommentedSelector);\n return rule;\n }\n return rule;\n });\n }\n const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);\n cssText = [scoped.cssText, ...commentsWithHash].join('\\n');\n if (commentOriginalSelector) {\n orgSelectors.forEach(({ placeholder, comment }) => {\n cssText = cssText.replace(placeholder, comment);\n });\n }\n scoped.slottedSelectors.forEach((slottedSelector) => {\n cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);\n });\n return cssText;\n};\n\nexport { scopeCss };\n"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"utils-7f4988b4.js","mappings":";;AAIA,IAAI,UAA+B,CAAC;A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components/icon/utils.ts"],"sourcesContent":["import { getAssetPath } from '@stencil/core';\nimport { Icon } from './icon';\n\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any;\n win.Ionicons = win.Ionicons || {};\n CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\n\n\nexport const getUrl = (i: Icon) => {\n let url = getSrc(i.src);\n if (url) {\n return url;\n }\n\n url = getName(i.name, i.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (i.icon) {\n url = getSrc(i.icon);\n if (url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n) => {\n\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n // only allow alpha characters and dash\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars !== '') {\n return null;\n }\n\n return iconName;\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\n\nexport const isStr = (val: any): val is string => typeof val === 'string';\n\nexport const toLower = (val: string) => val.toLowerCase();"],"version":3}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"utils-ff713b72.js","mappings":";;AAIA,IAAI,UAA+B,CAAC;AAE7B,MAAM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names":[],"sources":["./src/components/illustration/utils.ts"],"sourcesContent":["import { getAssetPath } from '@stencil/core';\nimport { Illustration } from './illustration';\n\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const getIllustrationMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any;\n win.Ionicons = win.Ionicons || {};\n CACHED_MAP = win.Ionicons.map = win.Ionicons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\n\nexport const addIllustrations = (illustrations: { [name: string]: string; }) => {\n const map = getIllustrationMap();\n Object.keys(illustrations).forEach(name => map.set(name, illustrations[name]));\n};\n\n\nexport const getUrl = (i: Illustration) => {\n let url = getSrc(i.src);\n if (url) {\n return url;\n }\n\n url = getName(i.name, i.illustration);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (i.illustration) {\n url = getSrc(i.illustration);\n if (url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nconst getNamedUrl = (illustrationName: string) => {\n const url = getIllustrationMap().get(illustrationName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${illustrationName}.svg`);\n};\n\n\nexport const getName = (\n illustrationName: string | undefined,\n illustration: string | undefined\n) => {\n\n if (!illustrationName && illustration && !isSrc(illustration)) {\n illustrationName = illustration;\n }\n if (isStr(illustrationName)) {\n illustrationName = toLower(illustrationName);\n }\n\n if (!isStr(illustrationName) || illustrationName.trim() === '') {\n return null;\n }\n\n // only allow alpha characters and dash\n const invalidChars = illustrationName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars !== '') {\n return null;\n }\n\n return illustrationName;\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\n\nexport const isStr = (val: any): val is string => typeof val === 'string';\n\nexport const toLower = (val: string) => val.toLowerCase();"],"version":3}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(n){var i=t.has(n);n=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(n);return!i&&n}function i(t){var n=t.isConnected;if(void 0!==n)return n;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function e(t,n){for(;n&&n!==t&&!n.nextSibling;)n=n.parentNode;return n&&n!==t?n.nextSibling:null}function o(t,n,i){i=void 0===i?new Set:i;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var f=r;n(f);var c=f.localName;if("link"===c&&"import"===f.getAttribute("rel")){r=f.import;if(r instanceof Node&&!i.has(r))for(i.add(r),r=r.firstChild;r;r=r.nextSibling)o(r,n,i);r=e(t,f);continue}else if("template"===c){r=e(t,f);continue}if(f=f.__CE_shadowRoot)for(f=f.firstChild;f;f=f.nextSibling)o(f,n,i)}r=r.firstChild?r.firstChild:e(t,r)}}function r(t,n,i){t[n]=i}function f(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,n,i){t.a.set(n,i);t.g.set(i.constructorFunction,i)}function u(t,n){t.b=!0;t.c.push(n)}function s(t,n){t.b=!0;t.f.push(n)}function a(t,n){t.b&&o(n,(function(n){return h(t,n)}))}function h(t,n){if(t.b&&!n.__CE_patched){n.__CE_patched=!0;for(var i=0;i<t.c.length;i++)t.c[i](n);for(i=0;i<t.f.length;i++)t.f[i](n)}}function l(t,n){var i=[];o(n,(function(t){return i.push(t)}));for(n=0;n<i.length;n++){var e=i[n];1===e.__CE_state?t.connectedCallback(e):w(t,e)}}function d(t,n){var i=[];o(n,(function(t){return i.push(t)}));for(n=0;n<i.length;n++){var e=i[n];1===e.__CE_state&&t.disconnectedCallback(e)}}function v(t,n,i){i=void 0===i?{}:i;var e=i.u||new Set,r=i.i||function(n){return w(t,n)},f=[];o(n,(function(n){if("link"===n.localName&&"import"===n.getAttribute("rel")){var i=n.import;i instanceof Node&&(i.__CE_isImportDocument=!0,i.__CE_hasRegistry=!0);i&&"complete"===i.readyState?i.__CE_documentLoadHandled=!0:n.addEventListener("load",(function(){var i=n.import;if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0;var o=new Set(e);o.delete(i);v(t,i,{u:o,i:r})}}))}else f.push(n)}),e);if(t.b)for(n=0;n<f.length;n++)h(t,f[n]);for(n=0;n<f.length;n++)r(f[n])}function w(t,n){if(void 0===n.__CE_state){var e=n.ownerDocument;if(e.defaultView||e.__CE_isImportDocument&&e.__CE_hasRegistry)if(e=t.a.get(n.localName)){e.constructionStack.push(n);var o=e.constructorFunction;try{try{if(new o!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{e.constructionStack.pop()}}catch(c){throw n.__CE_state=2,c}n.__CE_state=1;n.__CE_definition=e;if(e.attributeChangedCallback)for(e=e.observedAttributes,o=0;o<e.length;o++){var r=e[o],f=n.getAttribute(r);null!==f&&t.attributeChangedCallback(n,r,null,f,null)}i(n)&&t.connectedCallback(n)}}}f.prototype.connectedCallback=function(t){var n=t.__CE_definition;n.connectedCallback&&n.connectedCallback.call(t)};f.prototype.disconnectedCallback=function(t){var n=t.__CE_definition;n.disconnectedCallback&&n.disconnectedCallback.call(t)};f.prototype.attributeChangedCallback=function(t,n,i,e,o){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(n)&&r.attributeChangedCallback.call(t,n,i,e,o)};function m(t){var n=document;this.c=t;this.a=n;this.b=void 0;v(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}m.prototype.f=function(t){var n=this.a.readyState;"interactive"!==n&&"complete"!==n||b(this);for(n=0;n<t.length;n++)for(var i=t[n].addedNodes,e=0;e<i.length;e++)v(this.c,i[e])};function E(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(n){t.b=n;t.a&&n(t.a)}))}function p(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function g(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new m(t)}g.prototype.l=function(t,i){var e=this;if(!(i instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var o=function(t){var n=r[t];if(void 0!==n&&!(n instanceof Function))throw Error("The '"+t+"' callback must be a function.");return n},r=i.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=o("connectedCallback");var u=o("disconnectedCallback");var s=o("adoptedCallback");var a=o("attributeChangedCallback");var h=i.observedAttributes||[]}catch(l){return}finally{this.c=!1}i={localName:t,constructorFunction:i,connectedCallback:f,disconnectedCallback:u,adoptedCallback:s,attributeChangedCallback:a,observedAttributes:h,constructionStack:[]};c(this.a,t,i);this.g.push(i);this.b||(this.b=!0,this.f((function(){return y(e)})))};g.prototype.i=function(t){v(this.a,t)};function y(t){if(!1!==t.b){t.b=!1;for(var n=t.g,i=[],e=new Map,o=0;o<n.length;o++)e.set(n[o].localName,[]);v(t.a,document,{i:function(n){if(void 0===n.__CE_state){var o=n.localName,r=e.get(o);r?r.push(n):t.a.a.get(o)&&i.push(n)}}});for(o=0;o<i.length;o++)w(t.a,i[o]);for(;0<n.length;){var r=n.shift();o=r.localName;r=e.get(r.localName);for(var f=0;f<r.length;f++)w(t.a,r[f]);(o=t.j.get(o))&&p(o)}}}g.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};g.prototype.m=function(t){if(!n(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var i=this.j.get(t);if(i)return i.c;i=new E;this.j.set(t,i);this.a.a.get(t)&&!this.g.some((function(n){return n.localName===t}))&&p(i);return i.c};g.prototype.s=function(t){b(this.o);var n=this.f;this.f=function(i){return t((function(){return n(i)}))}};window.CustomElementRegistry=g;g.prototype.define=g.prototype.l;g.prototype.upgrade=g.prototype.i;g.prototype.get=g.prototype.get;g.prototype.whenDefined=g.prototype.m;g.prototype.polyfillWrapFlushCallback=g.prototype.s;var C=window.Document.prototype.createElement,T=window.Document.prototype.createElementNS,j=window.Document.prototype.importNode,D=window.Document.prototype.prepend,N=window.Document.prototype.append,A=window.DocumentFragment.prototype.prepend,O=window.DocumentFragment.prototype.append,M=window.Node.prototype.cloneNode,S=window.Node.prototype.appendChild,k=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,F=window.Node.prototype.replaceChild,H=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),x=window.Element.prototype.attachShadow,z=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,R=window.Element.prototype.setAttribute,$=window.Element.prototype.removeAttribute,_=window.Element.prototype.getAttributeNS,B=window.Element.prototype.setAttributeNS,I=window.Element.prototype.removeAttributeNS,U=window.Element.prototype.insertAdjacentElement,W=window.Element.prototype.insertAdjacentHTML,q=window.Element.prototype.prepend,G=window.Element.prototype.append,J=window.Element.prototype.before,K=window.Element.prototype.after,Q=window.Element.prototype.replaceWith,V=window.Element.prototype.remove,X=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var nt=new function(){};function it(){var t=st;window.HTMLElement=function(){function n(){var n=this.constructor,i=t.g.get(n);if(!i)throw Error("The custom element being constructed was not registered with `customElements`.");var e=i.constructionStack;if(0===e.length)return e=C.call(document,i.localName),Object.setPrototypeOf(e,n.prototype),e.__CE_state=1,e.__CE_definition=i,h(t,e),e;i=e.length-1;var o=e[i];if(o===nt)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[i]=nt;Object.setPrototypeOf(o,n.prototype);h(t,o);return o}n.prototype=X.prototype;Object.defineProperty(n.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:n});return n}()}function et(t,n,e){function o(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],c=0;c<o.length;c++){var u=o[c];u instanceof Element&&i(u)&&f.push(u);if(u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}n.apply(this,o);for(o=0;o<f.length;o++)d(t,f[o]);if(i(this))for(o=0;o<r.length;o++)f=r[o],f instanceof Element&&l(t,f)}}void 0!==e.h&&(n.prepend=o(e.h));void 0!==e.append&&(n.append=o(e.append))}function ot(){var t=st;r(Document.prototype,"createElement",(function(n){if(this.__CE_hasRegistry){var i=t.a.get(n);if(i)return new i.constructorFunction}n=C.call(this,n);h(t,n);return n}));r(Document.prototype,"importNode",(function(n,i){n=j.call(this,n,!!i);this.__CE_hasRegistry?v(t,n):a(t,n);return n}));r(Document.prototype,"createElementNS",(function(n,i){if(this.__CE_hasRegistry&&(null===n||"http://www.w3.org/1999/xhtml"===n)){var e=t.a.get(i);if(e)return new e.constructorFunction}n=T.call(this,n,i);h(t,n);return n}));et(t,Document.prototype,{h:D,append:N})}function rt(){function t(t,e){Object.defineProperty(t,"textContent",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)e.set.call(this,t);else{var o=void 0;if(this.firstChild){var r=this.childNodes,f=r.length;if(0<f&&i(this)){o=Array(f);for(var c=0;c<f;c++)o[c]=r[c]}}e.set.call(this,t);if(o)for(t=0;t<o.length;t++)d(n,o[t])}}})}var n=st;r(Node.prototype,"insertBefore",(function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=k.call(this,t,e);if(i(this))for(e=0;e<o.length;e++)l(n,o[e]);return t}o=i(t);e=k.call(this,t,e);o&&d(n,t);i(this)&&l(n,t);return e}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var e=Array.prototype.slice.apply(t.childNodes);t=S.call(this,t);if(i(this))for(var o=0;o<e.length;o++)l(n,e[o]);return t}e=i(t);o=S.call(this,t);e&&d(n,t);i(this)&&l(n,t);return o}));r(Node.prototype,"cloneNode",(function(t){t=M.call(this,!!t);this.ownerDocument.__CE_hasRegistry?v(n,t):a(n,t);return t}));r(Node.prototype,"removeChild",(function(t){var e=i(t),o=L.call(this,t);e&&d(n,t);return o}));r(Node.prototype,"replaceChild",(function(t,e){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=F.call(this,t,e);if(i(this))for(d(n,e),e=0;e<o.length;e++)l(n,o[e]);return t}o=i(t);var r=F.call(this,t,e),f=i(this);f&&d(n,e);o&&d(n,t);f&&l(n,t);return r}));H&&H.get?t(Node.prototype,H):u(n,(function(n){t(n,{enumerable:!0,configurable:!0,get:function(){for(var t=[],n=0;n<this.childNodes.length;n++){var i=this.childNodes[n];i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&S.call(this,document.createTextNode(t))}})}))}function ft(t){function n(n){return function(e){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var f=[],c=0;c<o.length;c++){var u=o[c];u instanceof Element&&i(u)&&f.push(u);if(u instanceof DocumentFragment)for(u=u.firstChild;u;u=u.nextSibling)r.push(u);else r.push(u)}n.apply(this,o);for(o=0;o<f.length;o++)d(t,f[o]);if(i(this))for(o=0;o<r.length;o++)f=r[o],f instanceof Element&&l(t,f)}}var e=Element.prototype;void 0!==J&&(e.before=n(J));void 0!==J&&(e.after=n(K));void 0!==Q&&r(e,"replaceWith",(function(n){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];o=[];for(var r=[],f=0;f<e.length;f++){var c=e[f];c instanceof Element&&i(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)o.push(c);else o.push(c)}f=i(this);Q.apply(this,e);for(e=0;e<r.length;e++)d(t,r[e]);if(f)for(d(t,this),e=0;e<o.length;e++)r=o[e],r instanceof Element&&l(t,r)}));void 0!==V&&r(e,"remove",(function(){var n=i(this);V.call(this);n&&d(t,this)}))}function ct(){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var e=this,r=void 0;i(this)&&(r=[],o(this,(function(t){t!==e&&r.push(t)})));n.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var u=r[c];1===u.__CE_state&&f.disconnectedCallback(u)}this.ownerDocument.__CE_hasRegistry?v(f,this):a(f,this);return t}})}function n(t,n){r(t,"insertAdjacentElement",(function(t,e){var o=i(e);t=n.call(this,t,e);o&&d(f,e);i(t)&&l(f,e);return t}))}function e(t,n){function i(t,n){for(var i=[];t!==n;t=t.nextSibling)i.push(t);for(n=0;n<i.length;n++)v(f,i[n])}r(t,"insertAdjacentHTML",(function(t,e){t=t.toLowerCase();if("beforebegin"===t){var o=this.previousSibling;n.call(this,t,e);i(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,n.call(this,t,e),i(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,n.call(this,t,e),i(o||this.firstChild,null);else if("afterend"===t)o=this.nextSibling,n.call(this,t,e),i(this.nextSibling,o);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var f=st;x&&r(Element.prototype,"attachShadow",(function(t){t=x.call(this,t);var n=f;if(n.b&&!t.__CE_patched){t.__CE_patched=!0;for(var i=0;i<n.c.length;i++)n.c[i](t)}return this.__CE_shadowRoot=t}));z&&z.get?t(Element.prototype,z):Y&&Y.get?t(HTMLElement.prototype,Y):s(f,(function(n){t(n,{enumerable:!0,configurable:!0,get:function(){return M.call(this,!0).innerHTML},set:function(t){var n="template"===this.localName,i=n?this.content:this,e=T.call(document,this.namespaceURI,this.localName);for(e.innerHTML=t;0<i.childNodes.length;)L.call(i,i.childNodes[0]);for(t=n?e.content:e;0<t.childNodes.length;)S.call(i,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,n){if(1!==this.__CE_state)return R.call(this,t,n);var i=P.call(this,t);R.call(this,t,n);n=P.call(this,t);f.attributeChangedCallback(this,t,i,n,null)}));r(Element.prototype,"setAttributeNS",(function(t,n,i){if(1!==this.__CE_state)return B.call(this,t,n,i);var e=_.call(this,t,n);B.call(this,t,n,i);i=_.call(this,t,n);f.attributeChangedCallback(this,n,e,i,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return $.call(this,t);var n=P.call(this,t);$.call(this,t);null!==n&&f.attributeChangedCallback(this,t,n,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,n){if(1!==this.__CE_state)return I.call(this,t,n);var i=_.call(this,t,n);I.call(this,t,n);var e=_.call(this,t,n);i!==e&&f.attributeChangedCallback(this,n,i,e,t)}));Z?n(HTMLElement.prototype,Z):U?n(Element.prototype,U):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?e(HTMLElement.prototype,tt):W?e(Element.prototype,W):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");et(f,Element.prototype,{h:q,append:G});ft(f)}var ut=window.customElements;if(!ut||ut.forcePolyfill||"function"!=typeof ut.define||"function"!=typeof ut.get){var st=new f;it();ot();et(st,DocumentFragment.prototype,{h:A,append:O});rt();ct();document.__CE_hasRegistry=!0;var at=new g(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:at})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,n.bubbles,n.cancelable,n.detail);return i},window.CustomEvent.prototype=window.Event.prototype);(function(t,n,i){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(n,i);return this.path})})(Event.prototype,document,window);
|
|
2
|
-
/*!
|
|
3
|
-
Element.closest and Element.matches
|
|
4
|
-
https://github.com/jonathantneal/closest
|
|
5
|
-
Creative Commons Zero v1.0 Universal
|
|
6
|
-
*/(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var n=0;t[n]&&t[n]!==this;)++n;return!!t[n]});"function"!==typeof t.closest&&(t.closest=function(t){for(var n=this;n&&1===n.nodeType;){if(n.matches(t))return n;n=n.parentNode}return null})})(window.Element.prototype);
|
|
7
|
-
/*!
|
|
8
|
-
Element.getRootNode()
|
|
9
|
-
*/(function(t){function n(t){t=i(t);return t&&11===t.nodeType?n(t.host):t}function i(t){return t&&t.parentNode?i(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?n(this):i(this)})})(Element.prototype);
|
|
10
|
-
/*!
|
|
11
|
-
Element.isConnected()
|
|
12
|
-
*/(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
|
|
13
|
-
/*!
|
|
14
|
-
Element.remove()
|
|
15
|
-
*/(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
16
|
-
/*!
|
|
17
|
-
Element.classList
|
|
18
|
-
*/!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,n=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function i(){n.length>0?t.setAttribute("class",n.join(" ")):t.removeAttribute("class")}return""===n[0]&&n.splice(0,1),n.toggle=function(t,e){void 0!==e?e?n.add(t):n.remove(t):-1!==n.indexOf(t)?n.splice(n.indexOf(t),1):n.push(t),i()},n.add=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1===n.indexOf(t[e])&&n.push(t[e]);i()},n.remove=function(){for(var t=[].slice.call(arguments),e=0,o=t.length;e<o;e++)-1!==n.indexOf(t[e])&&n.splice(n.indexOf(t[e]),1);i()},n.item=function(t){return n[t]},n.contains=function(t){return-1!==n.indexOf(t)},n.replace=function(t,e){-1!==n.indexOf(t)&&n.splice(n.indexOf(t),1,e),i()},n.value=t.getAttribute("class")||"",n}})}(Element.prototype);
|
|
19
|
-
/*!
|
|
20
|
-
DOMTokenList
|
|
21
|
-
*/(function(t){try{document.body.classList.add()}catch(e){var n=t.add,i=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)i.call(this,arguments[t])}}})(DOMTokenList.prototype);
|
|
22
|
-
//# sourceMappingURL=p-00cfef9b.js.map
|