@geotrekce/geotrek-rando-widget 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/grw-app.cjs.entry.js +20 -11
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-common-button_20.cjs.entry.js +79 -3411
- package/dist/cjs/grw-common-button_20.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_20.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_20.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter.cjs.entry.js +3 -3
- package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk_6.cjs.entry.js +42 -58
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
- package/dist/collection/components/grw-app/grw-app.css +44 -45
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +20 -10
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-common-button/grw-common-button.css +1 -1
- package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.js +1 -1
- package/dist/collection/components/grw-common-button/grw-common-button.js.br +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.js.gz +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.js.map +1 -1
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.css +1 -1
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.css.br +0 -0
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.css.gz +0 -0
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.js +1 -1
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.br +0 -0
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.gz +0 -0
- package/dist/collection/components/grw-extended-fab/grw-extended-fab.js.map +1 -1
- package/dist/collection/components/grw-filter/grw-filter.css +3 -5
- package/dist/collection/components/grw-filter/grw-filter.css.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.css.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js +2 -2
- package/dist/collection/components/grw-filter/grw-filter.js.br +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.gz +0 -0
- package/dist/collection/components/grw-filter/grw-filter.js.map +1 -1
- package/dist/collection/components/grw-filters/grw-filters.js +1 -1
- package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
- package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
- package/dist/collection/components/grw-information-desk/grw-information-desk.css +6 -8
- package/dist/collection/components/grw-information-desk/grw-information-desk.css.br +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.css.gz +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.js +2 -3
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
- package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -1
- package/dist/collection/components/grw-loader/grw-loader.js +1 -1
- package/dist/collection/components/grw-loader/grw-loader.js.br +0 -0
- package/dist/collection/components/grw-loader/grw-loader.js.gz +0 -0
- package/dist/collection/components/grw-loader/grw-loader.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.css +266 -136
- package/dist/collection/components/grw-map/grw-map.css.br +0 -0
- package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js +2 -2
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-poi-detail/grw-poi.css +0 -2
- package/dist/collection/components/grw-poi-detail/grw-poi.css.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.css.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js +4 -6
- package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
- package/dist/collection/components/grw-search/grw-search.css +1 -1
- package/dist/collection/components/grw-search/grw-search.css.br +0 -0
- package/dist/collection/components/grw-search/grw-search.css.gz +0 -0
- package/dist/collection/components/grw-search/grw-search.js +1 -1
- package/dist/collection/components/grw-search/grw-search.js.br +0 -0
- package/dist/collection/components/grw-search/grw-search.js.gz +0 -0
- package/dist/collection/components/grw-search/grw-search.js.map +1 -1
- package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js +1 -1
- package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.br +0 -0
- package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.gz +0 -0
- package/dist/collection/components/grw-segmented-segment/grw-segmented-segment.js.map +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.css +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.css.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.css.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -1
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +6 -6
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.br +0 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.gz +0 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +5 -5
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.br +0 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.gz +0 -0
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css +11 -4
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +8 -11
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css +7 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.br +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.css.gz +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +6 -9
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css +4 -2
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.br +0 -0
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.css.gz +0 -0
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js +1 -1
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.br +0 -0
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.gz +0 -0
- package/dist/collection/components/grw-touristic-contents-list/grw-touristic-contents-list.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css +4 -4
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.gz +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +8 -11
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +6 -9
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css +4 -2
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.css.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js +1 -1
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.br +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.gz +0 -0
- package/dist/collection/components/grw-touristic-events-list/grw-touristic-events-list.js.map +1 -1
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +37 -33
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +9 -16
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +17 -12
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +21 -29
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +4 -2
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.css.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +1 -1
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.br +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.gz +0 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js.map +1 -1
- package/dist/esm/grw-app.entry.js +20 -11
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-common-button_20.entry.js +60 -3372
- package/dist/esm/grw-common-button_20.entry.js.br +0 -0
- package/dist/esm/grw-common-button_20.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_20.entry.js.map +1 -1
- package/dist/esm/grw-filter.entry.js +3 -3
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-filter.entry.js.map +1 -1
- package/dist/esm/grw-information-desk_6.entry.js +42 -58
- package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm/grw-information-desk_6.entry.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-common-button_20.entry.js +5 -3
- package/dist/esm-es5/grw-common-button_20.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_20.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_20.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter.entry.js +1 -1
- package/dist/esm-es5/grw-filter.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
- package/dist/esm-es5/grw-information-desk_6.entry.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-02bd7acc.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-02bd7acc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-02bd7acc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-02bd7acc.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-067c274c.system.js +1 -1
- package/dist/geotrek-rando-widget/p-067c274c.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-067c274c.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a30bc22.entry.js +16 -0
- package/dist/geotrek-rando-widget/p-0a30bc22.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0a30bc22.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0a30bc22.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-17a43c6e.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-17a43c6e.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-17a43c6e.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-17a43c6e.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-338d6cf9.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-338d6cf9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-338d6cf9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-338d6cf9.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-3478a0e0.system.entry.js → p-350c5074.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-350c5074.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-3478a0e0.system.entry.js.gz → p-350c5074.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/p-350c5074.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-480cc02a.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-480cc02a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-480cc02a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-480cc02a.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-fca0c8b9.entry.js → p-488b5ac3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-488b5ac3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-fca0c8b9.entry.js.gz → p-488b5ac3.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/p-488b5ac3.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-b79ccc5b.system.entry.js +16 -0
- package/dist/geotrek-rando-widget/p-b79ccc5b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b79ccc5b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b79ccc5b.system.entry.js.map +1 -0
- package/package.json +10 -5
- package/dist/geotrek-rando-widget/p-157cc8ea.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-157cc8ea.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-157cc8ea.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-157cc8ea.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-3478a0e0.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3478a0e0.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-44a48723.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-44a48723.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-44a48723.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-44a48723.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-559e3a1d.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-559e3a1d.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-559e3a1d.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-559e3a1d.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-5a7fe54b.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-5a7fe54b.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a7fe54b.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5a7fe54b.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-67932866.system.entry.js +0 -14
- package/dist/geotrek-rando-widget/p-67932866.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-67932866.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-67932866.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-88a9f840.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-88a9f840.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-88a9f840.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-88a9f840.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fca0c8b9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fca0c8b9.entry.js.map +0 -1
|
@@ -5,30 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-e9166f30.js');
|
|
6
6
|
const i18n = require('./i18n-ffadc673.js');
|
|
7
7
|
const store = require('./store-1bee207d.js');
|
|
8
|
-
const utils
|
|
8
|
+
const utils = require('./utils-c74a9612.js');
|
|
9
9
|
const pagination = require('./pagination-4de6c5f4.js');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
if (e && e.__esModule) return e;
|
|
13
|
-
var n = Object.create(null);
|
|
14
|
-
if (e) {
|
|
15
|
-
Object.keys(e).forEach(function (k) {
|
|
16
|
-
if (k !== 'default') {
|
|
17
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return e[k];
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
n['default'] = e;
|
|
28
|
-
return Object.freeze(n);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const grwCommonButtonCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button span{font-size:18px}";
|
|
11
|
+
const grwCommonButtonCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}";
|
|
32
12
|
|
|
33
13
|
const GrwCommonButton = class {
|
|
34
14
|
constructor(hostRef) {
|
|
@@ -41,12 +21,12 @@ const GrwCommonButton = class {
|
|
|
41
21
|
render() {
|
|
42
22
|
return (index.h(index.Host, { style: {
|
|
43
23
|
'--font-family': this.fontFamily,
|
|
44
|
-
} }, index.h("button", { onClick: () => this.action()
|
|
24
|
+
} }, index.h("button", { part: "common-button", class: "common-button", onClick: () => this.action() }, index.h("span", { part: "common-button-icon", class: "material-symbols material-symbols-outlined icon", translate: false }, this.icon), index.h("span", { part: "common-button-label", class: "label" }, this.name))));
|
|
45
25
|
}
|
|
46
26
|
};
|
|
47
27
|
GrwCommonButton.style = grwCommonButtonCss;
|
|
48
28
|
|
|
49
|
-
const grwExtendedFabCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button
|
|
29
|
+
const grwExtendedFabCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{font-size:24px;margin-right:8px;color:var(--fab-color)}";
|
|
50
30
|
|
|
51
31
|
const GrwExtendedFab = class {
|
|
52
32
|
constructor(hostRef) {
|
|
@@ -60,7 +40,7 @@ const GrwExtendedFab = class {
|
|
|
60
40
|
render() {
|
|
61
41
|
return (index.h(index.Host, { style: {
|
|
62
42
|
'--font-family': this.fontFamily,
|
|
63
|
-
} }, index.h("button", {
|
|
43
|
+
} }, index.h("button", { part: "map-visibility-button", class: "map-visibility-button", onClick: () => this.action(), style: { display: this.display } }, index.h("span", { part: "map-visibility-button-icon", class: "material-symbols material-symbols-outlined icon", translate: false }, this.icon()), index.h("span", { part: "map-visibility-button-label", class: "label" }, this.name()))));
|
|
64
44
|
}
|
|
65
45
|
};
|
|
66
46
|
GrwExtendedFab.style = grwExtendedFabCss;
|
|
@@ -76,13 +56,13 @@ const GrwFilters = class {
|
|
|
76
56
|
this.fontFamily = 'Roboto';
|
|
77
57
|
}
|
|
78
58
|
handleEraseTreksFilters() {
|
|
79
|
-
utils
|
|
59
|
+
utils.treksFilters.forEach(filter => {
|
|
80
60
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
81
61
|
});
|
|
82
62
|
store.state.selectedActivitiesFilters = 0;
|
|
83
63
|
store.state.selectedThemesFilters = 0;
|
|
84
64
|
store.state.selectedLocationFilters = 0;
|
|
85
|
-
store.state.currentTreks = utils
|
|
65
|
+
store.state.currentTreks = utils.handleTreksFiltersAndSearch();
|
|
86
66
|
this.resetFilter.emit();
|
|
87
67
|
}
|
|
88
68
|
handleOkTreksFilters() {
|
|
@@ -93,34 +73,34 @@ const GrwFilters = class {
|
|
|
93
73
|
}
|
|
94
74
|
handleSegment(segment) {
|
|
95
75
|
if (store.state.mode === 'treks') {
|
|
96
|
-
return utils
|
|
76
|
+
return utils.treksFilters.filter(filter => filter.segment === segment).some(filter => store.state[filter.property] && store.state[filter.property].length > 0);
|
|
97
77
|
}
|
|
98
78
|
else if (store.state.mode === 'touristicContents') {
|
|
99
|
-
return utils
|
|
79
|
+
return utils.touristicContentsFilters.filter(filter => filter.segment === segment).some(filter => store.state[filter.property] && store.state[filter.property].length > 0);
|
|
100
80
|
}
|
|
101
81
|
else if (store.state.mode === 'touristicEvents') {
|
|
102
|
-
return utils
|
|
82
|
+
return utils.touristicEventsFilters.filter(filter => filter.segment === segment).some(filter => store.state[filter.property] && store.state[filter.property].length > 0);
|
|
103
83
|
}
|
|
104
84
|
}
|
|
105
85
|
handleEraseTouristicContentsFilters() {
|
|
106
|
-
utils
|
|
86
|
+
utils.touristicContentsFilters.forEach(filter => {
|
|
107
87
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
108
88
|
});
|
|
109
89
|
store.state.selectedActivitiesFilters = 0;
|
|
110
90
|
store.state.selectedLocationFilters = 0;
|
|
111
|
-
store.state.currentTouristicContents = utils
|
|
91
|
+
store.state.currentTouristicContents = utils.handleTouristicContentsFiltersAndSearch();
|
|
112
92
|
this.resetFilter.emit();
|
|
113
93
|
}
|
|
114
94
|
handleOkTouristicContentsFilters() {
|
|
115
95
|
this.handleFilters();
|
|
116
96
|
}
|
|
117
97
|
handleEraseTouristicEventsFilters() {
|
|
118
|
-
utils
|
|
98
|
+
utils.touristicEventsFilters.forEach(filter => {
|
|
119
99
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
120
100
|
});
|
|
121
101
|
store.state.selectedActivitiesFilters = 0;
|
|
122
102
|
store.state.selectedLocationFilters = 0;
|
|
123
|
-
store.state.currentTouristicEvents = utils
|
|
103
|
+
store.state.currentTouristicEvents = utils.handleTouristicEventsFiltersAndSearch();
|
|
124
104
|
this.resetFilter.emit();
|
|
125
105
|
}
|
|
126
106
|
handleOkTouristicEventsFilters() {
|
|
@@ -129,7 +109,7 @@ const GrwFilters = class {
|
|
|
129
109
|
render() {
|
|
130
110
|
return (index.h(index.Host, { style: {
|
|
131
111
|
'--font-family': this.fontFamily,
|
|
132
|
-
} }, index.h("div", { class: "options-container" }, index.h("div", { class: "filters-container" }, store.state.mode === 'treks' && (index.h("div", { class: "filters-treks-container" }, index.h("div", { class: "filters-options-container" }, store.state.treksWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.treksWithinBounds.length} ${store.state.treksWithinBounds.length > 1 ? i18n.translate[store.state.language].treks : i18n.translate[store.state.language].trek}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, i18n.translate[store.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].home.segment.treks, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, i18n.translate[store.state.language].themes, " ", store.state.selectedThemesFilters !== 0 && `(${store.state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "treks-activities-segment-container", class: "segment-container" }, store.state['practices'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters", filterPlaceholder: i18n.translate[store.state.language].placeholderPractices }))), store.state['difficulties'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), store.state['durations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['lengths'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['elevations'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['routes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), store.state['accessibilities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['labels'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (index.h("div", { key: "treks-themes-segment-container", class: "segment-container" }, store.state['themes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].themes, filterPlaceholder: i18n.translate[store.state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "treks-location-segment-container", class: "segment-container" }, store.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), store.state.mode === 'touristicContents' && (index.h("div", { class: "filters-touristic-contents-container" }, index.h("div", { class: "filters-options-container" }, store.state.touristicContentsWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.touristicContentsWithinBounds.length} ${store.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicContents : i18n.translate[store.state.language].home.touristicContent}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, i18n.translate[store.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].services, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, store.state['touristicContentCategories'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "touristic-contents-location-segment-container", class: "segment-container" }, store.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), store.state.mode === 'touristicEvents' && (index.h("div", { class: "filters-touristic-events-container" }, index.h("div", { class: "filters-options-container" }, store.state.touristicEventsWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.touristicEventsWithinBounds.length} ${store.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicEvents : i18n.translate[store.state.language].home.touristicEvent}`)), index.h("div", { class: "filters-options-buttons-container" }, index.h("button", { class: "filter-option-button", onClick: () => this.handleEraseTouristicEventsFilters() }, i18n.translate[store.state.language].erase), index.h("button", { class: "filter-option-button", onClick: () => this.handleOkTouristicEventsFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].services, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { key: "touristic-contents-activities-segment-container", class: "segment-container" }, store.state['touristicEventTypes'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].type, filterPlaceholder: i18n.translate[store.state.language].placeholderType, filterType: "touristicEventTypes", filterNameProperty: "type", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { key: "touristic-events-location-segment-container", class: "segment-container" }, store.state['districts'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { class: "filter-container" }, index.h("grw-filter", { fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), index.h("div", { onClick: () => this.handleFilters(), class: "back-filters-container" }))));
|
|
112
|
+
} }, index.h("div", { part: "options-container", class: "options-container" }, index.h("div", { part: "filters-container", class: "filters-container" }, store.state.mode === 'treks' && (index.h("div", { part: "filters-treks-container", class: "filters-treks-container" }, index.h("div", { part: "filters-options-container", class: "filters-options-container" }, store.state.treksWithinBounds && (index.h("div", { part: "current-treks-within-bounds-length", class: "current-treks-within-bounds-length" }, `${store.state.treksWithinBounds.length} ${store.state.treksWithinBounds.length > 1 ? i18n.translate[store.state.language].treks : i18n.translate[store.state.language].trek}`)), index.h("div", { part: "filters-options-buttons-container", class: "filters-options-buttons-container" }, index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleEraseTreksFilters() }, i18n.translate[store.state.language].erase), index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleOkTreksFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { part: "segmented-buttons-container", class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].home.segment.treks, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedThemesFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedThemesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedThemesFilters') }, i18n.translate[store.state.language].themes, " ", store.state.selectedThemesFilters !== 0 && `(${store.state.selectedThemesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { part: "filters-segment-container", class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "treks-activities-segment-container" }, store.state['practices'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].practice, filterType: "practices", filterNameProperty: "name", segment: "selectedActivitiesFilters", filterPlaceholder: i18n.translate[store.state.language].placeholderPractices }))), store.state['difficulties'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].difficulty, filterType: "difficulties", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))), store.state['durations'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].duration, filterType: "durations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['lengths'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].length, filterType: "lengths", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['elevations'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].elevation, filterType: "elevations", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['routes'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].routes, filterType: "routes", filterNameProperty: "route", segment: "selectedActivitiesFilters" }))), store.state['accessibilities'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].accessibility, filterType: "accessibilities", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))), store.state['labels'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].activities, filterType: "labels", filterNameProperty: "name", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedThemesFilters' && (index.h("div", { part: "filter-container", class: "segment-container", key: "treks-themes-segment-container" }, store.state['themes'].length > 0 && (index.h("div", { part: "", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].themes, filterPlaceholder: i18n.translate[store.state.language].placeholderThemes, filterType: "themes", filterNameProperty: "label", segment: "selectedThemesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "treks-location-segment-container" }, store.state['districts'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), store.state.mode === 'touristicContents' && (index.h("div", { part: "filters-touristic-contents-container", class: "filters-touristic-contents-container" }, index.h("div", { part: "filters-options-container", class: "filters-options-container" }, store.state.touristicContentsWithinBounds && (index.h("div", { part: "current-treks-within-bounds-length", class: "current-treks-within-bounds-length" }, `${store.state.touristicContentsWithinBounds.length} ${store.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicContents : i18n.translate[store.state.language].home.touristicContent}`)), index.h("div", { part: "filters-options-buttons-container", class: "filters-options-buttons-container" }, index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleEraseTouristicContentsFilters() }, i18n.translate[store.state.language].erase), index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleOkTouristicContentsFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { part: "segmented-buttons-container", class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].services, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { part: "filters-segment-container", class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "touristic-contents-activities-segment-container" }, store.state['touristicContentCategories'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].category, filterType: "touristicContentCategories", filterNameProperty: "label", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "touristic-contents-location-segment-container" }, store.state['districts'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" })))))))), store.state.mode === 'touristicEvents' && (index.h("div", { part: "filters-touristic-events-container", class: "filters-touristic-events-container" }, index.h("div", { part: "filters-options-container", class: "filters-options-container" }, store.state.touristicEventsWithinBounds && (index.h("div", { part: "current-treks-within-bounds-length", class: "current-treks-within-bounds-length" }, `${store.state.touristicEventsWithinBounds.length} ${store.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicEvents : i18n.translate[store.state.language].home.touristicEvent}`)), index.h("div", { part: "filters-options-buttons-container", class: "filters-options-buttons-container" }, index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleEraseTouristicEventsFilters() }, i18n.translate[store.state.language].erase), index.h("button", { part: "filter-option-button", class: "filter-option-button", onClick: () => this.handleOkTouristicEventsFilters() }, i18n.translate[store.state.language].ok))), index.h("div", { part: "segmented-buttons-container", class: "segmented-buttons-container" }, this.handleSegment('selectedActivitiesFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedActivitiesFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedActivitiesFilters') }, i18n.translate[store.state.language].services, " ", store.state.selectedActivitiesFilters !== 0 && `(${store.state.selectedActivitiesFilters})`)), this.handleSegment('selectedLocationFilters') && (index.h("label", { part: "segment", class: `segment${this.selectedSegment === 'selectedLocationFilters' ? ' selected-segment' : ''}`, onClick: () => this.handleSelectedSegment('selectedLocationFilters') }, i18n.translate[store.state.language].location, " ", store.state.selectedLocationFilters !== 0 && `(${store.state.selectedLocationFilters})`))), index.h("div", { part: "filters-segment-container", class: "filters-segment-container" }, this.selectedSegment === 'selectedActivitiesFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "touristic-contents-activities-segment-container" }, store.state['touristicEventTypes'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].type, filterPlaceholder: i18n.translate[store.state.language].placeholderType, filterType: "touristicEventTypes", filterNameProperty: "type", segment: "selectedActivitiesFilters" }))))), this.selectedSegment === 'selectedLocationFilters' && (index.h("div", { part: "segment-container", class: "segment-container", key: "touristic-events-location-segment-container" }, store.state['districts'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].districts, filterType: "districts", filterNameProperty: "name", segment: "selectedLocationFilters" }))), store.state['cities'].length > 0 && (index.h("div", { part: "filter-container", class: "filter-container" }, index.h("grw-filter", { exportparts: "filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label", fontFamily: this.fontFamily, filterName: i18n.translate[store.state.language].crossedCities, filterPlaceholder: i18n.translate[store.state.language].placeholderCrossedCities, filterType: "cities", filterNameProperty: "name", segment: "selectedLocationFilters" }))))))))), index.h("div", { part: "back-filters-container", class: "back-filters-container", onClick: () => this.handleFilters() }))));
|
|
133
113
|
}
|
|
134
114
|
};
|
|
135
115
|
GrwFilters.style = grwFiltersCss;
|
|
@@ -143,7 +123,7 @@ const GrwLoader = class {
|
|
|
143
123
|
this.colorOnPrimaryContainer = '#21005e';
|
|
144
124
|
}
|
|
145
125
|
render() {
|
|
146
|
-
return (index.h(index.Host, { style: { '--color-primary-container': this.colorPrimaryContainer, '--color-on-primary-container': this.colorOnPrimaryContainer } }, index.h("span", { class: "loader" })));
|
|
126
|
+
return (index.h(index.Host, { style: { '--color-primary-container': this.colorPrimaryContainer, '--color-on-primary-container': this.colorOnPrimaryContainer } }, index.h("span", { part: "loader", class: "loader" })));
|
|
147
127
|
}
|
|
148
128
|
};
|
|
149
129
|
GrwLoader.style = grwLoaderCss;
|
|
@@ -160,21 +140,6 @@ function createCommonjsModule(fn, basedir, module) {
|
|
|
160
140
|
}, fn(module, module.exports), module.exports;
|
|
161
141
|
}
|
|
162
142
|
|
|
163
|
-
function getAugmentedNamespace(n) {
|
|
164
|
-
if (n.__esModule) return n;
|
|
165
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
166
|
-
Object.keys(n).forEach(function (k) {
|
|
167
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
168
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function () {
|
|
171
|
-
return n[k];
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
return a;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
143
|
function commonjsRequire () {
|
|
179
144
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
180
145
|
}
|
|
@@ -15676,3296 +15641,13 @@ createCommonjsModule(function (module, exports) {
|
|
|
15676
15641
|
}, window));
|
|
15677
15642
|
});
|
|
15678
15643
|
|
|
15679
|
-
|
|
15680
|
-
(function(root) {
|
|
15681
|
-
|
|
15682
|
-
/** Detect free variables */
|
|
15683
|
-
|
|
15684
|
-
!exports.nodeType && exports;
|
|
15685
|
-
var freeModule = module &&
|
|
15686
|
-
!module.nodeType && module;
|
|
15687
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal;
|
|
15688
|
-
if (
|
|
15689
|
-
freeGlobal.global === freeGlobal ||
|
|
15690
|
-
freeGlobal.window === freeGlobal ||
|
|
15691
|
-
freeGlobal.self === freeGlobal
|
|
15692
|
-
) {
|
|
15693
|
-
root = freeGlobal;
|
|
15694
|
-
}
|
|
15695
|
-
|
|
15696
|
-
/**
|
|
15697
|
-
* The `punycode` object.
|
|
15698
|
-
* @name punycode
|
|
15699
|
-
* @type Object
|
|
15700
|
-
*/
|
|
15701
|
-
var punycode,
|
|
15702
|
-
|
|
15703
|
-
/** Highest positive signed 32-bit float value */
|
|
15704
|
-
maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
|
|
15705
|
-
|
|
15706
|
-
/** Bootstring parameters */
|
|
15707
|
-
base = 36,
|
|
15708
|
-
tMin = 1,
|
|
15709
|
-
tMax = 26,
|
|
15710
|
-
skew = 38,
|
|
15711
|
-
damp = 700,
|
|
15712
|
-
initialBias = 72,
|
|
15713
|
-
initialN = 128, // 0x80
|
|
15714
|
-
delimiter = '-', // '\x2D'
|
|
15715
|
-
|
|
15716
|
-
/** Regular expressions */
|
|
15717
|
-
regexPunycode = /^xn--/,
|
|
15718
|
-
regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
|
|
15719
|
-
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
|
|
15720
|
-
|
|
15721
|
-
/** Error messages */
|
|
15722
|
-
errors = {
|
|
15723
|
-
'overflow': 'Overflow: input needs wider integers to process',
|
|
15724
|
-
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
|
15725
|
-
'invalid-input': 'Invalid input'
|
|
15726
|
-
},
|
|
15727
|
-
|
|
15728
|
-
/** Convenience shortcuts */
|
|
15729
|
-
baseMinusTMin = base - tMin,
|
|
15730
|
-
floor = Math.floor,
|
|
15731
|
-
stringFromCharCode = String.fromCharCode,
|
|
15732
|
-
|
|
15733
|
-
/** Temporary variable */
|
|
15734
|
-
key;
|
|
15735
|
-
|
|
15736
|
-
/*--------------------------------------------------------------------------*/
|
|
15737
|
-
|
|
15738
|
-
/**
|
|
15739
|
-
* A generic error utility function.
|
|
15740
|
-
* @private
|
|
15741
|
-
* @param {String} type The error type.
|
|
15742
|
-
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
15743
|
-
*/
|
|
15744
|
-
function error(type) {
|
|
15745
|
-
throw new RangeError(errors[type]);
|
|
15746
|
-
}
|
|
15747
|
-
|
|
15748
|
-
/**
|
|
15749
|
-
* A generic `Array#map` utility function.
|
|
15750
|
-
* @private
|
|
15751
|
-
* @param {Array} array The array to iterate over.
|
|
15752
|
-
* @param {Function} callback The function that gets called for every array
|
|
15753
|
-
* item.
|
|
15754
|
-
* @returns {Array} A new array of values returned by the callback function.
|
|
15755
|
-
*/
|
|
15756
|
-
function map(array, fn) {
|
|
15757
|
-
var length = array.length;
|
|
15758
|
-
var result = [];
|
|
15759
|
-
while (length--) {
|
|
15760
|
-
result[length] = fn(array[length]);
|
|
15761
|
-
}
|
|
15762
|
-
return result;
|
|
15763
|
-
}
|
|
15764
|
-
|
|
15765
|
-
/**
|
|
15766
|
-
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
|
15767
|
-
* addresses.
|
|
15768
|
-
* @private
|
|
15769
|
-
* @param {String} domain The domain name or email address.
|
|
15770
|
-
* @param {Function} callback The function that gets called for every
|
|
15771
|
-
* character.
|
|
15772
|
-
* @returns {Array} A new string of characters returned by the callback
|
|
15773
|
-
* function.
|
|
15774
|
-
*/
|
|
15775
|
-
function mapDomain(string, fn) {
|
|
15776
|
-
var parts = string.split('@');
|
|
15777
|
-
var result = '';
|
|
15778
|
-
if (parts.length > 1) {
|
|
15779
|
-
// In email addresses, only the domain name should be punycoded. Leave
|
|
15780
|
-
// the local part (i.e. everything up to `@`) intact.
|
|
15781
|
-
result = parts[0] + '@';
|
|
15782
|
-
string = parts[1];
|
|
15783
|
-
}
|
|
15784
|
-
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
|
15785
|
-
string = string.replace(regexSeparators, '\x2E');
|
|
15786
|
-
var labels = string.split('.');
|
|
15787
|
-
var encoded = map(labels, fn).join('.');
|
|
15788
|
-
return result + encoded;
|
|
15789
|
-
}
|
|
15790
|
-
|
|
15791
|
-
/**
|
|
15792
|
-
* Creates an array containing the numeric code points of each Unicode
|
|
15793
|
-
* character in the string. While JavaScript uses UCS-2 internally,
|
|
15794
|
-
* this function will convert a pair of surrogate halves (each of which
|
|
15795
|
-
* UCS-2 exposes as separate characters) into a single code point,
|
|
15796
|
-
* matching UTF-16.
|
|
15797
|
-
* @see `punycode.ucs2.encode`
|
|
15798
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
15799
|
-
* @memberOf punycode.ucs2
|
|
15800
|
-
* @name decode
|
|
15801
|
-
* @param {String} string The Unicode input string (UCS-2).
|
|
15802
|
-
* @returns {Array} The new array of code points.
|
|
15803
|
-
*/
|
|
15804
|
-
function ucs2decode(string) {
|
|
15805
|
-
var output = [],
|
|
15806
|
-
counter = 0,
|
|
15807
|
-
length = string.length,
|
|
15808
|
-
value,
|
|
15809
|
-
extra;
|
|
15810
|
-
while (counter < length) {
|
|
15811
|
-
value = string.charCodeAt(counter++);
|
|
15812
|
-
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
15813
|
-
// high surrogate, and there is a next character
|
|
15814
|
-
extra = string.charCodeAt(counter++);
|
|
15815
|
-
if ((extra & 0xFC00) == 0xDC00) { // low surrogate
|
|
15816
|
-
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
15817
|
-
} else {
|
|
15818
|
-
// unmatched surrogate; only append this code unit, in case the next
|
|
15819
|
-
// code unit is the high surrogate of a surrogate pair
|
|
15820
|
-
output.push(value);
|
|
15821
|
-
counter--;
|
|
15822
|
-
}
|
|
15823
|
-
} else {
|
|
15824
|
-
output.push(value);
|
|
15825
|
-
}
|
|
15826
|
-
}
|
|
15827
|
-
return output;
|
|
15828
|
-
}
|
|
15829
|
-
|
|
15830
|
-
/**
|
|
15831
|
-
* Creates a string based on an array of numeric code points.
|
|
15832
|
-
* @see `punycode.ucs2.decode`
|
|
15833
|
-
* @memberOf punycode.ucs2
|
|
15834
|
-
* @name encode
|
|
15835
|
-
* @param {Array} codePoints The array of numeric code points.
|
|
15836
|
-
* @returns {String} The new Unicode string (UCS-2).
|
|
15837
|
-
*/
|
|
15838
|
-
function ucs2encode(array) {
|
|
15839
|
-
return map(array, function(value) {
|
|
15840
|
-
var output = '';
|
|
15841
|
-
if (value > 0xFFFF) {
|
|
15842
|
-
value -= 0x10000;
|
|
15843
|
-
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
|
15844
|
-
value = 0xDC00 | value & 0x3FF;
|
|
15845
|
-
}
|
|
15846
|
-
output += stringFromCharCode(value);
|
|
15847
|
-
return output;
|
|
15848
|
-
}).join('');
|
|
15849
|
-
}
|
|
15850
|
-
|
|
15851
|
-
/**
|
|
15852
|
-
* Converts a basic code point into a digit/integer.
|
|
15853
|
-
* @see `digitToBasic()`
|
|
15854
|
-
* @private
|
|
15855
|
-
* @param {Number} codePoint The basic numeric code point value.
|
|
15856
|
-
* @returns {Number} The numeric value of a basic code point (for use in
|
|
15857
|
-
* representing integers) in the range `0` to `base - 1`, or `base` if
|
|
15858
|
-
* the code point does not represent a value.
|
|
15859
|
-
*/
|
|
15860
|
-
function basicToDigit(codePoint) {
|
|
15861
|
-
if (codePoint - 48 < 10) {
|
|
15862
|
-
return codePoint - 22;
|
|
15863
|
-
}
|
|
15864
|
-
if (codePoint - 65 < 26) {
|
|
15865
|
-
return codePoint - 65;
|
|
15866
|
-
}
|
|
15867
|
-
if (codePoint - 97 < 26) {
|
|
15868
|
-
return codePoint - 97;
|
|
15869
|
-
}
|
|
15870
|
-
return base;
|
|
15871
|
-
}
|
|
15872
|
-
|
|
15873
|
-
/**
|
|
15874
|
-
* Converts a digit/integer into a basic code point.
|
|
15875
|
-
* @see `basicToDigit()`
|
|
15876
|
-
* @private
|
|
15877
|
-
* @param {Number} digit The numeric value of a basic code point.
|
|
15878
|
-
* @returns {Number} The basic code point whose value (when used for
|
|
15879
|
-
* representing integers) is `digit`, which needs to be in the range
|
|
15880
|
-
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
|
15881
|
-
* used; else, the lowercase form is used. The behavior is undefined
|
|
15882
|
-
* if `flag` is non-zero and `digit` has no uppercase form.
|
|
15883
|
-
*/
|
|
15884
|
-
function digitToBasic(digit, flag) {
|
|
15885
|
-
// 0..25 map to ASCII a..z or A..Z
|
|
15886
|
-
// 26..35 map to ASCII 0..9
|
|
15887
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
15888
|
-
}
|
|
15889
|
-
|
|
15890
|
-
/**
|
|
15891
|
-
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
15892
|
-
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
15893
|
-
* @private
|
|
15894
|
-
*/
|
|
15895
|
-
function adapt(delta, numPoints, firstTime) {
|
|
15896
|
-
var k = 0;
|
|
15897
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
15898
|
-
delta += floor(delta / numPoints);
|
|
15899
|
-
for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
15900
|
-
delta = floor(delta / baseMinusTMin);
|
|
15901
|
-
}
|
|
15902
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
15903
|
-
}
|
|
15904
|
-
|
|
15905
|
-
/**
|
|
15906
|
-
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
15907
|
-
* symbols.
|
|
15908
|
-
* @memberOf punycode
|
|
15909
|
-
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
15910
|
-
* @returns {String} The resulting string of Unicode symbols.
|
|
15911
|
-
*/
|
|
15912
|
-
function decode(input) {
|
|
15913
|
-
// Don't use UCS-2
|
|
15914
|
-
var output = [],
|
|
15915
|
-
inputLength = input.length,
|
|
15916
|
-
out,
|
|
15917
|
-
i = 0,
|
|
15918
|
-
n = initialN,
|
|
15919
|
-
bias = initialBias,
|
|
15920
|
-
basic,
|
|
15921
|
-
j,
|
|
15922
|
-
index,
|
|
15923
|
-
oldi,
|
|
15924
|
-
w,
|
|
15925
|
-
k,
|
|
15926
|
-
digit,
|
|
15927
|
-
t,
|
|
15928
|
-
/** Cached calculation results */
|
|
15929
|
-
baseMinusT;
|
|
15930
|
-
|
|
15931
|
-
// Handle the basic code points: let `basic` be the number of input code
|
|
15932
|
-
// points before the last delimiter, or `0` if there is none, then copy
|
|
15933
|
-
// the first basic code points to the output.
|
|
15934
|
-
|
|
15935
|
-
basic = input.lastIndexOf(delimiter);
|
|
15936
|
-
if (basic < 0) {
|
|
15937
|
-
basic = 0;
|
|
15938
|
-
}
|
|
15939
|
-
|
|
15940
|
-
for (j = 0; j < basic; ++j) {
|
|
15941
|
-
// if it's not a basic code point
|
|
15942
|
-
if (input.charCodeAt(j) >= 0x80) {
|
|
15943
|
-
error('not-basic');
|
|
15944
|
-
}
|
|
15945
|
-
output.push(input.charCodeAt(j));
|
|
15946
|
-
}
|
|
15947
|
-
|
|
15948
|
-
// Main decoding loop: start just after the last delimiter if any basic code
|
|
15949
|
-
// points were copied; start at the beginning otherwise.
|
|
15950
|
-
|
|
15951
|
-
for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
|
|
15952
|
-
|
|
15953
|
-
// `index` is the index of the next character to be consumed.
|
|
15954
|
-
// Decode a generalized variable-length integer into `delta`,
|
|
15955
|
-
// which gets added to `i`. The overflow checking is easier
|
|
15956
|
-
// if we increase `i` as we go, then subtract off its starting
|
|
15957
|
-
// value at the end to obtain `delta`.
|
|
15958
|
-
for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
|
|
15959
|
-
|
|
15960
|
-
if (index >= inputLength) {
|
|
15961
|
-
error('invalid-input');
|
|
15962
|
-
}
|
|
15963
|
-
|
|
15964
|
-
digit = basicToDigit(input.charCodeAt(index++));
|
|
15965
|
-
|
|
15966
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
15967
|
-
error('overflow');
|
|
15968
|
-
}
|
|
15969
|
-
|
|
15970
|
-
i += digit * w;
|
|
15971
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
15972
|
-
|
|
15973
|
-
if (digit < t) {
|
|
15974
|
-
break;
|
|
15975
|
-
}
|
|
15976
|
-
|
|
15977
|
-
baseMinusT = base - t;
|
|
15978
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
15979
|
-
error('overflow');
|
|
15980
|
-
}
|
|
15981
|
-
|
|
15982
|
-
w *= baseMinusT;
|
|
15983
|
-
|
|
15984
|
-
}
|
|
15985
|
-
|
|
15986
|
-
out = output.length + 1;
|
|
15987
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
15988
|
-
|
|
15989
|
-
// `i` was supposed to wrap around from `out` to `0`,
|
|
15990
|
-
// incrementing `n` each time, so we'll fix that now:
|
|
15991
|
-
if (floor(i / out) > maxInt - n) {
|
|
15992
|
-
error('overflow');
|
|
15993
|
-
}
|
|
15994
|
-
|
|
15995
|
-
n += floor(i / out);
|
|
15996
|
-
i %= out;
|
|
15997
|
-
|
|
15998
|
-
// Insert `n` at position `i` of the output
|
|
15999
|
-
output.splice(i++, 0, n);
|
|
16000
|
-
|
|
16001
|
-
}
|
|
16002
|
-
|
|
16003
|
-
return ucs2encode(output);
|
|
16004
|
-
}
|
|
16005
|
-
|
|
16006
|
-
/**
|
|
16007
|
-
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
16008
|
-
* Punycode string of ASCII-only symbols.
|
|
16009
|
-
* @memberOf punycode
|
|
16010
|
-
* @param {String} input The string of Unicode symbols.
|
|
16011
|
-
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
16012
|
-
*/
|
|
16013
|
-
function encode(input) {
|
|
16014
|
-
var n,
|
|
16015
|
-
delta,
|
|
16016
|
-
handledCPCount,
|
|
16017
|
-
basicLength,
|
|
16018
|
-
bias,
|
|
16019
|
-
j,
|
|
16020
|
-
m,
|
|
16021
|
-
q,
|
|
16022
|
-
k,
|
|
16023
|
-
t,
|
|
16024
|
-
currentValue,
|
|
16025
|
-
output = [],
|
|
16026
|
-
/** `inputLength` will hold the number of code points in `input`. */
|
|
16027
|
-
inputLength,
|
|
16028
|
-
/** Cached calculation results */
|
|
16029
|
-
handledCPCountPlusOne,
|
|
16030
|
-
baseMinusT,
|
|
16031
|
-
qMinusT;
|
|
16032
|
-
|
|
16033
|
-
// Convert the input in UCS-2 to Unicode
|
|
16034
|
-
input = ucs2decode(input);
|
|
16035
|
-
|
|
16036
|
-
// Cache the length
|
|
16037
|
-
inputLength = input.length;
|
|
16038
|
-
|
|
16039
|
-
// Initialize the state
|
|
16040
|
-
n = initialN;
|
|
16041
|
-
delta = 0;
|
|
16042
|
-
bias = initialBias;
|
|
16043
|
-
|
|
16044
|
-
// Handle the basic code points
|
|
16045
|
-
for (j = 0; j < inputLength; ++j) {
|
|
16046
|
-
currentValue = input[j];
|
|
16047
|
-
if (currentValue < 0x80) {
|
|
16048
|
-
output.push(stringFromCharCode(currentValue));
|
|
16049
|
-
}
|
|
16050
|
-
}
|
|
16051
|
-
|
|
16052
|
-
handledCPCount = basicLength = output.length;
|
|
16053
|
-
|
|
16054
|
-
// `handledCPCount` is the number of code points that have been handled;
|
|
16055
|
-
// `basicLength` is the number of basic code points.
|
|
16056
|
-
|
|
16057
|
-
// Finish the basic string - if it is not empty - with a delimiter
|
|
16058
|
-
if (basicLength) {
|
|
16059
|
-
output.push(delimiter);
|
|
16060
|
-
}
|
|
16061
|
-
|
|
16062
|
-
// Main encoding loop:
|
|
16063
|
-
while (handledCPCount < inputLength) {
|
|
16064
|
-
|
|
16065
|
-
// All non-basic code points < n have been handled already. Find the next
|
|
16066
|
-
// larger one:
|
|
16067
|
-
for (m = maxInt, j = 0; j < inputLength; ++j) {
|
|
16068
|
-
currentValue = input[j];
|
|
16069
|
-
if (currentValue >= n && currentValue < m) {
|
|
16070
|
-
m = currentValue;
|
|
16071
|
-
}
|
|
16072
|
-
}
|
|
16073
|
-
|
|
16074
|
-
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
16075
|
-
// but guard against overflow
|
|
16076
|
-
handledCPCountPlusOne = handledCPCount + 1;
|
|
16077
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
16078
|
-
error('overflow');
|
|
16079
|
-
}
|
|
16080
|
-
|
|
16081
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
16082
|
-
n = m;
|
|
16083
|
-
|
|
16084
|
-
for (j = 0; j < inputLength; ++j) {
|
|
16085
|
-
currentValue = input[j];
|
|
16086
|
-
|
|
16087
|
-
if (currentValue < n && ++delta > maxInt) {
|
|
16088
|
-
error('overflow');
|
|
16089
|
-
}
|
|
16090
|
-
|
|
16091
|
-
if (currentValue == n) {
|
|
16092
|
-
// Represent delta as a generalized variable-length integer
|
|
16093
|
-
for (q = delta, k = base; /* no condition */; k += base) {
|
|
16094
|
-
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
16095
|
-
if (q < t) {
|
|
16096
|
-
break;
|
|
16097
|
-
}
|
|
16098
|
-
qMinusT = q - t;
|
|
16099
|
-
baseMinusT = base - t;
|
|
16100
|
-
output.push(
|
|
16101
|
-
stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
|
16102
|
-
);
|
|
16103
|
-
q = floor(qMinusT / baseMinusT);
|
|
16104
|
-
}
|
|
16105
|
-
|
|
16106
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
16107
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
16108
|
-
delta = 0;
|
|
16109
|
-
++handledCPCount;
|
|
16110
|
-
}
|
|
16111
|
-
}
|
|
16112
|
-
|
|
16113
|
-
++delta;
|
|
16114
|
-
++n;
|
|
16115
|
-
|
|
16116
|
-
}
|
|
16117
|
-
return output.join('');
|
|
16118
|
-
}
|
|
16119
|
-
|
|
16120
|
-
/**
|
|
16121
|
-
* Converts a Punycode string representing a domain name or an email address
|
|
16122
|
-
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
16123
|
-
* it doesn't matter if you call it on a string that has already been
|
|
16124
|
-
* converted to Unicode.
|
|
16125
|
-
* @memberOf punycode
|
|
16126
|
-
* @param {String} input The Punycoded domain name or email address to
|
|
16127
|
-
* convert to Unicode.
|
|
16128
|
-
* @returns {String} The Unicode representation of the given Punycode
|
|
16129
|
-
* string.
|
|
16130
|
-
*/
|
|
16131
|
-
function toUnicode(input) {
|
|
16132
|
-
return mapDomain(input, function(string) {
|
|
16133
|
-
return regexPunycode.test(string)
|
|
16134
|
-
? decode(string.slice(4).toLowerCase())
|
|
16135
|
-
: string;
|
|
16136
|
-
});
|
|
16137
|
-
}
|
|
16138
|
-
|
|
16139
|
-
/**
|
|
16140
|
-
* Converts a Unicode string representing a domain name or an email address to
|
|
16141
|
-
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
16142
|
-
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
16143
|
-
* ASCII.
|
|
16144
|
-
* @memberOf punycode
|
|
16145
|
-
* @param {String} input The domain name or email address to convert, as a
|
|
16146
|
-
* Unicode string.
|
|
16147
|
-
* @returns {String} The Punycode representation of the given domain name or
|
|
16148
|
-
* email address.
|
|
16149
|
-
*/
|
|
16150
|
-
function toASCII(input) {
|
|
16151
|
-
return mapDomain(input, function(string) {
|
|
16152
|
-
return regexNonASCII.test(string)
|
|
16153
|
-
? 'xn--' + encode(string)
|
|
16154
|
-
: string;
|
|
16155
|
-
});
|
|
16156
|
-
}
|
|
16157
|
-
|
|
16158
|
-
/*--------------------------------------------------------------------------*/
|
|
16159
|
-
|
|
16160
|
-
/** Define the public API */
|
|
16161
|
-
punycode = {
|
|
16162
|
-
/**
|
|
16163
|
-
* A string representing the current Punycode.js version number.
|
|
16164
|
-
* @memberOf punycode
|
|
16165
|
-
* @type String
|
|
16166
|
-
*/
|
|
16167
|
-
'version': '1.4.1',
|
|
16168
|
-
/**
|
|
16169
|
-
* An object of methods to convert from JavaScript's internal character
|
|
16170
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
16171
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
16172
|
-
* @memberOf punycode
|
|
16173
|
-
* @type Object
|
|
16174
|
-
*/
|
|
16175
|
-
'ucs2': {
|
|
16176
|
-
'decode': ucs2decode,
|
|
16177
|
-
'encode': ucs2encode
|
|
16178
|
-
},
|
|
16179
|
-
'decode': decode,
|
|
16180
|
-
'encode': encode,
|
|
16181
|
-
'toASCII': toASCII,
|
|
16182
|
-
'toUnicode': toUnicode
|
|
16183
|
-
};
|
|
16184
|
-
|
|
16185
|
-
/** Expose `punycode` */
|
|
16186
|
-
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
|
16187
|
-
// like the following:
|
|
16188
|
-
if (freeExports && freeModule) {
|
|
16189
|
-
if (module.exports == freeExports) {
|
|
16190
|
-
// in Node.js, io.js, or RingoJS v0.8.0+
|
|
16191
|
-
freeModule.exports = punycode;
|
|
16192
|
-
} else {
|
|
16193
|
-
// in Narwhal or RingoJS v0.7.0-
|
|
16194
|
-
for (key in punycode) {
|
|
16195
|
-
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
|
|
16196
|
-
}
|
|
16197
|
-
}
|
|
16198
|
-
} else {
|
|
16199
|
-
// in Rhino or a web browser
|
|
16200
|
-
root.punycode = punycode;
|
|
16201
|
-
}
|
|
16202
|
-
|
|
16203
|
-
}(commonjsGlobal));
|
|
16204
|
-
});
|
|
16205
|
-
|
|
16206
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
16207
|
-
var shams = function hasSymbols() {
|
|
16208
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
16209
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
16210
|
-
|
|
16211
|
-
var obj = {};
|
|
16212
|
-
var sym = Symbol('test');
|
|
16213
|
-
var symObj = Object(sym);
|
|
16214
|
-
if (typeof sym === 'string') { return false; }
|
|
16215
|
-
|
|
16216
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
16217
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
16218
|
-
|
|
16219
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
16220
|
-
// if (sym instanceof Symbol) { return false; }
|
|
16221
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
16222
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
16223
|
-
|
|
16224
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
16225
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
16226
|
-
|
|
16227
|
-
var symVal = 42;
|
|
16228
|
-
obj[sym] = symVal;
|
|
16229
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
16230
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
16231
|
-
|
|
16232
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
16233
|
-
|
|
16234
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
16235
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
16236
|
-
|
|
16237
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
16238
|
-
|
|
16239
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
16240
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
16241
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
16242
|
-
}
|
|
16243
|
-
|
|
16244
|
-
return true;
|
|
16245
|
-
};
|
|
16246
|
-
|
|
16247
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
var hasSymbols$1 = function hasNativeSymbols() {
|
|
16251
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
16252
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
16253
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
16254
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
16255
|
-
|
|
16256
|
-
return shams();
|
|
16257
|
-
};
|
|
16258
|
-
|
|
16259
|
-
var test = {
|
|
16260
|
-
foo: {}
|
|
16261
|
-
};
|
|
16262
|
-
|
|
16263
|
-
var $Object = Object;
|
|
16264
|
-
|
|
16265
|
-
var hasProto$1 = function hasProto() {
|
|
16266
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
16267
|
-
};
|
|
16268
|
-
|
|
16269
|
-
/* eslint no-invalid-this: 1 */
|
|
16270
|
-
|
|
16271
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
16272
|
-
var slice = Array.prototype.slice;
|
|
16273
|
-
var toStr$1 = Object.prototype.toString;
|
|
16274
|
-
var funcType = '[object Function]';
|
|
16275
|
-
|
|
16276
|
-
var implementation = function bind(that) {
|
|
16277
|
-
var target = this;
|
|
16278
|
-
if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
|
|
16279
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
16280
|
-
}
|
|
16281
|
-
var args = slice.call(arguments, 1);
|
|
16282
|
-
|
|
16283
|
-
var bound;
|
|
16284
|
-
var binder = function () {
|
|
16285
|
-
if (this instanceof bound) {
|
|
16286
|
-
var result = target.apply(
|
|
16287
|
-
this,
|
|
16288
|
-
args.concat(slice.call(arguments))
|
|
16289
|
-
);
|
|
16290
|
-
if (Object(result) === result) {
|
|
16291
|
-
return result;
|
|
16292
|
-
}
|
|
16293
|
-
return this;
|
|
16294
|
-
} else {
|
|
16295
|
-
return target.apply(
|
|
16296
|
-
that,
|
|
16297
|
-
args.concat(slice.call(arguments))
|
|
16298
|
-
);
|
|
16299
|
-
}
|
|
16300
|
-
};
|
|
16301
|
-
|
|
16302
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
16303
|
-
var boundArgs = [];
|
|
16304
|
-
for (var i = 0; i < boundLength; i++) {
|
|
16305
|
-
boundArgs.push('$' + i);
|
|
16306
|
-
}
|
|
16307
|
-
|
|
16308
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
16309
|
-
|
|
16310
|
-
if (target.prototype) {
|
|
16311
|
-
var Empty = function Empty() {};
|
|
16312
|
-
Empty.prototype = target.prototype;
|
|
16313
|
-
bound.prototype = new Empty();
|
|
16314
|
-
Empty.prototype = null;
|
|
16315
|
-
}
|
|
16316
|
-
|
|
16317
|
-
return bound;
|
|
16318
|
-
};
|
|
16319
|
-
|
|
16320
|
-
var functionBind = Function.prototype.bind || implementation;
|
|
16321
|
-
|
|
16322
|
-
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
16323
|
-
|
|
16324
|
-
var undefined$1;
|
|
16325
|
-
|
|
16326
|
-
var $SyntaxError = SyntaxError;
|
|
16327
|
-
var $Function = Function;
|
|
16328
|
-
var $TypeError$1 = TypeError;
|
|
16329
|
-
|
|
16330
|
-
// eslint-disable-next-line consistent-return
|
|
16331
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
16332
|
-
try {
|
|
16333
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
16334
|
-
} catch (e) {}
|
|
16335
|
-
};
|
|
16336
|
-
|
|
16337
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
16338
|
-
|
|
16339
|
-
var throwTypeError = function () {
|
|
16340
|
-
throw new $TypeError$1();
|
|
16341
|
-
};
|
|
16342
|
-
var ThrowTypeError = $gOPD
|
|
16343
|
-
? (function () {
|
|
16344
|
-
try {
|
|
16345
|
-
return throwTypeError;
|
|
16346
|
-
} catch (calleeThrows) {
|
|
16347
|
-
try {
|
|
16348
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
16349
|
-
return $gOPD(arguments, 'callee').get;
|
|
16350
|
-
} catch (gOPDthrows) {
|
|
16351
|
-
return throwTypeError;
|
|
16352
|
-
}
|
|
16353
|
-
}
|
|
16354
|
-
}())
|
|
16355
|
-
: throwTypeError;
|
|
16356
|
-
|
|
16357
|
-
var hasSymbols = hasSymbols$1();
|
|
16358
|
-
var hasProto = hasProto$1();
|
|
16359
|
-
|
|
16360
|
-
var getProto = Object.getPrototypeOf || (
|
|
16361
|
-
hasProto
|
|
16362
|
-
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
16363
|
-
: null
|
|
16364
|
-
);
|
|
16365
|
-
|
|
16366
|
-
var needsEval = {};
|
|
16367
|
-
|
|
16368
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
16369
|
-
|
|
16370
|
-
var INTRINSICS = {
|
|
16371
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
16372
|
-
'%Array%': Array,
|
|
16373
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
16374
|
-
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
16375
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
16376
|
-
'%AsyncFunction%': needsEval,
|
|
16377
|
-
'%AsyncGenerator%': needsEval,
|
|
16378
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
16379
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
16380
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
16381
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
16382
|
-
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
16383
|
-
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
16384
|
-
'%Boolean%': Boolean,
|
|
16385
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
16386
|
-
'%Date%': Date,
|
|
16387
|
-
'%decodeURI%': decodeURI,
|
|
16388
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
16389
|
-
'%encodeURI%': encodeURI,
|
|
16390
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
16391
|
-
'%Error%': Error,
|
|
16392
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
16393
|
-
'%EvalError%': EvalError,
|
|
16394
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
16395
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
16396
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
16397
|
-
'%Function%': $Function,
|
|
16398
|
-
'%GeneratorFunction%': needsEval,
|
|
16399
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
16400
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
16401
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
16402
|
-
'%isFinite%': isFinite,
|
|
16403
|
-
'%isNaN%': isNaN,
|
|
16404
|
-
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
16405
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
16406
|
-
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
16407
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
16408
|
-
'%Math%': Math,
|
|
16409
|
-
'%Number%': Number,
|
|
16410
|
-
'%Object%': Object,
|
|
16411
|
-
'%parseFloat%': parseFloat,
|
|
16412
|
-
'%parseInt%': parseInt,
|
|
16413
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
16414
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
16415
|
-
'%RangeError%': RangeError,
|
|
16416
|
-
'%ReferenceError%': ReferenceError,
|
|
16417
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
16418
|
-
'%RegExp%': RegExp,
|
|
16419
|
-
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
16420
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
16421
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
16422
|
-
'%String%': String,
|
|
16423
|
-
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
16424
|
-
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
16425
|
-
'%SyntaxError%': $SyntaxError,
|
|
16426
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
16427
|
-
'%TypedArray%': TypedArray,
|
|
16428
|
-
'%TypeError%': $TypeError$1,
|
|
16429
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
16430
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
16431
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
16432
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
16433
|
-
'%URIError%': URIError,
|
|
16434
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
16435
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
16436
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
16437
|
-
};
|
|
16438
|
-
|
|
16439
|
-
var doEval = function doEval(name) {
|
|
16440
|
-
var value;
|
|
16441
|
-
if (name === '%AsyncFunction%') {
|
|
16442
|
-
value = getEvalledConstructor('async function () {}');
|
|
16443
|
-
} else if (name === '%GeneratorFunction%') {
|
|
16444
|
-
value = getEvalledConstructor('function* () {}');
|
|
16445
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
16446
|
-
value = getEvalledConstructor('async function* () {}');
|
|
16447
|
-
} else if (name === '%AsyncGenerator%') {
|
|
16448
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
16449
|
-
if (fn) {
|
|
16450
|
-
value = fn.prototype;
|
|
16451
|
-
}
|
|
16452
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
16453
|
-
var gen = doEval('%AsyncGenerator%');
|
|
16454
|
-
if (gen && getProto) {
|
|
16455
|
-
value = getProto(gen.prototype);
|
|
16456
|
-
}
|
|
16457
|
-
}
|
|
16458
|
-
|
|
16459
|
-
INTRINSICS[name] = value;
|
|
16460
|
-
|
|
16461
|
-
return value;
|
|
16462
|
-
};
|
|
16463
|
-
|
|
16464
|
-
var LEGACY_ALIASES = {
|
|
16465
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
16466
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
16467
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
16468
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
16469
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
16470
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
16471
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
16472
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
16473
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
16474
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
16475
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
16476
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
16477
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
16478
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
16479
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
16480
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
16481
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
16482
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
16483
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
16484
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
16485
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
16486
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
16487
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
16488
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
16489
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
16490
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
16491
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
16492
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
16493
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
16494
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
16495
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
16496
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
16497
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
16498
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
16499
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
16500
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
16501
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
16502
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
16503
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
16504
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
16505
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
16506
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
16507
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
16508
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
16509
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
16510
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
16511
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
16512
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
16513
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
16514
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
16515
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
16516
|
-
};
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
|
|
16521
|
-
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
16522
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
16523
|
-
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
16524
|
-
var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
|
|
16525
|
-
|
|
16526
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
16527
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
16528
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
16529
|
-
var stringToPath = function stringToPath(string) {
|
|
16530
|
-
var first = $strSlice(string, 0, 1);
|
|
16531
|
-
var last = $strSlice(string, -1);
|
|
16532
|
-
if (first === '%' && last !== '%') {
|
|
16533
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
16534
|
-
} else if (last === '%' && first !== '%') {
|
|
16535
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
16536
|
-
}
|
|
16537
|
-
var result = [];
|
|
16538
|
-
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
16539
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
|
|
16540
|
-
});
|
|
16541
|
-
return result;
|
|
16542
|
-
};
|
|
16543
|
-
/* end adaptation */
|
|
16544
|
-
|
|
16545
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
16546
|
-
var intrinsicName = name;
|
|
16547
|
-
var alias;
|
|
16548
|
-
if (src(LEGACY_ALIASES, intrinsicName)) {
|
|
16549
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
16550
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
16551
|
-
}
|
|
16552
|
-
|
|
16553
|
-
if (src(INTRINSICS, intrinsicName)) {
|
|
16554
|
-
var value = INTRINSICS[intrinsicName];
|
|
16555
|
-
if (value === needsEval) {
|
|
16556
|
-
value = doEval(intrinsicName);
|
|
16557
|
-
}
|
|
16558
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
16559
|
-
throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
16560
|
-
}
|
|
16561
|
-
|
|
16562
|
-
return {
|
|
16563
|
-
alias: alias,
|
|
16564
|
-
name: intrinsicName,
|
|
16565
|
-
value: value
|
|
16566
|
-
};
|
|
16567
|
-
}
|
|
16568
|
-
|
|
16569
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
16570
|
-
};
|
|
16571
|
-
|
|
16572
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
16573
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
16574
|
-
throw new $TypeError$1('intrinsic name must be a non-empty string');
|
|
16575
|
-
}
|
|
16576
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
16577
|
-
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
16578
|
-
}
|
|
16579
|
-
|
|
16580
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
16581
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
16582
|
-
}
|
|
16583
|
-
var parts = stringToPath(name);
|
|
16584
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
16585
|
-
|
|
16586
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
16587
|
-
var intrinsicRealName = intrinsic.name;
|
|
16588
|
-
var value = intrinsic.value;
|
|
16589
|
-
var skipFurtherCaching = false;
|
|
16590
|
-
|
|
16591
|
-
var alias = intrinsic.alias;
|
|
16592
|
-
if (alias) {
|
|
16593
|
-
intrinsicBaseName = alias[0];
|
|
16594
|
-
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
16595
|
-
}
|
|
16596
|
-
|
|
16597
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
16598
|
-
var part = parts[i];
|
|
16599
|
-
var first = $strSlice(part, 0, 1);
|
|
16600
|
-
var last = $strSlice(part, -1);
|
|
16601
|
-
if (
|
|
16602
|
-
(
|
|
16603
|
-
(first === '"' || first === "'" || first === '`')
|
|
16604
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
16605
|
-
)
|
|
16606
|
-
&& first !== last
|
|
16607
|
-
) {
|
|
16608
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
16609
|
-
}
|
|
16610
|
-
if (part === 'constructor' || !isOwn) {
|
|
16611
|
-
skipFurtherCaching = true;
|
|
16612
|
-
}
|
|
16613
|
-
|
|
16614
|
-
intrinsicBaseName += '.' + part;
|
|
16615
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
16616
|
-
|
|
16617
|
-
if (src(INTRINSICS, intrinsicRealName)) {
|
|
16618
|
-
value = INTRINSICS[intrinsicRealName];
|
|
16619
|
-
} else if (value != null) {
|
|
16620
|
-
if (!(part in value)) {
|
|
16621
|
-
if (!allowMissing) {
|
|
16622
|
-
throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
16623
|
-
}
|
|
16624
|
-
return void undefined$1;
|
|
16625
|
-
}
|
|
16626
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
16627
|
-
var desc = $gOPD(value, part);
|
|
16628
|
-
isOwn = !!desc;
|
|
16629
|
-
|
|
16630
|
-
// By convention, when a data property is converted to an accessor
|
|
16631
|
-
// property to emulate a data property that does not suffer from
|
|
16632
|
-
// the override mistake, that accessor's getter is marked with
|
|
16633
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
16634
|
-
// uphold the illusion by pretending to see that original data
|
|
16635
|
-
// property, i.e., returning the value rather than the getter
|
|
16636
|
-
// itself.
|
|
16637
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
16638
|
-
value = desc.get;
|
|
16639
|
-
} else {
|
|
16640
|
-
value = value[part];
|
|
16641
|
-
}
|
|
16642
|
-
} else {
|
|
16643
|
-
isOwn = src(value, part);
|
|
16644
|
-
value = value[part];
|
|
16645
|
-
}
|
|
16646
|
-
|
|
16647
|
-
if (isOwn && !skipFurtherCaching) {
|
|
16648
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
16649
|
-
}
|
|
16650
|
-
}
|
|
16651
|
-
}
|
|
16652
|
-
return value;
|
|
16653
|
-
};
|
|
16654
|
-
|
|
16655
|
-
var callBind = createCommonjsModule(function (module) {
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
var $apply = getIntrinsic('%Function.prototype.apply%');
|
|
16661
|
-
var $call = getIntrinsic('%Function.prototype.call%');
|
|
16662
|
-
var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
16663
|
-
|
|
16664
|
-
var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
16665
|
-
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
|
16666
|
-
var $max = getIntrinsic('%Math.max%');
|
|
16667
|
-
|
|
16668
|
-
if ($defineProperty) {
|
|
16669
|
-
try {
|
|
16670
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
16671
|
-
} catch (e) {
|
|
16672
|
-
// IE 8 has a broken defineProperty
|
|
16673
|
-
$defineProperty = null;
|
|
16674
|
-
}
|
|
16675
|
-
}
|
|
16676
|
-
|
|
16677
|
-
module.exports = function callBind(originalFunction) {
|
|
16678
|
-
var func = $reflectApply(functionBind, $call, arguments);
|
|
16679
|
-
if ($gOPD && $defineProperty) {
|
|
16680
|
-
var desc = $gOPD(func, 'length');
|
|
16681
|
-
if (desc.configurable) {
|
|
16682
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
16683
|
-
$defineProperty(
|
|
16684
|
-
func,
|
|
16685
|
-
'length',
|
|
16686
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
16687
|
-
);
|
|
16688
|
-
}
|
|
16689
|
-
}
|
|
16690
|
-
return func;
|
|
16691
|
-
};
|
|
16692
|
-
|
|
16693
|
-
var applyBind = function applyBind() {
|
|
16694
|
-
return $reflectApply(functionBind, $apply, arguments);
|
|
16695
|
-
};
|
|
16696
|
-
|
|
16697
|
-
if ($defineProperty) {
|
|
16698
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
16699
|
-
} else {
|
|
16700
|
-
module.exports.apply = applyBind;
|
|
16701
|
-
}
|
|
16702
|
-
});
|
|
16703
|
-
|
|
16704
|
-
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
16705
|
-
|
|
16706
|
-
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
16707
|
-
var intrinsic = getIntrinsic(name, !!allowMissing);
|
|
16708
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
16709
|
-
return callBind(intrinsic);
|
|
16710
|
-
}
|
|
16711
|
-
return intrinsic;
|
|
16712
|
-
};
|
|
16713
|
-
|
|
16714
|
-
const _nodeResolve_empty = {};
|
|
16715
|
-
|
|
16716
|
-
const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
|
|
16717
|
-
__proto__: null,
|
|
16718
|
-
'default': _nodeResolve_empty
|
|
15644
|
+
createCommonjsModule(function (module, exports) {
|
|
15645
|
+
!function(t){t();}((function(){!function(t,e){(module.exports=t(leafletSrc)),void 0!==e&&e.L&&t(e.L);}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,a){t.locales[e]=t.Util.extend({},t.locales[e],a);},t.setLocale=function(e){t.locale=e;},t.i18n=t._=function(e,a){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,a);}catch(t){}return e}}),window);var t=6e4,e=60*t,a=24*e;function i(i){var n=Math.floor(i/a),r=Math.floor((i-n*a)/e),o=Math.floor((i-n*a-r*e)/t),s=Math.round((i-n*a-r*e-o*t)/1e3);return 60===s&&(o++,s=0),60===o&&(r++,o=0),24===r&&(n++,r=0),(n?n+"d ":"")+r.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function n(t,e){var a=m("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),i=document.body;i.appendChild(a),a.click(),i.removeChild(a);}function r(t,e,a){return !1===e?Promise.resolve():a instanceof Promise?a:new Promise((function(e,a){var i=document.createElement("script");i.addEventListener("load",e,{once:!0}),i.src=t,document.head.appendChild(i);}))}function o(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var a=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(a),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(a),t.globalAlpha=1,t.closePath();}function s(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}));}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}));}function h(t,e,a){return (a?l:c).call(null,t,e)}function d(t,e,a){e&&c(t,e),a&&l(t,a);}function u(t,e,a){return void 0===a?L.DomUtil.getStyle(t,e):t.style.setProperty(e,a)}function _(t,e,a,i){return u(t,e,i?a:"")}function p(t,e,a,i){return t[i?"on":"off"](e,a)}function m(t,e,a,i){var n=L.DomUtil.create(t,e||"");return a&&v(n,a),i&&f(i,n),n}function f(t,e){return t.appendChild(e)}function g(t,e,a){return t.insertAdjacentElement(a,e)}function v(t,e){for(var a in e)t.setAttribute(a,e[a]);}function y(t,e){return (e||document).querySelector(t)}var x=L.DomEvent.on,b=L.DomEvent.off,k=L.DomUtil.hasClass;function w(){return Math.random().toString(36).substr(2,9)}function M(t,e){for(var a in t)e(t[a],a);}var C=Object.freeze({__proto__:null,formatTime:i,saveFile:n,lazyLoader:r,drawCanvas:o,clamp:s,addClass:l,removeClass:c,toggleClass:h,replaceClass:d,style:u,toggleStyle:_,toggleEvent:p,create:m,append:f,insert:g,setAttributes:v,select:y,on:x,off:b,hasClass:k,randomId:w,each:M}),A={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},S=function(t){var e=t.height,a=t.xAttr,i=t.yAttr,n=t.scaleX,r=t.scaleY,o=t.interpolation,s=void 0===o?"curveLinear":o;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(t){return t.xDiagCoord=n(t[a])})).y0(e).y1((function(t){return r(t[i])}))},z=function(t){var e=t.name,a=t.color,i=t.strokeColor,n=t.strokeOpacity,r=t.fillOpacity,o=d3.create("svg:path");return e&&o.classed(e,!0),o.style("pointer-events","none"),o.attr("fill",a||"#3366CC").attr("stroke",i||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",r||"0.8"),o},D=function(t){var e=t.type,a=void 0===e?"axis":e,i=t.tickSize,n=void 0===i?6:i,r=t.tickPadding,o=void 0===r?3:r,s=t.position,l=t.height,c=t.width,h=t.axis,d=t.scale,u=t.ticks,_=t.tickFormat,p=t.label,m=t.labelX,f=t.labelY,g=t.name,v=void 0===g?"":g,y=t.onAxisMount;return function(t){var e=0,i=0;"bottom"==s&&(i=l),"right"==s&&(e=c),"x"==h&&"grid"==a?n=-l:"y"==h&&"grid"==a&&(n=-c);var r=d3["axis"+s.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(d).ticks(u).tickPadding(o).tickSize(n).tickFormat(_),g=t.append("g").attr("class",[h,a,s,v].join(" ")).attr("transform","translate("+e+","+i+")").call(r);return p&&g.append("svg:text").attr("x",m).attr("y",f).text(p),y&&g.call(y),g}},F=function(t){return t.type="grid",D(t)},E=function(t){var e=t.theme,a=t.xCoord,i=void 0===a?0:a,n=t.yCoord,r=void 0===n?0:n,o=t.labels,s=void 0===o?{}:o,l=t.item,c=void 0===l?{}:l,h=t.length,d=void 0===h?0:h;return function(t){t.attr("class","height-focus-group");var a,n=t.select(".height-focus.line"),o=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),o.node()||(o=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(i)||isNaN(r)||(o.attr("class",e+" height-focus circle-lower").attr("transform","translate("+i+","+r+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",i).attr("x2",i).attr("y1",r).attr("y2",d),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",i+5).attr("y",d),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(a=l.select(".height-focus-"+s[t].name)).size()||(a=l.append("svg:tspan").attr("class","height-focus-"+s[t].name).attr("dy","1.5em")),a.text("function"!=typeof s[t].value?s[t].value:s[t].value(c));})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",i+5)),t}},T=function(t){var e=t.name,a=t.label,i=t.width,n=t.height,r=t.margins,o=void 0===r?{}:r,s=t.color,l=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",i/2-50).attr("y",n+o.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(a||e)).attr("x",i/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+o.bottom/2).attr("dy","0.75em"),t}},I=function(t){var e=t.xCoord,a=t.yCoord,i=t.width,n=t.height,r=t.labels,o=void 0===r?{}:r,s=t.item,l=void 0===s?{}:s;return function(t){var r=t.select(".mouse-focus-line"),s=t.select(".mouse-focus-label");r.node()||(r=t.append("svg:line")),s.node()||(s=t.append("g"));var c=s.select(".mouse-focus-label-rect"),h=s.select(".mouse-focus-label-text");c.node()||(c=s.append("svg:rect")),h.node()||(h=s.append("svg:text"));var d,u=0,_=0,p={width:0,height:0};try{p=h.node().getBBox();}catch(e){return t}return e&&(u=e+(e<i/2?10:-p.width-10)),a&&(_=Math.max(a-p.height,L.Browser.webkit?0:-1/0)),r.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),s.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",u-5).attr("y",_-5).attr("width",p.width+10).attr("height",p.height+10).attr("rx",3).attr("ry",3),h.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",_),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(d=h.select(".mouse-focus-label-"+o[t].name)).size()||(d=h.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+o[t].name).attr("dy","1.5em")),d.text("function"!=typeof o[t].value?o[t].value:o[t].value(l));})),h.select("tspan").attr("dy","1em"),h.selectAll("tspan").attr("x",u),t}},O=function(t){var e=t.height,a=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"}));var i=t.selectAll(".horizontal-drag-rect").data([{w:a}]),n=t.selectAll(".horizontal-drag-line").data([{w:a}]),r=t.selectAll(".horizontal-drag-label").data([{w:a-8}]),o=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:a+7,y:0,angle:-90,size:50}]);return i.exit().remove(),n.exit().remove(),r.exit().remove(),o.exit().remove(),i.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(i).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),r.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(r).attr("x",(function(t){return t.w})),o.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(o).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return "translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},N=function(t){var e=t.point,a=t.height,i=t.width,n=t.x,r=t.y;return function(t){return isNaN(n)||isNaN(r)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:r}).attr("class",(function(t){return "point "+t.pos})).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-r,bottom:a-r}[e.position],x2:{left:-n,right:i-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},P=function(t){var e=t.min,a=t.max,i=t.attr,n=t.name,r=t.forceBounds,o=t.scale;return function(t){i=i||n,o&&o.attr&&(i=o.attr);var s=t&&t.length?d3.extent(t,(function(t){return t[i]})):[0,1];return void 0!==e&&(e<s[0]||r)&&(s[0]=e),void 0!==a&&(a>s[1]||r)&&(s[1]=a),s}},B=function(t){var e=t.axis;return function(t,a){return "x"==e?[0,t]:"y"==e?[a,0]:void 0}},G=function(t){var e=t.data,a=t.attr,i=t.min,n=t.max,r=t.forceBounds,o=t.range;return d3.scaleLinear().range(o).domain(P({min:i,max:n,attr:a,forceBounds:r})(e))},H=function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=(e-n.left-n.right),o=a-n.top-n.bottom,s=d3.create("svg:svg").attr("class","background"),l=s.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},h=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),d=h.append("svg:rect").attr("class","zoom").attr("fill","white"),u=c.area.append("svg:foreignObject").attr("mask","url(#"+h.attr("id")+")"),_=u.append("xhtml:canvas").attr("class","canvas-plot"),p=_.node().getContext("2d");c.tooltip.call(I({xCoord:0,yCoord:0,height:o,width:r,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),f={mask:h,canvas:_,context:p,brush:m},g={svg:s,g:l,panes:c,utils:f,scale:function(t){return {x:G(t.x),y:G(t.y)}},_resize:function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=t.ruler,o=e-n.left-n.right,h=a-n.top-n.bottom;s.attr("viewBox","0 0 ".concat(e," ").concat(a)).attr("width",e).attr("height",a),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&_.style("transform","translate("+n.left+"px,"+n.top+"px)"),d.attr("x",0).attr("y",0).attr("width",o).attr("height",h),u.attr("width",o).attr("height",h),_.attr("width",o).attr("height",h),r&&c.ruler.call(O({height:h,width:o})),c.brush.call(m.extent([[0,0],[o,h]])),c.brush.select(".overlay").attr("cursor",null),g._width=o,g._height=h,g.svg.dispatch("resize",{detail:{width:o,height:h}});},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return f[t]}};return g._resize({width:e,height:a,margins:n}),g},X=Object.freeze({__proto__:null,Colors:A,Area:S,Path:z,Axis:D,Grid:F,PositionMarker:E,LegendItem:T,Tooltip:I,Ruler:O,CheckPoint:N,Domain:P,Range:B,Scale:G,Bisect:function(t){var e=t.data,a=void 0===e?[0,1]:e,i=t.scale,n=t.x,r=t.attr;return d3.bisector((function(t){return t[r]})).left(a,i.invert(n))},Chart:H}),U=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var a=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var i=this._chart=H(t);this._container=i.svg;this._grid=i.pane("grid"),this._area=i.pane("area"),this._point=i.pane("point"),this._axis=i.pane("axis"),this._legend=i.pane("legend"),this._tooltip=i.pane("tooltip"),this._ruler=i.pane("ruler"),this._initScale(),this._mask=i.get("mask"),this._context=i.get("context"),this._brush=i.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){a._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return a._maskGaps.push(t.index)}));}));},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove();},_drawPath:function(t){var e=this._paths[t],a=this._props.areas[t];e.datum(this._data).attr("d",S(L.extend({},a,{width:this._width(),height:this._height(),scaleX:this._scales[a.scaleX],scaleY:this._scales[a.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?o(this._context,e):this._area.append((function(){return e.node()})));},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return !0;return !1},_initBrush:function(t){var e=this,a=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var a=e._chart.panes.brush.select(".overlay").node(),i=d3.pointers(t,a)[0][0],n=e._data[e._findIndexForXCoord(i)];e.fire("mouse_move",{item:n,xCoord:i});}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var a=t.selection;if(a){var i=e._findIndexForXCoord(a[0]),n=e._findIndexForXCoord(a[1]);e.fire("dragged",{dragstart:e._data[i],dragend:e._data[n]});}}})).on("brush.update",a),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",a);},_initClipper:function(){var t=this,e=this._container,a=this.options.margins,i=this._zoom;i.scaleExtent([1,10]).extent([[a.left,0],[this._width()-a.right,this._height()]]).translateExtent([[a.left,-1/0],[this._width()-a.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(a){a.sourceEvent&&"mousedown"==a.sourceEvent.type&&e.style("cursor","grabbing"),1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0;})).on("end",(function(a){1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","");})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom");})),e.call(i);},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend();},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var a=e.detail,i=a.path,n=a.legend,r=a.name,o=a.enabled;if(i){var s=y("text",n),l=y("rect",n);_(s,"text-decoration-line","line-through",o),_(l,"fill-opacity","0",o),h(i,"leaflet-hidden",o),t._updateArea(),t.fire("elepath_toggle",{path:i,name:r,legend:n,enabled:o});}}));},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),a=this._drag;a.on("start end",(function(e,a){var i=t._height(),n=t._ruler.data()[0].y;(n>=i||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator();})).on("drag",(function(a,i){var n=t._height(),r=d3.pointers(a,t._area.node())[0][1],o=r>0?r<n?r:n:0,s=t._y.invert(o),l=L.extend(t._ruler.data()[0],{y:o});t._ruler.data([l]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})).classed("active",o<n),t._container.select(".horizontal-drag-label").text(e(s)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:r<n&&r>0?t._findCoordsForY(r):[]});})),this._ruler.call(a);}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude;},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var a=z(t);this._paths[t.name]=a,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:a});},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t;},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,a=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof a){(a=L.extend({data:this._data,forceBounds:e.forceAxisBounds},a)).attr=a.attr||t.name;var i=this._domains[t.name]=P(t),n=this._ranges[t.name]=B(t);a.range=a.range||n(this._width(),this._height()),a.domain=a.domain||i(this._data),this._props.scales[t.name]=a,t.scale=this._scales[t.name]=G(a);}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,a},_registerCheckPoint:function(t){var e,a,i;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],a=this._x(e.dist),i=this._y(e.z)):isNaN(t.dist)||(a=this._x(t.dist),e=this._data[this._findIndexForXCoord(a)],i=this._y(e.z)),this._point.call(N({point:t,width:this._width(),height:this._height(),x:a,y:i})));},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t;},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e);},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,a,i,n=this._props.grids,r=this._props.axes,o={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var l in n)e=L.extend({},o,n[l]),i=F(e),this._grid.call(i);for(var c in r)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},s,r[c]),a=D(e),this._axis.call(a));this._axis.selectAll(".y.axis.right").each((function(t,e,a){var i=d3.select(a[e]),n=i.attr("transform"),r=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");i.attr("transform","translate("+(+r[0]+40*e)+","+r[1]+")"),e>0&&(i.select(":scope > path").attr("opacity",.25),i.selectAll(":scope > .tick line").attr("opacity",.75));}));},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,a){if(!(a>=t._maskGaps.length-2)){var i=t._data[t._maskGaps[a]],n=t._data[t._maskGaps[a+1]],r=t._x(t._data[t._findIndexForLatLng(i.latlng)].dist),o=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",r).attr("y",0).attr("width",o-r).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black");}}));},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,a=this._props.legendItems;for(var i in this._legend.selectAll("g").remove(),a)e=T(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},a[i])),this._legend.append("g").call(e);var n=this._legend.selectAll(".legend-item"),r=n.nodes().length,o=Array(Math.floor(r/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(r%2))})),s=o.slice().reverse().map((function(t){return -t}));r%2!=0&&s.push(0),o=s.concat(o);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,h=30*r;r&&this.options.margins.right<h&&(this.options.margins.right=h,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(e,a,i){var n=d3.select(i[a]),r=(n.select("rect"),n.attr("data-name")),s=t._paths[r],c=55*o[a],h=2*l;n.attr("transform","translate("+c+", "+h+")"),r in t.options&&"disabled"==t.options[r]&&(s.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&s.attr("mask","url(#"+t._mask.attr("id")+")");}));}},_updateScale:function(){if(this.zooming)return {x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return {x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,a=this._data,i=this._y.invert(t),n=a.reduce((function(t,e,a){return e.z>=i&&t.push(a),t}),[]),r=0;return n.reduce((function(t,i,o){return n[e=o+1]===n[o]+1&&e!==n.length||(t.push(n.slice(r,e).map((function(t){return a[t].latlng}))),r=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,a=1/0;return this._data.forEach((function(i,n){var r=t.distanceTo(i.latlng);r<a&&(a=r,e=n);})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"));},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity);},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(I({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}));},_hideDiagramIndicator:function(){this._tooltip.attr("display","none");}});function j(t){return (j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var R,J=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1});}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(E({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"});}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(E({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}));}break;case"position-marker":c(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng);}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden");}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t;}}),Y=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},u(this._container=m("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"");},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML="";},append:function(t,e,a){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(a,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,a){return t.labels[e].order-t.labels[a].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info));}));},_registerSummary:function(t){for(var e in t){var a;t[e].order=null!==(a=t[e].order)&&void 0!==a?a:100,this.labels[e]=t[e];}}}),V={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},W=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var a=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),a._addData(t),a._addLayer(e),a._fireEvt("eledata_added",{data:t,layer:e,track_info:a.track_info});}));},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),f(e,this.onAdd(t));}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart();},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear());},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers());},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers());},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag();},enableBrush:function(){this._chart._brushEnabled=!0;},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom();},enableZoom:function(){this._chart._zoomEnabled=!0;},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t);},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){u(this._container,"display","none");},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(A,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize();},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:a="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":j(d3));break;case this.__TOGEOJSON:a="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":j(toGeoJSON));break;case this.__LGEOMUTIL:a="_geomutilLazyLoader",e="object"!==j(L.GeometryUtil);break;case this.__LALMOSTOVER:a="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:a="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers;}return L.Control.Elevation[a]=r(t,e,L.Control.Elevation[a])},load:function(t){var e=this;this._parseFromString(t).then((function(a){return a?e._loadLayer(a):e._loadFile(t)}));},onAdd:function(t){var e=this;this._map=t;var a=this._container=m("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(a),e._initChart(a),e._initSummary(a),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary();})),a},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),b(t.getContainer(),"mousewheel",this._resetDrag,this),b(t.getContainer(),"touchstart",this._resetDrag,this),b(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this);},redraw:function(){this._resizeChart();},setZFollow:function(t){this.options.zFollow=t;},show:function(){u(this._container,"display","block");},_addData:function(t){var e=this;if(t){var a=t.geometry;if(a)switch(a.type){case"LineString":this._addGeoJSONData(a.coordinates);break;case"MultiLineString":M(a.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+a.type);}"FeatureCollection"===t.type&&M(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties);}},_addGeoJSONData:function(t,e){var a=this;t.forEach((function(t,i){var n,r,o,s,l;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;a.fire("elepoint_init",{point:t,props:c,id:i}),a._addPoint(null!==(r=t.lat)&&void 0!==r?r:t[1],null!==(o=t.lng)&&void 0!==o?o:t[0],null!==(s=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==s?s:t[2]),a.fire("elepoint_added",{point:t,index:a._data.length-1});})),this.fire("eletrack_added",{coords:t,index:this._data.length-1});},_addPoint:function(t,e,a){if(this.options.reverseCoords){var i=[e,t];t=i[0],e=i[1];}this._data.push({x:t,y:e,z:a,latlng:L.latLng(t,e,a)}),this.fire("eledata_updated",{index:this._data.length-1});},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}));},_addMarker:function(t){t&&this._markers.addLayer(t);},_initAlmostOverHandler:function(t,e){var a=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return a._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return a._mouseoutHandler(t)})));}));},_initDistanceMarkers:function(t,e){var a=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LDISTANCEM)})).then((function(){return a.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t));},_initElevationDiv:function(){var t=y(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+w(),t=m("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var a=t._map;t._map?(a.once("layeradd",(function(a){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(a):(t._initAlmostOverHandler(a,e),t._initDistanceMarkers(a,e))):console.warn("Undefined elevation map object");},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed");},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded");},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(a,i){if(e._layers.hasLayer(i)){var n=e.options.theme.replace("-theme",""),r=A[n]||{},o=i.options;if(o.color=r.line||r.area||n,o.stroke=!!o.color,t.call(this,a,i),o.stroke&&0!==o.weight){var s=a.globalCompositeOperation||"source-over";a.globalCompositeOperation="destination-over",a.strokeStyle=r.outline||"#FFF",a.lineWidth=1.75*o.weight,a.stroke(),a.globalCompositeOperation=s;}}else t.call(this,a,i);}});},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data);}))}));},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,a){this.fire&&this.fire(t,e,a),this._map&&this._map.fire(t,e,a);},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove();},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var a=this.eleDiv,i=a.offsetWidth,n=a.offsetHeight;i>0&&(e.width=i),n>20&&(e.height=n-20);}else {var r=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>r&&(e.width=r-30);}var o=this._chart=new U(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init");},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var a=e.layer;h(a.getElement&&a.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),p(a,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),p(a,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type);}));},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new J(this.options),this.fire("elechart_marker");},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=m("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this));}},_initSummary:function(t){this._summary=new Y({summary:this.options.summary},this),d3.select(t).call(this._summary.render());},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse();},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(a){e._downloadURL=t,e._parseFromString(a).then((function(t){return t&&e._loadLayer(t)}));})).catch((function(t){return console.warn(t)}));},_loadLayer:function(t){var e=this,a=e.options,i=a.wptIcons,n=a.wptLabels,r=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var a=L.extend({},e.options.polyline);return e.options.theme&&(a.className+=" "+e.options.theme),a},pointToLayer:function(t,a){var r,o,s;if(e.options.waypoints){var l=t.properties,c=null!==(r=l.desc)&&void 0!==r?r:"",h=null!==(o=l.name)&&void 0!==o?o:"",d=(null!==(s=l.sym)&&void 0!==s?s:h).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:a,label:[!0,"dots"].includes(n)?h:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=i){i.hasOwnProperty(d)||(i[d]=L.divIcon(L.extend({},i[""].options,{html:'<i class="elevation-waypoint-icon '+d+'"></i>'})));var u=L.marker(a,{icon:i[d]});if([!0,"markers"].includes(n)&&(h||c)){var _=decodeURI("<b>"+h+"</b>"+(c.length>0?"<br>"+c:""));u.bindPopup(_,{className:"elevation-popup",keepInView:!0}).openPopup(),u.bindTooltip(_,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip();}return e._addMarker(u),e.fire("waypoint_added",{point:u,element:a,properties:l}),u}}},onEachFeature:function(a,i){a.geometry&&"Point"!=a.geometry.type&&(e.addData(i),e.track_info=L.extend({},e.track_info,{name:t.name}));}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,r),e._fireEvt("eledata_loaded",{data:t,layer:r,name:e.track_info.name,track_info:e.track_info});})),r},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged");},_mouseenterHandler:function(t){this.fire("elechart_enter");},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var a=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:a}),this.fire("elechart_hover",{data:e,xCoord:a});}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var a=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:a});}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave");},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(a){return e.lazyLoad(e.__TOGEOJSON).then((function(){var i;try{i=e._parseFromXMLString(t.trim());}catch(a){i=e._parseFromGeoJSONString(t.toString());}i&&(i=e._prepareMultiLineStrings(i),i=e._prepareAdditionalProperties(i)),a(i);}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw "Invalid XML";var a=(new DOMParser).parseFromString(t,"text/xml"),i=a.documentElement.tagName.toLowerCase(),n=a.getElementsByTagName("name");if(a.getElementsByTagName("parsererror").length)throw "Invalid XML";i in toGeoJSON||(i="TrainingCenterDatabase"==a.documentElement.tagName?"tcx":"gpx");var r=toGeoJSON[i](a);return r.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return "trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",r},_prepareAdditionalProperties:function(t){return !t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(a){t.features.push({geometry:{type:"LineString",coordinates:a},properties:e.properties,type:"Feature"});}));})),t.features.filter((function(t){return "MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}));},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}));},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}));},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}));},_registerDataAttribute:function(t){var e=this,a=null;t.init&&this.on("elepoint_init",(function(a){return t.init.call(e,a)})),this.on("elepoint_added",(function(i){if(!1===t.skipNull){var n=e._data[i.index][t.name];if(i.index>0){var r=e._data[i.index-1][t.name];if(isNaN(r)){if(isNaN(a)||isNaN(n)?isNaN(a)?isNaN(n)||(r=n):r=a:r=(a+n)/2,!isNaN(r))return e._data.splice(i.index-1,1);e._data[i.index-1][t.name]=r;}}isNaN(n)||(a=n);}e._data[i.index][t.name]=t.fetch.call(e,i.index,i.point),t.update&&(e._data[i.index][t.name]=t.update.call(e,e._data[i.index][t.name],i.index,i.point));}));},_registerTooltip:function(t){var e=this;if(t.chart){var a=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(a)}));}if(t.marker){var i=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(i)}));}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}));},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker();},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds());},_resizeChart:function(){if(this._container&&"none"!=u(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else {var a=this._map.getContainer().clientWidth;t=e._maxWidth>a?a-30:e._maxWidth;}if(t){var i=this._chart;e.width=t,i&&i._chart&&(i._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart());}this._updateMapSegments();}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords);},_toggle:function(){k(this._container,"elevation-expanded")?this._collapse():this._expand();},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),a=this.options.zFollow;"number"==typeof a?this._map.setView(t.latlng,e<a?a:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25});}},_toggleChartHandler:function(t){var e=this,a=t.name,i=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return h(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[a]=i||"disabled"!=this.options[a]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove());},_updateChart:function(){
|
|
15646
|
+
/*!this._data.length ||*/
|
|
15647
|
+
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"));},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options});},_rotateMarker:function(){this._marker&&this._marker.update();},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map);},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",y(".download a",this._summary._container).onclick=function(e){e.preventDefault();var a={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:a})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||a.confirm(),t.fire("eletrack_download",a);});},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});W.addInitHook((function(){var t=this,e=this.options,a={};e.imperial?(e.distanceFactor=this.__mileFactor,a.label="mi"):(e.distanceFactor=e.distanceFactor||1,a.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(a){var i=t._data[a].latlng.distanceTo(t._data[a>0?a-1:a].latlng)*e.distanceFactor;return Math.round(i/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:a.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+a.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return (t.distance||0).toFixed(2)+" "+a.label},order:10}});})),W.addInitHook((function(){var t=this,e=this.options,a={};a.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return i(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,a=t.props,i=t.id;a&&("coordTimes"in a?e.meta.time=new Date(Date.parse(a.coordTimes[i])):"times"in a?e.meta.time=new Date(Date.parse(a.times[i])):"time"in a&&(e.meta.time=new Date(Date.parse("object"===j(a.time)?a.time[i]:a.time))));},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var a=this._data[t].dist-this._data[t-1].dist,i=this._data[t-1].time.getTime(),n=a/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(i+n);}else e.meta.time=new Date(Date.now());var r=e.meta.time;return r.getTime()-60*r.getTimezoneOffset()*1e3==0&&(r=0),r},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:a.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75);}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+i(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return i(t.time||0)},order:20}}));})),W.addInitHook((function(){var t=this,e=this.options,a={},i=e.theme.replace("-theme",""),n=A[i]||{};e.imperial?(e.altitudeFactor=this.__footFactor,a.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,a.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt);},fetch:function(a){return t._data[a].z*e.altitudeFactor},update:function(e,a){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var i=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var r=e-i[a>0?a-1:a].z,o=t.options.altitudeDeltaMax;Math.abs(r)>o&&(e=i[a-1].z+o*Math.sign(r));}return (e=s(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:a.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||i,strokeColor:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+a.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+a.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return (t.elevation_max||0).toFixed(2)+" "+a.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return (t.elevation_min||0).toFixed(2)+" "+a.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return (t.elevation_avg||0).toFixed(2)+" "+a.label},order:30}});})),W.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,a={};a.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var a=t._data,i=1e3*(a[e].dist-a[e>0?e-1:e].dist),n=a[e].z-a[e>0?e-1:e].z;return isNaN(n)||0===i?0:n/i*100},update:function(e,a){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var i=t.track_info,n=t._data,r=n[a].z-n[a>0?a-1:a].z;if(t.options.slopeDeltaMax){var o=slop-n[a>0?a-1:a].slope,l=t.options.slopeDeltaMax;Math.abs(o)>l&&(e=n[a-1].slope+l*Math.sign(o));}return e=s(e,t.options.slopeRange),r>0?t.track_info.ascent+=r:r<0&&(t.track_info.descent-=r),e>i.slope_max&&(i.slope_max=e),e<i.slope_min&&(i.slope_min=e),i.slope_avg=(e+i.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+a.label},marker:function(t){return Math.round(t.slope)+a.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+a.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+a.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+a.label},order:40}});}})),W.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,a={};a.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(a){var i=t._data,n=1e3*(i[a].dist-i[a>0?a-1:a].dist),r=i[a].time-i[a>0?a-1:a].time;return r>0?Math.abs(n/r*e.timeFactor)*e.speedFactor:0},update:function(e,a){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var i=t._data,n=t.track_info;if(t.options.speedDeltaMax){var r=e-i[a>0?a-1:a].speed,o=t.options.speedDeltaMax;Math.abs(r)>o&&(e=i[a-1].speed+o*Math.sign(r));}return (e=s(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+a.label},marker:function(t){return Math.round(t.speed)+" "+a.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+a.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+a.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+a.label},order:50}}));}})),W.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,a={};a.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(a){var i=t._data,n=(i[a].speed-i[a>0?a-1:a].speed)*(1e3/e.timeFactor),r=(i[a].time-i[a>0?a-1:a].time)/1e3;return r>0?Math.abs(n/r)*e.accelerationFactor:0},update:function(e,a){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var i=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var r=e-i[a>0?a-1:a].acceleration,o=t.options.accelerationDeltaMax;Math.abs(r)>o&&(e=i[a-1].acceleration+o*Math.sign(r));}return (e=s(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+a.label},marker:function(t){return Math.round(t.acceleration)+" "+a.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+a.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+a.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+a.label},order:60}});}})),W.Utils=C,W.Components=X,W.Chart=U,R=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),R.call(null,t,e)},W.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip;})),L.control.elevation=function(t){return new W(t)};}));
|
|
15648
|
+
//# sourceMappingURL=leaflet-elevation.min.js.map
|
|
16719
15649
|
});
|
|
16720
15650
|
|
|
16721
|
-
const utilInspect = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
|
|
16722
|
-
|
|
16723
|
-
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
16724
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
16725
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
16726
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
16727
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
16728
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
16729
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
16730
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
16731
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
16732
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
16733
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
16734
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
16735
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
16736
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
16737
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
16738
|
-
var objectToString = Object.prototype.toString;
|
|
16739
|
-
var functionToString = Function.prototype.toString;
|
|
16740
|
-
var $match = String.prototype.match;
|
|
16741
|
-
var $slice = String.prototype.slice;
|
|
16742
|
-
var $replace = String.prototype.replace;
|
|
16743
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
16744
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
16745
|
-
var $test = RegExp.prototype.test;
|
|
16746
|
-
var $concat = Array.prototype.concat;
|
|
16747
|
-
var $join = Array.prototype.join;
|
|
16748
|
-
var $arrSlice = Array.prototype.slice;
|
|
16749
|
-
var $floor = Math.floor;
|
|
16750
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
16751
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
16752
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
16753
|
-
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
16754
|
-
// ie, `has-tostringtag/shams
|
|
16755
|
-
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
16756
|
-
? Symbol.toStringTag
|
|
16757
|
-
: null;
|
|
16758
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
16759
|
-
|
|
16760
|
-
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
16761
|
-
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
16762
|
-
? function (O) {
|
|
16763
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
16764
|
-
}
|
|
16765
|
-
: null
|
|
16766
|
-
);
|
|
16767
|
-
|
|
16768
|
-
function addNumericSeparator(num, str) {
|
|
16769
|
-
if (
|
|
16770
|
-
num === Infinity
|
|
16771
|
-
|| num === -Infinity
|
|
16772
|
-
|| num !== num
|
|
16773
|
-
|| (num && num > -1000 && num < 1000)
|
|
16774
|
-
|| $test.call(/e/, str)
|
|
16775
|
-
) {
|
|
16776
|
-
return str;
|
|
16777
|
-
}
|
|
16778
|
-
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
16779
|
-
if (typeof num === 'number') {
|
|
16780
|
-
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
16781
|
-
if (int !== num) {
|
|
16782
|
-
var intStr = String(int);
|
|
16783
|
-
var dec = $slice.call(str, intStr.length + 1);
|
|
16784
|
-
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
16785
|
-
}
|
|
16786
|
-
}
|
|
16787
|
-
return $replace.call(str, sepRegex, '$&_');
|
|
16788
|
-
}
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
var inspectCustom = utilInspect.custom;
|
|
16792
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
16793
|
-
|
|
16794
|
-
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
16795
|
-
var opts = options || {};
|
|
16796
|
-
|
|
16797
|
-
if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
16798
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
16799
|
-
}
|
|
16800
|
-
if (
|
|
16801
|
-
has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
16802
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
16803
|
-
: opts.maxStringLength !== null
|
|
16804
|
-
)
|
|
16805
|
-
) {
|
|
16806
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
16807
|
-
}
|
|
16808
|
-
var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
|
|
16809
|
-
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
16810
|
-
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
16811
|
-
}
|
|
16812
|
-
|
|
16813
|
-
if (
|
|
16814
|
-
has$3(opts, 'indent')
|
|
16815
|
-
&& opts.indent !== null
|
|
16816
|
-
&& opts.indent !== '\t'
|
|
16817
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
16818
|
-
) {
|
|
16819
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
16820
|
-
}
|
|
16821
|
-
if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
16822
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
16823
|
-
}
|
|
16824
|
-
var numericSeparator = opts.numericSeparator;
|
|
16825
|
-
|
|
16826
|
-
if (typeof obj === 'undefined') {
|
|
16827
|
-
return 'undefined';
|
|
16828
|
-
}
|
|
16829
|
-
if (obj === null) {
|
|
16830
|
-
return 'null';
|
|
16831
|
-
}
|
|
16832
|
-
if (typeof obj === 'boolean') {
|
|
16833
|
-
return obj ? 'true' : 'false';
|
|
16834
|
-
}
|
|
16835
|
-
|
|
16836
|
-
if (typeof obj === 'string') {
|
|
16837
|
-
return inspectString(obj, opts);
|
|
16838
|
-
}
|
|
16839
|
-
if (typeof obj === 'number') {
|
|
16840
|
-
if (obj === 0) {
|
|
16841
|
-
return Infinity / obj > 0 ? '0' : '-0';
|
|
16842
|
-
}
|
|
16843
|
-
var str = String(obj);
|
|
16844
|
-
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
16845
|
-
}
|
|
16846
|
-
if (typeof obj === 'bigint') {
|
|
16847
|
-
var bigIntStr = String(obj) + 'n';
|
|
16848
|
-
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
16849
|
-
}
|
|
16850
|
-
|
|
16851
|
-
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
16852
|
-
if (typeof depth === 'undefined') { depth = 0; }
|
|
16853
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
16854
|
-
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
16855
|
-
}
|
|
16856
|
-
|
|
16857
|
-
var indent = getIndent(opts, depth);
|
|
16858
|
-
|
|
16859
|
-
if (typeof seen === 'undefined') {
|
|
16860
|
-
seen = [];
|
|
16861
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
16862
|
-
return '[Circular]';
|
|
16863
|
-
}
|
|
16864
|
-
|
|
16865
|
-
function inspect(value, from, noIndent) {
|
|
16866
|
-
if (from) {
|
|
16867
|
-
seen = $arrSlice.call(seen);
|
|
16868
|
-
seen.push(from);
|
|
16869
|
-
}
|
|
16870
|
-
if (noIndent) {
|
|
16871
|
-
var newOpts = {
|
|
16872
|
-
depth: opts.depth
|
|
16873
|
-
};
|
|
16874
|
-
if (has$3(opts, 'quoteStyle')) {
|
|
16875
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
16876
|
-
}
|
|
16877
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
16878
|
-
}
|
|
16879
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
16880
|
-
}
|
|
16881
|
-
|
|
16882
|
-
if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
|
|
16883
|
-
var name = nameOf(obj);
|
|
16884
|
-
var keys = arrObjKeys(obj, inspect);
|
|
16885
|
-
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
16886
|
-
}
|
|
16887
|
-
if (isSymbol(obj)) {
|
|
16888
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
16889
|
-
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
16890
|
-
}
|
|
16891
|
-
if (isElement(obj)) {
|
|
16892
|
-
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
16893
|
-
var attrs = obj.attributes || [];
|
|
16894
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
16895
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
16896
|
-
}
|
|
16897
|
-
s += '>';
|
|
16898
|
-
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
16899
|
-
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
16900
|
-
return s;
|
|
16901
|
-
}
|
|
16902
|
-
if (isArray$3(obj)) {
|
|
16903
|
-
if (obj.length === 0) { return '[]'; }
|
|
16904
|
-
var xs = arrObjKeys(obj, inspect);
|
|
16905
|
-
if (indent && !singleLineValues(xs)) {
|
|
16906
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
16907
|
-
}
|
|
16908
|
-
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
16909
|
-
}
|
|
16910
|
-
if (isError(obj)) {
|
|
16911
|
-
var parts = arrObjKeys(obj, inspect);
|
|
16912
|
-
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
16913
|
-
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
16914
|
-
}
|
|
16915
|
-
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
16916
|
-
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
16917
|
-
}
|
|
16918
|
-
if (typeof obj === 'object' && customInspect) {
|
|
16919
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
16920
|
-
return utilInspect(obj, { depth: maxDepth - depth });
|
|
16921
|
-
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
16922
|
-
return obj.inspect();
|
|
16923
|
-
}
|
|
16924
|
-
}
|
|
16925
|
-
if (isMap(obj)) {
|
|
16926
|
-
var mapParts = [];
|
|
16927
|
-
if (mapForEach) {
|
|
16928
|
-
mapForEach.call(obj, function (value, key) {
|
|
16929
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
16930
|
-
});
|
|
16931
|
-
}
|
|
16932
|
-
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
16933
|
-
}
|
|
16934
|
-
if (isSet(obj)) {
|
|
16935
|
-
var setParts = [];
|
|
16936
|
-
if (setForEach) {
|
|
16937
|
-
setForEach.call(obj, function (value) {
|
|
16938
|
-
setParts.push(inspect(value, obj));
|
|
16939
|
-
});
|
|
16940
|
-
}
|
|
16941
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
16942
|
-
}
|
|
16943
|
-
if (isWeakMap(obj)) {
|
|
16944
|
-
return weakCollectionOf('WeakMap');
|
|
16945
|
-
}
|
|
16946
|
-
if (isWeakSet(obj)) {
|
|
16947
|
-
return weakCollectionOf('WeakSet');
|
|
16948
|
-
}
|
|
16949
|
-
if (isWeakRef(obj)) {
|
|
16950
|
-
return weakCollectionOf('WeakRef');
|
|
16951
|
-
}
|
|
16952
|
-
if (isNumber(obj)) {
|
|
16953
|
-
return markBoxed(inspect(Number(obj)));
|
|
16954
|
-
}
|
|
16955
|
-
if (isBigInt(obj)) {
|
|
16956
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
16957
|
-
}
|
|
16958
|
-
if (isBoolean(obj)) {
|
|
16959
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
16960
|
-
}
|
|
16961
|
-
if (isString(obj)) {
|
|
16962
|
-
return markBoxed(inspect(String(obj)));
|
|
16963
|
-
}
|
|
16964
|
-
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
16965
|
-
var ys = arrObjKeys(obj, inspect);
|
|
16966
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
16967
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
16968
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
16969
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
16970
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
16971
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
16972
|
-
if (indent) {
|
|
16973
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
16974
|
-
}
|
|
16975
|
-
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
16976
|
-
}
|
|
16977
|
-
return String(obj);
|
|
16978
|
-
};
|
|
16979
|
-
|
|
16980
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
16981
|
-
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
16982
|
-
return quoteChar + s + quoteChar;
|
|
16983
|
-
}
|
|
16984
|
-
|
|
16985
|
-
function quote(s) {
|
|
16986
|
-
return $replace.call(String(s), /"/g, '"');
|
|
16987
|
-
}
|
|
16988
|
-
|
|
16989
|
-
function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16990
|
-
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16991
|
-
function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16992
|
-
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16993
|
-
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16994
|
-
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16995
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
16996
|
-
|
|
16997
|
-
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
16998
|
-
function isSymbol(obj) {
|
|
16999
|
-
if (hasShammedSymbols) {
|
|
17000
|
-
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
17001
|
-
}
|
|
17002
|
-
if (typeof obj === 'symbol') {
|
|
17003
|
-
return true;
|
|
17004
|
-
}
|
|
17005
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
17006
|
-
return false;
|
|
17007
|
-
}
|
|
17008
|
-
try {
|
|
17009
|
-
symToString.call(obj);
|
|
17010
|
-
return true;
|
|
17011
|
-
} catch (e) {}
|
|
17012
|
-
return false;
|
|
17013
|
-
}
|
|
17014
|
-
|
|
17015
|
-
function isBigInt(obj) {
|
|
17016
|
-
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
17017
|
-
return false;
|
|
17018
|
-
}
|
|
17019
|
-
try {
|
|
17020
|
-
bigIntValueOf.call(obj);
|
|
17021
|
-
return true;
|
|
17022
|
-
} catch (e) {}
|
|
17023
|
-
return false;
|
|
17024
|
-
}
|
|
17025
|
-
|
|
17026
|
-
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
17027
|
-
function has$3(obj, key) {
|
|
17028
|
-
return hasOwn.call(obj, key);
|
|
17029
|
-
}
|
|
17030
|
-
|
|
17031
|
-
function toStr(obj) {
|
|
17032
|
-
return objectToString.call(obj);
|
|
17033
|
-
}
|
|
17034
|
-
|
|
17035
|
-
function nameOf(f) {
|
|
17036
|
-
if (f.name) { return f.name; }
|
|
17037
|
-
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
17038
|
-
if (m) { return m[1]; }
|
|
17039
|
-
return null;
|
|
17040
|
-
}
|
|
17041
|
-
|
|
17042
|
-
function indexOf(xs, x) {
|
|
17043
|
-
if (xs.indexOf) { return xs.indexOf(x); }
|
|
17044
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
17045
|
-
if (xs[i] === x) { return i; }
|
|
17046
|
-
}
|
|
17047
|
-
return -1;
|
|
17048
|
-
}
|
|
17049
|
-
|
|
17050
|
-
function isMap(x) {
|
|
17051
|
-
if (!mapSize || !x || typeof x !== 'object') {
|
|
17052
|
-
return false;
|
|
17053
|
-
}
|
|
17054
|
-
try {
|
|
17055
|
-
mapSize.call(x);
|
|
17056
|
-
try {
|
|
17057
|
-
setSize.call(x);
|
|
17058
|
-
} catch (s) {
|
|
17059
|
-
return true;
|
|
17060
|
-
}
|
|
17061
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
17062
|
-
} catch (e) {}
|
|
17063
|
-
return false;
|
|
17064
|
-
}
|
|
17065
|
-
|
|
17066
|
-
function isWeakMap(x) {
|
|
17067
|
-
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
17068
|
-
return false;
|
|
17069
|
-
}
|
|
17070
|
-
try {
|
|
17071
|
-
weakMapHas.call(x, weakMapHas);
|
|
17072
|
-
try {
|
|
17073
|
-
weakSetHas.call(x, weakSetHas);
|
|
17074
|
-
} catch (s) {
|
|
17075
|
-
return true;
|
|
17076
|
-
}
|
|
17077
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
17078
|
-
} catch (e) {}
|
|
17079
|
-
return false;
|
|
17080
|
-
}
|
|
17081
|
-
|
|
17082
|
-
function isWeakRef(x) {
|
|
17083
|
-
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
17084
|
-
return false;
|
|
17085
|
-
}
|
|
17086
|
-
try {
|
|
17087
|
-
weakRefDeref.call(x);
|
|
17088
|
-
return true;
|
|
17089
|
-
} catch (e) {}
|
|
17090
|
-
return false;
|
|
17091
|
-
}
|
|
17092
|
-
|
|
17093
|
-
function isSet(x) {
|
|
17094
|
-
if (!setSize || !x || typeof x !== 'object') {
|
|
17095
|
-
return false;
|
|
17096
|
-
}
|
|
17097
|
-
try {
|
|
17098
|
-
setSize.call(x);
|
|
17099
|
-
try {
|
|
17100
|
-
mapSize.call(x);
|
|
17101
|
-
} catch (m) {
|
|
17102
|
-
return true;
|
|
17103
|
-
}
|
|
17104
|
-
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
17105
|
-
} catch (e) {}
|
|
17106
|
-
return false;
|
|
17107
|
-
}
|
|
17108
|
-
|
|
17109
|
-
function isWeakSet(x) {
|
|
17110
|
-
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
17111
|
-
return false;
|
|
17112
|
-
}
|
|
17113
|
-
try {
|
|
17114
|
-
weakSetHas.call(x, weakSetHas);
|
|
17115
|
-
try {
|
|
17116
|
-
weakMapHas.call(x, weakMapHas);
|
|
17117
|
-
} catch (s) {
|
|
17118
|
-
return true;
|
|
17119
|
-
}
|
|
17120
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
17121
|
-
} catch (e) {}
|
|
17122
|
-
return false;
|
|
17123
|
-
}
|
|
17124
|
-
|
|
17125
|
-
function isElement(x) {
|
|
17126
|
-
if (!x || typeof x !== 'object') { return false; }
|
|
17127
|
-
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
17128
|
-
return true;
|
|
17129
|
-
}
|
|
17130
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
17131
|
-
}
|
|
17132
|
-
|
|
17133
|
-
function inspectString(str, opts) {
|
|
17134
|
-
if (str.length > opts.maxStringLength) {
|
|
17135
|
-
var remaining = str.length - opts.maxStringLength;
|
|
17136
|
-
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
17137
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
17138
|
-
}
|
|
17139
|
-
// eslint-disable-next-line no-control-regex
|
|
17140
|
-
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
17141
|
-
return wrapQuotes(s, 'single', opts);
|
|
17142
|
-
}
|
|
17143
|
-
|
|
17144
|
-
function lowbyte(c) {
|
|
17145
|
-
var n = c.charCodeAt(0);
|
|
17146
|
-
var x = {
|
|
17147
|
-
8: 'b',
|
|
17148
|
-
9: 't',
|
|
17149
|
-
10: 'n',
|
|
17150
|
-
12: 'f',
|
|
17151
|
-
13: 'r'
|
|
17152
|
-
}[n];
|
|
17153
|
-
if (x) { return '\\' + x; }
|
|
17154
|
-
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
17155
|
-
}
|
|
17156
|
-
|
|
17157
|
-
function markBoxed(str) {
|
|
17158
|
-
return 'Object(' + str + ')';
|
|
17159
|
-
}
|
|
17160
|
-
|
|
17161
|
-
function weakCollectionOf(type) {
|
|
17162
|
-
return type + ' { ? }';
|
|
17163
|
-
}
|
|
17164
|
-
|
|
17165
|
-
function collectionOf(type, size, entries, indent) {
|
|
17166
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
17167
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
17168
|
-
}
|
|
17169
|
-
|
|
17170
|
-
function singleLineValues(xs) {
|
|
17171
|
-
for (var i = 0; i < xs.length; i++) {
|
|
17172
|
-
if (indexOf(xs[i], '\n') >= 0) {
|
|
17173
|
-
return false;
|
|
17174
|
-
}
|
|
17175
|
-
}
|
|
17176
|
-
return true;
|
|
17177
|
-
}
|
|
17178
|
-
|
|
17179
|
-
function getIndent(opts, depth) {
|
|
17180
|
-
var baseIndent;
|
|
17181
|
-
if (opts.indent === '\t') {
|
|
17182
|
-
baseIndent = '\t';
|
|
17183
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
17184
|
-
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
17185
|
-
} else {
|
|
17186
|
-
return null;
|
|
17187
|
-
}
|
|
17188
|
-
return {
|
|
17189
|
-
base: baseIndent,
|
|
17190
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
17191
|
-
};
|
|
17192
|
-
}
|
|
17193
|
-
|
|
17194
|
-
function indentedJoin(xs, indent) {
|
|
17195
|
-
if (xs.length === 0) { return ''; }
|
|
17196
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
17197
|
-
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
17198
|
-
}
|
|
17199
|
-
|
|
17200
|
-
function arrObjKeys(obj, inspect) {
|
|
17201
|
-
var isArr = isArray$3(obj);
|
|
17202
|
-
var xs = [];
|
|
17203
|
-
if (isArr) {
|
|
17204
|
-
xs.length = obj.length;
|
|
17205
|
-
for (var i = 0; i < obj.length; i++) {
|
|
17206
|
-
xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
|
|
17207
|
-
}
|
|
17208
|
-
}
|
|
17209
|
-
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
17210
|
-
var symMap;
|
|
17211
|
-
if (hasShammedSymbols) {
|
|
17212
|
-
symMap = {};
|
|
17213
|
-
for (var k = 0; k < syms.length; k++) {
|
|
17214
|
-
symMap['$' + syms[k]] = syms[k];
|
|
17215
|
-
}
|
|
17216
|
-
}
|
|
17217
|
-
|
|
17218
|
-
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
17219
|
-
if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
17220
|
-
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
17221
|
-
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
17222
|
-
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
17223
|
-
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
17224
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
17225
|
-
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
17226
|
-
} else {
|
|
17227
|
-
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
17228
|
-
}
|
|
17229
|
-
}
|
|
17230
|
-
if (typeof gOPS === 'function') {
|
|
17231
|
-
for (var j = 0; j < syms.length; j++) {
|
|
17232
|
-
if (isEnumerable.call(obj, syms[j])) {
|
|
17233
|
-
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
17234
|
-
}
|
|
17235
|
-
}
|
|
17236
|
-
}
|
|
17237
|
-
return xs;
|
|
17238
|
-
}
|
|
17239
|
-
|
|
17240
|
-
var $TypeError = getIntrinsic('%TypeError%');
|
|
17241
|
-
var $WeakMap = getIntrinsic('%WeakMap%', true);
|
|
17242
|
-
var $Map = getIntrinsic('%Map%', true);
|
|
17243
|
-
|
|
17244
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
17245
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
17246
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
17247
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
17248
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
17249
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
17250
|
-
|
|
17251
|
-
/*
|
|
17252
|
-
* This function traverses the list returning the node corresponding to the
|
|
17253
|
-
* given key.
|
|
17254
|
-
*
|
|
17255
|
-
* That node is also moved to the head of the list, so that if it's accessed
|
|
17256
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
17257
|
-
* used nodes can be accessed relatively quickly.
|
|
17258
|
-
*/
|
|
17259
|
-
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
17260
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
17261
|
-
if (curr.key === key) {
|
|
17262
|
-
prev.next = curr.next;
|
|
17263
|
-
curr.next = list.next;
|
|
17264
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
17265
|
-
return curr;
|
|
17266
|
-
}
|
|
17267
|
-
}
|
|
17268
|
-
};
|
|
17269
|
-
|
|
17270
|
-
var listGet = function (objects, key) {
|
|
17271
|
-
var node = listGetNode(objects, key);
|
|
17272
|
-
return node && node.value;
|
|
17273
|
-
};
|
|
17274
|
-
var listSet = function (objects, key, value) {
|
|
17275
|
-
var node = listGetNode(objects, key);
|
|
17276
|
-
if (node) {
|
|
17277
|
-
node.value = value;
|
|
17278
|
-
} else {
|
|
17279
|
-
// Prepend the new node to the beginning of the list
|
|
17280
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
17281
|
-
key: key,
|
|
17282
|
-
next: objects.next,
|
|
17283
|
-
value: value
|
|
17284
|
-
};
|
|
17285
|
-
}
|
|
17286
|
-
};
|
|
17287
|
-
var listHas = function (objects, key) {
|
|
17288
|
-
return !!listGetNode(objects, key);
|
|
17289
|
-
};
|
|
17290
|
-
|
|
17291
|
-
var sideChannel = function getSideChannel() {
|
|
17292
|
-
var $wm;
|
|
17293
|
-
var $m;
|
|
17294
|
-
var $o;
|
|
17295
|
-
var channel = {
|
|
17296
|
-
assert: function (key) {
|
|
17297
|
-
if (!channel.has(key)) {
|
|
17298
|
-
throw new $TypeError('Side channel does not contain ' + objectInspect(key));
|
|
17299
|
-
}
|
|
17300
|
-
},
|
|
17301
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
17302
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
17303
|
-
if ($wm) {
|
|
17304
|
-
return $weakMapGet($wm, key);
|
|
17305
|
-
}
|
|
17306
|
-
} else if ($Map) {
|
|
17307
|
-
if ($m) {
|
|
17308
|
-
return $mapGet($m, key);
|
|
17309
|
-
}
|
|
17310
|
-
} else {
|
|
17311
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
17312
|
-
return listGet($o, key);
|
|
17313
|
-
}
|
|
17314
|
-
}
|
|
17315
|
-
},
|
|
17316
|
-
has: function (key) {
|
|
17317
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
17318
|
-
if ($wm) {
|
|
17319
|
-
return $weakMapHas($wm, key);
|
|
17320
|
-
}
|
|
17321
|
-
} else if ($Map) {
|
|
17322
|
-
if ($m) {
|
|
17323
|
-
return $mapHas($m, key);
|
|
17324
|
-
}
|
|
17325
|
-
} else {
|
|
17326
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
17327
|
-
return listHas($o, key);
|
|
17328
|
-
}
|
|
17329
|
-
}
|
|
17330
|
-
return false;
|
|
17331
|
-
},
|
|
17332
|
-
set: function (key, value) {
|
|
17333
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
17334
|
-
if (!$wm) {
|
|
17335
|
-
$wm = new $WeakMap();
|
|
17336
|
-
}
|
|
17337
|
-
$weakMapSet($wm, key, value);
|
|
17338
|
-
} else if ($Map) {
|
|
17339
|
-
if (!$m) {
|
|
17340
|
-
$m = new $Map();
|
|
17341
|
-
}
|
|
17342
|
-
$mapSet($m, key, value);
|
|
17343
|
-
} else {
|
|
17344
|
-
if (!$o) {
|
|
17345
|
-
/*
|
|
17346
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
17347
|
-
* to special-case handling of the first node: we can always refer to
|
|
17348
|
-
* it as (previous node).next, instead of something like (list).head
|
|
17349
|
-
*/
|
|
17350
|
-
$o = { key: {}, next: null };
|
|
17351
|
-
}
|
|
17352
|
-
listSet($o, key, value);
|
|
17353
|
-
}
|
|
17354
|
-
}
|
|
17355
|
-
};
|
|
17356
|
-
return channel;
|
|
17357
|
-
};
|
|
17358
|
-
|
|
17359
|
-
var replace = String.prototype.replace;
|
|
17360
|
-
var percentTwenties = /%20/g;
|
|
17361
|
-
|
|
17362
|
-
var Format = {
|
|
17363
|
-
RFC1738: 'RFC1738',
|
|
17364
|
-
RFC3986: 'RFC3986'
|
|
17365
|
-
};
|
|
17366
|
-
|
|
17367
|
-
var formats = {
|
|
17368
|
-
'default': Format.RFC3986,
|
|
17369
|
-
formatters: {
|
|
17370
|
-
RFC1738: function (value) {
|
|
17371
|
-
return replace.call(value, percentTwenties, '+');
|
|
17372
|
-
},
|
|
17373
|
-
RFC3986: function (value) {
|
|
17374
|
-
return String(value);
|
|
17375
|
-
}
|
|
17376
|
-
},
|
|
17377
|
-
RFC1738: Format.RFC1738,
|
|
17378
|
-
RFC3986: Format.RFC3986
|
|
17379
|
-
};
|
|
17380
|
-
|
|
17381
|
-
var has$2 = Object.prototype.hasOwnProperty;
|
|
17382
|
-
var isArray$2 = Array.isArray;
|
|
17383
|
-
|
|
17384
|
-
var hexTable = (function () {
|
|
17385
|
-
var array = [];
|
|
17386
|
-
for (var i = 0; i < 256; ++i) {
|
|
17387
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
17388
|
-
}
|
|
17389
|
-
|
|
17390
|
-
return array;
|
|
17391
|
-
}());
|
|
17392
|
-
|
|
17393
|
-
var compactQueue = function compactQueue(queue) {
|
|
17394
|
-
while (queue.length > 1) {
|
|
17395
|
-
var item = queue.pop();
|
|
17396
|
-
var obj = item.obj[item.prop];
|
|
17397
|
-
|
|
17398
|
-
if (isArray$2(obj)) {
|
|
17399
|
-
var compacted = [];
|
|
17400
|
-
|
|
17401
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
17402
|
-
if (typeof obj[j] !== 'undefined') {
|
|
17403
|
-
compacted.push(obj[j]);
|
|
17404
|
-
}
|
|
17405
|
-
}
|
|
17406
|
-
|
|
17407
|
-
item.obj[item.prop] = compacted;
|
|
17408
|
-
}
|
|
17409
|
-
}
|
|
17410
|
-
};
|
|
17411
|
-
|
|
17412
|
-
var arrayToObject = function arrayToObject(source, options) {
|
|
17413
|
-
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
17414
|
-
for (var i = 0; i < source.length; ++i) {
|
|
17415
|
-
if (typeof source[i] !== 'undefined') {
|
|
17416
|
-
obj[i] = source[i];
|
|
17417
|
-
}
|
|
17418
|
-
}
|
|
17419
|
-
|
|
17420
|
-
return obj;
|
|
17421
|
-
};
|
|
17422
|
-
|
|
17423
|
-
var merge = function merge(target, source, options) {
|
|
17424
|
-
/* eslint no-param-reassign: 0 */
|
|
17425
|
-
if (!source) {
|
|
17426
|
-
return target;
|
|
17427
|
-
}
|
|
17428
|
-
|
|
17429
|
-
if (typeof source !== 'object') {
|
|
17430
|
-
if (isArray$2(target)) {
|
|
17431
|
-
target.push(source);
|
|
17432
|
-
} else if (target && typeof target === 'object') {
|
|
17433
|
-
if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
|
|
17434
|
-
target[source] = true;
|
|
17435
|
-
}
|
|
17436
|
-
} else {
|
|
17437
|
-
return [target, source];
|
|
17438
|
-
}
|
|
17439
|
-
|
|
17440
|
-
return target;
|
|
17441
|
-
}
|
|
17442
|
-
|
|
17443
|
-
if (!target || typeof target !== 'object') {
|
|
17444
|
-
return [target].concat(source);
|
|
17445
|
-
}
|
|
17446
|
-
|
|
17447
|
-
var mergeTarget = target;
|
|
17448
|
-
if (isArray$2(target) && !isArray$2(source)) {
|
|
17449
|
-
mergeTarget = arrayToObject(target, options);
|
|
17450
|
-
}
|
|
17451
|
-
|
|
17452
|
-
if (isArray$2(target) && isArray$2(source)) {
|
|
17453
|
-
source.forEach(function (item, i) {
|
|
17454
|
-
if (has$2.call(target, i)) {
|
|
17455
|
-
var targetItem = target[i];
|
|
17456
|
-
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
17457
|
-
target[i] = merge(targetItem, item, options);
|
|
17458
|
-
} else {
|
|
17459
|
-
target.push(item);
|
|
17460
|
-
}
|
|
17461
|
-
} else {
|
|
17462
|
-
target[i] = item;
|
|
17463
|
-
}
|
|
17464
|
-
});
|
|
17465
|
-
return target;
|
|
17466
|
-
}
|
|
17467
|
-
|
|
17468
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
17469
|
-
var value = source[key];
|
|
17470
|
-
|
|
17471
|
-
if (has$2.call(acc, key)) {
|
|
17472
|
-
acc[key] = merge(acc[key], value, options);
|
|
17473
|
-
} else {
|
|
17474
|
-
acc[key] = value;
|
|
17475
|
-
}
|
|
17476
|
-
return acc;
|
|
17477
|
-
}, mergeTarget);
|
|
17478
|
-
};
|
|
17479
|
-
|
|
17480
|
-
var assign = function assignSingleSource(target, source) {
|
|
17481
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
17482
|
-
acc[key] = source[key];
|
|
17483
|
-
return acc;
|
|
17484
|
-
}, target);
|
|
17485
|
-
};
|
|
17486
|
-
|
|
17487
|
-
var decode = function (str, decoder, charset) {
|
|
17488
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
17489
|
-
if (charset === 'iso-8859-1') {
|
|
17490
|
-
// unescape never throws, no try...catch needed:
|
|
17491
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
17492
|
-
}
|
|
17493
|
-
// utf-8
|
|
17494
|
-
try {
|
|
17495
|
-
return decodeURIComponent(strWithoutPlus);
|
|
17496
|
-
} catch (e) {
|
|
17497
|
-
return strWithoutPlus;
|
|
17498
|
-
}
|
|
17499
|
-
};
|
|
17500
|
-
|
|
17501
|
-
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
17502
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
17503
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
17504
|
-
if (str.length === 0) {
|
|
17505
|
-
return str;
|
|
17506
|
-
}
|
|
17507
|
-
|
|
17508
|
-
var string = str;
|
|
17509
|
-
if (typeof str === 'symbol') {
|
|
17510
|
-
string = Symbol.prototype.toString.call(str);
|
|
17511
|
-
} else if (typeof str !== 'string') {
|
|
17512
|
-
string = String(str);
|
|
17513
|
-
}
|
|
17514
|
-
|
|
17515
|
-
if (charset === 'iso-8859-1') {
|
|
17516
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
17517
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
17518
|
-
});
|
|
17519
|
-
}
|
|
17520
|
-
|
|
17521
|
-
var out = '';
|
|
17522
|
-
for (var i = 0; i < string.length; ++i) {
|
|
17523
|
-
var c = string.charCodeAt(i);
|
|
17524
|
-
|
|
17525
|
-
if (
|
|
17526
|
-
c === 0x2D // -
|
|
17527
|
-
|| c === 0x2E // .
|
|
17528
|
-
|| c === 0x5F // _
|
|
17529
|
-
|| c === 0x7E // ~
|
|
17530
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
17531
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
17532
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
17533
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
17534
|
-
) {
|
|
17535
|
-
out += string.charAt(i);
|
|
17536
|
-
continue;
|
|
17537
|
-
}
|
|
17538
|
-
|
|
17539
|
-
if (c < 0x80) {
|
|
17540
|
-
out = out + hexTable[c];
|
|
17541
|
-
continue;
|
|
17542
|
-
}
|
|
17543
|
-
|
|
17544
|
-
if (c < 0x800) {
|
|
17545
|
-
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
17546
|
-
continue;
|
|
17547
|
-
}
|
|
17548
|
-
|
|
17549
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
17550
|
-
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
17551
|
-
continue;
|
|
17552
|
-
}
|
|
17553
|
-
|
|
17554
|
-
i += 1;
|
|
17555
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
17556
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
17557
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
17558
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
17559
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
17560
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
17561
|
-
}
|
|
17562
|
-
|
|
17563
|
-
return out;
|
|
17564
|
-
};
|
|
17565
|
-
|
|
17566
|
-
var compact = function compact(value) {
|
|
17567
|
-
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
17568
|
-
var refs = [];
|
|
17569
|
-
|
|
17570
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
17571
|
-
var item = queue[i];
|
|
17572
|
-
var obj = item.obj[item.prop];
|
|
17573
|
-
|
|
17574
|
-
var keys = Object.keys(obj);
|
|
17575
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
17576
|
-
var key = keys[j];
|
|
17577
|
-
var val = obj[key];
|
|
17578
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
17579
|
-
queue.push({ obj: obj, prop: key });
|
|
17580
|
-
refs.push(val);
|
|
17581
|
-
}
|
|
17582
|
-
}
|
|
17583
|
-
}
|
|
17584
|
-
|
|
17585
|
-
compactQueue(queue);
|
|
17586
|
-
|
|
17587
|
-
return value;
|
|
17588
|
-
};
|
|
17589
|
-
|
|
17590
|
-
var isRegExp = function isRegExp(obj) {
|
|
17591
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
17592
|
-
};
|
|
17593
|
-
|
|
17594
|
-
var isBuffer = function isBuffer(obj) {
|
|
17595
|
-
if (!obj || typeof obj !== 'object') {
|
|
17596
|
-
return false;
|
|
17597
|
-
}
|
|
17598
|
-
|
|
17599
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
17600
|
-
};
|
|
17601
|
-
|
|
17602
|
-
var combine = function combine(a, b) {
|
|
17603
|
-
return [].concat(a, b);
|
|
17604
|
-
};
|
|
17605
|
-
|
|
17606
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
17607
|
-
if (isArray$2(val)) {
|
|
17608
|
-
var mapped = [];
|
|
17609
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
17610
|
-
mapped.push(fn(val[i]));
|
|
17611
|
-
}
|
|
17612
|
-
return mapped;
|
|
17613
|
-
}
|
|
17614
|
-
return fn(val);
|
|
17615
|
-
};
|
|
17616
|
-
|
|
17617
|
-
var utils = {
|
|
17618
|
-
arrayToObject: arrayToObject,
|
|
17619
|
-
assign: assign,
|
|
17620
|
-
combine: combine,
|
|
17621
|
-
compact: compact,
|
|
17622
|
-
decode: decode,
|
|
17623
|
-
encode: encode,
|
|
17624
|
-
isBuffer: isBuffer,
|
|
17625
|
-
isRegExp: isRegExp,
|
|
17626
|
-
maybeMap: maybeMap,
|
|
17627
|
-
merge: merge
|
|
17628
|
-
};
|
|
17629
|
-
|
|
17630
|
-
var has$1 = Object.prototype.hasOwnProperty;
|
|
17631
|
-
|
|
17632
|
-
var arrayPrefixGenerators = {
|
|
17633
|
-
brackets: function brackets(prefix) {
|
|
17634
|
-
return prefix + '[]';
|
|
17635
|
-
},
|
|
17636
|
-
comma: 'comma',
|
|
17637
|
-
indices: function indices(prefix, key) {
|
|
17638
|
-
return prefix + '[' + key + ']';
|
|
17639
|
-
},
|
|
17640
|
-
repeat: function repeat(prefix) {
|
|
17641
|
-
return prefix;
|
|
17642
|
-
}
|
|
17643
|
-
};
|
|
17644
|
-
|
|
17645
|
-
var isArray$1 = Array.isArray;
|
|
17646
|
-
var push = Array.prototype.push;
|
|
17647
|
-
var pushToArray = function (arr, valueOrArray) {
|
|
17648
|
-
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
17649
|
-
};
|
|
17650
|
-
|
|
17651
|
-
var toISO = Date.prototype.toISOString;
|
|
17652
|
-
|
|
17653
|
-
var defaultFormat = formats['default'];
|
|
17654
|
-
var defaults$1 = {
|
|
17655
|
-
addQueryPrefix: false,
|
|
17656
|
-
allowDots: false,
|
|
17657
|
-
charset: 'utf-8',
|
|
17658
|
-
charsetSentinel: false,
|
|
17659
|
-
delimiter: '&',
|
|
17660
|
-
encode: true,
|
|
17661
|
-
encoder: utils.encode,
|
|
17662
|
-
encodeValuesOnly: false,
|
|
17663
|
-
format: defaultFormat,
|
|
17664
|
-
formatter: formats.formatters[defaultFormat],
|
|
17665
|
-
// deprecated
|
|
17666
|
-
indices: false,
|
|
17667
|
-
serializeDate: function serializeDate(date) {
|
|
17668
|
-
return toISO.call(date);
|
|
17669
|
-
},
|
|
17670
|
-
skipNulls: false,
|
|
17671
|
-
strictNullHandling: false
|
|
17672
|
-
};
|
|
17673
|
-
|
|
17674
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
17675
|
-
return typeof v === 'string'
|
|
17676
|
-
|| typeof v === 'number'
|
|
17677
|
-
|| typeof v === 'boolean'
|
|
17678
|
-
|| typeof v === 'symbol'
|
|
17679
|
-
|| typeof v === 'bigint';
|
|
17680
|
-
};
|
|
17681
|
-
|
|
17682
|
-
var sentinel = {};
|
|
17683
|
-
|
|
17684
|
-
var stringify = function stringify(
|
|
17685
|
-
object,
|
|
17686
|
-
prefix,
|
|
17687
|
-
generateArrayPrefix,
|
|
17688
|
-
commaRoundTrip,
|
|
17689
|
-
strictNullHandling,
|
|
17690
|
-
skipNulls,
|
|
17691
|
-
encoder,
|
|
17692
|
-
filter,
|
|
17693
|
-
sort,
|
|
17694
|
-
allowDots,
|
|
17695
|
-
serializeDate,
|
|
17696
|
-
format,
|
|
17697
|
-
formatter,
|
|
17698
|
-
encodeValuesOnly,
|
|
17699
|
-
charset,
|
|
17700
|
-
sideChannel$1
|
|
17701
|
-
) {
|
|
17702
|
-
var obj = object;
|
|
17703
|
-
|
|
17704
|
-
var tmpSc = sideChannel$1;
|
|
17705
|
-
var step = 0;
|
|
17706
|
-
var findFlag = false;
|
|
17707
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
17708
|
-
// Where object last appeared in the ref tree
|
|
17709
|
-
var pos = tmpSc.get(object);
|
|
17710
|
-
step += 1;
|
|
17711
|
-
if (typeof pos !== 'undefined') {
|
|
17712
|
-
if (pos === step) {
|
|
17713
|
-
throw new RangeError('Cyclic object value');
|
|
17714
|
-
} else {
|
|
17715
|
-
findFlag = true; // Break while
|
|
17716
|
-
}
|
|
17717
|
-
}
|
|
17718
|
-
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
17719
|
-
step = 0;
|
|
17720
|
-
}
|
|
17721
|
-
}
|
|
17722
|
-
|
|
17723
|
-
if (typeof filter === 'function') {
|
|
17724
|
-
obj = filter(prefix, obj);
|
|
17725
|
-
} else if (obj instanceof Date) {
|
|
17726
|
-
obj = serializeDate(obj);
|
|
17727
|
-
} else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
17728
|
-
obj = utils.maybeMap(obj, function (value) {
|
|
17729
|
-
if (value instanceof Date) {
|
|
17730
|
-
return serializeDate(value);
|
|
17731
|
-
}
|
|
17732
|
-
return value;
|
|
17733
|
-
});
|
|
17734
|
-
}
|
|
17735
|
-
|
|
17736
|
-
if (obj === null) {
|
|
17737
|
-
if (strictNullHandling) {
|
|
17738
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
|
|
17739
|
-
}
|
|
17740
|
-
|
|
17741
|
-
obj = '';
|
|
17742
|
-
}
|
|
17743
|
-
|
|
17744
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
17745
|
-
if (encoder) {
|
|
17746
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
|
|
17747
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
|
|
17748
|
-
}
|
|
17749
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
17750
|
-
}
|
|
17751
|
-
|
|
17752
|
-
var values = [];
|
|
17753
|
-
|
|
17754
|
-
if (typeof obj === 'undefined') {
|
|
17755
|
-
return values;
|
|
17756
|
-
}
|
|
17757
|
-
|
|
17758
|
-
var objKeys;
|
|
17759
|
-
if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
17760
|
-
// we need to join elements in
|
|
17761
|
-
if (encodeValuesOnly && encoder) {
|
|
17762
|
-
obj = utils.maybeMap(obj, encoder);
|
|
17763
|
-
}
|
|
17764
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
17765
|
-
} else if (isArray$1(filter)) {
|
|
17766
|
-
objKeys = filter;
|
|
17767
|
-
} else {
|
|
17768
|
-
var keys = Object.keys(obj);
|
|
17769
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
17770
|
-
}
|
|
17771
|
-
|
|
17772
|
-
var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
17773
|
-
|
|
17774
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
17775
|
-
var key = objKeys[j];
|
|
17776
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
17777
|
-
|
|
17778
|
-
if (skipNulls && value === null) {
|
|
17779
|
-
continue;
|
|
17780
|
-
}
|
|
17781
|
-
|
|
17782
|
-
var keyPrefix = isArray$1(obj)
|
|
17783
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
17784
|
-
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
17785
|
-
|
|
17786
|
-
sideChannel$1.set(object, step);
|
|
17787
|
-
var valueSideChannel = sideChannel();
|
|
17788
|
-
valueSideChannel.set(sentinel, sideChannel$1);
|
|
17789
|
-
pushToArray(values, stringify(
|
|
17790
|
-
value,
|
|
17791
|
-
keyPrefix,
|
|
17792
|
-
generateArrayPrefix,
|
|
17793
|
-
commaRoundTrip,
|
|
17794
|
-
strictNullHandling,
|
|
17795
|
-
skipNulls,
|
|
17796
|
-
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
|
|
17797
|
-
filter,
|
|
17798
|
-
sort,
|
|
17799
|
-
allowDots,
|
|
17800
|
-
serializeDate,
|
|
17801
|
-
format,
|
|
17802
|
-
formatter,
|
|
17803
|
-
encodeValuesOnly,
|
|
17804
|
-
charset,
|
|
17805
|
-
valueSideChannel
|
|
17806
|
-
));
|
|
17807
|
-
}
|
|
17808
|
-
|
|
17809
|
-
return values;
|
|
17810
|
-
};
|
|
17811
|
-
|
|
17812
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
17813
|
-
if (!opts) {
|
|
17814
|
-
return defaults$1;
|
|
17815
|
-
}
|
|
17816
|
-
|
|
17817
|
-
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
17818
|
-
throw new TypeError('Encoder has to be a function.');
|
|
17819
|
-
}
|
|
17820
|
-
|
|
17821
|
-
var charset = opts.charset || defaults$1.charset;
|
|
17822
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
17823
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
17824
|
-
}
|
|
17825
|
-
|
|
17826
|
-
var format = formats['default'];
|
|
17827
|
-
if (typeof opts.format !== 'undefined') {
|
|
17828
|
-
if (!has$1.call(formats.formatters, opts.format)) {
|
|
17829
|
-
throw new TypeError('Unknown format option provided.');
|
|
17830
|
-
}
|
|
17831
|
-
format = opts.format;
|
|
17832
|
-
}
|
|
17833
|
-
var formatter = formats.formatters[format];
|
|
17834
|
-
|
|
17835
|
-
var filter = defaults$1.filter;
|
|
17836
|
-
if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
|
|
17837
|
-
filter = opts.filter;
|
|
17838
|
-
}
|
|
17839
|
-
|
|
17840
|
-
return {
|
|
17841
|
-
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
|
|
17842
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
|
|
17843
|
-
charset: charset,
|
|
17844
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
|
|
17845
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
|
|
17846
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
|
|
17847
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
|
|
17848
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
|
|
17849
|
-
filter: filter,
|
|
17850
|
-
format: format,
|
|
17851
|
-
formatter: formatter,
|
|
17852
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
|
|
17853
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
|
|
17854
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
17855
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
|
|
17856
|
-
};
|
|
17857
|
-
};
|
|
17858
|
-
|
|
17859
|
-
var stringify_1 = function (object, opts) {
|
|
17860
|
-
var obj = object;
|
|
17861
|
-
var options = normalizeStringifyOptions(opts);
|
|
17862
|
-
|
|
17863
|
-
var objKeys;
|
|
17864
|
-
var filter;
|
|
17865
|
-
|
|
17866
|
-
if (typeof options.filter === 'function') {
|
|
17867
|
-
filter = options.filter;
|
|
17868
|
-
obj = filter('', obj);
|
|
17869
|
-
} else if (isArray$1(options.filter)) {
|
|
17870
|
-
filter = options.filter;
|
|
17871
|
-
objKeys = filter;
|
|
17872
|
-
}
|
|
17873
|
-
|
|
17874
|
-
var keys = [];
|
|
17875
|
-
|
|
17876
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
17877
|
-
return '';
|
|
17878
|
-
}
|
|
17879
|
-
|
|
17880
|
-
var arrayFormat;
|
|
17881
|
-
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
17882
|
-
arrayFormat = opts.arrayFormat;
|
|
17883
|
-
} else if (opts && 'indices' in opts) {
|
|
17884
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
17885
|
-
} else {
|
|
17886
|
-
arrayFormat = 'indices';
|
|
17887
|
-
}
|
|
17888
|
-
|
|
17889
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
17890
|
-
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
17891
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
17892
|
-
}
|
|
17893
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
17894
|
-
|
|
17895
|
-
if (!objKeys) {
|
|
17896
|
-
objKeys = Object.keys(obj);
|
|
17897
|
-
}
|
|
17898
|
-
|
|
17899
|
-
if (options.sort) {
|
|
17900
|
-
objKeys.sort(options.sort);
|
|
17901
|
-
}
|
|
17902
|
-
|
|
17903
|
-
var sideChannel$1 = sideChannel();
|
|
17904
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
17905
|
-
var key = objKeys[i];
|
|
17906
|
-
|
|
17907
|
-
if (options.skipNulls && obj[key] === null) {
|
|
17908
|
-
continue;
|
|
17909
|
-
}
|
|
17910
|
-
pushToArray(keys, stringify(
|
|
17911
|
-
obj[key],
|
|
17912
|
-
key,
|
|
17913
|
-
generateArrayPrefix,
|
|
17914
|
-
commaRoundTrip,
|
|
17915
|
-
options.strictNullHandling,
|
|
17916
|
-
options.skipNulls,
|
|
17917
|
-
options.encode ? options.encoder : null,
|
|
17918
|
-
options.filter,
|
|
17919
|
-
options.sort,
|
|
17920
|
-
options.allowDots,
|
|
17921
|
-
options.serializeDate,
|
|
17922
|
-
options.format,
|
|
17923
|
-
options.formatter,
|
|
17924
|
-
options.encodeValuesOnly,
|
|
17925
|
-
options.charset,
|
|
17926
|
-
sideChannel$1
|
|
17927
|
-
));
|
|
17928
|
-
}
|
|
17929
|
-
|
|
17930
|
-
var joined = keys.join(options.delimiter);
|
|
17931
|
-
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
17932
|
-
|
|
17933
|
-
if (options.charsetSentinel) {
|
|
17934
|
-
if (options.charset === 'iso-8859-1') {
|
|
17935
|
-
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
17936
|
-
prefix += 'utf8=%26%2310003%3B&';
|
|
17937
|
-
} else {
|
|
17938
|
-
// encodeURIComponent('✓')
|
|
17939
|
-
prefix += 'utf8=%E2%9C%93&';
|
|
17940
|
-
}
|
|
17941
|
-
}
|
|
17942
|
-
|
|
17943
|
-
return joined.length > 0 ? prefix + joined : '';
|
|
17944
|
-
};
|
|
17945
|
-
|
|
17946
|
-
var has = Object.prototype.hasOwnProperty;
|
|
17947
|
-
var isArray = Array.isArray;
|
|
17948
|
-
|
|
17949
|
-
var defaults = {
|
|
17950
|
-
allowDots: false,
|
|
17951
|
-
allowPrototypes: false,
|
|
17952
|
-
allowSparse: false,
|
|
17953
|
-
arrayLimit: 20,
|
|
17954
|
-
charset: 'utf-8',
|
|
17955
|
-
charsetSentinel: false,
|
|
17956
|
-
comma: false,
|
|
17957
|
-
decoder: utils.decode,
|
|
17958
|
-
delimiter: '&',
|
|
17959
|
-
depth: 5,
|
|
17960
|
-
ignoreQueryPrefix: false,
|
|
17961
|
-
interpretNumericEntities: false,
|
|
17962
|
-
parameterLimit: 1000,
|
|
17963
|
-
parseArrays: true,
|
|
17964
|
-
plainObjects: false,
|
|
17965
|
-
strictNullHandling: false
|
|
17966
|
-
};
|
|
17967
|
-
|
|
17968
|
-
var interpretNumericEntities = function (str) {
|
|
17969
|
-
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
17970
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
17971
|
-
});
|
|
17972
|
-
};
|
|
17973
|
-
|
|
17974
|
-
var parseArrayValue = function (val, options) {
|
|
17975
|
-
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
17976
|
-
return val.split(',');
|
|
17977
|
-
}
|
|
17978
|
-
|
|
17979
|
-
return val;
|
|
17980
|
-
};
|
|
17981
|
-
|
|
17982
|
-
// This is what browsers will submit when the ✓ character occurs in an
|
|
17983
|
-
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
17984
|
-
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
17985
|
-
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
17986
|
-
// the ✓ character, such as us-ascii.
|
|
17987
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
17988
|
-
|
|
17989
|
-
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
17990
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
17991
|
-
|
|
17992
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
17993
|
-
var obj = { __proto__: null };
|
|
17994
|
-
|
|
17995
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
17996
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
17997
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
17998
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
17999
|
-
var i;
|
|
18000
|
-
|
|
18001
|
-
var charset = options.charset;
|
|
18002
|
-
if (options.charsetSentinel) {
|
|
18003
|
-
for (i = 0; i < parts.length; ++i) {
|
|
18004
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
18005
|
-
if (parts[i] === charsetSentinel) {
|
|
18006
|
-
charset = 'utf-8';
|
|
18007
|
-
} else if (parts[i] === isoSentinel) {
|
|
18008
|
-
charset = 'iso-8859-1';
|
|
18009
|
-
}
|
|
18010
|
-
skipIndex = i;
|
|
18011
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
18012
|
-
}
|
|
18013
|
-
}
|
|
18014
|
-
}
|
|
18015
|
-
|
|
18016
|
-
for (i = 0; i < parts.length; ++i) {
|
|
18017
|
-
if (i === skipIndex) {
|
|
18018
|
-
continue;
|
|
18019
|
-
}
|
|
18020
|
-
var part = parts[i];
|
|
18021
|
-
|
|
18022
|
-
var bracketEqualsPos = part.indexOf(']=');
|
|
18023
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
18024
|
-
|
|
18025
|
-
var key, val;
|
|
18026
|
-
if (pos === -1) {
|
|
18027
|
-
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
18028
|
-
val = options.strictNullHandling ? null : '';
|
|
18029
|
-
} else {
|
|
18030
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
18031
|
-
val = utils.maybeMap(
|
|
18032
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
18033
|
-
function (encodedVal) {
|
|
18034
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
18035
|
-
}
|
|
18036
|
-
);
|
|
18037
|
-
}
|
|
18038
|
-
|
|
18039
|
-
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
18040
|
-
val = interpretNumericEntities(val);
|
|
18041
|
-
}
|
|
18042
|
-
|
|
18043
|
-
if (part.indexOf('[]=') > -1) {
|
|
18044
|
-
val = isArray(val) ? [val] : val;
|
|
18045
|
-
}
|
|
18046
|
-
|
|
18047
|
-
if (has.call(obj, key)) {
|
|
18048
|
-
obj[key] = utils.combine(obj[key], val);
|
|
18049
|
-
} else {
|
|
18050
|
-
obj[key] = val;
|
|
18051
|
-
}
|
|
18052
|
-
}
|
|
18053
|
-
|
|
18054
|
-
return obj;
|
|
18055
|
-
};
|
|
18056
|
-
|
|
18057
|
-
var parseObject = function (chain, val, options, valuesParsed) {
|
|
18058
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
18059
|
-
|
|
18060
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
18061
|
-
var obj;
|
|
18062
|
-
var root = chain[i];
|
|
18063
|
-
|
|
18064
|
-
if (root === '[]' && options.parseArrays) {
|
|
18065
|
-
obj = [].concat(leaf);
|
|
18066
|
-
} else {
|
|
18067
|
-
obj = options.plainObjects ? Object.create(null) : {};
|
|
18068
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
18069
|
-
var index = parseInt(cleanRoot, 10);
|
|
18070
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
18071
|
-
obj = { 0: leaf };
|
|
18072
|
-
} else if (
|
|
18073
|
-
!isNaN(index)
|
|
18074
|
-
&& root !== cleanRoot
|
|
18075
|
-
&& String(index) === cleanRoot
|
|
18076
|
-
&& index >= 0
|
|
18077
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
18078
|
-
) {
|
|
18079
|
-
obj = [];
|
|
18080
|
-
obj[index] = leaf;
|
|
18081
|
-
} else if (cleanRoot !== '__proto__') {
|
|
18082
|
-
obj[cleanRoot] = leaf;
|
|
18083
|
-
}
|
|
18084
|
-
}
|
|
18085
|
-
|
|
18086
|
-
leaf = obj;
|
|
18087
|
-
}
|
|
18088
|
-
|
|
18089
|
-
return leaf;
|
|
18090
|
-
};
|
|
18091
|
-
|
|
18092
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
18093
|
-
if (!givenKey) {
|
|
18094
|
-
return;
|
|
18095
|
-
}
|
|
18096
|
-
|
|
18097
|
-
// Transform dot notation to bracket notation
|
|
18098
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
18099
|
-
|
|
18100
|
-
// The regex chunks
|
|
18101
|
-
|
|
18102
|
-
var brackets = /(\[[^[\]]*])/;
|
|
18103
|
-
var child = /(\[[^[\]]*])/g;
|
|
18104
|
-
|
|
18105
|
-
// Get the parent
|
|
18106
|
-
|
|
18107
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
18108
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
18109
|
-
|
|
18110
|
-
// Stash the parent if it exists
|
|
18111
|
-
|
|
18112
|
-
var keys = [];
|
|
18113
|
-
if (parent) {
|
|
18114
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
18115
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
18116
|
-
if (!options.allowPrototypes) {
|
|
18117
|
-
return;
|
|
18118
|
-
}
|
|
18119
|
-
}
|
|
18120
|
-
|
|
18121
|
-
keys.push(parent);
|
|
18122
|
-
}
|
|
18123
|
-
|
|
18124
|
-
// Loop through children appending to the array until we hit depth
|
|
18125
|
-
|
|
18126
|
-
var i = 0;
|
|
18127
|
-
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
18128
|
-
i += 1;
|
|
18129
|
-
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
18130
|
-
if (!options.allowPrototypes) {
|
|
18131
|
-
return;
|
|
18132
|
-
}
|
|
18133
|
-
}
|
|
18134
|
-
keys.push(segment[1]);
|
|
18135
|
-
}
|
|
18136
|
-
|
|
18137
|
-
// If there's a remainder, just add whatever is left
|
|
18138
|
-
|
|
18139
|
-
if (segment) {
|
|
18140
|
-
keys.push('[' + key.slice(segment.index) + ']');
|
|
18141
|
-
}
|
|
18142
|
-
|
|
18143
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
18144
|
-
};
|
|
18145
|
-
|
|
18146
|
-
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
18147
|
-
if (!opts) {
|
|
18148
|
-
return defaults;
|
|
18149
|
-
}
|
|
18150
|
-
|
|
18151
|
-
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
18152
|
-
throw new TypeError('Decoder has to be a function.');
|
|
18153
|
-
}
|
|
18154
|
-
|
|
18155
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
18156
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
18157
|
-
}
|
|
18158
|
-
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
18159
|
-
|
|
18160
|
-
return {
|
|
18161
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
18162
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
18163
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
18164
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
18165
|
-
charset: charset,
|
|
18166
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
18167
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
18168
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
18169
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
18170
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
18171
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
18172
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
18173
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
18174
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
18175
|
-
parseArrays: opts.parseArrays !== false,
|
|
18176
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
18177
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
18178
|
-
};
|
|
18179
|
-
};
|
|
18180
|
-
|
|
18181
|
-
var parse$1 = function (str, opts) {
|
|
18182
|
-
var options = normalizeParseOptions(opts);
|
|
18183
|
-
|
|
18184
|
-
if (str === '' || str === null || typeof str === 'undefined') {
|
|
18185
|
-
return options.plainObjects ? Object.create(null) : {};
|
|
18186
|
-
}
|
|
18187
|
-
|
|
18188
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
18189
|
-
var obj = options.plainObjects ? Object.create(null) : {};
|
|
18190
|
-
|
|
18191
|
-
// Iterate over the keys and setup the new object
|
|
18192
|
-
|
|
18193
|
-
var keys = Object.keys(tempObj);
|
|
18194
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
18195
|
-
var key = keys[i];
|
|
18196
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
18197
|
-
obj = utils.merge(obj, newObj, options);
|
|
18198
|
-
}
|
|
18199
|
-
|
|
18200
|
-
if (options.allowSparse === true) {
|
|
18201
|
-
return obj;
|
|
18202
|
-
}
|
|
18203
|
-
|
|
18204
|
-
return utils.compact(obj);
|
|
18205
|
-
};
|
|
18206
|
-
|
|
18207
|
-
var lib = {
|
|
18208
|
-
formats: formats,
|
|
18209
|
-
parse: parse$1,
|
|
18210
|
-
stringify: stringify_1
|
|
18211
|
-
};
|
|
18212
|
-
|
|
18213
|
-
function Url() {
|
|
18214
|
-
this.protocol = null;
|
|
18215
|
-
this.slashes = null;
|
|
18216
|
-
this.auth = null;
|
|
18217
|
-
this.host = null;
|
|
18218
|
-
this.port = null;
|
|
18219
|
-
this.hostname = null;
|
|
18220
|
-
this.hash = null;
|
|
18221
|
-
this.search = null;
|
|
18222
|
-
this.query = null;
|
|
18223
|
-
this.pathname = null;
|
|
18224
|
-
this.path = null;
|
|
18225
|
-
this.href = null;
|
|
18226
|
-
}
|
|
18227
|
-
|
|
18228
|
-
// Reference: RFC 3986, RFC 1808, RFC 2396
|
|
18229
|
-
|
|
18230
|
-
/*
|
|
18231
|
-
* define these here so at least they only have to be
|
|
18232
|
-
* compiled once on the first module load.
|
|
18233
|
-
*/
|
|
18234
|
-
var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
|
18235
|
-
portPattern = /:[0-9]*$/,
|
|
18236
|
-
|
|
18237
|
-
// Special case for a simple path URL
|
|
18238
|
-
simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,
|
|
18239
|
-
|
|
18240
|
-
/*
|
|
18241
|
-
* RFC 2396: characters reserved for delimiting URLs.
|
|
18242
|
-
* We actually just auto-escape these.
|
|
18243
|
-
*/
|
|
18244
|
-
delims = [
|
|
18245
|
-
'<', '>', '"', '`', ' ', '\r', '\n', '\t'
|
|
18246
|
-
],
|
|
18247
|
-
|
|
18248
|
-
// RFC 2396: characters not allowed for various reasons.
|
|
18249
|
-
unwise = [
|
|
18250
|
-
'{', '}', '|', '\\', '^', '`'
|
|
18251
|
-
].concat(delims),
|
|
18252
|
-
|
|
18253
|
-
// Allowed by RFCs, but cause of XSS attacks. Always escape these.
|
|
18254
|
-
autoEscape = ['\''].concat(unwise),
|
|
18255
|
-
/*
|
|
18256
|
-
* Characters that are never ever allowed in a hostname.
|
|
18257
|
-
* Note that any invalid chars are also handled, but these
|
|
18258
|
-
* are the ones that are *expected* to be seen, so we fast-path
|
|
18259
|
-
* them.
|
|
18260
|
-
*/
|
|
18261
|
-
nonHostChars = [
|
|
18262
|
-
'%', '/', '?', ';', '#'
|
|
18263
|
-
].concat(autoEscape),
|
|
18264
|
-
hostEndingChars = [
|
|
18265
|
-
'/', '?', '#'
|
|
18266
|
-
],
|
|
18267
|
-
hostnameMaxLen = 255,
|
|
18268
|
-
hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
|
|
18269
|
-
hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
|
|
18270
|
-
// protocols that can allow "unsafe" and "unwise" chars.
|
|
18271
|
-
unsafeProtocol = {
|
|
18272
|
-
javascript: true,
|
|
18273
|
-
'javascript:': true
|
|
18274
|
-
},
|
|
18275
|
-
// protocols that never have a hostname.
|
|
18276
|
-
hostlessProtocol = {
|
|
18277
|
-
javascript: true,
|
|
18278
|
-
'javascript:': true
|
|
18279
|
-
},
|
|
18280
|
-
// protocols that always contain a // bit.
|
|
18281
|
-
slashedProtocol = {
|
|
18282
|
-
http: true,
|
|
18283
|
-
https: true,
|
|
18284
|
-
ftp: true,
|
|
18285
|
-
gopher: true,
|
|
18286
|
-
file: true,
|
|
18287
|
-
'http:': true,
|
|
18288
|
-
'https:': true,
|
|
18289
|
-
'ftp:': true,
|
|
18290
|
-
'gopher:': true,
|
|
18291
|
-
'file:': true
|
|
18292
|
-
};
|
|
18293
|
-
|
|
18294
|
-
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
18295
|
-
if (url && typeof url === 'object' && url instanceof Url) { return url; }
|
|
18296
|
-
|
|
18297
|
-
var u = new Url();
|
|
18298
|
-
u.parse(url, parseQueryString, slashesDenoteHost);
|
|
18299
|
-
return u;
|
|
18300
|
-
}
|
|
18301
|
-
|
|
18302
|
-
Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {
|
|
18303
|
-
if (typeof url !== 'string') {
|
|
18304
|
-
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
|
|
18305
|
-
}
|
|
18306
|
-
|
|
18307
|
-
/*
|
|
18308
|
-
* Copy chrome, IE, opera backslash-handling behavior.
|
|
18309
|
-
* Back slashes before the query string get converted to forward slashes
|
|
18310
|
-
* See: https://code.google.com/p/chromium/issues/detail?id=25916
|
|
18311
|
-
*/
|
|
18312
|
-
var queryIndex = url.indexOf('?'),
|
|
18313
|
-
splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',
|
|
18314
|
-
uSplit = url.split(splitter),
|
|
18315
|
-
slashRegex = /\\/g;
|
|
18316
|
-
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
|
18317
|
-
url = uSplit.join(splitter);
|
|
18318
|
-
|
|
18319
|
-
var rest = url;
|
|
18320
|
-
|
|
18321
|
-
/*
|
|
18322
|
-
* trim before proceeding.
|
|
18323
|
-
* This is to support parse stuff like " http://foo.com \n"
|
|
18324
|
-
*/
|
|
18325
|
-
rest = rest.trim();
|
|
18326
|
-
|
|
18327
|
-
if (!slashesDenoteHost && url.split('#').length === 1) {
|
|
18328
|
-
// Try fast path regexp
|
|
18329
|
-
var simplePath = simplePathPattern.exec(rest);
|
|
18330
|
-
if (simplePath) {
|
|
18331
|
-
this.path = rest;
|
|
18332
|
-
this.href = rest;
|
|
18333
|
-
this.pathname = simplePath[1];
|
|
18334
|
-
if (simplePath[2]) {
|
|
18335
|
-
this.search = simplePath[2];
|
|
18336
|
-
if (parseQueryString) {
|
|
18337
|
-
this.query = lib.parse(this.search.substr(1));
|
|
18338
|
-
} else {
|
|
18339
|
-
this.query = this.search.substr(1);
|
|
18340
|
-
}
|
|
18341
|
-
} else if (parseQueryString) {
|
|
18342
|
-
this.search = '';
|
|
18343
|
-
this.query = {};
|
|
18344
|
-
}
|
|
18345
|
-
return this;
|
|
18346
|
-
}
|
|
18347
|
-
}
|
|
18348
|
-
|
|
18349
|
-
var proto = protocolPattern.exec(rest);
|
|
18350
|
-
if (proto) {
|
|
18351
|
-
proto = proto[0];
|
|
18352
|
-
var lowerProto = proto.toLowerCase();
|
|
18353
|
-
this.protocol = lowerProto;
|
|
18354
|
-
rest = rest.substr(proto.length);
|
|
18355
|
-
}
|
|
18356
|
-
|
|
18357
|
-
/*
|
|
18358
|
-
* figure out if it's got a host
|
|
18359
|
-
* user@server is *always* interpreted as a hostname, and url
|
|
18360
|
-
* resolution will treat //foo/bar as host=foo,path=bar because that's
|
|
18361
|
-
* how the browser resolves relative URLs.
|
|
18362
|
-
*/
|
|
18363
|
-
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
18364
|
-
var slashes = rest.substr(0, 2) === '//';
|
|
18365
|
-
if (slashes && !(proto && hostlessProtocol[proto])) {
|
|
18366
|
-
rest = rest.substr(2);
|
|
18367
|
-
this.slashes = true;
|
|
18368
|
-
}
|
|
18369
|
-
}
|
|
18370
|
-
|
|
18371
|
-
if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) {
|
|
18372
|
-
|
|
18373
|
-
/*
|
|
18374
|
-
* there's a hostname.
|
|
18375
|
-
* the first instance of /, ?, ;, or # ends the host.
|
|
18376
|
-
*
|
|
18377
|
-
* If there is an @ in the hostname, then non-host chars *are* allowed
|
|
18378
|
-
* to the left of the last @ sign, unless some host-ending character
|
|
18379
|
-
* comes *before* the @-sign.
|
|
18380
|
-
* URLs are obnoxious.
|
|
18381
|
-
*
|
|
18382
|
-
* ex:
|
|
18383
|
-
* http://a@b@c/ => user:a@b host:c
|
|
18384
|
-
* http://a@b?@c => user:a host:c path:/?@c
|
|
18385
|
-
*/
|
|
18386
|
-
|
|
18387
|
-
/*
|
|
18388
|
-
* v0.12 TODO(isaacs): This is not quite how Chrome does things.
|
|
18389
|
-
* Review our test case against browsers more comprehensively.
|
|
18390
|
-
*/
|
|
18391
|
-
|
|
18392
|
-
// find the first instance of any hostEndingChars
|
|
18393
|
-
var hostEnd = -1;
|
|
18394
|
-
for (var i = 0; i < hostEndingChars.length; i++) {
|
|
18395
|
-
var hec = rest.indexOf(hostEndingChars[i]);
|
|
18396
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
|
18397
|
-
}
|
|
18398
|
-
|
|
18399
|
-
/*
|
|
18400
|
-
* at this point, either we have an explicit point where the
|
|
18401
|
-
* auth portion cannot go past, or the last @ char is the decider.
|
|
18402
|
-
*/
|
|
18403
|
-
var auth, atSign;
|
|
18404
|
-
if (hostEnd === -1) {
|
|
18405
|
-
// atSign can be anywhere.
|
|
18406
|
-
atSign = rest.lastIndexOf('@');
|
|
18407
|
-
} else {
|
|
18408
|
-
/*
|
|
18409
|
-
* atSign must be in auth portion.
|
|
18410
|
-
* http://a@b/c@d => host:b auth:a path:/c@d
|
|
18411
|
-
*/
|
|
18412
|
-
atSign = rest.lastIndexOf('@', hostEnd);
|
|
18413
|
-
}
|
|
18414
|
-
|
|
18415
|
-
/*
|
|
18416
|
-
* Now we have a portion which is definitely the auth.
|
|
18417
|
-
* Pull that off.
|
|
18418
|
-
*/
|
|
18419
|
-
if (atSign !== -1) {
|
|
18420
|
-
auth = rest.slice(0, atSign);
|
|
18421
|
-
rest = rest.slice(atSign + 1);
|
|
18422
|
-
this.auth = decodeURIComponent(auth);
|
|
18423
|
-
}
|
|
18424
|
-
|
|
18425
|
-
// the host is the remaining to the left of the first non-host char
|
|
18426
|
-
hostEnd = -1;
|
|
18427
|
-
for (var i = 0; i < nonHostChars.length; i++) {
|
|
18428
|
-
var hec = rest.indexOf(nonHostChars[i]);
|
|
18429
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
|
18430
|
-
}
|
|
18431
|
-
// if we still have not hit it, then the entire thing is a host.
|
|
18432
|
-
if (hostEnd === -1) { hostEnd = rest.length; }
|
|
18433
|
-
|
|
18434
|
-
this.host = rest.slice(0, hostEnd);
|
|
18435
|
-
rest = rest.slice(hostEnd);
|
|
18436
|
-
|
|
18437
|
-
// pull out port.
|
|
18438
|
-
this.parseHost();
|
|
18439
|
-
|
|
18440
|
-
/*
|
|
18441
|
-
* we've indicated that there is a hostname,
|
|
18442
|
-
* so even if it's empty, it has to be present.
|
|
18443
|
-
*/
|
|
18444
|
-
this.hostname = this.hostname || '';
|
|
18445
|
-
|
|
18446
|
-
/*
|
|
18447
|
-
* if hostname begins with [ and ends with ]
|
|
18448
|
-
* assume that it's an IPv6 address.
|
|
18449
|
-
*/
|
|
18450
|
-
var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';
|
|
18451
|
-
|
|
18452
|
-
// validate a little.
|
|
18453
|
-
if (!ipv6Hostname) {
|
|
18454
|
-
var hostparts = this.hostname.split(/\./);
|
|
18455
|
-
for (var i = 0, l = hostparts.length; i < l; i++) {
|
|
18456
|
-
var part = hostparts[i];
|
|
18457
|
-
if (!part) { continue; }
|
|
18458
|
-
if (!part.match(hostnamePartPattern)) {
|
|
18459
|
-
var newpart = '';
|
|
18460
|
-
for (var j = 0, k = part.length; j < k; j++) {
|
|
18461
|
-
if (part.charCodeAt(j) > 127) {
|
|
18462
|
-
/*
|
|
18463
|
-
* we replace non-ASCII char with a temporary placeholder
|
|
18464
|
-
* we need this to make sure size of hostname is not
|
|
18465
|
-
* broken by replacing non-ASCII by nothing
|
|
18466
|
-
*/
|
|
18467
|
-
newpart += 'x';
|
|
18468
|
-
} else {
|
|
18469
|
-
newpart += part[j];
|
|
18470
|
-
}
|
|
18471
|
-
}
|
|
18472
|
-
// we test again with ASCII char only
|
|
18473
|
-
if (!newpart.match(hostnamePartPattern)) {
|
|
18474
|
-
var validParts = hostparts.slice(0, i);
|
|
18475
|
-
var notHost = hostparts.slice(i + 1);
|
|
18476
|
-
var bit = part.match(hostnamePartStart);
|
|
18477
|
-
if (bit) {
|
|
18478
|
-
validParts.push(bit[1]);
|
|
18479
|
-
notHost.unshift(bit[2]);
|
|
18480
|
-
}
|
|
18481
|
-
if (notHost.length) {
|
|
18482
|
-
rest = '/' + notHost.join('.') + rest;
|
|
18483
|
-
}
|
|
18484
|
-
this.hostname = validParts.join('.');
|
|
18485
|
-
break;
|
|
18486
|
-
}
|
|
18487
|
-
}
|
|
18488
|
-
}
|
|
18489
|
-
}
|
|
18490
|
-
|
|
18491
|
-
if (this.hostname.length > hostnameMaxLen) {
|
|
18492
|
-
this.hostname = '';
|
|
18493
|
-
} else {
|
|
18494
|
-
// hostnames are always lower case.
|
|
18495
|
-
this.hostname = this.hostname.toLowerCase();
|
|
18496
|
-
}
|
|
18497
|
-
|
|
18498
|
-
if (!ipv6Hostname) {
|
|
18499
|
-
/*
|
|
18500
|
-
* IDNA Support: Returns a punycoded representation of "domain".
|
|
18501
|
-
* It only converts parts of the domain name that
|
|
18502
|
-
* have non-ASCII characters, i.e. it doesn't matter if
|
|
18503
|
-
* you call it with a domain that already is ASCII-only.
|
|
18504
|
-
*/
|
|
18505
|
-
this.hostname = punycode.toASCII(this.hostname);
|
|
18506
|
-
}
|
|
18507
|
-
|
|
18508
|
-
var p = this.port ? ':' + this.port : '';
|
|
18509
|
-
var h = this.hostname || '';
|
|
18510
|
-
this.host = h + p;
|
|
18511
|
-
this.href += this.host;
|
|
18512
|
-
|
|
18513
|
-
/*
|
|
18514
|
-
* strip [ and ] from the hostname
|
|
18515
|
-
* the host field still retains them, though
|
|
18516
|
-
*/
|
|
18517
|
-
if (ipv6Hostname) {
|
|
18518
|
-
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
|
18519
|
-
if (rest[0] !== '/') {
|
|
18520
|
-
rest = '/' + rest;
|
|
18521
|
-
}
|
|
18522
|
-
}
|
|
18523
|
-
}
|
|
18524
|
-
|
|
18525
|
-
/*
|
|
18526
|
-
* now rest is set to the post-host stuff.
|
|
18527
|
-
* chop off any delim chars.
|
|
18528
|
-
*/
|
|
18529
|
-
if (!unsafeProtocol[lowerProto]) {
|
|
18530
|
-
|
|
18531
|
-
/*
|
|
18532
|
-
* First, make 100% sure that any "autoEscape" chars get
|
|
18533
|
-
* escaped, even if encodeURIComponent doesn't think they
|
|
18534
|
-
* need to be.
|
|
18535
|
-
*/
|
|
18536
|
-
for (var i = 0, l = autoEscape.length; i < l; i++) {
|
|
18537
|
-
var ae = autoEscape[i];
|
|
18538
|
-
if (rest.indexOf(ae) === -1) { continue; }
|
|
18539
|
-
var esc = encodeURIComponent(ae);
|
|
18540
|
-
if (esc === ae) {
|
|
18541
|
-
esc = escape(ae);
|
|
18542
|
-
}
|
|
18543
|
-
rest = rest.split(ae).join(esc);
|
|
18544
|
-
}
|
|
18545
|
-
}
|
|
18546
|
-
|
|
18547
|
-
// chop off from the tail first.
|
|
18548
|
-
var hash = rest.indexOf('#');
|
|
18549
|
-
if (hash !== -1) {
|
|
18550
|
-
// got a fragment string.
|
|
18551
|
-
this.hash = rest.substr(hash);
|
|
18552
|
-
rest = rest.slice(0, hash);
|
|
18553
|
-
}
|
|
18554
|
-
var qm = rest.indexOf('?');
|
|
18555
|
-
if (qm !== -1) {
|
|
18556
|
-
this.search = rest.substr(qm);
|
|
18557
|
-
this.query = rest.substr(qm + 1);
|
|
18558
|
-
if (parseQueryString) {
|
|
18559
|
-
this.query = lib.parse(this.query);
|
|
18560
|
-
}
|
|
18561
|
-
rest = rest.slice(0, qm);
|
|
18562
|
-
} else if (parseQueryString) {
|
|
18563
|
-
// no query string, but parseQueryString still requested
|
|
18564
|
-
this.search = '';
|
|
18565
|
-
this.query = {};
|
|
18566
|
-
}
|
|
18567
|
-
if (rest) { this.pathname = rest; }
|
|
18568
|
-
if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
|
|
18569
|
-
this.pathname = '/';
|
|
18570
|
-
}
|
|
18571
|
-
|
|
18572
|
-
// to support http.request
|
|
18573
|
-
if (this.pathname || this.search) {
|
|
18574
|
-
var p = this.pathname || '';
|
|
18575
|
-
var s = this.search || '';
|
|
18576
|
-
this.path = p + s;
|
|
18577
|
-
}
|
|
18578
|
-
|
|
18579
|
-
// finally, reconstruct the href based on what has been validated.
|
|
18580
|
-
this.href = this.format();
|
|
18581
|
-
return this;
|
|
18582
|
-
};
|
|
18583
|
-
|
|
18584
|
-
// format a parsed object into a url string
|
|
18585
|
-
function urlFormat(obj) {
|
|
18586
|
-
/*
|
|
18587
|
-
* ensure it's an object, and not a string url.
|
|
18588
|
-
* If it's an obj, this is a no-op.
|
|
18589
|
-
* this way, you can call url_format() on strings
|
|
18590
|
-
* to clean up potentially wonky urls.
|
|
18591
|
-
*/
|
|
18592
|
-
if (typeof obj === 'string') { obj = urlParse(obj); }
|
|
18593
|
-
if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }
|
|
18594
|
-
return obj.format();
|
|
18595
|
-
}
|
|
18596
|
-
|
|
18597
|
-
Url.prototype.format = function () {
|
|
18598
|
-
var auth = this.auth || '';
|
|
18599
|
-
if (auth) {
|
|
18600
|
-
auth = encodeURIComponent(auth);
|
|
18601
|
-
auth = auth.replace(/%3A/i, ':');
|
|
18602
|
-
auth += '@';
|
|
18603
|
-
}
|
|
18604
|
-
|
|
18605
|
-
var protocol = this.protocol || '',
|
|
18606
|
-
pathname = this.pathname || '',
|
|
18607
|
-
hash = this.hash || '',
|
|
18608
|
-
host = false,
|
|
18609
|
-
query = '';
|
|
18610
|
-
|
|
18611
|
-
if (this.host) {
|
|
18612
|
-
host = auth + this.host;
|
|
18613
|
-
} else if (this.hostname) {
|
|
18614
|
-
host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');
|
|
18615
|
-
if (this.port) {
|
|
18616
|
-
host += ':' + this.port;
|
|
18617
|
-
}
|
|
18618
|
-
}
|
|
18619
|
-
|
|
18620
|
-
if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {
|
|
18621
|
-
query = lib.stringify(this.query);
|
|
18622
|
-
}
|
|
18623
|
-
|
|
18624
|
-
var search = this.search || (query && ('?' + query)) || '';
|
|
18625
|
-
|
|
18626
|
-
if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; }
|
|
18627
|
-
|
|
18628
|
-
/*
|
|
18629
|
-
* only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
|
|
18630
|
-
* unless they had them to begin with.
|
|
18631
|
-
*/
|
|
18632
|
-
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
|
|
18633
|
-
host = '//' + (host || '');
|
|
18634
|
-
if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; }
|
|
18635
|
-
} else if (!host) {
|
|
18636
|
-
host = '';
|
|
18637
|
-
}
|
|
18638
|
-
|
|
18639
|
-
if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; }
|
|
18640
|
-
if (search && search.charAt(0) !== '?') { search = '?' + search; }
|
|
18641
|
-
|
|
18642
|
-
pathname = pathname.replace(/[?#]/g, function (match) {
|
|
18643
|
-
return encodeURIComponent(match);
|
|
18644
|
-
});
|
|
18645
|
-
search = search.replace('#', '%23');
|
|
18646
|
-
|
|
18647
|
-
return protocol + host + pathname + search + hash;
|
|
18648
|
-
};
|
|
18649
|
-
|
|
18650
|
-
function urlResolve(source, relative) {
|
|
18651
|
-
return urlParse(source, false, true).resolve(relative);
|
|
18652
|
-
}
|
|
18653
|
-
|
|
18654
|
-
Url.prototype.resolve = function (relative) {
|
|
18655
|
-
return this.resolveObject(urlParse(relative, false, true)).format();
|
|
18656
|
-
};
|
|
18657
|
-
|
|
18658
|
-
function urlResolveObject(source, relative) {
|
|
18659
|
-
if (!source) { return relative; }
|
|
18660
|
-
return urlParse(source, false, true).resolveObject(relative);
|
|
18661
|
-
}
|
|
18662
|
-
|
|
18663
|
-
Url.prototype.resolveObject = function (relative) {
|
|
18664
|
-
if (typeof relative === 'string') {
|
|
18665
|
-
var rel = new Url();
|
|
18666
|
-
rel.parse(relative, false, true);
|
|
18667
|
-
relative = rel;
|
|
18668
|
-
}
|
|
18669
|
-
|
|
18670
|
-
var result = new Url();
|
|
18671
|
-
var tkeys = Object.keys(this);
|
|
18672
|
-
for (var tk = 0; tk < tkeys.length; tk++) {
|
|
18673
|
-
var tkey = tkeys[tk];
|
|
18674
|
-
result[tkey] = this[tkey];
|
|
18675
|
-
}
|
|
18676
|
-
|
|
18677
|
-
/*
|
|
18678
|
-
* hash is always overridden, no matter what.
|
|
18679
|
-
* even href="" will remove it.
|
|
18680
|
-
*/
|
|
18681
|
-
result.hash = relative.hash;
|
|
18682
|
-
|
|
18683
|
-
// if the relative url is empty, then there's nothing left to do here.
|
|
18684
|
-
if (relative.href === '') {
|
|
18685
|
-
result.href = result.format();
|
|
18686
|
-
return result;
|
|
18687
|
-
}
|
|
18688
|
-
|
|
18689
|
-
// hrefs like //foo/bar always cut to the protocol.
|
|
18690
|
-
if (relative.slashes && !relative.protocol) {
|
|
18691
|
-
// take everything except the protocol from relative
|
|
18692
|
-
var rkeys = Object.keys(relative);
|
|
18693
|
-
for (var rk = 0; rk < rkeys.length; rk++) {
|
|
18694
|
-
var rkey = rkeys[rk];
|
|
18695
|
-
if (rkey !== 'protocol') { result[rkey] = relative[rkey]; }
|
|
18696
|
-
}
|
|
18697
|
-
|
|
18698
|
-
// urlParse appends trailing / to urls like http://www.example.com
|
|
18699
|
-
if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
|
|
18700
|
-
result.pathname = '/';
|
|
18701
|
-
result.path = result.pathname;
|
|
18702
|
-
}
|
|
18703
|
-
|
|
18704
|
-
result.href = result.format();
|
|
18705
|
-
return result;
|
|
18706
|
-
}
|
|
18707
|
-
|
|
18708
|
-
if (relative.protocol && relative.protocol !== result.protocol) {
|
|
18709
|
-
/*
|
|
18710
|
-
* if it's a known url protocol, then changing
|
|
18711
|
-
* the protocol does weird things
|
|
18712
|
-
* first, if it's not file:, then we MUST have a host,
|
|
18713
|
-
* and if there was a path
|
|
18714
|
-
* to begin with, then we MUST have a path.
|
|
18715
|
-
* if it is file:, then the host is dropped,
|
|
18716
|
-
* because that's known to be hostless.
|
|
18717
|
-
* anything else is assumed to be absolute.
|
|
18718
|
-
*/
|
|
18719
|
-
if (!slashedProtocol[relative.protocol]) {
|
|
18720
|
-
var keys = Object.keys(relative);
|
|
18721
|
-
for (var v = 0; v < keys.length; v++) {
|
|
18722
|
-
var k = keys[v];
|
|
18723
|
-
result[k] = relative[k];
|
|
18724
|
-
}
|
|
18725
|
-
result.href = result.format();
|
|
18726
|
-
return result;
|
|
18727
|
-
}
|
|
18728
|
-
|
|
18729
|
-
result.protocol = relative.protocol;
|
|
18730
|
-
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
|
18731
|
-
var relPath = (relative.pathname || '').split('/');
|
|
18732
|
-
while (relPath.length && !(relative.host = relPath.shift())) { }
|
|
18733
|
-
if (!relative.host) { relative.host = ''; }
|
|
18734
|
-
if (!relative.hostname) { relative.hostname = ''; }
|
|
18735
|
-
if (relPath[0] !== '') { relPath.unshift(''); }
|
|
18736
|
-
if (relPath.length < 2) { relPath.unshift(''); }
|
|
18737
|
-
result.pathname = relPath.join('/');
|
|
18738
|
-
} else {
|
|
18739
|
-
result.pathname = relative.pathname;
|
|
18740
|
-
}
|
|
18741
|
-
result.search = relative.search;
|
|
18742
|
-
result.query = relative.query;
|
|
18743
|
-
result.host = relative.host || '';
|
|
18744
|
-
result.auth = relative.auth;
|
|
18745
|
-
result.hostname = relative.hostname || relative.host;
|
|
18746
|
-
result.port = relative.port;
|
|
18747
|
-
// to support http.request
|
|
18748
|
-
if (result.pathname || result.search) {
|
|
18749
|
-
var p = result.pathname || '';
|
|
18750
|
-
var s = result.search || '';
|
|
18751
|
-
result.path = p + s;
|
|
18752
|
-
}
|
|
18753
|
-
result.slashes = result.slashes || relative.slashes;
|
|
18754
|
-
result.href = result.format();
|
|
18755
|
-
return result;
|
|
18756
|
-
}
|
|
18757
|
-
|
|
18758
|
-
var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',
|
|
18759
|
-
isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',
|
|
18760
|
-
mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname),
|
|
18761
|
-
removeAllDots = mustEndAbs,
|
|
18762
|
-
srcPath = result.pathname && result.pathname.split('/') || [],
|
|
18763
|
-
relPath = relative.pathname && relative.pathname.split('/') || [],
|
|
18764
|
-
psychotic = result.protocol && !slashedProtocol[result.protocol];
|
|
18765
|
-
|
|
18766
|
-
/*
|
|
18767
|
-
* if the url is a non-slashed url, then relative
|
|
18768
|
-
* links like ../.. should be able
|
|
18769
|
-
* to crawl up to the hostname, as well. This is strange.
|
|
18770
|
-
* result.protocol has already been set by now.
|
|
18771
|
-
* Later on, put the first path part into the host field.
|
|
18772
|
-
*/
|
|
18773
|
-
if (psychotic) {
|
|
18774
|
-
result.hostname = '';
|
|
18775
|
-
result.port = null;
|
|
18776
|
-
if (result.host) {
|
|
18777
|
-
if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); }
|
|
18778
|
-
}
|
|
18779
|
-
result.host = '';
|
|
18780
|
-
if (relative.protocol) {
|
|
18781
|
-
relative.hostname = null;
|
|
18782
|
-
relative.port = null;
|
|
18783
|
-
if (relative.host) {
|
|
18784
|
-
if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); }
|
|
18785
|
-
}
|
|
18786
|
-
relative.host = null;
|
|
18787
|
-
}
|
|
18788
|
-
mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');
|
|
18789
|
-
}
|
|
18790
|
-
|
|
18791
|
-
if (isRelAbs) {
|
|
18792
|
-
// it's absolute.
|
|
18793
|
-
result.host = relative.host || relative.host === '' ? relative.host : result.host;
|
|
18794
|
-
result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;
|
|
18795
|
-
result.search = relative.search;
|
|
18796
|
-
result.query = relative.query;
|
|
18797
|
-
srcPath = relPath;
|
|
18798
|
-
// fall through to the dot-handling below.
|
|
18799
|
-
} else if (relPath.length) {
|
|
18800
|
-
/*
|
|
18801
|
-
* it's relative
|
|
18802
|
-
* throw away the existing file, and take the new path instead.
|
|
18803
|
-
*/
|
|
18804
|
-
if (!srcPath) { srcPath = []; }
|
|
18805
|
-
srcPath.pop();
|
|
18806
|
-
srcPath = srcPath.concat(relPath);
|
|
18807
|
-
result.search = relative.search;
|
|
18808
|
-
result.query = relative.query;
|
|
18809
|
-
} else if (relative.search != null) {
|
|
18810
|
-
/*
|
|
18811
|
-
* just pull out the search.
|
|
18812
|
-
* like href='?foo'.
|
|
18813
|
-
* Put this after the other two cases because it simplifies the booleans
|
|
18814
|
-
*/
|
|
18815
|
-
if (psychotic) {
|
|
18816
|
-
result.host = srcPath.shift();
|
|
18817
|
-
result.hostname = result.host;
|
|
18818
|
-
/*
|
|
18819
|
-
* occationaly the auth can get stuck only in host
|
|
18820
|
-
* this especially happens in cases like
|
|
18821
|
-
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
18822
|
-
*/
|
|
18823
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
|
18824
|
-
if (authInHost) {
|
|
18825
|
-
result.auth = authInHost.shift();
|
|
18826
|
-
result.hostname = authInHost.shift();
|
|
18827
|
-
result.host = result.hostname;
|
|
18828
|
-
}
|
|
18829
|
-
}
|
|
18830
|
-
result.search = relative.search;
|
|
18831
|
-
result.query = relative.query;
|
|
18832
|
-
// to support http.request
|
|
18833
|
-
if (result.pathname !== null || result.search !== null) {
|
|
18834
|
-
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
|
18835
|
-
}
|
|
18836
|
-
result.href = result.format();
|
|
18837
|
-
return result;
|
|
18838
|
-
}
|
|
18839
|
-
|
|
18840
|
-
if (!srcPath.length) {
|
|
18841
|
-
/*
|
|
18842
|
-
* no path at all. easy.
|
|
18843
|
-
* we've already handled the other stuff above.
|
|
18844
|
-
*/
|
|
18845
|
-
result.pathname = null;
|
|
18846
|
-
// to support http.request
|
|
18847
|
-
if (result.search) {
|
|
18848
|
-
result.path = '/' + result.search;
|
|
18849
|
-
} else {
|
|
18850
|
-
result.path = null;
|
|
18851
|
-
}
|
|
18852
|
-
result.href = result.format();
|
|
18853
|
-
return result;
|
|
18854
|
-
}
|
|
18855
|
-
|
|
18856
|
-
/*
|
|
18857
|
-
* if a url ENDs in . or .., then it must get a trailing slash.
|
|
18858
|
-
* however, if it ends in anything else non-slashy,
|
|
18859
|
-
* then it must NOT get a trailing slash.
|
|
18860
|
-
*/
|
|
18861
|
-
var last = srcPath.slice(-1)[0];
|
|
18862
|
-
var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === '';
|
|
18863
|
-
|
|
18864
|
-
/*
|
|
18865
|
-
* strip single dots, resolve double dots to parent dir
|
|
18866
|
-
* if the path tries to go above the root, `up` ends up > 0
|
|
18867
|
-
*/
|
|
18868
|
-
var up = 0;
|
|
18869
|
-
for (var i = srcPath.length; i >= 0; i--) {
|
|
18870
|
-
last = srcPath[i];
|
|
18871
|
-
if (last === '.') {
|
|
18872
|
-
srcPath.splice(i, 1);
|
|
18873
|
-
} else if (last === '..') {
|
|
18874
|
-
srcPath.splice(i, 1);
|
|
18875
|
-
up++;
|
|
18876
|
-
} else if (up) {
|
|
18877
|
-
srcPath.splice(i, 1);
|
|
18878
|
-
up--;
|
|
18879
|
-
}
|
|
18880
|
-
}
|
|
18881
|
-
|
|
18882
|
-
// if the path is allowed to go above the root, restore leading ..s
|
|
18883
|
-
if (!mustEndAbs && !removeAllDots) {
|
|
18884
|
-
for (; up--; up) {
|
|
18885
|
-
srcPath.unshift('..');
|
|
18886
|
-
}
|
|
18887
|
-
}
|
|
18888
|
-
|
|
18889
|
-
if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
|
18890
|
-
srcPath.unshift('');
|
|
18891
|
-
}
|
|
18892
|
-
|
|
18893
|
-
if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {
|
|
18894
|
-
srcPath.push('');
|
|
18895
|
-
}
|
|
18896
|
-
|
|
18897
|
-
var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/');
|
|
18898
|
-
|
|
18899
|
-
// put the host back
|
|
18900
|
-
if (psychotic) {
|
|
18901
|
-
result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : '';
|
|
18902
|
-
result.host = result.hostname;
|
|
18903
|
-
/*
|
|
18904
|
-
* occationaly the auth can get stuck only in host
|
|
18905
|
-
* this especially happens in cases like
|
|
18906
|
-
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
18907
|
-
*/
|
|
18908
|
-
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
|
18909
|
-
if (authInHost) {
|
|
18910
|
-
result.auth = authInHost.shift();
|
|
18911
|
-
result.hostname = authInHost.shift();
|
|
18912
|
-
result.host = result.hostname;
|
|
18913
|
-
}
|
|
18914
|
-
}
|
|
18915
|
-
|
|
18916
|
-
mustEndAbs = mustEndAbs || (result.host && srcPath.length);
|
|
18917
|
-
|
|
18918
|
-
if (mustEndAbs && !isAbsolute) {
|
|
18919
|
-
srcPath.unshift('');
|
|
18920
|
-
}
|
|
18921
|
-
|
|
18922
|
-
if (srcPath.length > 0) {
|
|
18923
|
-
result.pathname = srcPath.join('/');
|
|
18924
|
-
} else {
|
|
18925
|
-
result.pathname = null;
|
|
18926
|
-
result.path = null;
|
|
18927
|
-
}
|
|
18928
|
-
|
|
18929
|
-
// to support request.http
|
|
18930
|
-
if (result.pathname !== null || result.search !== null) {
|
|
18931
|
-
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
|
18932
|
-
}
|
|
18933
|
-
result.auth = relative.auth || result.auth;
|
|
18934
|
-
result.slashes = result.slashes || relative.slashes;
|
|
18935
|
-
result.href = result.format();
|
|
18936
|
-
return result;
|
|
18937
|
-
};
|
|
18938
|
-
|
|
18939
|
-
Url.prototype.parseHost = function () {
|
|
18940
|
-
var host = this.host;
|
|
18941
|
-
var port = portPattern.exec(host);
|
|
18942
|
-
if (port) {
|
|
18943
|
-
port = port[0];
|
|
18944
|
-
if (port !== ':') {
|
|
18945
|
-
this.port = port.substr(1);
|
|
18946
|
-
}
|
|
18947
|
-
host = host.substr(0, host.length - port.length);
|
|
18948
|
-
}
|
|
18949
|
-
if (host) { this.hostname = host; }
|
|
18950
|
-
};
|
|
18951
|
-
|
|
18952
|
-
var parse = urlParse;
|
|
18953
|
-
var resolve = urlResolve;
|
|
18954
|
-
var resolveObject = urlResolveObject;
|
|
18955
|
-
var format = urlFormat;
|
|
18956
|
-
|
|
18957
|
-
var Url_1 = Url;
|
|
18958
|
-
|
|
18959
|
-
var url = {
|
|
18960
|
-
parse: parse,
|
|
18961
|
-
resolve: resolve,
|
|
18962
|
-
resolveObject: resolveObject,
|
|
18963
|
-
format: format,
|
|
18964
|
-
Url: Url_1
|
|
18965
|
-
};
|
|
18966
|
-
|
|
18967
|
-
!function(t){t();}((function(){const t={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},e=6e4,i=60*e,a=24*i;function s(t,e){return new URL(t,t.startsWith("../")||t.startsWith("./")?e:void 0).toString()}function o(t,e){let i=u("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),a=document.body;a.appendChild(i),i.click(),a.removeChild(i);}function r(t,e,i){return t&&(({props:a,point:s,id:o,isMulti:r})=>{if(a)for(const h of t)if(h in a){s.meta[e]=(i||n).call(this,r?a[h][r]:a[h],o);break}})}const n=(t,e)=>parseInt("object"==typeof t?t[e]:t),h=(t,e)=>t&&e.split(" ").every((e=>e&&L.DomUtil.addClass(t,e))),l=(t,e)=>t&&e.split(" ").every((e=>e&&L.DomUtil.removeClass(t,e))),d=(t,e,i)=>(i?h:l)(t,e),_=(t,e,i)=>e&&l(t,e)||i&&h(t,i),c=(t,e,i)=>void 0===i&&L.DomUtil.getStyle(t,e)||t.style.setProperty(e,i),m=(t,e)=>{for(let i in e)t.setAttribute(i,e[i]);},p=(t,e,i,a)=>t[a?"on":"off"](e,i),u=(t,e,i,a)=>{let s=L.DomUtil.create(t,e||"");return i&&m(s,i),a&&f(a,s),s},f=(t,e)=>t.appendChild(e),g=(t,e,i)=>t.insertAdjacentElement(i,e),y=(t,e)=>(e||document).querySelector(t),v=(t,e)=>{for(let i in t)e(t[i],i);},k=()=>Math.random().toString(36).substr(2,9),{on:M,off:w}=L.DomEvent,{throttle:S,wrapNum:b}=L.Util,{hasClass:C}=L.DomUtil,x=L.Util.formatNum,E=(t,e)=>e?t<e[0]?e[0]:t>e[1]?e[1]:t:t,D=(t,e,i)=>Math.abs(t-e)>i?e+i*Math.sign(t-e):t;function O(t,e=[],i=[]){switch(!t||typeof t){case"object":const a=i.filter((e=>t===e.original))[0];if(a)return a.copy;const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return i.push({original:t,copy:s}),Object.getOwnPropertyNames(t).forEach((function(a){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:e.includes(a)?o.value:O(o.value,e,i)});})),s;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var A=Object.freeze({__proto__:null,Colors:t,addClass:h,append:f,clamp:E,cloneDeep:O,coordPropsToMeta:r,create:u,drawCanvas:function(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath();},each:v,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():e=>t(e):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let s=Math.floor(t/a),o=Math.floor((t-s*a)/i),r=Math.floor((t-s*a-o*i)/e),n=Math.round((t-s*a-o*i-r*e)/1e3);return 60===n&&(r++,n=0),60===r&&(o++,r=0),24===o&&(s++,o=0),(s?s+"d ":"")+o.toString().padStart(2,0)+":"+r.toString().padStart(2,0)+"'"+n.toString().padStart(2,0)+'"'},hasClass:C,iAvg:(t,e=0,i=1)=>(t+e*(i-1))/i,iMax:(t,e=-1/0)=>t>e?t:e,iMin:(t,e=1/0)=>t<e?t:e,iSum:(t,e=0)=>t+e,insert:g,off:w,on:M,parseDate:(t,e)=>new Date(Date.parse("object"==typeof t?t[e]:t)),parseNumeric:n,randomId:k,removeClass:l,replaceClass:_,resolveURL:s,round:x,saveFile:o,select:y,setAttributes:m,style:c,throttle:S,toggleClass:d,toggleEvent:p,toggleStyle:(t,e,i,a)=>c(t,e,a?i:""),wrapDelta:D,wrapNum:b}),P={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?url.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=(t,e)=>t);const T=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:P,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData(t,e){this.import(this.__D3).then((()=>{this._modulesLoaded?(e=e??(t.on&&t),this._addData(t),this._addLayer(e),this._fireEvt("eledata_added",{data:t,layer:e,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,e)));}));},addTo(t){if(this.options.detached){let e=y(this.options.elevationDiv),i=this.onAdd(t);e?f(e,i):g(t.getContainer(),i,"afterend");}else L.Control.prototype.addTo.call(this,t);return this},clear(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(this._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart();},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:e})=>this.off("elechart_updated",t,e))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear());},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers());},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag();},enableBrush(){this._chart._brushEnabled=!0;},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom();},enableZoom(){this._chart._zoomEnabled=!0;},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t);},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){c(this._container,"display","none");},initialize(e){e=L.setOptions(this,L.extend({},O(P),e)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],e.trkStart||P.trkStart),this._end=L.circleMarker([0,0],e.trkEnd||P.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},e.followMarker&&(this._setMapView=S(this._setMapView,300,this)),e.legend&&(e.margins.bottom+=30),e.theme&&(e.polylineSegments.className+=" "+e.theme),!0===e.wptIcons&&(e.wptIcons=P.wptIcons),!0===e.distanceMarkers&&(e.distanceMarkers=P.distanceMarkers),e.trkStart&&this._start.addTo(this._circleMarkers),e.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(e.polylineSegments),L.extend(t,e.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize();},import(t,e){switch(t){case this.__D3:e="object"!=typeof d3;break;case this.__TOGEOJSON:e="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:e="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:e="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:e="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:e="function"!=typeof L.Hotline;}return !1!==e?Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(s(t,this.options.srcFolder))); }):Promise.resolve()},load(t){this._parseFromString(t).then((e=>e?this._loadLayer(e):this._loadFile(t)));},onAdd(t){this._map=t;let e=this._container=u("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+k()}:{});return this.eleDiv||(this.eleDiv=e),this._loadModules(this.options.handlers).then((()=>{this._initChart(e),this._initButton(e),this._initSummary(e),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded");})),this.fire("add"),e},onRemove(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),w(t.getContainer(),"mousewheel",this._resetDrag,this),w(t.getContainer(),"touchstart",this._resetDrag,this),w(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove");},redraw(){this._resizeChart();},setZFollow(t){this.options.zFollow=t;},show(){c(this._container,"display","block");},_addData(t){if(t){if("FeatureCollection"===t.type)return v(t.features,(t=>this._addData(t)));if("Feature"===t.type){let e=t.geometry;if(e)switch(e.type){case"LineString":return this._addGeoJSONData(e.coordinates,t.properties);case"MultiLineString":return v(e.coordinates,((e,i)=>this._addGeoJSONData(e,t.properties,i)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+e.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,e,i){let a=e&&e.coordinateProperties||e;t.forEach(((t,e)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[e>0?e-1:0][t]:this._data[e>0?e-1:0],this.fire("elepoint_init",{point:t,props:a,id:e,isMulti:i}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr]);})),this.fire("eletrack_added",{coords:t,index:this._data.length-1});},_addPoint(t,e,i){this.options.reverseCoords&&([t,e]=[e,t]),this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1});},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:e})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[e+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,e){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(e),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this);})));})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t);})):Promise.resolve()},_initHotLine(t){let e="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let i=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),a=L.hotline(i.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[e+"_min"])?this.track_info[e+"_min"]:0,max:isFinite(this.track_info[e+"_max"])?this.track_info[e+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),s=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:e})=>{t.setStyle({opacity:"add"==e?0:s}),a["add"==e?"addTo":"removeFrom"](t._map),a._renderer&&a._renderer._container.parentElement.insertBefore(a._renderer._container,a._renderer._container.parentElement.firstChild);}));}}));})):Promise.resolve()},_initMapIntegrations(t){let e=this._map;e?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(t),this._initAlmostOverHandler(e,t),this._initDistanceMarkers(),this._initEdgeScale(e)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(e)),this._circleMarkers.addTo(e)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),e.invalidateSize();}))):this.once("add",(()=>this._initMapIntegrations(t)));},_collapse(){_(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize();},_expand(){_(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize();},_fixCanvasPaths(){let e=L.Canvas.prototype._fillStroke,i=this,a=this.options.theme.split(" ")[0].replace("-theme",""),s=t[a]||{};L.Canvas.include({_fillStroke(t,o){if(i._layers.hasLayer(o)){let i=o.options;if(i.color=s.line||s.area||a,i.stroke=!!i.color,e.call(this,t,o),i.stroke&&0!==i.weight){let e=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=s.outline||"#FFF",t.lineWidth=1.75*i.weight,t.stroke(),t.globalCompositeOperation=e;}}else e.call(this,t,o);}});},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:e})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,e),this._chart._showDiagramIndicator(t,e)),this._updateMarker(t);}))));},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i);},_hideMarker(){this.options.autohideMarker&&this._marker.remove();},_initChart(t){let e=this.options,i=this._map;if(e.detached){let{offsetWidth:t,offsetHeight:i}=this.eleDiv;t>0&&(e.width=t),i>20&&(e.height=i-20);}else {let{clientWidth:t}=i.getContainer();e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>t&&(e.width=t-30);}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((a=>{let s=this._chart=new(a[1]||T).Chart(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(s.render()),s.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),i.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),M(i.getContainer(),"mousewheel",this._resetDrag,this),M(i.getContainer(),"touchstart",this._resetDrag,this),M(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary();}));},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:e})=>{let i=t.getElement&&t.getElement();d(i,this.options.polyline.className+" "+this.options.theme,"layeradd"==e),p(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==e),p(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==e);}));},_initMarker(t){let e=t.getPane("elevationPane");e||(e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),e.style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((t=>{this._marker=new(t[1]||T).Marker(this.options,this),this.fire("elechart_marker");}));},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(M(t,"mouseover",this._expand,this),M(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let e=this._button=u("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);M(e,"click",L.DomEvent.stop),M(e,"click",this._toggle,this),M(e,"focus",this._toggle,this),fetch(s(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>e.innerHTML=t))));}},_initSummary(t){this.import(this.__LSUMMARY).then((e=>{this._summary=new(e||T).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render());}));}));},_loadFile(t){fetch(t).then((t=>t.text())).then((e=>{this._downloadURL=t,this._parseFromString(e).then((t=>t&&this._loadLayer(t)));})).catch((t=>console.warn(t)));},_loadModules(t){let e=(t=t.map((t=>"string"==typeof t&&void 0!==T[t]?T[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(e).then((e=>{v(e,((e,i)=>{let a=e&&Object.keys(e)[0];a&&(t[i]=T[a]=T[a]??e[a]);})),v(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)));}))},_loadLayer(t){let{polyline:e,theme:i,waypoints:a,wptIcons:s,wptLabels:o,distanceMarkers:r}=this.options,n=L.extend({},e);i&&(n.className+=" "+i),t.name&&(this.track_info.name=t.name);let h=L.geoJson(t,{distanceMarkers:r,style:n,pointToLayer:(t,e)=>{if(a){let{desc:i,name:r,sym:n}=t.properties;if(i=i||"",r=r||"",[!0,"dots"].includes(a)&&this._registerCheckPoint({latlng:e,label:[!0,"dots"].includes(o)?r:""}),[!0,"markers"].includes(a)&&0!=s)return this._registerMarker({latlng:e,sym:(n??r).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(o)&&(r||i)&&decodeURI("<b>"+r+"</b>"+(i.length>0?"<br>"+i:""))})}},onEachFeature:(t,e)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,e)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(h);const e={data:t,layer:h,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",e):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",e)));})),h},_onDragEnd({dragstart:t,dragend:e}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,e.latlng])),this.fire("elechart_dragged");},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse();},_onMouseEnter(){this.fire("elechart_enter");},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let e=this._findItemForX(t);e&&(this._chartEnabled&&this._chart._showDiagramIndicator(e,t),this._updateMarker(e),this._setMapView(e),this._map&&h(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:t}),this.fire("elechart_hover",{data:e,xCoord:t}));}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let e=this._findItemForLatLng(t);if(e){let t=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,t),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:t});}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave");},_onRulerFilter({coords:t}){this._updateMapSegments(t);},_onToggleChart({name:t,enabled:e}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>d(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=e||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove());},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((e=>this.import(this.__TOGEOJSON).then((()=>{let i;try{i=this._parseFromXMLString(t.trim());}catch(e){i=this._parseFromGeoJSONString(t.toString());}i&&(i.name=i.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),e(i);}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw "Invalid XML";let e=(new DOMParser).parseFromString(t,"text/xml"),i=e.documentElement.tagName.toLowerCase(),a=e.getElementsByTagName("name");if(e.getElementsByTagName("parsererror").length)throw "Invalid XML";i in toGeoJSON||(i="TrainingCenterDatabase"==e.documentElement.tagName?"tcx":"gpx");let s=toGeoJSON[i](e);return s.name=a.length>0?(Array.from(a).find((t=>"trk"==t.parentElement.tagName))??a[0]).textContent:"",s},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)));},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)));},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)));},_registerCheckPoint(t){const e=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",e).once("eledata_clear",(()=>this.off("elechart_updated",e)));},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(e=>t.coordPropsToMeta.call(this,e)));let e,i,a,s=t.attr||t.name,o={};this.on("elepoint_added",(({index:r,point:n})=>{if(e=r,a=i??this._data[e],i=this._data[e],i[s]=t.pointToAttr.call(this,n,e),e>0&&isNaN(a[s])&&(isNaN(o[s])||isNaN(i[s])?isNaN(o[s])?isNaN(i[s])||(a[s]=i[s]):a[s]=o[s]:a[s]=(o[s]+i[s])/2,t.meta&&(a[t.meta]=a[s])),!isNaN(i[s])){if(o[s]=i[s],t.deltaMax&&(i[s]=D(i[s],a[s],t.deltaMax)),t.clampRange&&(i[s]=E(i[s],t.clampRange)),isNaN(t.decimals)||(i[s]=x(i[s],t.decimals)),t.stats)for(const e in t.stats){let a=(t.statsName||s)+(""!=e?"_":"");this.track_info[a+e]=t.stats[e].call(this,i[s],this.track_info[a+e],this._data.length);}t.onPointAdded&&t.onPointAdded.call(this,i[s],e,n);}}));},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:e,attr:i,required:a,deltaMax:s,clampRange:o,decimals:n,meta:h,unit:l,coordinateProperties:d,coordPropsToMeta:_,pointToAttr:c,onPointAdded:m,stats:p,statsName:u,grid:f,scale:g,path:y,tooltip:k,summary:M}=t;(this.options[e]||a)&&(this._registerDataAttribute({name:e,attr:i,meta:h,deltaMax:s,clampRange:o,decimals:n,coordPropsToMeta:r(d,h||e,_),pointToAttr:c,onPointAdded:m,stats:p,statsName:u}),f&&this._registerAxisGrid(L.extend({name:e},f)),"summary"!==this.options[e]&&(g&&this._registerAxisScale(L.extend({name:e,label:l},g)),y&&this._registerAreaPath(L.extend({name:e},y))),(k||t.tooltips)&&v([k,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:e},t)))),M&&(v(M,((t,e)=>M[e]=L.extend({unit:l},t))),this._registerSummary(M)));},_registerMarker({latlng:t,sym:e,content:i}){let{wptIcons:a}=this.options;a.hasOwnProperty(e)||(a[e]=L.divIcon(L.extend({},a[""].options,{html:'<i class="elevation-waypoint-icon '+e+'"></i>'})));let s=L.marker(t,{icon:a[e]});return i&&(s.bindPopup(i,{className:"elevation-popup",keepInView:!0}).openPopup(),s.bindTooltip(i,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(s)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))));},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)));},_resetDrag(){this._chart._resetDrag(),this._hideMarker();},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds());},_resizeChart(){if(this._container&&"none"!=c(this._container,"display")){let t=this.options,e=t.detached?(this.eleDiv||this._container).offsetWidth:E(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);e&&(t.width=e,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments();}},_toggle(){C(this._container,"elevation-expanded")?this._collapse():this._expand();},_setMapView(t){if(this._map&&this.options.followMarker){let e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25});}},_updateChart(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"));},_updateMarker(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options});},_rotateMarker(){this._marker&&this._marker.update();},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map);},_updateSummary(){this._summary&&(this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",y(".download a",this._summary._container).onclick=t=>{t.preventDefault();let e={downloadLink:this.options.downloadLink,confirm:o.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:e})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||e.confirm(),this.fire("eletrack_download",e);}));},_width(){if(this._chart)return this._chart._width();const{width:t,margins:e}=this.options;return t-e.left-e.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:e}=this.options;return t-e.top-e.bottom}});T.Utils=A,L.control.elevation=t=>new T(t);}));
|
|
18968
|
-
|
|
18969
15651
|
createCommonjsModule(function (module, exports) {
|
|
18970
15652
|
!function(e,t){t(exports);}(commonjsGlobal,function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated;},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(n,s){if(!L.Util.isArray(n))return this.addLayer(n);var o,a=this._featureGroup,h=this._nonPointGroup,l=this.options.chunkedLoading,u=this.options.chunkInterval,_=this.options.chunkProgress,d=n.length,p=0,c=!0;if(this._map){var f=(new Date).getTime(),m=L.bind(function(){var e=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();p<d;p++){if(l&&p%200==0){var t=(new Date).getTime()-e;if(u<t)break}if((o=n[p])instanceof L.LayerGroup)c&&(n=n.slice(),c=!1),this._extractNonGroupLayers(o,n),d=n.length;else if(o.getLatLng){if(!this.hasLayer(o)&&(this._addLayer(o,this._maxZoom),s||this.fire("layeradd",{layer:o}),o.__parent&&2===o.__parent.getChildCount())){var i=o.__parent.getAllChildMarkers(),r=i[0]===o?i[1]:i[0];a.removeLayer(r);}}else h.addLayer(o),s||this.fire("layeradd",{layer:o});}_&&_(p,d,(new Date).getTime()-f),p===d?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(m,this.options.chunkDelay);},this);m();}else for(var e=this._needsClustering;p<d;p++)(o=n[p])instanceof L.LayerGroup?(c&&(n=n.slice(),c=!1),this._extractNonGroupLayers(o,n),d=n.length):o.getLatLng?this.hasLayer(o)||e.push(o):h.addLayer(o);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),h=r;for(t=0;t<h;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),h=a.length):this._unspiderfyLayer(i);}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent;},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(i=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){i=!1;break}i&&e.call(t,s[r]);}this._nonPointGroup.eachLayer(e,t);},getLayers:function(){var t=[];return this.eachLayer(function(e){t.push(e);}),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer(function(e){L.stamp(e)===t&&(i=e);}),i},hasLayer:function(e){if(!e)return !1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return !0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return !1;return !(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()));};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds());},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw "Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0);},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null;},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng;},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup();}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e);},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng);},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var h,l=e.__parent,u=l._markers;for(this._arraySplice(u,e);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)t&&l._childCount<=1?(h=l._markers[0]===e?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),n[l._zoom].addObject(h,o.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete e.__parent;},_isOrIsParent:function(e,t){for(;t;){if(e===t)return !0;t=t.parentNode;}return !1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e;}L.FeatureGroup.prototype.fire.call(this,e,t,i);},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this));},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus();}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)));},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null);},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this));},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds());},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e;}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1);},_addLayer:function(e,t){var i,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);o<=t;t--){i=this._map.project(e.getLatLng(),t);var a=n[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=s[t].getNearObject(i)){var h=a.__parent;h&&this._removeLayer(a,!1);var l=new this._markerCluster(this,t,a,e);n[t].addObject(l,this._map.project(l._cLatLng,t)),a.__parent=l;var u=e.__parent=l;for(r=t-1;r>h._zoom;r--)u=new this._markerCluster(this,r,u),n[r].addObject(u,this._map.project(a.getLatLng(),r));return h._addChild(u),void this._removeFromGridUnclustered(a,t)}s[t].addObject(e,i);}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel;},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon();});},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300));},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null;},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd();},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1]);}else t._updateIcon();},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return [e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend");},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend");},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t);}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++;},_animationZoomIn:function(n,s){var o,a=this._getExpandedVisibleBounds(),h=this._featureGroup,e=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(a,n,e,function(e){var t,i=e._latlng,r=e._markers;for(a.contains(i)||(i=null),e._isSingleParent()&&n+1===s?(h.removeLayer(e),e._recursivelyAddChildrenToMap(null,s,a)):(e.clusterHide(),e._recursivelyAddChildrenToMap(i,s,a)),o=r.length-1;0<=o;o--)t=r[o],a.contains(t._latlng)||h.removeLayer(t);}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,s),h.eachLayer(function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow();}),this._topClusterLevel._recursively(a,n,s,function(e){e._recursivelyRestoreChildPositions(s);}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,n,e,function(e){h.removeLayer(e),e.clusterShow();}),this._animationEnd();});},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds());},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){r.removeLayer(e),e.clusterShow(),i._animationEnd();})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)));}},_animationZoomOutSingle:function(t,i,r){var n=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,s,i+1,r);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,r),this._enqueue(function(){if(1===t._childCount){var e=t._markers[0];this._ignoreMove=!0,e.setLatLng(e.getLatLng()),this._ignoreMove=!1,e.clusterShow&&e.clusterShow();}else t._recursively(n,r,s,function(e){e._recursivelyRemoveChildrenFromMap(n,s,i+1);});o._animationEnd();});},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend");},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth);}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r);},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<i.length&&s<n;){s++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=a;}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,e);},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this);},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0);},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng);},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0);},_recalculateBounds:function(){var e,t,i,r,n=this._markers,s=this._childClusters,o=0,a=0,h=this._childCount;if(0!==h){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),o+=i.lat,a+=i.lng;for(e=0;e<s.length;e++)(t=s[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,o+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/h,a/h),this._boundsNeedUpdate=!1;}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this);},_recursivelyAnimateChildrenIn:function(e,n,t){this._recursively(e,this._group._map.getMinZoom(),t-1,function(e){var t,i,r=e._markers;for(t=r.length-1;0<=t;t--)(i=r[t])._icon&&(i._setPos(n),i.clusterHide());},function(e){var t,i,r=e._childClusters;for(t=r.length-1;0<=t;t--)(i=r[t])._icon&&(i._setPos(n),i.clusterHide());});},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,r,n){this._recursively(t,n,i,function(e){e._recursivelyAnimateChildrenIn(t,e._group._map.latLngToLayerPoint(e.getLatLng()).round(),r),e._isSingleParent()&&r-1===n?(e.clusterShow(),e._recursivelyRemoveChildrenFromMap(t,i,r)):e.clusterHide(),e._addToMap();});},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow();});},_recursivelyAddChildrenToMap:function(r,n,s){this._recursively(s,this._group._map.getMinZoom()-1,n,function(e){if(n!==e._zoom)for(var t=e._markers.length-1;0<=t;t--){var i=e._markers[t];s.contains(i._latlng)&&(r&&(i._backupLatlng=i.getLatLng(),i.setLatLng(r),i.clusterHide&&i.clusterHide()),e._group._featureGroup.addLayer(i));}},function(e){e._addToMap(r);});},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng);}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e);},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng);},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,s;this._recursively(e,t-1,i-1,function(e){for(s=e._markers.length-1;0<=s;s--)n=e._markers[s],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow());},function(e){for(s=e._childClusters.length-1;0<=s;s--)n=e._childClusters[s],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow());});},_recursively:function(e,t,i,r,n){var s,o,a=this._childClusters,h=this._zoom;if(t<=h&&(r&&r(this),n&&h===i&&n(this)),h<t||h<i)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),e.intersects(o._bounds)&&o._recursively(e,t,i,r,n);},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={};},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,s=n[r]=n[r]||{},o=s[i]=s[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,o.push(e);},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t);},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),s=this._getCoord(t.y),o=this._grid,a=o[s]=o[s]||{},h=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=h.length;i<r;i++)if(h[i]===e)return h.splice(i,1),1===r&&delete a[n],!0},eachObject:function(e,t){var i,r,n,s,o,a,h=this._grid;for(i in h)for(r in o=h[i])for(n=0,s=(a=o[r]).length;n<s;n++)e.call(t,a[n])&&(n--,s--);},getNearObject:function(e){var t,i,r,n,s,o,a,h,l=this._getCoord(e.x),u=this._getCoord(e.y),_=this._objectPoint,d=this._sqCellSize,p=null;for(t=u-1;t<=u+1;t++)if(n=this._grid[t])for(i=l-1;i<=l+1;i++)if(s=n[i])for(r=0,o=s.length;r<o;r++)a=s[r],((h=this._sqDist(_[L.Util.stamp(a)],e))<d||h<=d&&null===p)&&(d=h,p=a);return p},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return (t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,s=0,o=null,a=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(a.push(r),s<n&&(s=n,o=r));return {maxPoint:o,newPoints:a}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,s=!1,o=null,a=null,h=null,l=null,u=null,_=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(o=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(h=d).lng),(!1===s||d.lng<s)&&(s=(l=d).lng);}return u=r!==i?(_=a,o):(_=l,h),[].concat(this.buildConvexHull([_,u],e),this.buildConvexHull([u,_],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e);}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null);},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,s=this._2PI/e,o=[];for(n=Math.max(n,35),o.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*s,o[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,h=[];for(i=h.length=e;0<=i;i--)i<e&&(h[i]=new L.Point(t.x+n*Math.cos(a),t.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*i);return h},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=s.length-1;0<=t;t--)e=s[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null;}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,s,o=this._group,a=o._map,h=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<e.length;i++)s=a.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,s],l),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),h.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:e});},_animationUnspiderfy:function(){this._noanimationUnspiderfy();}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,s,o,a,h=this,l=this._group,u=l._map,_=l._featureGroup,d=this._latlng,p=u.latLngToLayerPoint(d),c=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),m=f.opacity;for(void 0===m&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),c?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=m,l._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],a=u.layerPointToLatLng(t[i]),n=new L.Polyline([d,a],f),u.addLayer(n),r._spiderLeg=n,c&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),_.addLayer(r),r._setPos&&r._setPos(p);for(l._forceLayout(),l._animationStart(),i=e.length-1;0<=i;i--)a=u.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),c&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:m}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:e});},200);},_animationUnspiderfy:function(e){var t,i,r,n,s,o,a=this,h=this._group,l=h._map,u=h._featureGroup,_=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,o=!0,t._setPos&&(t._setPos(_),o=!1),t.clusterHide&&(t.clusterHide(),o=!1),o&&u.removeLayer(t),p&&(s=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&u.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:d});},200);}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments);},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this);},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy();},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this);},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e));},_unspiderfyWrapper:function(){this._unspiderfy();},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e);},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy();},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg);}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent;},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i));}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0});});
|
|
18971
15653
|
//# sourceMappingURL=leaflet.markercluster.js.map
|
|
@@ -18975,7 +15657,7 @@ function getTrekGeometry(id) {
|
|
|
18975
15657
|
return fetch(`${store.state.api}trek/${id}/?language=${store.state.language}&published=true&fields=geometry`, { cache: 'default' }).then(response => response.json());
|
|
18976
15658
|
}
|
|
18977
15659
|
|
|
18978
|
-
const grwMapCss = "@charset \"UTF-8\";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:\"Helvetica Neue\", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \"Lucida Console\", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z\"/></svg>');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(32, 116, 182)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(252, 132, 40)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, \"\")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:\"✖\";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:\"\";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:\" — \"}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-35px 35px 0px 35px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000001 !important}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000000 !important}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:48px;height:48px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon img{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}";
|
|
15660
|
+
const grwMapCss = "@charset \"UTF-8\";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:\"Helvetica Neue\", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \"Lucida Console\", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:\"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:\"\"}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"black\" d=\"M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z\"/></svg>');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(32, 116, 182)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url('data:image/svg+xml;charset=UTF-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"rgb(252, 132, 40)\" d=\"M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z\"/></svg>')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:\" — \"}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:\"✖\";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - var(--map-bottom-space-height))}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000001 !important}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px !important;height:14px !important;border:4px #ffffff solid;z-index:4000000 !important}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:48px;height:48px}.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon img{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}";
|
|
18979
15661
|
|
|
18980
15662
|
const GrwMap = class {
|
|
18981
15663
|
constructor(hostRef) {
|
|
@@ -19739,7 +16421,7 @@ const GrwMap = class {
|
|
|
19739
16421
|
elevationDiv: `#elevation`,
|
|
19740
16422
|
theme: `custom-theme${!this.useGradient ? ' use-theme-color' : ''}`,
|
|
19741
16423
|
detached: true,
|
|
19742
|
-
height:
|
|
16424
|
+
height: 280,
|
|
19743
16425
|
wptIcons: true,
|
|
19744
16426
|
wptLabels: true,
|
|
19745
16427
|
collapsed: false,
|
|
@@ -20573,12 +17255,12 @@ const GrwMap = class {
|
|
|
20573
17255
|
'--layers-image-src': `url(${layersImageSrc})`,
|
|
20574
17256
|
'--contract-image-src': `url(${contractImageSrc})`,
|
|
20575
17257
|
'--map-bottom-space-height': this.isLargeView ? '0px' : '80px',
|
|
20576
|
-
} }, index.h("div", { id: "map",
|
|
17258
|
+
} }, index.h("div", { id: "map", part: "map", class: store.state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), store.state.currentTrek && (index.h("div", null, index.h("div", { id: "elevation", part: "elevation", ref: el => (this.elevationRef = el) }), index.h("div", { part: "map-bottom-space", class: "map-bottom-space" }))), !this.mapIsReady && (index.h("div", { part: "map-loader-container", class: "map-loader-container" }, index.h("span", { part: "loader", class: "loader" })))));
|
|
20577
17259
|
}
|
|
20578
17260
|
};
|
|
20579
17261
|
GrwMap.style = grwMapCss;
|
|
20580
17262
|
|
|
20581
|
-
const grwSearchCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host
|
|
17263
|
+
const grwSearchCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{color:var(--color-on-primary-container);font-size:24px;position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}";
|
|
20582
17264
|
|
|
20583
17265
|
const GrwSearch = class {
|
|
20584
17266
|
constructor(hostRef) {
|
|
@@ -20588,19 +17270,19 @@ const GrwSearch = class {
|
|
|
20588
17270
|
onSearchChange(event) {
|
|
20589
17271
|
store.state.searchValue = event.target.value;
|
|
20590
17272
|
if (store.state.mode === 'treks') {
|
|
20591
|
-
store.state.currentTreks = utils
|
|
17273
|
+
store.state.currentTreks = utils.handleTreksFiltersAndSearch();
|
|
20592
17274
|
}
|
|
20593
17275
|
else if (store.state.mode === 'touristicContents') {
|
|
20594
|
-
store.state.currentTouristicContents = utils
|
|
17276
|
+
store.state.currentTouristicContents = utils.handleTouristicContentsFiltersAndSearch();
|
|
20595
17277
|
}
|
|
20596
17278
|
else if (store.state.mode === 'touristicEvents') {
|
|
20597
|
-
store.state.currentTouristicEvents = utils
|
|
17279
|
+
store.state.currentTouristicEvents = utils.handleTouristicEventsFiltersAndSearch();
|
|
20598
17280
|
}
|
|
20599
17281
|
}
|
|
20600
17282
|
render() {
|
|
20601
17283
|
return (index.h(index.Host, { style: {
|
|
20602
17284
|
'--font-family': this.fontFamily,
|
|
20603
|
-
} }, index.h("span", {
|
|
17285
|
+
} }, index.h("span", { part: "icon", class: "material-symbols material-symbols-outlined icon", translate: false }, "search"), index.h("input", { part: "search-input", class: "search-input", onInput: e => this.onSearchChange(e), type: "search", placeholder: "Rechercher", value: store.state.searchValue })));
|
|
20604
17286
|
}
|
|
20605
17287
|
};
|
|
20606
17288
|
GrwSearch.style = grwSearchCss;
|
|
@@ -20618,41 +17300,41 @@ const GrwSegmentedSegment = class {
|
|
|
20618
17300
|
changeMode(mode) {
|
|
20619
17301
|
store.state.searchValue = '';
|
|
20620
17302
|
if (mode === 'treks' && store.state.currentTreks) {
|
|
20621
|
-
utils
|
|
17303
|
+
utils.treksFilters.forEach(filter => {
|
|
20622
17304
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
20623
17305
|
});
|
|
20624
17306
|
store.state.selectedActivitiesFilters = 0;
|
|
20625
17307
|
store.state.selectedThemesFilters = 0;
|
|
20626
17308
|
store.state.selectedLocationFilters = 0;
|
|
20627
|
-
store.state.currentTreks = utils
|
|
17309
|
+
store.state.currentTreks = utils.handleTreksFiltersAndSearch();
|
|
20628
17310
|
}
|
|
20629
17311
|
else if (mode === 'touristicContents' && store.state.currentTouristicContents) {
|
|
20630
|
-
utils
|
|
17312
|
+
utils.touristicContentsFilters.forEach(filter => {
|
|
20631
17313
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
20632
17314
|
});
|
|
20633
17315
|
store.state.selectedActivitiesFilters = 0;
|
|
20634
17316
|
store.state.selectedLocationFilters = 0;
|
|
20635
|
-
store.state.currentTouristicContents = utils
|
|
17317
|
+
store.state.currentTouristicContents = utils.handleTouristicContentsFiltersAndSearch();
|
|
20636
17318
|
}
|
|
20637
17319
|
else if (mode === 'touristicEvents' && store.state.currentTouristicEvents) {
|
|
20638
|
-
utils
|
|
17320
|
+
utils.touristicEventsFilters.forEach(filter => {
|
|
20639
17321
|
store.state[filter.property].forEach(currentFilter => (currentFilter.selected = false));
|
|
20640
17322
|
});
|
|
20641
17323
|
store.state.selectedActivitiesFilters = 0;
|
|
20642
17324
|
store.state.selectedLocationFilters = 0;
|
|
20643
|
-
store.state.currentTouristicEvents = utils
|
|
17325
|
+
store.state.currentTouristicEvents = utils.handleTouristicEventsFiltersAndSearch();
|
|
20644
17326
|
}
|
|
20645
17327
|
store.state.mode = mode;
|
|
20646
17328
|
}
|
|
20647
17329
|
render() {
|
|
20648
17330
|
return (index.h(index.Host, { style: {
|
|
20649
17331
|
'--font-family': this.fontFamily,
|
|
20650
|
-
} }, index.h("div", { class: "segmented-buttons-container" }, this.treks && (index.h("label", { class: `segment${store.state.mode === 'treks' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('treks') }, i18n.translate[store.state.language].home.segment.treks)), this.touristicContents && (index.h("label", { class: `segment${store.state.mode === 'touristicContents' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('touristicContents') }, i18n.translate[store.state.language].home.segment.touristicContents)), this.touristicEvents && (index.h("label", { class: `segment${store.state.mode === 'touristicEvents' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('touristicEvents') }, i18n.translate[store.state.language].home.segment.touristicEvents)))));
|
|
17332
|
+
} }, index.h("div", { part: "segmented-buttons-container", class: "segmented-buttons-container" }, this.treks && (index.h("label", { part: "segment", class: `segment${store.state.mode === 'treks' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('treks') }, i18n.translate[store.state.language].home.segment.treks)), this.touristicContents && (index.h("label", { part: "segment", class: `segment${store.state.mode === 'touristicContents' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('touristicContents') }, i18n.translate[store.state.language].home.segment.touristicContents)), this.touristicEvents && (index.h("label", { part: "segment", class: `segment${store.state.mode === 'touristicEvents' ? ' selected-segment' : ''}`, onClick: () => this.changeMode('touristicEvents') }, i18n.translate[store.state.language].home.segment.touristicEvents)))));
|
|
20651
17333
|
}
|
|
20652
17334
|
};
|
|
20653
17335
|
GrwSegmentedSegment.style = grwSegmentedSegmentCss;
|
|
20654
17336
|
|
|
20655
|
-
const grwSelectLanguageCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host
|
|
17337
|
+
const grwSelectLanguageCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";
|
|
20656
17338
|
|
|
20657
17339
|
const GrwSelectLanguage = class {
|
|
20658
17340
|
constructor(hostRef) {
|
|
@@ -20665,7 +17347,7 @@ const GrwSelectLanguage = class {
|
|
|
20665
17347
|
store.state.language = event.target.value;
|
|
20666
17348
|
}
|
|
20667
17349
|
render() {
|
|
20668
|
-
return (index.h(index.Host, null, index.h("span", {
|
|
17350
|
+
return (index.h(index.Host, null, index.h("span", { part: "select-language-icon", class: "material-symbols material-symbols-outlined icon", translate: false }, "translate"), index.h("select", { part: "select-language-select", onInput: event => this.handleSelect(event), name: "languages", id: "language-select" }, store.state.languages.map(language => (index.h("option", { part: "select-language-option", selected: language === store.state.language, value: language.toLocaleLowerCase() }, language.toLocaleUpperCase()))))));
|
|
20669
17351
|
}
|
|
20670
17352
|
};
|
|
20671
17353
|
GrwSelectLanguage.style = grwSelectLanguageCss;
|
|
@@ -21633,7 +18315,7 @@ function freeMode({
|
|
|
21633
18315
|
});
|
|
21634
18316
|
}
|
|
21635
18317
|
|
|
21636
|
-
const grwTouristicContentDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}";
|
|
18318
|
+
const grwTouristicContentDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}";
|
|
21637
18319
|
|
|
21638
18320
|
const GrwTouristicContentDetail = class {
|
|
21639
18321
|
constructor(hostRef) {
|
|
@@ -21698,21 +18380,18 @@ const GrwTouristicContentDetail = class {
|
|
|
21698
18380
|
: store.state.languages && store.state.languages.length > 1
|
|
21699
18381
|
? '204px'
|
|
21700
18382
|
: '164px',
|
|
21701
|
-
} }, store.state.currentTouristicContent && (index.h("div", { class: "touristic-content-detail-container", ref: el => (this.touristicContentDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.currentTouristicContent.attachments.length > 0 ? (store.state.currentTouristicContent.attachments
|
|
18383
|
+
} }, store.state.currentTouristicContent && (index.h("div", { part: "touristic-content-detail-container", class: "touristic-content-detail-container", ref: el => (this.touristicContentDetailContainerRef = el) }, index.h("div", { part: "images-container", class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { part: "swiper-images", class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.currentTouristicContent.attachments.length > 0 ? (store.state.currentTouristicContent.attachments
|
|
21702
18384
|
.filter(attachment => attachment.type === 'image')
|
|
21703
18385
|
.map(attachment => {
|
|
21704
18386
|
const legend = [attachment.legend, attachment.author].filter(Boolean).join(' - ');
|
|
21705
|
-
return (index.h("div", { class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { class: "close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", {
|
|
18387
|
+
return (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { part: "close-fullscreen-button", class: "close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", { part: "icon", class: "material-symbols material-symbols-outlined icon", translate: false }, "close"))), index.h("div", { part: "legend-container", class: "legend-container" }, legend), index.h("img", { part: "image", class: "image",
|
|
21706
18388
|
/* @ts-ignore */
|
|
21707
|
-
crossorigin: "anonymous",
|
|
21708
|
-
|
|
21709
|
-
})) : (index.h("div", { class: "swiper-slide" }, index.h("img", {
|
|
18389
|
+
crossorigin: "anonymous", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() })));
|
|
18390
|
+
})) : (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("img", { part: "default-poi-img", class: "default-poi-img",
|
|
21710
18391
|
/* @ts-ignore */
|
|
21711
|
-
crossorigin: "anonymous", class: "
|
|
21712
|
-
})))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-content-category-container" }, index.h("img", {
|
|
18392
|
+
crossorigin: "anonymous", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { part: "swiper-pagination", class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { part: "swiper-button-prev", class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { part: "swiper-button-next", class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { part: "touristic-content-category-container", class: "touristic-content-category-container" }, index.h("img", { part: "touristic-content-category-img", class: "touristic-content-category-img",
|
|
21713
18393
|
/* @ts-ignore */
|
|
21714
|
-
crossorigin: "anonymous", src: touristicContentCategory.pictogram
|
|
21715
|
-
}), index.h("div", { class: "touristic-content-category-name" }, touristicContentCategory.label)), index.h("div", { class: "name" }, store.state.currentTouristicContent.name), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[store.state.language].download), index.h("div", { class: "links-container" }, index.h("a", { href: `${store.state.currentTouristicContent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), store.state.currentTouristicContent.description_teaser && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "description-teaser", innerHTML: store.state.currentTouristicContent.description_teaser }))), index.h("div", { class: "divider" }), store.state.currentTouristicContent.practical_info && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[store.state.language].description), index.h("div", { class: "description", innerHTML: store.state.currentTouristicContent.description }))), cities && cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[store.state.language].city, " :\u00A0"), index.h("div", { innerHTML: cities.join(', ') }))), store.state.currentTouristicContent.practical_info && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "useful-information-container" }, index.h("div", { class: "useful-information-title" }, i18n.translate[store.state.language].usefulInformation, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicContent.practical_info })))), (store.state.currentTouristicContent.contact || store.state.currentTouristicContent.email || store.state.currentTouristicContent.website) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "contact-container" }, index.h("div", { class: "contact-title" }, i18n.translate[store.state.language].contact, " :\u00A0"), store.state.currentTouristicContent.contact && index.h("div", { innerHTML: store.state.currentTouristicContent.contact }), store.state.currentTouristicContent.email && (index.h("div", { class: "email-container" }, index.h("div", null, i18n.translate[store.state.language].email, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicContent.email }))), store.state.currentTouristicContent.website && (index.h("div", { class: "website-container" }, index.h("div", null, i18n.translate[store.state.language].website, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicContent.website })))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
18394
|
+
crossorigin: "anonymous", src: touristicContentCategory.pictogram }), index.h("div", { part: "touristic-content-category-name", class: "touristic-content-category-name" }, touristicContentCategory.label)), index.h("div", { part: "name", class: "name" }, store.state.currentTouristicContent.name), index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "downloads-container", class: "downloads-container" }, index.h("div", { part: "download-title", class: "download-title" }, i18n.translate[store.state.language].download), index.h("div", { part: "links-container", class: "links-container" }, index.h("a", { part: "link-container", class: "link-container", href: `${store.state.currentTouristicContent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { part: "icon", class: "material-symbols material-symbols-outlined icon", translate: false }, "download"), index.h("span", { part: "label", class: "" }, "PDF")))), store.state.currentTouristicContent.description_teaser && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "description-teaser", class: "description-teaser", innerHTML: store.state.currentTouristicContent.description_teaser }))), index.h("div", { part: "divider", class: "divider" }), store.state.currentTouristicContent.practical_info && (index.h("div", { part: "description-container", class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { part: "description-title", class: "description-title" }, i18n.translate[store.state.language].description), index.h("div", { part: "description", class: "description", innerHTML: store.state.currentTouristicContent.description }))), cities && cities.length > 0 && (index.h("div", { part: "cities-container", class: "cities-container" }, index.h("div", { part: "cities-title", class: "cities-title" }, i18n.translate[store.state.language].city, " :\u00A0"), index.h("div", { part: "cities", class: "cities", innerHTML: cities.join(', ') }))), store.state.currentTouristicContent.practical_info && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "useful-information-container", class: "useful-information-container" }, index.h("div", { part: "useful-information-title", class: "useful-information-title" }, i18n.translate[store.state.language].usefulInformation, " :\u00A0"), index.h("div", { part: "useful-information", innerHTML: store.state.currentTouristicContent.practical_info })))), (store.state.currentTouristicContent.contact || store.state.currentTouristicContent.email || store.state.currentTouristicContent.website) && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "contact-container", class: "contact-container" }, index.h("div", { part: "contact-title", class: "contact-title" }, i18n.translate[store.state.language].contact, " :\u00A0"), store.state.currentTouristicContent.contact && index.h("div", { part: "contact", class: "contact", innerHTML: store.state.currentTouristicContent.contact }), store.state.currentTouristicContent.email && (index.h("div", { part: "email-container", class: "email-container" }, index.h("div", { part: "email-title", class: "email-title" }, i18n.translate[store.state.language].email, " :\u00A0"), index.h("div", { part: "email", class: "email", innerHTML: store.state.currentTouristicContent.email }))), store.state.currentTouristicContent.website && (index.h("div", { part: "website-container", class: "website-container" }, index.h("div", { part: "website-title", class: "website-title" }, i18n.translate[store.state.language].website, " :\u00A0"), index.h("div", { part: "website", class: "website", innerHTML: store.state.currentTouristicContent.website })))))), index.h("div", { part: "detail-bottom-space", class: "detail-bottom-space" })))));
|
|
21716
18395
|
}
|
|
21717
18396
|
};
|
|
21718
18397
|
GrwTouristicContentDetail.style = grwTouristicContentDetailCss;
|
|
@@ -21774,7 +18453,7 @@ const GrwTouristicContentProvider = class {
|
|
|
21774
18453
|
}
|
|
21775
18454
|
};
|
|
21776
18455
|
|
|
21777
|
-
const grwTouristicContentsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{
|
|
18456
|
+
const grwTouristicContentsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";
|
|
21778
18457
|
|
|
21779
18458
|
const GrwTouristicContentsList$1 = class {
|
|
21780
18459
|
constructor(hostRef) {
|
|
@@ -21839,7 +18518,7 @@ const GrwTouristicContentsList$1 = class {
|
|
|
21839
18518
|
this.handleInfiniteScrollEvent(false);
|
|
21840
18519
|
}
|
|
21841
18520
|
render() {
|
|
21842
|
-
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.touristicContentsWithinBounds && (index.h("div", { class: "current-touristic-contents-within-bounds-length" }, `${store.state.touristicContentsWithinBounds.length} ${store.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicContents : i18n.translate[store.state.language].home.touristicContent}`)), index.h("div", { class: "touristic-contents-list-container" }, this.touristicContentsToDisplay.map(touristicContent => (index.h("grw-touristic-content-card", {
|
|
18521
|
+
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.touristicContentsWithinBounds && (index.h("div", { part: "current-touristic-contents-within-bounds-length", class: "current-touristic-contents-within-bounds-length" }, `${store.state.touristicContentsWithinBounds.length} ${store.state.touristicContentsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicContents : i18n.translate[store.state.language].home.touristicContent}`)), index.h("div", { part: "touristic-contents-list-container", class: "touristic-contents-list-container" }, this.touristicContentsToDisplay.map(touristicContent => (index.h("grw-touristic-content-card", { exportparts: "touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button", fontFamily: this.fontFamily, key: `touristic-content-${touristicContent.id}`, touristicContent: touristicContent, "is-large-view": this.isLargeView, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })))), index.h("div", { part: "list-bottom-space", class: !this.isLargeView ? 'list-bottom-space' : 'list-large-view-bottom-space' })));
|
|
21843
18522
|
}
|
|
21844
18523
|
get element() { return index.getElement(this); }
|
|
21845
18524
|
};
|
|
@@ -21981,21 +18660,18 @@ const GrwTouristicEventDetail = class {
|
|
|
21981
18660
|
: store.state.languages && store.state.languages.length > 1
|
|
21982
18661
|
? '204px'
|
|
21983
18662
|
: '164px',
|
|
21984
|
-
} }, store.state.currentTouristicEvent && (index.h("div", { class: "touristic-event-detail-container", ref: el => (this.touristicEventDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.currentTouristicEvent.attachments.length > 0 ? (store.state.currentTouristicEvent.attachments
|
|
18663
|
+
} }, store.state.currentTouristicEvent && (index.h("div", { part: "touristic-event-detail-container", class: "touristic-event-detail-container", ref: el => (this.touristicEventDetailContainerRef = el) }, index.h("div", { part: "images-container", class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { part: "swiper-images", class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.currentTouristicEvent.attachments.length > 0 ? (store.state.currentTouristicEvent.attachments
|
|
21985
18664
|
.filter(attachment => attachment.type === 'image')
|
|
21986
18665
|
.map(attachment => {
|
|
21987
18666
|
const legend = [attachment.legend, attachment.author].filter(Boolean).join(' - ');
|
|
21988
|
-
return (index.h("div", { class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { class: "close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "close"))), index.h("div", { class: "legend-container" }, legend), index.h("img", {
|
|
18667
|
+
return (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { part: "close-fullscreen-button", class: "close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", { part: "icon", translate: false, class: "material-symbols material-symbols-outlined icon" }, "close"))), index.h("div", { part: "legend-container", class: "legend-container" }, legend), index.h("img", { part: "image", class: "image",
|
|
21989
18668
|
/* @ts-ignore */
|
|
21990
|
-
crossorigin: "anonymous",
|
|
21991
|
-
|
|
21992
|
-
})) : (index.h("div", { class: "swiper-slide" }, index.h("img", {
|
|
18669
|
+
crossorigin: "anonymous", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() })));
|
|
18670
|
+
})) : (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("img", { part: "default-poi-img", class: "default-poi-img",
|
|
21993
18671
|
/* @ts-ignore */
|
|
21994
|
-
crossorigin: "anonymous", class: "
|
|
21995
|
-
})))), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "touristic-event-category-container" }, index.h("img", {
|
|
18672
|
+
crossorigin: "anonymous", src: defaultImageSrc, loading: "lazy" })))), index.h("div", { part: "swiper-pagination", class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { part: "swiper-button-prev", class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { part: "swiper-button-next", class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { part: "touristic-event-category-container", class: "touristic-event-category-container" }, touristicEventType && touristicEventType.pictogram && (index.h("img", { part: "touristic-event-category-img", class: "touristic-event-category-img",
|
|
21996
18673
|
/* @ts-ignore */
|
|
21997
|
-
crossorigin: "anonymous", src: touristicEventType.pictogram
|
|
21998
|
-
}), index.h("div", { class: "touristic-event-category-name" }, touristicEventType.type)), index.h("div", { class: "name" }, store.state.currentTouristicEvent.name), (store.state.currentTouristicEvent.begin_date || store.state.currentTouristicEvent.end_date) && (index.h("div", { class: "touristic-event-date-container" }, store.state.currentTouristicEvent.begin_date === store.state.currentTouristicEvent.end_date && (index.h("div", { class: "touristic-event-date" }, i18n.translate[store.state.language].date, " : ", store.state.currentTouristicEvent.begin_date)), store.state.currentTouristicEvent.begin_date && store.state.currentTouristicEvent.begin_date !== store.state.currentTouristicEvent.end_date && (index.h("div", { class: "touristic-event-date" }, i18n.translate[store.state.language].startDate, " : ", store.state.currentTouristicEvent.begin_date)), store.state.currentTouristicEvent.end_date && store.state.currentTouristicEvent.begin_date !== store.state.currentTouristicEvent.end_date && (index.h("div", { class: "touristic-event-date" }, i18n.translate[store.state.language].endDate, " : ", store.state.currentTouristicEvent.end_date)))), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[store.state.language].download), index.h("div", { class: "links-container" }, index.h("a", { href: `${store.state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), store.state.currentTouristicEvent.description_teaser && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "description-teaser", innerHTML: store.state.currentTouristicEvent.description_teaser }))), index.h("div", { class: "divider" }), store.state.currentTouristicEvent.practical_info && (index.h("div", { class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { class: "description-title" }, i18n.translate[store.state.language].description), index.h("div", { class: "description", innerHTML: store.state.currentTouristicEvent.description }))), cities && cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[store.state.language].city, " :\u00A0"), index.h("div", { innerHTML: cities.join(', ') }))), store.state.currentTouristicEvent.practical_info && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "useful-information-container" }, index.h("div", { class: "useful-information-title" }, i18n.translate[store.state.language].usefulInformation, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicEvent.practical_info })))), (store.state.currentTouristicEvent.contact || store.state.currentTouristicEvent.email || store.state.currentTouristicEvent.website) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "contact-container" }, index.h("div", { class: "contact-title" }, i18n.translate[store.state.language].contact, " :\u00A0"), store.state.currentTouristicEvent.contact && index.h("div", { innerHTML: store.state.currentTouristicEvent.contact }), store.state.currentTouristicEvent.email && (index.h("div", { class: "email-container" }, index.h("div", null, i18n.translate[store.state.language].email, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicEvent.email }))), store.state.currentTouristicEvent.website && (index.h("div", { class: "website-container" }, index.h("div", null, i18n.translate[store.state.language].website, " :\u00A0"), index.h("div", { innerHTML: store.state.currentTouristicEvent.website })))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
18674
|
+
crossorigin: "anonymous", src: touristicEventType.pictogram })), touristicEventType && touristicEventType.type && (index.h("div", { part: "touristic-event-category-name", class: "touristic-event-category-name" }, touristicEventType.type))), index.h("div", { part: "name", class: "name" }, store.state.currentTouristicEvent.name), (store.state.currentTouristicEvent.begin_date || store.state.currentTouristicEvent.end_date) && (index.h("div", { part: "touristic-event-date-container", class: "touristic-event-date-container" }, store.state.currentTouristicEvent.begin_date === store.state.currentTouristicEvent.end_date && (index.h("div", { part: "touristic-event-date", class: "touristic-event-date" }, i18n.translate[store.state.language].date, " : ", store.state.currentTouristicEvent.begin_date)), store.state.currentTouristicEvent.begin_date && store.state.currentTouristicEvent.begin_date !== store.state.currentTouristicEvent.end_date && (index.h("div", { part: "touristic-event-date", class: "touristic-event-date" }, i18n.translate[store.state.language].startDate, " : ", store.state.currentTouristicEvent.begin_date)), store.state.currentTouristicEvent.end_date && store.state.currentTouristicEvent.begin_date !== store.state.currentTouristicEvent.end_date && (index.h("div", { part: "touristic-event-date", class: "touristic-event-date" }, i18n.translate[store.state.language].endDate, " : ", store.state.currentTouristicEvent.end_date)))), index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "downloads-container", class: "downloads-container" }, index.h("div", { part: "download-title", class: "download-title" }, i18n.translate[store.state.language].download), index.h("div", { part: "links-container", class: "links-container" }, index.h("a", { part: "link", class: "link", href: `${store.state.currentTouristicEvent.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { part: "icon", class: "material-symbols material-symbols-outlined icon", translate: false }, "download"), index.h("span", { part: "label", class: "label" }, "PDF")))), store.state.currentTouristicEvent.description_teaser && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "description-teaser", class: "description-teaser", innerHTML: store.state.currentTouristicEvent.description_teaser }))), index.h("div", { part: "divider", class: "divider" }), store.state.currentTouristicEvent.practical_info && (index.h("div", { part: "description-container", class: "description-container", ref: el => (this.descriptionRef = el) }, index.h("div", { part: "description-title", class: "description-title" }, i18n.translate[store.state.language].description), index.h("div", { part: "description", class: "description", innerHTML: store.state.currentTouristicEvent.description }))), cities && cities.length > 0 && (index.h("div", { part: "cities-container", class: "cities-container" }, index.h("div", { part: "cities-title", class: "cities-title" }, i18n.translate[store.state.language].city, " :\u00A0"), index.h("div", { part: "cities", class: "cities", innerHTML: cities.join(', ') }))), store.state.currentTouristicEvent.practical_info && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "useful-information-container", class: "useful-information-container" }, index.h("div", { part: "useful-information-title", class: "useful-information-title" }, i18n.translate[store.state.language].usefulInformation, " :\u00A0"), index.h("div", { part: "useful-information", class: "useful-information", innerHTML: store.state.currentTouristicEvent.practical_info })))), (store.state.currentTouristicEvent.contact || store.state.currentTouristicEvent.email || store.state.currentTouristicEvent.website) && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "contact-container", class: "contact-container" }, index.h("div", { part: "contact-title", class: "contact-title" }, i18n.translate[store.state.language].contact, " :\u00A0"), store.state.currentTouristicEvent.contact && index.h("div", { part: "contact", class: "contact", innerHTML: store.state.currentTouristicEvent.contact }), store.state.currentTouristicEvent.email && (index.h("div", { part: "email-container", class: "email-container" }, index.h("div", { part: "email-title", class: "email-title" }, i18n.translate[store.state.language].email, " :\u00A0"), index.h("div", { part: "email", class: "email", innerHTML: store.state.currentTouristicEvent.email }))), store.state.currentTouristicEvent.website && (index.h("div", { part: "website-container", class: "website-container" }, index.h("div", { part: "website-title", class: "website-title" }, i18n.translate[store.state.language].website, " :\u00A0"), index.h("div", { part: "website", class: "website", innerHTML: store.state.currentTouristicEvent.website })))))), index.h("div", { part: "detail-bottom-space", class: "detail-bottom-space" })))));
|
|
21999
18675
|
}
|
|
22000
18676
|
};
|
|
22001
18677
|
GrwTouristicEventDetail.style = grwTouristicEventDetailCss;
|
|
@@ -22057,7 +18733,7 @@ const GrwTouristicEventProvider = class {
|
|
|
22057
18733
|
}
|
|
22058
18734
|
};
|
|
22059
18735
|
|
|
22060
|
-
const grwTouristicEventsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{
|
|
18736
|
+
const grwTouristicEventsListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";
|
|
22061
18737
|
|
|
22062
18738
|
const GrwTouristicContentsList = class {
|
|
22063
18739
|
constructor(hostRef) {
|
|
@@ -22122,7 +18798,7 @@ const GrwTouristicContentsList = class {
|
|
|
22122
18798
|
this.handleInfiniteScrollEvent(false);
|
|
22123
18799
|
}
|
|
22124
18800
|
render() {
|
|
22125
|
-
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.touristicEventsWithinBounds && (index.h("div", { class: "current-touristic-events-within-bounds-length" }, `${store.state.touristicEventsWithinBounds.length} ${store.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicEvents : i18n.translate[store.state.language].home.touristicEvent}`)), index.h("div", { class: "touristic-events-list-container" }, this.touristicEventsToDisplay.map(touristicEvent => (index.h("grw-touristic-event-card", { "
|
|
18801
|
+
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.touristicEventsWithinBounds && (index.h("div", { part: "current-touristic-events-within-bounds-length", class: "current-touristic-events-within-bounds-length" }, `${store.state.touristicEventsWithinBounds.length} ${store.state.touristicEventsWithinBounds.length > 1 ? i18n.translate[store.state.language].home.touristicEvents : i18n.translate[store.state.language].home.touristicEvent}`)), index.h("div", { part: "touristic-events-list-container", class: "touristic-events-list-container" }, this.touristicEventsToDisplay.map(touristicEvent => (index.h("grw-touristic-event-card", { exportparts: "touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button", key: `touristic-event-${touristicEvent.id}`, touristicEvent: touristicEvent, "is-large-view": this.isLargeView, fontFamily: this.fontFamily, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })))), index.h("div", { part: "list-bottom-space", class: !this.isLargeView ? 'list-bottom-space' : 'list-large-view-bottom-space' })));
|
|
22126
18802
|
}
|
|
22127
18803
|
get element() { return index.getElement(this); }
|
|
22128
18804
|
};
|
|
@@ -22199,7 +18875,7 @@ const GrwTouristicEventsProvider = class {
|
|
|
22199
18875
|
}
|
|
22200
18876
|
};
|
|
22201
18877
|
|
|
22202
|
-
const grwTrekDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label img,.trek-detail-container .sub-container .icons-labels-container .icon-label span{font-size:24px;width:24px;height:auto;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice img{background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:\"\";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .material-symbols,.gear-container .material-symbols{font-size:24px;width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:\"\";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent span{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.legend-container{position:absolute;top:16px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}";
|
|
18878
|
+
const grwTrekDetailCss = "@font-face{font-family:\"swiper-icons\";src:url(\"data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA\") format(\"woff\");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:\"\";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:\"prev\"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:\"next\"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}.material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{font-size:24px;width:24px;height:auto;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:\"\";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .material-symbols,.gear-container .material-symbols{font-size:24px;width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:\"\";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{border-radius:100%;padding:2px;max-height:20px;max-width:20px}";
|
|
22203
18879
|
|
|
22204
18880
|
const threshold = 1;
|
|
22205
18881
|
const presentation = {
|
|
@@ -22637,45 +19313,38 @@ const GrwTrekDetail = class {
|
|
|
22637
19313
|
: store.state.languages && store.state.languages.length > 1
|
|
22638
19314
|
? '244px'
|
|
22639
19315
|
: '204px',
|
|
22640
|
-
} }, this.currentTrek && (index.h("div", { class: "trek-options" }, index.h("a", {
|
|
19316
|
+
} }, this.currentTrek && (index.h("div", { part: "trek-options", class: "trek-options" }, index.h("a", { part: "trek-option", class: `presentation trek-option${this.indicatorSelectedTrekOption.ref === 'presentationOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.presentationOptionRef = el), onClick: () => this.handleScrollTo(this.presentationRef) }, i18n.translate[store.state.language].options.presentation), this.options.steps.visible && (index.h("a", { part: "trek-option", class: `steps trek-option${this.options.steps.indicator ? ' selected-trek-option' : ''}`, ref: el => (this.stepsOptionRef = el), onClick: () => this.handleScrollTo(this.stepsRef) }, i18n.translate[store.state.language].options.steps)), this.options.description.visible && (index.h("a", { part: "trek-option", class: `description trek-option${this.indicatorSelectedTrekOption.ref === 'descriptionOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.descriptionOptionRef = el), onClick: () => this.handleScrollTo(this.descriptionRef) }, i18n.translate[store.state.language].options.description)), this.options.pois.visible && (index.h("a", { part: "trek-option", class: `pois trek-option${this.indicatorSelectedTrekOption.ref === 'poisOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.poisOptionRef = el), onClick: () => this.handleScrollTo(this.poiRef) }, i18n.translate[store.state.language].options.pois)), this.options.recommendations.visible && (index.h("a", { part: "trek-option", class: `recommendations trek-option${this.indicatorSelectedTrekOption.ref === 'recommendationsOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.recommendationsOptionRef = el), onClick: () => this.handleScrollTo(this.recommendationRef) }, i18n.translate[store.state.language].options.recommendations)), this.options.sensitiveArea.visible && (index.h("a", { part: "trek-option", class: `sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref === 'sensitiveAreaOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.sensitiveAreaOptionRef = el), onClick: () => this.handleScrollTo(this.sensitiveAreaRef) }, i18n.translate[store.state.language].options.environmentalSensitiveAreas)), this.options.informationPlaces.visible && (index.h("a", { part: "trek-option", class: `information-places trek-option${this.indicatorSelectedTrekOption.ref === 'informationPlacesOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.informationPlacesOptionRef = el), onClick: () => this.handleScrollTo(this.informationPlacesRef) }, i18n.translate[store.state.language].options.informationPlaces)), this.options.accessibility.visible && (index.h("a", { part: "trek-option", class: `accessibility trek-option${this.indicatorSelectedTrekOption.ref === 'accessibilityOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.accessibilityOptionRef = el), onClick: () => this.handleScrollTo(this.accessibilityRef) }, i18n.translate[store.state.language].options.accessibility)), this.options.touristicContents.visible && (index.h("a", { part: "trek-option", class: `touristic-content trek-option${this.indicatorSelectedTrekOption.ref === 'touristicContentsOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.touristicContentsOptionRef = el), onClick: () => this.handleScrollTo(this.touristicContentsRef) }, i18n.translate[store.state.language].options.touristicContents)), this.options.touristicEvents.visible && (index.h("a", { part: "trek-option", class: `touristic-event trek-option${this.indicatorSelectedTrekOption.ref === 'touristicEventsOptionRef' ? ' selected-trek-option' : ''}`, ref: el => (this.touristicEventsOptionRef = el), onClick: () => this.handleScrollTo(this.touristicEventsRef) }, i18n.translate[store.state.language].options.touristicEvents)), this.presentationOptionRef && (index.h("span", { part: "trek-indicator-selected-trek-option", class: "trek-indicator-selected-trek-option", style: {
|
|
22641
19317
|
transform: `translateX(${this.indicatorSelectedTrekOption.translateX})`,
|
|
22642
19318
|
width: this.indicatorSelectedTrekOption.width,
|
|
22643
19319
|
backgroundSize: this.indicatorSelectedTrekOption.backgroundSize,
|
|
22644
|
-
} })))), this.currentTrek && (index.h("div", { class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, index.h("div", { class: "images-container", ref: el => (this.presentationRef = el) }, index.h("div", { class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { class: "swiper-wrapper" }, this.currentTrek.attachments
|
|
19320
|
+
} })))), this.currentTrek && (index.h("div", { part: "trek-detail-container", class: "trek-detail-container", ref: el => (this.trekDetailContainerRef = el) }, index.h("div", { part: "trek-images", class: "trek-images-container", ref: el => (this.presentationRef = el) }, index.h("div", { part: "swiper-images", class: "swiper swiper-images", ref: el => (this.swiperImagesRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, this.currentTrek.attachments
|
|
22645
19321
|
.filter(attachment => attachment.type === 'image')
|
|
22646
19322
|
.map(attachment => {
|
|
22647
19323
|
const legend = [attachment.legend, attachment.author].filter(Boolean).join(' - ');
|
|
22648
|
-
return (index.h("div", { class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { class: "close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", {
|
|
19324
|
+
return (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, this.displayFullscreen && (index.h("div", { part: "trek-close-fullscreen-button", class: "trek-close-fullscreen-button", onClick: () => this.handleFullscreen(true) }, index.h("span", { part: "trek-close-fullcreen-icon", class: "trek-close-fullcreen-icon material-symbols material-symbols-outlined", translate: false }, "close"))), index.h("div", { part: "trek-image-legend", class: "trek-image-legend" }, legend), index.h("img", { part: "trek-img", class: "trek-img",
|
|
22649
19325
|
/* @ts-ignore */
|
|
22650
|
-
crossorigin: "anonymous",
|
|
22651
|
-
|
|
22652
|
-
})), index.h("div", { class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { class: "name" }, this.currentTrek.name), this.themes.length > 0 && (index.h("div", { class: "themes-container" }, this.themes.map(theme => (index.h("div", { class: "theme" }, theme.label))))), index.h("div", { class: "sub-container" }, index.h("div", { class: "icons-labels-container" }, this.difficulty && (index.h("div", { class: "icon-label difficulty" }, this.difficulty.pictogram && (index.h("img", {
|
|
19326
|
+
crossorigin: "anonymous", src: attachment.url, loading: "lazy", onClick: () => this.handleFullscreen() })));
|
|
19327
|
+
})), index.h("div", { part: "swiper-pagination", class: "swiper-pagination", ref: el => (this.paginationElImagesRef = el) }), index.h("div", { part: "swiper-button-prev", class: "swiper-button-prev", ref: el => (this.prevElImagesRef = el) }), index.h("div", { part: "swiper-button-next", class: "swiper-button-next", ref: el => (this.nextElImagesRef = el) }))), index.h("div", { part: "trek-name", class: "trek-name" }, this.currentTrek.name), this.themes.length > 0 && (index.h("div", { part: "themes-container", class: "themes-container" }, this.themes.map(theme => (index.h("div", { part: "theme", class: "theme" }, theme.label))))), index.h("div", { part: "sub-container", class: "sub-container" }, index.h("div", { part: "icons-labels-container", class: "icons-labels-container" }, this.difficulty && (index.h("div", { part: "icon-label", class: "icon-label difficulty" }, this.difficulty.pictogram && (index.h("img", { part: "icon", class: "icon",
|
|
22653
19328
|
/* @ts-ignore */
|
|
22654
|
-
crossorigin: "anonymous", src: this.difficulty.pictogram
|
|
22655
|
-
})), this.difficulty.label)), index.h("div", { class: "icon-label duration" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "timelapse"), utils$1.formatDuration((_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.duration)), index.h("div", { class: "icon-label route" }, ((_b = this.route) === null || _b === void 0 ? void 0 : _b.pictogram) && (index.h("img", {
|
|
19329
|
+
crossorigin: "anonymous", src: this.difficulty.pictogram })), index.h("span", { part: "label", class: "label" }, this.difficulty.label))), index.h("div", { part: "icon-label", class: "icon-label duration" }, index.h("span", { part: "icon", class: "icon material-symbols material-symbols-outlined", translate: false }, "timelapse"), index.h("span", { part: "label", class: "label" }, utils.formatDuration((_a = this.currentTrek) === null || _a === void 0 ? void 0 : _a.duration))), index.h("div", { part: "icon-label", class: "icon-label route" }, ((_b = this.route) === null || _b === void 0 ? void 0 : _b.pictogram) && (index.h("img", { part: "icon", class: "icon",
|
|
22656
19330
|
/* @ts-ignore */
|
|
22657
|
-
crossorigin: "anonymous", src: this.route.pictogram
|
|
22658
|
-
})), (_c = this.route) === null || _c === void 0 ? void 0 :
|
|
22659
|
-
_c.route), index.h("div", { class: "icon-label length" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "open_in_full"), utils$1.formatLength(this.currentTrek.length_2d)), this.currentTrek.ascent && (index.h("div", { class: "icon-label ascent" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "moving"), utils$1.formatAscent(this.currentTrek.ascent))), this.currentTrek.descent && (index.h("div", { class: "icon-label descent" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "moving"), utils$1.formatDescent(this.currentTrek.descent))), index.h("div", { class: "icon-label practice" }, ((_d = this.practice) === null || _d === void 0 ? void 0 : _d.pictogram) && (index.h("img", {
|
|
19331
|
+
crossorigin: "anonymous", src: this.route.pictogram })), index.h("span", { part: "label", class: "label" }, (_c = this.route) === null || _c === void 0 ? void 0 : _c.route)), index.h("div", { part: "icon-label", class: "icon-label length" }, index.h("span", { part: "icon", class: "icon material-symbols material-symbols-outlined", translate: false }, "open_in_full"), index.h("span", { part: "label", class: "label" }, utils.formatLength(this.currentTrek.length_2d))), this.currentTrek.ascent && (index.h("div", { part: "icon-label", class: "icon-label ascent" }, index.h("span", { part: "icon", class: "icon material-symbols material-symbols-outlined", translate: false }, "moving"), index.h("span", { part: "label", class: "label" }, utils.formatAscent(this.currentTrek.ascent)))), this.currentTrek.descent && (index.h("div", { part: "icon-label", class: "icon-label descent" }, index.h("span", { part: "icon", class: "icon material-symbols material-symbols-outlined", translate: false }, "moving"), index.h("span", { part: "label", class: "label" }, utils.formatDescent(this.currentTrek.descent)))), index.h("div", { part: "icon-label", class: "icon-label practice" }, ((_d = this.practice) === null || _d === void 0 ? void 0 : _d.pictogram) && (index.h("img", { part: "icon", class: "icon",
|
|
22660
19332
|
/* @ts-ignore */
|
|
22661
|
-
crossorigin: "anonymous", src: this.practice.pictogram
|
|
22662
|
-
})), (_e = this.practice) === null || _e === void 0 ? void 0 :
|
|
22663
|
-
_e.name), index.h("div", { class: "icon-label networks" }, this.currentTrek.networks.map(networkId => {
|
|
19333
|
+
crossorigin: "anonymous", src: this.practice.pictogram })), index.h("span", { part: "label", class: "label" }, (_e = this.practice) === null || _e === void 0 ? void 0 : _e.name)), index.h("div", { part: "icon-label", class: "icon-label networks" }, this.currentTrek.networks.map(networkId => {
|
|
22664
19334
|
const currentNetwork = store.state.networks.find(network => network.id === networkId);
|
|
22665
|
-
return (index.h("div", { class: "network" }, index.h("img", {
|
|
19335
|
+
return (index.h("div", { part: "network", class: "network" }, index.h("img", { part: "icon", class: "icon",
|
|
22666
19336
|
/* @ts-ignore */
|
|
22667
|
-
crossorigin: "anonymous", src: currentNetwork.pictogram
|
|
22668
|
-
|
|
22669
|
-
})), this.currentTrek.ratings.map(trekRating => (index.h("div", { class: "row" }, `${store.state.ratingsScale.find(ratingScale => ratingScale.id === store.state.ratings.find(rating => rating.id === trekRating).scale).name} : ${store.state.ratings.find(rating => rating.id === trekRating).name}`))), this.currentTrek.ratings_description && this.currentTrek.ratings_description !== '' && index.h("div", { class: "row", innerHTML: this.currentTrek.ratings_description }))), index.h("div", { class: "divider" }), index.h("div", { class: "downloads-container" }, index.h("div", { class: "download-title" }, i18n.translate[store.state.language].downloads), index.h("div", { class: "links-container" }, index.h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), index.h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), index.h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), index.h("div", { class: "divider" }), this.currentTrek.description_teaser && index.h("div", { class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && index.h("div", { class: "ambiance", innerHTML: this.currentTrek.ambiance }), store.state.parentTrekId && store.state.parentTrek && this.currentTrek.id !== store.state.parentTrekId && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "parent-trek-container" }, index.h("button", { class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(store.state.parentTrekId) }, index.h("div", null, "<"), store.state.parentTrek.name)))), store.state.currentTrekSteps && (index.h("div", { class: "step-container" }, index.h("div", { class: "step-title", ref: el => (this.stepsRef = el) }, `${store.state.currentTrekSteps.length} ${i18n.translate[store.state.language].steps}`), index.h("div", { class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.currentTrekSteps &&
|
|
19337
|
+
crossorigin: "anonymous", src: currentNetwork.pictogram }), index.h("span", { part: "label", class: "label" }, currentNetwork.label)));
|
|
19338
|
+
})), this.currentTrek.ratings.map(trekRating => (index.h("div", { part: "row", class: "row" }, `${store.state.ratingsScale.find(ratingScale => ratingScale.id === store.state.ratings.find(rating => rating.id === trekRating).scale).name} : ${store.state.ratings.find(rating => rating.id === trekRating).name}`))), this.currentTrek.ratings_description && this.currentTrek.ratings_description !== '' && (index.h("div", { part: "row", class: "row", innerHTML: this.currentTrek.ratings_description })))), index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "downloads-container", class: "downloads-container" }, index.h("div", { part: "download-title", class: "download-title" }, i18n.translate[store.state.language].downloads), index.h("div", { part: "links-container", class: "links-container" }, index.h("a", { href: `${this.currentTrek.gpx}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "GPX"), index.h("a", { href: `${this.currentTrek.kml}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "KML"), index.h("a", { href: `${this.currentTrek.pdf}`, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "download"), "PDF"))), index.h("div", { part: "divider", class: "divider" }), this.currentTrek.description_teaser && index.h("div", { part: "description-teaser", class: "description-teaser", innerHTML: this.currentTrek.description_teaser }), this.currentTrek.ambiance && index.h("div", { part: "ambiance", class: "ambiance", innerHTML: this.currentTrek.ambiance }), store.state.parentTrekId && store.state.parentTrek && this.currentTrek.id !== store.state.parentTrekId && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "parent-trek-container", class: "parent-trek-container" }, index.h("button", { part: "parent-trek-title", class: "parent-trek-title", onClick: () => this.parentTrekPress.emit(store.state.parentTrekId) }, index.h("div", null, "<"), store.state.parentTrek.name)))), store.state.currentTrekSteps && (index.h("div", { part: "step-container", class: "step-container" }, index.h("div", { part: "step-title", class: "step-title", ref: el => (this.stepsRef = el) }, `${store.state.currentTrekSteps.length} ${i18n.translate[store.state.language].steps}`), index.h("div", { part: "swiper-step", class: "swiper swiper-step", ref: el => (this.swiperStepRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.currentTrekSteps &&
|
|
22670
19339
|
store.state.currentTrekSteps.map(trek => {
|
|
22671
|
-
return (index.h("div", { class: "swiper-slide" }, index.h("grw-trek-card", { key: `trek-${trek.id}`, trek: trek, "is-large-view": false, "is-step": true, fontFamily: this.fontFamily, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })));
|
|
22672
|
-
})), index.h("div", { class: "swiper-scrollbar", ref: el => (this.stepSwiperScrollbar = el) })))), index.h("div", { class: "divider" }), this.currentTrek.description && (index.h("div", { class: "description-container" }, index.h("div", { class: "description-title", ref: el => (this.descriptionRef = el) }, i18n.translate[store.state.language].description), index.h("div", { class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (index.h("div", { class: "departure-container" }, index.h("div", { class: "departure-title" }, i18n.translate[store.state.language].departure, " :\u00A0"), index.h("div", { innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (index.h("div", { class: "arrival-container" }, index.h("div", { class: "arrival-title" }, i18n.translate[store.state.language].arrival, " :\u00A0"), index.h("div", { innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (index.h("div", { class: "cities-container" }, index.h("div", { class: "cities-title" }, i18n.translate[store.state.language].crossedCities, " :\u00A0"), index.h("div", { innerHTML: this.cities.join(', ') }))), store.state.currentPois && store.state.currentPois.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "pois-container" }, index.h("div", { class: "pois-title", ref: el => (this.poiRef = el) }, i18n.translate[store.state.language].pois(store.state.currentPois.length)), index.h("div", { class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.currentPois.map(poi => (index.h("div", { class: "swiper-slide" }, index.h("grw-poi", { poi: poi }))))), index.h("div", { class: "swiper-scrollbar", ref: el => (this.poisSwiperScrollbar = el) }))))), this.weather && this.currentTrek.departure_city && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "weather-container" }, index.h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` })))), this.currentTrek.access && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "access-container" }, index.h("div", { class: "access-title" }, i18n.translate[store.state.language].roadAccessAndParking), index.h("div", { class: "access", innerHTML: this.currentTrek.access }), this.currentTrek.advised_parking && (index.h("div", null, index.h("div", { class: "advised-parking-title", ref: el => (this.parkingRef = el) }, i18n.translate[store.state.language].recommendedParking), index.h("div", { class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))))), this.currentTrek.public_transport && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "public-transport-container" }, index.h("div", { class: "public-transport-title" }, i18n.translate[store.state.language].transport), index.h("div", { class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.currentTrek.gear || this.labels.length > 0) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "advice-container" }, index.h("div", { class: "advice-title", ref: el => (this.recommendationRef = el) }, i18n.translate[store.state.language].recommendations), this.currentTrek.advice && (index.h("div", { class: "current-advice-container" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), index.h("div", { class: "advice", innerHTML: this.currentTrek.advice }))), this.currentTrek.gear && (index.h("div", { class: "gear-container" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "backpack"), index.h("div", { class: "gear", innerHTML: this.currentTrek.gear }))), this.labels.map(label => (index.h("div", { class: "label-container" }, index.h("div", { class: "label-sub-container" }, label.pictogram && (index.h("img", {
|
|
19340
|
+
return (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("grw-trek-card", { exportparts: "trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label", key: `trek-${trek.id}`, trek: trek, "is-large-view": false, "is-step": true, fontFamily: this.fontFamily, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })));
|
|
19341
|
+
})), index.h("div", { part: "swiper-scrollbar", class: "swiper-scrollbar", ref: el => (this.stepSwiperScrollbar = el) })))), index.h("div", { part: "divider", class: "divider" }), this.currentTrek.description && (index.h("div", { part: "description-container", class: "description-container" }, index.h("div", { part: "description-title", class: "description-title", ref: el => (this.descriptionRef = el) }, i18n.translate[store.state.language].description), index.h("div", { part: "description", class: "description", innerHTML: this.currentTrek.description }))), this.currentTrek.departure && (index.h("div", { part: "departure-container", class: "departure-container" }, index.h("div", { part: "departure-title", class: "departure-title" }, i18n.translate[store.state.language].departure, " :\u00A0"), index.h("div", { part: "departure", innerHTML: this.currentTrek.departure }))), this.currentTrek.arrival && (index.h("div", { part: "arrival-container", class: "arrival-container" }, index.h("div", { part: "arrival-title", class: "arrival-title" }, i18n.translate[store.state.language].arrival, " :\u00A0"), index.h("div", { part: "arrival", innerHTML: this.currentTrek.arrival }))), this.currentTrek.cities && this.currentTrek.cities.length > 0 && (index.h("div", { part: "cities-container", class: "cities-container" }, index.h("div", { part: "cities-title", class: "cities-title" }, i18n.translate[store.state.language].crossedCities, " :\u00A0"), index.h("div", { part: "cities", innerHTML: this.cities.join(', ') }))), store.state.currentPois && store.state.currentPois.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "pois-container", class: "pois-container" }, index.h("div", { part: "pois-title", class: "pois-title", ref: el => (this.poiRef = el) }, i18n.translate[store.state.language].pois(store.state.currentPois.length)), index.h("div", { part: "swiper-pois", class: "swiper swiper-pois", ref: el => (this.swiperPoisRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.currentPois.map(poi => (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("grw-poi", { exportparts: "poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description", poi: poi }))))), index.h("div", { part: "swiper-scrollbar", class: "swiper-scrollbar", ref: el => (this.poisSwiperScrollbar = el) }))))), this.weather && this.currentTrek.departure_city && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "weather-container", class: "weather-container" }, index.h("iframe", { height: "150", frameborder: "0", src: `https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}` })))), this.currentTrek.access && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "access-container", class: "access-container" }, index.h("div", { part: "access-title", class: "access-title" }, i18n.translate[store.state.language].roadAccessAndParking), index.h("div", { part: "access", class: "access", innerHTML: this.currentTrek.access }), this.currentTrek.advised_parking && (index.h("div", null, index.h("div", { part: "advised-parking-title", class: "advised-parking-title", ref: el => (this.parkingRef = el) }, i18n.translate[store.state.language].recommendedParking), index.h("div", { part: "advised-parking", class: "advised-parking", innerHTML: this.currentTrek.advised_parking })))))), this.currentTrek.public_transport && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "public-transport-container", class: "public-transport-container" }, index.h("div", { part: "public-transport-title", class: "public-transport-title" }, i18n.translate[store.state.language].transport), index.h("div", { part: "public-transport", class: "public-transport", innerHTML: this.currentTrek.public_transport })))), (this.currentTrek.advice || this.currentTrek.gear || this.labels.length > 0) && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "advice-container", class: "advice-container" }, index.h("div", { part: "advice-title", class: "advice-title", ref: el => (this.recommendationRef = el) }, i18n.translate[store.state.language].recommendations), this.currentTrek.advice && (index.h("div", { part: "current-advice-container", class: "current-advice-container" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "warning"), index.h("div", { part: "advice", class: "advice", innerHTML: this.currentTrek.advice }))), this.currentTrek.gear && (index.h("div", { part: "gear-container", class: "gear-container" }, index.h("span", { translate: false, class: "material-symbols material-symbols-outlined" }, "backpack"), index.h("div", { part: "gear", class: "gear", innerHTML: this.currentTrek.gear }))), this.labels.map(label => (index.h("div", { part: "label-container", class: "label-container" }, index.h("div", { part: "label-sub-container", class: "label-sub-container" }, label.pictogram && (index.h("img", {
|
|
22673
19342
|
/* @ts-ignore */
|
|
22674
19343
|
crossorigin: "anonymous", src: label.pictogram
|
|
22675
|
-
})), index.h("div", { class: "label-name", innerHTML: label.name })), index.h("div", { class: "label-advice", innerHTML: label.advice }))))))), store.state.currentSensitiveAreas && store.state.currentSensitiveAreas.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "sensitive-areas-container" }, index.h("div", { class: "sensitive-areas-title", ref: el => (this.sensitiveAreaRef = el) }, i18n.translate[store.state.language].environmentalSensitiveAreas), index.h("div", { class: "sensitive-areas-description" }, i18n.translate[store.state.language].sensitiveAreasDescription), store.state.currentSensitiveAreas.map(sensitiveArea => (index.h("grw-sensitive-area-detail", { sensitiveArea: sensitiveArea })))))), store.state.currentInformationDesks &&
|
|
22676
|
-
store.state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "information-desks-container" }, index.h("div", { class: "information-desks-title", ref: el => (this.informationPlacesRef = el) }, i18n.translate[store.state.language].informationPlaces), index.h("div", { class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.currentInformationDesks
|
|
19344
|
+
})), index.h("div", { part: "label-name", class: "label-name", innerHTML: label.name })), index.h("div", { part: "label-advice", class: "label-advice", innerHTML: label.advice }))))))), store.state.currentSensitiveAreas && store.state.currentSensitiveAreas.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "sensitive-areas-container", class: "sensitive-areas-container" }, index.h("div", { part: "ensitive-areas-title", class: "sensitive-areas-title", ref: el => (this.sensitiveAreaRef = el) }, i18n.translate[store.state.language].environmentalSensitiveAreas), index.h("div", { part: "sensitive-areas-description", class: "sensitive-areas-description" }, i18n.translate[store.state.language].sensitiveAreasDescription), store.state.currentSensitiveAreas.map(sensitiveArea => (index.h("grw-sensitive-area-detail", { exportparts: "sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value", sensitiveArea: sensitiveArea })))))), store.state.currentInformationDesks &&
|
|
19345
|
+
store.state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "information-desks-container", class: "information-desks-container" }, index.h("div", { part: "information-desks-title", class: "information-desks-title", ref: el => (this.informationPlacesRef = el) }, i18n.translate[store.state.language].informationPlaces), index.h("div", { part: "swiper-information-desks", class: "swiper swiper-information-desks", ref: el => (this.swiperInformationDesksRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.currentInformationDesks
|
|
22677
19346
|
.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id))
|
|
22678
|
-
.map(informationDesk => (index.h("div", { class: "swiper-slide" }, index.h("grw-information-desk", { informationDesk: informationDesk }))))), index.h("div", { class: "swiper-scrollbar", ref: el => (this.informationDesksContentsSwiperScrollbar = el) }))))), (this.currentTrek.disabled_infrastructure ||
|
|
19347
|
+
.map(informationDesk => (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("grw-information-desk", { exportparts: "information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description", informationDesk: informationDesk }))))), index.h("div", { part: "swiper-scrollbar", class: "swiper-scrollbar", ref: el => (this.informationDesksContentsSwiperScrollbar = el) }))))), (this.currentTrek.disabled_infrastructure ||
|
|
22679
19348
|
(this.accessibilities && this.accessibilities.length > 0) ||
|
|
22680
19349
|
this.currentTrek.accessibility_level ||
|
|
22681
19350
|
this.currentTrek.accessibility_slope ||
|
|
@@ -22684,19 +19353,18 @@ const GrwTrekDetail = class {
|
|
|
22684
19353
|
this.currentTrek.accessibility_covering ||
|
|
22685
19354
|
this.currentTrek.accessibility_exposure ||
|
|
22686
19355
|
this.currentTrek.accessibility_advice ||
|
|
22687
|
-
this.emergencyNumber) && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "accessibilities-container" }, index.h("div", { class: "accessibilities-title", ref: el => (this.accessibilityRef = el) }, i18n.translate[store.state.language].accessibility), this.currentTrek.disabled_infrastructure && index.h("div", { innerHTML: this.currentTrek.disabled_infrastructure }), this.accessibilities && this.accessibilities.length > 0 && (index.h("div", { class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (index.h("div", { class: "accessibility-content-container" }, index.h("img", {
|
|
19356
|
+
this.emergencyNumber) && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "accessibilities-container", class: "accessibilities-container" }, index.h("div", { part: "accessibilities-title", class: "accessibilities-title", ref: el => (this.accessibilityRef = el) }, i18n.translate[store.state.language].accessibility), this.currentTrek.disabled_infrastructure && index.h("div", { part: "disabled-infrastructure", innerHTML: this.currentTrek.disabled_infrastructure }), this.accessibilities && this.accessibilities.length > 0 && (index.h("div", { part: "accessibilities-content-container", class: "accessibilities-content-container" }, this.accessibilities.map(accessibility => (index.h("div", { part: "accessibility-content-container", class: "accessibility-content-container" }, index.h("img", {
|
|
22688
19357
|
/* @ts-ignore */
|
|
22689
19358
|
crossorigin: "anonymous", src: accessibility.pictogram
|
|
22690
|
-
}), index.h("div", { innerHTML: accessibility.name })))))), this.emergencyNumber && (index.h("div", { class: "accessibility-emergency-number-container" }, index.h("div", { class: "accessibility-emergency-number-title" }, i18n.translate[store.state.language].emergencyNumber), index.h("div", { class: "accessibility-emergency-number-content" }, index.h("a", { href: `tel:${this.emergencyNumber.toString()}` }, index.h("span", {
|
|
19359
|
+
}), index.h("div", { part: "accessibility-name", innerHTML: accessibility.name })))))), this.emergencyNumber && (index.h("div", { part: "accessibility-emergency-number-container", class: "accessibility-emergency-number-container" }, index.h("div", { part: "accessibility-emergency-number-title", class: "accessibility-emergency-number-title" }, i18n.translate[store.state.language].emergencyNumber), index.h("div", { part: "accessibility-emergency-number-content", class: "accessibility-emergency-number-content" }, index.h("a", { href: `tel:${this.emergencyNumber.toString()}` }, index.h("span", { class: "material-symbols material-symbols-outlined",
|
|
22691
19360
|
/* @ts-ignore */
|
|
22692
|
-
translate: false, class: "
|
|
22693
|
-
}, "call"), this.emergencyNumber.toString())))), this.currentTrek.accessibility_level && (index.h("div", { class: "accessibility-level-container" }, index.h("div", { class: "accessibility-level-title" }, i18n.translate[store.state.language].accessibilityLevel), index.h("div", { innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (index.h("div", { class: "accessibility-slope-container" }, index.h("div", { class: "accessibility-slope-title" }, i18n.translate[store.state.language].accessibilitySlope), index.h("div", { innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (index.h("div", { class: "accessibility-width-container" }, index.h("div", { class: "accessibility-width-title" }, i18n.translate[store.state.language].accessibilityWidth), index.h("div", { innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (index.h("div", { class: "accessibility-signage-container" }, index.h("div", { class: "accessibility-signage-title" }, i18n.translate[store.state.language].accessibilitySignage), index.h("div", { innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (index.h("div", { class: "accessibility-covering-container" }, index.h("div", { class: "accessibility-covering-title" }, i18n.translate[store.state.language].accessibilityCovering), index.h("div", { innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (index.h("div", { class: "accessibility-exposure-container" }, index.h("div", { class: "accessibility-exposure-title" }, i18n.translate[store.state.language].accessibilityExposure), index.h("div", { innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (index.h("div", { class: "accessibility-advice-container" }, index.h("div", { class: "accessibility-advice-title" }, i18n.translate[store.state.language].accessibilityAdvices), index.h("div", { innerHTML: this.currentTrek.accessibility_advice })))))), store.state.trekTouristicContents && store.state.trekTouristicContents.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "touristic-content-container" }, index.h("div", { class: "touristic-content-title", ref: el => (this.touristicContentsRef = el) }, i18n.translate[store.state.language].touristicContents(store.state.trekTouristicContents.length)), index.h("div", { class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.trekTouristicContents.map(touristicContent => (index.h("div", { class: "swiper-slide" }, index.h("grw-touristic-content-card", { fontFamily: this.fontFamily, touristicContent: touristicContent, isInsideHorizontalList: true }))))), index.h("div", { class: "swiper-scrollbar", ref: el => (this.touristicContentsSwiperScrollbar = el) }))))), store.state.trekTouristicEvents && store.state.trekTouristicEvents.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "touristic-event-container" }, index.h("div", { class: "touristic-event-title", ref: el => (this.touristicEventsRef = el) }, i18n.translate[store.state.language].touristicEvents(store.state.trekTouristicEvents.length)), index.h("div", { class: "swiper swiper-touristic-event", ref: el => (this.swiperTouristicEventsRef = el) }, index.h("div", { class: "swiper-wrapper" }, store.state.trekTouristicEvents.map(touristicEvent => (index.h("div", { class: "swiper-slide" }, index.h("grw-touristic-event-card", { fontFamily: this.fontFamily, touristicEvent: touristicEvent }))))), index.h("div", { class: "swiper-scrollbar", ref: el => (this.touristicEventsSwiperScrollbar = el) }))))), this.currentTrek.web_links && this.currentTrek.web_links.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "weblinks-container" }, index.h("div", { class: "weblinks-title" }, i18n.translate[store.state.language].learnMore), this.currentTrek.web_links.map(weblink => (index.h("a", { class: "weblink-container", href: weblink.url, target: "_blank", rel: "noopener noreferrer" }, weblink.category && weblink.category.pictogram && (index.h("img", {
|
|
19361
|
+
translate: false }, "call"), this.emergencyNumber.toString())))), this.currentTrek.accessibility_level && (index.h("div", { part: "accessibility-level-container", class: "accessibility-level-container" }, index.h("div", { part: "accessibility-level-title", class: "accessibility-level-title" }, i18n.translate[store.state.language].accessibilityLevel), index.h("div", { part: "accessibility-level-name", innerHTML: this.accessibilityLevel.name }))), this.currentTrek.accessibility_slope && (index.h("div", { part: "accessibility-slope-container", class: "accessibility-slope-container" }, index.h("div", { part: "accessibility-slope-title", class: "accessibility-slope-title" }, i18n.translate[store.state.language].accessibilitySlope), index.h("div", { part: "accessibility-slope", innerHTML: this.currentTrek.accessibility_slope }))), this.currentTrek.accessibility_width && (index.h("div", { part: "accessibility-width-container", class: "accessibility-width-container" }, index.h("div", { part: "accessibility-width-title", class: "accessibility-width-title" }, i18n.translate[store.state.language].accessibilityWidth), index.h("div", { part: "accessibility-width", innerHTML: this.currentTrek.accessibility_width }))), this.currentTrek.accessibility_signage && (index.h("div", { part: "accessibility-signage-container", class: "accessibility-signage-container" }, index.h("div", { part: "accessibility-signage-title", class: "accessibility-signage-title" }, i18n.translate[store.state.language].accessibilitySignage), index.h("div", { part: "accessibility-signage", innerHTML: this.currentTrek.accessibility_signage }))), this.currentTrek.accessibility_covering && (index.h("div", { part: "accessibility-covering-container", class: "accessibility-covering-container" }, index.h("div", { part: "accessibility-covering-title", class: "accessibility-covering-title" }, i18n.translate[store.state.language].accessibilityCovering), index.h("div", { part: "accessibility-covering", innerHTML: this.currentTrek.accessibility_covering }))), this.currentTrek.accessibility_exposure && (index.h("div", { part: "accessibility-exposure-container", class: "accessibility-exposure-container" }, index.h("div", { part: "accessibility-exposure-title", class: "accessibility-exposure-title" }, i18n.translate[store.state.language].accessibilityExposure), index.h("div", { part: "accessibility-exposure", innerHTML: this.currentTrek.accessibility_exposure }))), this.currentTrek.accessibility_advice && (index.h("div", { part: "accessibility-advice-container", class: "accessibility-advice-container" }, index.h("div", { part: "accessibility-advice-title", class: "accessibility-advice-title" }, i18n.translate[store.state.language].accessibilityAdvices), index.h("div", { part: "accessibility-advice", innerHTML: this.currentTrek.accessibility_advice })))))), store.state.trekTouristicContents && store.state.trekTouristicContents.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "touristic-content-container", class: "touristic-content-container" }, index.h("div", { part: "touristic-content-title", class: "touristic-content-title", ref: el => (this.touristicContentsRef = el) }, i18n.translate[store.state.language].touristicContents(store.state.trekTouristicContents.length)), index.h("div", { part: "swiper-touristic-content", class: "swiper swiper-touristic-content", ref: el => (this.swiperTouristicContentsRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.trekTouristicContents.map(touristicContent => (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("grw-touristic-content-card", { exportparts: "touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button", fontFamily: this.fontFamily, touristicContent: touristicContent, isInsideHorizontalList: true }))))), index.h("div", { part: "swiper-scrollbar", class: "swiper-scrollbar", ref: el => (this.touristicContentsSwiperScrollbar = el) }))))), store.state.trekTouristicEvents && store.state.trekTouristicEvents.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "touristic-event-container", class: "touristic-event-container" }, index.h("div", { part: "touristic-event-title", class: "touristic-event-title", ref: el => (this.touristicEventsRef = el) }, i18n.translate[store.state.language].touristicEvents(store.state.trekTouristicEvents.length)), index.h("div", { part: "swiper-touristic-event", class: "swiper swiper-touristic-event", ref: el => (this.swiperTouristicEventsRef = el) }, index.h("div", { part: "swiper-wrapper", class: "swiper-wrapper" }, store.state.trekTouristicEvents.map(touristicEvent => (index.h("div", { part: "swiper-slide", class: "swiper-slide" }, index.h("grw-touristic-event-card", { exportparts: "touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button", fontFamily: this.fontFamily, touristicEvent: touristicEvent }))))), index.h("div", { part: "swiper-scrollbar", class: "swiper-scrollbar", ref: el => (this.touristicEventsSwiperScrollbar = el) }))))), this.currentTrek.web_links && this.currentTrek.web_links.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "weblinks-container", class: "weblinks-container" }, index.h("div", { part: "weblinks-title", class: "weblinks-title" }, i18n.translate[store.state.language].learnMore), this.currentTrek.web_links.map(weblink => (index.h("a", { part: "weblink-container", class: "weblink-container", href: weblink.url, target: "_blank", rel: "noopener noreferrer" }, weblink.category && weblink.category.pictogram && (index.h("img", {
|
|
22694
19362
|
/* @ts-ignore */
|
|
22695
19363
|
crossorigin: "anonymous", src: weblink.category.pictogram
|
|
22696
|
-
})), weblink.name)))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (index.h("div", null, index.h("div", { class: "divider" }), index.h("div", { class: "source-container" }, index.h("div", { class: "source-title" }, i18n.translate[store.state.language].sources), this.sources.map(source => (index.h("div", { class: "source-sub-container" }, source.pictogram && (index.h("img", {
|
|
19364
|
+
})), weblink.name)))))), this.currentTrek.source && this.currentTrek.source.length > 0 && (index.h("div", null, index.h("div", { part: "divider", class: "divider" }), index.h("div", { part: "source-container", class: "source-container" }, index.h("div", { part: "source-title", class: "source-title" }, i18n.translate[store.state.language].sources), this.sources.map(source => (index.h("div", { part: "source-sub-container", class: "source-sub-container" }, source.pictogram && (index.h("img", {
|
|
22697
19365
|
/* @ts-ignore */
|
|
22698
19366
|
crossorigin: "anonymous", src: source.pictogram
|
|
22699
|
-
})), index.h("div", null, index.h("div", { class: "source-name", innerHTML: source.name }), index.h("a", { class: "source-advice", href: source.website, innerHTML: source.website })))))))), index.h("div", { class: "detail-bottom-space" })))));
|
|
19367
|
+
})), index.h("div", null, index.h("div", { part: "source-name", class: "source-name", innerHTML: source.name }), index.h("a", { part: "source-advice", class: "source-advice", href: source.website, innerHTML: source.website })))))))), index.h("div", { part: "detail-bottom-space", class: "detail-bottom-space" })))));
|
|
22700
19368
|
}
|
|
22701
19369
|
};
|
|
22702
19370
|
GrwTrekDetail.style = grwTrekDetailCss;
|
|
@@ -22859,7 +19527,7 @@ const GrwTrekProvider = class {
|
|
|
22859
19527
|
}
|
|
22860
19528
|
};
|
|
22861
19529
|
|
|
22862
|
-
const grwTreksListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{
|
|
19530
|
+
const grwTreksListCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 8px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";
|
|
22863
19531
|
|
|
22864
19532
|
const GrwTreksList = class {
|
|
22865
19533
|
constructor(hostRef) {
|
|
@@ -22922,7 +19590,7 @@ const GrwTreksList = class {
|
|
|
22922
19590
|
this.handleInfiniteScrollEvent(false);
|
|
22923
19591
|
}
|
|
22924
19592
|
render() {
|
|
22925
|
-
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.treksWithinBounds && (index.h("div", { class: "current-treks-within-bounds-length" }, `${store.state.treksWithinBounds.length} ${store.state.treksWithinBounds.length > 1 ? i18n.translate[store.state.language].treks : i18n.translate[store.state.language].trek}`)), index.h("div", { class: "treks-list-container" }, this.treksToDisplay.map(trek => (index.h("grw-trek-card", { "
|
|
19593
|
+
return (index.h(index.Host, { style: { '--font-family': this.fontFamily, '--color-primary-app': this.colorPrimaryApp } }, store.state.treksWithinBounds && (index.h("div", { part: "current-treks-within-bounds-length", class: "current-treks-within-bounds-length" }, `${store.state.treksWithinBounds.length} ${store.state.treksWithinBounds.length > 1 ? i18n.translate[store.state.language].treks : i18n.translate[store.state.language].trek}`)), index.h("div", { part: "treks-list-container", class: "treks-list-container" }, this.treksToDisplay.map(trek => (index.h("grw-trek-card", { exportparts: "trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label", key: `trek-${trek.id}`, trek: trek, "is-large-view": this.isLargeView, fontFamily: this.fontFamily, "color-primary-app": this.colorPrimaryApp, "color-on-surface": this.colorOnSurface, "color-secondary-container": this.colorSecondaryContainer, "color-on-secondary-container": this.colorOnSecondaryContainer, "color-surface-container-low": this.colorSurfaceContainerLow })))), index.h("div", { part: "list-bottom-space", class: !this.isLargeView ? 'list-bottom-space' : 'list-large-view-bottom-space' })));
|
|
22926
19594
|
}
|
|
22927
19595
|
get element() { return index.getElement(this); }
|
|
22928
19596
|
};
|