@geotrekce/geotrek-rando-widget 0.30.2 → 0.30.4
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/{call-422e2bf4.js → call-c5b389c7.js} +2 -2
- package/dist/cjs/call-c5b389c7.js.br +0 -0
- package/dist/cjs/call-c5b389c7.js.gz +0 -0
- package/dist/cjs/{call-422e2bf4.js.map → call-c5b389c7.js.map} +1 -1
- package/dist/cjs/grw-app.cjs.entry.js +2 -2
- 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-common-button_23.cjs.entry.js +83 -69
- package/dist/cjs/grw-common-button_23.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_23.cjs.entry.js.map +1 -1
- package/dist/cjs/{grw-db.service-dde227e0.js → grw-db.service-51e2fba4.js} +2 -2
- package/dist/cjs/grw-db.service-51e2fba4.js.br +0 -0
- package/dist/cjs/grw-db.service-51e2fba4.js.gz +0 -0
- package/dist/cjs/{grw-db.service-dde227e0.js.map → grw-db.service-51e2fba4.js.map} +1 -1
- package/dist/cjs/grw-details-modal_8.cjs.entry.js +25 -11
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-details-modal_8.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter.cjs.entry.js +2 -2
- 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-outdoor-courses-provider.cjs.entry.js +5 -5
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-outdoor-courses-provider.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +3 -3
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js +4 -4
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-sensitive-area-detail_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js +1 -1
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-toggle-slot-visibility.cjs.entry.js.gz +0 -0
- package/dist/cjs/{outdoor-courses.service-083411f5.js → outdoor-courses.service-9ba0da7e.js} +2 -2
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-9ba0da7e.js.gz +0 -0
- package/dist/cjs/{outdoor-courses.service-083411f5.js.map → outdoor-courses.service-9ba0da7e.js.map} +1 -1
- package/dist/cjs/{store-65aa11bc.js → store-8c47b811.js} +2 -2
- package/dist/cjs/store-8c47b811.js.br +0 -0
- package/dist/cjs/store-8c47b811.js.gz +0 -0
- package/dist/cjs/{store-65aa11bc.js.map → store-8c47b811.js.map} +1 -1
- package/dist/cjs/{treks.service-14b5765a.js → treks.service-ae2960c8.js} +4 -4
- package/dist/cjs/treks.service-ae2960c8.js.br +0 -0
- package/dist/cjs/treks.service-ae2960c8.js.gz +0 -0
- package/dist/cjs/{treks.service-14b5765a.js.map → treks.service-ae2960c8.js.map} +1 -1
- package/dist/cjs/{utils-5c5c3fee.js → utils-fef97420.js} +3 -3
- package/dist/cjs/utils-fef97420.js.br +0 -0
- package/dist/cjs/utils-fef97420.js.gz +0 -0
- package/dist/cjs/{utils-5c5c3fee.js.map → utils-fef97420.js.map} +1 -1
- package/dist/cjs/{web-87e6d345.js → web-e27fac22.js} +3 -3
- package/dist/cjs/web-e27fac22.js.br +0 -0
- package/dist/cjs/web-e27fac22.js.gz +0 -0
- package/dist/cjs/{web-87e6d345.js.map → web-e27fac22.js.map} +1 -1
- package/dist/collection/components/grw-map/grw-map.js +62 -56
- 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/store/grw-outdoor-site-provider.js +4 -4
- package/dist/collection/store/grw-outdoor-site-provider.js.br +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.gz +0 -0
- package/dist/collection/store/grw-outdoor-site-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-content-provider.js +11 -3
- package/dist/collection/store/grw-touristic-content-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-content-provider.js.map +1 -1
- package/dist/collection/store/grw-touristic-event-provider.js +9 -3
- package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
- package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
- package/dist/collection/store/grw-trek-provider.js +11 -3
- package/dist/collection/store/grw-trek-provider.js.br +0 -0
- package/dist/collection/store/grw-trek-provider.js.gz +0 -0
- package/dist/collection/store/grw-trek-provider.js.map +1 -1
- package/dist/collection/store/store.js +1 -1
- package/dist/collection/store/store.js.br +0 -0
- package/dist/collection/store/store.js.gz +0 -0
- package/dist/collection/store/store.js.map +1 -1
- package/dist/esm/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm/call-df62b17b.js.br +0 -0
- package/dist/esm/call-df62b17b.js.gz +0 -0
- package/dist/esm/{call-c0c920b0.js.map → call-df62b17b.js.map} +1 -1
- package/dist/esm/grw-app.entry.js +2 -2
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js +83 -69
- package/dist/esm/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm/grw-db.service-a2b2fc8e.js.gz +0 -0
- package/dist/esm/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +1 -1
- package/dist/esm/grw-details-modal_8.entry.js +25 -11
- package/dist/esm/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm/grw-details-modal_8.entry.js.map +1 -1
- package/dist/esm/grw-filter.entry.js +2 -2
- package/dist/esm/grw-filter.entry.js.br +0 -0
- package/dist/esm/grw-filter.entry.js.gz +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js +5 -5
- package/dist/esm/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +3 -3
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js +4 -4
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +1 -1
- package/dist/esm/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm/store-aa921ea2.js.br +0 -0
- package/dist/esm/store-aa921ea2.js.gz +0 -0
- package/dist/esm/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +4 -4
- package/dist/esm/treks.service-0b98455e.js.br +0 -0
- package/dist/esm/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +1 -1
- package/dist/esm/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm/utils-b1ca48b3.js.br +0 -0
- package/dist/esm/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +1 -1
- package/dist/esm/{web-9ea89c85.js → web-08ea09e6.js} +3 -3
- package/dist/esm/web-08ea09e6.js.br +0 -0
- package/dist/esm/web-08ea09e6.js.gz +0 -0
- package/dist/esm/{web-9ea89c85.js.map → web-08ea09e6.js.map} +1 -1
- package/dist/esm-es5/{call-c0c920b0.js → call-df62b17b.js} +2 -2
- package/dist/esm-es5/call-df62b17b.js.br +0 -0
- package/dist/esm-es5/{call-c0c920b0.js.gz → call-df62b17b.js.gz} +0 -0
- 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-common-button_23.entry.js +2 -2
- package/dist/esm-es5/grw-common-button_23.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_23.entry.js.map +1 -1
- package/dist/esm-es5/{grw-db.service-83da38c9.js → grw-db.service-a2b2fc8e.js} +2 -2
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.br +0 -0
- package/dist/esm-es5/grw-db.service-a2b2fc8e.js.gz +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js +1 -1
- package/dist/esm-es5/grw-details-modal_8.entry.js.br +0 -0
- package/dist/esm-es5/grw-details-modal_8.entry.js.gz +0 -0
- package/dist/esm-es5/grw-details-modal_8.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-outdoor-courses-provider.entry.js +1 -1
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.br +0 -0
- package/dist/esm-es5/grw-outdoor-courses-provider.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js +1 -1
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.br +0 -0
- package/dist/esm-es5/grw-sensitive-area-detail_2.entry.js.gz +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js +1 -1
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.br +0 -0
- package/dist/esm-es5/grw-toggle-slot-visibility.entry.js.gz +0 -0
- package/dist/esm-es5/{outdoor-courses.service-d2397066.js → outdoor-courses.service-c7fe26df.js} +2 -2
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-c7fe26df.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js → store-aa921ea2.js} +2 -2
- package/dist/esm-es5/store-aa921ea2.js.br +0 -0
- package/dist/esm-es5/store-aa921ea2.js.gz +0 -0
- package/dist/esm-es5/{store-882ab9be.js.map → store-aa921ea2.js.map} +1 -1
- package/dist/esm-es5/{treks.service-a3ce33ef.js → treks.service-0b98455e.js} +2 -2
- package/dist/esm-es5/treks.service-0b98455e.js.br +0 -0
- package/dist/esm-es5/treks.service-0b98455e.js.gz +0 -0
- package/dist/esm-es5/{utils-5feb9281.js → utils-b1ca48b3.js} +3 -3
- package/dist/esm-es5/utils-b1ca48b3.js.br +0 -0
- package/dist/esm-es5/utils-b1ca48b3.js.gz +0 -0
- package/dist/esm-es5/{web-9ea89c85.js → web-08ea09e6.js} +2 -2
- package/dist/esm-es5/web-08ea09e6.js.br +0 -0
- package/dist/esm-es5/web-08ea09e6.js.gz +0 -0
- 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-31cd5fb6.system.js → p-06ec8b64.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-06ec8b64.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js → p-0e29bbf9.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0e29bbf9.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-e6471529.system.js.map → p-0e29bbf9.system.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js → p-11622ab2.system.js} +3 -3
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-11622ab2.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js → p-28048cef.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-28048cef.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-f0d965b9.system.entry.js → p-2939026a.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2939026a.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js → p-35fa0752.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-35fa0752.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.gz → p-35fa0752.system.entry.js.gz} +0 -0
- package/dist/geotrek-rando-widget/{p-0dc681ee.system.js → p-3834a184.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-3834a184.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3834a184.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-111e4a10.entry.js → p-4450a6e3.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4450a6e3.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js +1 -1
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5517eb99.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-551b6c64.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-c8f5ce61.js → p-5feca333.js} +2 -2
- package/dist/geotrek-rando-widget/p-5feca333.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5feca333.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js → p-643b34f4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-643b34f4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6cd88edc.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-844f4321.js → p-6d0668a6.js} +3 -3
- package/dist/geotrek-rando-widget/p-6d0668a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d0668a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js → p-7207c87a.js} +2 -2
- package/dist/geotrek-rando-widget/p-7207c87a.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7207c87a.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-d95cfb6f.js.map → p-7207c87a.js.map} +1 -1
- package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js → p-722468a0.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-722468a0.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-722468a0.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-91d62770.entry.js → p-83e76a62.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-83e76a62.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-38d31358.entry.js → p-9ac8e3ac.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9ac8e3ac.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-20fa1207.entry.js → p-9c461972.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9c461972.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6287495f.entry.js → p-ad644267.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad644267.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js → p-ad6e02a4.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ad6e02a4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-315f99d3.system.js → p-ae0a8dc1.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ae0a8dc1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fcbe4bb6.js → p-b0b7e072.js} +2 -2
- package/dist/geotrek-rando-widget/p-b0b7e072.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b0b7e072.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-b1ed0255.js → p-bc36f8a6.js} +2 -2
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bc36f8a6.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js → p-cf6d1b66.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cf6d1b66.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js → p-d8126403.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d8126403.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-c61425f6.js → p-e5086616.js} +2 -2
- package/dist/geotrek-rando-widget/p-e5086616.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e5086616.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js → p-e9483fdf.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e9483fdf.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js → p-ec9a42ab.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ec9a42ab.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js → p-f152b476.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-f152b476.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f152b476.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-76467e71.js → p-f92d0101.js} +2 -2
- package/dist/geotrek-rando-widget/p-f92d0101.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f92d0101.js.gz +0 -0
- package/package.json +1 -1
- package/dist/cjs/call-422e2bf4.js.br +0 -0
- package/dist/cjs/call-422e2bf4.js.gz +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.br +0 -0
- package/dist/cjs/grw-db.service-dde227e0.js.gz +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.br +0 -0
- package/dist/cjs/outdoor-courses.service-083411f5.js.gz +0 -0
- package/dist/cjs/store-65aa11bc.js.br +0 -0
- package/dist/cjs/store-65aa11bc.js.gz +0 -0
- package/dist/cjs/treks.service-14b5765a.js.br +0 -0
- package/dist/cjs/treks.service-14b5765a.js.gz +0 -0
- package/dist/cjs/utils-5c5c3fee.js.br +0 -0
- package/dist/cjs/utils-5c5c3fee.js.gz +0 -0
- package/dist/cjs/web-87e6d345.js.br +0 -0
- package/dist/cjs/web-87e6d345.js.gz +0 -0
- package/dist/esm/call-c0c920b0.js.br +0 -0
- package/dist/esm/call-c0c920b0.js.gz +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm/store-882ab9be.js.br +0 -0
- package/dist/esm/store-882ab9be.js.gz +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm/utils-5feb9281.js.br +0 -0
- package/dist/esm/utils-5feb9281.js.gz +0 -0
- package/dist/esm/web-9ea89c85.js.br +0 -0
- package/dist/esm/web-9ea89c85.js.gz +0 -0
- package/dist/esm-es5/call-c0c920b0.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.br +0 -0
- package/dist/esm-es5/grw-db.service-83da38c9.js.gz +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.br +0 -0
- package/dist/esm-es5/outdoor-courses.service-d2397066.js.gz +0 -0
- package/dist/esm-es5/store-882ab9be.js.br +0 -0
- package/dist/esm-es5/store-882ab9be.js.gz +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.br +0 -0
- package/dist/esm-es5/treks.service-a3ce33ef.js.gz +0 -0
- package/dist/esm-es5/utils-5feb9281.js.br +0 -0
- package/dist/esm-es5/utils-5feb9281.js.gz +0 -0
- package/dist/esm-es5/web-9ea89c85.js.br +0 -0
- package/dist/esm-es5/web-9ea89c85.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0213328a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-0dc681ee.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-111e4a10.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-20fa1207.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-315f99d3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-31cd5fb6.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-346b21fe.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-38d31358.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-46cbc796.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-51c64ff4.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5a1c21ad.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6287495f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-63c3d14c.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-65c5fa1a.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6a4d2050.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76467e71.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.br +0 -0
- package/dist/geotrek-rando-widget/p-844f4321.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-91d62770.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-928cafc2.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b1ed0255.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c0721af7.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c61425f6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61425f6.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c8f5ce61.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.br +0 -0
- package/dist/geotrek-rando-widget/p-d95cfb6f.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-e6471529.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ebec2cdc.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-eeedb77e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f0d965b9.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fbfffb5d.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fcbe4bb6.js.gz +0 -0
- /package/dist/esm-es5/{call-c0c920b0.js.map → call-df62b17b.js.map} +0 -0
- /package/dist/esm-es5/{grw-db.service-83da38c9.js.map → grw-db.service-a2b2fc8e.js.map} +0 -0
- /package/dist/esm-es5/{outdoor-courses.service-d2397066.js.map → outdoor-courses.service-c7fe26df.js.map} +0 -0
- /package/dist/esm-es5/{treks.service-a3ce33ef.js.map → treks.service-0b98455e.js.map} +0 -0
- /package/dist/esm-es5/{utils-5feb9281.js.map → utils-b1ca48b3.js.map} +0 -0
- /package/dist/esm-es5/{web-9ea89c85.js.map → web-08ea09e6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-31cd5fb6.system.js.map → p-06ec8b64.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-5a1c21ad.system.js.map → p-11622ab2.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-346b21fe.system.entry.js.map → p-28048cef.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-63c3d14c.system.entry.js.map → p-35fa0752.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0dc681ee.system.js.map → p-3834a184.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c8f5ce61.js.map → p-5feca333.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-928cafc2.system.entry.js.map → p-643b34f4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-844f4321.js.map → p-6d0668a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-ebec2cdc.system.js.map → p-722468a0.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-91d62770.entry.js.map → p-83e76a62.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-38d31358.entry.js.map → p-9ac8e3ac.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-20fa1207.entry.js.map → p-9c461972.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6287495f.entry.js.map → p-ad644267.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6a4d2050.system.entry.js.map → p-ad6e02a4.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-315f99d3.system.js.map → p-ae0a8dc1.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fcbe4bb6.js.map → p-b0b7e072.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-b1ed0255.js.map → p-bc36f8a6.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-51c64ff4.entry.js.map → p-cf6d1b66.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-46cbc796.system.entry.js.map → p-d8126403.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-c61425f6.js.map → p-e5086616.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-eeedb77e.entry.js.map → p-e9483fdf.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-0213328a.system.entry.js.map → p-ec9a42ab.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-fbfffb5d.system.js.map → p-f152b476.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-76467e71.js.map → p-f92d0101.js.map} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{r as e,h as t,H as i,c as r,f as o,e as a,g as s,F as n}from"./p-421e9ebe.js";import{t as c}from"./p-1f5afac7.js";import{s as l,o as d}from"./p-7207c87a.js";import{t as p,h,e as f,f as u,o as m,j as b,k as g,a as v,C as w,c as k,l as y,F as x,D as A,m as z,n as C,p as M,s as F,i as P,d as T,q as O,u as _,v as B,w as j}from"./p-6d0668a6.js";import{l as E,c as S,L as N,b as I,a as Y,h as D,g as H,w as $,d as G,e as R}from"./p-f92d0101.js";import{c as Z,g as q,a as V,b as Q,d as U,e as X,f as W,h as J,i as K,j as ee,k as te,l as ie,m as re,n as oe,o as ae,t as se}from"./p-e5086616.js";import{g as ne,c as ce,a as le,n as de,e as pe,S as he,N as fe,P as ue,K as me}from"./p-e58fd9e3.js";import{f as be,M as ge,C as ve,D as we,g as ke,a as ye,b as xe,c as Ae,d as ze,e as Ce,h as Le,i as Me,j as Fe,k as Pe,l as Te,m as Oe,n as _e}from"./p-5feca333.js";import{T as Be,O as je,M as Ee}from"./p-d1c11cf1.js";import{a as Se,b as Ne,c as Ie}from"./p-bc36f8a6.js";const Ye=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>`;const De=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>`;const He=".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;height:44px}.common-button .common-button-icon{font-size:18px}";const $e=He;const Ge=class{constructor(t){e(this,t);this.fontFamily="Roboto"}render(){return t(i,{key:"20934a73599663dde31e5d2e44e7d4e07c6abb3a",style:{"--font-family":this.fontFamily}},t("button",{key:"10660a565bebc2e2d68197291b58e4f0f707439f",part:"common-button",class:"common-button",onClick:()=>this.action()},t("span",{key:"89ac4803284dec581c71da1622b5dea2f86254b0",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?Ye:De}),t("span",{key:"96d918bc3f3d02424acd7050131bf8ddedc12406",part:"common-button-label",class:"label"},this.name)))}};Ge.style=$e;const Re='.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container,.filters-container .filters-outdoor-sites-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-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-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}';const Ze=Re;const qe=class{constructor(t){e(this,t);this.resetFilter=r(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.fontFamily="Roboto"}handleEraseTreksFilters(){p.forEach((e=>{l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;l.currentTreks=h();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(e){this.selectedSegment=e}handleSegment(e){if(l.mode==="treks"){return p.filter((t=>t.segment===e)).some((e=>l[e.property]&&l[e.property].length>0))}else if(l.mode==="touristicContents"){return f.filter((t=>t.segment===e)).some((e=>l[e.property]&&l[e.property].length>0))}else if(l.mode==="touristicEvents"){return u.filter((t=>t.segment===e)).some((e=>l[e.property]&&l[e.property].length>0))}else if(l.mode==="outdoor"){return m.filter((t=>t.segment===e)).some((e=>l[e.property]&&l[e.property].length>0))}}handleEraseTouristicContentsFilters(){f.forEach((e=>{l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicContents=b();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){u.forEach((e=>{l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicEvents=g();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}handleEraseOutdoorSitesFilters(){m.forEach((e=>{l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentOutdoorSites=v();this.resetFilter.emit()}handleOkOutdoorSitesFilters(){this.handleFilters()}render(){return t(i,{key:"7cb0827af20aec71998635f772961892bae64782",style:{"--font-family":this.fontFamily}},t("div",{key:"7ca850687d5c240429364fce16a2e985f4d14a69",part:"options-container",class:"options-container"},t("div",{key:"0608d1e60c4e3a3466f16907ed1a87a1a0500cbf",part:"filters-container",class:"filters-container"},l.mode==="treks"&&t("div",{key:"bb266f50acbf0c404f7ac64dfde538f8327db50b",part:"filters-treks-container",class:"filters-treks-container"},t("div",{key:"68e8bffaf9784038487f1383e3c26d4a7e7ec8d6",part:"filters-options-container",class:"filters-options-container"},l.treksWithinBounds&&t("div",{key:"d22377ccd74aa51463270f5bd922bd15159aeff7",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?c[l.language].treks:c[l.language].trek}`),t("div",{key:"d99afb8765bb918f10d2662b4b525c3bccf94014",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},t("button",{key:"1e976bf1b4f85e33e5861653d19311e019a9534b",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTreksFilters()},c[l.language].erase),t("button",{key:"761793867f49f477f013946e1eaefd09e1d29a2a",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},c[l.language].ok))),t("div",{key:"ac29966072168933f7905845d255dcf058dcda82",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&t("label",{key:"0d8b89703a4286d2287b8a86c6bf7709faa8e615",part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},c[l.language].home.segment.treks," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&t("label",{key:"1c57830b534b5f2fe9e9a3d8c7fdb70840ccdb3a",part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},c[l.language].themes," ",l.selectedThemesFilters!==0&&`(${l.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&t("label",{key:"3644ee38d8f452a6ec6f3a3a2fbdeb2278ed25f8",part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},c[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),t("div",{key:"1c6468c5daf78faa0e1c81896896951f2d0d9d12",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},l["practices"].length>0&&t("div",{key:"0a63d2022609cabcd4811ba0a3465a6b62d1222b",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"99a5b02f8d81082d6fda024ea3cf9e943f5cb6e1",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderPractices})),l["difficulties"].length>0&&t("div",{key:"00867ddca97044ae17ff7f404d50116c7c7a1571",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"cfbcd5a30e22caa42708ff47fb868bd63a77c814",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderDifficulties})),l["durations"].length>0&&t("div",{key:"d1eec8a2747f52e7ab23d06a5317640904cb8932",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"6239dc492b7203c008d24a91faaa03b3d5234a82",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderDurations})),l["lengths"].length>0&&t("div",{key:"108e2a5a071b8b1d2407873efe5275a2b5548329",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"b0b25767deb8c55678e34be1d14677182b86e0ab",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderLengths})),l["elevations"].length>0&&t("div",{key:"23c722fa4f015a7d1e962b7e13a352770362c366",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"2a9bc4968ccb250ae43dc36d3064283e2ea631a8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderElevations})),l["routes"].length>0&&t("div",{key:"081b49faab7f24cd5444a5f3856d9a1ae75fae0e",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"9da94f9ce99386a1a3fa9938f85fcdea3cfccfe4",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderRoutes})),l["accessibilities"].length>0&&t("div",{key:"abc8b5530dbaaee862712b0400f9694504e225f7",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"b9dac8b1b9c93051920f5120f73f758c18ee2867",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderAccessibilities})),l["labels"].length>0&&t("div",{key:"b514da44c0a95b792d527e88c7d0e9a74cf70635",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"71be7fb25371586f1ad1b44f136be028582bd5f9",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&t("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["themes"].length>0&&t("div",{key:"0c0ae67b8266db5364a746edde0dd74b8c81535c",part:"",class:"filter-container"},t("grw-filter",{key:"39bec081b3ca8506378a7478f8d27a4d88589b8a",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].themes,filterPlaceholder:c[l.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},l["districts"].length>0&&t("div",{key:"d3832fe24e8925133b2e7044675b88b3a84668d4",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"7bd9147852d6d8e5b1aa4e407636dace41b45950",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:c[l.language].placeholderDistricts})),l["cities"].length>0&&t("div",{key:"f798c02a9811f4726a6efdd20bb29e789c64a435",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"a2497727878f08ca6833c8b8cf14461984ea91e2",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].crossedCities,filterPlaceholder:c[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicContents"&&t("div",{key:"7ff7afa469ec1f70a2c65891c40673b749d01f03",part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},t("div",{key:"d26d5e679ee89784aa7bfab9880733aea80cb25b",part:"filters-options-container",class:"filters-options-container"},l.touristicContentsWithinBounds&&t("div",{key:"ffa578e5c8700a02f3532d7cfe73786adf99600c",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?c[l.language].home.touristicContents:c[l.language].home.touristicContent}`),t("div",{key:"3b2dd444be31e090a93a77884187533d706ac54d",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},t("button",{key:"22b85f396c036f1c53538cdbfb6cf4eb6bfed91a",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTouristicContentsFilters()},c[l.language].erase),t("button",{key:"6c3ceb7d89b206396b68c3a40be88b9056846ab7",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},c[l.language].ok))),t("div",{key:"7775cc54df6aa5ddcffcc6b761c6cd1426d86821",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&t("label",{key:"e85dd1dc7601c99140285bf2dd5ed8a0d804888d",part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},c[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&t("label",{key:"3cdf68426f8722b260587e06e3b7029f22690e8d",part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},c[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),t("div",{key:"a5b816a3e56c04f7b3d80d9a58b0d96c64e87626",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},l["touristicContentCategories"].length>0&&t("div",{key:"2c39f1384e2b49599b7eb040a0a2f5e7dbeaf52a",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"e26190a8d6d43872b041e6519919e069a2230ffb",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},l["districts"].length>0&&t("div",{key:"326e0471f4d065f86a4e799b0369490eb2c6089a",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"1c6c2742d7f33f13c8fc9268096d1e5f54e44369",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:c[l.language].placeholderDistricts})),l["cities"].length>0&&t("div",{key:"491dc0f4101c21f6b396a3e529826a104b1e5044",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"d1774b6bd54a39d60745f5e819d6a65ebbd76fac",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].crossedCities,filterPlaceholder:c[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicEvents"&&t("div",{key:"c348864948b70fd86e2f787c8e4663bbcd7bd797",part:"filters-touristic-events-container",class:"filters-touristic-events-container"},t("div",{key:"164ab5e697e32fdc98b4ace8d04058e8fb2a29f0",part:"filters-options-container",class:"filters-options-container"},l.touristicEventsWithinBounds&&t("div",{key:"845d53b5e85f258d0ee7adc53810ad49fd73d93b",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?c[l.language].home.touristicEvents:c[l.language].home.touristicEvent}`),t("div",{key:"a103291d00f28cd1edec0be589ed968c123963cf",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},t("button",{key:"cd0084e1b079006aa84459517dd05d8360c805b1",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseTouristicEventsFilters()},c[l.language].erase),t("button",{key:"90d9a9543e6d9543ec666b06d2eb072a71f6d7fc",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},c[l.language].ok))),t("div",{key:"a028044dc52dc04d58663163fbccd742699ab31f",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&t("label",{key:"7d37a03878eea6fdfc7be4b8c84eabdf85e8023f",part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},c[l.language].services," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&t("label",{key:"4cf188f9d3c50482d5cd515941929c4d7fb307cd",part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},c[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),t("div",{key:"135f6b451a25254c81920a89ecb511834cbacda3",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},l["touristicEventTypes"].length>0&&t("div",{key:"9c62a23f0c9d70c9ec60a0ef1440c567a0df3b3c",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"5414ba2979bf112516d42fde4b2de23e3ed37936",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].type,filterPlaceholder:c[l.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},l["districts"].length>0&&t("div",{key:"aa6e6933f9394e9448274f782cfa81a271510bd0",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"dac40ec18d9dc3f1c00e45f80c8150217c47d8bf",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:c[l.language].placeholderDistricts})),l["cities"].length>0&&t("div",{key:"a80b5c285f00dcc89f131c048742b7c8f170a410",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"678695182e258c014b061fadf2f994c60f3a5b1e",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].crossedCities,filterPlaceholder:c[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="outdoor"&&t("div",{key:"0aca784169b67e5f7bb08f427b7b9579d5c918b3",part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},t("div",{key:"59c1b969199440613d994dd04750fa248f5902a9",part:"filters-options-container",class:"filters-options-container"},l.outdoorSitesWithinBounds&&t("div",{key:"119faef0178c050e66b43ad2520aec585e77910c",part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${l.outdoorSitesWithinBounds.length} ${l.outdoorSitesWithinBounds.length>1?c[l.language].home.outdoorSites:c[l.language].home.outdoorSite}`),t("div",{key:"8638027f4f673ea2453a23e46e62d5a2030586eb",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},t("button",{key:"2ffd27a1bdc91be1bd328db313dc00b05a8cf85b",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleEraseOutdoorSitesFilters()},c[l.language].erase),t("button",{key:"c6a2adf9d00c0e2b112624942a6a4d6c80a6139a",part:"filter-option-button",class:"filter-option-button",onClick:()=>this.handleOkOutdoorSitesFilters()},c[l.language].ok))),t("div",{key:"8cc082dad59e4e304ab19d8303ee3b703faab76d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&t("label",{key:"ea4cef9ee95e5e19495d13767150a632a30e314d",part:"segment",class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},c[l.language].home.segment.outdoorSites," ",l.selectedActivitiesFilters!==0&&`(${l.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&t("label",{key:"3807ad0c400b66c30ae3cd7ae8483b4b16699df0",part:"segment",class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},c[l.language].themes," ",l.selectedThemesFilters!==0&&`(${l.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&t("label",{key:"41833fbbe64154b7b8e8e9bdaec14f7cbdab6202",part:"segment",class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},c[l.language].location," ",l.selectedLocationFilters!==0&&`(${l.selectedLocationFilters})`)),t("div",{key:"0d72e1572521e536593e9cf928b47664074febde",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},l["outdoorPractices"].length>0&&t("div",{key:"2d57106ff3c8a996927aa12f12485ac6e3667f5a",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"34d61290f728c3bb89122f7bd39c52847f0c16a5",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].practice,filterPlaceholder:c[l.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["outdoorSiteTypes"].length>0&&t("div",{key:"d624787d8a82df90196aa684d0ab314bcc454583",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"1f786587372e88148d3386585a6de96e3a44c121",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:c[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&t("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["themes"].length>0&&t("div",{key:"74df99c7f261902662125f04dfff5d58377735cf",part:"",class:"filter-container"},t("grw-filter",{key:"ab3055ff3652cfbd72a3020bd14f798385fafd57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].themes,filterPlaceholder:c[l.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&t("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},l["districts"].length>0&&t("div",{key:"e541bb845bb3df017711368796e7262fe6eec179",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"3b1266c88bbcad0a2953065c81ba12fff62defc8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:c[l.language].placeholderDistricts})),l["cities"].length>0&&t("div",{key:"5d8f67bb98692023f243d151b6ec05244827155c",part:"filter-container",class:"filter-container"},t("grw-filter",{key:"5beca62535975404d512fc7ebd9c7af320071b57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:c[l.language].crossedCities,filterPlaceholder:c[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),t("div",{key:"83051ed904bf12db211d03a90576213d510d14aa",part:"back-filters-container",class:"back-filters-container",onClick:()=>this.handleFilters()})))}};qe.style=Ze;const Ve=".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)}}";const Qe=Ve;const Ue=class{constructor(t){e(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}render(){return t(i,{key:"7bfffe55c6ad0d9e710d0ecac80eae6e1d2b82fb",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},t("span",{key:"ff3f0d45fde66ff7fe393bee41d8f74ca8e672d4",part:"loader",class:"loader"}))}};Ue.style=Qe;var Xe={exports:{}};(function(e,t){(function(t,i){{e.exports=t(E.exports)}if(typeof i!=="undefined"&&i.L){t(i.L)}})((function(e){e.locales={};e.locale=null;e.registerLocale=function t(i,r){e.locales[i]=e.Util.extend({},e.locales[i],r)};e.setLocale=function t(i){e.locale=i};return e.i18n=e._=function t(i,r){if(e.locale&&e.locales[e.locale]&&typeof e.locales[e.locale][i]!=="undefined"){i=e.locales[e.locale][i]}try{i=e.Util.template(i,r)}catch(e){}return i}}),window)})(Xe);var We={exports:{}};(function(e,t){!function(e){e()}((function(){!function(t,i){e.exports=t(E.exports),void 0!==i&&i.L&&t(i.L)}((function(e){return e.locales={},e.locale=null,e.registerLocale=function(t,i){e.locales[t]=e.Util.extend({},e.locales[t],i)},e.setLocale=function(t){e.locale=t},e.i18n=e._=function(t,i){e.locale&&e.locales[e.locale]&&e.locales[e.locale][t]&&(t=e.locales[e.locale][t]);try{t=e.Util.template(t,i)}catch(e){}return t}}),window);var t=6e4,i=60*t,r=24*i;function o(e){var o=Math.floor(e/r),a=Math.floor((e-o*r)/i),s=Math.floor((e-o*r-a*i)/t),n=Math.round((e-o*r-a*i-s*t)/1e3);return 60===n&&(s++,n=0),60===s&&(a++,s=0),24===a&&(o++,a=0),(o?o+"d ":"")+a.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+n.toString().padStart(2,0)+'"'}function a(e,t){var i=b("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(e,t,i){return!1===t?Promise.resolve():i instanceof Promise?i:new Promise((function(t,i){var r=document.createElement("script");r.addEventListener("load",t,{once:!0}),r.src=e,document.head.appendChild(r)}))}function n(e,t){t.classed("canvas-path",!0),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()}function c(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e}function l(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))}function d(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))}function p(e,t,i){return(i?l:d).call(null,e,t)}function h(e,t,i){t&&d(e,t),i&&l(e,i)}function f(e,t,i){return void 0===i?L.DomUtil.getStyle(e,t):e.style.setProperty(t,i)}function u(e,t,i,r){return f(e,t,r?i:"")}function m(e,t,i,r){return e[r?"on":"off"](t,i)}function b(e,t,i,r){var o=L.DomUtil.create(e,t||"");return i&&w(o,i),r&&g(r,o),o}function g(e,t){return e.appendChild(t)}function v(e,t,i){return e.insertAdjacentElement(i,t)}function w(e,t){for(var i in t)e.setAttribute(i,t[i])}function k(e,t){return(t||document).querySelector(e)}var y=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function z(){return Math.random().toString(36).substr(2,9)}function C(e,t){for(var i in e)t(e[i],i)}var M=Object.freeze({__proto__:null,formatTime:o,saveFile:a,lazyLoader:s,drawCanvas:n,clamp:c,addClass:l,removeClass:d,toggleClass:p,replaceClass:h,style:f,toggleStyle:u,toggleEvent:m,create:b,append:g,insert:v,setAttributes:w,select:k,on:y,off:x,hasClass:A,randomId:z,each:C}),F={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"}},P=function(e){var t=e.height,i=e.xAttr,r=e.yAttr,o=e.scaleX,a=e.scaleY,s=e.interpolation,n=void 0===s?"curveLinear":s;return d3.area().curve("string"==typeof n?d3[n]:n).x((function(e){return e.xDiagCoord=o(e[i])})).y0(t).y1((function(e){return a(e[r])}))},T=function(e){var t=e.name,i=e.color,r=e.strokeColor,o=e.strokeOpacity,a=e.fillOpacity,s=d3.create("svg:path");return t&&s.classed(t,!0),s.style("pointer-events","none"),s.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",o||"1").attr("fill-opacity",a||"0.8"),s},O=function(e){var t=e.type,i=void 0===t?"axis":t,r=e.tickSize,o=void 0===r?6:r,a=e.tickPadding,s=void 0===a?3:a,n=e.position,c=e.height,l=e.width,d=e.axis,p=e.scale,h=e.ticks,f=e.tickFormat,u=e.label,m=e.labelX,b=e.labelY,g=e.name,v=void 0===g?"":g,w=e.onAxisMount;return function(e){var t=0,r=0;"bottom"==n&&(r=c),"right"==n&&(t=l),"x"==d&&"grid"==i?o=-c:"y"==d&&"grid"==i&&(o=-l);var a=d3["axis"+n.replace(/\b\w/g,(function(e){return e.toUpperCase()}))]().scale(p).ticks(h).tickPadding(s).tickSize(o).tickFormat(f),g=e.append("g").attr("class",[d,i,n,v].join(" ")).attr("transform","translate("+t+","+r+")").call(a);return u&&g.append("svg:text").attr("x",m).attr("y",b).text(u),w&&g.call(w),g}},_=function(e){return e.type="grid",O(e)},B=function(e){var t=e.theme,i=e.xCoord,r=void 0===i?0:i,o=e.yCoord,a=void 0===o?0:o,s=e.labels,n=void 0===s?{}:s,c=e.item,l=void 0===c?{}:c,d=e.length,p=void 0===d?0:d;return function(e){e.attr("class","height-focus-group");var i,o=e.select(".height-focus.line"),s=e.select(".height-focus.circle-lower"),c=e.select(".height-focus-label");return o.node()||(o=e.append("svg:line")),s.node()||(s=e.append("svg:circle")),c.node()||(c=e.append("svg:text")),isNaN(r)||isNaN(a)||(s.attr("class",t+" height-focus circle-lower").attr("transform","translate("+r+","+a+")").attr("r",6).attr("cx",0).attr("cy",0),o.attr("class",t+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",a).attr("y2",p),c.attr("class",t+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",p),Object.keys(n).sort((function(e,t){return n[e].order-n[t].order})).forEach((function(e){(i=c.select(".height-focus-"+n[e].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+n[e].name).attr("dy","1.5em")),i.text("function"!=typeof n[e].value?n[e].value:n[e].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),e}},j=function(e){var t=e.name,i=e.label,r=e.width,o=e.height,a=e.margins,s=void 0===a?{}:a,n=e.color,c=e.path;return function(e){return e.attr("class","legend-item legend-"+t.toLowerCase()).attr("data-name",t),e.on("click.legend",(function(){return d3.select(e.node().ownerSVGElement||e).dispatch("legend_clicked",{detail:{path:c.node(),name:t,legend:e.node(),enabled:!c.classed("leaflet-hidden")}})})),e.append("svg:rect").attr("x",r/2-50).attr("y",o+s.bottom/2).attr("width",50).attr("height",10).attr("fill",n).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),e.append("svg:text").text(L._(i||t)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",o+s.bottom/2).attr("dy","0.75em"),e}},S=function(e){var t=e.xCoord,i=e.yCoord,r=e.width,o=e.height,a=e.labels,s=void 0===a?{}:a,n=e.item,c=void 0===n?{}:n;return function(e){var a=e.select(".mouse-focus-line"),n=e.select(".mouse-focus-label");a.node()||(a=e.append("svg:line")),n.node()||(n=e.append("g"));var l=n.select(".mouse-focus-label-rect"),d=n.select(".mouse-focus-label-text");l.node()||(l=n.append("svg:rect")),d.node()||(d=n.append("svg:text"));var p,h=0,f=0,u={width:0,height:0};try{u=d.node().getBBox()}catch(t){return e}return t&&(h=t+(t<r/2?10:-u.width-10)),i&&(f=Math.max(i-u.height,L.Browser.webkit?0:-1/0)),a.attr("class","mouse-focus-line").attr("x2",t).attr("y2",0).attr("x1",t).attr("y1",o),n.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",h-5).attr("y",f-5).attr("width",u.width+10).attr("height",u.height+10).attr("rx",3).attr("ry",3),d.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",f),Object.keys(s).sort((function(e,t){return s[e].order-s[t].order})).forEach((function(e){(p=d.select(".mouse-focus-label-"+s[e].name)).size()||(p=d.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+s[e].name).attr("dy","1.5em")),p.text("function"!=typeof s[e].value?s[e].value:s[e].value(c))})),d.select("tspan").attr("dy","1em"),d.selectAll("tspan").attr("x",h),e}},N=function(e){var t=e.height,i=e.width;return function(e){e.data([{x:0,y:t}]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"}));var r=e.selectAll(".horizontal-drag-rect").data([{w:i}]),o=e.selectAll(".horizontal-drag-line").data([{w:i}]),a=e.selectAll(".horizontal-drag-label").data([{w:i-8}]),s=e.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),o.exit().remove(),a.exit().remove(),s.exit().remove(),r.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(r).attr("width",(function(e){return e.w})),o.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(o).attr("x2",(function(e){return e.w})),a.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(a).attr("x",(function(e){return e.w})),s.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(s).attr("d",d3.symbol().type((function(e){return e.type})).size((function(e){return e.size}))).attr("transform",(function(e){return"translate("+e.x+","+e.y+") rotate("+e.angle+")"})),e}},I=function(e){var t=e.point,i=e.height,r=e.width,o=e.x,a=e.y;return function(e){return isNaN(o)||isNaN(a)||(t.item&&t.item.property("isConnected")||(t.position=t.position||"bottom",t.item=e.append("g"),t.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;"),t.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),t.label&&t.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),t.item.datum({pos:t.position,x:o,y:a}).attr("class",(function(e){return"point "+e.pos})).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})),t.item.select("line").datum({y2:{top:-a,bottom:i-a}[t.position],x2:{left:-o,right:r-o}[t.position]||0}).attr("y2",(function(e){return e.y2})).attr("x2",(function(e){return e.x2})),t.label&&t.item.select("text").text(t.label)),e}},Y=function(e){var t=e.min,i=e.max,r=e.attr,o=e.name,a=e.forceBounds,s=e.scale;return function(e){r=r||o,s&&s.attr&&(r=s.attr);var n=e&&e.length?d3.extent(e,(function(e){return e[r]})):[0,1];return void 0!==t&&(t<n[0]||a)&&(n[0]=t),void 0!==i&&(i>n[1]||a)&&(n[1]=i),n}},D=function(e){var t=e.axis;return function(e,i){return"x"==t?[0,e]:"y"==t?[i,0]:void 0}},H=function(e){var t=e.data,i=e.attr,r=e.min,o=e.max,a=e.forceBounds,s=e.range;return d3.scaleLinear().range(s).domain(Y({min:r,max:o,attr:i,forceBounds:a})(t))},$=function(e){var t=e.width,i=e.height,r=e.margins,o=void 0===r?{}:r,a=t-o.left-o.right,s=i-o.top-o.bottom,n=d3.create("svg:svg").attr("class","background"),c=n.append("g"),l={grid:c.append("g").attr("class","grid"),area:c.append("g").attr("class","area"),axis:c.append("g").attr("class","axis"),point:c.append("g").attr("class","point"),brush:c.append("g").attr("class","brush"),tooltip:c.append("g").attr("class","tooltip").attr("display","none"),ruler:c.append("g").attr("class","ruler"),legend:c.append("g").attr("class","legend")},d=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),p=d.append("svg:rect").attr("class","zoom").attr("fill","white"),h=l.area.append("svg:foreignObject").attr("mask","url(#"+d.attr("id")+")"),f=h.append("xhtml:canvas").attr("class","canvas-plot"),u=f.node().getContext("2d");l.tooltip.call(S({xCoord:0,yCoord:0,height:s,width:a,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),b={mask:d,canvas:f,context:u,brush:m},g={svg:n,g:c,panes:l,utils:b,scale:function(e){return{x:H(e.x),y:H(e.y)}},_resize:function(e){var t=e.width,i=e.height,r=e.margins,o=void 0===r?{}:r,a=e.ruler,s=t-o.left-o.right,d=i-o.top-o.bottom;n.attr("viewBox","0 0 ".concat(t," ").concat(i)).attr("width",t).attr("height",i),c.attr("transform","translate("+o.left+","+o.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&f.style("transform","translate("+o.left+"px,"+o.top+"px)"),p.attr("x",0).attr("y",0).attr("width",s).attr("height",d),h.attr("width",s).attr("height",d),f.attr("width",s).attr("height",d),a&&l.ruler.call(N({height:d,width:s})),l.brush.call(m.extent([[0,0],[s,d]])),l.brush.select(".overlay").attr("cursor",null),g._width=s,g._height=d,g.svg.dispatch("resize",{detail:{width:s,height:d}})},pane:function(e){return l[e]||(l[e]=c.append("g").attr("class",e)),l[e]},get:function(e){return b[e]}};return g._resize({width:t,height:i,margins:o}),g},G=Object.freeze({__proto__:null,Colors:F,Area:P,Path:T,Axis:O,Grid:_,PositionMarker:B,LegendItem:j,Tooltip:S,Ruler:N,CheckPoint:I,Domain:Y,Range:D,Scale:H,Bisect:function(e){var t=e.data,i=void 0===t?[0,1]:t,r=e.scale,o=e.x,a=e.attr;return d3.bisector((function(e){return e[a]})).left(i,r.invert(o))},Chart:$}),R=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(e,t){var i=this;this.options=e,this.control=t,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=e.dragging,this._zoomEnabled=e.zooming;var r=this._chart=$(e);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],t.on("eletrack_added",(function(e){i._maskGaps.push(e.index),t.once("eledata_updated",(function(e){return i._maskGaps.push(e.index)}))}))},update:function(e){return e&&(e.data&&(this._data=e.data),e.options&&(this.options=e.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var e=this;return function(t){return t.append((function(){return e._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(e){var t=this._paths[e],i=this._props.areas[e];t.datum(this._data).attr("d",P(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),t.classed("leaflet-hidden")||(this.options.preferCanvas?n(this._context,t):this._area.append((function(){return t.node()})))},_hasActiveLayers:function(){var e=this._paths;for(var t in e)if(!e[t].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(e){var t=this,i=function(e){if(t._data.length&&("brush"!=e.type||e.sourceEvent)){var i=t._chart.panes.brush.select(".overlay").node(),r=d3.pointers(e,i)[0][0],o=t._data[t._findIndexForXCoord(r)];t.fire("mouse_move",{item:o,xCoord:r})}};this._brush.filter((function(e){return t._brushEnabled&&!e.shiftKey&&!e.button})).on("end.update",(function(e){if(t._data.length){var i=e.selection;if(i){var r=t._findIndexForXCoord(i[0]),o=t._findIndexForXCoord(i[1]);t.fire("dragged",{dragstart:t._data[r],dragend:t._data[o]})}}})).on("brush.update",i),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",i)},_initClipper:function(){var e=this,t=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(t){return e._zoomEnabled&&(t.shiftKey||4==t.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&t.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",!0),e._mask&&e._point.attr("mask","url(#"+e._mask.attr("id")+")")),e.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",!1),e._mask&&e._point.attr("mask",null)),e.zooming=!1,t.style("cursor","")})).on("zoom",(function(t){e.zooming=!1,e._updateScale(),e.zooming=!0,e._scales.distance=e._x=t.transform.rescaleX(e._x),e._scales.time&&(e._scales.time=t.transform.rescaleX(e._scales.time)),e._resetDrag(),t.sourceEvent&&"mousemove"==t.sourceEvent.type&&e._hideDiagramIndicator(),e.fire("zoom")})),t.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var e=this;this._container.on("legend_clicked",(function(t){var i=t.detail,r=i.path,o=i.legend,a=i.name,s=i.enabled;if(r){var n=k("text",o),c=k("rect",o);u(n,"text-decoration-line","line-through",s),u(c,"fill-opacity","0",s),p(r,"leaflet-hidden",s),e._updateArea(),e.fire("elepath_toggle",{path:r,name:a,legend:o,enabled:s})}}))},_initRuler:function(){var e=this;if(this.options.ruler){var t=d3.format(".0f"),i=this._drag;i.on("start end",(function(t,i){var r=e._height(),o=e._ruler.data()[0].y;(o>=r||o<=0)&&e._ruler.select(".horizontal-drag-label").text(""),e._hideDiagramIndicator()})).on("drag",(function(i,r){var o=e._height(),a=d3.pointers(i,e._area.node())[0][1],s=a>0?a<o?a:o:0,n=e._y.invert(s),c=L.extend(e._ruler.data()[0],{y:s});e._ruler.data([c]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})).classed("active",s<o),e._container.select(".horizontal-drag-label").text(t(n)+" "+(e.options.imperial?"ft":"m")),e.fire("ruler_filter",{coords:a<o&&a>0?e._findCoordsForY(a):[]})})),this._ruler.call(i)}},_initScale:function(){var e=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:e.xAttr,min:e.xAxisMin,max:e.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:e.yAttr,min:e.yAxisMin,max:e.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options;e.xAttr||(e.xAttr=t.xAttr),e.yAttr||(e.yAttr=t.yAttr),void 0===e.preferCanvas&&(e.preferCanvas=t.preferCanvas);var i=T(e);this._paths[e.name]=i,this._props.areas[e.name]=e,t.legend&&(this._props.legendItems[e.name]={name:e.name,label:e.label,color:e.color,path:i})},_registerAxisGrid:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x),this._props.grids[e.name||e.axis]=e},_registerAxisScale:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options,i=e.scale;if("function"==typeof this._scales[e.name])e.scale=this._scales[e.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:t.forceAxisBounds},i)).attr=i.attr||e.name;var r=this._domains[e.name]=Y(e),o=this._ranges[e.name]=D(e);i.range=i.range||o(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[e.name]=i,e.scale=this._scales[e.name]=H(i)}return e.ticks||("x"==e.axis?e.ticks=t.xTicks:"y"==e.axis&&(e.ticks=t.yTicks)),this._props.axes[e.name]=e,i},_registerCheckPoint:function(e){var t,i,r;this._data.length&&(e.latlng?(t=this._data[this._findIndexForLatLng(e.latlng)],i=this._x(t.dist),r=this._y(t.z)):isNaN(e.dist)||(i=this._x(e.dist),t=this._data[this._findIndexForXCoord(i)],r=this._y(t.z)),this._point.call(I({point:e,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(e){var t;e.order=null!==(t=e.order)&&void 0!==t?t:100,this._props.tooltipItems[e.name]=e},_updateArea:function(){var e=this._paths;for(var t in this._context.clearRect(0,0,this._width(),this._height()),e)e[t].classed("leaflet-hidden")||this._drawPath(t)},_updateAxis:function(){var e=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var t,i,r,o=this._props.grids,a=this._props.axes,s={width:this._width(),height:this._height(),tickFormat:""},n={width:this._width(),height:this._height()};for(var c in o)t=L.extend({},s,o[c]),r=_(t),this._grid.call(r);for(var l in a)!1!==e[l]&&"summary"!==e[l]&&(t=L.extend({},n,a[l]),i=O(t),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(e,t,i){var r=d3.select(i[t]),o=r.attr("transform"),a=o.substring(o.indexOf("(")+1,o.indexOf(")")).split(",");r.attr("transform","translate("+(+a[0]+40*t)+","+a[1]+")"),t>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var e=this,t=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[t.left,0],[this._width()-t.right,this._height()]]).translateExtent([[t.left,-1/0],[this._width()-t.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(t,i){if(!(i>=e._maskGaps.length-2)){var r=e._data[e._maskGaps[i]],o=e._data[e._maskGaps[i+1]],a=e._x(e._data[e._findIndexForLatLng(r.latlng)].dist),s=e._x(e._data[e._findIndexForLatLng(o.latlng)].dist);e._mask.append("rect").attr("x",a).attr("y",0).attr("width",s-a).attr("height",e._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var e=this;if(!1!==this.options.legend){var t,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)t=j(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(t);var o=this._legend.selectAll(".legend-item"),a=o.nodes().length,s=Array(Math.floor(a/2)).fill(null).map((function(e,t){return 2*(t+1)-(1-Math.sign(a%2))})),n=s.slice().reverse().map((function(e){return-e}));a%2!=0&&n.push(0),s=n.concat(s);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,d=30*a;a&&this.options.margins.right<d&&(this.options.margins.right=d,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),o.each((function(t,i,r){var o=d3.select(r[i]),a=(o.select("rect"),o.attr("data-name")),n=e._paths[a],l=55*s[i],d=2*c;o.attr("transform","translate("+l+", "+d+")"),a in e.options&&"disabled"==e.options[a]&&(n.classed("leaflet-hidden",!0),o.select("text").style("text-decoration-line","line-through"),o.select("rect").style("fill-opacity","0")),e._mask&&n.attr("mask","url(#"+e._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var e in this._scales)this._scales[e].domain(this._domains[e](this._data)).range(this._ranges[e](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(e){var t,i=this._data,r=this._y.invert(e),o=i.reduce((function(e,t,i){return t.z>=r&&e.push(i),e}),[]),a=0;return o.reduce((function(e,r,s){return o[t=s+1]===o[s]+1&&t!==o.length||(e.push(o.slice(a,t).map((function(e){return i[e].latlng}))),a=t),e}),[])},_findIndexForXCoord:function(e){var t=this;return d3.bisector((function(e){return e[t.options.xAttr]})).left(this._data||[0,1],this._x.invert(e))},_findIndexForLatLng:function(e){var t=null,i=1/0;return this._data.forEach((function(r,o){var a=e.distanceTo(r.latlng);a<i&&(i=a,t=o)})),t},_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(e,t){this._tooltip.attr("display",null).call(S({xCoord:t,yCoord:this._y(e[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:e}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var q,V=L.Class.extend({initialize:function(e){switch(this.options=e,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(e){switch(this._map=e,this.options.marker){case"elevation-line":this._container=d3.select(e.getPane("elevationPane")).select("svg > g").call(B({}));break;case"position-marker":this._marker.addTo(e,{pane:"overlayPane"})}return this},update:function(e){if(e?this._props=e:e=this._props,e)switch(e.options&&(this.options=e.options),this._map||this.addTo(e.map),this._latlng=e.item.latlng,this.options.marker){case"elevation-line":if(this._container){var t=this._map.latLngToLayerPoint(this._latlng);t=L.extend({},e.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(t):t),this._container.classed("leaflet-hidden",!1),this._container.call(B({theme:this.options.theme,xCoord:t.x,yCoord:t.y,length:t.y-this._height()/e.maxElevation*t.z,labels:this._labels,item:t}))}break;case"position-marker":d(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 e=this.options;return e.height-e.margins.top-e.margins.bottom},_registerTooltip:function(e){this._labels[e.name]=e}}),Q=L.Class.extend({initialize:function(e,t){this.options=e,this.control=t,this.labels={},f(this._container=b("div","elevation-summary "+(e.summary?e.summary+"-summary":"")),"max-width",e.width?e.width+"px":"")},render:function(){var e=this;return function(t){return t.append((function(){return e._container}))}},reset:function(){this._container.innerHTML=""},append:function(e,t,i){return this._container.innerHTML+='<span class="'.concat(e,'"><span class="summarylabel">').concat(t,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var e=this;Object.keys(this.labels).sort((function(t,i){return e.labels[t].order-e.labels[i].order})).forEach((function(t){e.append(t,L._(e.labels[t].label),"function"!=typeof e.labels[t].value?e.labels[t].value:e.labels[t].value(e.control.track_info))}))},_registerSummary:function(e){for(var t in e){var i;e[t].order=null!==(i=e[t].order)&&void 0!==i?i:100,this.labels[t]=e[t]}}}),U={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},X=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:U,__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(e,t){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===t&&e.on&&(t=e),i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})}))},addTo:function(e){if(this.options.detached){var t=this._initElevationDiv();t.isConnected||v(e.getContainer(),t,"afterend"),g(t,this.onAdd(e))}else L.Control.prototype.addTo.call(this,e);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 e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){return e.off("elechart_updated",t.fn,t.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(e){return e.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(e){return e.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(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return e=e||this._data,L.latLngBounds(e.map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(e){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,e),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=U.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=U.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(F,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(e){case this.__D3:i="_d3LazyLoader",t="object"!==("undefined"==typeof d3?"undefined":Z(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",t="object"!==("undefined"==typeof toGeoJSON?"undefined":Z(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",t="object"!==Z(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",t="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",t="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=s(e,t,L.Control.Elevation[i])},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=b("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){t._initButton(i),t._initChart(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),e.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),y(e.getContainer(),"mousewheel",t._resetDrag,t),y(e.getContainer(),"touchstart",t._resetDrag,t),y(document,"keydown",t._keydownHandler,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()})),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(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(e){this.options.zFollow=e},show:function(){f(this._container,"display","block")},_addData:function(e){var t=this;if(e){var i=e.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":C(i.coordinates,(function(e){return t._addGeoJSONData(e)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===e.type&&C(e.features,(function(e){return t._addData(e)})),e._latlngs&&this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties)}},_addGeoJSONData:function(e,t){var i=this;e.forEach((function(e,r){var o,a,s,n,c;e.meta=null!==(o=e.meta)&&void 0!==o?o:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=t&&t.coordinateProperties||t;i.fire("elepoint_init",{point:e,props:l,id:r}),i._addPoint(null!==(a=e.lat)&&void 0!==a?a:e[1],null!==(s=e.lng)&&void 0!==s?s:e[0],null!==(n=null!==(c=e.alt)&&void 0!==c?c:e.meta.ele)&&void 0!==n?n:e[2]),i.fire("elepoint_added",{point:e,index:i._data.length-1})})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){if(this.options.reverseCoords){var r=[t,e];e=r[0],t=r[1]}this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){return L.DistanceMarkers&&e.target instanceof L.Polyline&&e.target[e.type+"DistanceMarkers"]()}))},_addMarker:function(e){e&&this._markers.addLayer(e)},_initAlmostOverHandler:function(e,t){var i=this;e&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",(function(e){return i._mousemoveLayerHandler(e)})).on("almost:out",(function(e){return i._mouseoutHandler(e)})))}))},_initDistanceMarkers:function(e,t){var i=this;e&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&t.addTo(e)})):this.options.polyline&&t.addTo(e))},_initElevationDiv:function(){var e=k(this.options.elevationDiv);return e||(this.options.elevationDiv="#elevation-div_"+z(),e=b("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&h(e,"leaflet-control","elevation-detached"),this.eleDiv=e},_initMapIntegrations:function(e,t){var i=e._map;e._map?(i.once("layeradd",(function(i){return e.options.autofitBounds&&e.fitBounds(t.getBounds())})),L.Browser.mobile?e.options.polyline&&t.addTo(i):(e._initAlmostOverHandler(i,t),e._initDistanceMarkers(i,t))):console.warn("Undefined elevation map object")},_collapse:function(){h(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){h(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var e=L.Canvas.prototype._fillStroke,t=this;L.Canvas.include({_fillStroke:function(i,r){if(t._layers.hasLayer(r)){var o=t.options.theme.replace("-theme",""),a=F[o]||{},s=r.options;if(s.color=a.line||a.area||o,s.stroke=!!s.color,e.call(this,i,r),s.stroke&&0!==s.weight){var n=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=a.outline||"#FFF",i.lineWidth=1.75*s.weight,i.stroke(),i.globalCompositeOperation=n}}else e.call(this,i,r)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){e._chartEnabled&&(e._chart._showDiagramIndicator(t.data,t.xCoord),e._chart._showDiagramIndicator(t.data,t.xCoord)),e._updateMarker(t.data)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_height:function(){if(this._chart)return this._chart._height();var e=this.options;return e.height-e.margins.top-e.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this.options;if(t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),t.detached){var i=this.eleDiv,r=i.offsetWidth,o=i.offsetHeight;r>0&&(t.width=r),o>20&&(t.height=o-20)}else{var a=this._map.getContainer().clientWidth;t._maxWidth=t._maxWidth>t.width?t._maxWidth:t.width,this._container.style.maxWidth=t._maxWidth+"px",t._maxWidth>a&&(t.width=a-30)}var s=this._chart=new R(t,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(e).call(s.render()),s.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 e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer;p(i.getElement&&i.getElement(),e.options.polyline.className+" "+e.options.theme,"layeradd"==t.type),m(i,"mousemove",e._mousemoveLayerHandler.bind(e),"layeradd"==t.type),m(i,"mouseout",e._mouseoutHandler.bind(e),"layeradd"==t.type)}))},_initMarker:function(e){var t=e.getPane("elevationPane");t||((t=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.getPane("mapPane"))).style.zIndex=625,t.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new V(this.options),this.fire("elechart_marker")},_initButton:function(e){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),!this.options.detached){var t=this._button=b("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},e);this.options.collapsed&&(this._collapse(),this.options.autohide?(y(e,"mouseover",this._expand,this),y(e,"mouseout",this._collapse,this)):(y(t,"click",L.DomEvent.stop),y(t,"click",this._toggle,this)),y(t,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(e){this._summary=new Q({summary:this.options.summary},this),d3.select(e).call(this._summary.render())},_keydownHandler:function(e){this.options.detached||"Escape"!==e.key||this._collapse()},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadLayer:function(e){var t=this,i=t.options,r=i.wptIcons,o=i.wptLabels,a=L.geoJson(e,{distanceMarkers:t.options.distanceMarkers,style:function(e){var i=L.extend({},t.options.polyline);return t.options.theme&&(i.className+=" "+t.options.theme),i},pointToLayer:function(e,i){var a,s,n;if(t.options.waypoints){var c=e.properties,l=null!==(a=c.desc)&&void 0!==a?a:"",d=null!==(s=c.name)&&void 0!==s?s:"",p=(null!==(n=c.sym)&&void 0!==n?n:d).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(t.options.waypoints)&&t._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(o)?d:""}),[!0,"markers"].includes(t.options.waypoints)&&0!=r){r.hasOwnProperty(p)||(r[p]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+p+'"></i>'})));var h=L.marker(i,{icon:r[p]});if([!0,"markers"].includes(o)&&(d||l)){var f=decodeURI("<b>"+d+"</b>"+(l.length>0?"<br>"+l:""));h.bindPopup(f,{className:"elevation-popup",keepInView:!0}).openPopup(),h.bindTooltip(f,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return t._addMarker(h),t.fire("waypoint_added",{point:h,element:i,properties:c}),h}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(t.addData(r),t.track_info=L.extend({},t.track_info,{name:e.name}))}});return t.lazyLoad(t.__D3).then((function(){t._initMapIntegrations(t,a),t._fireEvt("eledata_loaded",{data:e,layer:a,name:t.track_info.name,track_info:t.track_info})})),a},_dragendHandler:function(e){this._hideMarker(),this.fitBounds(L.latLngBounds([e.dragstart.latlng,e.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(e){this.fire("elechart_enter")},_mousemoveHandler:function(e){if(this._data.length&&this._chartEnabled){var t=this._findItemForX(e.xCoord);if(t){var i=e.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this._setMapView(t),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:t,xCoord:i}),this.fire("elechart_hover",{data:t,xCoord:i})}}},_mousemoveLayerHandler:function(e){if(this._data.length){var t=this._findItemForLatLng(e.latlng);if(t){var i=t.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this.fire("elechart_change",{data:t,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&d(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.lazyLoad(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r=t._prepareMultiLineStrings(r),r=t._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),o=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var a=toGeoJSON[r](i);return a.name=o.length>0?(null!==(t=Array.from(o).find((function(e){return"trk"==e.parentElement.tagName})))&&void 0!==t?t:o[0]).textContent:"",a},_prepareAdditionalProperties:function(e){return!e.name&&this._downloadURL&&(e.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),e},_prepareMultiLineStrings:function(e){return e.features.forEach((function(t){"MultiLineString"==t.geometry.type&&t.geometry.coordinates.forEach((function(i){e.features.push({geometry:{type:"LineString",coordinates:i},properties:t.properties,type:"Feature"})}))})),e.features.filter((function(e){return"MultiLineString"!=e.geometry.type}))},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;this.on("elechart_updated",(function(){return t._chart._registerCheckPoint(e)}))},_registerDataAttribute:function(e){var t=this,i=null;e.init&&this.on("elepoint_init",(function(i){return e.init.call(t,i)})),this.on("elepoint_added",(function(r){if(!1===e.skipNull){var o=t._data[r.index][e.name];if(r.index>0){var a=t._data[r.index-1][e.name];if(isNaN(a)){if(isNaN(i)||isNaN(o)?isNaN(i)?isNaN(o)||(a=o):a=i:a=(i+o)/2,!isNaN(a))return t._data.splice(r.index-1,1);t._data[r.index-1][e.name]=a}}isNaN(o)||(i=o)}t._data[r.index][e.name]=e.fetch.call(t,r.index,r.point),e.update&&(t._data[r.index][e.name]=e.update.call(t,t._data[r.index][e.name],r.index,r.point))}))},_registerTooltip:function(e){var t=this;if(e.chart){var i=L.extend({},e,{value:e.chart});this.on("elechart_init",(function(){return t._chart._registerTooltip(i)}))}if(e.marker){var r=L.extend({},e,{value:e.marker});this.on("elechart_marker",(function(){return t._marker._registerTooltip(r)}))}},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_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"!=f(this._container,"display")){var e,t=this.options;if(t.detached)e=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;e=t._maxWidth>i?i-30:t._maxWidth}if(e){var r=this._chart;t.width=e,r&&r._chart&&(r._chart._resize(t),t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(e){this._updateMapSegments(e.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this.options.followMarker&&this._map){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:!0,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:!0,duration:.25})}},_toggleChartHandler:function(e){var t=this,i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return p(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
2
|
+
/*!this._data.length ||*/
|
|
3
|
+
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(e){this._marker&&this._marker.update({map:this._map,item:e,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=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>",k(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:a.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var e=this.options;return e.width-e.margins.left-e.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)}});X.addInitHook((function(){var e=this,t=this.options,i={};t.imperial?(t.distanceFactor=this.__mileFactor,i.label="mi"):(t.distanceFactor=t.distanceFactor||1,i.label=t.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=e._data[i].latlng.distanceTo(e._data[i>0?i-1:i].latlng)*t.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(t){return e.track_info.distance=e.track_info.distance||0,e.track_info.distance+=t,e.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return e._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(e){return L._("x: ")+d3.format("."+t.decimalsX+"f")(e[t.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(e){return(e.distance||0).toFixed(2)+" "+i.label},order:10}})})),X.addInitHook((function(){var e=this,t=this.options,i={};i.label=t.timeLabel||"t",t.timeFactor=t.timeFactor||3600,this._timeAVGSpeed=(t.timeAVGSpeed||3.6)*(t.speedFactor||1),t.timeFormat?"time"==t.timeFormat?t.timeFormat=function(e){return new Date(e).toLocaleTimeString()}:"date"==t.timeFormat&&(t.timeFormat=function(e){return new Date(e).toLocaleDateString()}):t.timeFormat=function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")},t.xTimeFormat=t.xTimeFormat||function(e){return o(e).split("'")[0]},this._registerDataAttribute({name:"time",init:function(e){var t=e.point,i=e.props,r=e.id;i&&("coordTimes"in i?t.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?t.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(t.meta.time=new Date(Date.parse("object"===Z(i.time)?i.time[r]:i.time))))},fetch:function(e,t){if(!t.meta||!t.meta.time)if(t.meta=t.meta||{},e>0){var i=this._data[e].dist-this._data[e-1].dist,r=this._data[e-1].time.getTime(),o=i/this._timeAVGSpeed*this.options.timeFactor*1e3;t.meta.time=new Date(r+o)}else t.meta.time=new Date(Date.now());var a=t.meta.time;return a.getTime()-60*a.getTimezoneOffset()*1e3==0&&(a=0),a},update:function(e,t){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[t].time-this._data[t>0?t-1:t].time),this._data[t].duration=this.track_info.time,e}}),t.time&&"summary"!=t.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return e._width()},name:"time",tickFormat:function(e){return 0==e?"":t.xTimeFormat(e)},onAxisMount:function(t){t.select(".domain").remove(),t.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),t.selectAll(".tick line").attr("y2",e._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(t){return L._("t: ")+e.options.timeFormat(t.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(e){return L._("T: ")+o(e.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(e){return o(e.time||0)},order:20}}))})),X.addInitHook((function(){var e=this,t=this.options,i={},r=t.theme.replace("-theme",""),o=F[r]||{};t.imperial?(t.altitudeFactor=this.__footFactor,i.label="ft"):(t.altitudeFactor=t.heightFactor||t.altitudeFactor||1,i.label=t.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(e){var t=e.point;"alt"in t&&(t.meta.ele=t.alt)},fetch:function(i){return e._data[i].z*t.altitudeFactor},update:function(t,i){e.track_info.elevation_max=e.track_info.elevation_max||-1/0,e.track_info.elevation_min=e.track_info.elevation_max||1/0,e.track_info.elevation_avg=e.track_info.elevation_avg||0;var r=e._data,o=e.track_info;if(e.options.altitudeDeltaMax){var a=t-r[i>0?i-1:i].z,s=e.options.altitudeDeltaMax;Math.abs(a)>s&&(t=r[i-1].z+s*Math.sign(a))}return(t=c(t,e.options.altitudeRange))>o.elevation_max&&(o.elevation_max=t),t<o.elevation_min&&(o.elevation_min=t),o.elevation_avg=(t+o.elevation_avg)/2,t}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.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:o.area||r,strokeColor:t.detached?o.stroke:"#000",strokeOpacity:"1",fillOpacity:t.detached?o.alpha||"0.8":1,preferCanvas:t.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(e){return L._("y: ")+d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},marker:function(e){return d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(e){return(e.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(e){return(e.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(e){return(e.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),X.addInitHook((function(){var e=this;if(this.options.slope){var t=this.options,i={};i.label=t.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(t){var i=e._data,r=1e3*(i[t].dist-i[t>0?t-1:t].dist),o=i[t].z-i[t>0?t-1:t].z;return isNaN(o)||0===r?0:o/r*100},update:function(t,i){e.track_info.ascent=e.track_info.ascent||0,e.track_info.descent=e.track_info.descent||0,e.track_info.slope_max=e.track_info.slope_max||-1/0,e.track_info.slope_min=e.track_info.slope_min||1/0,e.track_info.slope_avg=e.track_info.slope_avg||0;var r=e.track_info,o=e._data,a=o[i].z-o[i>0?i-1:i].z;if(e.options.slopeDeltaMax){var s=slop-o[i>0?i-1:i].slope,n=e.options.slopeDeltaMax;Math.abs(s)>n&&(t=o[i-1].slope+n*Math.sign(s))}return t=c(t,e.options.slopeRange),a>0?e.track_info.ascent+=a:a<0&&(e.track_info.descent-=a),t>r.slope_max&&(r.slope_max=t),t<r.slope_min&&(r.slope_min=t),r.slope_avg=(t+r.slope_avg)/2,L.Util.formatNum(t,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.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(e){return L._("m: ")+e.slope+i.label},marker:function(e){return Math.round(e.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(t){return Math.round(t.ascent||0)+" "+(e.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(t){return Math.round(t.descent||0)+" "+(e.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(e){return Math.round(e.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(e){return Math.round(e.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(e){return Math.round(e.slope_avg||0)+" "+i.label},order:40}})}})),X.addInitHook((function(){var e=this;if(this.options.speed||this.options.acceleration){var t=this.options,i={};i.label=t.speedLabel||L._(t.imperial?"mph":"km/h"),t.speedFactor=t.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=e._data,o=1e3*(r[i].dist-r[i>0?i-1:i].dist),a=r[i].time-r[i>0?i-1:i].time;return a>0?Math.abs(o/a*t.timeFactor)*t.speedFactor:0},update:function(t,i){e.track_info.speed_max=e.track_info.speed_max||-1/0,e.track_info.speed_min=e.track_info.speed_min||1/0,e.track_info.speed_avg=e.track_info.speed_avg||0;var r=e._data,o=e.track_info;if(e.options.speedDeltaMax){var a=t-r[i>0?i-1:i].speed,s=e.options.speedDeltaMax;Math.abs(a)>s&&(t=r[i-1].speed+s*Math.sign(a))}return(t=c(t,e.options.speedRange))>o.speed_max&&(o.speed_max=t),t<o.speed_min&&(o.speed_min=t),o.speed_avg=(t+o.speed_avg)/2,L.Util.formatNum(t,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.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(e){return L._("v: ")+e.speed+" "+i.label},marker:function(e){return Math.round(e.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(e){return Math.round(e.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(e){return Math.round(e.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(e){return Math.round(e.speed_avg||0)+" "+i.label},order:50}}))}})),X.addInitHook((function(){var e=this;if(this.options.acceleration){var t=this.options,i={};i.label=t.accelerationLabel||L._(t.imperial?"ft/s²":"m/s²"),t.accelerationFactor=t.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=e._data,o=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/t.timeFactor),a=(r[i].time-r[i>0?i-1:i].time)/1e3;return a>0?Math.abs(o/a)*t.accelerationFactor:0},update:function(t,i){e.track_info.acceleration_max=e.track_info.acceleration_max||-1/0,e.track_info.acceleration_min=e.track_info.acceleration_min||1/0,e.track_info.acceleration_avg=e.track_info.acceleration_avg||0;var r=e._data,o=e.track_info;if(e.options.accelerationDeltaMax){var a=t-r[i>0?i-1:i].acceleration,s=e.options.accelerationDeltaMax;Math.abs(a)>s&&(t=r[i-1].acceleration+s*Math.sign(a))}return(t=c(t,e.options.accelerationRange))>o.acceleration_max&&(o.acceleration_max=t),t<o.acceleration_min&&(o.acceleration_min=t),o.acceleration_avg=(t+o.acceleration_avg)/2,L.Util.formatNum(t,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.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(e){return L._("a: ")+e.acceleration+" "+i.label},marker:function(e){return Math.round(e.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(e){return Math.round(e.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(e){return Math.round(e.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(e){return Math.round(e.acceleration_avg||0)+" "+i.label},order:60}})}})),X.Utils=M,X.Components=G,X.Chart=R,q=L.i18n.bind({}),L.i18n=L._=function(e,t){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][e]&&(L.locales[L.locale][e]=""),q.call(null,e,t)},X.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(e){return new X(e)}}))})(We);var Je={exports:{}};(function(e,t){!function(e,i){i(t)}(S,(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(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,o=this._nonPointGroup,a=this.options.chunkedLoading,s=this.options.chunkInterval,n=this.options.chunkProgress,c=e.length,l=0,d=!0;if(this._map){var p=(new Date).getTime(),h=L.bind((function(){var f=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(a&&l%200==0){var u=(new Date).getTime()-f;if(s<u)break}if((i=e[l])instanceof L.LayerGroup)d&&(e=e.slice(),d=!1),this._extractNonGroupLayers(i,e),c=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else o.addLayer(i),t||this.fire("layeradd",{layer:i})}n&&n(l,c,(new Date).getTime()-p),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(h,this.options.chunkDelay)}),this);h()}else for(var f=this._needsClustering;l<c;l++)(i=e[l])instanceof L.LayerGroup?(d&&(e=e.slice(),d=!1),this._extractNonGroupLayers(i,e),c=e.length):i.getLatLng?this.hasLayer(i)||f.push(i):o.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,o=this._featureGroup,a=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),a.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 n=e.slice(),c=r;for(t=0;t<c;t++)(i=n[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,n),c=n.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),o.hasLayer(i)&&(o.removeLayer(i),i.clusterShow&&i.clusterShow())):(a.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,o,a=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),r=a.length-1;0<=r;r--){for(i=!0,o=s.length-1;0<=o;o--)if(s[o].layer===a[r]){i=!1;break}i&&e.call(t,a[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},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,o=Math.floor(this._map.getMinZoom());o<=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,o=this._gridUnclustered,a=this._featureGroup,s=this._map,n=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var c,l=e.__parent,d=l._markers;for(this._arraySplice(d,e);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<n));)t&&l._childCount<=1?(c=l._markers[0]===e?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,s.project(l._cLatLng,l._zoom)),o[l._zoom].addObject(c,s.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(a.removeLayer(l),i||a.addLayer(c))):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,o=this.options.spiderfyOnEveryZoom;(t||r||o)&&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,o=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),o.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 o=e;t<=o;o--)this._gridClusters[o]=new L.DistanceGrid(r(o)),this._gridUnclustered[o]=new L.DistanceGrid(r(o));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,o=this._gridClusters,a=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);s<=t;t--){i=this._map.project(e.getLatLng(),t);var n=o[t].getNearObject(i);if(n)return n._addChild(e),void(e.__parent=n);if(n=a[t].getNearObject(i)){var c=n.__parent;c&&this._removeLayer(n,!1);var l=new this._markerCluster(this,t,n,e);o[t].addObject(l,this._map.project(l._cLatLng,t)),n.__parent=l;var d=e.__parent=l;for(r=t-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),o[r].addObject(d,this._map.project(n.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(n,t)}a[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(),o=0;for(t=t||[];o<r.length;o++)(i=r[o])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(e,t){var i,r=this._getExpandedVisibleBounds(),o=this._featureGroup,a=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,a,(function(a){var s,n=a._latlng,c=a._markers;for(r.contains(n)||(n=null),a._isSingleParent()&&e+1===t?(o.removeLayer(a),a._recursivelyAddChildrenToMap(null,t,r)):(a.clusterHide(),a._recursivelyAddChildrenToMap(n,t,r)),i=c.length-1;0<=i;i--)s=c[i],r.contains(s._latlng)||o.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),o.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,a,(function(e){o.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(e,t,i){var r=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,o,t+1,i);var a=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(r,i,o,(function(e){e._recursivelyRemoveChildrenFromMap(r,o,t+1)}));a._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,o=r.getBoundsZoom(this._bounds),a=this._zoom+1,s=r.getZoom();0<i.length&&a<o;){a++;var n=[];for(t=0;t<i.length;t++)n=n.concat(i[t]._childClusters);i=n}a<o?this._group._map.setView(this._latlng,a):o<=s?this._group._map.setView(this._latlng,s+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,o=this._markers,a=this._childClusters,s=0,n=0,c=this._childCount;if(0!==c){for(this._resetBounds(),e=0;e<o.length;e++)i=o[e]._latlng,this._bounds.extend(i),s+=i.lat,n+=i.lng;for(e=0;e<a.length;e++)(t=a[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,s+=i.lat*r,n+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/c,n/c),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,o=e._markers;for(i=o.length-1;0<=i;i--)(r=o[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,o=e._childClusters;for(i=o.length-1;0<=i;i--)(r=o[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(o){o._recursivelyAnimateChildrenIn(e,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i),o._isSingleParent()&&i-1===r?(o.clusterShow(),o._recursivelyRemoveChildrenFromMap(e,t,i)):o.clusterHide(),o._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var o=r._markers.length-1;0<=o;o--){var a=r._markers[o];i.contains(a._latlng)&&(e&&(a._backupLatlng=a.getLatLng(),a.setLatLng(e),a.clusterHide&&a.clusterHide()),r._group._featureGroup.addLayer(a))}}),(function(t){t._addToMap(e)}))},_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 o=this._childClusters.length-1;0<=o;o--)this._childClusters[o]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var o,a;this._recursively(e,t-1,i-1,(function(e){for(a=e._markers.length-1;0<=a;a--)o=e._markers[a],r&&r.contains(o._latlng)||(e._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}),(function(e){for(a=e._childClusters.length-1;0<=a;a--)o=e._childClusters[a],r&&r.contains(o._latlng)||(e._group._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow())}))},_recursively:function(e,t,i,r,o){var a,s,n=this._childClusters,c=this._zoom;if(t<=c&&(r&&r(this),o&&c===i&&o(this)),c<t||c<i)for(a=n.length-1;0<=a;a--)(s=n[a])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,i,r,o)},_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),o=this._grid,a=o[r]=o[r]||{},s=a[i]=a[i]||[],n=L.Util.stamp(e);this._objectPoint[n]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,o=this._getCoord(t.x),a=this._getCoord(t.y),s=this._grid,n=s[a]=s[a]||{},c=n[o]=n[o]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=c.length;i<r;i++)if(c[i]===e)return c.splice(i,1),1===r&&delete n[o],!0},eachObject:function(e,t){var i,r,o,a,s,n,c=this._grid;for(i in c)for(r in s=c[i])for(o=0,a=(n=s[r]).length;o<a;o++)e.call(t,n[o])&&(o--,a--)},getNearObject:function(e){var t,i,r,o,a,s,n,c,l=this._getCoord(e.x),d=this._getCoord(e.y),p=this._objectPoint,h=this._sqCellSize,f=null;for(t=d-1;t<=d+1;t++)if(o=this._grid[t])for(i=l-1;i<=l+1;i++)if(a=o[i])for(r=0,s=a.length;r<s;r++)n=a[r],((c=this._sqDist(p[L.Util.stamp(n)],e))<h||c<=h&&null===f)&&(h=c,f=n);return f},_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,o,a=0,s=null,n=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(o=this.getDistant(r,e))&&(n.push(r),a<o&&(a=o,s=r));return{maxPoint:s,newPoints:n}},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,o=!1,a=!1,s=null,n=null,c=null,l=null,d=null,p=null;for(t=e.length-1;0<=t;t--){var h=e[t];(!1===i||h.lat>i)&&(i=(s=h).lat),(!1===r||h.lat<r)&&(r=(n=h).lat),(!1===o||h.lng>o)&&(o=(c=h).lng),(!1===a||h.lng<a)&&(a=(l=h).lng)}return d=r!==i?(p=n,s):(p=l,c),[].concat(this.buildConvexHull([p,d],e),this.buildConvexHull([d,p],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,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,a=this._2PI/e,s=[];for(o=Math.max(o,35),s.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*a,s[i]=new L.Point(t.x+o*Math.cos(r),t.y+o*Math.sin(r))._round();return s},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,o=r*this._spiralLengthStart,a=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,n=0,c=[];for(i=c.length=e;0<=i;i--)i<e&&(c[i]=new L.Point(t.x+o*Math.cos(n),t.y+o*Math.sin(n))._round()),o+=s/(n+=a/o+5e-4*i);return c},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,o=i._featureGroup,a=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=a.length-1;0<=t;t--)e=a[t],o.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:a}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,o,a,s=this._group,n=s._map,c=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<e.length;i++)a=n.layerPointToLatLng(t[i]),r=e[i],o=new L.Polyline([this._latlng,a],l),n.addLayer(o),r._spiderLeg=o,r._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,o,a,s,n,c=this,l=this._group,d=l._map,p=l._featureGroup,h=this._latlng,f=d.latLngToLayerPoint(h),u=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),b=m.opacity;for(void 0===b&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),u?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=b,l._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],n=d.layerPointToLatLng(t[i]),o=new L.Polyline([h,n],m),d.addLayer(o),r._spiderLeg=o,u&&(s=(a=o._path).getTotalLength()+.1,a.style.strokeDasharray=s,a.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),p.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=e.length-1;0<=i;i--)n=d.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(n),r.clusterShow&&r.clusterShow(),u&&((a=(o=r._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,o,a,s,n=this,c=this._group,l=c._map,d=c._featureGroup,p=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):l.latLngToLayerPoint(this._latlng),h=this.getAllChildMarkers(null,!0),f=L.Path.SVG;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),i=h.length-1;0<=i;i--)(t=h[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(p),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&d.removeLayer(t),f&&(a=(o=(r=t._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=a,r.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout((function(){var e=0;for(i=h.length-1;0<=i;i--)(t=h[i])._spiderLeg&&e++;for(i=h.length-1;0<=i;i--)(t=h[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&d.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:n,markers:h})}),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})}))})(Je,Je.exports);!function(e){if("function"==typeof define&&define.amd)define(["leaflet"],e);else if("object"==typeof exports)module.exports=e(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=e(window.L)}}((function(e){let t=e.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:!0,zoomLevel:void 0,drawCircle:!0,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:`\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>`,htmlSpinner:`\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>`,htmlGeolocation:`\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>`,htmlOrientation:`\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>`,iconGeolocation:e.divIcon({html:`\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>`,className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:e.divIcon({html:`\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>`,className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(t){e.Util.setOptions(this,t),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(t){return this._map=t,this._button=e.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&e.DomUtil.addClass(this._button,this.options.className),e.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),e.DomEvent.on(this._button,"click",e.DomEvent.stopPropagation).on(this._button,"click",e.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(e){this.options.zoomLevel=e},_onClick:async function(){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((()=>{clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._map&&(this._clicked&&this.options.setViewAfterClick?this._setView():(this._clicked=!0,this._updateButton(),this._map.on("layeradd",this._onLayerAdd,this),this._checkGeolocation().then((e=>{this._geolocation=!0,this._onLocationFound(e.coords),this.options.setViewAfterClick&&this._setView(),this._watchGeolocation(),this._checkClickResult()})).catch((()=>{this._geolocation=!1,this._checkClickResult()})),this._checkOrientation().then((()=>{this._orientation=!0,this._watchOrientation(),this._checkClickResult()})).catch((()=>{this._orientation=!1,this._checkClickResult()}))))}),this.options.clickTimeoutDelay)},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),!1===this._geolocation&&!1===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise(((e,t)=>{navigator.geolocation.getCurrentPosition(e,t,{maximumAge:0,enableHighAccuracy:!0})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((e=>"granted"===e||Promise.reject())):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:!0,enableHighAccuracy:!0}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){e.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){e.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(e){this._latitude&&e.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*e.latitude)&&this._longitude&&e.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*e.longitude)&&this._accuracy&&e.accuracy&&Math.round(100*this._accuracy)===Math.round(100*e.accuracy)||(this._latitude=e.latitude,this._longitude=e.longitude,this._accuracy=e.accuracy,this._updateMarker())},_onOrientation:function(e){let t;t=e.webkitCompassHeading||360-e.alpha,this._angle&&Math.abs(t-this._angle)<this.options.minAngleChange||(this._angle=t,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(e){this.options.afterMarkerAdd&&e.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){let t;if(this._geolocation&&this._orientation&&this._angle)t="iconOrientation";else{if(!this._geolocation)return;t="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=e.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===t?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=e.marker([this._latitude,this._longitude],{icon:this.options[t]}),this._marker.icon_name=t,this._marker.addTo(this._map))}}});return e.control.simpleLocate=function(e){return new t(e)},t}));var Ke=6371008.8;var et={centimeters:Ke*100,centimetres:Ke*100,degrees:Ke/111325,feet:Ke*3.28084,inches:Ke*39.37,kilometers:Ke/1e3,kilometres:Ke/1e3,meters:Ke,metres:Ke,miles:Ke/1609.344,millimeters:Ke*1e3,millimetres:Ke*1e3,nauticalmiles:Ke/1852,radians:1,yards:Ke*1.0936};function tt(e,t,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=t||{};r.geometry=e;return r}function it(e,t,i){if(i===void 0){i={}}if(!e){throw new Error("coordinates is required")}if(!Array.isArray(e)){throw new Error("coordinates must be an Array")}if(e.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!st(e[0])||!st(e[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:e};return tt(r,t,i)}function rt(e,t){if(t===void 0){t={}}var i={type:"FeatureCollection"};if(t.id){i.id=t.id}if(t.bbox){i.bbox=t.bbox}i.features=e;return i}function ot(e,t){if(t===void 0){t="kilometers"}var i=et[t];if(!i){throw new Error(t+" units is invalid")}return e*i}function at(e){var t=e%360;return t*Math.PI/180}function st(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function nt(e,t,i){if(e===null)return;var r,o,a,s,n,c,l,d=0,p=0,h,f=e.type,u=f==="FeatureCollection",m=f==="Feature",b=u?e.features.length:1;for(var g=0;g<b;g++){l=u?e.features[g].geometry:m?e.geometry:e;h=l?l.type==="GeometryCollection":false;n=h?l.geometries.length:1;for(var v=0;v<n;v++){var w=0;var k=0;s=h?l.geometries[v]:l;if(s===null)continue;c=s.coordinates;var y=s.type;d=i&&(y==="Polygon"||y==="MultiPolygon")?1:0;switch(y){case null:break;case"Point":if(t(c,p,g,w,k)===false)return false;p++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(t(c[r],p,g,w,k)===false)return false;p++;if(y==="MultiPoint")w++}if(y==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(o=0;o<c[r].length-d;o++){if(t(c[r][o],p,g,w,k)===false)return false;p++}if(y==="MultiLineString")w++;if(y==="Polygon")k++}if(y==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(o=0;o<c[r].length;o++){for(a=0;a<c[r][o].length-d;a++){if(t(c[r][o][a],p,g,w,k)===false)return false;p++}k++}w++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(nt(s.geometries[r],t,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function ct(e,t){if(e.type==="Feature"){t(e,0)}else if(e.type==="FeatureCollection"){for(var i=0;i<e.features.length;i++){if(t(e.features[i],i)===false)break}}}function lt(e){var t=[];if(e.type==="FeatureCollection"){ct(e,(function(e){nt(e,(function(i){t.push(it(i,e.properties))}))}))}else{nt(e,(function(i){t.push(it(i,e.properties))}))}return rt(t)}function dt(e){var t=[Infinity,Infinity,-Infinity,-Infinity];nt(e,(function(e){if(t[0]>e[0]){t[0]=e[0]}if(t[1]>e[1]){t[1]=e[1]}if(t[2]<e[0]){t[2]=e[0]}if(t[3]<e[1]){t[3]=e[1]}}));return t}dt["default"]=dt;function pt(e,t){if(t===void 0){t={}}var i=dt(e);var r=(i[0]+i[2])/2;var o=(i[1]+i[3])/2;return it([r,o],t.properties,t)}function ht(e){if(!e){throw new Error("geojson is required")}switch(e.type){case"Feature":return ft(e);case"FeatureCollection":return mt(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return bt(e);default:throw new Error("unknown GeoJSON type")}}function ft(e){var t={type:"Feature"};Object.keys(e).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:t[i]=e[i]}}));t.properties=ut(e.properties);t.geometry=bt(e.geometry);return t}function ut(e){var t={};if(!e){return t}Object.keys(e).forEach((function(i){var r=e[i];if(typeof r==="object"){if(r===null){t[i]=null}else if(Array.isArray(r)){t[i]=r.map((function(e){return e}))}else{t[i]=ut(r)}}else{t[i]=r}}));return t}function mt(e){var t={type:"FeatureCollection"};Object.keys(e).forEach((function(i){switch(i){case"type":case"features":return;default:t[i]=e[i]}}));t.features=e.features.map((function(e){return ft(e)}));return t}function bt(e){var t={type:e.type};if(e.bbox){t.bbox=e.bbox}if(e.type==="GeometryCollection"){t.geometries=e.geometries.map((function(e){return bt(e)}));return t}t.coordinates=gt(e.coordinates);return t}function gt(e){var t=e;if(typeof t[0]!=="object"){return t.slice()}return t.map((function(e){return gt(e)}))}function vt(e){if(!e){throw new Error("coord is required")}if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point"){return e.geometry.coordinates}if(e.type==="Point"){return e.coordinates}}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1])){return e}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function wt(e){if(e.type==="Feature"){return e.geometry}return e}function kt(e,t,i){if(i===void 0){i={}}var r=vt(e);var o=vt(t);var a=at(o[1]-r[1]);var s=at(o[0]-r[0]);var n=at(r[1]);var c=at(o[1]);var l=Math.pow(Math.sin(a/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(n)*Math.cos(c);return ot(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function yt(e,t){if(!e)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var i;var r=Infinity;var o=0;ct(t,(function(t,i){var a=kt(e,t);if(a<r){o=i;r=a}}));i=ht(t.features[o]);i.properties.featureIndex=o;i.properties.distanceToPoint=r;return i}function xt(e,t,i){if(i===void 0){i={}}if(!e){throw new Error("point is required")}if(!t){throw new Error("polygon is required")}var r=vt(e);var o=wt(t);var a=o.type;var s=t.bbox;var n=o.coordinates;if(s&&zt(r,s)===false){return false}if(a==="Polygon"){n=[n]}var c=false;for(var l=0;l<n.length&&!c;l++){if(At(r,n[l][0],i.ignoreBoundary)){var d=false;var p=1;while(p<n[l].length&&!d){if(At(r,n[l][p],!i.ignoreBoundary)){d=true}p++}if(!d){c=true}}}return c}function At(e,t,i){var r=false;if(t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]){t=t.slice(0,t.length-1)}for(var o=0,a=t.length-1;o<t.length;a=o++){var s=t[o][0];var n=t[o][1];var c=t[a][0];var l=t[a][1];var d=e[1]*(s-c)+n*(c-e[0])+l*(e[0]-s)===0&&(s-e[0])*(c-e[0])<=0&&(n-e[1])*(l-e[1])<=0;if(d){return!i}var p=n>e[1]!==l>e[1]&&e[0]<(c-s)*(e[1]-n)/(l-n)+s;if(p){r=!r}}return r}function zt(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}function Ct(e){var t=Lt(e);var i=pt(t);var r=false;var o=0;while(!r&&o<t.features.length){var a=t.features[o].geometry;var s,n,c,l,d,p,h;var f=false;if(a.type==="Point"){if(i.geometry.coordinates[0]===a.coordinates[0]&&i.geometry.coordinates[1]===a.coordinates[1]){r=true}}else if(a.type==="MultiPoint"){var u=false;h=0;while(!u&&h<a.coordinates.length){if(i.geometry.coordinates[0]===a.coordinates[h][0]&&i.geometry.coordinates[1]===a.coordinates[h][1]){r=true;u=true}h++}}else if(a.type==="LineString"){h=0;while(!f&&h<a.coordinates.length-1){s=i.geometry.coordinates[0];n=i.geometry.coordinates[1];c=a.coordinates[h][0];l=a.coordinates[h][1];d=a.coordinates[h+1][0];p=a.coordinates[h+1][1];if(Mt(s,n,c,l,d,p)){f=true;r=true}h++}}else if(a.type==="MultiLineString"){var m=0;while(m<a.coordinates.length){f=false;h=0;var b=a.coordinates[m];while(!f&&h<b.length-1){s=i.geometry.coordinates[0];n=i.geometry.coordinates[1];c=b[h][0];l=b[h][1];d=b[h+1][0];p=b[h+1][1];if(Mt(s,n,c,l,d,p)){f=true;r=true}h++}m++}}else if(a.type==="Polygon"||a.type==="MultiPolygon"){if(xt(i,a)){r=true}}o++}if(r){return i}else{var g=rt([]);for(o=0;o<t.features.length;o++){g.features=g.features.concat(lt(t.features[o]).features)}return it(yt(i,g).geometry.coordinates)}}function Lt(e){if(e.type!=="FeatureCollection"){if(e.type!=="Feature"){return rt([tt(e)])}return rt([e])}return e}function Mt(e,t,i,r,o,a){var s=Math.sqrt((o-i)*(o-i)+(a-r)*(a-r));var n=Math.sqrt((e-i)*(e-i)+(t-r)*(t-r));var c=Math.sqrt((o-e)*(o-e)+(a-t)*(a-t));return s===n+c}(function(){var e=L.Polyline.prototype.onAdd,t=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var o={onAdd:function(t){e.call(this,t);this._textRedraw()},onRemove:function(e){e=e||this._map;if(e&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);t.call(this,e)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var e=this._text,t=this._textOptions;if(e){this.setText(null).setText(e,t)}},setText:function(e,t){this._text=e;this._textOptions=t;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};t=L.Util.extend(i,t);if(!e){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}e=e.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var o=this._renderer._container;this._path.setAttribute("id",r);if(t.repeat){if(t.repeat!=true&&t.repeat>=1){e=e.padStart(t.repeat," ")}var a=L.SVG.create("text");for(var s in t.attributes)a.setAttribute(s,t.attributes[s]);a.appendChild(document.createTextNode(e));o.appendChild(a);var n=a.getComputedTextLength();o.removeChild(a);e=new Array(Math.ceil(isNaN(this._path.getTotalLength()/n)?0:this._path.getTotalLength()/n)).join(e)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=t.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var s in t.attributes)c.setAttribute(s,t.attributes[s]);l.appendChild(document.createTextNode(e));c.appendChild(l);this._textNode=c;if(t.below){o.insertBefore(c,o.firstChild)}else{o.appendChild(c)}if(t.center){var p=c.getComputedTextLength();var h=this._path.getTotalLength();c.setAttribute("dx",h/2-p/2)}if(t.orientation){var f=0;switch(t.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=t.orientation}var u=c.getBBox().x+c.getBBox().width/2;var m=c.getBBox().y+c.getBBox().height/2;c.setAttribute("transform","rotate("+f+" "+u+" "+m+")")}if(this.options.interactive){if(L.Browser.svg||!L.Browser.vml){l.setAttribute("class","leaflet-interactive")}var b=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"];for(var g=0;g<b.length;g++){L.DomEvent.on(c,b[g],this.fire,this)}}return this}};L.Polyline.include(o);L.LayerGroup.include({setText:function(e,t){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(e,t)}}return this}})})();const Ft='@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}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.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}#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:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#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,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);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;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-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-content-marker .outdoor-site-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,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-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-trek-marker .outdoor-site-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-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-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:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.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,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-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,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-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-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-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,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-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-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-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-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-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-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-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,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-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,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-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(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-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,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.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-trek-marker .outdoor-site-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-step-marker .outdoor-site-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-content-marker .outdoor-site-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,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !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,.outdoor-site-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,.outdoor-site-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,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 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:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-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-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)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.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,.poi-tooltip .signage-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,.information-desks-tooltip .signage-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,.sensitive-area-tooltip .signage-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-content-tooltip .signage-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,.touristic-event-tooltip .signage-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,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-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-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important;margin-right:8px}.signage-marker .signage-name{color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);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:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !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:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}.leaflet-simple-locate-icon{fill:#1e90ff}.layer-loader-container{width:100%;height:100%;background-color:rgba(255, 255, 255, 0.8);position:absolute;z-index:8000;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.layer-loader-container .layer-loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;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}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';const Pt=Ft;const Tt=class{constructor(t){e(this,t);this.trekCardPress=r(this,"trekCardPress",7);this.touristicContentCardPress=r(this,"touristicContentCardPress",7);this.touristicEventCardPress=r(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=r(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=r(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.mapIsReady=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.arrowRepeat=20;this.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this)}onCenterOnMap(e){this.map.setView(new N.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})}stepsIsInViewport(e){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}}descriptionIsInViewport(e){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(e){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}}onInformationPlacesIsInViewport(e){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(e){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(e){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentPoisLayer,!l.currentPois||l.currentPois.length===0)}}touristicContentsIsInViewport(e){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer,!l.trekTouristicContents||l.trekTouristicContents.length===0)}}touristicEventsIsInViewport(e){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentTouristicEventsLayer,!l.trekTouristicEvents||l.trekTouristicEvents.length===0)}}sitesIsInViewport(e){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentRelatedOutdoorSitesLayer)}}coursesIsInViewport(e){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentRelatedOutdoorCoursesLayer)}}onCardTrekMouseOver(e){if(!l.parentTrek&&(!l.selectedTrekId||l.selectedTrekId!==e.detail)){l.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(l.parentTrek){this.stepPopupIsOpen=false;l.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(e){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)}onTouristicContentMouseLeave(){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(e){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)}onTouristicEventMouseLeave(){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}onTrekDownloadedSuccessConfirm(){this.map.setMaxZoom(this.tilesMaxZoomOffline)}onTrekDeleteSuccessConfirm(){this.map.setMaxZoom(this.maxZoom)}onOutdoorSiteMouseOver(e){this.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(e.detail)}onOutdoorSiteMouseLeave(){l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}componentDidLoad(){this.map=N.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});const e=this.nameLayer?this.nameLayer.split(","):[];const t=this.urlLayer.split(",http").map(((e,t)=>t===0?e:"http"+e));const i=this.attributionLayer?this.attributionLayer.split(","):[];t.forEach(((t,r)=>{this.tileLayer.push({key:`${e[r]}`,value:I.exports.tileLayerOffline(t,{maxZoom:this.maxZoom,attribution:`${i[r]&&i[r]!==""?i[r].concat(" | "):""}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(t.length>1){this.layersControl=N.control.layers(this.tileLayer.reduce(((e,t)=>Object.assign(e,{[t.key]:t.value})),{}),{},{collapsed:true}).addTo(this.map)}N.control.zoom({zoomInTitle:c[l.language].zoomIn,zoomOutTitle:c[l.language].zoomOut}).addTo(this.map);N.control.scale({metric:true,imperial:false}).addTo(this.map);N.Control.Contract=N.Control.extend({onAdd:()=>{const e=N.DomUtil.create("div");e.className="leaflet-bar leaflet-control";const t=e.appendChild(N.DomUtil.create("a"));t.href="#";t.style.backgroundImage=`var(--contract-image-src)`;e.onclick=e=>{this.bounds&&this.map.fitBounds(this.bounds);e.preventDefault()};t.title=c[l.language].contract;return e}});N.control.contract=e=>new N.Control.Contract(e);N.control.contract({position:"topleft"}).addTo(this.map);new N.Control.SimpleLocate({position:"topleft",className:"button-locate",title:c[l.language].locate}).addTo(this.map);if(l.currentTrek){this.addTrek()}else if(l.currentTreks){this.addTreks()}else if(l.currentTouristicContent){this.addTouristicContent()}else if(l.currentTouristicEvent){this.addTouristicEvent()}else if(l.currentOutdoorSite){this.addOutdoorSite()}else if(l.currentOutdoorCourse){this.addOutdoorCourse()}else if(l.touristicContents){this.addTouristicContents()}else if(l.touristicEvents){this.addTouristicEvents()}else if(l.outdoorSites){this.addOutdoorSites()}d("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));d("currentPois",(async()=>{this.setCurrentPois()}));d("trekTouristicContents",(async()=>{this.setCurrentTouristicContents()}));d("trekTouristicEvents",(async()=>{this.setCurrentTouristicEvents()}));d("currentOutdoorSites",(()=>{if(l.currentOutdoorSites){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeOutdoorSites();this.addOutdoorSites(true)}}));d("currentTrek",(()=>{if(l.currentTrek){this.removeTreks();this.addTrek()}else if(l.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));d("currentOutdoorSite",(()=>{if(l.currentOutdoorSite){this.removeOutdoorCourse();this.removeOutdoorSites();this.addOutdoorSite()}else if(l.currentOutdoorSites){this.removeOutdoorSite();this.addOutdoorSites()}}));d("currentOutdoorSite",(()=>{if(l.currentOutdoorCourse){this.removeOutdoorSite();this.addOutdoorCourse()}}));d("currentTouristicContent",(()=>{if(this.grwApp){if(l.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(l.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(l.currentTrek){this.removeTouristicContent();this.addTrek()}else if(l.currentTreks){this.removeTouristicContent();this.addTreks()}}}));d("currentTouristicEvent",(()=>{if(this.grwApp){if(l.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(l.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(l.currentTreks){this.removeTouristicEvent();this.addTreks()}}}));d("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(l.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeOutdoorSites();this.removeTouristicContent();this.addTouristicContents(true)}}));d("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(l.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(l.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeOutdoorSites();this.removeTouristicEvent();this.addTouristicEvents(true)}}))}handleLayerVisibility(e,t,i=false){if(e&&!this.map.hasLayer(t)){t.addTo(this.map);this.layerDataIsLoading=i;o(this.hostElement)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()}async addTreks(e=false){var t;l.treksWithinBounds=l.currentTreks;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentTreks){for(const e of l.currentTreks){i.push(e.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=l.practices.find((t=>t.id===e.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((e=>e.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}}if(!this.treksLayer){if(i.length>0&&!l.currentMapBounds||e){this.bounds=N.latLngBounds(i.map((e=>[e[1],e[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}const t=await this.getIcons(r,"practice");this.treksLayer=N.geoJSON(r,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.practice]?`<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src=${t[e.properties.practice]} /></div>`:`<div part="trek-marker-container" class="trek-marker-container"></div>`,className:"trek-marker",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(async()=>{const i=await this.getIcon(e.properties.imgSrc);const r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;const o=N.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const e=N.DomUtil.create("img");e.part="trek-image-popup";e.src=r;o.appendChild(e)}const a=N.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";o.appendChild(a);const s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=()=>this.trekCardPress.emit(e.properties.id);o.appendChild(s);t.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(t=>{this.hideTrekLine();this.showTrekLine(e.properties.id);this.addSelectedCurrentTrek(e.properties.id,t.latlng)}))}});this.treksMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:e=>N.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+e.getChildCount()+"</div>",className:"",iconSize:this.mainClusterSize})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(i.length>0){this.bounds=N.latLngBounds(i.map((e=>[e[1],e[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer)}this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)}removeTreks(){if(this.treksLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(l.currentTreks&&!l.currentMapBounds||l.currentTreks&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.treksWithinBounds=l.currentTreks.filter((e=>this.map.getBounds().contains(N.latLng(e.departure_geom[1],e.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(l.currentTouristicContents&&!l.currentMapBounds||l.currentTouristicContents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicContentsWithinBounds=l.currentTouristicContents.filter((e=>this.map.getBounds().contains(N.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(l.currentTouristicEvents&&!l.currentMapBounds||l.currentTouristicEvents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicEventsWithinBounds=l.currentTouristicEvents.filter((e=>this.map.getBounds().contains(N.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))))}}handleOutdoorSitesWithinBounds(){if(l.currentOutdoorSites&&!l.currentMapBounds||l.currentOutdoorSites&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.outdoorSitesWithinBounds=l.currentOutdoorSites.filter((e=>{const t=Ct(e.geometry).geometry.coordinates;return this.map.getBounds().contains(N.latLng(t[1],t[0]))}))}}async addTrek(){var e;const t=await Y("treks",l.currentTrek.id);if(t){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const i={type:"Feature",geometry:l.currentTrek.geometry,properties:{}};this.currentTrekLayer=N.geoJSON(i,{style:()=>({color:"transparent"}),onEachFeature:(e,t)=>{t.setText(">",{repeat:this.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(l.currentTrek.parking_location){const e=a(`${""}assets/parking.svg`);const t={type:"Feature",properties:{name:l.currentTrek.advised_parking},geometry:{type:"Point",coordinates:l.currentTrek.parking_location}};this.currentParkingLayer=N.geoJSON(t,{pointToLayer:(t,i)=>N.marker(i,{icon:N.divIcon({html:`<img part="parking-marker" src=${e} />`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0){const e={type:"FeatureCollection",features:[]};for(const t of l.currentSensitiveAreas){e.features.push({type:"Feature",properties:{name:t.name},geometry:t.geometry})}this.currentSensitiveAreasLayer=N.geoJSON(e,{onEachFeature:(e,t)=>{t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}await this.addCurrentInformationDesks(l.currentTrek);await this.addCurrentPois();await this.addCurrentSignages();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();if(l.currentTrek.points_reference){const e={type:"FeatureCollection",features:[]};e.features.push({type:"Feature",properties:{},geometry:l.currentTrek.points_reference});let t=0;this.currentReferencePointsLayer=N.geoJSON(e,{pointToLayer:(e,i)=>{t+=1;return N.marker(i,{icon:N.divIcon({html:`<div part="point-reference-icon" class="point-reference-icon">${t}</div>`,className:"",iconSize:this.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&l.parentTrekId&&l.parentTrek&&l.currentTrek.id===l.parentTrekId){const t={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){for(const i of l.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(e=l.practices.find((e=>e.id===i.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:i.attachments&&i.attachments.filter((e=>e.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}let i=0;this.currentStepsLayer=N.geoJSON(t,{pointToLayer:(e,t)=>{i+=1;return N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:`<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${i}</div></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:(e,t)=>{t.once("click",(async()=>{const i=await this.getIcon(e.properties.imgSrc);const r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;const o=N.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const e=N.DomUtil.create("img");e.src=r;o.appendChild(e)}const a=N.DomUtil.create("div");a.innerHTML=e.properties.name;o.part="trek-name";a.className="trek-name";o.appendChild(a);const s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";o.part="trek-button";s.className="trek-button";s.onclick=()=>this.trekCardPress.emit(e.properties.id);o.appendChild(s);t.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(t=>{this.addSelectedCurrentStep(e.properties.id,t.latlng)}))}})}let r={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};N.registerLocale("fr",r);N.setLocale("fr");const s=l.currentTrek.geometry.coordinates.map((e=>e[2])).filter((e=>e!==undefined&&e!==null));const n={yAxisMin:s.length>0?Math.min(...s)*.75:0,yAxisMax:s.length>0?Math.max(...s)*1.25:0};const c=Object.assign({elevationDiv:`#elevation-container`,theme:`custom-theme use-theme-color`,height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:false},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false},n);this.elevationControl=N.control.elevation(c).addTo(this.map);const d=JSON.stringify({name:`${l.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:l.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(d);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";o(this.hostElement);const p={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[l.currentTrek.geometry.coordinates.length-1]},properties:null}]};let h=0;this.departureArrivalLayer=N.geoJSON(p,{pointToLayer:(e,t)=>{h+=1;return N.marker(t,{icon:N.divIcon({html:`<div part="${h===1?"departure-marker":"arrival-marker"}" class="${h===1?"departure-marker":"arrival-marker"}"></div>`,className:"",iconSize:this.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=N.latLngBounds(l.currentTrek.geometry.coordinates.map((e=>[e[1],e[0]])));this.map.on("eledata_loaded",(()=>{this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}))}async getIcons(e,t){const i={};for(let r=0;r<e.features.length;r++){if(e.features[r].properties[t]){i[e.features[r].properties[t]]=await this.getIcon(e.features[r].properties[t])}}return i}async getIcon(e){let t;if(!w.isNativePlatform()){const i=await k(e);t=i?window.URL.createObjectURL((await y(e)).data):e?e:null}else{const i=await x.getUri({path:e,directory:A.Data});if(i){t=w.convertFileSrc(i.uri)}}return t}async addSelectedCurrentTrek(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.currentTreks){const o=l.currentTreks.find((t=>t.id===e));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(i=l.practices.find((e=>e.id===o.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((e=>e.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedCurrentTrek();l.selectedTrekId=e;const o=await this.getIcons(r,"practice");this.selectedCurrentTrekLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:o[e.properties.practice]?`<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src=${o[e.properties.practice]} /></div></div>`:`<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(async()=>{const i=await this.getIcon(e.properties.imgSrc);const r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;const o=N.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const e=N.DomUtil.create("img");e.src=r;e.part="trek-image";o.appendChild(e)}const a=N.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";o.appendChild(a);const s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=()=>this.trekCardPress.emit(e.properties.id);o.appendChild(s);t.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.trekPopupIsOpen){l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));t.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(l.selectedTrekId)}));t.on("popupclose",(()=>{if(l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){l.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){const o=l.currentTrekSteps.findIndex((t=>t.id===e));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:l.currentTrekSteps[o].departure_geom},properties:{id:l.currentTrekSteps[o].id,name:l.currentTrekSteps[o].name,practice:(i=l.practices.find((e=>e.id===l.currentTrekSteps[o].practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:l.currentTrekSteps[o].attachments&&l.currentTrekSteps[o].attachments.filter((e=>e.type==="image")).length>0?l.currentTrekSteps[o].attachments[0].thumbnail!==""?l.currentTrekSteps[o].attachments[0].thumbnail:l.currentTrekSteps[o].attachments[0].url:null,index:o+1}})}this.removeSelectedCurrentStep();l.selectedStepId=e;this.selectedCurrentStepLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:`<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${e.properties.index}</div></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(async()=>{const i=await this.getIcon(e.properties.imgSrc);const r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;const o=N.DomUtil.create("div");o.part="trek-departure-popup";o.className="trek-departure-popup";if(r){const e=N.DomUtil.create("img");e.part="trek-image";e.src=r;o.appendChild(e)}const a=N.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";o.appendChild(a);const s=N.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-name";s.className="trek-button";s.onclick=()=>this.trekCardPress.emit(e.properties.id);o.appendChild(s);t.bindPopup(o,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.stepPopupIsOpen){l.selectedTrekId=null;this.removeSelectedCurrentStep()}}));t.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(l.selectedStepId)}));t.on("popupclose",(()=>{if(l.selectedStepId){this.stepPopupIsOpen=false;l.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(l.selectedStepId){l.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){if(this.layersControl){const e=this.layersControl._layerControlInputs;e.forEach((e=>{if(this.layersControl._layers.find((t=>t.layer._leaflet_id===e.layerId)).overlay){e.onchange=t=>{this.userLayersState[e.layerId]=t.target.checked;const i=this.layersControl._layers.find((t=>t.layer._leaflet_id===e.layerId));if(this.userLayersState[e.layerId]&&Object.keys(i.layer._layers).length===0){this.layerDataIsLoading=true;o(this.hostElement)}}}}))}}removeTrek(){this.handleLayersOnRemove()}async showTrekLine(e){this.removeSelectedCurrentTrek();const t=await Z(e);const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=N.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}async addTouristicContent(){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const e={type:"FeatureCollection",features:[]};if(l.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicContent.geometry.coordinates},properties:{id:l.currentTouristicContent.id,name:l.currentTouristicContent.name,practice:l.touristicContentCategories.find((e=>e.id===l.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){const t=await this.getIcons(e,"practice");this.currentToutisticContentLayer=N.geoJSON(e,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.practice]?`<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([l.currentTouristicContent.geometry.coordinates[1],l.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}async addTouristicContents(e=false){l.touristicContentsWithinBounds=l.currentTouristicContents;const t=[];const i={type:"FeatureCollection",features:[]};if(l.currentTouristicContents){for(const e of l.currentTouristicContents){t.push(e.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:l.touristicContentCategories.find((t=>t.id===e.category)).pictogram,imgSrc:e.attachments&&e.attachments.filter((e=>e.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}}if(!this.toutisticContentsLayer){if(t.length>0&&!l.currentMapBounds||e){this.bounds=N.latLngBounds(t.map((e=>[e[1],e[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}const r=await this.getIcons(i,"practice");this.toutisticContentsLayer=N.geoJSON(i,{pointToLayer:(e,t)=>N.marker(t,{icon:N.divIcon({html:r[e.properties.practice]?`<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${r[e.properties.practice]} /></div></div>`:`<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="touristic-content-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;i.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=()=>this.touristicContentCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(t=>{this.addSelectedTouristicContent(e.properties.id,t.latlng)}))}});this.touristicContentsMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:e=>N.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+e.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(t.length>0){this.bounds=N.latLngBounds(t.map((e=>[e[1],e[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)}removeTouristicContents(){if(this.toutisticContentsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}async addTouristicEvent(){const e={type:"FeatureCollection",features:[]};if(l.currentTouristicEvent){const t=l.touristicEventTypes.find((e=>e.id===l.currentTouristicEvent.type));e.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicEvent.geometry.coordinates},properties:{id:l.currentTouristicEvent.id,name:l.currentTouristicEvent.name,type:t?t.pictogram:null}})}if(!this.currentToutisticEventLayer){const t=await this.getIcons(e,"type");this.currentToutisticEventLayer=N.geoJSON(e,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.type]?`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${t[e.properties.type]} /></div></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([l.currentTouristicEvent.geometry.coordinates[1],l.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}async addSelectedTouristicContent(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.touristicContents){const o=l.touristicContents.find((t=>t.id===e));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(i=l.touristicContentCategories.find((e=>e.id===o.category)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((e=>e.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedTouristicContent();l.selectedTouristicContentId=e;const o=await this.getIcons(r,"category");this.selectedTouristicContentLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:o[e.properties.category]?`<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src=${o[e.properties.category]} /></div></div>`:`<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="touristic-content-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=()=>this.touristicContentCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));t.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(l.selectedTouristicContentId)}));t.on("popupclose",(()=>{if(l.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){l.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}async addTouristicEvents(e=false){var t;l.touristicEventsWithinBounds=l.currentTouristicEvents;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentTouristicEvents){for(const e of l.currentTouristicEvents){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(t=l.touristicEventTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((e=>e.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}}if(!this.touristicEventsLayer){if(i.length>0&&!l.currentMapBounds||e){this.bounds=N.latLngBounds(i.map((e=>[e[1],e[0]])))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}const t=await this.getIcons(r,"type");this.touristicEventsLayer=N.geoJSON(r,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.type]?`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${t[e.properties.type]} /></div></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="touristic-event-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="touristic-event-name";r.className="touristic-event-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=()=>this.touristicEventCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(t=>{this.addSelectedTouristicEvent(e.properties.id,t.latlng)}))}});this.touristicEventsMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:e=>N.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+e.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(i.length>0){this.bounds=N.latLngBounds(i.map((e=>[e[1],e[0]])))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)}removeTouristicEvents(){if(this.touristicEventsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}async addOutdoorSites(e=false){var t;l.outdoorSitesWithinBounds=l.currentOutdoorSites;const i=[];const r={type:"FeatureCollection",features:[]};if(l.currentOutdoorSites){for(const e of l.currentOutdoorSites){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:Ct(e.geometry).geometry.coordinates},properties:{id:e.id,name:e.name,practice:(t=l.outdoorPractices.find((t=>t.id===e.practice)))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((e=>e.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}}if(!this.outdoorSitesLayer){if(i.length>0&&!l.currentMapBounds||e){const e=dt(r);this.bounds=N.latLngBounds([e[1],e[0]],[e[3],e[2]])}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}const t=await this.getIcons(r,"practice");this.outdoorSitesLayer=N.geoJSON(r,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.mainMarkerSize,iconAnchor:[this.mainMarkerSize/2,this.mainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="outdoor-site-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="outdoor-site-name";r.className="outdoor-site-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=()=>this.outdoorSiteCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(t=>{this.addSelectedOutdoorSite(e.properties.id,t.latlng)}))}});this.outdoorSitesMarkerClusterGroup=N.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:e=>N.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+e.getChildCount()+"</div></div>",className:"",iconSize:this.mainClusterSize})});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup)}else{if(i.length>0){this.bounds=N.latLngBounds(i.map((e=>[e[1],e[0]])))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer)}this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind)}removeOutdoorSites(){if(this.outdoorSitesLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}}async addOutdoorSite(){const e={type:"FeatureCollection",features:[]};if(l.currentOutdoorSite){const t=l.outdoorPractices.find((e=>e.id===l.currentOutdoorSite.practice));e.features.push({type:"Feature",geometry:l.currentOutdoorSite.geometry,properties:{id:l.currentOutdoorSite.id,name:l.currentOutdoorSite.name,practice:t?t.pictogram:null}})}if(!this.currentOutdoorSiteLayer){const t=await this.getIcons(e,"practice");this.currentOutdoorSiteLayer=N.geoJSON(e,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})});this.map.addLayer(this.currentOutdoorSiteLayer)}await this.addCurrentInformationDesks(l.currentOutdoorSite);await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();await this.addCurrentRelatedOutdoorSites();await this.addCurrentRelatedOutdoorCourses();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}async addCurrentRelatedOutdoorSites(){var e;const t={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorSites){for(const i of l.currentRelatedOutdoorSites){t.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(e=l.outdoorPractices.find((e=>e.id===i.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:i.attachments&&i.attachments.filter((e=>e.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}if(!this.currentRelatedOutdoorSitesLayer&&t.features.length>0){const e=await this.getIcons(t,"practice");this.currentRelatedOutdoorSitesLayer=N.geoJSON(t,{pointToLayer:(t,i)=>N.marker(i,{icon:N.divIcon({html:e[t.properties.practice]?`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}async addCurrentRelatedOutdoorCourses(){var e;const t={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorCourses){for(const i of l.currentRelatedOutdoorCourses){t.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(e=l.outdoorCourseTypes.find((e=>e.id===i.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:i.attachments&&i.attachments.filter((e=>e.type==="image")).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})}}if(!this.currentRelatedOutdoorCoursesLayer&&t.features.length>0){const e=await this.getIcons(t,"type");this.currentRelatedOutdoorCoursesLayer=N.geoJSON(t,{pointToLayer:(t,i)=>N.marker(i,{icon:N.divIcon({html:e[t.properties.practice]?`<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src=${e[t.properties.practice]} /></div></div>`:`<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})})}}removeOutdoorSite(){this.handleLayersOnRemove()}async addSelectedTouristicEvent(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.touristicEvents){const o=l.touristicEvents.find((t=>t.id===e));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(i=l.touristicEventTypes.find((e=>e.id===o.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((e=>e.type==="image")).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedTouristicEvent();l.selectedTouristicEventId=e;const o=await this.getIcons(r,"category");this.selectedTouristicEventLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:o[e.properties.category]?`<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${o[e.properties.category]} /></div></div>`:`<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="touristic-event-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="touristic-event-name";r.className="touristic-event-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=()=>this.touristicEventCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));t.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(l.selectedTouristicEventId)}));t.on("popupclose",(()=>{if(l.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){l.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}async addOutdoorCourse(){const e={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){const t=l.outdoorCourseTypes.find((e=>e.id===l.currentOutdoorCourse.type));e.features.push({type:"Feature",geometry:l.currentOutdoorCourse.geometry,properties:{id:l.currentOutdoorCourse.id,name:l.currentOutdoorCourse.name,type:t?t.pictogram:null}})}if(!this.currentOutdoorCourseLayer){const t=await this.getIcons(e,"type");this.currentOutdoorCourseLayer=N.geoJSON(e,{pointToLayer:(e,i)=>N.marker(i,{icon:N.divIcon({html:t[e.properties.practice]?`<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src=${t[e.properties.practice]} /></div></div>`:`<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),style:()=>({color:this.colorOutdoorArea,interactive:false})});this.map.addLayer(this.currentOutdoorCourseLayer)}await this.addCurrentPois();await this.addCurrentTouristicContents();await this.addCurrentTouristicEvents();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeOutdoorCourse(){this.handleLayersOnRemove()}async addSelectedOutdoorSite(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.currentOutdoorSites){const t=l.currentOutdoorSites.find((t=>t.id===e));if(t&&t.geometry){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:Ct(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(i=l.outdoorPractices.find((e=>e.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((e=>e.type==="image")).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();l.selectedOutdoorSiteId=e;const o=await this.getIcons(r,"practice");this.selectedOutdoorSiteLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:o[e.properties.practice]?`<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src=${o[e.properties.practice]} /></div></div>`:`<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="outdoor-site-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="outdoor-site-name";r.className="outdoor-site-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=()=>this.outdoorSiteCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.outdoorSitePopupIsOpen){l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}));t.on("popupopen",(()=>{this.outdoorSitePopupIsOpen=Boolean(l.selectedOutdoorSiteId)}));t.on("popupclose",(()=>{if(l.selectedOutdoorSiteId){this.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map)}removeSelectedOutdoorSite(){l.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null}async addSelectedOutdoorCourse(e,t){var i;const r={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){const e=l.currentOutdoorCourse;r.features.push({type:"Feature",geometry:{type:"Point",coordinates:Ct(e.geometry).geometry.coordinates},properties:{id:e.id,name:e.name,type:(i=l.outdoorCourseTypes.find((t=>t.id===e.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.filter((e=>e.type==="image")).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();l.selectedOutdoorCourseId=e;const o=await this.getIcons(r,"type");this.selectedOutdoorCourseLayer=N.geoJSON(r,{pointToLayer:(e,t)=>N.marker(t,{zIndexOffset:4e6,icon:N.divIcon({html:o[e.properties.type]?`<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src=${o[e.properties.type]} /></div></div>`:`<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>`,className:"",iconSize:this.selectedMainMarkerSize,iconAnchor:[this.selectedMainMarkerSize/2,this.selectedMainMarkerSize]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("click",(()=>{const i=N.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(e.properties.imgSrc){const t=N.DomUtil.create("img");t.part="outdoor-course-coordinates-image";t.src=e.properties.imgSrc;i.appendChild(t)}const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="outdoor-course-name";r.className="outdoor-course-name";i.appendChild(r);const o=N.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-course-button";o.className="outdoor-course-button";o.onclick=()=>this.outdoorCourseCardPress.emit(e.properties.id);i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(()=>{if(!this.outdoorCoursePopupIsOpen){l.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}));t.on("popupopen",(()=>{this.outdoorCoursePopupIsOpen=Boolean(l.selectedOutdoorCourseId)}));t.on("popupclose",(()=>{if(l.selectedOutdoorCourseId){this.outdoorCoursePopupIsOpen=false;l.selectedOutdoorCourseId=null;this.removeSelectedOutdoorCourse()}}))}}).addTo(this.map)}removeSelectedOutdoorCourse(){l.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null}async addCurrentPois(){if(l.poisData>0){const e={type:"FeatureCollection",features:[]};this.currentPoisLayer=N.geoJSON(e,{pointToLayer:(e,t)=>N.marker(t,{icon:N.divIcon({html:e.properties.type_pictogram?`<div part="poi-marker" class="poi-marker"><img src=${e.properties.type_pictogram} /></div>`:`<div part="poi-marker" class="poi-marker"><img /></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});if(l.currentPois){this.setCurrentPois()}}}setCurrentPois(){var e;if(this.currentPoisLayer){if(l.currentPois){const t={type:"FeatureCollection",features:[]};for(const i of l.currentPois){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=l.poiTypes.find((e=>e.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentPoisLayer.clearLayers();this.currentPoisLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}}async addCurrentSignages(){if(l.currentSignages&&l.currentSignages.length>0){const e=a(`${""}assets/signage.svg`);const t={type:"FeatureCollection",features:[]};for(const e of l.currentSignages){t.features.push({type:"Feature",properties:{name:e.name},geometry:e.geometry})}this.currentSignagesLayer=N.geoJSON(t,{pointToLayer:(t,i)=>N.marker(i,{icon:N.divIcon({html:`<div part="signage-marker" class="signage-marker"><img part="signage-img" src=${e} /><div part="signage-name" class="signage-name">${t.properties.name}</div></div>`,className:"",iconSize:[this.commonMarkerSize*1.2,this.commonMarkerSize*.8]}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}}async addCurrentTouristicContents(){if(l.touristicContentsData>0){const e={type:"FeatureCollection",features:[]};this.currentToutisticContentsLayer=N.geoJSON(e,{pointToLayer:(e,t)=>N.marker(t,{icon:N.divIcon({html:e.properties.category_pictogram?`<div part="touristic-content-marker" class="touristic-content-marker"><img src=${e.properties.category_pictogram} /></div>`:`<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>`,className:this.grwApp?"":"cursor-pointer",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.on("click",(()=>{if(!this.grwApp){this.touristicContentCardPress.emit(e.properties.id)}}));t.on("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="touristic-content-tooltip";i.className="touristic-content-tooltip";const r=N.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});if(l.trekTouristicContents){this.setCurrentTouristicContents()}}}setCurrentTouristicContents(){var e;if(this.currentToutisticContentsLayer){if(l.trekTouristicContents){const t={type:"FeatureCollection",features:[]};for(const i of l.trekTouristicContents){t.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(e=l.touristicContentCategories.find((e=>e.id===i.category)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticContentsLayer.clearLayers();this.currentToutisticContentsLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}}async addCurrentTouristicEvents(){if(l.touristicEventsData>0){const e={type:"FeatureCollection",features:[]};this.currentTouristicEventsLayer=N.geoJSON(e,{pointToLayer:(e,t)=>N.marker(t,{icon:N.divIcon({html:e.properties.type_pictogram?`<div part="touristic-event-marker" class="touristic-event-marker"><img src=${e.properties.type_pictogram} /></div>`:`<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>`,className:this.grwApp?"":"cursor-pointer",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.on("click",(()=>{if(!this.grwApp){this.touristicEventCardPress.emit(e.properties.id)}}));t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="touristic-event-tooltip";i.className="touristic-event-tooltip";const r=N.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});if(l.trekTouristicEvents){this.setCurrentTouristicEvents()}}}setCurrentTouristicEvents(){var e;if(this.currentTouristicEventsLayer){if(l.trekTouristicEvents){const t={type:"FeatureCollection",features:[]};for(const i of l.trekTouristicEvents){t.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(e=l.touristicEventTypes.find((e=>e.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentTouristicEventsLayer.clearLayers();this.currentTouristicEventsLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}}async addCurrentInformationDesks(e){if(l.currentInformationDesks&&l.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of l.currentInformationDesks.filter((t=>e.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}if(t.features.length>0){const e=await this.getIcons(t,"type_pictogram");this.currentInformationDesksLayer=N.geoJSON(t,{pointToLayer:(t,i)=>N.marker(i,{icon:N.divIcon({html:e[t.properties.type_pictogram]?`<div part="information-desks-marker" class="information-desks-marker"><img src=${e[t.properties.type_pictogram]} /></div>`:`<div part="information-desks-marker" class="information-desks-marker"><img /></div>`,className:"",iconSize:this.commonMarkerSize}),autoPanOnFocus:false}),onEachFeature:(e,t)=>{t.once("mouseover",(()=>{const i=N.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";const r=N.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}}}handleLayersControl(){const e={};if(this.currentStepsLayer){e[c[l.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[c[l.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[c[l.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[c[l.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[c[l.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(l.poisData>0){e[c[l.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[c[l.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(l.touristicContentsData>0){e[c[l.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(l.touristicEventsData>0){e[c[l.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[c[l.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[c[l.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((t=>{this.layersControl.addOverlay(e[t],t)}))}else if(Object.keys(e).length>0){this.layersControl=N.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()}handleLayersOnRemove(){if(this.layersControl){if(!this.layersControl._layers.some((e=>!e.overlay))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((e=>e.overlay)).forEach((e=>{this.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}}onWindowResize(){this.handleView()}handleView(){const e=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=e;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}o(this.hostElement)}handleElevation(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();o(this.hostElement)}render(){const e=a(`${""}assets/layers.svg`);const r=a(`${""}assets/contract.svg`);return t(i,{key:"ed3813bec03d00790f7f748449fbbf1ea3cf96a4",ref:e=>this.hostElement=e,style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":`url(${e})`,"--contract-image-src":`url(${r})`,"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},t("div",{key:"3037be702ede33d9e5f7b9fe656914645c38d5e3",id:"map",part:"map",class:(l.currentTouristicContent||l.currentTouristicEvent||l.currentOutdoorSite||l.currentOutdoorCourse)&&this.grwApp?"common-map":l.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":l.currentTrek?"trek-map":"treks-map",ref:e=>this.mapRef=e},this.layerDataIsLoading&&t("div",{key:"8906ad05e5dc4e581c953387b1403e77d0d68109",class:"layer-loader-container"},t("div",{key:"1b0cefbf0b240d3daef645805d230e5ecf36e03d",class:"layer-loader"})),l.currentTrek&&t("div",{key:"78de26515cfbb8a2321a3fdc2dd7320631cd16c7",class:"grw-elevation-visibility-button-container"},t("grw-fab",{key:"7ba03a2a2240c1fb2af25558dd7a20ffc5f021e5",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:()=>this.handleElevation(),icon:()=>this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation",showTitle:c[l.language].showElevation,hideTitle:c[l.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&t("div",{key:"f70d5e65f3280417d85855540a0dadc92682f4eb",part:"map-loader-container",class:"map-loader-container"},t("span",{key:"250e0a87a9aebcf86e1109083a58c90582c548f9",part:"loader",class:"loader"})))}get mapElement(){return s(this)}};Tt.style=Pt;const Ot=":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px 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;margin-right:16px}@-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)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-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-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}";const _t=Ot;const Bt=class{constructor(t){e(this,t);this.downloadPress=r(this,"downloadPress",7);this.deletePress=r(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}onDownloadConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow=`hidden`;this.showOfflineModal=true;this.showConfirmModal=true}onDownloadedSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true}downloadedErrorConfirm(){this.showLoaderModal=false;this.showErrorModal=true}onDeleteConfirm(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow=`hidden`;this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true}onDeleteSuccessConfirm(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true}deleteErrorConfirm(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true}handleOkDeleteModal(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()}handleOkDownloadModal(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()}handleCancelModal(){document.body.style.overflow=`visible`;this.showOfflineModal=false}render(){return t(i,{key:"7306b7a65560fcb9c4088b7c3a9a2ee160dd3a0b"},this.showOfflineModal&&t("div",{key:"14e0880950476ecc6d884fdca71df39f29f918e4",class:"modal-container"},t("div",{key:"43bc502d63bf2a70a3ca5bc1507f93955dae406f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&t(n,{key:"1f1f66df6b7cd679c047d628be3c0a1b44b508c8"},t("div",{key:"754600cafd576f889a663ec1559540f1ab7d4e10",class:"modal-message-container"},`${this.mode==="treks"?c[l.language].offline.downloadRouteQuestion:c[l.language].offline.downloadOutdoorQuestion}`),t("div",{key:"6c8b16285f711b6b950a0df205acdd6daf6b6a4d",class:"modal-buttons-container"},t("button",{key:"059d1cb25bcce42a1737b96607d60dcebd50a8a1",part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},c[l.language].offline.cancel),t("button",{key:"345f06cb86b5d4fa2677e828d34379dd6f65d38f",part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDownloadModal()},c[l.language].offline.ok))),this.showConfirmDeleteModal&&t(n,{key:"bbaf82b8f3ce83cc38394f5e9587ff7a3f90153e"},t("div",{key:"f64a7242bedeb2f5683f0d2f3348a2a723feac1d",class:"modal-message-container"},`${this.mode==="treks"?c[l.language].offline.deleteRouteQuestion:c[l.language].offline.deleteRouteQuestion}`),t("div",{key:"2127e7ea9f8f35baa54b57bf93ea04ee2ab81333",class:"modal-buttons-container"},t("button",{key:"276e45cfd48fb2f9cd492745f953fbc4353478f8",part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},c[l.language].offline.cancel),t("button",{key:"1f5c9d6eb92330e8f918b9e0418093141b2a3db4",part:"modal-button",class:"modal-button",onClick:()=>this.handleOkDeleteModal()},c[l.language].offline.ok))),this.showLoaderModal&&t(n,{key:"f089931324dec141dd6cf0885296ac127305c99c"},t("div",{key:"7ed4f98632d3fd859413f02adb588ca37da95e05",class:"modal-message-container"},t("div",{key:"8d4afc461bf6c3c6ea4bd4682cf6a8cf88404f7e",class:"modal-loader"}),this.showDeletingMessage?c[l.language].offline.deleting:c[l.language].offline.downloading)),this.showSuccessModal&&t(n,{key:"9615a88d554a05dacf036998fcfb68261f29c0fe"},t("div",{key:"beb9348cc5fc4513e02a1f518152de8f132b54a6",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?c[l.language].offline.offlineRouteDeleted:c[l.language].offline.offlineOutdoorDeleted:this.mode==="treks"?c[l.language].offline.routeAvailableOffline:c[l.language].offline.outdoorAvailableOffline),t("div",{key:"045530fbea8ae990ed78c61a5c2b7cf2519d6bfc",class:"modal-button-container"},t("button",{key:"a75df76a487c0658ff9a3e10f07a35285d619685",part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},c[l.language].offline.ok))),this.showErrorModal&&t(n,{key:"2ab6733b150331690c42aaeb8a5c2a96d73657fa"},t("div",{key:"35b0edde0866fa2cbe4b3e6a147a2b8f323fa579",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?c[l.language].offline.deleteRouteError:c[l.language].offline.deleteOutdoorError:this.mode==="treks"?c[l.language].offline.downloadRouteError:c[l.language].offline.downloadOutdoorError),t("div",{key:"d1785cfe79fae56a8f6ed61b6c39aca80cea887c",class:"modal-button-container"},t("button",{key:"b3f3dc1440a637492bc5c4bcaf0a3e786692608d",part:"modal-button",class:"modal-button",onClick:()=>this.handleCancelModal()},c[l.language].offline.ok))))))}};Bt.style=_t;function jt({swiper:e,extendParams:t,on:i,emit:r}){const o=ne();let a=false;let s=null;let n=null;let c;let l;let d;let p;t({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}});e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:i}=e;const{dragEl:r,el:o}=t;const a=e.params.scrollbar;const n=e.params.loop?e.progressLoop:e.progress;let c=l;let p=(d-l)*n;if(i){p=-p;if(p>0){c=l-p;p=0}else if(-p+l>d){c=d+p}}else if(p<0){c=l+p;p=0}else if(p+l>d){c=d-p}if(e.isHorizontal()){r.style.transform=`translate3d(${p}px, 0, 0)`;r.style.width=`${c}px`}else{r.style.transform=`translate3d(0px, ${p}px, 0)`;r.style.height=`${c}px`}if(a.hide){clearTimeout(s);o.style.opacity=1;s=setTimeout((()=>{o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}}function f(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration=`${t}ms`}function u(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e;const{dragEl:i,el:r}=t;i.style.width="";i.style.height="";d=e.isHorizontal()?r.offsetWidth:r.offsetHeight;p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){l=d*p}else{l=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width=`${l}px`}else{i.style.height=`${l}px`}if(p>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function m(t){return e.isHorizontal()?t.clientX:t.clientY}function b(t){const{scrollbar:i,rtlTranslate:r}=e;const{el:o}=i;let a;a=(m(t)-pe(o)[e.isHorizontal()?"left":"top"]-(c!==null?c:l/2))/(d-l);a=Math.max(Math.min(a,1),0);if(r){a=1-a}const s=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*a;e.updateProgress(s);e.setTranslate(s);e.updateActiveIndex();e.updateSlidesClasses()}function g(t){const i=e.params.scrollbar;const{scrollbar:o,wrapperEl:s}=e;const{el:l,dragEl:d}=o;a=true;c=t.target===d?m(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();s.style.transitionDuration="100ms";d.style.transitionDuration="100ms";b(t);clearTimeout(n);l.style.transitionDuration="0ms";if(i.hide){l.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}r("scrollbarDragStart",t)}function v(t){const{scrollbar:i,wrapperEl:o}=e;const{el:s,dragEl:n}=i;if(!a)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;b(t);o.style.transitionDuration="0ms";s.style.transitionDuration="0ms";n.style.transitionDuration="0ms";r("scrollbarDragMove",t)}function w(t){const i=e.params.scrollbar;const{scrollbar:o,wrapperEl:s}=e;const{el:c}=o;if(!a)return;a=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";s.style.transitionDuration=""}if(i.hide){clearTimeout(n);n=de((()=>{c.style.opacity=0;c.style.transitionDuration="400ms"}),1e3)}r("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function k(t){const{scrollbar:i,params:r}=e;const a=i.el;if(!a)return;const s=a;const n=r.passiveListeners?{passive:false,capture:false}:false;const c=r.passiveListeners?{passive:true,capture:false}:false;if(!s)return;const l=t==="on"?"addEventListener":"removeEventListener";s[l]("pointerdown",g,n);o[l]("pointermove",v,n);o[l]("pointerup",w,c)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;k("on")}function x(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;k("off")}function A(){const{scrollbar:t,el:i}=e;e.params.scrollbar=ce(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const r=e.params.scrollbar;if(!r.el)return;let a;if(typeof r.el==="string"&&e.isElement){a=e.el.shadowRoot.querySelector(r.el)}if(!a&&typeof r.el==="string"){a=o.querySelectorAll(r.el)}else if(!a){a=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&a.length>1&&i.querySelectorAll(r.el).length===1){a=i.querySelector(r.el)}if(a.length>0)a=a[0];a.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);let s;if(a){s=a.querySelector(`.${e.params.scrollbar.dragClass}`);if(!s){s=le("div",e.params.scrollbar.dragClass);a.append(s)}}Object.assign(t,{el:a,dragEl:s});if(r.draggable){y()}if(a){a.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function z(){const t=e.params.scrollbar;const i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}x()}i("init",(()=>{if(e.params.scrollbar.enabled===false){L()}else{A();u();h()}}));i("update resize observerUpdate lock unlock",(()=>{u()}));i("setTranslate",(()=>{h()}));i("setTransition",((e,t)=>{f(t)}));i("enable disable",(()=>{const{el:t}=e.scrollbar;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));i("destroy",(()=>{z()}));const C=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}A();u();h()};const L=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}z()};Object.assign(e.scrollbar,{enable:C,disable:L,updateSize:u,setTranslate:h,init:A,destroy:z})}const Et=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>`;const St='@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}: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-outdoor-course-detail{overflow:hidden}.outdoor-course-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}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-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}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-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}.outdoor-course-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}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-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}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-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)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .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)}.outdoor-course-detail-container .current-advice-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}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';const Nt=St;const It=1;const Yt=class{constructor(t){e(this,t);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.offline=false}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new he(this.swiperImagesRef,{modules:[fe,ue,me,be,ge],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new he(this.swiperTouristicContentsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new he(this.swiperTouristicEventsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new he(this.swiperPoisRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}handleObservers(){if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.poiIsInViewport.emit(t)}),{threshold:It});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicContentsIsInViewport.emit(t)}),{threshold:It});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicEventsIsInViewport.emit(t)}),{threshold:It});this.touristicEventObserver.observe(this.touristicEventsRef)}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}d("currentOutdoorCourse",(async()=>{if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}}))}handleFullscreen(e=false){if(!e){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}render(){const e=a(`${""}assets/default-image.svg`);const r=l.outdoorCourseTypes&&this.currentOutdoorCourse&&l.outdoorCourseTypes.find((e=>e.id===this.currentOutdoorCourse.type));const o=l.cities&&l.cities.find((e=>e.id===this.currentOutdoorCourse.cities[0]));const s=l.outdoorRatings&&this.currentOutdoorCourse&&l.outdoorRatings.filter((e=>this.currentOutdoorCourse.ratings.includes(e.id)));const n=s&&[...new Set(s.map((e=>e.scale)))];const d=n&&l.outdoorRatingsScale.filter((e=>n.includes(e.id)));return t(i,{key:"cb727db948fd46420494d5ec39daf25807c88ec1",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&t("div",{key:"af6745dd2a7bfb02357cc7541e3aad564db62dfa",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:e=>this.outdoorCourseDetailContainerRef=e},t("div",{key:"49ecb6fcba0366f7b393718c82cd6baadd009d0c",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:e=>this.presentationRef=e},t("div",{key:"d36e0f0c42036270f3c6f9a6f3659192de63792f",part:"swiper-images",class:"swiper swiper-images",ref:e=>this.swiperImagesRef=e},t("div",{key:"74b06043da7230a0a6f1bb3c042c6c776bc013b5",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((e=>e.type==="image")).length>0?this.currentOutdoorCourse.attachments.filter((e=>e.type==="image")).map((i=>{const r=[i.legend,i.author].filter(Boolean).join(" - ");return t("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&t("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},t("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:ve})),t("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),t("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:t=>{t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:i.legend}))})):t("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),t("div",{key:"2174936e78378a8b8ec6f8092953f2e5f78fdded"},t("div",{key:"c8d0f8021965b7f8a1578cd6e840d132a8f540a8",part:"swiper-pagination",class:"swiper-pagination",ref:e=>this.paginationElImagesRef=e}),t("div",{key:"f7e010e8dcca7136ccaeeda96aed2963a84995e5",part:"swiper-button-prev",class:"swiper-button-prev",ref:e=>this.prevElImagesRef=e}),t("div",{key:"ad93bf87548f8e7135e14ecfe610fa73c2a4d1b4",part:"swiper-button-next",class:"swiper-button-next",ref:e=>this.nextElImagesRef=e})))),t("div",{key:"7be6b3215e2622104ddbc4856de349b9784f89b6",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),t("div",{key:"ca6eca74819465958a8b4467eba7c11a837f5459",part:"sub-container",class:"sub-container"},t("div",{key:"dc8a66d4488ae551c19e001eb8abfabd6db51fa5",part:"icons-labels-container",class:"icons-labels-container"},r&&t("div",{key:"ad50d9ee51a2e423805b43de2327eb6f756a8a31",part:"icon-label",class:"icon-label type"},r.pictogram&&t("img",{key:"9cef7dcb073f957534d935d422731c34a4e09cdd",part:"icon",class:"icon",src:r.pictogram,alt:""}),t("span",{key:"a081bb33d0a8c87a8a42bd7636f314d14f6543b7",part:"label",class:"label"},r.name)),t("div",{key:"a84cf94b91a4c0757b7fa5baf798da500a30f096",part:"icon-label",class:"icon-label duration"},t("span",{key:"811e67835e2a32cc4317fc1fd4db91198bdd4736",part:"icon",class:"icon",innerHTML:Be}),t("span",{key:"0cfa2867e1881357510bb18bc6e5399983487982",part:"label",class:"label"},z(this.currentOutdoorCourse.duration))),t("div",{key:"440a3ab57fc77d58151de55f7a1155ed9bdeebef",part:"icon-label",class:"icon-label length"},t("span",{key:"8867c6867698032161c9a894feb0a9d4eb707530",part:"icon",class:"icon",innerHTML:je}),t("span",{key:"e59b89e7cda7f39794a2848a2303fe2062dc1039",part:"label",class:"label"},C(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&t("div",{key:"f1c1ebb1997e097548b184d62ac9f28f5f67754e",part:"icon-label",class:"icon-label ascent"},t("span",{key:"881b6910293e5adc2eea559c96ed66d124dfea2f",part:"icon",class:"icon",innerHTML:Ee}),t("span",{key:"eb0a0adc50c5882e24490847d9ea68e0639cb68a",part:"label",class:"label"},M(this.currentOutdoorCourse.max_elevation))),s&&d.map((e=>t("div",{part:"row",class:"row"},`${e.name} : ${s.filter((t=>t.scale===e.id)).map((e=>e.name)).join(", ")}`))))),t("div",{key:"0e0524de036514512473b3ae394046fb3f0e831d",part:"divider",class:"divider"}),t("div",{key:"d8e53e20a0752299d308776973cce0729f12c671",part:"downloads-container",class:"downloads-container"},t("div",{key:"6f4f012fb5d07fa93e1e18c385312e81d7394c81",part:"download-title",class:"download-title"},c[l.language].downloads),t("div",{key:"1ffaf39904f0836b1dc81bf2a0eb9f39466a8096",part:"links-container",class:"links-container"},t("a",{key:"cd2bb29e9905ce2db4d2cead2e182db5849fa5d2",href:`${this.currentOutdoorCourse.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},t("span",{key:"1e9ace4db9a517052689aa4f43a28717d7993835",part:"icon",class:"icon",innerHTML:we}),t("span",{key:"7277b3c1f4b4d9721721b1e9a314a71b40685eb6",part:"label",class:"label"},"PDF")))),t("div",{key:"83ad24ce4f45f048c0c290f11f1858a979385162",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&t("div",{key:"477d54e05f438fcc9cb1ea4004d611554bf29164",part:"description-container",class:"description-container"},t("div",{key:"af3cd192204ce8c40af0a84a22dd609119089172",part:"description-title",class:"description-title",ref:e=>this.descriptionRef=e},c[l.language].description),t("div",{key:"45f43c5308498f22bb8b8c5e67e471dea6191066",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&t("div",{key:"3c9953625ed21e5e3593d93a890ab11b1452b705",part:"departure-container",class:"departure-container"},t("div",{key:"191929247f4ea28b6e4acf324567ad40dcf2cff3",part:"departure-title",class:"departure-title"},c[l.language].departure," : "),t("div",{key:"cd43ff27fb751c1e40f6da45cd9044fb2ed98a30",part:"departure",innerHTML:o.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&t("div",{key:"4dbb201aff8a6499824ef36bf98b8e168bdda3bb",part:"cities-container",class:"cities-container"},t("div",{key:"60da6a1322b637fe946273d30c33670524bc7bb7",part:"cities-title",class:"cities-title"},c[l.language].crossedCities," : "),t("div",{key:"b2fff5f092801ff5ebe3a2a6250031dbe2ed3b39",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((e=>{var t;return(t=l.cities.find((t=>t.id===e)))===null||t===void 0?void 0:t.name})).join(", ")})),this.currentOutdoorCourse.advice&&t("div",{key:"2f397463892d518a563f033b0f6c7519c557d939"},t("div",{key:"e52272836948c272e7f18c4c697b0cfcd2e7a2c9",part:"divider",class:"divider"}),t("div",{key:"c796cdf86ce37f1dcf23bd36979c036cfc1d3d55",part:"advice-container",class:"advice-container"},t("div",{key:"2205d95bbaa515075afae1208426d910b965d30c",part:"advice-title",class:"advice-title",ref:e=>this.recommendationRef=e},c[l.language].recommendations),this.currentOutdoorCourse.advice&&t("div",{key:"fe729c972bc13f37554d39a9a908999516b814c3",part:"current-advice-container",class:"current-advice-container"},t("span",{key:"eca98deed7af67d580d508a42293217a7034295d",part:"icon",class:"icon",innerHTML:Et}),t("div",{key:"b542af2fc0d823b0efa78ea78900861d074b6b8f",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&t("div",{key:"c7245648ea1116332b8af13262fcea619d97a601"},t("div",{key:"32eae0fb50b9ff70d307c890cf0e213f45eaa130",part:"divider",class:"divider"}),t("div",{key:"296abbafea44d84da495128e31a89e35b1c17bfc",part:"accessibilities-container",class:"accessibilities-container"},t("div",{key:"e810f6dad85e289808df9758e50a2c148471c40b",part:"accessibilites-title",class:"accessibilities-title"},c[l.language].accessibility),t("div",{key:"030b465a06c2d06ec0f6c9400e2cae6edc464143",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&t("div",{key:"79ae727defd6ea88f8f19772fb211d0a3d10c8f4"},t("div",{key:"4ec876c2c3a4e42d68c70914c1ae50800b0bb528",part:"divider",class:"divider"}),t("div",{key:"eceb9d26c49e5110d2649be69bc45eac2bd11bbe",part:"touristic-content-container",class:"touristic-content-container"},t("div",{key:"9f2eb8810b087faaf33fdfc4871b1781f0d08c99",part:"touristic-content-title",class:"touristic-content-title",ref:e=>this.touristicContentsRef=e},c[l.language].touristicContents(l.trekTouristicContents.length)),t("div",{key:"4f26659f7406c48034eca125139eda0ba6ca473a",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:e=>this.swiperTouristicContentsRef=e},t("div",{key:"d85ae07df70c39952ff4f7aaac31def12072af35",part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true}))))),t("div",{key:"5bb540aa2b88edd051fc9ae9109a24a7d06606af",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicContentsSwiperScrollbar=e})))),l.trekTouristicEvents&&l.trekTouristicEvents.length>0&&t("div",{key:"b1c70fe3c3ac99629395c3560da9ff3e15bbee4b"},t("div",{key:"cfeaf392485aef5fe8e87fed79b79e5d92990c12",part:"divider",class:"divider"}),t("div",{key:"74fbc6f5d6cfd5c293267af04bc7856fc24cdbdc",part:"touristic-event-container",class:"touristic-event-container"},t("div",{key:"7c3f6f614092b6f76914ba49e885570848bfd8c0",part:"touristic-event-title",class:"touristic-event-title",ref:e=>this.touristicEventsRef=e},c[l.language].touristicEvents(l.trekTouristicEvents.length)),t("div",{key:"3defb9c2f109c6d227e268d50b2164a3e05992b0",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:e=>this.swiperTouristicEventsRef=e},t("div",{key:"5be7d64f04969ef7a5a67af9113fb30219d66afe",part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true}))))),t("div",{key:"1d97da44c7036163774f991f6dd55c2dc36c34c5",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicEventsSwiperScrollbar=e})))),l.currentPois&&l.currentPois.length>0&&t("div",{key:"4862d90a059524e382b53d2d53a99e89444bba5b"},t("div",{key:"e3bfd211185933959a030cce856831d2980271ba",part:"divider",class:"divider"}),t("div",{key:"4a863f379085a679357b59815fbf3ff5d3018583",part:"pois-container",class:"pois-container"},t("div",{key:"be79bbcc2a4c8dff285d47618e4c7fa70be865f1",part:"pois-title",class:"pois-title",ref:e=>this.poiRef=e},c[l.language].pois(l.currentPois.length)),t("div",{key:"9dc82acc4bb4d36c36dd49eee4caed25384d9e64",part:"swiper-pois",class:"swiper swiper-pois",ref:e=>this.swiperPoisRef=e},t("div",{key:"92a9c116ce5c79803a0f72671ec8e9d653eb78f0",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentPois.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e}))))),t("div",{key:"67d3936095398a15103b3442aa6eb7864e058286",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.poisSwiperScrollbar=e})))),this.weather&&o&&!this.offline&&t("div",{key:"b0b52d6e041f40c11a37d96ec6f3dab13f814ff4"},t("div",{key:"4e2334496b4bf528abcac278cdc290c58ce292ec",part:"divider",class:"divider"}),t("div",{key:"d8ead57a9786f41e625f385bb789ed640636935c",part:"weather-container",class:"weather-container"},t("iframe",{key:"9cbbda1ed4428c11c207217f27f56704793a250e",height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${o.id}0#${this.colorPrimaryApp}`}))),this.grwApp&&t("div",{key:"a3ebfebb78f2d8687e1dcdf37ae6122b92fd211a",part:"detail-bottom-space",class:"detail-bottom-space"})))}};Yt.style=Nt;const Dt=class{constructor(t){e(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleOutdoorCourse()}async handleOutdoorCourse(){const e=await Y("outdoorCourses",this.outdoorCourseId);if(e&&e.offline){this.handleOfflineOutdoorCourse(e)}else{this.handleOnlineOutdoorCourse()}}async handleOfflineOutdoorCourse(e){l.cities=await D("cities");l.districts=await D("districts");l.themes=await D("themes");l.touristicContentCategories=await D("touristicContentCategories");l.touristicEventTypes=await D("touristicEventTypes");l.poiTypes=await D("poiTypes");l.outdoorCourseTypes=await D("outdoorCourseTypes");const t=await D("pois",["url"]);const i=t.filter((t=>e.pois.some((e=>e===t.id))));l.currentPois=i;const r=await D("touristicContents",["url"]);const o=r.filter((t=>e.touristicContents.some((e=>e===t.id))));l.trekTouristicContents=o;const a=await D("touristicEvents",["url"]);const s=a.filter((t=>e.touristicEvents.some((e=>e===t.id))));l.trekTouristicEvents=s;await F(e,P,["url"]);l.currentOutdoorCourse=e}handleOnlineOutdoorCourse(){const e=[];e.push(!l.cities?q(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?V(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorCourseTypes?Se(l.api,l.language,this.init):new Response("null"));e.push(ke(l.api,l.language,this.outdoorCourseId,this.init));e.push(ye(l.api,l.language,null,this.init));e.push(xe(l.api,l.language,this.outdoorCourseId,this.init));e.push(Ae(l.api,l.language,null,this.init));e.push(Ne(l.api,l.language,this.outdoorCourseId,this.init));e.push(fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init));e.push(Ie(l.api,l.language,this.outdoorCourseId,this.init));try{Promise.all([...e]).then((e=>Promise.all(e.map((e=>e.json()))))).then((async([e,t,i,r,o,a,s,n,c,d,p])=>{l.networkError=false;if(e){l.cities=e.results}if(t){l.districts=t.results}if(i){l.themes=i.results}if(r){l.outdoorCourseTypes=r.results}if(o){l.trekTouristicContents=o.results}if(a){l.touristicContentCategories=a.results}if(s){l.trekTouristicEvents=s.results}if(n){l.touristicEventTypes=n.results}if(c){l.currentPois=c.results}if(d){l.poiTypes=d.results}l.currentOutdoorCourse=p}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return t(i,{key:"73091001116ada99563f8374c5675971c533a7ab"})}};const Ht=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>`;const $t=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>`;const Gt=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>`;const Rt=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>`;const Zt=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>`;function qt(e,t,i,r,o,a,s,n,c){let l=`${e}outdoor_site/?language=${t}&root_sites_only=true&published=true`;i&&(l+=`&in_bbox=${i}`);r&&(l+=`&cities=${r}`);o&&(l+=`&districts=${o}`);a&&(l+=`&structures=${a}`);s&&(l+=`&themes=${s}`);n&&(l+=`&portals=${n}`);l+=`&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind`;return T(l,c)}function Vt(e,t,i,r){let o=`${e}outdoor_site/${i}/?language=${t}&published=true`;o+=`&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents`;return fetch(o,r)}function Qt(e,t,i){let r=`${e}outdoor_sitetype/?language=${t}&published=true`;return fetch(r,i)}function Ut(e,t,i){let r=`${e}outdoor_practice/?language=${t}&published=true`;return fetch(r,i)}function Xt(e,t,i,r){return T(`${e}poi/?language=${t}&sites=${i}&published=true&fields=id,name,description,attachments,type,geometry`,r)}async function Wt(e){const t=await Y("outdoorSites",e);return t&&t.offline}const Jt='@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}: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-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-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)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-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}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-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}.outdoor-site-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}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-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}.outdoor-site-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}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-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}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-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)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-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}.outdoor-site-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);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}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-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}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-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)}.outdoor-site-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 .icon img,.gear-container .icon img{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}.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)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-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}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-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{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;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}';const Kt=Jt;const ei=1;const ti=class{constructor(t){e(this,t);this.informationPlacesIsInViewport=r(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=r(this,"sitesIsInViewport",7);this.coursesIsInViewport=r(this,"coursesIsInViewport",7);this.downloadConfirm=r(this,"downloadConfirm",7);this.downloadedSuccessConfirm=r(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=r(this,"downloadedErrorConfirm",7);this.deleteConfirm=r(this,"deleteConfirm",7);this.deleteSuccessConfirm=r(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=r(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}onCloseDetailsModal(){document.body.style.overflow=`visible`;l.currentTouristicContent=null;l.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()}onTouristiceEventCardPress(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("TouristicContent");const t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);t.append(i);document.body.append(t)}}onTouristicContentCardPress(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("touristicContent");const t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);t.append(i);document.body.append(t)}}onOpenDetailsModal(e){document.body.style.overflow=`hidden`;if(e==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}}onDownloadPress(){this.downloadRootOutdoorSite()}onDeletePress(){this.deleteOutdoorSite()}handleObservers(){if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.informationPlacesIsInViewport.emit(t)}),{threshold:ei});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.poiIsInViewport.emit(t)}),{threshold:ei});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicContentsIsInViewport.emit(t)}),{threshold:ei});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicEventsIsInViewport.emit(t)}),{threshold:ei});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.sitesIsInViewport.emit(t)}),{threshold:ei});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.coursesIsInViewport.emit(t)}),{threshold:ei});this.courseObserver.observe(this.coursesRef)}}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new he(this.swiperImagesRef,{modules:[fe,ue,me,be,ge],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new he(this.swiperRelatedOutdoorSitesRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new he(this.swiperInformationDesksRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new he(this.swiperRelatedOutdoorCoursesRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new he(this.swiperTouristicContentsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new he(this.swiperTouristicEventsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new he(this.swiperPoisRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(l.currentOutdoorSite){this.sources=l.sources.filter((e=>l.currentOutdoorSite.source.includes(e.id)));this.currentOutdoorSite=l.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}d("currentOutdoorSite",(async()=>{if(l.currentOutdoorSite){this.sources=l.sources.filter((e=>l.currentOutdoorSite.source.includes(e.id)));this.currentOutdoorSite=l.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}}))}handleFullscreen(e=false){if(!e){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}displayDownloadModal(){this.downloadConfirm.emit()}displayDeleteModal(){this.deleteConfirm.emit()}async downloadRootOutdoorSite(){const e=new AbortController;const t=e.signal;const i={cache:"default",signal:t};if(!l.outdoorSites){const e=await qt(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districtsFromProviders,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,i);l.outdoorSites=(await e.json()).results;l.currentOutdoorSites=l.outdoorSites}const r=(await H("outdoorSites")).filter((e=>e.offline===true));let o;o=l.outdoorSites;o=o.filter((e=>r.findIndex((t=>t.id===e.id))===-1));await $("outdoorSites",o);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry);await G(l.themes,P);await G(l.outdoorSiteTypes,P);await G(l.outdoorPractices,P);await G(l.sources,P);await G(this.currentOutdoorSite,P,true,["url"]);await $("cities",l.cities);await $("districts",l.districts);await $("themes",l.themes);await $("outdoorSiteTypes",l.outdoorSiteTypes);await $("outdoorPractices",l.outdoorPractices);await $("outdoorRatings",l.outdoorRatings);await $("outdoorRatingsScale",l.outdoorRatingsScale);await $("pois",l.currentPois);await $("poiTypes",l.poiTypes);await $("informationDesks",l.currentInformationDesks);await $("outdoorCourseTypes",l.outdoorCourseTypes);await $("touristicEventTypes",l.touristicEventTypes);await $("touristicContentCategories",l.touristicContentCategories);await $("sources",l.sources);await G(l.currentPois,P,true,["url"]);await G(l.currentInformationDesks,P,true);await G(l.outdoorCourseTypes,P,true);await G(l.touristicContentCategories,P,true);await G(l.trekTouristicContents,P,true,["url"]);l.trekTouristicContents.forEach((e=>{e.offline=true}));await $("touristicContents",l.trekTouristicContents);await G(l.trekTouristicEvents,P,true,["url"]);l.trekTouristicEvents.forEach((e=>{e.offline=true}));await $("touristicEvents",l.trekTouristicEvents);if(l.currentOutdoorSite.courses&&l.currentOutdoorSite.courses.length>0){for(let e=0;e<l.currentOutdoorSite.courses.length;e++){const t=l.currentOutdoorSite.courses[e];await this.downloadOutdoorCourse(t)}}if(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0){for(let e=0;e<this.currentOutdoorSite.children.length;e++){const t=this.currentOutdoorSite.children[e];await this.downloadOutdoorSite(t)}}await $("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:l.currentPois.map((e=>e.id)),touristicContents:l.trekTouristicContents.map((e=>e.id)),touristicEvents:l.trekTouristicEvents.map((e=>e.id))})]);l.outdoorSites.find((e=>e.id===this.currentOutdoorSite.id)).offline=true;l.currentOutdoorSites.find((e=>e.id===this.currentOutdoorSite.id)).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit()}async downloadOutdoorSite(e){try{const t=new AbortController;const i=t.signal;const r={cache:"default",signal:i};const o=await Vt(l.api,l.language,e,r).then((e=>e.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,o.geometry);await G(o,P,true,["url"]);const a=(await Xt(l.api,l.language,e,r).then((e=>e.json()))).results;await $("pois",a);await G(a,P,true,["url"]);const s=(await ze(l.api,l.language,e,r).then((e=>e.json()))).results;await G(s,P,true,["url"]);s.forEach((e=>{e.offline=true}));await $("touristicContents",s);const n=(await Ce(l.api,l.language,e,r).then((e=>e.json()))).results;await G(n,P,true,["url"]);n.forEach((e=>{e.offline=true}));await $("touristicEvents",n);await $("outdoorSites",[Object.assign(Object.assign({},o),{offline:true,pois:a.map((e=>e.id)),touristicContents:s.map((e=>e.id)),touristicEvents:n.map((e=>e.id))})]);if(o.courses&&o.courses.length>0){for(let e=0;e<o.courses.length;e++){const t=o.courses[e];await this.downloadOutdoorCourse(t)}}if(o.children&&o.children.length>0){for(let e=0;e<o.children.length;e++){const t=o.children[e];await this.downloadOutdoorSite(t)}}}catch(e){this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id)}}async downloadOutdoorCourse(e){const t=new AbortController;const i=t.signal;const r={cache:"default",signal:i};const o=await Ie(l.api,l.language,e,r).then((e=>e.json()));await this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,o.geometry);await G(o,P,true,["url"]);const a=(await Ne(l.api,l.language,e,r).then((e=>e.json()))).results;await $("pois",a);await G(a,P,true,["url"]);const s=(await ke(l.api,l.language,e,r).then((e=>e.json()))).results;await G(s,P,true,["url"]);s.forEach((e=>{e.offline=true}));await $("touristicContents",s);const n=(await xe(l.api,l.language,e,r).then((e=>e.json()))).results;await G(n,P,true,["url"]);n.forEach((e=>{e.offline=true}));await $("touristicEvents",n);await $("outdoorCourses",[Object.assign(Object.assign({},o),{offline:true,pois:a.map((e=>e.id)),touristicContents:s.map((e=>e.id)),touristicEvents:n.map((e=>e.id))})])}async deleteOutdoorSite(){try{const e=[];const t=await Y("outdoorSites",this.currentOutdoorSite.id);this.deleteOfflineOutdoorSiteProperties(t);e.push(t);await $("outdoorSites",e);if(l.outdoorSites){delete l.outdoorSites.find((e=>e.id===this.currentOutdoorSite.id)).offline;if(!l.currentOutdoorSites){l.currentOutdoorSites=l.outdoorSites}delete l.currentOutdoorSites.find((e=>e.id===this.currentOutdoorSite.id)).offline}this.offline=false;this.deleteSuccessConfirm.emit()}catch(e){this.deleteErrorConfirm.emit(this.currentOutdoorSite.id)}}async downloadGlobalTiles(e,t){const i=I.exports.tileLayerOffline(e,{attribution:t});const r=[];if(l.outdoorSites){for(const e of l.outdoorSites){r.push(Ct(e.geometry).geometry.coordinates)}}const o=N.latLngBounds(r.map((e=>[e[1],e[0]])));await R(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadOutdoorSiteTiles(e,t,i){const r=I.exports.tileLayerOffline(e,{attribution:t});const o=dt(i);const a=N.latLngBounds([o[1],o[0]],[o[3],o[2]]);await R(r,a,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)}deleteOfflineOutdoorSiteProperties(e){delete e.offline;delete e.pois;delete e.touristicContents;delete e.touristicEvents}render(){const e=a(`${""}assets/default-image.svg`);const r=l.outdoorPractices&&this.currentOutdoorSite&&l.outdoorPractices.find((e=>e.id===this.currentOutdoorSite.practice));const o=l.cities&&this.currentOutdoorSite&&l.cities.find((e=>e.id===this.currentOutdoorSite.cities[0]));const s=l.outdoorRatings&&this.currentOutdoorSite&&l.outdoorRatings.filter((e=>this.currentOutdoorSite.ratings.includes(e.id)));const d=s&&[...new Set(s.map((e=>e.scale)))];const p=d&&l.outdoorRatingsScale.filter((e=>d.includes(e.id)));return t(i,{key:"46ed158a01b80339a5d1c69f479eda528fb77bb7",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&t("div",{key:"1abc144f54c7ac532e0ea3a0272e5e16f4abdc9d",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:e=>this.outdoorSiteDetailContainerRef=e},t("div",{key:"5949d52079afd09044c6f86a36eb7b318edc0643",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:e=>this.presentationRef=e},t("div",{key:"67ce02944771b873a6d5ac06ca653070de5ad000",part:"swiper-images",class:"swiper swiper-images",ref:e=>this.swiperImagesRef=e},t("div",{key:"c64f49273e15080cf77bbb14abc0324c418dc09a",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((e=>e.type==="image")).length>0?this.currentOutdoorSite.attachments.filter((e=>e.type==="image")).map((i=>{const r=[i.legend,i.author].filter(Boolean).join(" - ");return t("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&t("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},t("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:ve})),t("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),t("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:this.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:t=>{t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:i.legend}))})):t("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),t("div",{key:"75cecc54632c8ef4a8a6e355992d07ce2a4d9880"},t("div",{key:"c0b5e56f81e4f702219f86190f3fe0cc13775612",part:"swiper-pagination",class:"swiper-pagination",ref:e=>this.paginationElImagesRef=e}),t("div",{key:"322cb3a62d321032874ab4a8e842f83368f03d95",part:"swiper-button-prev",class:"swiper-button-prev",ref:e=>this.prevElImagesRef=e}),t("div",{key:"2818fa9374baeeb415cc09ac98f9e2f5666c6425",part:"swiper-button-next",class:"swiper-button-next",ref:e=>this.nextElImagesRef=e})))),t("div",{key:"c58a126fa3abaf117df8f066edf0a9436047e063",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),l.themes&&l.themes.filter((e=>this.currentOutdoorSite.themes.includes(e.id))).length>0&&t("div",{key:"1d33fc6b9df62590e86176ca765cb0b4ac266a92",part:"themes-container",class:"themes-container"},l.themes.filter((e=>this.currentOutdoorSite.themes.includes(e.id))).map((e=>t("div",{part:"theme",class:"theme"},e.label)))),t("div",{key:"23e87c9d2213bcb062a7459ded117e425cd8e63e",part:"sub-container",class:"sub-container"},t("div",{key:"67646ff2cf667de6224b570b2eee2c29f049b940",part:"icons-labels-container",class:"icons-labels-container"},r&&t("div",{key:"933aaf727911f432f45567e1e72ebd70ac87198d",part:"icon-label",class:"icon-label practice"},r.pictogram&&t("img",{key:"e5e641073e676d7bada15bb3beeef6c5c033e3f9",part:"icon",class:"icon",src:r.pictogram,alt:""}),t("span",{key:"5bcf37f81a7416f3503c20dd00479feee8487266",part:"label",class:"label"},r.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&t("div",{key:"d38ca0f2cb179a0ba72a1f73cb6f162c89e83535",part:"row",class:"row"},t("span",{key:"8e0bde44a1fb5de5a98896ebb3aacd0014d391dd",part:"icon",class:"icon",innerHTML:Gt}),t("span",{key:"82606afff8c11567b9d2dfaa2766fd79aadae704",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((e=>c[l.language].cardinalPoints[e.toLowerCase()])).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&t("div",{key:"4a6eeb275ec065cba2f1d0a7ce8a33df695b31e3",part:"row",class:"row"},t("span",{key:"abd9c3e4f83b9f60a15b1665097eef3849aae980",part:"icon",class:"icon",innerHTML:$t}),t("span",{key:"70f82969917b052df5847670573407c655334fe6",part:"label",class:"label"},this.currentOutdoorSite.wind.map((e=>c[l.language].cardinalPoints[e.toLowerCase()])).join(", "))),this.currentOutdoorSite.period&&t("div",{key:"57ace76527e5534a5a5fe724e0f0ac3366dbf1fd",part:"row",class:"row"},t("span",{key:"badf7ef24a3a09e8ebc9ea48e6c1acacd5d12283",part:"icon",class:"icon",innerHTML:Ht}),t("span",{key:"013e7b362e84b6c34693154c2b0333ebcc82fa57",part:"label",class:"label"},this.currentOutdoorSite.period)),s&&p.map((e=>t("div",{part:"row",class:"row"},`${e.name} : ${s.filter((t=>t.scale===e.id)).map((e=>e.name)).join(", ")}`))))),t("div",{key:"6398e998e558bd3f12996e91220df6f8317dcf44",part:"divider",class:"divider"}),t("div",{key:"5990fc4353bba92cf45710c28d6d2a4fa3505071",part:"downloads-container",class:"downloads-container"},t("div",{key:"8df8c1e235a1896516c9416d8d7474c2f0f8c272",part:"download-title",class:"download-title"},c[l.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&t("button",{key:"049f03d991ee27de86258d0bde298e53a7b44ab3",part:"offline-button",class:"offline-button",onClick:()=>this.displayDownloadModal()},t("span",{key:"b8bdd8bd591188f993f65dbc48880c1a675cfe90",part:"icon",class:"icon",innerHTML:Rt}),t("span",{key:"390b0b8d0a5805e6a94266bc31b2972898046ca0",part:"label",class:"label"},c[l.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&t("button",{key:"5f8365592a9f0c5e949d7296256adeb965618d36",part:"offline-button",class:"offline-button",onClick:()=>this.displayDeleteModal()},t("span",{key:"f8ef4475ea2f700a51f39095c15e7c70df610595",part:"icon",class:"icon",innerHTML:Zt}),t("span",{key:"7c379f8ceb75530ece79c0708a114dbcddf0d361",part:"label",class:"label"},c[l.language].offline.deleteOffline)),t("div",{key:"478bdcf42e18aa5d533dc141b56838e1d1b75970",part:"links-container",class:"links-container"},t("a",{key:"7eb311a49b75bf34c1d8c8dd9ed3b6b0cb11c372",href:`${this.currentOutdoorSite.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},t("span",{key:"9530928e6b6f91392b275b0f904fd649d3fd2d48",part:"icon",class:"icon",innerHTML:we}),t("span",{key:"3e0cf2ae3cddebdd3d57e2bc423118b0874d36db",part:"label",class:"label"},"PDF")))),t("div",{key:"9d9b9cdd10521220c535d48b25f17a63e5155060",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&t("div",{key:"053f476485782e01078d7f04e97cf5503bbb8ae5",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&t("div",{key:"5c374be19ec6645b8020e7e50ab09206e9401033",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),t("div",{key:"8b676c16245433f4758760f48a6465cee6746230",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&t("div",{key:"9c982d428a9c346aafc3f282809d99069a138bb9",part:"description-container",class:"description-container"},t("div",{key:"ecee6dc9ac06cd08c3426a15417175a85d2bd9c6",part:"description-title",class:"description-title",ref:e=>this.descriptionRef=e},c[l.language].description),t("div",{key:"98ae7864cd9987f164953b46caed1064b0eb28d4",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&t("div",{key:"fef1a3f3e0cfb5496aac91a68dc314f119b7fcd0",part:"departure-container",class:"departure-container"},t("div",{key:"4eb4a20bace14cc03719337aa93af3040ee07fd2",part:"departure-title",class:"departure-title"},c[l.language].departure," : "),t("div",{key:"0c4ac94a30c105198aff382917925191660a32bb",part:"departure",innerHTML:o.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&t("div",{key:"af670ae2950cca21d01736b77f445e3174fed09a",part:"cities-container",class:"cities-container"},t("div",{key:"5e9ee67fa3cd30b610e7b7115f0db60da56d465d",part:"cities-title",class:"cities-title"},c[l.language].crossedCities," : "),t("div",{key:"2699d0628e868e3846aeebc7da78c2bdaf3f378e",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((e=>{var t;return(t=l.cities.find((t=>t.id===e)))===null||t===void 0?void 0:t.name})).join(", ")})),l.currentPois&&l.currentPois.length>0&&t("div",{key:"ad0938b75cabb30cdfc793f9ae78b0594a7a3968"},t("div",{key:"651628fd429a33db543bf04f1d5f7bbfbf63a4ff",part:"divider",class:"divider"}),t("div",{key:"7641188bf16c54b229f74ff9739c770ce6abc26a",part:"pois-container",class:"pois-container"},t("div",{key:"829fb46fabf7c180928f4c30495ebe4145c98446",part:"pois-title",class:"pois-title",ref:e=>this.poiRef=e},c[l.language].pois(l.currentPois.length)),t("div",{key:"99cd3bbff3e255d8b11adeebc696e336335c0796",part:"swiper-pois",class:"swiper swiper-pois",ref:e=>this.swiperPoisRef=e},t("div",{key:"b0b192f0d8fcebbed40d0294139024dfed3cf6e0",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentPois.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e}))))),t("div",{key:"3ad5a1b92ef363dd152bbd80f1007c2f3fb55a0f",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.poisSwiperScrollbar=e})))),this.currentOutdoorSite.advice&&t("div",{key:"4d2699d2cff5754d82fd5a91a953234845a7a7d4"},t("div",{key:"cf229578181831e1d95e52548b7cf3be5e0798fb",part:"divider",class:"divider"}),t("div",{key:"03e237c5394b9105d17fe2f55cad79d8575dcee2",part:"advice-container",class:"advice-container"},t("div",{key:"9b46c7d36ddc76ef882a01c80177ea9fb04cc3da",part:"advice-title",class:"advice-title",ref:e=>this.recommendationRef=e},c[l.language].recommendations),this.currentOutdoorSite.advice&&t("div",{key:"4f3c4e7947d034f4a758d9714cf551eb5431231c",part:"current-advice-container",class:"current-advice-container"},t("span",{key:"441c9000ca7bbab6606ef5f4d0319486f44b9f45",part:"icon",class:"icon",innerHTML:Et}),t("div",{key:"bbdea7364590f05b16c7fb95abe972b8f92a8fea",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&t("div",{key:"51972451372af79ece5d1e5e7fe3cc7b3e127333"},t("div",{key:"fe0168703c13e5719459a61c255d22f88cff294f",part:"divider",class:"divider"}),t("div",{key:"c77adcce324389e385e9237317dbd41a82a9cf04",part:"accessibilities-container",class:"accessibilities-container"},t("div",{key:"f9d78bf17b4cc7daac918e9fc3686847eef938de",part:"accessibilites-title",class:"accessibilities-title"},c[l.language].accessibility),t("div",{key:"3f4d49081740f689565fd3fd26cd64726bf3203b",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),l.currentRelatedOutdoorSites&&l.currentRelatedOutdoorSites.length>0&&t("div",{key:"2c68c81db9151eb8b261adbba83e8a6fb65aa949"},t("div",{key:"0bf638a87443f8cf9edd810e75beb28dcebc384f",part:"divider",class:"divider"}),t("div",{key:"1aeb0ab94a93aba1865c4b5af7229a9e71cbfed1",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},t("div",{key:"b83d77d684d2c0e9f899236c3d4bfee811c721f2",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:e=>this.sitesRef=e},c[l.language].relatedOutdoorSites(l.currentRelatedOutdoorSites.length)),t("div",{key:"6cf38c64b38609677aeaa1cf098b3fd158dfc8fc",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:e=>this.swiperRelatedOutdoorSitesRef=e},t("div",{key:"9d2d32c05b78e7960b7c915663573f4af9a3b272",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentRelatedOutdoorSites.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:this.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))))),t("div",{key:"daecd40c9cc68e30b693fdb8e5f2248b0e4dd6ff",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.relatedOutdoorSitesSwiperScrollbar=e})))),l.currentRelatedOutdoorCourses&&l.currentRelatedOutdoorCourses.length>0&&t("div",{key:"b60d9bdc4c4c158e8e4e09f10803b7cbc44381a4"},t("div",{key:"9fc606fcc1c3800c3fc663834a98f52177b1739b",part:"divider",class:"divider"}),t("div",{key:"1ce55ea55de71fa0026530e43bbee978cc1f20dc",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},t("div",{key:"bbb75049e5e8654799123d4c643a24cc2a0170f5",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:e=>this.coursesRef=e},c[l.language].relatedOutdoorCourses(l.currentRelatedOutdoorCourses.length)),t("div",{key:"a3a0afa4b57c92eaef4bef26b47a44940886a3b5",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:e=>this.swiperRelatedOutdoorCoursesRef=e},t("div",{key:"cd24d06f67c7a87ecdaa7d1a86a121a91a0185de",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentRelatedOutdoorCourses.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:this.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))))),t("div",{key:"e98fdd8768fc33bcf6685f5a70cc7a58f8be6d88",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.relatedOutdoorCoursesSwiperScrollbar=e})))),l.currentInformationDesks&&l.currentInformationDesks.filter((e=>this.currentOutdoorSite.information_desks.includes(e.id))).length>0&&t("div",{key:"b1b8eb3bf0ae5ae3cf0d4fce133bdc79872166be"},t("div",{key:"2ebbe5080bcc09b78e8a01f11a09a99b8ba1e206",part:"divider",class:"divider"}),t("div",{key:"a4f3ee9ad205a45c485f1e3461f36087810e6497",part:"information-desks-container",class:"information-desks-container"},t("div",{key:"5c8ae57d5a36edf3e4914e244c08c495c73cdf83",part:"information-desks-title",class:"information-desks-title",ref:e=>this.informationPlacesRef=e},c[l.language].informationPlaces),t("div",{key:"53a0f8fb242c38188fb177461d1515f6e3fdf132",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:e=>this.swiperInformationDesksRef=e},t("div",{key:"b8a5d6f9f9cef3dc8ed489c4f7ff1cb678567bf3",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentInformationDesks.filter((e=>this.currentOutdoorSite.information_desks.includes(e.id))).map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e}))))),t("div",{key:"602bc05dd08a1c089683583425c329b1e63e59a6",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.informationDesksContentsSwiperScrollbar=e})))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&t("div",{key:"7a83f2b9d0e953ec59d55945bcf5a74fcb9cc860"},t("div",{key:"db0eaa6c81a4bef2fa760a4a562395f2c49b6d82",part:"divider",class:"divider"}),t("div",{key:"f1424ba7530be7eb04a3e544c5c78364b319241f",part:"touristic-content-container",class:"touristic-content-container"},t("div",{key:"45ba9b07f940d7e8249a247ee1fb70069374e69a",part:"touristic-content-title",class:"touristic-content-title",ref:e=>this.touristicContentsRef=e},c[l.language].touristicContents(l.trekTouristicContents.length)),t("div",{key:"c33df8251b6e9a52830ef4b2a9b89a0a102b3403",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:e=>this.swiperTouristicContentsRef=e},t("div",{key:"1f588823ecb53b3aae273697ef01991e1b244580",part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),t("div",{key:"47504c36326a0f3c3bde27f198f6932a34196470",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicContentsSwiperScrollbar=e})))),l.trekTouristicEvents&&l.trekTouristicEvents.length>0&&t("div",{key:"01c817c5f352057d9aa82790d4215925f8abf839"},t("div",{key:"2e5ef9b22c52fdea96be175870482508dfb725cc",part:"divider",class:"divider"}),t("div",{key:"787f611ba2bc0a551064ae7afbb412fcc9a00f22",part:"touristic-event-container",class:"touristic-event-container"},t("div",{key:"c961ae86983a337eafb18c66835a9851de92e0f7",part:"touristic-event-title",class:"touristic-event-title",ref:e=>this.touristicEventsRef=e},c[l.language].touristicEvents(l.trekTouristicEvents.length)),t("div",{key:"f7b39eb6875db9cfae2aaf976754d9d682488d24",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:e=>this.swiperTouristicEventsRef=e},t("div",{key:"d4335bec93612df54e34bec59e63a212afb2e5ec",part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),t("div",{key:"ce5e3dc2144c250293221df69bf8a400cc46e8c7",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicEventsSwiperScrollbar=e})))),this.weather&&o&&!this.offline&&t("div",{key:"915a2b687bd70448b3b94a1e2fb8170637784084"},t("div",{key:"d7f133cd81a058f942e399dca1f40d47c2f3f5ad",part:"divider",class:"divider"}),t("div",{key:"34b9f5dc3bcf4d99984216ac84a41b9525ac5831",part:"weather-container",class:"weather-container"},t("iframe",{key:"676a68892e90959bd828e71558a7e49fec8be560",height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${o.id}0#${this.colorPrimaryApp}`}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&t("div",{key:"0636dfca1e7cd88d7d69b2da1b51706472e7cd02"},t("div",{key:"a9e03f90f69c271e6723d0fa69c90ecd9c292387",part:"divider",class:"divider"}),t("div",{key:"d532e6b59047cf84c01b5b33012c16ee62efa61a",part:"weblinks-container",class:"weblinks-container"},t("div",{key:"30182823c73239c6bdde32574753c8f0d4aa4e1c",part:"weblinks-title",class:"weblinks-title"},c[l.language].learnMore),this.currentOutdoorSite.web_links.map((e=>t("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&t("img",{src:e.category.pictogram,alt:e.category.label}),e.name))))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&t("div",{key:"0b90d8acb46feb8003fee366a074a977332661bc"},t("div",{key:"cc50d5bf38b44d8e9be76ad35bddce897707b9f1",part:"divider",class:"divider"}),t("div",{key:"49b1900a4c9975bc8eebd88ae2f556bdf4944453",part:"source-container",class:"source-container"},t("div",{key:"8576c4ac3e105683f47da12bea368c2a13382def",part:"source-title",class:"source-title"},c[l.language].sources),this.sources.map((e=>t("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&t("img",{src:e.pictogram,alt:""}),t("div",null,t("div",{part:"source-name",class:"source-name",innerHTML:e.name}),t("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website}))))))),this.grwApp&&t("div",{key:"ae516726dd8fd7c36cc9b7ac555be96e0820af52",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&t(n,{key:"8a8835c7474fe8b7b64e2cc42a95e4321a03abbc"},this.showTouristicContentDetailsModal&&t("grw-touristic-content-provider",{key:"fbdcaf345222076f5d06f701808045249a55f422",api:l.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&t("grw-touristic-event-provider",{key:"a90ad19a21a1613d8d0a75b8db44ee5fa757c60c",api:l.api,"touristic-event-id":this.modalDetailsId})))}};ti.style=Kt;const ii=class{constructor(t){e(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;this.handleOutdoorSite()}async handleOutdoorSite(){const e=await Y("outdoorSites",this.outdoorSiteId);if(e&&e.offline){this.handleOfflineOutdoorSite(e)}else{this.handleOnlineOutdoorSite()}}async handleOfflineOutdoorSite(e){l.cities=await D("cities");l.sources=await D("sources");l.districts=await D("districts");l.themes=await D("themes");l.outdoorSiteTypes=await D("outdoorSiteTypes");l.outdoorPractices=await D("outdoorPractices");l.outdoorRatings=await D("outdoorRatings");l.outdoorRatingsScale=await D("outdoorRatingsScale");l.touristicContentCategories=await D("touristicContentCategories");l.touristicEventTypes=await D("touristicEventTypes");l.poiTypes=await D("poiTypes");l.outdoorCourseTypes=await D("outdoorCourseTypes");const t=await D("informationDesks");const i=t.filter((t=>e.information_desks.some((e=>e===t.id))));l.currentInformationDesks=i;const r=await D("pois",["url"]);const o=r.filter((t=>e.pois.some((e=>e===t.id))));l.currentPois=o;const a=await D("touristicContents",["url"]);const s=a.filter((t=>e.touristicContents.some((e=>e===t.id))));l.trekTouristicContents=s;const n=await D("touristicEvents",["url"]);const c=n.filter((t=>e.touristicEvents.some((e=>e===t.id))));l.trekTouristicEvents=c;const d=await D("outdoorSites",["url"]);const p=d.filter((t=>e.children.some((e=>e===t.id))));l.currentRelatedOutdoorSites=p;const h=await D("outdoorCourses",["url"]);const f=h.filter((t=>e.courses.some((e=>e===t.id))));l.currentRelatedOutdoorCourses=f;await F(e,P,["url"]);l.currentOutdoorSite=e}handleOnlineOutdoorSite(){const e=[];e.push(!l.cities?q(l.api,l.language,this.init):new Response("null"));e.push(!l.sources?U(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?V(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorSiteTypes?Qt(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorPractices?Ut(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorRatings?fetch(`${l.api}outdoor_rating/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));e.push(!l.outdoorRatingsScale?fetch(`${l.api}outdoor_ratingscale/?language=${l.language}&fields=id,name`,this.init):new Response("null"));e.push(X(l.api,l.language,this.init));e.push(ze(l.api,l.language,this.outdoorSiteId,this.init));e.push(ye(l.api,l.language,null,this.init));e.push(Ce(l.api,l.language,this.outdoorSiteId,this.init));e.push(Ae(l.api,l.language,null,this.init));e.push(Xt(l.api,l.language,this.outdoorSiteId,this.init));e.push(fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init));e.push(!l.outdoorCourseTypes?Se(l.api,l.language,this.init):new Response("null"));e.push(Vt(l.api,l.language,this.outdoorSiteId,this.init));try{Promise.all([...e]).then((e=>Promise.all(e.map((e=>e.json()))))).then((async([e,t,i,r,o,a,s,n,c,d,p,h,f,u,m,b,g])=>{l.networkError=false;if(g&&g.children.length>0){const e=[];e.push(...g.children);const t=[];e.forEach((e=>{t.push(Vt(l.api,l.language,e,this.init))}));l.currentRelatedOutdoorSites=await Promise.all([...t]).then((e=>Promise.all(e.map((e=>e.json())))))}if(g&&g.courses.length>0){const e=[];e.push(...g.courses);const t=[];e.forEach((e=>{t.push(Ie(l.api,l.language,e,this.init))}));l.currentRelatedOutdoorCourses=await Promise.all([...t]).then((e=>Promise.all(e.map((e=>e.json())))))}if(e){l.cities=e.results}if(t){l.sources=t.results}if(i){l.districts=i.results}if(r){l.themes=r.results}if(o){l.outdoorSiteTypes=o.results}if(a){l.outdoorPractices=a.results}if(s){l.outdoorRatings=s.results}if(n){l.outdoorRatingsScale=n.results}if(c){l.currentInformationDesks=c.results}if(p){l.touristicContentCategories=p.results}if(d){l.trekTouristicContents=d.results}if(h){l.trekTouristicEvents=h.results}if(f){l.touristicEventTypes=f.results}if(u){l.currentPois=u.results}if(m){l.poiTypes=m.results}if(b){l.outdoorCourseTypes=b.results}l.currentOutdoorSite=g}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return t(i,{key:"1954678105c406c799f0b67e23c6827b3010c9b8"})}};const ri=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-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)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";const oi=ri;const ai=class{constructor(t){e(this,t);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentOutdoorSites){this.outdoorSitesToDisplay=[...l.currentOutdoorSites.slice(0,this.step)]}d("currentOutdoorSites",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentOutdoorSites){this.outdoorSitesToDisplay=[...l.currentOutdoorSites.slice(0,this.step)]}}));d("outdoorSitesWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.outdoorSitesWithinBounds){this.outdoorSitesToDisplay=[...l.outdoorSitesWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<l.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=l.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=l.outdoorSitesWithinBounds.length?l.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return t(i,{key:"d2a7e0e67cacc332389c651147c46ccb1f8596bf",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.outdoorSitesWithinBounds&&t("div",{key:"57b94270379c56d42d77619e2c269a1e6b5bb6dc",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},`${l.outdoorSitesWithinBounds.length} ${l.outdoorSitesWithinBounds.length>1?c[l.language].outdoorSites:c[l.language].outdoorSite}`),t("div",{key:"49e21b82ba74bb563afdd57b0eab48a3cff16c14",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((e=>t("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:`outdoorSite-${e.id}`,"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})))),t("div",{key:"8d6b6380cf7302d1d50003dcb102275f78ff42b2",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return s(this)}};ai.style=oi;const si=class{constructor(t){e(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;this.handleOutdoorSites()}async handleOutdoorSites(){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}}async handleOfflineOutdoorSites(){let e=await H("outdoorSites");e.filter((e=>e.parents&&e.parents.length===0));if(e&&e.length>0){l.cities=await D("cities");l.districts=await D("districts");l.themes=await D("themes");l.outdoorSiteTypes=await D("outdoorSiteTypes");l.outdoorPractices=await D("outdoorPractices");e=await D("outdoorSites");l.outdoorSites=e;l.currentOutdoorSites=e}else{l.networkError=true}}handleOnlineOutdoorSites(){const e=[];e.push(!l.cities?q(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?V(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorSiteTypes?Qt(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorPractices?Ut(l.api,l.language,this.init):new Response("null"));e.push(qt(l.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all([...e]).then((e=>Promise.all(e.map((e=>e.json()))))).then((async([e,t,i,r,o,a])=>{l.networkError=false;if(e){l.cities=e.results}if(t){l.districts=t.results}if(i){l.themes=i.results}if(r){l.outdoorSiteTypes=r.results}if(o){l.outdoorPractices=o.results}const s=[];for(let e=0;e<a.results.length;e++){const t=await Wt(a.results[e].id);s.push(Object.assign(Object.assign({},a.results[e]),{offline:t}))}l.outdoorSites=s;l.currentOutdoorSites=s})).catch((async()=>{await this.handleOfflineOutdoorSites()}))}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return t(i,{key:"1387894c1915975763833720d75b3afb555fc289"})}};const ni=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>`;const ci=":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);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}";const li=ci;const di=class{constructor(t){e(this,t);this.fontFamily="Roboto"}onSearchChange(e){l.searchValue=e.target.value;if(l.mode==="treks"){l.currentTreks=h()}else if(l.mode==="touristicContents"){l.currentTouristicContents=b()}else if(l.mode==="touristicEvents"){l.currentTouristicEvents=g()}else if(l.mode==="outdoor"){l.currentOutdoorSites=v()}}render(){return t(i,{key:"e3d98b43edc220fd948553e50aed73ad3475aa9b",style:{"--font-family":this.fontFamily}},t("span",{key:"68ade2155e15c25161484dd9746a9ccb77ca4877",part:"icon",class:"icon",innerHTML:ni}),t("input",{key:"d4443be1fc756debe93a61bb8491be4fd41a4931",part:"search-input",class:"search-input",onInput:e=>this.onSearchChange(e),type:"search",placeholder:"Rechercher",value:l.searchValue}))}};di.style=li;const pi=".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}";const hi=pi;const fi=class{constructor(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}changeMode(e){l.searchValue="";if(e==="treks"){p.forEach((e=>{l[e.property]&&l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.treks){l.currentTreks=[...h()]}}else if(e==="touristicContents"){f.forEach((e=>{l[e.property]&&l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicContents){l.currentTouristicContents=[...b()]}}else if(e==="touristicEvents"){u.forEach((e=>{l[e.property]&&l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicEvents){l.currentTouristicEvents=[...g()]}}else if(e==="outdoor"){m.forEach((e=>{l[e.property]&&l[e.property].forEach((e=>e.selected=false))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.outdoorSites){l.currentOutdoorSites=[...v()]}}l.mode=e}render(){return t(i,{key:"a2b16c24fbedec687122ed70258ff6543ee2f110",style:{"--font-family":this.fontFamily}},t("div",{key:"d24b1cfa8cf64efda81820f816db2ce13104f872",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&t("label",{key:"0bba2d05fbb3867cbd816eb2dbc16dada86e77f9",part:"segment",class:`segment${l.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},c[l.language].home.segment.treks),this.outdoor&&t("label",{key:"e2cb2ba38033b8100ea916aab9f4cb012f3ac039",part:"segment",class:`segment${l.mode==="outdoor"?" selected-segment":""}`,onClick:()=>this.changeMode("outdoor")},c[l.language].home.segment.outdoorSites),this.touristicContents&&t("label",{key:"65364c1a08a3e6faee2f53647c3eca17b40c0e99",part:"segment",class:`segment${l.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},c[l.language].home.segment.touristicContents),this.touristicEvents&&t("label",{key:"03afc47e263cb8a610f2694efdb8ab5b2f647401",part:"segment",class:`segment${l.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},c[l.language].home.segment.touristicEvents)))}};fi.style=hi;const ui=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>`;const mi=":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}";const bi=mi;const gi=class{constructor(t){e(this,t)}handleSelect(e){l.treks=null;l.currentTreks=null;l.currentTrek=null;l.language=e.target.value}render(){return t(i,{key:"c0d285e09423559c5824e64b7cacbcaa26c5c88b"},t("span",{key:"ef14fdec0f1f7df2d460def242d35459cc86d766",part:"select-language-icon",class:"icon",innerHTML:ui}),t("select",{key:"96ae6cbaef672db97abfb2ce2bb92d8fcd526ad7",part:"select-language-select",onInput:e=>this.handleSelect(e),name:"languages",id:"language-select"},l.languages.map((e=>t("option",{part:"select-language-option",selected:e===l.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())))))}};gi.style=bi;const vi=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg>`;const wi='.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}';const ki=wi;const yi=class{constructor(t){e(this,t);this.fontFamily="Roboto"}render(){return t(i,{key:"be1067788aa08f160971a14116bb59e386b71189",style:{"--font-family":this.fontFamily}},t("label",{key:"84d92e6aa849b548b6c1b08d7ccb260de427cd83",class:"md3 switch"},t("input",{key:"546d7c472a271c137f239f3de8005521a88957ac",checked:this.checked,onChange:()=>this.action(),type:"checkbox",id:"darkmode",name:"darkmode"}),t("span",{key:"5ef7285ee06a61b5ee3a56ca802dad1b6a31e6e7",class:"slider"},t("span",{key:"4e2c4cafcdf68e30abe7395279fcd3eb446473c2",part:"icon",class:"icon",innerHTML:vi}))))}};yi.style=ki;const xi=":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 16px 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}";const Ai=xi;const zi=class{constructor(t){e(this,t);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}d("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicContentsToDisplay=[...l.currentTouristicContents.slice(0,this.step)]}}));d("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...l.touristicContentsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<l.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=l.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=l.touristicContentsWithinBounds.length?l.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return t(i,{key:"c74f4a338bebb69c0d593cc09569cc297f21464b",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicContentsWithinBounds&&t("div",{key:"20c659f69fd90e4dd491229870e697286af5ebd4",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},`${l.touristicContentsWithinBounds.length} ${l.touristicContentsWithinBounds.length>1?c[l.language].home.touristicContents:c[l.language].home.touristicContent}`),t("div",{key:"440262bfd6e6455d95362c4f65c1ba640a5b610a",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((e=>t("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-${e.id}`,touristicContent:e,"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})))),t("div",{key:"fdb0824279115510a1ea608666905f3abf3594cd",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return s(this)}};zi.style=Ai;const Ci=class{constructor(t){e(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let e=Le(l.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);const t=[];t.push(!l.cities?q(l.api,l.language,this.init):new Response("null"));t.push(!l.districts?V(l.api,l.language,this.init):new Response("null"));t.push(!l.touristicContentCategories?ye(l.api,l.language,this.portals,this.init):new Response("null"));try{Promise.all([...t,e]).then((e=>Promise.all(e.map((e=>e.json()))))).then((([e,t,i,r])=>{l.networkError=false;if(e){l.cities=e.results}if(t){l.districts=t.results}if(i){l.touristicContentCategories=i.results}l.touristicContents=r.results;l.currentTouristicContents=r.results}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return t(i,{key:"656daeff06e11d0c6dbfac8690ce86698fbd516d"})}};const Li=":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 16px 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}";const Mi=Li;const Fi=class{constructor(t){e(this,t);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTouristicEvents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}d("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTouristicContents){this.touristicEventsToDisplay=[...l.currentTouristicEvents.slice(0,this.step)]}}));d("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...l.touristicEventsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<l.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=l.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=l.touristicEventsWithinBounds.length?l.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return t(i,{key:"48345abc8fa8113a5bdead1a469412bf0f61febc",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicEventsWithinBounds&&t("div",{key:"d4384e6ebc553284fa042540e0ef07d3d03414a7",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},`${l.touristicEventsWithinBounds.length} ${l.touristicEventsWithinBounds.length>1?c[l.language].home.touristicEvents:c[l.language].home.touristicEvent}`),t("div",{key:"831bd5192feb97ad30f5d4a2a29ce3fb453ff559",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((e=>t("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-${e.id}`,touristicEvent:e,"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})))),t("div",{key:"71f5f63827879dd00fe71da37d568ed7c93b4a41",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return s(this)}};Fi.style=Mi;const Pi=class{constructor(t){e(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let e=Me(l.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);const t=[];t.push(!l.cities?q(l.api,l.language,this.init):new Response("null"));t.push(!l.districts?V(l.api,l.language,this.init):new Response("null"));t.push(!l.touristicEventTypes?Ae(l.api,l.language,this.portals,this.init):new Response("null"));try{Promise.all([...t,e]).then((e=>Promise.all(e.map((e=>e.json()))))).then((([e,t,i,r])=>{l.networkError=false;if(e){l.cities=e.results}if(t){l.districts=t.results}if(i){l.touristicEventTypes=i.results}l.touristicEvents=r.results;l.currentTouristicEvents=r.results}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){l.networkError=true}}}disconnectedCallback(){this.controller.abort();l.networkError=false}render(){return t(i,{key:"87f69d57d78c122968fc6953fd1ed1b9b30b204c"})}};const Ti=`<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>`;const Oi='@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}: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{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;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 .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.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{display:-ms-flexbox;display:flex;width:24px;height:24px;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{display:-ms-flexbox;display:flex;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 .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.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{color:var(--reference-point-color);background:var(--reference-point-background-color);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;border-radius:12px;font-weight:bold;font-size:0.8em;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 .icon img,.gear-container .icon img{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:100px;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{display:-ms-flexbox;display:flex;-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;font-size:12px;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{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;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;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-height:120px}.loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;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)}}';const _i=Oi;const Bi=1;const ji={visible:true,indicator:false,ref:"presentationOptionRef"};const Ei={visible:false,indicator:false,ref:"stepsOptionRef"};const Si={visible:false,indicator:false,ref:"descriptionOptionRef"};const Ni={visible:false,indicator:false,ref:"poisOptionRef"};const Ii={visible:false,indicator:false,ref:"recommendationsOptionRef"};const Yi={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Di={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const Hi={visible:false,indicator:false,ref:"accessibilityOptionRef"};const $i={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Gi={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Ri={presentation:ji,steps:Ei,description:Si,pois:Ni,recommendations:Ii,sensitiveArea:Yi,informationPlaces:Di,accessibility:Hi,touristicContents:$i,touristicEvents:Gi};const Zi=class{constructor(t){e(this,t);this.descriptionIsInViewport=r(this,"descriptionIsInViewport",7);this.parkingIsInViewport=r(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=r(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=r(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=r(this,"poiIsInViewport",7);this.stepsIsInViewport=r(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=r(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=r(this,"touristicEventsIsInViewport",7);this.parentTrekPress=r(this,"parentTrekPress",7);this.downloadConfirm=r(this,"downloadConfirm",7);this.downloadedSuccessConfirm=r(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=r(this,"downloadedErrorConfirm",7);this.deleteConfirm=r(this,"deleteConfirm",7);this.deleteSuccessConfirm=r(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=r(this,"deleteErrorConfirm",7);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}onCloseDetailsModal(){document.body.style.overflow=`visible`;l.currentTouristicContent=null;l.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()}onTouristiceEventCardPress(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("TouristicContent");const t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);t.append(i);document.body.append(t)}}onTouristicContentCardPress(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("touristicContent");const t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());const i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);t.append(i);document.body.append(t)}}onOpenDetailsModal(e){document.body.style.overflow=`hidden`;if(e==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}}componentDidUpdate(){this.handleObservers();this.handleSwipers()}handleSwipers(){if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new he(this.swiperImagesRef,{modules:[fe,ue,me,be,ge],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen&&!this.offline?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new he(this.swiperStepRef,{modules:[be,ge,jt],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new he(this.swiperPoisRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new he(this.swiperInformationDesksRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new he(this.swiperTouristicContentsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new he(this.swiperTouristicEventsRef,{modules:[be,ge,jt],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}}handleObservers(){if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.stepsIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.descriptionIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.parkingIsInViewport.emit(t)}),{threshold:Bi});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.informationPlacesIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{accessibility:Object.assign(Object.assign({},this.defaultOptions.accessibility),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.poiIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicContentsIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((e=>{const t=e[0].isIntersecting;this.touristicEventsIsInViewport.emit(t);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:t})});this.handleIndicatorSelectedTrekOption()}),{threshold:Bi});this.touristicEventObserver.observe(this.touristicEventsRef)}}componentDidLoad(){this.handleObservers();this.handleSwipers()}async connectedCallback(){if(l.currentTrek){this.offline=l.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((e=>e.id===l.currentTrek.difficulty));this.route=l.routes.find((e=>e.id===l.currentTrek.route));this.practice=l.practices.find((e=>e.id===l.currentTrek.practice));this.themes=l.themes.filter((e=>l.currentTrek.themes.includes(e.id)));this.labels=l.labels.filter((e=>l.currentTrek.labels.includes(e.id)));this.sources=l.sources.filter((e=>l.currentTrek.source.includes(e.id)));this.accessibilities=l.accessibilities.filter((e=>l.currentTrek.accessibilities.includes(e.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((e=>l.currentTrek.accessibility_level===e.id))}if(l.cities){this.cities=l.currentTrek.cities.map((e=>{var t;return(t=l.cities.find((t=>t.id===e)))===null||t===void 0?void 0:t.name}))}this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.currentTrek}d("currentTrek",(async()=>{if(l.currentTrek){this.offline=l.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((e=>e.id===l.currentTrek.difficulty));this.route=l.routes.find((e=>e.id===l.currentTrek.route));this.practice=l.practices.find((e=>e.id===l.currentTrek.practice));this.themes=l.themes.filter((e=>l.currentTrek.themes.includes(e.id)));this.labels=l.labels.filter((e=>l.currentTrek.labels.includes(e.id)));this.sources=l.sources.filter((e=>l.currentTrek.source.includes(e.id)));this.accessibilities=l.accessibilities.filter((e=>l.currentTrek.accessibilities.includes(e.id)));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((e=>l.currentTrek.accessibility_level===e.id))}if(l.cities){this.cities=l.currentTrek.cities.map((e=>{var t;return(t=l.cities.find((t=>t.id===e)))===null||t===void 0?void 0:t.name}))}this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.currentTrek}}))}disconnectedCallback(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()}handleOptions(){return Object.assign(Object.assign({},Ri),{presentation:Object.assign({},ji),steps:Object.assign(Object.assign({},Ei),{visible:Boolean(l.parentTrek)}),description:Object.assign(Object.assign({},Si),{visible:Boolean(l.currentTrek.description)}),pois:Object.assign(Object.assign({},Ni),{visible:l.poisData>0}),recommendations:Object.assign(Object.assign({},Ii),{visible:Boolean(l.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Yi),{visible:Boolean(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Di),{visible:Boolean(l.currentInformationDesks&&l.currentInformationDesks.filter((e=>l.currentTrek.information_desks.includes(e.id))).length>0)}),accessibility:Object.assign(Object.assign({},Hi),{visible:Boolean(l.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||l.currentTrek.accessibility_level||l.currentTrek.accessibility_slope||l.currentTrek.accessibility_width||l.currentTrek.accessibility_signage||l.currentTrek.accessibility_covering||l.currentTrek.accessibility_exposure||l.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},$i),{visible:l.touristicContentsData>0}),touristicEvents:Object.assign(Object.assign({},Gi),{visible:l.touristicEventsData>0})})}handleFullscreen(e=false){if(!e){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}}handleIndicatorSelectedTrekOption(){let e;let t=0;let i=0;let r=0;const o=Object.values(this.options);let a=0;while(!e&&a<o.length){if(o[a].indicator){e=o[a]}else{if(o[a].visible){t+=1;i+=this[o[a].ref].clientWidth}}a++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${i+16*t-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:e.ref}}}handleScrollTo(e){const t=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(t){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})}else{window.scrollTo({top:e.offsetTop-64})}}getCurrentStepIndex(){return l.currentTrekSteps?l.currentTrekSteps.findIndex((e=>e.id===this.currentTrek.id)):0}async downloadGlobalTiles(e,t){const i=I.exports.tileLayerOffline(e,{attribution:t});const r=[];if(l.treks){for(const e of l.treks){r.push(e.departure_geom)}}const o=N.latLngBounds(r.map((e=>[e[1],e[0]])));await R(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)}async downloadTrekTiles(e,t){const i=I.exports.tileLayerOffline(e,{attribution:t});const r=N.latLngBounds(this.currentTrek.geometry.coordinates.map((e=>[e[1],e[0]])));await R(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)}async downloadTrek(){try{const e=new AbortController;const t=e.signal;const i={cache:"default",signal:t};const r=(await H("treks")).filter((e=>e.offline===true));let o;if(!l.treks){const e=await W(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districts,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,l.routesFromProviders,l.practicesFromProviders,l.labelsFromProviders,i);l.treks=(await e.json()).results}o=l.treks;o=o.filter((e=>r.findIndex((t=>t.id===e.id))===-1));if(!l.districts){const e=await V(l.api,l.language,i);l.districts=(await e.json()).results}await $("treks",o);await $("districts",l.districts);await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution);await G(l.difficulties,P);await G(l.routes,P);await G(l.practices,P);await G(l.themes,P);await G(l.labels,P);await G(l.districts,P);await G(l.sources,P);await G(l.accessibilities,P);await G(l.currentInformationDesks,P);await G(l.networks,P);await G(this.currentTrek,P,true,["url"]);await $("difficulties",l.difficulties);await $("routes",l.routes);await $("practices",l.practices.map((e=>Object.assign(Object.assign({},e),{selected:false}))));await $("themes",l.themes);await $("accessibilities",l.accessibilities);await $("ratings",l.ratings);await $("ratingsScale",l.ratingsScale);await $("sensitiveAreas",l.currentSensitiveAreas);await $("labels",l.labels);await $("sources",l.sources);await $("accessibilitiesLevel",l.accessibilitiesLevel);await $("networks",l.networks);await $("signages",l.currentSignages);await $("informationDesks",l.currentInformationDesks);await G(l.currentInformationDesks,P,true);const a=(await q(l.api,l.language,i).then((e=>e.json()))).results;await $("cities",a);let s=[];let n=[];let c=[];if(l.poisData>0){s=(await J(l.api,l.language,this.currentTrek.id,i).then((e=>e.json()))).results;const e=(await fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,i).then((e=>e.json()))).results;await $("pois",s);await $("poiTypes",e);await G(s,P,true,["url"]);await G(e,P)}if(l.touristicContentsData>0){n=(await Fe(l.api,l.language,this.currentTrek.id,i).then((e=>e.json()))).results;const e=(await ye(l.api,l.language,null,i).then((e=>e.json()))).results;n.forEach((e=>{e.offline=true}));await $("touristicContents",n);await $("touristicContentCategories",e);await G(n,P,true,["url"]);await G(e,P)}if(l.touristicEventsData>0){c=(await Pe(l.api,l.language,this.currentTrek.id,i).then((e=>e.json()))).results;const e=(await Ae(l.api,l.language,null,i).then((e=>e.json()))).results;c.forEach((e=>{e.offline=true}));await $("touristicEvents",c);await $("touristicEventTypes",e);await G(e,P);await G(c,P,true,["url"])}if(this.currentTrek.children&&this.currentTrek.children.length>0){const e=[];e.push(...this.currentTrek.children);const t=[];const r=[];const o=[];const a=[];const s=[];e.forEach((e=>{t.push(K(l.api,l.language,e,i));r.push(Fe(l.api,l.language,e,i));o.push(Pe(l.api,l.language,e,i));a.push(J(l.api,l.language,e,i));s.push(ee(l.api,l.language,e,i))}));const n=await Promise.all([...t]).then((e=>Promise.all(e.map((e=>e.json())))));const c=await Promise.all([...r]).then((e=>Promise.all(e.map((e=>e.json())))));const d=await Promise.all([...o]).then((e=>Promise.all(e.map((e=>e.json())))));const p=await Promise.all([...a]).then((e=>Promise.all(e.map((e=>e.json())))));const h=await Promise.all([...s]).then((e=>Promise.all(e.map((e=>e.json())))));for(let e=0;e<n.length;e++){n[e].offline=true;n[e].pois=p[e].results.map((e=>e.id));n[e].touristicContents=c[e].results.map((e=>e.id));n[e].touristicEvents=d[e].results.map((e=>e.id));n[e].sensitiveAreas=h[e].results.map((e=>e.id));await $("treks",[n[e]]);await G(n[e],P,true,["url"])}}await $("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:s.map((e=>e.id)),signages:l.currentSignages.map((e=>e.id)),touristicContents:n.map((e=>e.id)),touristicEvents:c.map((e=>e.id)),sensitiveAreas:l.currentSensitiveAreas?l.currentSensitiveAreas.map((e=>e.id)):[]})]);l.treks.find((e=>e.id===this.currentTrek.id)).offline=true;if(!l.currentTreks){l.currentTreks=l.treks}l.currentTreks.find((e=>e.id===this.currentTrek.id)).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id)}catch(e){this.downloadedErrorConfirm.emit(this.currentTrek.id)}}async deleteTrek(){try{const e=[];const t=await Y("treks",this.currentTrek.id);this.deleteOfflineTrekProperties(t);e.push(t);if(this.currentTrek.children.length>0){for(let t=0;t<this.currentTrek.children.length;t++){const i=await Y("treks",this.currentTrek.children[t]);this.deleteOfflineTrekProperties(i);e.push(i)}}await $("treks",e);if(l.treks){delete l.treks.find((e=>e.id===this.currentTrek.id)).offline;if(!l.currentTreks){l.currentTreks=l.treks}delete l.currentTreks.find((e=>e.id===this.currentTrek.id)).offline}if(l.parentTrek){delete l.parentTrek.offline}if(l.currentTrekSteps){l.currentTrekSteps.forEach((e=>{delete e.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id)}catch(e){this.deleteErrorConfirm.emit(this.currentTrek.id)}}displayDownloadModal(){this.downloadConfirm.emit()}displayDeleteModal(){this.deleteConfirm.emit()}onDownloadPress(){this.downloadTrek()}onDeletePress(){this.deleteTrek()}deleteOfflineTrekProperties(e){delete e.descent;delete e.geometry;delete e.gpx;delete e.kml;delete e.pdf;delete e.parking_location;delete e.arrival;delete e.ambiance;delete e.access;delete e.public_transport;delete e.advice;delete e.advised_parking;delete e.gear;delete e.source;delete e.points_reference;delete e.disabled_infrastructure;delete e.accessibility_level;delete e.accessibility_slope;delete e.accessibility_width;delete e.accessibility_signage;delete e.accessibility_covering;delete e.accessibility_exposure;delete e.accessibility_advice;delete e.ratings;delete e.ratings_description;delete e.children;delete e.networks;delete e.web_links;delete e.update_datetime;delete e.information_desks;delete e.pois;delete e.touristicContents;delete e.touristicEvents;delete e.sensitiveAreas;delete e.offline}getDepartureCityCode(){var e;const t=l.cities.find((e=>e.id===l.currentTrek.departure_city));return(e=t.code)!==null&&e!==void 0?e:t.id}render(){var e,r,o,s,d;const p=a(`${""}assets/default-image.svg`);const h=this.currentTrek&&this.currentTrek.attachments.filter((e=>e.type==="image")).length>1||this.offline;return t(i,{key:"e0b3aae16efb55e60addbfee84c08248d7074189",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"164px":"124px"}},this.currentTrek&&t("div",{key:"0c5f84f9bde68b7c6c0d54b46a9dcd59512cce86",part:"trek-options",class:"trek-options"},t("a",{key:"418235d47dd2da21a27ea8c7d4c5afcb46f965d7",part:"trek-option",class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`,ref:e=>this.presentationOptionRef=e,onClick:()=>this.handleScrollTo(this.presentationRef)},c[l.language].options.presentation),this.options.steps.visible&&t("a",{key:"438ea590321c162a587cea727850e072afb536bf",part:"trek-option",class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`,ref:e=>this.stepsOptionRef=e,onClick:()=>this.handleScrollTo(this.stepsRef)},c[l.language].options.steps),this.options.description.visible&&t("a",{key:"b24231594573cc20891f49252817116cadecff28",part:"trek-option",class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`,ref:e=>this.descriptionOptionRef=e,onClick:()=>this.handleScrollTo(this.descriptionRef)},c[l.language].options.description),this.options.pois.visible&&t("a",{key:"63709bca54c89ac2428c716de01cf4d24a33c949",part:"trek-option",class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`,ref:e=>this.poisOptionRef=e,onClick:()=>this.handleScrollTo(this.poiRef)},c[l.language].options.pois),this.options.recommendations.visible&&t("a",{key:"e2c030c160fe816af8ce02e6457470c03490aaa8",part:"trek-option",class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`,ref:e=>this.recommendationsOptionRef=e,onClick:()=>this.handleScrollTo(this.recommendationRef)},c[l.language].options.recommendations),this.options.sensitiveArea.visible&&t("a",{key:"aea9f55ec972bf92c294154883c6f9deef35c824",part:"trek-option",class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`,ref:e=>this.sensitiveAreaOptionRef=e,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef)},c[l.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&t("a",{key:"cebfaa3b9dc99706a0e665ee39e51375d777b681",part:"trek-option",class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`,ref:e=>this.informationPlacesOptionRef=e,onClick:()=>this.handleScrollTo(this.informationPlacesRef)},c[l.language].options.informationPlaces),this.options.accessibility.visible&&t("a",{key:"b525ee25310edd106f54241a0d4b5e12dbdd8f66",part:"trek-option",class:`accessibility trek-option${this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""}`,ref:e=>this.accessibilityOptionRef=e,onClick:()=>this.handleScrollTo(this.accessibilityRef)},c[l.language].options.accessibility),this.options.touristicContents.visible&&t("a",{key:"ce8a0a4a0905d8e4a832a4d63cd97cc6db8231b5",part:"trek-option",class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`,ref:e=>this.touristicContentsOptionRef=e,onClick:()=>this.handleScrollTo(this.touristicContentsRef)},c[l.language].options.touristicContents),this.options.touristicEvents.visible&&t("a",{key:"db941578e0b4fb330a9b3f159820448d3b901908",part:"trek-option",class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`,ref:e=>this.touristicEventsOptionRef=e,onClick:()=>this.handleScrollTo(this.touristicEventsRef)},c[l.language].options.touristicEvents),this.presentationOptionRef&&t("span",{key:"dd5ca8d2c04043cb0606ed4b4c5de63b94c062fb",part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&t("div",{key:"c36850ecbe3ba76768f0d249572b78d8584c7cb8",part:"trek-detail-container",class:"trek-detail-container",ref:e=>this.trekDetailContainerRef=e},t("div",{key:"3ea42de9c72f253de64c8756a6007ae82e70de24",part:"trek-images",class:"trek-images-container",ref:e=>this.presentationRef=e},t("div",{key:"28450947f53f26bd26266efb2664b17be9ce0dc3",part:"swiper-images",class:"swiper swiper-images",ref:e=>this.swiperImagesRef=e},t("div",{key:"87edbf647ece41cedd436ae6183ba6f7bbaede8a",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((e=>e.type==="image")).length>0?this.currentTrek.attachments.filter((e=>e.type==="image")).map((e=>{const i=[e.legend,e.author].filter(Boolean).join(" - ");return t("div",{part:"swiper-slide",class:"swiper-slide"},this.displayFullscreen&&t("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:()=>this.handleFullscreen(true)},t("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:ve})),t("div",{part:"trek-image-legend",class:"trek-image-legend"},i),t("img",{part:"trek-img",class:"trek-img",src:this.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:()=>this.handleFullscreen(),onerror:e=>{e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=p},alt:e.legend}))})):t("img",{part:"trek-img",class:"trek-img default-trek-img",src:p,loading:"lazy",alt:""})),t("div",{key:"bc37f439756eee6241f26bc87f5fc03db24b88a2",style:{display:"block",visibility:h?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:e=>this.paginationElImagesRef=e}),t("div",{key:"d4e09f6744d0f0cc2bf07ceb47bb6f12f69f568d",style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:e=>this.prevElImagesRef=e}),t("div",{key:"db6373f1a3eeb3e0aa7d13729314e750772f2cec",style:{display:"flex",visibility:h?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:e=>this.nextElImagesRef=e}))),t("div",{key:"163ba42cee6f85f9fbd0bc5083b71711a78496f8",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&t("div",{key:"b3c63398d18e27300811ba2701eda0524a22d095",part:"themes-container",class:"themes-container"},this.themes.map((e=>t("div",{part:"theme",class:"theme"},e.label)))),t("div",{key:"c8440a545c35a79dffeaaf9c7cee83fe6b16c055",part:"sub-container",class:"sub-container"},t("div",{key:"7c4d9c52810c2169b62b0bff7ae0c8eaac00b769",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&t("div",{key:"d7fd44c3138c47b46f64fd3d5396860280d90d9c",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&t("img",{key:"a6062754f1a9c39ced2862f54b4a7526fd7753fa",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),t("span",{key:"527829ff1fc4de2364e0c08fa704a0c26a7de570",part:"label",class:"label"},this.difficulty.label)),t("div",{key:"128a8d39d7cda279e1fc0a9ae73da39402a33892",part:"icon-label",class:"icon-label duration"},t("span",{key:"7e267c94b651cb456de328da169ce490d17c93e3",part:"icon",class:"icon",innerHTML:Be}),t("span",{key:"2202fda5fa690d6698b2d021a3dc40d958129bcc",part:"label",class:"label"},z((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),t("div",{key:"219376ca102045e626fbb362e4da3dd30fb90143",part:"icon-label",class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&t("img",{key:"5c8f6fe4f888c5af87d4e500e670f1798888aa10",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),t("span",{key:"60f934529bd90922ff86cd2fbd1ad77683110695",part:"label",class:"label"},(o=this.route)===null||o===void 0?void 0:o.route)),t("div",{key:"e7d16877bbc38d2e42c88dea7137592ab94a78c6",part:"icon-label",class:"icon-label length"},t("span",{key:"dc6e2d066d93b55f834b6b45303274c56e3e227a",part:"icon",class:"icon",innerHTML:je}),t("span",{key:"c1a766167c4c91761d42394088cfcf7f4d34a23a",part:"label",class:"label"},C(this.currentTrek.length_2d))),this.currentTrek.ascent&&t("div",{key:"5ba91275cb93383d7dbabd4b5664ab397c4602fd",part:"icon-label",class:"icon-label ascent"},t("span",{key:"5a9c7a0e51f32d95cdd8b0bafc93d2158a9872e6",part:"icon",class:"icon",innerHTML:Ee}),t("span",{key:"5ed814fd297479084caa7412f99955443975a3d3",part:"label",class:"label"},M(this.currentTrek.ascent))),this.currentTrek.descent&&t("div",{key:"b8b5912df5445dd3f1e4d8f1131fafadc65ecc28",part:"icon-label",class:"icon-label descent"},t("span",{key:"8ba32556c7a3ae1f9503c7ba0657c1e2c7c7aeec",part:"icon",class:"icon",innerHTML:Ee}),t("span",{key:"5d224d6d909eb119e2b264289ef4e30568b2b5b4",part:"label",class:"label"},O(this.currentTrek.descent))),t("div",{key:"c7ee4ccbe4f8ee484027fe06a54b635a49aaa00c",part:"icon-label",class:"icon-label practice"},((s=this.practice)===null||s===void 0?void 0:s.pictogram)&&t("img",{key:"2420ecca0470cd3d060f2773a5e4fb8a1435fb2b",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),t("span",{key:"008a8462b3f03466e4a512fd93820c585f1fd7ed",part:"label",class:"label"},(d=this.practice)===null||d===void 0?void 0:d.name)),t("div",{key:"b9deef25cc34fba54aa63d795bf122f9acc46893",part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((e=>{const i=l.networks.find((t=>t.id===e));return t("div",{part:"network",class:"network"},t("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),t("span",{part:"label",class:"label"},i.label))}))),this.currentTrek.ratings.map((e=>t("div",{part:"row",class:"row"},`${l.ratingsScale.find((t=>t.id===l.ratings.find((t=>t.id===e)).scale)).name} : ${l.ratings.find((t=>t.id===e)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&t("div",{key:"e6496d416bed421faef6ca4869f017eecffb2194",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),t("div",{key:"af42035a01b6552bbd1b6149346600ab40eb8f5b",part:"divider",class:"divider"}),t("div",{key:"5432ba0b37a4a4bdd53d65bcb0024ca619c3ea20",part:"downloads-container",class:"downloads-container"},t("div",{key:"f97f5f333de0caa74413c17f5aba273caef8c595",part:"download-title",class:"download-title"},c[l.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&t("button",{key:"716ae83bc637f99136d9dca2ccb4e2d298a42ed1",part:"offline-button",class:"offline-button",onClick:()=>this.displayDownloadModal()},t("span",{key:"52d99d7275448e05a22e7238bfe054f17eb8fd67",part:"icon",class:"icon",innerHTML:Rt}),t("span",{key:"d43ac1443a14cf29a61691863122ace3f98725af",part:"label",class:"label"},c[l.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&t("button",{key:"2278092f122ab8806852250733d6302af0c445b3",part:"offline-button",class:"offline-button",onClick:()=>this.displayDeleteModal()},t("span",{key:"a3c7f3eaef678946699825023b1f21f099a042e4",part:"icon",class:"icon",innerHTML:Zt}),t("span",{key:"4c195d2dafce809eb77b2d5eee45303a25b8d71c",part:"label",class:"label"},c[l.language].offline.deleteOffline)),t("div",{key:"aac522cdf60b0a942cf17e41a04706f068bdd13d",part:"links-container",class:"links-container"},t("a",{key:"2605b7c410a3b701e711bb6b5ed7131d7b202375",part:"download-gpx-button",href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},t("span",{key:"f8a48a63ff79f9dad13789ab11a98f5ccf5e2f94",part:"icon",class:" icon",innerHTML:we}),t("span",{key:"f467d414d98ed5faf575c865a22e908d16f122d4",part:"label",class:"label"},"GPX")),t("a",{key:"d4e5d92843b4fc5ba51c4712a9d4a6243744cc79",part:"download-kml-button",href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},t("span",{key:"248350afc9f908b1403a7a6f154893a26b7ac044",part:"icon",class:"icon",innerHTML:we}),t("span",{key:"3e0bf93c6a815f2c426c6e35fee270d18204c439",part:"label",class:"label"},"KML")),t("a",{key:"2758cf559be4070581c9798ca4d1d40ffd1a05b6",part:"download-pdf-button",href:`${this.currentTrek.pdf}${l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""}`,target:"_blank",rel:"noopener noreferrer"},t("span",{key:"c5270dfd67a30bf1aac6faa93b5ca9b645700f8b",part:"icon",class:"icon",innerHTML:we}),t("span",{key:"eb6b14120d15de3a4b6b53bfc792d102d45b87f6",part:"label",class:"label"},"PDF")))),t("div",{key:"60929dfa2acbd22539cc332b7e0a7378123940f2",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&t("div",{key:"c09070e34edaec31998406ba5cd4c44eb465b26a",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&t("div",{key:"b02b9bbbdfa22e2027b917b7ecd8e426a481204c",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),l.parentTrekId&&l.parentTrek&&this.currentTrek.id!==l.parentTrekId&&t("div",{key:"15c6759e53f3c85fba3e048b46fbc35dc2a6e65c"},t("div",{key:"ea1795d58c649aa439a84e298928bb109530cc5e",part:"divider",class:"divider"}),t("div",{key:"1e3bf59960482f54622c812e611eb435d7e3b2a5",part:"parent-trek-container",class:"parent-trek-container"},t("button",{key:"09479d9e07f4edc94a320404f5e2bfdb840555a7",part:"parent-trek-title",class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(l.parentTrekId)},t("div",{key:"080c8f6e2209a1c933766cbb7d2e9d0b3996bf65"},"<"),l.parentTrek.name))),l.currentTrekSteps&&t("div",{key:"6cc855f91e3094e9e470c7e5b0b3402b36becd22",part:"step-container",class:"step-container"},t("div",{key:"a9fff15147fe92b5749cef144fccd917142cafe4",part:"step-title",class:"step-title",ref:e=>this.stepsRef=e},`${l.currentTrekSteps.length} ${c[l.language].steps}`),t("div",{key:"489f107cf5cdbe5ff4dd08e5cefd5e2e7905ad39",part:"swiper-step",class:"swiper swiper-step",ref:e=>this.swiperStepRef=e},t("div",{key:"b8202d1b81f02badb689962e27a4cd5259ec17df",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentTrekSteps&&l.currentTrekSteps.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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-${e.id}`,trek:e,"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,"grw-app":this.grwApp}))))),t("div",{key:"6e14d004aaad514817ccd7167aefb49645a18b77",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.stepSwiperScrollbar=e}))),t("div",{key:"c63425040b90f4a439a133e83aecd4e2c622579c",part:"divider",class:"divider"}),this.currentTrek.description&&t("div",{key:"523e77a02e3b6bd1e15560447334d619204b7f74",part:"description-container",class:"description-container"},t("div",{key:"2d40bcac811092126c69ddf92647beeb897c9cde",part:"description-title",class:"description-title",ref:e=>this.descriptionRef=e},c[l.language].description),t("div",{key:"2d2dbb85ff73396761bceb8c60e0accfeff37f3c",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&t("div",{key:"072d1da2a06092075113955bb2c05eddd9c74972",part:"departure-container",class:"departure-container"},t("div",{key:"20d7b179d04accd1961f8847f6c53dd8f9c3775b",part:"departure-title",class:"departure-title"},c[l.language].departure," : "),t("div",{key:"347c31fb46707537b961d975b938d6907d90fb90",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&t("div",{key:"696907bb9b347876f4e85e56fdbb736a2f2fd60f",part:"arrival-container",class:"arrival-container"},t("div",{key:"5f604c2344ab65761639b321037d583c2b436f82",part:"arrival-title",class:"arrival-title"},c[l.language].arrival," : "),t("div",{key:"5e2f992df0b13681ddd9a73911bf7143b08c6027",part:"arrival",innerHTML:this.currentTrek.arrival})),this.cities&&this.cities.length>0&&t("div",{key:"d4f1b1ff00ada694bdbca18b133468e26c8ddc4b",part:"cities-container",class:"cities-container"},t("div",{key:"b4b4926774d9aa575fecb2e5479558dd752cae60",part:"cities-title",class:"cities-title"},c[l.language].crossedCities," : "),t("div",{key:"8dfd104eb459291dec0cbde5a4b036473e3177b4",part:"cities",innerHTML:this.cities.join(", ")})),this.options.pois.visible&&t("div",{key:"51e8e6c23c8ab1215e86afd475c61b7d0e880ea4",part:"divider-and-pois-container",class:"divider-and-pois-container"},t("div",{key:"e69a286dc89772a70197d9ffff3a3addcc623714",part:"divider",class:"divider"}),t("div",{key:"c18133c6bb62810a31682b2c7e30f69f0107a635",part:"pois-container",class:"pois-container"},t("div",{key:"c0d789ef43efd4a5a32f7aeee3f6359768ec74e9",part:"pois-title",class:"pois-title",ref:e=>this.poiRef=e},c[l.language].pois(l.poisData)),!l.currentPois?t("div",{class:"loader-container"},t("span",{part:"loader",class:"loader"})):t(n,null,t("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:e=>this.swiperPoisRef=e},t("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentPois.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),t("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.poisSwiperScrollbar=e}))))),this.weather&&this.currentTrek.departure_city&&!this.offline&&t("div",{key:"8617facc3b3ac8b155218428345c1792dab67148",part:"divider-and-weather-container",class:"divider-and-weather-container"},t("div",{key:"92aa05f2f1e958b82ef4e7141690cabdf4fcbe81",part:"divider",class:"divider"}),t("div",{key:"fd8b3ea2366c755d96e2a92a9585fe0c57cc41da",part:"weather-container",class:"weather-container"},t("iframe",{key:"4b0cfc71b1df533d74b72980c97c36f4694d81f7",height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.getDepartureCityCode()}0#${this.colorPrimaryApp}`}))),this.currentTrek.access&&t("div",{key:"9dc996ef5aa59dfd2a2dabf256c74517fe8313fa",part:"divider-and-access-container",class:"divider-and-access-container"},t("div",{key:"a8c68aebe19c913974248c6df3d22fcbfe655772",part:"divider",class:"divider"}),t("div",{key:"caf9265c3144de78ecec165c60dbc2525df7896f",part:"access-container",class:"access-container"},t("div",{key:"8cd8e4b224c45b0f0726c1d07637d7a595a4b875",part:"access-title",class:"access-title"},c[l.language].roadAccessAndParking),t("div",{key:"5e6833267a86c9e894efa4904dac595a3a68db1c",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&t("div",{key:"75011a49cff4ad270b52c53c1418d20d034abfe4"},t("div",{key:"d933a0983e974a134ae691a7c0b63e4927152288",part:"advised-parking-title",class:"advised-parking-title",ref:e=>this.parkingRef=e},c[l.language].recommendedParking),t("div",{key:"42834584f49c7c29fb4412dd444dadfdf9afd757",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&t("div",{key:"a2ca4776ef9376ba159ab257056253d9c57a8884",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},t("div",{key:"189cc7da33a5830c0482c0e425ac99c498f2f62c",part:"divider",class:"divider"}),t("div",{key:"bc06f1e6a0b05837b408538d7adfd453294db545",part:"public-transport-container",class:"public-transport-container"},t("div",{key:"5f18971b8d271d83394b648b84e0fcecfae25397",part:"public-transport-title",class:"public-transport-title"},c[l.language].transport),t("div",{key:"297a34c7ee87901bcd27d662f58b678871f2c495",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&t("div",{key:"995e1c75207f4a51b6b9e8bff3ff1c57c420e733",part:"divider-and-advice-container",class:"divider-and-advice-container"},t("div",{key:"1254bbad026b1bb397483dd6ef64ef33669f7347",part:"divider",class:"divider"}),t("div",{key:"fa7ecf10f918daf9edae405e276aa89c0592a9dc",part:"advice-container",class:"advice-container"},t("div",{key:"c569153ecf7a40f08a5c42f0351d9a1e288df11d",part:"advice-title",class:"advice-title",ref:e=>this.recommendationRef=e},c[l.language].recommendations),this.currentTrek.advice&&t("div",{key:"9e652fa986d98036c6ed0a5e7beeadcf1afecd74",part:"current-advice-container",class:"current-advice-container"},t("span",{key:"365e34bb5bc9b1e6279cac9be2815e70f010f257",part:"advice-icon",class:"icon",innerHTML:Et}),t("div",{key:"17a8e28b1e11f226212d06ab6197fe9b83551ad0",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&t("div",{key:"755f1fda188effa25511802bb1574521e4b10b64",part:"gear-container",class:"gear-container"},t("span",{key:"4999f0fefad202a1ced51f0d4fc19404397161e5",part:"gear-icon",class:"icon",innerHTML:Ti}),t("div",{key:"8e2c96051c8530e45ead863e9fee266d53966b98",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((e=>t("div",{part:"label-container",class:"label-container"},t("div",{part:"label-sub-container",class:"label-sub-container"},e.pictogram&&t("img",{src:e.pictogram,alt:""}),t("div",{part:"label-name",class:"label-name",innerHTML:e.name})),t("div",{part:"label-advice",class:"label-advice",innerHTML:e.advice})))))),l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0&&t("div",{key:"526452d8fd84c3ad3af61b73a1dbdb5b7070d6f5",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},t("div",{key:"398369759c31394650cd229009d125d099b502d9",part:"divider",class:"divider"}),t("div",{key:"e7bc71b2c350c9ae22b509f5c85d87c5b31f3bf7",part:"sensitive-areas-container",class:"sensitive-areas-container"},t("div",{key:"d88b67561152977482e96c0db5005f63b7593de9",part:"ensitive-areas-title",class:"sensitive-areas-title",ref:e=>this.sensitiveAreaRef=e},c[l.language].environmentalSensitiveAreas),t("div",{key:"7e51d2f9ea51e7a40916fde23c29cfa311229edd",part:"sensitive-areas-description",class:"sensitive-areas-description"},c[l.language].sensitiveAreasDescription),l.currentSensitiveAreas.map((e=>t("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:e}))))),l.currentInformationDesks&&l.currentInformationDesks.filter((e=>this.currentTrek.information_desks.includes(e.id))).length>0&&t("div",{key:"c999b01c5d29cf4df30a7916be9a4d61313f5a5f",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},t("div",{key:"23e81eef88432d083d387904ae9d65c8bc9d5ed9",part:"divider",class:"divider"}),t("div",{key:"c3e5d320e9dbc3c10b59cce398b459f086cb568c",part:"information-desks-container",class:"information-desks-container"},t("div",{key:"6161f6118270cc923be0b8104b213edacbd3841d",part:"information-desks-title",class:"information-desks-title",ref:e=>this.informationPlacesRef=e},c[l.language].informationPlaces),t("div",{key:"24e6df83d17b8a7096907888252663593b6bf415",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:e=>this.swiperInformationDesksRef=e},t("div",{key:"1ef923837f668d0cd5cc9eaa717fd6b4284de832",part:"swiper-wrapper",class:"swiper-wrapper"},l.currentInformationDesks.filter((e=>this.currentTrek.information_desks.includes(e.id))).map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),t("div",{key:"2c4537181505431f9ce478b60d89a64cc50aa35c",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.informationDesksContentsSwiperScrollbar=e})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&t("div",{key:"47bd0810bcc9fff60e03d203b548d257730c2051",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},t("div",{key:"ea4c565e6fef36aae5462abfc9d5a5d9ef705f96",part:"divider",class:"divider"}),t("div",{key:"5bf0be7aec407dd959e315f84a8c7527452daec2",part:"accessibilities-container",class:"accessibilities-container"},t("div",{key:"7535934a1269a36f80d948492a62c3be441624c1",part:"accessibilities-title",class:"accessibilities-title",ref:e=>this.accessibilityRef=e},c[l.language].accessibility),this.currentTrek.disabled_infrastructure&&t("div",{key:"8a56bc94562ee1f5bb61935e74bf9de614d58cd9",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&t("div",{key:"c70ec1c346b3530831abe6f2bc7080548186bbf1",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((e=>t("div",{part:"accessibility-content-container",class:"accessibility-content-container"},t("img",{src:e.pictogram,alt:""}),t("div",{part:"accessibility-name",innerHTML:e.name}))))),this.emergencyNumber&&t("div",{key:"4537ae3f4bbeef8423c37465e5e81f39f0ad188b",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},t("div",{key:"67bed12f968004db5a799a70aae4326f9deff260",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},c[l.language].emergencyNumber),t("div",{key:"ad87bb714139d3d81f419b42791bfb048ac4685e",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},t("a",{key:"cc121606fabed7a1468a85e095dd45ae5197928e",href:`tel:${this.emergencyNumber.toString()}`},t("span",{key:"76168cbbe2a12607de25f2e4def8655cd97d889b",part:"icon",class:"icon",innerHTML:Te}),t("span",{key:"5623521bd437e25800a7d0198cd5941b6065cee6",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&t("div",{key:"c4a3bdc0de913b2fc007c8882ffa90cc0fa0be16",part:"accessibility-level-container",class:"accessibility-level-container"},t("div",{key:"6b06f12254bd01e651f9a8e088e50ddd6e2faa67",part:"accessibility-level-title",class:"accessibility-level-title"},c[l.language].accessibilityLevel),t("div",{key:"139fee199e63e720371721ac11accd1af3df1afe",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&t("div",{key:"8c63b84f1e932339464d50d8767f118bee49e8e0",part:"accessibility-slope-container",class:"accessibility-slope-container"},t("div",{key:"60dc74a06c10adf7f142350c46ce79f8b22d7277",part:"accessibility-slope-title",class:"accessibility-slope-title"},c[l.language].accessibilitySlope),t("div",{key:"d3a2ca99e1b095ebf0dee1a339419148b2e80a1b",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&t("div",{key:"9494c34d2088fe4e8e28295ead864935cba4d14a",part:"accessibility-width-container",class:"accessibility-width-container"},t("div",{key:"0a9f382b18780944ab5ce3acaf7641e418f66d55",part:"accessibility-width-title",class:"accessibility-width-title"},c[l.language].accessibilityWidth),t("div",{key:"83765a581d6f11cc052c52b9d2bbf3b5f0774e04",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&t("div",{key:"971c3c1041ab2c6c58937142d20d0435dd7b5e5f",part:"accessibility-signage-container",class:"accessibility-signage-container"},t("div",{key:"ff33f0f442bc2b2c8896f3e6596c730667e2b399",part:"accessibility-signage-title",class:"accessibility-signage-title"},c[l.language].accessibilitySignage),t("div",{key:"60b473d26655b61d1c69a50472e909456db96846",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&t("div",{key:"6ba3d14154a00f88f5a1e98428651083a92271a0",part:"accessibility-covering-container",class:"accessibility-covering-container"},t("div",{key:"d5a91b507302ce6be02af32718659d23286adfcb",part:"accessibility-covering-title",class:"accessibility-covering-title"},c[l.language].accessibilityCovering),t("div",{key:"76178ed965b71c16f0d2a588310a444f94910b95",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&t("div",{key:"5187b6f926d68ec9001dba9a02f7c3ed4d0c2b04",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},t("div",{key:"e72e2d7f67552c7da184d39a17cf22505ffdc261",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},c[l.language].accessibilityExposure),t("div",{key:"73fa359fc7222f0f343dd0b9fd6894510b130680",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&t("div",{key:"d173f71ab6e028cbcd1a67c6cd9388d5aba7079c",part:"accessibility-advice-container",class:"accessibility-advice-container"},t("div",{key:"83835f4bbff25642ab7c1aa17c8653b7f570d972",part:"accessibility-advice-title",class:"accessibility-advice-title"},c[l.language].accessibilityAdvices),t("div",{key:"81eb03e82841ac0c08d1efa8e3848a0373ef44e0",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),this.options.touristicContents.visible&&t("div",{key:"5f598d5a8cd5767ffa2194326f106505fb3af453",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},t("div",{key:"a86801d9fb2130423cbca6a682ac6ae9da7b7296",part:"divider",class:"divider"}),t("div",{key:"a0f087bf729995d26314a4a941a8eb6e298a4765",part:"touristic-content-container",class:"touristic-content-container"},t("div",{key:"23a6ff94e6cedc644a518b7cb7d7b5a7acf1ead7",part:"touristic-content-title",class:"touristic-content-title",ref:e=>this.touristicContentsRef=e},c[l.language].touristicContents(l.touristicContentsData)),!l.trekTouristicContents?t("div",{class:"loader-container"},t("span",{part:"loader",class:"loader"})):t(n,null,t("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:e=>this.swiperTouristicContentsRef=e},t("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true,"color-surface-container-low":this.colorSurfaceContainerLow}))))),t("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicContentsSwiperScrollbar=e}))))),this.options.touristicEvents.visible&&t("div",{key:"b26966d8ddf54ca147c04ee394ef9fe784a335fb",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},t("div",{key:"15d5531170a577f0196e11ef5148acfc1bd3f93e",part:"divider",class:"divider"}),t("div",{key:"015c6dbe85a45e19b19e792d60fe3487a5fe5c70",part:"touristic-event-container",class:"touristic-event-container"},t("div",{key:"9b6d5281624cac8ab5fccf5eb44203c8618a9cf5",part:"touristic-event-title",class:"touristic-event-title",ref:e=>this.touristicEventsRef=e},c[l.language].touristicEvents(l.touristicEventsData)),!l.trekTouristicEvents?t("div",{class:"loader-container"},t("span",{part:"loader",class:"loader"})):t(n,null,t("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:e=>this.swiperTouristicEventsRef=e},t("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((e=>t("div",{part:"swiper-slide",class:"swiper-slide"},t("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:e,isInsideHorizontalList:true,colorSurfaceContainerLow:this.colorSurfaceContainerLow}))))),t("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:e=>this.touristicEventsSwiperScrollbar=e}))))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&t("div",{key:"d0682b7db9672bec65ce5567f8289258192b60b5",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},t("div",{key:"954dc0a7c14c70297e9bce0b25b7588006596eac",part:"divider",class:"divider"}),t("div",{key:"c0839c62bf4b7b2abc6639e03e49b0ddd559f246",part:"weblinks-container",class:"weblinks-container"},t("div",{key:"16fe33271fabb8065b8337071d1738a8c53bf8ec",part:"weblinks-title",class:"weblinks-title"},c[l.language].learnMore),this.currentTrek.web_links.map((e=>t("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&t("img",{src:e.category.pictogram,alt:e.category.label}),e.name))))),this.currentTrek.source&&this.currentTrek.source.length>0&&t("div",{key:"5a1250f33757dfe8833b89ba047b094748239209",part:"divider-and-source-container",class:"divider-and-source-container"},t("div",{key:"adb11eb1f6d0ffa7e9a261d775cec1dab59404b3",part:"divider",class:"divider"}),t("div",{key:"466f82f7ab7296b751fde365c8ed8a45b3aae6e7",part:"source-container",class:"source-container"},t("div",{key:"4e5d87e9836bb01943c11ca03050316434ebcf80",part:"source-title",class:"source-title"},c[l.language].sources),this.sources.map((e=>t("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&t("img",{src:e.pictogram,alt:""}),t("div",null,t("div",{part:"source-name",class:"source-name",innerHTML:e.name}),t("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website}))))))),this.grwApp&&t("div",{key:"70d0b3b4d9ff018afc5713c0ba4dfb7fb2322e1f",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&t(n,{key:"8a4ca0a3be512d3aa19afe9ee74d97d51226663e"},this.showTouristicContentDetailsModal&&t("grw-touristic-content-provider",{key:"f87fe12bfd929e042d433501beb142256ed46569",api:l.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&t("grw-touristic-event-provider",{key:"e21322e8a242f3489a6c700fb7b6accabf0cf5f9",api:l.api,"touristic-event-id":this.modalDetailsId})))}};Zi.style=_i;const qi=class{constructor(t){e(this,t);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){l.poisData=0;l.touristicContentsData=0;l.touristicEventsData=0;l.currentPois=null;l.trekTouristicContents=null;l.trekTouristicEvents=null;if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTrek()}disconnectedCallback(){l.networkError=false}async handleTrek(){const e=await Y("treks",this.trekId);if(e&&e.offline){this.handleOfflineTrek(e)}else{this.handleOnlineTrek()}}async handleOfflineTrek(e){if(e&&e.children.length>0||l.parentTrekId){const t=[];if(e.children.length>0){l.parentTrekId=e.id;l.parentTrek=e;t.push(...e.children)}else{const e=await Y("treks",l.parentTrekId);l.parentTrek=e;t.push(...e.children)}const i=[];t.forEach((e=>{i.push(Y("treks",e))}));l.currentTrekSteps=await Promise.all([...i]).then((e=>e))}l.difficulties=await D("difficulties");l.routes=await D("routes");l.practices=await D("practices");l.themes=await D("themes");l.cities=await D("cities");l.accessibilities=await D("accessibilities");l.ratings=await D("ratings");l.ratingsScale=await D("ratingsScale");l.labels=await D("labels");l.sources=await D("sources");l.accessibilitiesLevel=await D("accessibilitiesLevel");l.touristicContentCategories=await D("touristicContentCategories");l.touristicEventTypes=await D("touristicEventTypes");l.networks=await D("networks");l.poiTypes=await D("poiTypes");const t=await D("informationDesks");const i=t.filter((t=>e.information_desks.some((e=>e===t.id))));l.currentInformationDesks=i;const r=await D("pois",["url"]);const o=r.filter((t=>e.pois.some((e=>e===t.id))));l.currentPois=o;l.poisData=o.length;const a=await D("touristicContents",["url"]);const s=a.filter((t=>e.touristicContents.some((e=>e===t.id))));l.trekTouristicContents=s;l.touristicContentsData=s.length;const n=await D("touristicEvents",["url"]);const c=n.filter((t=>e.touristicEvents.some((e=>e===t.id))));l.trekTouristicEvents=c;l.touristicEventsData=c.length;const d=await D("sensitiveAreas");const p=d.filter((t=>e.sensitiveAreas.some((e=>e===t.id))));l.currentSensitiveAreas=p;const h=await D("signages");const f=h.filter((t=>e.signages.some((e=>e===t.id))));l.currentSignages=f;await F(e,P,["url"]);l.currentTrek=e}handleOnlineTrek(){const e=[];e.push(!l.difficulties?fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));e.push(!l.routes?fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));e.push(!l.practices?fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));e.push(!l.themes?fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));e.push(!l.accessibilities?fetch(`${l.api}trek_accessibility/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));e.push(!l.ratings?fetch(`${l.api}trek_rating/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));e.push(!l.ratingsScale?fetch(`${l.api}trek_ratingscale/?language=${l.language}&fields=id,name`,this.init):new Response("null"));e.push(this.signages?te(l.api,l.language,this.trekId,this.init):new Response("null"));try{Promise.all([...e,ee(l.api,l.language,this.trekId,this.init).then((e=>{if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${l.api}label/?language=${l.language}&fields=id,name,advice,pictogram,filter`,this.init),U(l.api,l.language,this.init),fetch(`${l.api}trek_accessibility_level/?language=${l.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),ie(l.api,l.language,this.trekId,this.init),X(l.api,l.language,this.init),re(l.api,l.language,this.init),K(l.api,l.language,this.trekId,this.init),Oe(l.api,l.language,this.trekId,this.init),_e(l.api,l.language,this.trekId,this.init)]).then((e=>Promise.all(e.map((e=>e.json()))))).then((async([e,t,i,r,o,a,s,n,c,d,p,h,f,u,m,b,g,v])=>{l.networkError=false;if(b&&b.children.length>0||l.parentTrekId){const e=[];if(b.children.length>0){l.parentTrekId=b.id;l.parentTrek=b;e.push(...b.children)}else{const t=await fetch(`${l.api}trek/${l.parentTrekId}/?language=${l.language}&published=true&fields=name,children`).then((e=>e.json()));l.parentTrek=t;e.push(...t.children)}const t=[];e.forEach((e=>{t.push(K(l.api,l.language,e,this.init))}));l.currentTrekSteps=await Promise.all([...t]).then((e=>Promise.all(e.map((e=>e.json())))))}let w=[b.departure_city,...b.cities];if(l.currentTrekSteps){l.currentTrekSteps.forEach((e=>{w=[...w,e.departure_city,...e.cities]}))}w=[...new Set(w.filter(Boolean))];if(l.cities){const e=l.cities.map((e=>e.id));w=w.filter((t=>!e.includes(t)))}if(w.length>0){const e=(await q(l.api,l.language,this.init,w).then((e=>e.json()))).results;if(e){if(l.cities){l.cities=[...l.cities,...e]}else{l.cities=e}}}if(!l.cities){l.cities=[]}if(e){l.difficulties=e.results}if(t){l.routes=t.results}if(i){l.practices=i.results.map((e=>Object.assign(Object.assign({},e),{selected:false})))}if(r){l.themes=r.results}if(o){l.accessibilities=o.results}if(a){l.ratings=a.results}if(s){l.ratingsScale=s.results}l.currentSignages=n?n.results:[];if(h){l.accessibilitiesLevel=h.results}if(c){l.currentSensitiveAreas=c.results}if(d){l.labels=d.results}if(p){l.sources=p.results}if(m){l.networks=m.results}if(u){l.currentInformationDesks=u.results}if(f.count){l.poisData=f.count}if(g.count){l.touristicContentsData=g.count}if(v.count){l.touristicEventsData=v.count}if(b){l.currentTrek=b}if(l.poisData>0){Promise.all([J(l.api,l.language,this.trekId,this.init),fetch(`${l.api}poi_type/?language=${l.language}&fields=id,pictogram`,this.init)]).then((e=>Promise.all(e.map((e=>e.json()))))).then((([e,t])=>{if(t){l.poiTypes=t.results}if(e){l.currentPois=e.results}})).catch((()=>{l.poisData=0}))}if(l.touristicContentsData>0){Promise.all([Fe(l.api,l.language,this.trekId,this.init),ye(l.api,l.language,null,this.init)]).then((e=>Promise.all(e.map((e=>e.json()))))).then((([e,t])=>{if(t){l.touristicContentCategories=t.results}if(e){l.trekTouristicContents=e.results}})).catch((()=>{l.touristicContentsData=0}))}if(l.touristicEventsData>0){Promise.all([Pe(l.api,l.language,this.trekId,this.init),Ae(l.api,l.language,null,this.init)]).then((e=>Promise.all(e.map((e=>e.json()))))).then((([e,t])=>{if(t){l.touristicEventTypes=t.results}if(e){l.trekTouristicEvents=e.results}})).catch((()=>{l.touristicEventsData=0}))}}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){l.networkError=true}}}render(){return t(i,{key:"a5a673a79a7aaaa7f561524411823102277c8cd4"})}};const Vi=":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 16px 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}";const Qi=Vi;const Ui=class{constructor(t){e(this,t);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}connectedCallback(){this.handleInfiniteScrollEvent(true);if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}d("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.currentTreks){this.treksToDisplay=[...l.currentTreks.slice(0,this.step)]}}));d("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(l.treksWithinBounds){this.treksToDisplay=[...l.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<l.treksWithinBounds.length){this.treksToDisplay=l.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=l.treksWithinBounds.length?l.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}disconnectedCallback(){this.handleInfiniteScrollEvent(false)}render(){return t(i,{key:"b40bcbf292515d9a78b0c43432df3d9ace4ca471",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.treksWithinBounds&&t("div",{key:"1d0a540e15410b55b6caa8102aa556a5c738611a",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},`${l.treksWithinBounds.length} ${l.treksWithinBounds.length>1?c[l.language].treks:c[l.language].trek}`),t("div",{key:"781a81c7856cfd070d3c25135f6ed8799d7a1ab8",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((e=>t("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-${e.id}`,trek:e,"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,"grw-app":this.grwApp})))),t("div",{key:"0a85087a543959d295595f52b352532569d88326",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))}get element(){return s(this)}};Ui.style=Qi;const Xi=class{constructor(t){e(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal}}connectedCallback(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTreks()}disconnectedCallback(){this.controller.abort();l.networkError=false}async handleTreks(){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}}async handleOfflineTreks(){let e=await H("treks");if(e&&e.length>0){l.difficulties=await this.handleOfflineProperty("difficulties");l.routes=await this.handleOfflineProperty("routes");l.practices=await this.handleOfflineProperty("practices");l.themes=await this.handleOfflineProperty("themes");l.cities=await this.handleOfflineProperty("cities");l.accessibilities=await this.handleOfflineProperty("accessibilities");l.labels=await this.handleOfflineProperty("labels");l.districts=await this.handleOfflineProperty("districts");l.durations=_;l.lengths=B;l.elevations=j;e=await this.handleOfflineProperty("treks");this.sortTreks(e);if(this.offline){e=e.filter((e=>e.offline))}l.treks=e;l.currentTreks=e}else{l.networkError=true}}sortTreks(e){e.sort(((e,t)=>e.name.localeCompare(t.name,undefined,{numeric:true,sensitivity:"base"})))}async handleOfflineProperty(e,t=[]){const i=await H(e);await F(i,P,t);return i}handleOnlineTreks(){Promise.all([fetch(`${l.api}trek_difficulty/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${l.api}trek_route/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${l.api}trek_practice/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${l.api}theme/?language=${l.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),q(l.api,l.language,this.init),oe(l.api,l.language,this.portals,this.init),ae(l.api,l.language,this.portals,this.init),V(l.api,l.language,this.init),W(l.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((e=>{e.forEach((e=>{if(e.status!==200){throw new Error("network error")}}));return Promise.all(e.map((e=>e.json())))})).then((async([e,t,i,r,o,a,s,n,c])=>{l.networkError=false;l.difficulties=e.results;l.routes=t.results;l.practices=i.results.map((e=>Object.assign(Object.assign({},e),{selected:false})));l.themes=r.results;l.cities=o.results;l.accessibilities=a.results;l.labels=s.results;l.districts=n.results;l.durations=_;l.lengths=B;l.elevations=j;const d=[];const p=c.results.filter((e=>e.departure_geom!==null));for(let e=0;e<p.length;e++){const t=await se(p[e].id);d.push(Object.assign(Object.assign({},p[e]),{offline:t}))}this.sortTreks(d);l.treks=d;l.currentTreks=d})).catch((async()=>{await this.handleOfflineTreks()}))}render(){return t(i,{key:"7ff4299e306294e421fa4e003f4a4aa567c9119f"})}};export{Ge as grw_common_button,qe as grw_filters,Ue as grw_loader,Tt as grw_map,Bt as grw_offline_confirm_modal,Yt as grw_outdoor_course_detail,Dt as grw_outdoor_course_provider,ti as grw_outdoor_site_detail,ii as grw_outdoor_site_provider,ai as grw_outdoor_sites_list,si as grw_outdoor_sites_provider,di as grw_search,fi as grw_segmented_segment,gi as grw_select_language,yi as grw_switch,zi as grw_touristic_contents_list,Ci as grw_touristic_contents_provider,Fi as grw_touristic_events_list,Pi as grw_touristic_events_provider,Zi as grw_trek_detail,qi as grw_trek_provider,Ui as grw_treks_list,Xi as grw_treks_provider};
|
|
4
|
+
//# sourceMappingURL=p-551b6c64.entry.js.map
|