@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","ratings","ratingsScale","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","networkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","trekTouristicEvents","touristicEvents","currentTouristicEvents","touristicEventsWithinBounds","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId","selectedTouristicEventId","networks","portalsFromProviders","inBboxFromProviders","citiesFromProviders","districtsFromProviders","structuresFromProviders","themesFromProviders","routesFromProviders","practicesFromProviders","labelsFromProviders","offlineTreks","currentOutdoorSites","outdoorSites","outdoorSitesWithinBounds","currentOutdoorCourses","outdoorCourses","outdoorSiteTypes","outdoorPractices","selectedOutdoorSiteId","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","selectedOutdoorCourseId","outdoorCourseTypes","currentOutdoorCourse","outdoorRatings","outdoorRatingsScale","offlineOutdoorSites","currentSignages","touristicContentsData","touristicEventsData","poisData","exports","s","o","r"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n AccessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n Ratings,\n RatingsScale,\n Networks,\n OutdoorSites,\n OutdoorCourses,\n OutdoorSiteTypes,\n OutdoorPractices,\n OutdoorSite,\n OutdoorCourse,\n OutdoorCourseTypes,\n Signages,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n ratings: Ratings;\n ratingsScale: RatingsScale;\n outdoorRatings: Ratings;\n outdoorRatingsScale: RatingsScale;\n accessibilities: Accessibilities;\n accessibilitiesLevel: AccessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n networkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n trekTouristicEvents: TouristicEvents;\n touristicEvents: TouristicEvents;\n currentTouristicEvents: TouristicEvents;\n touristicEventsWithinBounds: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n selectedTouristicEventId: number;\n networks: Networks;\n portalsFromProviders: string;\n inBboxFromProviders: string;\n citiesFromProviders: string;\n districtsFromProviders: string;\n structuresFromProviders: string;\n themesFromProviders: string;\n routesFromProviders: string;\n practicesFromProviders: string;\n labelsFromProviders: string;\n offlineTreks: boolean;\n currentOutdoorSites: OutdoorSites;\n outdoorSites: OutdoorSites;\n outdoorSitesWithinBounds: OutdoorSites;\n currentOutdoorCourses: OutdoorCourses;\n outdoorCourses: OutdoorCourses;\n outdoorSiteTypes: OutdoorSiteTypes;\n outdoorPractices: OutdoorPractices;\n selectedOutdoorSiteId: number;\n currentOutdoorSite: OutdoorSite;\n currentRelatedOutdoorSites: OutdoorSites;\n currentRelatedOutdoorCourses: OutdoorCourses;\n selectedOutdoorCourseId: number;\n outdoorCourseTypes: OutdoorCourseTypes;\n currentOutdoorCourse: OutdoorCourse;\n offlineOutdoorSites: boolean;\n currentSignages: Signages;\n touristicContentsData: number;\n touristicEventsData: number;\n poisData: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: [],\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n ratings: null,\n ratingsScale: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n networkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n trekTouristicEvents: null,\n touristicEvents: null,\n currentTouristicEvents: null,\n touristicEventsWithinBounds: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n selectedTouristicEventId: null,\n networks: null,\n portalsFromProviders: null,\n inBboxFromProviders: null,\n citiesFromProviders: null,\n districtsFromProviders: null,\n structuresFromProviders: null,\n themesFromProviders: null,\n routesFromProviders: null,\n practicesFromProviders: null,\n labelsFromProviders: null,\n offlineTreks: false,\n currentOutdoorSites: null,\n outdoorSites: null,\n outdoorSitesWithinBounds: null,\n currentOutdoorCourses: null,\n outdoorCourses: null,\n outdoorSiteTypes: null,\n outdoorPractices: null,\n selectedOutdoorSiteId: null,\n currentOutdoorSite: null,\n currentRelatedOutdoorSites: null,\n currentRelatedOutdoorCourses: null,\n selectedOutdoorCourseId: null,\n outdoorCourseTypes: null,\n currentOutdoorCourse: null,\n outdoorRatings: null,\n outdoorRatingsScale: null,\n offlineOutdoorSites: false,\n currentSignages: null,\n touristicContentsData: 0,\n touristicEventsData: 0,\n poisData: 0,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"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","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["appendToMap","map","propName","value","items","get","set","includes","push","debounce","fn","ms","timeoutId","args","_i","arguments","length","clearTimeout","setTimeout","apply","isConnected","maybeElement","cleanupElements","_b","keys","key","filter","stencilSubscription","getRenderingRef","elmsToUpdate","Map","dispose","clear","elm","elements","forceUpdate","reset","forEach","elms","unwrap","val","createObservableMap","defaultState","shouldUpdate","a","b","unwrappedState","states","Object","entries","handlers","_a","cb","oldValue","state","Proxy","_","ownKeys","Array","from","getOwnPropertyDescriptor","enumerable","configurable","has","on","eventName","callback","removeFromArray","onChange","unSet","newValue","unReset","use","subscriptions","unsubs","reduce","subscription","unsub","array","item","index","indexOf","createStore","mode","api","languages","language","treks","currentTreks","treksWithinBounds","currentMapBounds","difficulties","routes","practices","themes","cities","durations","lengths","elevations","currentSensitiveAreas","labels","districts","sources","ratings","ratingsScale","accessibilities","accessibilitiesLevel","poiTypes","currentTrek","currentPois","currentInformationDesks","networkError","searchValue","selectedActivitiesFilters","selectedThemesFilters","selectedLocationFilters","selectedTrekId","parentTrekId","parentTrek","currentTrekSteps","selectedStepId","trekTouristicContents","touristicContents","currentTouristicContents","touristicContentsWithinBounds","touristicContentCategories","currentTouristicContent","trekTouristicEvents","touristicEvents","currentTouristicEvents","touristicEventsWithinBounds","touristicEventTypes","currentTouristicEvent","selectedTouristicContentId","selectedTouristicEventId","networks","portalsFromProviders","inBboxFromProviders","citiesFromProviders","districtsFromProviders","structuresFromProviders","themesFromProviders","routesFromProviders","practicesFromProviders","labelsFromProviders","offlineTreks","currentOutdoorSites","outdoorSites","outdoorSitesWithinBounds","currentOutdoorCourses","outdoorCourses","outdoorSiteTypes","outdoorPractices","selectedOutdoorSiteId","currentOutdoorSite","currentRelatedOutdoorSites","currentRelatedOutdoorCourses","selectedOutdoorCourseId","outdoorCourseTypes","currentOutdoorCourse","outdoorRatings","outdoorRatingsScale","offlineOutdoorSites","currentSignages","touristicContentsData","touristicEventsData","poisData","exports","s","o","r"],"sources":["node_modules/@stencil/store/dist/index.mjs","src/store/store.ts"],"sourcesContent":["import { getRenderingRef, forceUpdate } from '@stencil/core';\n\nconst appendToMap = (map, propName, value) => {\n const items = map.get(propName);\n if (!items) {\n map.set(propName, [value]);\n }\n else if (!items.includes(value)) {\n items.push(value);\n }\n};\nconst debounce = (fn, ms) => {\n let timeoutId;\n return (...args) => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(() => {\n timeoutId = 0;\n fn(...args);\n }, ms);\n };\n};\n\n/**\n * Check if a possible element isConnected.\n * The property might not be there, so we check for it.\n *\n * We want it to return true if isConnected is not a property,\n * otherwise we would remove these elements and would not update.\n *\n * Better leak in Edge than to be useless.\n */\nconst isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;\nconst cleanupElements = debounce((map) => {\n for (let key of map.keys()) {\n map.set(key, map.get(key).filter(isConnected));\n }\n}, 2000);\nconst stencilSubscription = () => {\n if (typeof getRenderingRef !== 'function') {\n // If we are not in a stencil project, we do nothing.\n // This function is not really exported by @stencil/core.\n return {};\n }\n const elmsToUpdate = new Map();\n return {\n dispose: () => elmsToUpdate.clear(),\n get: (propName) => {\n const elm = getRenderingRef();\n if (elm) {\n appendToMap(elmsToUpdate, propName, elm);\n }\n },\n set: (propName) => {\n const elements = elmsToUpdate.get(propName);\n if (elements) {\n elmsToUpdate.set(propName, elements.filter(forceUpdate));\n }\n cleanupElements(elmsToUpdate);\n },\n reset: () => {\n elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));\n cleanupElements(elmsToUpdate);\n },\n };\n};\n\nconst unwrap = (val) => (typeof val === 'function' ? val() : val);\nconst createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {\n const unwrappedState = unwrap(defaultState);\n let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));\n const handlers = {\n dispose: [],\n get: [],\n set: [],\n reset: [],\n };\n const reset = () => {\n var _a;\n // When resetting the state, the default state may be a function - unwrap it to invoke it.\n // otherwise, the state won't be properly reset\n states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));\n handlers.reset.forEach((cb) => cb());\n };\n const dispose = () => {\n // Call first dispose as resetting the state would\n // cause less updates ;)\n handlers.dispose.forEach((cb) => cb());\n reset();\n };\n const get = (propName) => {\n handlers.get.forEach((cb) => cb(propName));\n return states.get(propName);\n };\n const set = (propName, value) => {\n const oldValue = states.get(propName);\n if (shouldUpdate(value, oldValue, propName)) {\n states.set(propName, value);\n handlers.set.forEach((cb) => cb(propName, value, oldValue));\n }\n };\n const state = (typeof Proxy === 'undefined'\n ? {}\n : new Proxy(unwrappedState, {\n get(_, propName) {\n return get(propName);\n },\n ownKeys(_) {\n return Array.from(states.keys());\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true,\n };\n },\n has(_, propName) {\n return states.has(propName);\n },\n set(_, propName, value) {\n set(propName, value);\n return true;\n },\n }));\n const on = (eventName, callback) => {\n handlers[eventName].push(callback);\n return () => {\n removeFromArray(handlers[eventName], callback);\n };\n };\n const onChange = (propName, cb) => {\n const unSet = on('set', (key, newValue) => {\n if (key === propName) {\n cb(newValue);\n }\n });\n // We need to unwrap the defaultState because it might be a function.\n // Otherwise we might not be sending the right reset value.\n const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));\n return () => {\n unSet();\n unReset();\n };\n };\n const use = (...subscriptions) => {\n const unsubs = subscriptions.reduce((unsubs, subscription) => {\n if (subscription.set) {\n unsubs.push(on('set', subscription.set));\n }\n if (subscription.get) {\n unsubs.push(on('get', subscription.get));\n }\n if (subscription.reset) {\n unsubs.push(on('reset', subscription.reset));\n }\n if (subscription.dispose) {\n unsubs.push(on('dispose', subscription.dispose));\n }\n return unsubs;\n }, []);\n return () => unsubs.forEach((unsub) => unsub());\n };\n const forceUpdate = (key) => {\n const oldValue = states.get(key);\n handlers.set.forEach((cb) => cb(key, oldValue, oldValue));\n };\n return {\n state,\n get,\n set,\n on,\n onChange,\n use,\n dispose,\n reset,\n forceUpdate,\n };\n};\nconst removeFromArray = (array, item) => {\n const index = array.indexOf(item);\n if (index >= 0) {\n array[index] = array[array.length - 1];\n array.length--;\n }\n};\n\nconst createStore = (defaultState, shouldUpdate) => {\n const map = createObservableMap(defaultState, shouldUpdate);\n map.use(stencilSubscription());\n return map;\n};\n\nexport { createObservableMap, createStore };\n","import { createStore } from '@stencil/store';\nimport { LatLngBounds } from 'leaflet';\nimport {\n Accessibilities,\n AccessibilitiesLevel,\n Difficulties,\n Durations,\n InformationDesks,\n Labels,\n Pois,\n PoiTypes,\n Practices,\n Routes,\n SensitiveAreas,\n Sources,\n Themes,\n Cities,\n Trek,\n Treks,\n Lengths,\n Elevations,\n Districts,\n TouristicContents,\n TouristicContentCategories,\n TouristicContent,\n TouristicEvents,\n TouristicEventTypes,\n TouristicEvent,\n Ratings,\n RatingsScale,\n Networks,\n OutdoorSites,\n OutdoorCourses,\n OutdoorSiteTypes,\n OutdoorPractices,\n OutdoorSite,\n OutdoorCourse,\n OutdoorCourseTypes,\n Signages,\n} from 'types/types';\n\nconst { state, onChange, reset } = createStore<{\n mode: string;\n api: string;\n languages: string[];\n language: string;\n treks: Treks;\n treksWithinBounds: Treks;\n currentMapBounds: LatLngBounds;\n currentTreks: Treks;\n difficulties: Difficulties;\n routes: Routes;\n practices: Practices;\n themes: Themes;\n cities: Cities;\n durations: Durations;\n lengths: Lengths;\n elevations: Elevations;\n labels: Labels;\n districts: Districts;\n sources: Sources;\n ratings: Ratings;\n ratingsScale: RatingsScale;\n outdoorRatings: Ratings;\n outdoorRatingsScale: RatingsScale;\n accessibilities: Accessibilities;\n accessibilitiesLevel: AccessibilitiesLevel;\n poiTypes: PoiTypes;\n currentTrek: Trek;\n currentSensitiveAreas: SensitiveAreas;\n currentPois: Pois;\n currentInformationDesks: InformationDesks;\n networkError: boolean;\n searchValue: string;\n selectedActivitiesFilters: number;\n selectedThemesFilters: number;\n selectedLocationFilters: number;\n selectedTrekId: number;\n parentTrekId: number;\n parentTrek: Trek;\n currentTrekSteps: Treks;\n selectedStepId: number;\n trekTouristicContents: TouristicContents;\n touristicContents: TouristicContents;\n currentTouristicContents: TouristicContents;\n touristicContentsWithinBounds: TouristicContents;\n touristicContentCategories: TouristicContentCategories;\n currentTouristicContent: TouristicContent;\n trekTouristicEvents: TouristicEvents;\n touristicEvents: TouristicEvents;\n currentTouristicEvents: TouristicEvents;\n touristicEventsWithinBounds: TouristicEvents;\n touristicEventTypes: TouristicEventTypes;\n currentTouristicEvent: TouristicEvent;\n selectedTouristicContentId: number;\n selectedTouristicEventId: number;\n networks: Networks;\n portalsFromProviders: string;\n inBboxFromProviders: string;\n citiesFromProviders: string;\n districtsFromProviders: string;\n structuresFromProviders: string;\n themesFromProviders: string;\n routesFromProviders: string;\n practicesFromProviders: string;\n labelsFromProviders: string;\n offlineTreks: boolean;\n currentOutdoorSites: OutdoorSites;\n outdoorSites: OutdoorSites;\n outdoorSitesWithinBounds: OutdoorSites;\n currentOutdoorCourses: OutdoorCourses;\n outdoorCourses: OutdoorCourses;\n outdoorSiteTypes: OutdoorSiteTypes;\n outdoorPractices: OutdoorPractices;\n selectedOutdoorSiteId: number;\n currentOutdoorSite: OutdoorSite;\n currentRelatedOutdoorSites: OutdoorSites;\n currentRelatedOutdoorCourses: OutdoorCourses;\n selectedOutdoorCourseId: number;\n outdoorCourseTypes: OutdoorCourseTypes;\n currentOutdoorCourse: OutdoorCourse;\n offlineOutdoorSites: boolean;\n currentSignages: Signages;\n touristicContentsData: number;\n touristicEventsData: number;\n poisData: number;\n}>({\n mode: null,\n api: null,\n languages: null,\n language: null,\n treks: null,\n currentTreks: null,\n treksWithinBounds: null,\n currentMapBounds: null,\n difficulties: null,\n routes: null,\n practices: null,\n themes: null,\n cities: null,\n durations: null,\n lengths: null,\n elevations: null,\n currentSensitiveAreas: null,\n labels: null,\n districts: null,\n sources: null,\n ratings: null,\n ratingsScale: null,\n accessibilities: null,\n accessibilitiesLevel: null,\n poiTypes: null,\n currentTrek: null,\n currentPois: null,\n currentInformationDesks: null,\n networkError: false,\n searchValue: null,\n selectedActivitiesFilters: 0,\n selectedThemesFilters: 0,\n selectedLocationFilters: 0,\n selectedTrekId: null,\n parentTrekId: null,\n parentTrek: null,\n currentTrekSteps: null,\n selectedStepId: null,\n trekTouristicContents: null,\n touristicContents: null,\n currentTouristicContents: null,\n touristicContentsWithinBounds: null,\n touristicContentCategories: null,\n currentTouristicContent: null,\n trekTouristicEvents: null,\n touristicEvents: null,\n currentTouristicEvents: null,\n touristicEventsWithinBounds: null,\n touristicEventTypes: null,\n currentTouristicEvent: null,\n selectedTouristicContentId: null,\n selectedTouristicEventId: null,\n networks: null,\n portalsFromProviders: null,\n inBboxFromProviders: null,\n citiesFromProviders: null,\n districtsFromProviders: null,\n structuresFromProviders: null,\n themesFromProviders: null,\n routesFromProviders: null,\n practicesFromProviders: null,\n labelsFromProviders: null,\n offlineTreks: false,\n currentOutdoorSites: null,\n outdoorSites: null,\n outdoorSitesWithinBounds: null,\n currentOutdoorCourses: null,\n outdoorCourses: null,\n outdoorSiteTypes: null,\n outdoorPractices: null,\n selectedOutdoorSiteId: null,\n currentOutdoorSite: null,\n currentRelatedOutdoorSites: null,\n currentRelatedOutdoorCourses: null,\n selectedOutdoorCourseId: null,\n outdoorCourseTypes: null,\n currentOutdoorCourse: null,\n outdoorRatings: null,\n outdoorRatingsScale: null,\n offlineOutdoorSites: false,\n currentSignages: null,\n touristicContentsData: 0,\n touristicEventsData: 0,\n poisData: 0,\n});\n\nexport { onChange, reset };\n\nexport default state;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var r=function(e,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=e[t]};return r(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(r,e,t,n){function i(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,u){function o(r){try{c(n.next(r))}catch(r){u(r)}}function a(r){try{c(n["throw"](r))}catch(r){u(r)}}function c(r){r.done?t(r.value):i(r.value).then(o,a)}c((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(r){return function(e){return c([r,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(t=0)),t)try{if(n=1,i&&(u=a[0]&2?i["return"]:a[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,a[1])).done)return u;if(i=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(u=t.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){t.label=a[1];break}if(a[0]===6&&t.label<u[1]){t.label=u[1];u=a;break}if(u&&t.label<u[2]){t.label=u[2];t.ops.push(a);break}if(u[2])t.ops.pop();t.trys.pop();continue}a=e.call(r,t)}catch(r){a=[6,r];i=0}finally{n=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,u;n<i;n++){if(u||!(n in e)){if(!u)u=Array.prototype.slice.call(e,0,n);u[n]=e[n]}}return r.concat(u||Array.prototype.slice.call(e))};System.register(["./p-
|
|
2
|
-
/*! Capacitor: https://capacitorjs.com/ - MIT License */var i;(function(r){r["Unimplemented"]="UNIMPLEMENTED";r["Unavailable"]="UNAVAILABLE"})(i||(i={}));var u=function(r){__extends(e,r);function e(e,t,n){var i=r.call(this,e)||this;i.message=e;i.code=t;i.data=n;return i}return e}(Error);var o=function(r){var e,t;if(r===null||r===void 0?void 0:r.androidBridge){return"android"}else if((t=(e=r===null||r===void 0?void 0:r.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||t===void 0?void 0:t.bridge){return"ios"}else{return"web"}};var a=function(r){var e,t,a,c,s;var f=r.CapacitorCustomPlatform||null;var v=r.Capacitor||{};var l=v.Plugins=v.Plugins||{};var d=r.CapacitorPlatforms;var p=function(){return f!==null?f.name:o(r)};var y=((e=d===null||d===void 0?void 0:d.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||p;var _=function(){return y()!=="web"};var h=((t=d===null||d===void 0?void 0:d.currentPlatform)===null||t===void 0?void 0:t.isNativePlatform)||_;var m=function(r){var e=j.get(r);if(e===null||e===void 0?void 0:e.platforms.has(y())){return true}if(A(r)){return true}return false};var w=((a=d===null||d===void 0?void 0:d.currentPlatform)===null||a===void 0?void 0:a.isPluginAvailable)||m;var g=function(r){var e;return(e=v.PluginHeaders)===null||e===void 0?void 0:e.find((function(e){return e.name===r}))};var A=((c=d===null||d===void 0?void 0:d.currentPlatform)===null||c===void 0?void 0:c.getPluginHeader)||g;var b=function(e){return r.console.error(e)};var P=function(r,e,t){return Promise.reject("".concat(t,' does not have an implementation of "').concat(e,'".'))};var j=new Map;var O=function(r,e){if(e===void 0){e={}}var t=j.get(r);if(t){console.warn('Capacitor plugin "'.concat(r,'" already registered. Cannot register plugins twice.'));return t.proxy}var o=y();var a=A(r);var c;var s=function(){return __awaiter(n,void 0,void 0,(function(){var r,t;return __generator(this,(function(n){switch(n.label){case 0:if(!(!c&&o in e))return[3,4];if(!(typeof e[o]==="function"))return[3,2];return[4,e[o]()];case 1:r=c=n.sent();return[3,3];case 2:r=c=e[o];n.label=3;case 3:c=r;return[3,8];case 4:if(!(f!==null&&!c&&"web"in e))return[3,8];if(!(typeof e["web"]==="function"))return[3,6];return[4,e["web"]()];case 5:t=c=n.sent();return[3,7];case 6:t=c=e["web"];n.label=7;case 7:c=t;n.label=8;case 8:return[2,c]}}))}))};var d=function(e,t){var n,c;if(a){var s=a===null||a===void 0?void 0:a.methods.find((function(r){return t===r.name}));if(s){if(s.rtype==="promise"){return function(e){return v.nativePromise(r,t.toString(),e)}}else{return function(e,n){return v.nativeCallback(r,t.toString(),e,n)}}}else if(e){return(n=e[t])===null||n===void 0?void 0:n.bind(e)}}else if(e){return(c=e[t])===null||c===void 0?void 0:c.bind(e)}else{throw new u('"'.concat(r,'" plugin is not implemented on ').concat(o),i.Unimplemented)}};var p=function(e){var t;var a=function(){var a=[];for(var c=0;c<arguments.length;c++){a[c]=arguments[c]}var f=s().then((function(n){var c=d(n,e);if(c){var s=c.apply(void 0,a);t=s===null||s===void 0?void 0:s.remove;return s}else{throw new u('"'.concat(r,".").concat(e,'()" is not implemented on ').concat(o),i.Unimplemented)}}));if(e==="addListener"){f.remove=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t()]}))}))}}return f};a.toString=function(){return"".concat(e.toString(),"() { [capacitor code] }")};Object.defineProperty(a,"name",{value:e,writable:false,configurable:false});return a};var _=p("addListener");var h=p("removeListener");var m=function(r,e){var t=_({eventName:r},e);var i=function(){return __awaiter(n,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,t];case 1:n=i.sent();h({eventName:r,callbackId:n},e);return[2]}}))}))};var u=new Promise((function(r){return t.then((function(){return r({remove:i})}))}));u.remove=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,i()];case 1:r.sent();return[2]}}))}))};return u};var w=new Proxy({},{get:function(r,e){switch(e){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return a?m:_;case"removeListener":return h;default:return p(e)}}});l[r]=w;j.set(r,{name:r,proxy:w,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(e),true),a?[o]:[],true))});return w};var k=((s=d===null||d===void 0?void 0:d.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||O;if(!v.convertFileSrc){v.convertFileSrc=function(r){return r}}v.getPlatform=y;v.handleError=b;v.isNativePlatform=h;v.isPluginAvailable=w;v.pluginMethodNoop=P;v.registerPlugin=k;v.Exception=u;v.DEBUG=!!v.DEBUG;v.isLoggingEnabled=!!v.isLoggingEnabled;v.platform=v.getPlatform();v.isNative=v.isNativePlatform();return v};var c=function(r){return r.Capacitor=a(r)};var s=r("C",c(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{}));var f=r("b",s.registerPlugin);var v=function(){function r(r){this.listeners={};this.windowListeners={};if(r){console.warn('Capacitor WebPlugin "'.concat(r.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=r}}r.prototype.addListener=function(r,e){var t=this;var n=this.listeners[r];if(!n){this.listeners[r]=[]}this.listeners[r].push(e);var i=this.windowListeners[r];if(i&&!i.registered){this.addWindowListener(i)}var u=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.removeListener(r,e)]}))}))};var o=Promise.resolve({remove:u});Object.defineProperty(o,"remove",{value:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,u()];case 1:r.sent();return[2]}}))}))}});return o};r.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){this.listeners={};for(r in this.windowListeners){this.removeWindowListener(this.windowListeners[r])}this.windowListeners={};return[2]}))}))};r.prototype.notifyListeners=function(r,e){var t=this.listeners[r];if(t){t.forEach((function(r){return r(e)}))}};r.prototype.hasListeners=function(r){return!!this.listeners[r].length};r.prototype.registerWindowListener=function(r,e){var t=this;this.windowListeners[e]={registered:false,windowEventName:r,pluginEventName:e,handler:function(r){t.notifyListeners(e,r)}}};r.prototype.unimplemented=function(r){if(r===void 0){r="not implemented"}return new s.Exception(r,i.Unimplemented)};r.prototype.unavailable=function(r){if(r===void 0){r="not available"}return new s.Exception(r,i.Unavailable)};r.prototype.removeListener=function(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){t=this.listeners[r];if(!t){return[2]}n=t.indexOf(e);this.listeners[r].splice(n,1);if(!this.listeners[r].length){this.removeWindowListener(this.windowListeners[r])}return[2]}))}))};r.prototype.addWindowListener=function(r){window.addEventListener(r.windowEventName,r.handler);r.registered=true};r.prototype.removeWindowListener=function(r){if(!r){return}window.removeEventListener(r.windowEventName,r.handler);r.registered=false};return r}();r("W",v);var l=function(r){return encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var d=function(r){return r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var p=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){r=document.cookie;e={};r.split(";").forEach((function(r){if(r.length<=0)return;var t=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=t[0],i=t[1];n=d(n).trim();i=d(i).trim();e[n]=i}));return[2,e]}))}))};e.prototype.setCookie=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,u;return __generator(this,(function(o){try{e=l(r.key);t=l(r.value);n="; expires=".concat((r.expires||"").replace("expires=",""));i=(r.path||"/").replace("path=","");u=r.url!=null&&r.url.length>0?"domain=".concat(r.url):"";document.cookie="".concat(e,"=").concat(t||"").concat(n,"; path=").concat(i,"; ").concat(u,";")}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.deleteCookie=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){try{document.cookie="".concat(r.key,"=; Max-Age=0")}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t,n;return __generator(this,(function(i){try{r=document.cookie.split(";")||[];for(e=0,t=r;e<t.length;e++){n=t[e];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:e.sent();return[3,3];case 2:r=e.sent();return[2,Promise.reject(r)];case 3:return[2]}}))}))};return e}(v);f("CapacitorCookies",{web:function(){return new p}});var y=function(r){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){return[2,new Promise((function(e,t){var n=new FileReader;n.onload=function(){var r=n.result;e(r.indexOf(",")>=0?r.split(",")[1]:r)};n.onerror=function(r){return t(r)};n.readAsDataURL(r)}))]}))}))};var _=function(r){if(r===void 0){r={}}var e=Object.keys(r);var t=Object.keys(r).map((function(r){return r.toLocaleLowerCase()}));var n=t.reduce((function(t,n,i){t[n]=r[e[i]];return t}),{});return n};var h=function(r,e){if(e===void 0){e=true}if(!r)return null;var t=Object.entries(r).reduce((function(r,t){var n=t[0],i=t[1];var u;var o;if(Array.isArray(i)){o="";i.forEach((function(r){u=e?encodeURIComponent(r):r;o+="".concat(n,"=").concat(u,"&")}));o.slice(0,-1)}else{u=e?encodeURIComponent(i):i;o="".concat(n,"=").concat(u)}return"".concat(r,"&").concat(o)}),"");return t.substr(1)};var m=r("x",(function(r,e){if(e===void 0){e={}}var t=Object.assign({method:r.method||"GET",headers:r.headers},e);var n=_(r.headers);var i=n["content-type"]||"";if(typeof r.data==="string"){t.body=r.data}else if(i.includes("application/x-www-form-urlencoded")){var u=new URLSearchParams;for(var o=0,a=Object.entries(r.data||{});o<a.length;o++){var c=a[o],s=c[0],f=c[1];u.set(s,f)}t.body=u.toString()}else if(i.includes("multipart/form-data")||r.data instanceof FormData){var v=new FormData;if(r.data instanceof FormData){r.data.forEach((function(r,e){v.append(e,r)}))}else{for(var l=0,d=Object.keys(r.data);l<d.length;l++){var s=d[l];v.append(s,r.data[s])}}t.body=v;var p=new Headers(t.headers);p.delete("content-type");t.headers=p}else if(i.includes("application/json")||typeof r.data==="object"){t.body=JSON.stringify(r.data)}return t}));var w=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.request=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,u,o,a,c,s,f,v;return __generator(this,(function(l){switch(l.label){case 0:e=m(r,r.webFetchExtra);t=h(r.params,r.shouldEncodeUrlParams);n=t?"".concat(r.url,"?").concat(t):r.url;return[4,fetch(n,e)];case 1:i=l.sent();u=i.headers.get("content-type")||"";o=(i.ok?r:{}).responseType,a=o===void 0?"text":o;if(u.includes("application/json")){a="json"}f=a;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:s=l.sent();return[4,y(s)];case 4:c=l.sent();return[3,9];case 5:return[4,i.json()];case 6:c=l.sent();return[3,9];case 7:return[4,i.text()];case 8:c=l.sent();l.label=9;case 9:v={};i.headers.forEach((function(r,e){v[e]=r}));return[2,{data:c,headers:v,status:i.status,url:i.url}]}}))}))};e.prototype.get=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"GET"}))]}))}))};e.prototype.post=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"POST"}))]}))}))};e.prototype.put=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"PUT"}))]}))}))};e.prototype.patch=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"PATCH"}))]}))}))};e.prototype.delete=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"DELETE"}))]}))}))};return e}(v);f("CapacitorHttp",{web:function(){return new w}});var g;r("D",g);(function(r){r["Documents"]="DOCUMENTS";r["Data"]="DATA";r["Library"]="LIBRARY";r["Cache"]="CACHE";r["External"]="EXTERNAL";r["ExternalStorage"]="EXTERNAL_STORAGE"})(g||r("D",g={}));var A;r("E",A);(function(r){r["UTF8"]="utf8";r["ASCII"]="ascii";r["UTF16"]="utf16"})(A||r("E",A={}));var b=r("F",f("Filesystem",{web:function(){return e.import("./p-31cd5fb6.system.js").then((function(r){return new r.FilesystemWeb}))}}));function P(r){var e="";if(r<24){if(Math.floor(r)!==0){e+="".concat(Math.floor(r),"h")}if(r%1>0){e+="".concat(Math.round(60*(r%1)),"min")}}else{e+="".concat(Math.round(r/24),"j")}return e}function j(r){return"".concat(Math.round(r/1e3),"km")}function O(r){return"+".concat(r,"m")}function k(r){return"".concat(r,"m")}var E=r("t",[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var I=r("e",[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var x=r("f",[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var C=r("o",[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}]);function F(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.trekPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.trekProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.trekProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.trekProperty]>=i.minValue&&r[n.trekProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.trekPropertyIsArray){e=__spreadArray([],t.treks.filter((function(r){return r[n.trekProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.treks.filter((function(r){return i.includes(r[n.trekProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.treks.filter((function(r){return r[n.trekProperty]>=u&&r[n.trekProperty]<=o})),true)}}}};for(var i=0,u=E;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.treks;a=a.filter((function(r){return!t.offlineTreks||t.offlineTreks&&r.offline}));return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function N(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.touristicContentPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.touristicContentProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.touristicContentProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.touristicContentProperty]>=i.minValue&&r[n.touristicContentProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.touristicContentPropertyIsArray){e=__spreadArray([],t.touristicContents.filter((function(r){return r[n.touristicContentProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.touristicContents.filter((function(r){return i.includes(r[n.touristicContentProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.touristicContents.filter((function(r){return r[n.touristicContentProperty]>=u&&r[n.touristicContentProperty]<=o})),true)}}}};for(var i=0,u=I;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.touristicContents;return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function L(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.touristicEventPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.touristicEventProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.touristicEventProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.touristicEventProperty]>=i.minValue&&r[n.touristicEventProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.touristicEventPropertyIsArray){e=__spreadArray([],t.touristicEvents.filter((function(r){return r[n.touristicEventProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.touristicEvents.filter((function(r){return i.includes(r[n.touristicEventProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.touristicEvents.filter((function(r){return r[n.touristicEventProperty]>=u&&r[n.touristicEventProperty]<=o})),true)}}}};for(var i=0,u=x;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.touristicEvents;return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function S(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.outdoorSitePropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.outdoorSiteProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.outdoorSiteProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.outdoorSiteProperty]>=i.minValue&&r[n.outdoorSiteProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.outdoorSitePropertyIsArray){e=__spreadArray([],t.outdoorSites.filter((function(r){return r[n.outdoorSiteProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.outdoorSites.filter((function(r){return i.includes(r[n.outdoorSiteProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.outdoorSites.filter((function(r){return r[n.outdoorSiteProperty]>=u&&r[n.outdoorSiteProperty]<=o})),true)}}}};for(var i=0,u=C;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.outdoorSites;a=a.filter((function(r){return!t.offlineOutdoorSites||t.offlineOutdoorSites&&r.offline}));return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}var V=r("u",[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}]);var T=r("v",[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}]);var R=r("w",[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}]);function U(r,e,t,n){if(t===void 0){t=false}if(n===void 0){n=[]}var i=[];for(var u=0,o=Object.keys(r);u<o.length;u++){var a=o[u];if(r[a]){if(typeof r[a]==="object"&&(!Array.isArray(r[a])||!t)){i.push.apply(i,U(r[a],e,t,n))}else if(typeof r[a]==="string"&&e.test(r[a].toLowerCase())){if(!n.includes(a)){i.push(r[a])}}else if(typeof r[a]==="object"&&Array.isArray(r[a])&&t&&r[a].length>0){i.push.apply(i,U(r[a][0],e,t,n))}}}return __spreadArray([],new Set(i),true)}function D(r,e){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,u,o,o;if(t===void 0){t=[]}return __generator(this,(function(a){switch(a.label){case 0:n=0,i=Object.keys(r);a.label=1;case 1:if(!(n<i.length))return[3,8];u=i[n];if(!r[u])return[3,7];if(!(typeof r[u]==="object"))return[3,3];return[4,D(r[u],e)];case 2:a.sent();return[3,7];case 3:if(!(typeof r[u]==="string"&&e.test(r[u].toLowerCase())))return[3,7];if(!!t.includes(u))return[3,7];if(!!s.isNativePlatform())return[3,5];return[4,G(r[u])];case 4:o=a.sent();if(o){r[u]=window.URL.createObjectURL(o.data)}return[3,7];case 5:return[4,b.getUri({path:r[u],directory:g.Data})];case 6:o=a.sent();if(o){r[u]=s.convertFileSrc(o.uri)}a.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function M(r,e){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,u,o;if(t===void 0){t=[]}return __generator(this,(function(a){switch(a.label){case 0:n=0,i=Object.keys(r);a.label=1;case 1:if(!(n<i.length))return[3,6];u=i[n];if(!!t.includes(u))return[3,5];if(!r[u])return[3,5];if(!(typeof r[u]==="object"))return[3,3];return[4,D(r[u],e)];case 2:a.sent();return[3,5];case 3:if(!(typeof r[u]==="string"&&e.test(r[u].toLowerCase())))return[3,5];return[4,G(r[u])];case 4:o=a.sent();if(o){URL.revokeObjectURL(r[u])}a.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var B=r("i",new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$"));function G(r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,b.readFile({path:r,directory:g.Data}).catch((function(){return null}))];case 1:e=t.sent();return[2,e]}}))}))}function H(r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,b.stat({path:r,directory:g.Data}).catch((function(){return null}))];case 1:e=t.sent();return[2,e]}}))}))}function J(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,u,o,a,c;return __generator(this,(function(s){switch(s.label){case 0:return[4,fetch(r,e)];case 1:t=s.sent();return[4,t.json()];case 2:n=s.sent();i=n.results;u=n.next;s.label=3;case 3:if(!u)return[3,6];return[4,fetch(u,e)];case 4:o=s.sent();return[4,o.json()];case 5:a=s.sent();i=i.concat(a.results);u=a.next;return[3,3];case 6:c=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,c]}}))}))}}}}));
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,t){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=e[t]};return r(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(r,e,t,n){function i(r){return r instanceof t?r:new t((function(e){e(r)}))}return new(t||(t=Promise))((function(t,u){function o(r){try{c(n.next(r))}catch(r){u(r)}}function a(r){try{c(n["throw"](r))}catch(r){u(r)}}function c(r){r.done?t(r.value):i(r.value).then(o,a)}c((n=n.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var t={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(r){return function(e){return c([r,e])}}function c(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(t=0)),t)try{if(n=1,i&&(u=a[0]&2?i["return"]:a[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,a[1])).done)return u;if(i=0,u)a=[a[0]&2,u.value];switch(a[0]){case 0:case 1:u=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(u=t.trys,u=u.length>0&&u[u.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!u||a[1]>u[0]&&a[1]<u[3])){t.label=a[1];break}if(a[0]===6&&t.label<u[1]){t.label=u[1];u=a;break}if(u&&t.label<u[2]){t.label=u[2];t.ops.push(a);break}if(u[2])t.ops.pop();t.trys.pop();continue}a=e.call(r,t)}catch(r){a=[6,r];i=0}finally{n=u=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,u;n<i;n++){if(u||!(n in e)){if(!u)u=Array.prototype.slice.call(e,0,n);u[n]=e[n]}}return r.concat(u||Array.prototype.slice.call(e))};System.register(["./p-0e29bbf9.system.js"],(function(r,e){"use strict";var t;return{setters:[function(r){t=r.s}],execute:function(){var n=this;r({a:S,c:H,d:J,g:U,h:F,j:N,k:L,l:G,m:P,n:j,p:O,q:k,r:M,s:D});
|
|
2
|
+
/*! Capacitor: https://capacitorjs.com/ - MIT License */var i;(function(r){r["Unimplemented"]="UNIMPLEMENTED";r["Unavailable"]="UNAVAILABLE"})(i||(i={}));var u=function(r){__extends(e,r);function e(e,t,n){var i=r.call(this,e)||this;i.message=e;i.code=t;i.data=n;return i}return e}(Error);var o=function(r){var e,t;if(r===null||r===void 0?void 0:r.androidBridge){return"android"}else if((t=(e=r===null||r===void 0?void 0:r.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||t===void 0?void 0:t.bridge){return"ios"}else{return"web"}};var a=function(r){var e,t,a,c,s;var f=r.CapacitorCustomPlatform||null;var v=r.Capacitor||{};var l=v.Plugins=v.Plugins||{};var d=r.CapacitorPlatforms;var p=function(){return f!==null?f.name:o(r)};var y=((e=d===null||d===void 0?void 0:d.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||p;var _=function(){return y()!=="web"};var h=((t=d===null||d===void 0?void 0:d.currentPlatform)===null||t===void 0?void 0:t.isNativePlatform)||_;var m=function(r){var e=j.get(r);if(e===null||e===void 0?void 0:e.platforms.has(y())){return true}if(A(r)){return true}return false};var w=((a=d===null||d===void 0?void 0:d.currentPlatform)===null||a===void 0?void 0:a.isPluginAvailable)||m;var g=function(r){var e;return(e=v.PluginHeaders)===null||e===void 0?void 0:e.find((function(e){return e.name===r}))};var A=((c=d===null||d===void 0?void 0:d.currentPlatform)===null||c===void 0?void 0:c.getPluginHeader)||g;var b=function(e){return r.console.error(e)};var P=function(r,e,t){return Promise.reject("".concat(t,' does not have an implementation of "').concat(e,'".'))};var j=new Map;var O=function(r,e){if(e===void 0){e={}}var t=j.get(r);if(t){console.warn('Capacitor plugin "'.concat(r,'" already registered. Cannot register plugins twice.'));return t.proxy}var o=y();var a=A(r);var c;var s=function(){return __awaiter(n,void 0,void 0,(function(){var r,t;return __generator(this,(function(n){switch(n.label){case 0:if(!(!c&&o in e))return[3,4];if(!(typeof e[o]==="function"))return[3,2];return[4,e[o]()];case 1:r=c=n.sent();return[3,3];case 2:r=c=e[o];n.label=3;case 3:c=r;return[3,8];case 4:if(!(f!==null&&!c&&"web"in e))return[3,8];if(!(typeof e["web"]==="function"))return[3,6];return[4,e["web"]()];case 5:t=c=n.sent();return[3,7];case 6:t=c=e["web"];n.label=7;case 7:c=t;n.label=8;case 8:return[2,c]}}))}))};var d=function(e,t){var n,c;if(a){var s=a===null||a===void 0?void 0:a.methods.find((function(r){return t===r.name}));if(s){if(s.rtype==="promise"){return function(e){return v.nativePromise(r,t.toString(),e)}}else{return function(e,n){return v.nativeCallback(r,t.toString(),e,n)}}}else if(e){return(n=e[t])===null||n===void 0?void 0:n.bind(e)}}else if(e){return(c=e[t])===null||c===void 0?void 0:c.bind(e)}else{throw new u('"'.concat(r,'" plugin is not implemented on ').concat(o),i.Unimplemented)}};var p=function(e){var t;var a=function(){var a=[];for(var c=0;c<arguments.length;c++){a[c]=arguments[c]}var f=s().then((function(n){var c=d(n,e);if(c){var s=c.apply(void 0,a);t=s===null||s===void 0?void 0:s.remove;return s}else{throw new u('"'.concat(r,".").concat(e,'()" is not implemented on ').concat(o),i.Unimplemented)}}));if(e==="addListener"){f.remove=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){return[2,t()]}))}))}}return f};a.toString=function(){return"".concat(e.toString(),"() { [capacitor code] }")};Object.defineProperty(a,"name",{value:e,writable:false,configurable:false});return a};var _=p("addListener");var h=p("removeListener");var m=function(r,e){var t=_({eventName:r},e);var i=function(){return __awaiter(n,void 0,void 0,(function(){var n;return __generator(this,(function(i){switch(i.label){case 0:return[4,t];case 1:n=i.sent();h({eventName:r,callbackId:n},e);return[2]}}))}))};var u=new Promise((function(r){return t.then((function(){return r({remove:i})}))}));u.remove=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,i()];case 1:r.sent();return[2]}}))}))};return u};var w=new Proxy({},{get:function(r,e){switch(e){case"$$typeof":return undefined;case"toJSON":return function(){return{}};case"addListener":return a?m:_;case"removeListener":return h;default:return p(e)}}});l[r]=w;j.set(r,{name:r,proxy:w,platforms:new Set(__spreadArray(__spreadArray([],Object.keys(e),true),a?[o]:[],true))});return w};var k=((s=d===null||d===void 0?void 0:d.currentPlatform)===null||s===void 0?void 0:s.registerPlugin)||O;if(!v.convertFileSrc){v.convertFileSrc=function(r){return r}}v.getPlatform=y;v.handleError=b;v.isNativePlatform=h;v.isPluginAvailable=w;v.pluginMethodNoop=P;v.registerPlugin=k;v.Exception=u;v.DEBUG=!!v.DEBUG;v.isLoggingEnabled=!!v.isLoggingEnabled;v.platform=v.getPlatform();v.isNative=v.isNativePlatform();return v};var c=function(r){return r.Capacitor=a(r)};var s=r("C",c(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{}));var f=r("b",s.registerPlugin);var v=function(){function r(r){this.listeners={};this.windowListeners={};if(r){console.warn('Capacitor WebPlugin "'.concat(r.name,'" config object was deprecated in v3 and will be removed in v4.'));this.config=r}}r.prototype.addListener=function(r,e){var t=this;var n=this.listeners[r];if(!n){this.listeners[r]=[]}this.listeners[r].push(e);var i=this.windowListeners[r];if(i&&!i.registered){this.addWindowListener(i)}var u=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.removeListener(r,e)]}))}))};var o=Promise.resolve({remove:u});Object.defineProperty(o,"remove",{value:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:console.warn("Using addListener() without 'await' is deprecated.");return[4,u()];case 1:r.sent();return[2]}}))}))}});return o};r.prototype.removeAllListeners=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){this.listeners={};for(r in this.windowListeners){this.removeWindowListener(this.windowListeners[r])}this.windowListeners={};return[2]}))}))};r.prototype.notifyListeners=function(r,e){var t=this.listeners[r];if(t){t.forEach((function(r){return r(e)}))}};r.prototype.hasListeners=function(r){return!!this.listeners[r].length};r.prototype.registerWindowListener=function(r,e){var t=this;this.windowListeners[e]={registered:false,windowEventName:r,pluginEventName:e,handler:function(r){t.notifyListeners(e,r)}}};r.prototype.unimplemented=function(r){if(r===void 0){r="not implemented"}return new s.Exception(r,i.Unimplemented)};r.prototype.unavailable=function(r){if(r===void 0){r="not available"}return new s.Exception(r,i.Unavailable)};r.prototype.removeListener=function(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){t=this.listeners[r];if(!t){return[2]}n=t.indexOf(e);this.listeners[r].splice(n,1);if(!this.listeners[r].length){this.removeWindowListener(this.windowListeners[r])}return[2]}))}))};r.prototype.addWindowListener=function(r){window.addEventListener(r.windowEventName,r.handler);r.registered=true};r.prototype.removeWindowListener=function(r){if(!r){return}window.removeEventListener(r.windowEventName,r.handler);r.registered=false};return r}();r("W",v);var l=function(r){return encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)};var d=function(r){return r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)};var p=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.getCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){r=document.cookie;e={};r.split(";").forEach((function(r){if(r.length<=0)return;var t=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),n=t[0],i=t[1];n=d(n).trim();i=d(i).trim();e[n]=i}));return[2,e]}))}))};e.prototype.setCookie=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,u;return __generator(this,(function(o){try{e=l(r.key);t=l(r.value);n="; expires=".concat((r.expires||"").replace("expires=",""));i=(r.path||"/").replace("path=","");u=r.url!=null&&r.url.length>0?"domain=".concat(r.url):"";document.cookie="".concat(e,"=").concat(t||"").concat(n,"; path=").concat(i,"; ").concat(u,";")}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.deleteCookie=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){try{document.cookie="".concat(r.key,"=; Max-Age=0")}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.clearCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r,e,t,n;return __generator(this,(function(i){try{r=document.cookie.split(";")||[];for(e=0,t=r;e<t.length;e++){n=t[e];document.cookie=n.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}}catch(r){return[2,Promise.reject(r)]}return[2]}))}))};e.prototype.clearAllCookies=function(){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(e){switch(e.label){case 0:e.trys.push([0,2,,3]);return[4,this.clearCookies()];case 1:e.sent();return[3,3];case 2:r=e.sent();return[2,Promise.reject(r)];case 3:return[2]}}))}))};return e}(v);f("CapacitorCookies",{web:function(){return new p}});var y=function(r){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){return[2,new Promise((function(e,t){var n=new FileReader;n.onload=function(){var r=n.result;e(r.indexOf(",")>=0?r.split(",")[1]:r)};n.onerror=function(r){return t(r)};n.readAsDataURL(r)}))]}))}))};var _=function(r){if(r===void 0){r={}}var e=Object.keys(r);var t=Object.keys(r).map((function(r){return r.toLocaleLowerCase()}));var n=t.reduce((function(t,n,i){t[n]=r[e[i]];return t}),{});return n};var h=function(r,e){if(e===void 0){e=true}if(!r)return null;var t=Object.entries(r).reduce((function(r,t){var n=t[0],i=t[1];var u;var o;if(Array.isArray(i)){o="";i.forEach((function(r){u=e?encodeURIComponent(r):r;o+="".concat(n,"=").concat(u,"&")}));o.slice(0,-1)}else{u=e?encodeURIComponent(i):i;o="".concat(n,"=").concat(u)}return"".concat(r,"&").concat(o)}),"");return t.substr(1)};var m=r("x",(function(r,e){if(e===void 0){e={}}var t=Object.assign({method:r.method||"GET",headers:r.headers},e);var n=_(r.headers);var i=n["content-type"]||"";if(typeof r.data==="string"){t.body=r.data}else if(i.includes("application/x-www-form-urlencoded")){var u=new URLSearchParams;for(var o=0,a=Object.entries(r.data||{});o<a.length;o++){var c=a[o],s=c[0],f=c[1];u.set(s,f)}t.body=u.toString()}else if(i.includes("multipart/form-data")||r.data instanceof FormData){var v=new FormData;if(r.data instanceof FormData){r.data.forEach((function(r,e){v.append(e,r)}))}else{for(var l=0,d=Object.keys(r.data);l<d.length;l++){var s=d[l];v.append(s,r.data[s])}}t.body=v;var p=new Headers(t.headers);p.delete("content-type");t.headers=p}else if(i.includes("application/json")||typeof r.data==="object"){t.body=JSON.stringify(r.data)}return t}));var w=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.request=function(r){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,u,o,a,c,s,f,v;return __generator(this,(function(l){switch(l.label){case 0:e=m(r,r.webFetchExtra);t=h(r.params,r.shouldEncodeUrlParams);n=t?"".concat(r.url,"?").concat(t):r.url;return[4,fetch(n,e)];case 1:i=l.sent();u=i.headers.get("content-type")||"";o=(i.ok?r:{}).responseType,a=o===void 0?"text":o;if(u.includes("application/json")){a="json"}f=a;switch(f){case"arraybuffer":return[3,2];case"blob":return[3,2];case"json":return[3,5];case"document":return[3,7];case"text":return[3,7]}return[3,7];case 2:return[4,i.blob()];case 3:s=l.sent();return[4,y(s)];case 4:c=l.sent();return[3,9];case 5:return[4,i.json()];case 6:c=l.sent();return[3,9];case 7:return[4,i.text()];case 8:c=l.sent();l.label=9;case 9:v={};i.headers.forEach((function(r,e){v[e]=r}));return[2,{data:c,headers:v,status:i.status,url:i.url}]}}))}))};e.prototype.get=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"GET"}))]}))}))};e.prototype.post=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"POST"}))]}))}))};e.prototype.put=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"PUT"}))]}))}))};e.prototype.patch=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"PATCH"}))]}))}))};e.prototype.delete=function(r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.request(Object.assign(Object.assign({},r),{method:"DELETE"}))]}))}))};return e}(v);f("CapacitorHttp",{web:function(){return new w}});var g;r("D",g);(function(r){r["Documents"]="DOCUMENTS";r["Data"]="DATA";r["Library"]="LIBRARY";r["Cache"]="CACHE";r["External"]="EXTERNAL";r["ExternalStorage"]="EXTERNAL_STORAGE"})(g||r("D",g={}));var A;r("E",A);(function(r){r["UTF8"]="utf8";r["ASCII"]="ascii";r["UTF16"]="utf16"})(A||r("E",A={}));var b=r("F",f("Filesystem",{web:function(){return e.import("./p-06ec8b64.system.js").then((function(r){return new r.FilesystemWeb}))}}));function P(r){var e="";if(r<24){if(Math.floor(r)!==0){e+="".concat(Math.floor(r),"h")}if(r%1>0){e+="".concat(Math.round(60*(r%1)),"min")}}else{e+="".concat(Math.round(r/24),"j")}return e}function j(r){return"".concat(Math.round(r/1e3),"km")}function O(r){return"+".concat(r,"m")}function k(r){return"".concat(r,"m")}var E=r("t",[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var I=r("e",[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var x=r("f",[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}]);var C=r("o",[{property:"outdoorPractices",outdoorSiteProperty:"practice",outdoorSitePropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"outdoorSiteTypes",outdoorSiteProperty:"type",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",outdoorSiteProperty:"cities",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",outdoorSiteProperty:"districts",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"themes",outdoorSiteProperty:"themes",outdoorSitePropertyIsArray:true,type:"include",segment:"selectedThemesFilters"}]);function F(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.trekPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.trekProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.trekProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.trekProperty]>=i.minValue&&r[n.trekProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.trekPropertyIsArray){e=__spreadArray([],t.treks.filter((function(r){return r[n.trekProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.treks.filter((function(r){return i.includes(r[n.trekProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.treks.filter((function(r){return r[n.trekProperty]>=u&&r[n.trekProperty]<=o})),true)}}}};for(var i=0,u=E;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.treks;a=a.filter((function(r){return!t.offlineTreks||t.offlineTreks&&r.offline}));return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function N(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.touristicContentPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.touristicContentProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.touristicContentProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.touristicContentProperty]>=i.minValue&&r[n.touristicContentProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.touristicContentPropertyIsArray){e=__spreadArray([],t.touristicContents.filter((function(r){return r[n.touristicContentProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.touristicContents.filter((function(r){return i.includes(r[n.touristicContentProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.touristicContents.filter((function(r){return r[n.touristicContentProperty]>=u&&r[n.touristicContentProperty]<=o})),true)}}}};for(var i=0,u=I;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.touristicContents;return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function L(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.touristicEventPropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.touristicEventProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.touristicEventProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.touristicEventProperty]>=i.minValue&&r[n.touristicEventProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.touristicEventPropertyIsArray){e=__spreadArray([],t.touristicEvents.filter((function(r){return r[n.touristicEventProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.touristicEvents.filter((function(r){return i.includes(r[n.touristicEventProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.touristicEvents.filter((function(r){return r[n.touristicEventProperty]>=u&&r[n.touristicEventProperty]<=o})),true)}}}};for(var i=0,u=x;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.touristicEvents;return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}function S(){var r=false;var e=[];var n=function(n){var i=t[n.property].filter((function(r){return r.selected})).map((function(r){return r.id}));if(i.length>0){if(e.length>0){if(n.type==="include"){if(n.outdoorSitePropertyIsArray){e=__spreadArray([],e.filter((function(r){return r[n.outdoorSiteProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],e.filter((function(r){return i.includes(r[n.outdoorSiteProperty])})),true)}}else if(n.type==="interval"){e=__spreadArray([],e.filter((function(r){var e=function(e){var i=t[n.property].find((function(r){return r.id===e}));if(r[n.outdoorSiteProperty]>=i.minValue&&r[n.outdoorSiteProperty]<=i.maxValue){return{value:true}}};for(var u=0,o=i;u<o.length;u++){var a=o[u];var c=e(a);if(typeof c==="object")return c.value}return false})),true)}}else{if(!r){r=true}if(n.type==="include"){if(n.outdoorSitePropertyIsArray){e=__spreadArray([],t.outdoorSites.filter((function(r){return r[n.outdoorSiteProperty].some((function(r){return i.includes(r)}))})),true)}else{e=__spreadArray([],t.outdoorSites.filter((function(r){return i.includes(r[n.outdoorSiteProperty])})),true)}}else if(n.type==="interval"){var u;var o;var a=function(r){var e=t[n.property].find((function(e){return e.id===r}));if(isNaN(u)||e.minValue<u){u=e.minValue}if(isNaN(o)||e.maxValue>o){o=e.maxValue}};for(var c=0,s=i;c<s.length;c++){var f=s[c];a(f)}e=__spreadArray([],t.outdoorSites.filter((function(r){return r[n.outdoorSiteProperty]>=u&&r[n.outdoorSiteProperty]<=o})),true)}}}};for(var i=0,u=C;i<u.length;i++){var o=u[i];n(o)}var a=r?e:t.outdoorSites;a=a.filter((function(r){return!t.offlineOutdoorSites||t.offlineOutdoorSites&&r.offline}));return Boolean(t.searchValue)?a.filter((function(r){return r.name.toLowerCase().includes(t.searchValue.toLowerCase())})):a}var V=r("u",[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}]);var T=r("v",[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}]);var R=r("w",[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}]);function U(r,e,t,n){if(t===void 0){t=false}if(n===void 0){n=[]}var i=[];for(var u=0,o=Object.keys(r);u<o.length;u++){var a=o[u];if(r[a]){if(typeof r[a]==="object"&&(!Array.isArray(r[a])||!t)){i.push.apply(i,U(r[a],e,t,n))}else if(typeof r[a]==="string"&&e.test(r[a].toLowerCase())){if(!n.includes(a)){i.push(r[a])}}else if(typeof r[a]==="object"&&Array.isArray(r[a])&&t&&r[a].length>0){i.push.apply(i,U(r[a][0],e,t,n))}}}return __spreadArray([],new Set(i),true)}function D(r,e){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,u,o,o;if(t===void 0){t=[]}return __generator(this,(function(a){switch(a.label){case 0:n=0,i=Object.keys(r);a.label=1;case 1:if(!(n<i.length))return[3,8];u=i[n];if(!r[u])return[3,7];if(!(typeof r[u]==="object"))return[3,3];return[4,D(r[u],e)];case 2:a.sent();return[3,7];case 3:if(!(typeof r[u]==="string"&&e.test(r[u].toLowerCase())))return[3,7];if(!!t.includes(u))return[3,7];if(!!s.isNativePlatform())return[3,5];return[4,G(r[u])];case 4:o=a.sent();if(o){r[u]=window.URL.createObjectURL(o.data)}return[3,7];case 5:return[4,b.getUri({path:r[u],directory:g.Data})];case 6:o=a.sent();if(o){r[u]=s.convertFileSrc(o.uri)}a.label=7;case 7:n++;return[3,1];case 8:return[2]}}))}))}function M(r,e){return __awaiter(this,arguments,void 0,(function(r,e,t){var n,i,u,o;if(t===void 0){t=[]}return __generator(this,(function(a){switch(a.label){case 0:n=0,i=Object.keys(r);a.label=1;case 1:if(!(n<i.length))return[3,6];u=i[n];if(!!t.includes(u))return[3,5];if(!r[u])return[3,5];if(!(typeof r[u]==="object"))return[3,3];return[4,D(r[u],e)];case 2:a.sent();return[3,5];case 3:if(!(typeof r[u]==="string"&&e.test(r[u].toLowerCase())))return[3,5];return[4,G(r[u])];case 4:o=a.sent();if(o){URL.revokeObjectURL(r[u])}a.label=5;case 5:n++;return[3,1];case 6:return[2]}}))}))}var B=r("i",new RegExp("^(http(s)?://|www.).*(.png|.jpg|.jpeg|.svg)$"));function G(r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,b.readFile({path:r,directory:g.Data}).catch((function(){return null}))];case 1:e=t.sent();return[2,e]}}))}))}function H(r){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,b.stat({path:r,directory:g.Data}).catch((function(){return null}))];case 1:e=t.sent();return[2,e]}}))}))}function J(r,e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,u,o,a,c;return __generator(this,(function(s){switch(s.label){case 0:return[4,fetch(r,e)];case 1:t=s.sent();return[4,t.json()];case 2:n=s.sent();i=n.results;u=n.next;s.label=3;case 3:if(!u)return[3,6];return[4,fetch(u,e)];case 4:o=s.sent();return[4,o.json()];case 5:a=s.sent();i=i.concat(a.results);u=a.next;return[3,3];case 6:c=new Response(JSON.stringify(Object.assign(Object.assign({},n),{results:i,next:null,count:i.length})));return[2,c]}}))}))}}}}));
|
|
3
|
+
//# sourceMappingURL=p-11622ab2.system.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,o;n<r;n++){if(o||!(n in i)){if(!o)o=Array.prototype.slice.call(i,0,n);o[n]=i[n]}}return t.concat(o||Array.prototype.slice.call(i))};System.register(["./p-e0867d29.system.js","./p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,o;n<r;n++){if(o||!(n in i)){if(!o)o=Array.prototype.slice.call(i,0,n);o[n]=i[n]}}return t.concat(o||Array.prototype.slice.call(i))};System.register(["./p-e0867d29.system.js","./p-0e29bbf9.system.js","./p-11622ab2.system.js"],(function(t){"use strict";var i,e,n,r,o,s,c,a,u,h,l,f,d,v;return{setters:[function(t){i=t.r;e=t.f;n=t.h;r=t.H;o=t.g},function(t){s=t.s},function(t){c=t.t;a=t.h;u=t.e;h=t.j;l=t.f;f=t.k;d=t.o;v=t.a}],execute:function(){
|
|
2
2
|
/*! For license information please see choices.min.js.LICENSE.txt */
|
|
3
3
|
!function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var n=e(883);i.addChoice=function(t){var i=t.value,e=t.label,r=t.id,o=t.groupId,s=t.disabled,c=t.elementId,a=t.customProperties,u=t.placeholder,h=t.keyCode;return{type:n.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:r,groupId:o,disabled:s,elementId:c,customProperties:a,placeholder:u,keyCode:h}},i.filterChoices=function(t){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:t}},i.activateChoices=function(t){return void 0===t&&(t=!0),{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},i.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.addGroup=void 0;var n=e(883);i.addGroup=function(t){var i=t.value,e=t.id,r=t.active,o=t.disabled;return{type:n.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:r,disabled:o}}},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.highlightItem=i.removeItem=i.addItem=void 0;var n=e(883);i.addItem=function(t){var i=t.value,e=t.label,r=t.id,o=t.choiceId,s=t.groupId,c=t.customProperties,a=t.placeholder,u=t.keyCode;return{type:n.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:r,choiceId:o,groupId:s,customProperties:c,placeholder:a,keyCode:u}},i.removeItem=function(t,i){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}},i.highlightItem=function(t,i){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}}},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.setIsLoading=i.resetTo=i.clearAll=void 0;var n=e(883);i.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},i.resetTo=function(t){return{type:n.ACTION_TYPES.RESET_TO,state:t}},i.setIsLoading=function(t){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,r=0,o=i.length;r<o;r++)!n&&r in i||(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=r(e(996)),s=r(e(221)),c=e(282),a=e(783),u=e(464),h=e(137),l=e(520),f=e(883),d=e(789),v=e(799),p=e(655),b=r(e(744)),m=r(e(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,_={},y=function(){function t(i,e){void 0===i&&(i="[data-choice]"),void 0===e&&(e={});var r=this;void 0===e.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([d.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return n([],i,!0)}});var s=(0,v.diff)(this.config,d.DEFAULT_CONFIG);s.length&&console.warn("Unknown config option(s) passed",s.join(", "));var c="string"==typeof i?document.querySelector(i):i;if(!(c instanceof HTMLInputElement||c instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=c.type===f.TEXT_TYPE,this._isSelectOneElement=c.type===f.SELECT_ONE_TYPE,this._isSelectMultipleElement=c.type===f.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var a=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=a.test.bind(a)}if(this._isTextElement?this.passedElement=new l.WrappedInput({element:c,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new l.WrappedSelect({element:c,classNames:this.config.classNames,template:function(t){return r._templates.option(t)}}),this.initialised=!1,this._store=new b.default,this._initialState=p.defaultState,this._currentState=p.defaultState,this._prevState=p.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,v.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var u=window.getComputedStyle(this.passedElement.element).direction;u!==window.getComputedStyle(document.documentElement).direction&&(this._direction=u)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var h=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(h)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){r._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:(0,v.parseCustomProperties)(t.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:i}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return _},get templates(){return m.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=m.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t||!t.id)return this;var e=t.id,n=t.groupId,r=void 0===n?-1:n,o=t.value,s=void 0===o?"":o,c=t.label,a=void 0===c?"":c,h=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)(e,!0)),i&&this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:e,value:s,label:a,groupValue:h&&h.value?h.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var i=t.id,e=t.groupId,n=void 0===e?-1:e,r=t.value,o=void 0===r?"":r,s=t.label,c=void 0===s?"":s,a=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,u.highlightItem)(i,!1)),this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:i,value:o,label:c,groupValue:a&&a.value?a.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},t.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},t.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive||requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent(f.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(f.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){var n=t?e.value:e;return i.push(n),i}),[]);return this._isSelectOneElement?i[0]:i},t.prototype.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,i,e,n){var r=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof t){var o=t(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return o})).then((function(t){return r.setChoices(t,i,e,n)})).catch((function(t){r.config.silent||console.error(t)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)r._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e});else{var n=t;r._addChoice({value:n[i],label:n[e],isSelected:!!n.selected,isDisabled:!!n.disabled,placeholder:!!n.placeholder,customProperties:n.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,c.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,h.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,i=this._isSelectElement,e=this._currentState.items!==this._prevState.items;t&&(i&&this._renderChoices(),e&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,n=i.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var o=n.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));o.length>=1&&(r=this._createChoicesFragment(o,r)),r=this._createGroupsFragment(e,n,r)}else n.length>=1&&(r=this._createChoicesFragment(n,r));if(r.childNodes&&r.childNodes.length>0){var s=this._store.activeItems,c=this._canAddItem(s,this.input.value);if(c.response)this.choiceList.append(r),this._highlightChoice();else{var a=this._getTemplate("notice",c.notice);this.choiceList.append(a)}}else{var u=void 0;a=void 0,this._isSearching?(a="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",a,"no-results")):(a="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",a,"no-choices")),this.choiceList.append(u)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},t.prototype._createGroupsFragment=function(t,i,e){var n=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var r=function(t){return i.filter((function(i){return n._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===n.config.renderSelectedChoices||!i.selected)}))}(t);if(r.length>=1){var o=n._getTemplate("choiceGroup",t);e.appendChild(o),n._createChoicesFragment(r,e,!0)}})),e},t.prototype._createChoicesFragment=function(t,i,e){var r=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var o=this.config,s=o.renderSelectedChoices,c=o.searchResultLimit,a=o.renderChoiceLimit,u=this._isSearching?v.sortByScore:this.config.sorter,h=function(t){if("auto"!==s||r._isSelectOneElement||!t.selected){var e=r._getTemplate("choice",t,r.config.itemSelectText);i.appendChild(e)}},l=t;"auto"!==s||this._isSelectOneElement||(l=t.filter((function(t){return!t.selected})));var f=l.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),d=f.placeholderChoices,p=f.normalChoices;(this.config.shouldSort||this._isSearching)&&p.sort(u);var b=l.length,m=this._isSelectOneElement?n(n([],d,!0),p,!0):p;this._isSearching?b=c:a&&a>0&&!e&&(b=a);for(var g=0;g<b;g+=1)m[g]&&h(m[g]);return i},t.prototype._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var n=this.config,r=n.shouldSortItems,o=n.sorter,s=n.removeItemButton;return r&&!this._isSelectOneElement&&t.sort(o),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var n=e._getTemplate("item",t,s);i.appendChild(n)})),i},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(f.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode&&i.parentNode.dataset.id,n=e&&t.find((function(t){return t.id===parseInt(e,10)}));n&&(this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,i,e){var n=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var r=i.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(r),10)||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,i){if(t&&i){var e=i.dataset.id,n=e&&this._store.getChoiceById(e);if(n){var r=t[0]&&t[0].keyCode?t[0].keyCode:void 0,o=this.dropdown.isActive;n.keyCode=r,this.passedElement.triggerEvent(f.EVENTS.choice,{choice:n}),n.selected||n.disabled||this._canAddItem(t,n.value).response&&(this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(i):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i&&(i.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var i=this._store.choices,e=this.config,n=e.searchFloor,r=e.searchChoices,o=i.some((function(t){return!t.active}));if(null!=t&&t.length>=n){var s=r?this._searchChoices(t):0;this.passedElement.triggerEvent(f.EVENTS.search,{value:t,resultCount:s})}else o&&(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,i){var e=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,v.existsInArray)(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&e&&(e=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:n}},t.prototype._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," "))return 0;var r=this._store.searchableChoices,o=i,a=Object.assign(this.config.fuseOptions,{keys:n([],this.config.searchFields,!0),includeMatches:!0}),u=new s.default(r,a).search(o);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,c.filterChoices)(u)),u.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var i=t.keyCode,e=this._store.activeItems,n=this.input.isFocussed,r=this.dropdown.isActive,o=this.itemList.hasChildren(),s=String.fromCharCode(i),c=/[^\x00-\x1F]/.test(s),a=f.KEY_CODES.BACK_KEY,u=f.KEY_CODES.DELETE_KEY,h=f.KEY_CODES.ENTER_KEY,l=f.KEY_CODES.A_KEY,d=f.KEY_CODES.ESC_KEY,v=f.KEY_CODES.UP_KEY,p=f.KEY_CODES.DOWN_KEY,b=f.KEY_CODES.PAGE_UP_KEY,m=f.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!c||(this.showDropdown(),this.input.isFocussed||(this.input.value+=t.key.toLowerCase())),i){case l:return this._onSelectKey(t,o);case h:return this._onEnterKey(t,e,r);case d:return this._onEscapeKey(r);case v:case b:case p:case m:return this._onDirectionKey(t,r);case u:case a:return this._onDeleteKey(t,e,n)}},t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode,n=this.input.value,r=this._store.activeItems,o=this._canAddItem(r,n),s=f.KEY_CODES.BACK_KEY,a=f.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&n){var u=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var h=(e===s||e===a)&&i&&!i.value,l=!this._isTextElement&&this._isSearching,d=this._canSearch&&o.response;h&&l?(this._isSearching=!1,this._store.dispatch((0,c.activateChoices)(!0))):d&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,n=t.metaKey;(e||n)&&i&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,i,e){var n=t.target,r=f.KEY_CODES.ENTER_KEY,o=n&&n.hasAttribute("data-button");if(this._isTextElement&&n&&n.value){var s=this.input.value;this._canAddItem(i,s).response&&(this.hideDropdown(!0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(o&&(this._handleButtonAction(i,n),t.preventDefault()),e){var c=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));c&&(i[0]&&(i[0].keyCode=r),this._handleChoiceAction(i,c)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,n=t.metaKey,r=f.KEY_CODES.DOWN_KEY,o=f.KEY_CODES.PAGE_UP_KEY,s=f.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var c=e===r||e===s?1:-1,a="[data-choice-selectable]",u=void 0;if(n||e===s||e===o)u=c>0?this.dropdown.element.querySelector("".concat(a,":last-of-type")):this.dropdown.element.querySelector(a);else{var h=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));u=h?(0,v.getAdjacentEl)(h,a,c):this.dropdown.element.querySelector(a)}u&&((0,v.isScrolledIntoView)(u,this.choiceList.element,c)||this.choiceList.scrollToChildElement(u,c),this._highlightChoice(u)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,i,e){var n=t.target;this._isSelectOneElement||n.value||!e||(this._handleBackspace(i),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(g&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild,n="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=n}if(i!==this.input.element){var r=i.closest("[data-button],[data-item],[data-choice]");if(r instanceof HTMLElement){var o=t.shiftKey,s=this._store.activeItems,c=r.dataset;"button"in c?this._handleButtonAction(s,r):"item"in c?this._handleItemAction(s,r,o):"choice"in c&&this._handleChoiceAction(s,r)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},t.prototype._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var i,e=this,n=t.target;n&&this.containerOuter.element.contains(n)&&((i={})[f.TEXT_TYPE]=function(){n===e.input.element&&e.containerOuter.addFocusState()},i[f.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState(),n===e.input.element&&e.showDropdown(!0)},i[f.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var i,e=this,n=t.target;if(n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(t){return t.highlighted}));((i={})[f.TEXT_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),r&&e.unhighlightAll(),e.hideDropdown(!0))},i[f.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState(),(n===e.input.element||n===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},i[f.SELECT_MULTIPLE_TYPE]=function(){n===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),r&&e.unhighlightAll())},i)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var n=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),n?this._highlightPosition=e.indexOf(n):(n=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(n=e[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(f.EVENTS.highlightChoice,{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},t.prototype._addItem=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,r=t.choiceId,o=void 0===r?-1:r,s=t.groupId,c=void 0===s?-1:s,a=t.customProperties,h=void 0===a?{}:a,l=t.placeholder,d=void 0!==l&&l,v=t.keyCode,p=void 0===v?-1:v,b="string"==typeof i?i.trim():i,m=this._store.items,g=n||b,_=o||-1,y=c>=0?this._store.getGroupById(c):null,x=m?m.length+1:1;this.config.prependValue&&(b=this.config.prependValue+b.toString()),this.config.appendValue&&(b+=this.config.appendValue.toString()),this._store.dispatch((0,u.addItem)({value:b,label:g,id:x,choiceId:_,groupId:c,customProperties:h,placeholder:d,keyCode:p})),this._isSelectOneElement&&this.removeActiveItems(x),this.passedElement.triggerEvent(f.EVENTS.addItem,{id:x,value:b,label:g,customProperties:h,groupValue:y&&y.value?y.value:null,keyCode:p})},t.prototype._removeItem=function(t){var i=t.id,e=t.value,n=t.label,r=t.customProperties,o=t.choiceId,s=t.groupId,c=s&&s>=0?this._store.getGroupById(s):null;i&&o&&(this._store.dispatch((0,u.removeItem)(i,o)),this.passedElement.triggerEvent(f.EVENTS.removeItem,{id:i,value:e,label:n,customProperties:r,groupValue:c&&c.value?c.value:null}))},t.prototype._addChoice=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,r=t.isSelected,o=void 0!==r&&r,s=t.isDisabled,a=void 0!==s&&s,u=t.groupId,h=void 0===u?-1:u,l=t.customProperties,f=void 0===l?{}:l,d=t.placeholder,v=void 0!==d&&d,p=t.keyCode,b=void 0===p?-1:p;if(null!=i){var m=this._store.choices,g=n||i,_=m?m.length+1:1,y="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(_);this._store.dispatch((0,c.addChoice)({id:_,groupId:h,elementId:y,value:i,label:g,disabled:a,customProperties:f,placeholder:v,keyCode:b})),o&&this._addItem({value:i,label:g,choiceId:_,customProperties:f,placeholder:v,keyCode:b})}},t.prototype._addGroup=function(t){var i=this,e=t.group,n=t.id,r=t.valueKey,o=void 0===r?"value":r,s=t.labelKey,c=void 0===s?"label":s,u=(0,v.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),h=n||Math.floor((new Date).valueOf()*Math.random()),l=!!e.disabled&&e.disabled;u?(this._store.dispatch((0,a.addGroup)({value:e.label,id:h,active:!0,disabled:l})),u.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[o],label:(0,v.isType)("Object",t)?t[c]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,a.addGroup)({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},t.prototype._getTemplate=function(t){for(var i,e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return(i=this._templates[t]).call.apply(i,n([this,this.config],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,v.strToEl)),this._templates=(0,o.default)(m.default,i)},t.prototype._createElements=function(){this.containerOuter=new l.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new l.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new l.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new l.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new l.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new l.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&e.parentNode&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),n=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,r){var o=t.value,s=void 0===o?"":o,c=t.label,a=t.customProperties,u=t.placeholder;if(i._isSelectElement)if(t.choices)i._addGroup({group:t,id:t.id||null});else{var h=!(!i._isSelectOneElement||e||r!==n)||t.selected,l=t.disabled;i._addChoice({value:s,label:c,isSelected:!!h,isDisabled:!!l,placeholder:!!u,customProperties:a})}else i._addChoice({value:s,label:c,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:a})}))},t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,v.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,n=i.placeholderValue,r=this.passedElement.element.dataset;if(e){if(n)return n;if(r.placeholder)return r.placeholder}return null},t}();i.default=y},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),r=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,r=t.position;this.element=i,this.classNames=n,this.type=e,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(i=!0),i},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,n.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},217:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){var i=t.element,e=t.type,n=t.classNames;this.element=i,this.classNames=n,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();i.default=e},520:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var r=n(e(217));i.Dropdown=r.default;var o=n(e(613));i.Container=o.default;var s=n(e(11));i.Input=s.default;var c=n(e(624));i.List=c.default;var a=n(e(541));i.WrappedInput=a.default;var u=n(e(982));i.WrappedSelect=u.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),r=e(883),o=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,r=t.preventPaste;this.element=i,this.type=e,this.classNames=n,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,n=t.placeholder;i.minWidth="".concat(n.length+1,"ch"),i.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=o},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(883),r=function(){function t(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,i){var e=this;if(t){var n=this.element.offsetHeight,r=this.element.scrollTop+n,o=t.offsetHeight,s=t.offsetTop+o,c=i>0?this.element.scrollTop+s-r:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(c,i)}))}},t.prototype._scrollDown=function(t,i,e){var n=(e-t)/i,r=n>1?n:1;this.element.scrollTop=t+r},t.prototype._scrollUp=function(t,i,e){var n=(t-e)/i,r=n>1?n:1;this.element.scrollTop=t-r},t.prototype._animateScroll=function(t,i){var e=this,r=n.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;i>0?(this._scrollDown(o,r,t),o<t&&(s=!0)):(this._scrollUp(o,r,t),o>t&&(s=!0)),s&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}();i.default=r},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var n=e(799),r=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,i){(0,n.dispatchEvent)(this.element,t,i)},t}();i.default=r},541:function(t,i,e){var n,r=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=function(t){function i(i){var e=i.element,n=i.classNames,r=i.delimiter,o=t.call(this,{element:e,classNames:n})||this;return o.delimiter=r,o}return r(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),i}(o(e(730)).default);i.default=s},982:function(t,i,e){var n,r=this&&this.__extends||(n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},n(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}n(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=function(t){function i(i){var e=i.element,n=i.classNames,r=i.template,o=t.call(this,{element:e,classNames:n})||this;return o.template=r,o}return r(i,t),Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return n=t,r=i.template(n),void e.appendChild(r);var n,r})),this.appendDocFragment(e)},enumerable:!1,configurable:!0}),i.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},i}(o(e(730)).default);i.default=s},883:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0,i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},i.TEXT_TYPE="text",i.SELECT_ONE_TYPE="select-one",i.SELECT_MULTIPLE_TYPE="select-multiple",i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var n=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},i.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'.concat((0,n.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},187:function(t,i,e){var n=this&&this.__createBinding||(Object.create?function(t,i,e,n){void 0===n&&(n=e);var r=Object.getOwnPropertyDescriptor(i,e);r&&!("get"in r?!i.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return i[e]}}),Object.defineProperty(t,n,r)}:function(t,i,e,n){void 0===n&&(n=e),t[n]=i[e]}),r=this&&this.__exportStar||function(t,i){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(i,e)||n(i,t,e)};Object.defineProperty(i,"__esModule",{value:!0}),r(e(18),i),r(e(978),i),r(e(948),i),r(e(359),i),r(e(285),i),r(e(533),i),r(e(287),i),r(e(132),i),r(e(837),i),r(e(598),i),r(e(369),i),r(e(37),i),r(e(47),i),r(e(923),i),r(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},799:function(t,i){var e;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(t,i){return Math.floor(Math.random()*(i-t)+t)},i.generateChars=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")},i.generateId=function(t,e){var n=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);return n=n.replace(/(:|\.|\[|\]|,)/g,""),"".concat(e,"-").concat(n)},i.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i.isType=function(t,e){return null!=e&&(0,i.getType)(e)===t},i.wrap=function(t,i){return void 0===i&&(i=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i)),i.appendChild(t)},i.getAdjacentEl=function(t,i,e){void 0===e&&(e=1);for(var n="".concat(e>0?"next":"previous","ElementSibling"),r=t[n];r;){if(r.matches(i))return r;r=r[n]}return r},i.isScrolledIntoView=function(t,i,e){return void 0===e&&(e=1),!!t&&(e>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)},i.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")},i.strToEl=(e=document.createElement("div"),function(t){var i=t.trim();e.innerHTML=i;for(var n=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return n}),i.sortByAlpha=function(t,i){var e=t.value,n=t.label,r=void 0===n?e:n,o=i.value,s=i.label,c=void 0===s?o:s;return r.localeCompare(c,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(t,i){var e=t.score,n=void 0===e?0:e,r=i.score;return n-(void 0===r?0:r)},i.dispatchEvent=function(t,i,e){void 0===e&&(e=null);var n=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});return t.dispatchEvent(n)},i.existsInArray=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))},i.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},i.diff=function(t,i){var e=Object.keys(t).sort(),n=Object.keys(i).sort();return e.filter((function(t){return n.indexOf(t)<0}))},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(i){return t}return{}}},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,r=0,o=i.length;r<o;r++)!n&&r in i||(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_CHOICE":var r=n,o={id:r.id,elementId:r.elementId,groupId:r.groupId,value:r.value,label:r.label||r.value,disabled:r.disabled||!1,selected:!1,active:!0,score:9999,customProperties:r.customProperties,placeholder:r.placeholder||!1};return e(e([],t,!0),[o],!1);case"ADD_ITEM":var s=n;return s.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(s.choiceId),10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":var c=n;return c.choiceId&&c.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(c.choiceId),10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":var a=n;return t.map((function(t){var i=t;return i.active=a.results.some((function(t){var e=t.item,n=t.score;return e.id===i.id&&(i.score=n,!0)})),i}));case"ACTIVATE_CHOICES":var u=n;return t.map((function(t){var i=t;return i.active=u.active,i}));case"CLEAR_CHOICES":return i.defaultState;default:return t}}},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,r=0,o=i.length;r<o;r++)!n&&r in i||(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_GROUP":var r=n;return e(e([],t,!0),[{id:r.id,value:r.value,active:r.active,disabled:r.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,i,e){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0;var r=e(791),o=n(e(52)),s=n(e(871)),c=n(e(273)),a=n(e(502)),u=e(799);i.defaultState={groups:[],items:[],choices:[],loading:!1};var h=(0,r.combineReducers)({items:o.default,groups:s.default,choices:c.default,loading:a.default});i.default=function(t,e){var n=t;if("CLEAR_ALL"===e.type)n=i.defaultState;else if("RESET_TO"===e.type)return(0,u.cloneObject)(e.state);return h(n,e)}},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,r=0,o=i.length;r<o;r++)!n&&r in i||(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,n){switch(void 0===t&&(t=i.defaultState),void 0===n&&(n={}),n.type){case"ADD_ITEM":var r=n;return e(e([],t,!0),[{id:r.id,choiceId:r.choiceId,groupId:r.groupId,value:r.value,label:r.label,active:!0,highlighted:!1,customProperties:r.customProperties,placeholder:r.placeholder||!1,keyCode:null}],!1).map((function(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===n.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":var o=n;return t.map((function(t){var i=t;return i.id===o.id&&(i.highlighted=o.highlighted),i}));default:return t}}},502:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(t,e){return void 0===t&&(t=i.defaultState),void 0===e&&(e={}),"SET_IS_LOADING"===e.type?e.isLoading:t}},744:function(t,i,e){var n=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var n,r=0,o=i.length;r<o;r++)!n&&r in i||(n||(n=Array.prototype.slice.call(i,0,r)),n[r]=i[r]);return t.concat(n||Array.prototype.slice.call(i))},r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=e(791),s=r(e(655)),c=function(){function t(){this._store=(0,o.createStore)(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return n([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,i=this.choices;return t.filter((function(t){var e=!0===t.active&&!1===t.disabled,n=i.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&n}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},t}();i.default=c},686:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e={containerOuter:function(t,i,e,n,r,o,s){var c=t.classNames.containerOuter,a=Object.assign(document.createElement("div"),{className:c});return a.dataset.type=o,i&&(a.dir=i),n&&(a.tabIndex=0),e&&(a.setAttribute("role",r?"combobox":"listbox"),r&&a.setAttribute("aria-autocomplete","list")),a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"),s&&a.setAttribute("aria-labelledby",s),a},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,n=e.list,r=e.listSingle,o=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(i?r:o)})},placeholder:function(t,i){var e,n=t.allowHTML,r=t.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:r})[n?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var n,r,o=t.allowHTML,s=t.classNames,c=s.item,a=s.button,u=s.highlightedState,h=s.itemSelectable,l=s.placeholder,f=i.id,d=i.value,v=i.label,p=i.customProperties,b=i.active,m=i.disabled,g=i.highlighted,_=i.placeholder,y=Object.assign(document.createElement("div"),((n={className:c})[o?"innerHTML":"innerText"]=v,n));if(Object.assign(y.dataset,{item:"",id:f,value:d,customProperties:p}),b&&y.setAttribute("aria-selected","true"),m&&y.setAttribute("aria-disabled","true"),_&&y.classList.add(l),y.classList.add(g?u:h),e){m&&y.classList.remove(h),y.dataset.deletable="";var x="Remove item",w=Object.assign(document.createElement("button"),((r={type:"button",className:a})[o?"innerHTML":"innerText"]=x,r));w.setAttribute("aria-label","".concat(x,": '").concat(d,"'")),w.dataset.button="",y.appendChild(w)}return y},choiceList:function(t,i){var e=t.classNames.list,n=Object.assign(document.createElement("div"),{className:e});return i||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(t,i){var e,n=t.allowHTML,r=t.classNames,o=r.group,s=r.groupHeading,c=r.itemDisabled,a=i.id,u=i.value,h=i.disabled,l=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(h?c:"")});return l.setAttribute("role","group"),Object.assign(l.dataset,{group:"",id:a,value:u}),h&&l.setAttribute("aria-disabled","true"),l.appendChild(Object.assign(document.createElement("div"),((e={className:s})[n?"innerHTML":"innerText"]=u,e))),l},choice:function(t,i,e){var n,r=t.allowHTML,o=t.classNames,s=o.item,c=o.itemChoice,a=o.itemSelectable,u=o.selectedState,h=o.itemDisabled,l=o.placeholder,f=i.id,d=i.value,v=i.label,p=i.groupId,b=i.elementId,m=i.disabled,g=i.selected,_=i.placeholder,y=Object.assign(document.createElement("div"),((n={id:b})[r?"innerHTML":"innerText"]=v,n.className="".concat(s," ").concat(c),n));return g&&y.classList.add(u),_&&y.classList.add(l),y.setAttribute("role",p&&p>0?"treeitem":"option"),Object.assign(y.dataset,{choice:"",id:f,value:d,selectText:e}),m?(y.classList.add(h),y.dataset.choiceDisabled="",y.setAttribute("aria-disabled","true")):(y.classList.add(a),y.dataset.choiceSelectable=""),y},input:function(t,i){var e=t.classNames,n=e.input,r=e.inputCloned,o=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(n," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",i),o},dropdown:function(t){var i=t.classNames,e=i.list,n=i.listDropdown,r=document.createElement("div");return r.classList.add(e,n),r.setAttribute("aria-expanded","false"),r},notice:function(t,i,e){var n,r=t.allowHTML,o=t.classNames,s=o.item,c=o.itemChoice,a=o.noResults,u=o.noChoices;void 0===e&&(e="");var h=[s,c];return"no-choices"===e?h.push(u):"no-results"===e&&h.push(a),Object.assign(document.createElement("div"),((n={})[r?"innerHTML":"innerText"]=i,n.className=h.join(" "),n))},option:function(t){var i=t.label,e=t.value,n=t.customProperties,r=t.active,o=t.disabled,s=new Option(i,e,!1,r);return n&&(s.dataset.customProperties="".concat(n)),s.disabled=!!o,s}};i.default=e},996:function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,i){return!1!==i.clone&&i.isMergeableObject(t)?c((e=t,Array.isArray(e)?[]:{}),t,i):t;var e}function r(t,i,e){return t.concat(i).map((function(t){return n(t,e)}))}function o(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function s(t,i){try{return i in t}catch(t){return!1}}function c(t,e,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||i,a.cloneUnlessOtherwiseSpecified=n;var u=Array.isArray(e);return u===Array.isArray(t)?u?a.arrayMerge(t,e,a):function(t,i,e){var r={};return e.isMergeableObject(t)&&o(t).forEach((function(i){r[i]=n(t[i],e)})),o(i).forEach((function(o){(function(t,i){return s(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))})(t,o)||(s(t,o)&&e.isMergeableObject(i[o])?r[o]=function(t,i){if(!i.customMerge)return c;var e=i.customMerge(t);return"function"==typeof e?e:c}(o,e)(t[o],i[o],e):r[o]=n(i[o],e))})),r}(t,e,a):n(e,a)}c.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return c(t,e,i)}),{})};var a=c;t.exports=a},221:function(t,i,e){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===u(t)}function r(t){return"string"==typeof t}function o(t){return"number"==typeof t}function s(t){return"object"==typeof t}function c(t){return null!=t}function a(t){return!t.trim().length}function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}e.r(i),e.d(i,{default:function(){return H}});var h=Object.prototype.hasOwnProperty;var l=function(){function t(t){var i=this;this._keys=[],this._keyMap={};var e=0;t.forEach((function(t){var n=f(t);e+=n.weight,i._keys.push(n),i._keyMap[n.id]=n,e+=n.weight})),this._keys.forEach((function(t){t.weight/=e}))}t.prototype.get=function(t){return this._keyMap[t]};t.prototype.keys=function(){return this._keys};t.prototype.toJSON=function(){return JSON.stringify(this._keys)};return t}();function f(t){var i=null,e=null,o=null,s=1,c=null;if(r(t)||n(t))o=t,i=d(t),e=v(t);else{if(!h.call(t,"name"))throw new Error("Missing name property in key");var a=t.name;if(o=a,h.call(t,"weight")&&(s=t.weight,s<=0))throw new Error(function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")}(a));i=d(a),e=v(a),c=t.getFn}return{path:i,id:e,weight:s,src:o,getFn:c}}function d(t){return n(t)?t:t.split(".")}function v(t){return n(t)?t.join("."):t}var p={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,i){return t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1},includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,i){var e=[],a=!1;var h=function(t,i,l){if(c(t))if(i[l]){var f=t[i[l]];if(!c(f))return;if(l===i.length-1&&(r(f)||o(f)||function(t){return!0===t||!1===t||function(t){return s(t)&&null!==t}(t)&&"[object Boolean]"==u(t)}(f)))e.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}(t)}(f));else if(n(f)){a=!0;for(var d=0,v=f.length;d<v;d+=1)h(f[d],i,l+1)}else i.length&&h(f,i,l+1)}else e.push(t)};return h(t,r(i)?i.split("."):i,0),a?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var b=/[^ ]+/g;var m=function(){function t(t){var i=t===void 0?{}:t,e=i.getFn,n=e===void 0?p.getFn:e,r=i.fieldNormWeight,o=r===void 0?p.fieldNormWeight:r;this.norm=function(t,i){if(t===void 0){t=1}if(i===void 0){i=3}var e=new Map,n=Math.pow(10,i);return{get:function(i){var r=i.match(b).length;if(e.has(r))return e.get(r);var o=1/Math.pow(r,.5*t),s=parseFloat(Math.round(o*n)/n);return e.set(r,s),s},clear:function(){e.clear()}}}(o,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}t.prototype.setSources=function(t){if(t===void 0){t=[]}this.docs=t};t.prototype.setIndexRecords=function(t){if(t===void 0){t=[]}this.records=t};t.prototype.setKeys=function(t){var i=this;if(t===void 0){t=[]}this.keys=t,this._keysMap={},t.forEach((function(t,e){i._keysMap[t.id]=e}))};t.prototype.create=function(){var t=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach((function(i,e){t._addString(i,e)})):this.docs.forEach((function(i,e){t._addObject(i,e)})),this.norm.clear())};t.prototype.add=function(t){var i=this.size();r(t)?this._addString(t,i):this._addObject(t,i)};t.prototype.removeAt=function(t){this.records.splice(t,1);for(var i=t,e=this.size();i<e;i+=1)this.records[i].i-=1};t.prototype.getValueForItemAtKeyId=function(t,i){return t[this._keysMap[i]]};t.prototype.size=function(){return this.records.length};t.prototype._addString=function(t,i){if(!c(t)||a(t))return;var e={v:t,i:i,n:this.norm.get(t)};this.records.push(e)};t.prototype._addObject=function(t,i){var e=this;var o={i:i,$:{}};this.keys.forEach((function(i,s){var u=i.getFn?i.getFn(t):e.getFn(t,i.path);if(c(u))if(n(u)){var h=[];var l=[{nestedArrIndex:-1,value:u}];for(;l.length;){var f=l.pop(),d=f.nestedArrIndex,v=f.value;if(c(v))if(r(v)&&!a(v)){var p={v:v,i:d,n:e.norm.get(v)};h.push(p)}else n(v)&&v.forEach((function(t,i){l.push({nestedArrIndex:i,value:t})}))}o.$[s]=h}else if(r(u)&&!a(u)){var b={v:u,n:e.norm.get(u)};o.$[s]=b}})),this.records.push(o)};t.prototype.toJSON=function(){return{keys:this.keys,records:this.records}};return t}();function g(t,i,e){var n=e===void 0?{}:e,r=n.getFn,o=r===void 0?p.getFn:r,s=n.fieldNormWeight,c=s===void 0?p.fieldNormWeight:s;var a=new m({getFn:o,fieldNormWeight:c});return a.setKeys(t.map(f)),a.setSources(i),a.create(),a}function _(t,i){var e=i===void 0?{}:i,n=e.errors,r=n===void 0?0:n,o=e.currentLocation,s=o===void 0?0:o,c=e.expectedLocation,a=c===void 0?0:c,u=e.distance,h=u===void 0?p.distance:u,l=e.ignoreLocation,f=l===void 0?p.ignoreLocation:l;var d=r/t.length;if(f)return d;var v=Math.abs(a-s);return h?d+v/h:v?1:d}var y=32;function x(t){var i={};for(var e=0,n=t.length;e<n;e+=1){var r=t.charAt(e);i[r]=(i[r]||0)|1<<n-e-1}return i}var w=function(){function t(t,i){var e=i===void 0?{}:i,n=e.location,r=n===void 0?p.location:n,o=e.threshold,s=o===void 0?p.threshold:o,c=e.distance,a=c===void 0?p.distance:c,u=e.includeMatches,h=u===void 0?p.includeMatches:u,l=e.findAllMatches,f=l===void 0?p.findAllMatches:l,d=e.minMatchCharLength,v=d===void 0?p.minMatchCharLength:d,b=e.isCaseSensitive,m=b===void 0?p.isCaseSensitive:b,g=e.ignoreLocation,_=g===void 0?p.ignoreLocation:g;var w=this;if(this.options={location:r,threshold:s,distance:a,includeMatches:h,findAllMatches:f,minMatchCharLength:v,isCaseSensitive:m,ignoreLocation:_},this.pattern=m?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;var O=function(t,i){w.chunks.push({pattern:t,alphabet:x(t),startIndex:i})},j=this.pattern.length;if(j>y){var M=0;var I=j%y,E=j-I;for(;M<E;)O(this.pattern.substr(M,y),M),M+=y;if(I){var C=j-y;O(this.pattern.substr(C),C)}}else O(this.pattern,0)}t.prototype.searchIn=function(t){var i=this.options,e=i.isCaseSensitive,n=i.includeMatches;if(e||(t=t.toLowerCase()),this.pattern===t){var r={isMatch:!0,score:0};return n&&(r.indices=[[0,t.length-1]]),r}var o=this.options,s=o.location,c=o.distance,a=o.threshold,u=o.findAllMatches,h=o.minMatchCharLength,l=o.ignoreLocation;var f=[],d=0,v=!1;this.chunks.forEach((function(i){var e=i.pattern,r=i.alphabet,o=i.startIndex;var b=function(t,i,e,n){var r=n===void 0?{}:n,o=r.location,s=o===void 0?p.location:o,c=r.distance,a=c===void 0?p.distance:c,u=r.threshold,h=u===void 0?p.threshold:u,l=r.findAllMatches,f=l===void 0?p.findAllMatches:l,d=r.minMatchCharLength,v=d===void 0?p.minMatchCharLength:d,b=r.includeMatches,m=b===void 0?p.includeMatches:b,g=r.ignoreLocation,x=g===void 0?p.ignoreLocation:g;if(i.length>y)throw new Error("Pattern length exceeds max of 32.");var w=i.length,O=t.length,j=Math.max(0,Math.min(s,O));var M=h,I=j;var E=v>1||m,C=E?Array(O):[];var k;for(;(k=t.indexOf(i,I))>-1;){var A=_(i,{currentLocation:k,expectedLocation:j,distance:a,ignoreLocation:x});if(M=Math.min(A,M),I=k+w,E){var L=0;for(;L<w;)C[k+L]=1,L+=1}}I=-1;var S=[],T=1,N=w+O;var R=1<<w-1;for(var P=0;P<w;P+=1){var D=0,z=N;for(;D<z;)_(i,{errors:P,currentLocation:j+z,expectedLocation:j,distance:a,ignoreLocation:x})<=M?D=z:N=z,z=Math.floor((N-D)/2+D);N=z;var H=Math.max(1,j-z+1),G=f?O:Math.min(j+z,O)+w,U=Array(G+2);U[G+1]=(1<<P)-1;for(var F=G;F>=H;F-=1){var $=F-1,V=e[t.charAt($)];if(E&&(C[$]=+!!V),U[F]=(U[F+1]<<1|1)&V,P&&(U[F]|=(S[F+1]|S[F])<<1|1|S[F+1]),U[F]&R&&(T=_(i,{errors:P,currentLocation:$,expectedLocation:j,distance:a,ignoreLocation:x}),T<=M)){if(M=T,I=$,I<=j)break;H=Math.max(1,2*j-I)}}if(_(i,{errors:P+1,currentLocation:j,expectedLocation:j,distance:a,ignoreLocation:x})>M)break;S=U}var W={isMatch:I>=0,score:Math.max(.001,T)};if(E){var Z=function(t,i){if(t===void 0){t=[]}if(i===void 0){i=p.minMatchCharLength}var e=[],n=-1,r=-1,o=0;for(var s=t.length;o<s;o+=1){var c=t[o];c&&-1===n?n=o:c||-1===n||(r=o-1,r-n+1>=i&&e.push([n,r]),n=-1)}return t[o-1]&&o-n>=i&&e.push([n,o-1]),e}(C,v);Z.length?m&&(W.indices=Z):W.isMatch=!1}return W}(t,e,r,{location:s+o,distance:c,threshold:a,findAllMatches:u,minMatchCharLength:h,includeMatches:n,ignoreLocation:l}),m=b.isMatch,g=b.score,x=b.indices;m&&(v=!0),d+=g,m&&x&&(f=__spreadArray(__spreadArray([],f,true),x,true))}));var b={isMatch:v,score:v?d/this.chunks.length:1};return v&&n&&(b.indices=f),b};return t}();var O=function(){function t(t){this.pattern=t}t.isMultiMatch=function(t){return j(t,this.multiRegex)};t.isSingleMatch=function(t){return j(t,this.singleRegex)};t.prototype.search=function(){};return t}();function j(t,i){var e=t.match(i);return e?e[1]:null}var M=function(t){__extends(i,t);function i(i,e){var n=e===void 0?{}:e,r=n.location,o=r===void 0?p.location:r,s=n.threshold,c=s===void 0?p.threshold:s,a=n.distance,u=a===void 0?p.distance:a,h=n.includeMatches,l=h===void 0?p.includeMatches:h,f=n.findAllMatches,d=f===void 0?p.findAllMatches:f,v=n.minMatchCharLength,b=v===void 0?p.minMatchCharLength:v,m=n.isCaseSensitive,g=m===void 0?p.isCaseSensitive:m,_=n.ignoreLocation,y=_===void 0?p.ignoreLocation:_;var x=this;x=t.call(this,i)||this,x._bitapSearch=new w(i,{location:o,threshold:c,distance:u,includeMatches:l,findAllMatches:d,minMatchCharLength:b,isCaseSensitive:g,ignoreLocation:y});return x}Object.defineProperty(i,"type",{get:function(){return"fuzzy"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){return this._bitapSearch.searchIn(t)};return i}(O);var I=function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"include"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^'"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^'(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i,e=0;var n=[],r=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+r,n.push([i,e-1]);var o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}};return i}(O);var E=[function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^="(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^=(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}};return i}(O),I,function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"prefix-exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^\^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^\^(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}};return i}(O),function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"inverse-prefix-exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^!\^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^!\^(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}};return i}(O),function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"inverse-suffix-exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^!"(.*)"\$$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^!(.*)\$$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}};return i}(O),function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"suffix-exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^"(.*)"\$$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^(.*)\$$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}};return i}(O),function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i,"type",{get:function(){return"inverse-exact"},enumerable:false,configurable:true});Object.defineProperty(i,"multiRegex",{get:function(){return/^!"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(i,"singleRegex",{get:function(){return/^!(.*)$/},enumerable:false,configurable:true});i.prototype.search=function(t){var i=-1===t.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}};return i}(O),M],C=E.length,k=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([M.type,I.type]);var L=[];function S(t,i){for(var e=0,n=L.length;e<n;e+=1){var r=L[e];if(r.condition(t,i))return new r(t,i)}return new w(t,i)}var T="$and",N=function(t){return!(!t.$and&&!t.$or)},R=function(t){var i;return i={},i[T]=Object.keys(t).map((function(i){var e;return e={},e[i]=t[i],e})),i};function P(t,i,e){var o=e===void 0?{}:e,c=o.auto,a=c===void 0?!0:c;var u=function(t){var e=Object.keys(t);var o=function(t){return!!t.$path}(t);if(!o&&e.length>1&&!N(t))return u(R(t));if(function(t){return!n(t)&&s(t)&&!N(t)}(t)){var c=o?t.$path:e[0],h=o?t.$val:t[c];if(!r(h))throw new Error(function(t){return"Invalid value for key ".concat(t)}(c));var l={keyId:v(c),pattern:h};return a&&(l.searcher=S(h,i)),l}var f={children:[],operator:e[0]};return e.forEach((function(i){var e=t[i];n(e)&&e.forEach((function(t){f.children.push(u(t))}))})),f};return N(t)||(t=R(t)),u(t)}function D(t,i){var e=t.matches;i.matches=[],c(e)&&e.forEach((function(t){if(!c(t.indices)||!t.indices.length)return;var e=t.indices,n=t.value;var r={indices:e,value:n};t.key&&(r.key=t.key.src),t.idx>-1&&(r.refIndex=t.idx),i.matches.push(r)}))}function z(t,i){i.score=t.score}var H=function(){function t(t,i,e){if(i===void 0){i={}}this.options=__assign(__assign({},p),i),this._keyStore=new l(this.options.keys),this.setCollection(t,e)}t.prototype.setCollection=function(t,i){if(this._docs=t,i&&!(i instanceof m))throw new Error("Incorrect 'index' type");this._myIndex=i||g(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})};t.prototype.add=function(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))};t.prototype.remove=function(t){if(t===void 0){t=function(){return!1}}var i=[];for(var e=0,n=this._docs.length;e<n;e+=1){var r=this._docs[e];t(r,e)&&(this.removeAt(e),e-=1,n-=1,i.push(r))}return i};t.prototype.removeAt=function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)};t.prototype.getIndex=function(){return this._myIndex};t.prototype.search=function(t,i){var e=i===void 0?{}:i,n=e.limit,s=n===void 0?-1:n;var c=this.options,a=c.includeMatches,u=c.includeScore,h=c.shouldSort,l=c.sortFn,f=c.ignoreFieldNorm;var d=r(t)?r(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,i){var e=i.ignoreFieldNorm,n=e===void 0?p.ignoreFieldNorm:e;t.forEach((function(t){var i=1;t.matches.forEach((function(t){var e=t.key,r=t.norm,o=t.score;var s=e?e.weight:null;i*=Math.pow(0===o&&s?Number.EPSILON:o,(s||1)*(n?1:r))})),t.score=i}))}(d,{ignoreFieldNorm:f}),h&&d.sort(l),o(s)&&s>-1&&(d=d.slice(0,s)),function(t,i,e){var n=e===void 0?{}:e,r=n.includeMatches,o=r===void 0?p.includeMatches:r,s=n.includeScore,c=s===void 0?p.includeScore:s;var a=[];return o&&a.push(D),c&&a.push(z),t.map((function(t){var e=t.idx,n={item:i[e],refIndex:e};return a.length&&a.forEach((function(i){i(t,n)})),n}))}(d,this._docs,{includeMatches:a,includeScore:u})};t.prototype._searchStringList=function(t){var i=S(t,this.options),e=this._myIndex.records,n=[];return e.forEach((function(t){var e=t.v,r=t.i,o=t.n;if(!c(e))return;var s=i.searchIn(e),a=s.isMatch,u=s.score,h=s.indices;a&&n.push({item:e,idx:r,matches:[{score:u,value:e,norm:o,indices:h}]})})),n};t.prototype._searchLogical=function(t){var i=this;var e=P(t,this.options),n=function(t,e,r){if(!t.children){var o=t.keyId,s=t.searcher,c=i._findMatches({key:i._keyStore.get(o),value:i._myIndex.getValueForItemAtKeyId(e,o),searcher:s});return c&&c.length?[{idx:r,item:e,matches:c}]:[]}var a=[];for(var u=0,h=t.children.length;u<h;u+=1){var l=t.children[u],f=n(l,e,r);if(f.length)a.push.apply(a,f);else if(t.operator===T)return[]}return a},r=this._myIndex.records,o={},s=[];return r.forEach((function(t){var i=t.$,r=t.i;if(c(i)){var a=n(e,i,r);a.length&&(o[r]||(o[r]={idx:r,item:i,matches:[]},s.push(o[r])),a.forEach((function(t){var i;var e=t.matches;(i=o[r].matches).push.apply(i,e)})))}})),s};t.prototype._searchObjectList=function(t){var i=this;var e=S(t,this.options),n=this._myIndex,r=n.keys,o=n.records,s=[];return o.forEach((function(t){var n=t.$,o=t.i;if(!c(n))return;var a=[];r.forEach((function(t,r){a.push.apply(a,i._findMatches({key:t,value:n[r],searcher:e}))})),a.length&&s.push({idx:o,item:n,matches:a})})),s};t.prototype._findMatches=function(t){var i=t.key,e=t.value,r=t.searcher;if(!c(e))return[];var o=[];if(n(e))e.forEach((function(t){var e=t.v,n=t.i,s=t.n;if(!c(e))return;var a=r.searchIn(e),u=a.isMatch,h=a.score,l=a.indices;u&&o.push({score:h,key:i,value:e,idx:n,norm:s,indices:l})}));else{var s=e.v,a=e.n,u=r.searchIn(s),h=u.isMatch,l=u.score,f=u.indices;h&&o.push({score:l,key:i,value:s,norm:a,indices:f})}return o};return t}();H.version="6.6.2",H.createIndex=g,H.parseIndex=function(t,i){var e=i===void 0?{}:i,n=e.getFn,r=n===void 0?p.getFn:n,o=e.fieldNormWeight,s=o===void 0?p.fieldNormWeight:o;var c=t.keys,a=t.records,u=new m({getFn:r,fieldNormWeight:s});return u.setKeys(c),u.setIndexRecords(a),u},H.config=p,H.parseQuery=P,function(){var t=[];for(var i=0;i<arguments.length;i++){t[i]=arguments[i]}L.push.apply(L,t)}(function(){function t(t,i){var e=i===void 0?{}:i,n=e.isCaseSensitive,r=n===void 0?p.isCaseSensitive:n,o=e.includeMatches,s=o===void 0?p.includeMatches:o,c=e.minMatchCharLength,a=c===void 0?p.minMatchCharLength:c,u=e.ignoreLocation,h=u===void 0?p.ignoreLocation:u,l=e.findAllMatches,f=l===void 0?p.findAllMatches:l,d=e.location,v=d===void 0?p.location:d,b=e.threshold,m=b===void 0?p.threshold:b,g=e.distance,_=g===void 0?p.distance:g;this.query=null,this.options={isCaseSensitive:r,includeMatches:s,minMatchCharLength:a,findAllMatches:f,ignoreLocation:h,location:v,threshold:m,distance:_},this.pattern=r?t:t.toLowerCase(),this.query=function(t,i){if(i===void 0){i={}}return t.split("|").map((function(t){var e=t.trim().split(k).filter((function(t){return t&&!!t.trim()})),n=[];for(var r=0,o=e.length;r<o;r+=1){var s=e[r];var c=!1,a=-1;for(;!c&&++a<C;){var u=E[a];var h=u.isMultiMatch(s);h&&(n.push(new u(h,i)),c=!0)}if(!c)for(a=-1;++a<C;){var l=E[a];var f=l.isSingleMatch(s);if(f){n.push(new l(f,i));break}}}return n}))}(this.pattern,this.options)}t.condition=function(t,i){return i.useExtendedSearch};t.prototype.searchIn=function(t){var i=this.query;if(!i)return{isMatch:!1,score:1};var e=this.options,n=e.includeMatches,r=e.isCaseSensitive;t=r?t:t.toLowerCase();var o=0,s=[],c=0;for(var a=0,u=i.length;a<u;a+=1){var h=i[a];s.length=0,o=0;for(var l=0,f=h.length;l<f;l+=1){var d=h[l],v=d.search(t),p=v.isMatch,b=v.indices,m=v.score;if(!p){c=0,o=0,s.length=0;break}if(o+=1,c+=m,n){var g=d.constructor.type;A.has(g)?s=__spreadArray(__spreadArray([],s,true),b,true):s.push(b)}}if(o){var _={isMatch:!0,score:c/o};return n&&(_.indices=s),_}}return{isMatch:!1,score:1}};return t}())},791:function(t,i,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function r(t,i,e){return(i=function(t){var i=function(t,i){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,i);if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===n(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function o(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,n)}return e}function s(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?o(Object(e),!0).forEach((function(i){r(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function c(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}e.r(i),e.d(i,{__DO_NOT_USE__ActionTypes:function(){return h},applyMiddleware:function(){return g},bindActionCreators:function(){return b},combineReducers:function(){return v},compose:function(){return m},createStore:function(){return f},legacy_createStore:function(){return d}});var a="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function l(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function f(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(c(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(c(1));return e(f)(t,i)}if("function"!=typeof t)throw new Error(c(2));var r=t,o=i,s=[],u=s,d=!1;function v(){u===s&&(u=s.slice())}function p(){if(d)throw new Error(c(3));return o}function b(t){if("function"!=typeof t)throw new Error(c(4));if(d)throw new Error(c(5));var i=!0;return v(),u.push(t),function(){if(i){if(d)throw new Error(c(6));i=!1,v();var e=u.indexOf(t);u.splice(e,1),s=null}}}function m(t){if(!l(t))throw new Error(c(7));if(void 0===t.type)throw new Error(c(8));if(d)throw new Error(c(9));try{d=!0,o=r(o,t)}finally{d=!1}for(var i=s=u,e=0;e<i.length;e++)(0,i[e])();return t}function g(t){if("function"!=typeof t)throw new Error(c(10));r=t,m({type:h.REPLACE})}function _(){var t,i=b;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(c(11));function e(){t.next&&t.next(p())}return e(),{unsubscribe:i(e)}}})[a]=function(){return this},t}return m({type:h.INIT}),(n={dispatch:m,subscribe:b,getState:p,replaceReducer:g})[a]=_,n}var d=f;function v(t){for(var i=Object.keys(t),e={},n=0;n<i.length;n++){var r=i[n];"function"==typeof t[r]&&(e[r]=t[r])}var o,s=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:h.INIT}))throw new Error(c(12));if(void 0===e(void 0,{type:h.PROBE_UNKNOWN_ACTION()}))throw new Error(c(13))}))}(e)}catch(t){o=t}return function(t,i){if(void 0===t&&(t={}),o)throw o;for(var n=!1,r={},a=0;a<s.length;a++){var u=s[a],h=e[u],l=t[u],f=h(l,i);if(void 0===f)throw new Error(c(14));r[u]=f,n=n||f!==l}return(n=n||s.length!==Object.keys(t).length)?r:t}}function p(t,i){return function(){return i(t.apply(this,arguments))}}function b(t,i){if("function"==typeof t)return p(t,i);if("object"!=typeof t||null===t)throw new Error(c(16));var e={};for(var n in t){var r=t[n];"function"==typeof r&&(e[n]=p(r,i))}return e}function m(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return 0===i.length?function(t){return t}:1===i.length?i[0]:i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function g(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),n=function(){throw new Error(c(15))},r={getState:e.getState,dispatch:function(){return n.apply(void 0,arguments)}},o=i.map((function(t){return t(r)}));return n=m.apply(void 0,o)(e.dispatch),s(s({},e),{},{dispatch:n})}}}}},i={};function e(n){var r=i[n];if(void 0!==r)return r.exports;var o=i[n]={exports:{}};return t[n].call(o.exports,o,o.exports,e),o.exports}e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n,r,o={};n=e(373),r=e.n(n),e(187),e(883),e(789),e(686),o.default=r(),window.Choices=o.default}();var p='<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>';var b='*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label,p{margin-bottom:8px}label{font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.25}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{-webkit-box-shadow:0 0 0 2px #00bcd4;box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]::after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0-4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;-webkit-box-sizing:border-box;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400;font-family:var(--font-family)}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-webkit-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-moz-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input:-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::placeholder{opacity:0}.filter-button-container .choices{width:100%;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 0px;font-family:var(--font-family)}.filter-button-container .choices .choices__inner{border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__inner,.filter-button-container .choices .choices__input,.filter-button-container .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,.filter-button-container .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:transparent}.filter-button-container .choices .choices__list--multiple .choices__item{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);font-size:14px;margin-right:8px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__button{--choices-button-url:url(\'data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg"><g fill="\' + var(--color-on-secondary-container) + \'" fill-rule="evenodd"><path d="M2.592.044l18.364 18.364-2.548 2.548L.044 2.592z"/><path d="M0 18.364L18.364 0l2.548 2.548L2.548 20.912z"/></g></svg>\')\n background-image: var(--choices-button-url);color:var(--color-on-secondary-container);border-left:1px solid var(--color-outline)}.filter-button-container .choices .choices__list--dropdown,.filter-button-container .choices .choices__list[aria-expanded]{width:100%;color:var(--color-secondary-container);background-color:var(--color-on-secondary-container);border:1px solid var(--color-outline)}.filter-button-container .choices .choices__input{width:100%;font-family:var(--font-family)}.filter-button-container .filter-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;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-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-tap-highlight-color:transparent;line-height:20px;-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;min-width:100px;white-space:nowrap;font-family:var(--font-family)}.filter-button-container .filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button .icon{display:-ms-flexbox;display:flex;margin-right:8px;color:var(--color-on-secondary-container)}.select-container{display:-ms-inline-flexbox;display:inline-flex;width:100%;z-index:4000}.select-container .choicesjs-stencil{position:relative;width:100%;height:auto;z-index:22;z-index:4000}.select-container .choicesjs-stencil .choices__inner{padding:0px}.select-container .choicesjs-stencil .choices__input{padding:0px;margin:0px;width:100% !important;min-height:44px}';var m=b;var g=t("grw_filter",function(){function t(t){i(this,t);this.fontFamily="Roboto";this.filterPlaceholder=""}t.prototype.onResetFilter=function(){this.resetFilter()};t.prototype.handleFilter=function(t,i){var e=this;var n=__spreadArray([],s[this.filterType],true);n.find((function(t){return t.id===i.id})).selected=!n.find((function(t){return t.id===i.id})).selected;s[this.filterType]=n;s[this.segment]=0;if(s.mode==="treks"){c.filter((function(t){return t.segment===e.segment})).forEach((function(t){s[e.segment]+=s[t.property].filter((function(t){return t.selected})).length}));s.currentTreks=a()}else if(s.mode==="touristicContents"){u.filter((function(t){return t.segment===e.segment})).forEach((function(t){s[e.segment]+=s[t.property].filter((function(t){return t.selected})).length}));s.currentTouristicContents=h()}else if(s.mode==="touristicEvents"){l.filter((function(t){return t.segment===e.segment})).forEach((function(t){s[e.segment]+=s[t.property].filter((function(t){return t.selected})).length}));s.currentTouristicEvents=f()}else if(s.mode==="outdoor"){d.filter((function(t){return t.segment===e.segment})).forEach((function(t){s[e.segment]+=s[t.property].filter((function(t){return t.selected})).length}));s.currentOutdoorSites=v()}};t.prototype.resetFilter=function(){if(this.choices){this.choices.removeActiveItems()}e(this.filterRef)};t.prototype.componentDidLoad=function(){var t=this;if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:s[this.filterType].filter((function(t){return!t.hasOwnProperty("filter")||t.hasOwnProperty("filter")&&t.filter})).map((function(i){return{value:i.id,label:i[t.filterNameProperty],selected:i.selected}})),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});var i=this.el.shadowRoot.querySelector(".choices");i.addEventListener("click",(function(i){i.stopPropagation();var e=t.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!e.classList.contains("is-active")){var n=t.el.shadowRoot.querySelector(".choices");n.classList.add("is-focused");n.classList.add("is-open");e.classList.add("is-active");e.setAttribute("aria-expanded","true")}}),false);i.addEventListener("change",(function(i){t.handleFilter(null,s[t.filterType].find((function(t){return t.id===i.detail.value})))}),false)}};t.prototype.render=function(){var t=this;return n(r,{key:"75df90fdd3673fa32c713d35b160de88a4319ee8",ref:function(i){return t.filterRef=i},style:{"--font-family":this.fontFamily}},n("div",{key:"3c87d66de4c1744e5b160843734194169bc8db8f",part:"filter-name",class:"filter-name display-large"},this.filterName),n("div",{key:"d8b8d73c43112ec8dec9cf220148b1224ecb3fe1",part:"filter-button-container",class:"filter-button-container"},s[this.filterType].length>9?n("select",{part:"filter-select",multiple:true,ref:function(i){return t.choicesRef=i}}):s[this.filterType].filter((function(t){return!t.hasOwnProperty("filter")||t.hasOwnProperty("filter")&&t.filter})).map((function(i){return n("button",{part:"filter-button",class:i.selected?"filter-button selected-filter-button":"filter-button",onClick:function(e){return t.handleFilter(e,i)}},i.selected&&n("span",{part:"selected-filter-icon",class:"icon",innerHTML:p}),n("span",{part:"filter-label",class:"filter-label"},i[t.filterNameProperty]))}))))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());g.style=m}}}));
|
|
4
|
-
//# sourceMappingURL=p-
|
|
4
|
+
//# sourceMappingURL=p-28048cef.system.entry.js.map
|
|
Binary file
|
|
Binary file
|