@geotrekce/geotrek-rando-widget 0.35.2 → 0.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/grw-common-button_23.cjs.entry.js +6 -5
- 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/collection/components/grw-map/grw-map.js +6 -5
- 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/esm/grw-common-button_23.entry.js +6 -5
- 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-es5/grw-common-button_23.entry.js +1 -1
- 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/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-4c329d4c.system.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-4c329d4c.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-4c329d4c.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-4c329d4c.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-SrqKQbd3.system.js +1 -1
- package/dist/geotrek-rando-widget/p-SrqKQbd3.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-SrqKQbd3.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cb681dae.entry.js +4 -0
- package/dist/geotrek-rando-widget/p-cb681dae.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-cb681dae.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-cb681dae.entry.js.map +1 -0
- package/package.json +1 -1
- package/dist/geotrek-rando-widget/p-03eb939f.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-03eb939f.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-03eb939f.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-03eb939f.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-acb4209f.system.entry.js +0 -4
- package/dist/geotrek-rando-widget/p-acb4209f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-acb4209f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-acb4209f.system.entry.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function s(t){try{c(r.next(t))}catch(t){n(t)}}function o(t){try{c(r["throw"](t))}catch(t){n(t)}}function c(t){t.done?i(t.value):a(t.value).then(s,o)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=o(0),s["throw"]=o(1),s["return"]=o(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(r=1,a&&(n=o[0]&2?a["return"]:o[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;if(a=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(o[0]===6&&i.label<n[1]){i.label=n[1];n=o;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(o);break}if(n[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,n;r<a;r++){if(n||!(r in e)){if(!n)n=Array.prototype.slice.call(e,0,r);n[r]=e[r]}}return t.concat(n||Array.prototype.slice.call(e))};import{r as registerInstance,h,H as Host,j as createEvent,f as forceUpdate,i as getAssetPath,e as Build,d as getElement,F as Fragment}from"./index-Cthj5W5W.js";import{t as translate}from"./i18n-5np6Dt8h.js";import{s as state,o as onChange}from"./store-D_7zYdH6.js";import{t as treksFilters,h as handleTreksFiltersAndSearch,d as touristicContentsFilters,f as touristicEventsFilters,o as outdoorSitesFilters,e as handleTouristicContentsFiltersAndSearch,j as handleTouristicEventsFiltersAndSearch,c as handleOutdoorSitesFiltersAndSearch,C as Capacitor,u as checkFileInStore,v as getFileInStore,F as Filesystem,D as Directory,k as formatDuration,l as formatLength,m as formatAscent,g as getCacheMode,s as setFilesFromStore,i as imagesRegExp,a as getAllPaginatedResults,w as formatDescent,x as durations,y as lengths,z as elevations}from"./utils-IQHeLblc.js";import{r as requireLeafletSrc,L as L$1,c as bundleExports,a as getDataInStore,h as handleOfflineProperty,g as getAllDataInStore,w as writeOrUpdateDataInStore,d as writeOrUpdateFilesInStore,e as writeOrUpdateTilesInStore}from"./grw-db.service-DZ5fr9Ja.js";import{c as getTrekGeometry,g as getDistricts,a as getThemes,b as getCities,d as getSources,e as getInformationsDesks,f as getTreksList,h as getPoisNearTrek,i as getTrek,j as getSensitiveAreasNearTrek,k as getTrekRatings,l as getTrekRatingsScale,m as getSignages,n as getPoisNearTrekCount,o as getTrekNetwork,p as getTrekAccessibility,q as getLabel,t as trekIsAvailableOffline}from"./treks.service-DifXYB3R.js";import{b as getDocument,c as createElementIfNotDefined,d as createElement,a as nextTick,f as elementOffset,S as Swiper,N as Navigation,P as Pagination,K as Keyboard}from"./pagination-D7NHAojE.js";import{f as freeMode,M as Mousewheel,C as CloseIcon,D as DownloadIcon,e as getTouristicContentsNearOutdoorCourse,g as getTouristicContentCategory,h as getTouristicEventsNearOutdoorCourse,c as getTouristicEventType,i as getTouristicContentsNearOutdoorSite,j as getTouristicEventsNearOutdoorSite,k as getTouristicContentsList,l as getTouristicEventsList,m as getTouristicContentsNearTrek,n as getTouristicEventsNearTrek,a as CallIcon,o as getTouristicContentsNearTrekCount,p as getTouristicEventsNearTrekCount}from"./call-DiURi20Y.js";import{T as TimelapseIcon,O as OpenInFullIcon,M as MovingIcon}from"./moving-DZnW_1Lv.js";import{a as getOutdoorCourseTypes,b as getPoisNearCourse,c as getOutdoorCourse}from"./outdoor-courses.service-nWlX5u3P.js";var RefreshIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"/></svg>';var FilterListIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M400-240v-80h160v80H400ZM240-440v-80h480v80H240ZM120-640v-80h720v80H120Z"/></svg>';var grwCommonButtonCss=function(){return".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;height:44px}.common-button .common-button-icon{font-size:18px}"};var GrwCommonButton=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"20934a73599663dde31e5d2e44e7d4e07c6abb3a",style:{"--font-family":this.fontFamily}},h("button",{key:"10660a565bebc2e2d68197291b58e4f0f707439f",part:"common-button",class:"common-button",onClick:function(){return t.action()}},h("span",{key:"89ac4803284dec581c71da1622b5dea2f86254b0",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?RefreshIcon:FilterListIcon}),h("span",{key:"96d918bc3f3d02424acd7050131bf8ddedc12406",part:"common-button-label",class:"label"},this.name)))};return t}();GrwCommonButton.style=grwCommonButtonCss();var grwFiltersCss=function(){return'.options-container{height:100%;position:absolute;width:100%;z-index:1100;top:0px}.filters-container{background-color:var(--color-background);position:relative;width:100%;height:100%;z-index:1100}.filters-container .filters-treks-container,.filters-container .filters-touristic-contents-container,.filters-container .filters-touristic-events-container,.filters-container .filters-outdoor-sites-container{height:100%}.filters-container .segmented-buttons-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.filters-container .segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface-variant);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;font-family:var(--font-family)}.filters-container .segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.filters-container .segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.filters-container .segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}.filters-segment-container{overflow-y:visible;height:100%;max-height:calc(100% - 64px - 42px - 32px)}.back-filters-container{background-color:rgba(0, 0, 0, 0.5);width:100%;height:100%;position:absolute;z-index:1099}.divider{margin:16px;border-top:1px solid var(--color-outline)}.filters-options-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;height:64px;margin:0px 16px}.filters-options-container .filters-options-buttons-container{display:-ms-flexbox;display:flex}.filters-options-container .filters-options-buttons-container .filter-option-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.segment-container{overflow:scroll;height:100%}.filter-container:not(:last-child)::after{content:"";display:block;margin:16px;border-top:1px solid var(--color-outline)}.filter-container:last-child{margin-bottom:16px}.current-treks-within-bounds-length{color:var(--color-on-surface-variant);font-family:var(--font-family)}'};var GrwFilters=function(){function t(t){registerInstance(this,t);this.resetFilter=createEvent(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.fontFamily="Roboto"}t.prototype.handleEraseTreksFilters=function(){treksFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;state.currentTreks=handleTreksFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTreksFilters=function(){this.handleFilters()};t.prototype.handleSelectedSegment=function(t){this.selectedSegment=t};t.prototype.handleSegment=function(t){if(state.mode==="treks"){return treksFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicContents"){return touristicContentsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="touristicEvents"){return touristicEventsFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}else if(state.mode==="outdoor"){return outdoorSitesFilters.filter((function(e){return e.segment===t})).some((function(t){return state[t.property]&&state[t.property].length>0}))}};t.prototype.handleEraseTouristicContentsFilters=function(){touristicContentsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicContents=handleTouristicContentsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};t.prototype.handleEraseTouristicEventsFilters=function(){touristicEventsFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};t.prototype.handleEraseOutdoorSitesFilters=function(){outdoorSitesFilters.forEach((function(t){state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedLocationFilters=0;state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch();this.resetFilter.emit()};t.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};t.prototype.render=function(){var t=this;return h(Host,{key:"7cb0827af20aec71998635f772961892bae64782",style:{"--font-family":this.fontFamily}},h("div",{key:"7ca850687d5c240429364fce16a2e985f4d14a69",part:"options-container",class:"options-container"},h("div",{key:"0608d1e60c4e3a3466f16907ed1a87a1a0500cbf",part:"filters-container",class:"filters-container"},state.mode==="treks"&&h("div",{key:"bb266f50acbf0c404f7ac64dfde538f8327db50b",part:"filters-treks-container",class:"filters-treks-container"},h("div",{key:"68e8bffaf9784038487f1383e3c26d4a7e7ec8d6",part:"filters-options-container",class:"filters-options-container"},state.treksWithinBounds&&h("div",{key:"d22377ccd74aa51463270f5bd922bd15159aeff7",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"d99afb8765bb918f10d2662b4b525c3bccf94014",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"1e976bf1b4f85e33e5861653d19311e019a9534b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},translate[state.language].erase),h("button",{key:"761793867f49f477f013946e1eaefd09e1d29a2a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},translate[state.language].ok))),h("div",{key:"ac29966072168933f7905845d255dcf058dcda82",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"0d8b89703a4286d2287b8a86c6bf7709faa8e615",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.treks," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"1c57830b534b5f2fe9e9a3d8c7fdb70840ccdb3a",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3644ee38d8f452a6ec6f3a3a2fbdeb2278ed25f8",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"1c6468c5daf78faa0e1c81896896951f2d0d9d12",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},state["practices"].length>0&&h("div",{key:"0a63d2022609cabcd4811ba0a3465a6b62d1222b",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"99a5b02f8d81082d6fda024ea3cf9e943f5cb6e1",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderPractices})),state["difficulties"].length>0&&h("div",{key:"00867ddca97044ae17ff7f404d50116c7c7a1571",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"cfbcd5a30e22caa42708ff47fb868bd63a77c814",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDifficulties})),state["durations"].length>0&&h("div",{key:"d1eec8a2747f52e7ab23d06a5317640904cb8932",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"6239dc492b7203c008d24a91faaa03b3d5234a82",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderDurations})),state["lengths"].length>0&&h("div",{key:"108e2a5a071b8b1d2407873efe5275a2b5548329",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b0b25767deb8c55678e34be1d14677182b86e0ab",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderLengths})),state["elevations"].length>0&&h("div",{key:"23c722fa4f015a7d1e962b7e13a352770362c366",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"2a9bc4968ccb250ae43dc36d3064283e2ea631a8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderElevations})),state["routes"].length>0&&h("div",{key:"081b49faab7f24cd5444a5f3856d9a1ae75fae0e",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"9da94f9ce99386a1a3fa9938f85fcdea3cfccfe4",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderRoutes})),state["accessibilities"].length>0&&h("div",{key:"abc8b5530dbaaee862712b0400f9694504e225f7",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"b9dac8b1b9c93051920f5120f73f758c18ee2867",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderAccessibilities})),state["labels"].length>0&&h("div",{key:"b514da44c0a95b792d527e88c7d0e9a74cf70635",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"71be7fb25371586f1ad1b44f136be028582bd5f9",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"0c0ae67b8266db5364a746edde0dd74b8c81535c",part:"",class:"filter-container"},h("grw-filter",{key:"39bec081b3ca8506378a7478f8d27a4d88589b8a",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},state["districts"].length>0&&h("div",{key:"d3832fe24e8925133b2e7044675b88b3a84668d4",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"7bd9147852d6d8e5b1aa4e407636dace41b45950",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"f798c02a9811f4726a6efdd20bb29e789c64a435",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"a2497727878f08ca6833c8b8cf14461984ea91e2",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicContents"&&h("div",{key:"7ff7afa469ec1f70a2c65891c40673b749d01f03",part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},h("div",{key:"d26d5e679ee89784aa7bfab9880733aea80cb25b",part:"filters-options-container",class:"filters-options-container"},state.touristicContentsWithinBounds&&h("div",{key:"ffa578e5c8700a02f3532d7cfe73786adf99600c",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"3b2dd444be31e090a93a77884187533d706ac54d",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"22b85f396c036f1c53538cdbfb6cf4eb6bfed91a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},translate[state.language].erase),h("button",{key:"6c3ceb7d89b206396b68c3a40be88b9056846ab7",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},translate[state.language].ok))),h("div",{key:"7775cc54df6aa5ddcffcc6b761c6cd1426d86821",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"e85dd1dc7601c99140285bf2dd5ed8a0d804888d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"3cdf68426f8722b260587e06e3b7029f22690e8d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"a5b816a3e56c04f7b3d80d9a58b0d96c64e87626",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicContentCategories"].length>0&&h("div",{key:"2c39f1384e2b49599b7eb040a0a2f5e7dbeaf52a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"e26190a8d6d43872b041e6519919e069a2230ffb",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},state["districts"].length>0&&h("div",{key:"326e0471f4d065f86a4e799b0369490eb2c6089a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1c6c2742d7f33f13c8fc9268096d1e5f54e44369",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"491dc0f4101c21f6b396a3e529826a104b1e5044",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"d1774b6bd54a39d60745f5e819d6a65ebbd76fac",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="touristicEvents"&&h("div",{key:"c348864948b70fd86e2f787c8e4663bbcd7bd797",part:"filters-touristic-events-container",class:"filters-touristic-events-container"},h("div",{key:"164ab5e697e32fdc98b4ace8d04058e8fb2a29f0",part:"filters-options-container",class:"filters-options-container"},state.touristicEventsWithinBounds&&h("div",{key:"845d53b5e85f258d0ee7adc53810ad49fd73d93b",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"a103291d00f28cd1edec0be589ed968c123963cf",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"cd0084e1b079006aa84459517dd05d8360c805b1",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},translate[state.language].erase),h("button",{key:"90d9a9543e6d9543ec666b06d2eb072a71f6d7fc",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},translate[state.language].ok))),h("div",{key:"a028044dc52dc04d58663163fbccd742699ab31f",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"7d37a03878eea6fdfc7be4b8c84eabdf85e8023f",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].services," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"4cf188f9d3c50482d5cd515941929c4d7fb307cd",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"135f6b451a25254c81920a89ecb511834cbacda3",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["touristicEventTypes"].length>0&&h("div",{key:"9c62a23f0c9d70c9ec60a0ef1440c567a0df3b3c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5414ba2979bf112516d42fde4b2de23e3ed37936",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].type,filterPlaceholder:translate[state.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},state["districts"].length>0&&h("div",{key:"aa6e6933f9394e9448274f782cfa81a271510bd0",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"dac40ec18d9dc3f1c00e45f80c8150217c47d8bf",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"a80b5c285f00dcc89f131c048742b7c8f170a410",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"678695182e258c014b061fadf2f994c60f3a5b1e",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),state.mode==="outdoor"&&h("div",{key:"0aca784169b67e5f7bb08f427b7b9579d5c918b3",part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},h("div",{key:"59c1b969199440613d994dd04750fa248f5902a9",part:"filters-options-container",class:"filters-options-container"},state.outdoorSitesWithinBounds&&h("div",{key:"119faef0178c050e66b43ad2520aec585e77910c",part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].home.outdoorSites:translate[state.language].home.outdoorSite)),h("div",{key:"8638027f4f673ea2453a23e46e62d5a2030586eb",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},h("button",{key:"2ffd27a1bdc91be1bd328db313dc00b05a8cf85b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},translate[state.language].erase),h("button",{key:"c6a2adf9d00c0e2b112624942a6a4d6c80a6139a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},translate[state.language].ok))),h("div",{key:"8cc082dad59e4e304ab19d8303ee3b703faab76d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&h("label",{key:"ea4cef9ee95e5e19495d13767150a632a30e314d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},translate[state.language].home.segment.outdoorSites," ",state.selectedActivitiesFilters!==0&&"(".concat(state.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&h("label",{key:"3807ad0c400b66c30ae3cd7ae8483b4b16699df0",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},translate[state.language].themes," ",state.selectedThemesFilters!==0&&"(".concat(state.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&h("label",{key:"41833fbbe64154b7b8e8e9bdaec14f7cbdab6202",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},translate[state.language].location," ",state.selectedLocationFilters!==0&&"(".concat(state.selectedLocationFilters,")"))),h("div",{key:"0d72e1572521e536593e9cf928b47664074febde",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},state["outdoorPractices"].length>0&&h("div",{key:"2d57106ff3c8a996927aa12f12485ac6e3667f5a",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"34d61290f728c3bb89122f7bd39c52847f0c16a5",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].practice,filterPlaceholder:translate[state.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),state["outdoorSiteTypes"].length>0&&h("div",{key:"d624787d8a82df90196aa684d0ab314bcc454583",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"1f786587372e88148d3386585a6de96e3a44c121",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:translate[state.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&h("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},state["themes"].length>0&&h("div",{key:"74df99c7f261902662125f04dfff5d58377735cf",part:"",class:"filter-container"},h("grw-filter",{key:"ab3055ff3652cfbd72a3020bd14f798385fafd57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].themes,filterPlaceholder:translate[state.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&h("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},state["districts"].length>0&&h("div",{key:"e541bb845bb3df017711368796e7262fe6eec179",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"3b1266c88bbcad0a2953065c81ba12fff62defc8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:translate[state.language].placeholderDistricts})),state["cities"].length>0&&h("div",{key:"5d8f67bb98692023f243d151b6ec05244827155c",part:"filter-container",class:"filter-container"},h("grw-filter",{key:"5beca62535975404d512fc7ebd9c7af320071b57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:translate[state.language].crossedCities,filterPlaceholder:translate[state.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),h("div",{key:"83051ed904bf12db211d03a90576213d510d14aa",part:"back-filters-container",class:"back-filters-container",onClick:function(){return t.handleFilters()}})))};return t}();GrwFilters.style=grwFiltersCss();var grwLoaderCss=function(){return".loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"};var GrwLoader=function(){function t(t){registerInstance(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}t.prototype.render=function(){return h(Host,{key:"7bfffe55c6ad0d9e710d0ecac80eae6e1d2b82fb",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},h("span",{key:"ff3f0d45fde66ff7fe393bee41d8f74ca8e672d4",part:"loader",class:"loader"}))};return t}();GrwLoader.style=grwLoaderCss();var Leaflet_i18n={exports:{}};var hasRequiredLeaflet_i18n;function requireLeaflet_i18n(){if(hasRequiredLeaflet_i18n)return Leaflet_i18n.exports;hasRequiredLeaflet_i18n=1;(function(t,e){(function(e,i){{t.exports=e(requireLeafletSrc())}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(Leaflet_i18n);return Leaflet_i18n.exports}requireLeaflet_i18n();var leafletElevation_min={exports:{}};var hasRequiredLeafletElevation_min;function requireLeafletElevation_min(){if(hasRequiredLeafletElevation_min)return leafletElevation_min.exports;hasRequiredLeafletElevation_min=1;(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(requireLeafletSrc()),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function a(t){var a=Math.floor(t/r),n=Math.floor((t-a*r)/i),s=Math.floor((t-a*r-n*i)/e),o=Math.round((t-a*r-n*i-s*e)/1e3);return 60===o&&(s++,o=0),60===s&&(n++,s=0),24===n&&(a++,n=0),(a?a+"d ":"")+n.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+o.toString().padStart(2,0)+'"'}function n(t,e){var i=b("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(t,e,i){return false===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:true}),r.src=t,document.head.appendChild(r)}))}function o(t,e){e.classed("canvas-path",true),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function c(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function d(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?l:d).call(null,t,e)}function p(t,e,i){e&&d(t,e),i&&l(t,i)}function f(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function h(t,e,i,r){return f(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function b(t,e,i,r){var a=L.DomUtil.create(t,e||"");return i&&w(a,i),r&&v(r,a),a}function v(t,e){return t.appendChild(e)}function g(t,e,i){return t.insertAdjacentElement(i,e)}function w(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var y=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function C(t,e){for(var i in t)e(t[i],i)}var z=Object.freeze({__proto__:null,formatTime:a,saveFile:n,lazyLoader:s,drawCanvas:o,clamp:c,addClass:l,removeClass:d,toggleClass:u,replaceClass:p,style:f,toggleStyle:h,toggleEvent:m,create:b,append:v,insert:g,setAttributes:w,select:k,on:y,off:x,hasClass:A,randomId:_,each:C}),O={lightblue:{area:"#3366CC",alpha:.45,stroke:"#3366CC"},magenta:{area:"#FF005E"},yellow:{area:"#FF0"},purple:{area:"#732C7B"},steelblue:{area:"#4682B4"},red:{area:"#F00"},lime:{area:"#9CC222",line:"#566B13"}},F=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,a=t.scaleX,n=t.scaleY,s=t.interpolation,o=void 0===s?"curveLinear":s;return d3.area().curve("string"==typeof o?d3[o]:o).x((function(t){return t.xDiagCoord=a(t[i])})).y0(e).y1((function(t){return n(t[r])}))},S=function(t){var e=t.name,i=t.color,r=t.strokeColor,a=t.strokeOpacity,n=t.fillOpacity,s=d3.create("svg:path");return e&&s.classed(e,true),s.style("pointer-events","none"),s.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",a||"1").attr("fill-opacity",n||"0.8"),s},P=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,a=void 0===r?6:r,n=t.tickPadding,s=void 0===n?3:n,o=t.position,c=t.height,l=t.width,d=t.axis,u=t.scale,p=t.ticks,f=t.tickFormat,h=t.label,m=t.labelX,b=t.labelY,v=t.name,g=void 0===v?"":v,w=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==o&&(r=c),"right"==o&&(e=l),"x"==d&&"grid"==i?a=-c:"y"==d&&"grid"==i&&(a=-l);var n=d3["axis"+o.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(p).tickPadding(s).tickSize(a).tickFormat(f),v=t.append("g").attr("class",[d,i,o,g].join(" ")).attr("transform","translate("+e+","+r+")").call(n);return h&&v.append("svg:text").attr("x",m).attr("y",b).text(h),w&&v.call(w),v}},T=function(t){return t.type="grid",P(t)},M=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,a=t.yCoord,n=void 0===a?0:a,s=t.labels,o=void 0===s?{}:s,c=t.item,l=void 0===c?{}:c,d=t.length,u=void 0===d?0:d;return function(t){t.attr("class","height-focus-group");var i,a=t.select(".height-focus.line"),s=t.select(".height-focus.circle-lower"),c=t.select(".height-focus-label");return a.node()||(a=t.append("svg:line")),s.node()||(s=t.append("svg:circle")),c.node()||(c=t.append("svg:text")),isNaN(r)||isNaN(n)||(s.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+n+")").attr("r",6).attr("cx",0).attr("cy",0),a.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",n).attr("y2",u),c.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(i=c.select(".height-focus-"+o[t].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+o[t].name).attr("dy","1.5em")),i.text("function"!=typeof o[t].value?o[t].value:o[t].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),t}},E=function(t){var e=t.name,i=t.label,r=t.width,a=t.height,n=t.margins,s=void 0===n?{}:n,o=t.color,c=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:c.node(),name:e,legend:t.node(),enabled:!c.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",a+s.bottom/2).attr("width",50).attr("height",10).attr("fill",o).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",a+s.bottom/2).attr("dy","0.75em"),t}},I=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,a=t.height,n=t.labels,s=void 0===n?{}:n,o=t.item,c=void 0===o?{}:o;return function(t){var n=t.select(".mouse-focus-line"),o=t.select(".mouse-focus-label");n.node()||(n=t.append("svg:line")),o.node()||(o=t.append("g"));var l=o.select(".mouse-focus-label-rect"),d=o.select(".mouse-focus-label-text");l.node()||(l=o.append("svg:rect")),d.node()||(d=o.append("svg:text"));var u,p=0,f=0,h={width:0,height:0};try{h=d.node().getBBox()}catch(e){return t}return e&&(p=e+(e<r/2?10:-h.width-10)),i&&(f=Math.max(i-h.height,L.Browser.webkit?0:-1/0)),n.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",a),o.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",p-5).attr("y",f-5).attr("width",h.width+10).attr("height",h.height+10).attr("rx",3).attr("ry",3),d.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",f),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(u=d.select(".mouse-focus-label-"+s[t].name)).size()||(u=d.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+s[t].name).attr("dy","1.5em")),u.text("function"!=typeof s[t].value?s[t].value:s[t].value(c))})),d.select("tspan").attr("dy","1em"),d.selectAll("tspan").attr("x",p),t}},B=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),a=t.selectAll(".horizontal-drag-line").data([{w:i}]),n=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),s=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),a.exit().remove(),n.exit().remove(),s.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),a.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(a).attr("x2",(function(t){return t.w})),n.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(n).attr("x",(function(t){return t.w})),s.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(s).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},j=function(t){var e=t.point,i=t.height,r=t.width,a=t.x,n=t.y;return function(t){return isNaN(a)||isNaN(n)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:a,y:n}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-n,bottom:i-n}[e.position],x2:{left:-a,right:r-a}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},D=function(t){var e=t.min,i=t.max,r=t.attr,a=t.name,n=t.forceBounds,s=t.scale;return function(t){r=r||a,s&&s.attr&&(r=s.attr);var o=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<o[0]||n)&&(o[0]=e),void 0!==i&&(i>o[1]||n)&&(o[1]=i),o}},N=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},R=function(t){var e=t.data,i=t.attr,r=t.min,a=t.max,n=t.forceBounds,s=t.range;return d3.scaleLinear().range(s).domain(D({min:r,max:a,attr:i,forceBounds:n})(e))},G=function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=e-a.left-a.right,s=i-a.top-a.bottom,o=d3.create("svg:svg").attr("class","background"),c=o.append("g"),l={grid:c.append("g").attr("class","grid"),area:c.append("g").attr("class","area"),axis:c.append("g").attr("class","axis"),point:c.append("g").attr("class","point"),brush:c.append("g").attr("class","brush"),tooltip:c.append("g").attr("class","tooltip").attr("display","none"),ruler:c.append("g").attr("class","ruler"),legend:c.append("g").attr("class","legend")},d=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=d.append("svg:rect").attr("class","zoom").attr("fill","white"),p=l.area.append("svg:foreignObject").attr("mask","url(#"+d.attr("id")+")"),f=p.append("xhtml:canvas").attr("class","canvas-plot"),h=f.node().getContext("2d");l.tooltip.call(I({xCoord:0,yCoord:0,height:s,width:n,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),b={mask:d,canvas:f,context:h,brush:m},v={svg:o,g:c,panes:l,utils:b,scale:function(t){return{x:R(t.x),y:R(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,a=void 0===r?{}:r,n=t.ruler,s=e-a.left-a.right,d=i-a.top-a.bottom;o.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).attr("height",i),c.attr("transform","translate("+a.left+","+a.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&f.style("transform","translate("+a.left+"px,"+a.top+"px)"),u.attr("x",0).attr("y",0).attr("width",s).attr("height",d),p.attr("width",s).attr("height",d),f.attr("width",s).attr("height",d),n&&l.ruler.call(B({height:d,width:s})),l.brush.call(m.extent([[0,0],[s,d]])),l.brush.select(".overlay").attr("cursor",null),v._width=s,v._height=d,v.svg.dispatch("resize",{detail:{width:s,height:d}})},pane:function(t){return l[t]||(l[t]=c.append("g").attr("class",t)),l[t]},get:function(t){return b[t]}};return v._resize({width:e,height:i,margins:a}),v},Y=Object.freeze({__proto__:null,Colors:O,Area:F,Path:S,Axis:P,Grid:T,PositionMarker:M,LegendItem:E,Tooltip:I,Ruler:B,CheckPoint:j,Domain:D,Range:N,Scale:R,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,a=t.x,n=t.attr;return d3.bisector((function(t){return t[n]})).left(i,r.invert(a))},Chart:G}),H=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=G(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",F(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?o(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return true;return false},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],a=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:a,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),a=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._data[a]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",true),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=true})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",false),t._mask&&t._point.attr("mask",null)),t.zooming=false,e.style("cursor","")})).on("zoom",(function(e){t.zooming=false,t._updateScale(),t.zooming=true,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,a=i.legend,n=i.name,s=i.enabled;if(r){var o=k("text",a),c=k("rect",a);h(o,"text-decoration-line","line-through",s),h(c,"fill-opacity","0",s),u(r,"leaflet-hidden",s),t._updateArea(),t.fire("elepath_toggle",{path:r,name:n,legend:a,enabled:s})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),a=t._ruler.data()[0].y;(a>=r||a<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var a=t._height(),n=d3.pointers(i,t._area.node())[0][1],s=n>0?n<a?n:a:0,o=t._y.invert(s),c=L.extend(t._ruler.data()[0],{y:s});t._ruler.data([c]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",s<a),t._container.select(".horizontal-drag-label").text(e(o)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:n<a&&n>0?t._findCoordsForY(n):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=S(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=D(t),a=this._ranges[t.name]=N(t);i.range=i.range||a(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=R(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call(j({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,a=this._props.grids,n=this._props.axes,s={width:this._width(),height:this._height(),tickFormat:""},o={width:this._width(),height:this._height()};for(var c in a)e=L.extend({},s,a[c]),r=T(e),this._grid.call(r);for(var l in n)false!==t[l]&&"summary"!==t[l]&&(e=L.extend({},o,n[l]),i=P(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),a=r.attr("transform"),n=a.substring(a.indexOf("(")+1,a.indexOf(")")).split(",");r.attr("transform","translate("+(+n[0]+40*e)+","+n[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],a=t._data[t._maskGaps[i+1]],n=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),s=t._x(t._data[t._findIndexForLatLng(a.latlng)].dist);t._mask.append("rect").attr("x",n).attr("y",0).attr("width",s-n).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(false!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=E(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var a=this._legend.selectAll(".legend-item"),n=a.nodes().length,s=Array(Math.floor(n/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(n%2))})),o=s.slice().reverse().map((function(t){return-t}));n%2!=0&&o.push(0),s=o.concat(s);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,d=30*n;n&&this.options.margins.right<d&&(this.options.margins.right=d,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),a.each((function(e,i,r){var a=d3.select(r[i]),n=(a.select("rect"),a.attr("data-name")),o=t._paths[n],l=55*s[i],d=2*c;a.attr("transform","translate("+l+", "+d+")"),n in t.options&&"disabled"==t.options[n]&&(o.classed("leaflet-hidden",true),a.select("text").style("text-decoration-line","line-through"),a.select("rect").style("fill-opacity","0")),t._mask&&o.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),a=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),n=0;return a.reduce((function(t,r,s){return a[e=s+1]===a[s]+1&&e!==a.length||(t.push(a.slice(n,e).map((function(t){return i[t].latlng}))),n=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,a){var n=t.distanceTo(r.latlng);n<i&&(i=n,e=a)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(I({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function U(t){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $,Z=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:false})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(M({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",false),this._container.call(M({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":d(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",true);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),q=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},f(this._container=b("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),V={autofitBounds:true,autohide:!L.Browser.mobile,autohideMarker:true,almostover:true,altitude:true,collapsed:false,detached:true,distance:true,distanceMarkers:{lazy:true,distance:true,direction:true},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:true,forceAxisBounds:false,height:200,imperial:false,interpolation:"curveLinear",lazyLoadJS:true,legend:true,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:false},preferCanvas:false,reverseCoords:false,ruler:true,skipNullZCoords:false,theme:"lightblue-theme",summary:"inline",slope:false,slopeDeltaMax:void 0,slopeRange:void 0,speed:false,speedDeltaMax:void 0,speedRange:void 0,time:false,timeFactor:3600,timeFormat:false,timestamps:false,width:600,waypoints:true,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:true,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:false,zooming:!L.Browser.Mobile},Q=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),v(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=false,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=true},disableZoom:function(){this._chart._zoomEnabled=false,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=true},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=true,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),true===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),true===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(O,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":U(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":U(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==U(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=s(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=b("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),y(t.getContainer(),"mousewheel",e._resetDrag,e),y(t.getContainer(),"touchstart",e._resetDrag,e),y(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(t.getContainer(),"mousewheel",this._resetDrag,this),x(t.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){f(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":C(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&C(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var a,n,s,o,c;t.meta=null!==(a=t.meta)&&void 0!==a?a:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:l,id:r}),i._addPoint(null!==(n=t.lat)&&void 0!==n?n:t[1],null!==(s=t.lng)&&void 0!==s?s:t[0],null!==(o=null!==(c=t.alt)&&void 0!==c?c:t.meta.ele)&&void 0!==o?o:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+_(),t=b("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&p(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){p(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){p(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var a=e.options.theme.replace("-theme",""),n=O[a]||{},s=r.options;if(s.color=n.line||n.area||a,s.stroke=!!s.color,t.call(this,i,r),s.stroke&&0!==s.weight){var o=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=n.outline||"#FFF",i.lineWidth=1.75*s.weight,i.stroke(),i.globalCompositeOperation=o}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,a=i.offsetHeight;r>0&&(e.width=r),a>20&&(e.height=a-20)}else{var n=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>n&&(e.width=n-30)}var s=this._chart=new H(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(s.render()),s.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;u(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new Z(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=b("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(y(t,"mouseover",this._expand,this),y(t,"mouseout",this._collapse,this)):(y(e,"click",L.DomEvent.stop),y(e,"click",this._toggle,this)),y(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new q({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,a=i.wptLabels,n=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var n,s,o;if(e.options.waypoints){var c=t.properties,l=null!==(n=c.desc)&&void 0!==n?n:"",d=null!==(s=c.name)&&void 0!==s?s:"",u=(null!==(o=c.sym)&&void 0!==o?o:d).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([true,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[true,"dots"].includes(a)?d:""}),[true,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(u)||(r[u]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+u+'"></i>'})));var p=L.marker(i,{icon:r[u]});if([true,"markers"].includes(a)&&(d||l)){var f=decodeURI("<b>"+d+"</b>"+(l.length>0?"<br>"+l:""));p.bindPopup(f,{className:"elevation-popup",keepInView:true}).openPopup(),p.bindTooltip(f,{className:"elevation-tooltip",direction:"auto",sticky:true,opacity:1}).openTooltip()}return e._addMarker(p),e.fire("waypoint_added",{point:p,element:i,properties:c}),p}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,n),e._fireEvt("eledata_loaded",{data:t,layer:n,name:e.track_info.name,track_info:e.track_info})})),n},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&d(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),a=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var n=toGeoJSON[r](i);return n.name=a.length>0?(null!==(e=Array.from(a).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:a[0]).textContent:"",n},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(false===t.skipNull){var a=e._data[r.index][t.name];if(r.index>0){var n=e._data[r.index-1][t.name];if(isNaN(n)){if(isNaN(i)||isNaN(a)?isNaN(i)?isNaN(a)||(n=a):n=i:n=(i+a)/2,!isNaN(n))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=n}}isNaN(a)||(i=a)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=f(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:true,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:true,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return u(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
2
2
|
/*!this._data.length ||*/
|
|
3
|
-
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&true!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});Q.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+" "+i.label},order:10}})})),Q.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return a(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===U(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),a=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+a)}else e.meta.time=new Date(Date.now());var n=e.meta.time;return n.getTime()-60*n.getTimezoneOffset()*1e3==0&&(n=0),n},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+a(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return a(t.time||0)},order:20}}))})),Q.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),a=O[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,a=t.track_info;if(t.options.altitudeDeltaMax){var n=e-r[i>0?i-1:i].z,s=t.options.altitudeDeltaMax;Math.abs(n)>s&&(e=r[i-1].z+s*Math.sign(n))}return(e=c(e,t.options.altitudeRange))>a.elevation_max&&(a.elevation_max=e),e<a.elevation_min&&(a.elevation_min=e),a.elevation_avg=(e+a.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:a.area||r,strokeColor:e.detached?a.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?a.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),Q.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),a=i[e].z-i[e>0?e-1:e].z;return isNaN(a)||0===r?0:a/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,a=t._data,n=a[i].z-a[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var s=slop-a[i>0?i-1:i].slope,o=t.options.slopeDeltaMax;Math.abs(s)>o&&(e=a[i-1].slope+o*Math.sign(s))}return e=c(e,t.options.slopeRange),n>0?t.track_info.ascent+=n:n<0&&(t.track_info.descent-=n),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+i.label},order:40}})}})),Q.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,a=1e3*(r[i].dist-r[i>0?i-1:i].dist),n=r[i].time-r[i>0?i-1:i].time;return n>0?Math.abs(a/n*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,a=t.track_info;if(t.options.speedDeltaMax){var n=e-r[i>0?i-1:i].speed,s=t.options.speedDeltaMax;Math.abs(n)>s&&(e=r[i-1].speed+s*Math.sign(n))}return(e=c(e,t.options.speedRange))>a.speed_max&&(a.speed_max=e),e<a.speed_min&&(a.speed_min=e),a.speed_avg=(e+a.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+i.label},order:50}}))}})),Q.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,a=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),n=(r[i].time-r[i>0?i-1:i].time)/1e3;return n>0?Math.abs(a/n)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,a=t.track_info;if(t.options.accelerationDeltaMax){var n=e-r[i>0?i-1:i].acceleration,s=t.options.accelerationDeltaMax;Math.abs(n)>s&&(e=r[i-1].acceleration+s*Math.sign(n))}return(e=c(e,t.options.accelerationRange))>a.acceleration_max&&(a.acceleration_max=e),e<a.acceleration_min&&(a.acceleration_min=e),a.acceleration_avg=(e+a.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+i.label},order:60}})}})),Q.Utils=z,Q.Components=Y,Q.Chart=H,$=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),$.call(null,t,e)},Q.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new Q(t)}}))})(leafletElevation_min);return leafletElevation_min.exports}requireLeafletElevation_min();var leaflet_markercluster$1={exports:{}};var leaflet_markercluster=leaflet_markercluster$1.exports;var hasRequiredLeaflet_markercluster;function requireLeaflet_markercluster(){if(hasRequiredLeaflet_markercluster)return leaflet_markercluster$1.exports;hasRequiredLeaflet_markercluster=1;(function(t,e){!function(t,i){i(e)}(leaflet_markercluster,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:false,spiderfyOnMaxZoom:true,showCoverageOnHover:true,zoomToBoundsOnClick:true,singleMarkerMode:false,disableClusteringAtZoom:null,removeOutsideVisibleBounds:true,animate:true,animateAddingMarkers:false,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:false,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,true),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,a=this._nonPointGroup,n=this.options.chunkedLoading,s=this.options.chunkInterval,o=this.options.chunkProgress,c=t.length,l=0,d=true;if(this._map){var u=(new Date).getTime(),p=L.bind((function(){var f=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(n&&l%200==0){var h=(new Date).getTime()-f;if(s<h)break}if((i=t[l])instanceof L.LayerGroup)d&&(t=t.slice(),d=false),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else a.addLayer(i),e||this.fire("layeradd",{layer:i})}o&&o(l,c,(new Date).getTime()-u),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)}),this);p()}else for(var f=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(d&&(t=t.slice(),d=false),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||f.push(i):a.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,a=this._featureGroup,n=this._nonPointGroup,s=true;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=false),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),n.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var o=t.slice(),c=r;for(e=0;e<c;e++)(i=o[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,o),c=o.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=false),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,true,true),this.fire("layerremove",{layer:i}),a.hasLayer(i)&&(a.removeLayer(i),i.clusterShow&&i.clusterShow())):(n.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,a,n=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),r=n.length-1;0<=r;r--){for(i=true,a=s.length-1;0<=a;a--)if(s[a].layer===n[r]){i=false;break}i&&t.call(e,n[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return false;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return true;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return false;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,true),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,true)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),true},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());a<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,a=this._gridUnclustered,n=this._featureGroup,s=this._map,o=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,d=l._markers;for(this._arraySplice(d,t);l&&(l._childCount--,l._boundsNeedUpdate=true,!(l._zoom<o));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,s.project(l._cLatLng,l._zoom)),a[l._zoom].addObject(c,s.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(n.removeLayer(l),i||n.addLayer(c))):l._iconNeedsUpdate=true,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return true;e=e.parentNode}return false},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,a=this.options.spiderfyOnEveryZoom;(e||r||a)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,a=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),a.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var a=t;e<=a;a--)this._gridClusters[a]=new L.DistanceGrid(r(a)),this._gridUnclustered[a]=new L.DistanceGrid(r(a));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,a=this._gridClusters,n=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);s<=e;e--){i=this._map.project(t.getLatLng(),e);var o=a[e].getNearObject(i);if(o)return o._addChild(t),void(t.__parent=o);if(o=n[e].getNearObject(i)){var c=o.__parent;c&&this._removeLayer(o,false);var l=new this._markerCluster(this,e,o,t);a[e].addObject(l,this._map.project(l._cLatLng,e)),o.__parent=l;var d=t.__parent=l;for(r=e-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),a[r].addObject(d,this._map.project(o.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(o,e)}n[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),a=0;for(e=e||[];a<r.length;a++)(i=r[a])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),a=this._featureGroup,n=Math.floor(this._map.getMinZoom());this._ignoreMove=true,this._topClusterLevel._recursively(r,t,n,(function(n){var s,o=n._latlng,c=n._markers;for(r.contains(o)||(o=null),n._isSingleParent()&&t+1===e?(a.removeLayer(n),n._recursivelyAddChildrenToMap(null,e,r)):(n.clusterHide(),n._recursivelyAddChildrenToMap(o,e,r)),i=c.length-1;0<=i;i--)s=c[i],r.contains(s._latlng)||a.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),a.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=false,this._enqueue((function(){this._topClusterLevel._recursively(r,t,n,(function(t){a.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),a=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,a,e+1,i);var n=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];this._ignoreMove=true,s.setLatLng(s.getLatLng()),this._ignoreMove=false,s.clusterShow&&s.clusterShow()}else t._recursively(r,i,a,(function(t){t._recursivelyRemoveChildrenFromMap(r,a,e+1)}));n._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,a=r.getBoundsZoom(this._bounds),n=this._zoom+1,s=r.getZoom();0<i.length&&n<a;){n++;var o=[];for(e=0;e<i.length;e++)o=o.concat(i[e]._childClusters);i=o}n<a?this._group._map.setView(this._latlng,n):a<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=true,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=false),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,true)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,a=this._markers,n=this._childClusters,s=0,o=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<a.length;t++)i=a[t]._latlng,this._bounds.extend(i),s+=i.lat,o+=i.lng;for(t=0;t<n.length;t++)(e=n[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,s+=i.lat*r,o+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/c,o/c),this._boundsNeedUpdate=false}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,a=t._markers;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,a=t._childClusters;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(a){a._recursivelyAnimateChildrenIn(t,a._group._map.latLngToLayerPoint(a.getLatLng()).round(),i),a._isSingleParent()&&i-1===r?(a.clusterShow(),a._recursivelyRemoveChildrenFromMap(t,e,i)):a.clusterHide(),a._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var a=r._markers.length-1;0<=a;a--){var n=r._markers[a];i.contains(n._latlng)&&(t&&(n._backupLatlng=n.getLatLng(),n.setLatLng(t),n.clusterHide&&n.clusterHide()),r._group._featureGroup.addLayer(n))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var a=this._childClusters.length-1;0<=a;a--)this._childClusters[a]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var a,n;this._recursively(t,e-1,i-1,(function(t){for(n=t._markers.length-1;0<=n;n--)a=t._markers[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}),(function(t){for(n=t._childClusters.length-1;0<=n;n--)a=t._childClusters[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}))},_recursively:function(t,e,i,r,a){var n,s,o=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),a&&c===i&&a(this)),c<e||c<i)for(n=o.length-1;0<=n;n--)(s=o[n])._boundsNeedUpdate&&s._recalculateBounds(),t.intersects(s._bounds)&&s._recursively(t,e,i,r,a)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),a=this._grid,n=a[r]=a[r]||{},s=n[i]=n[i]||[],o=L.Util.stamp(t);this._objectPoint[o]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,a=this._getCoord(e.x),n=this._getCoord(e.y),s=this._grid,o=s[n]=s[n]||{},c=o[a]=o[a]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete o[a],true},eachObject:function(t,e){var i,r,a,n,s,o,c=this._grid;for(i in c)for(r in s=c[i])for(a=0,n=(o=s[r]).length;a<n;a++)t.call(e,o[a])&&(a--,n--)},getNearObject:function(t){var e,i,r,a,n,s,o,c,l=this._getCoord(t.x),d=this._getCoord(t.y),u=this._objectPoint,p=this._sqCellSize,f=null;for(e=d-1;e<=d+1;e++)if(a=this._grid[e])for(i=l-1;i<=l+1;i++)if(n=a[i])for(r=0,s=n.length;r<s;r++)o=n[r],((c=this._sqDist(u[L.Util.stamp(o)],t))<p||c<=p&&null===f)&&(p=c,f=o);return f},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,a,n=0,s=null,o=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(a=this.getDistant(r,t))&&(o.push(r),n<a&&(n=a,s=r));return{maxPoint:s,newPoints:o}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=false,r=false,a=false,n=false,s=null,o=null,c=null,l=null,d=null,u=null;for(e=t.length-1;0<=e;e--){var p=t[e];(false===i||p.lat>i)&&(i=(s=p).lat),(false===r||p.lat<r)&&(r=(o=p).lat),(false===a||p.lng>a)&&(a=(c=p).lng),(false===n||p.lng<n)&&(n=(l=p).lng)}return d=r!==i?(u=o,s):(u=l,c),[].concat(this.buildConvexHull([u,d],t),this.buildConvexHull([d,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,true),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,n=this._2PI/t,s=[];for(a=Math.max(a,35),s.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*n,s[i]=new L.Point(e.x+a*Math.cos(r),e.y+a*Math.sin(r))._round();return s},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,a=r*this._spiralLengthStart,n=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,o=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+a*Math.cos(o),e.y+a*Math.sin(o))._round()),a+=s/(o+=n/a+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,a=i._featureGroup,n=this.getAllChildMarkers(null,true);for(i._ignoreMove=true,this.setOpacity(1),e=n.length-1;0<=e;e--)t=n[e],a.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:n}),i._ignoreMove=false,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,a,n,s=this._group,o=s._map,c=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=true,i=0;i<t.length;i++)n=o.layerPointToLatLng(e[i]),r=t[i],a=new L.Polyline([this._latlng,n],l),o.addLayer(a),r._spiderLeg=a,r._preSpiderfyLatlng=r._latlng,r.setLatLng(n),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),s._ignoreMove=false,s.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,a,n,s,o,c=this,l=this._group,d=l._map,u=l._featureGroup,p=this._latlng,f=d.latLngToLayerPoint(p),h=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),b=m.opacity;for(void 0===b&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=b,l._ignoreMove=true,i=0;i<t.length;i++)r=t[i],o=d.layerPointToLatLng(e[i]),a=new L.Polyline([p,o],m),d.addLayer(a),r._spiderLeg=a,h&&(s=(n=a._path).getTotalLength()+.1,n.style.strokeDasharray=s,n.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)o=d.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.clusterShow&&r.clusterShow(),h&&((n=(a=r._spiderLeg)._path).style.strokeDashoffset=0,a.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=false,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,a,n,s,o=this,c=this._group,l=c._map,d=c._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,true),f=L.Path.SVG;for(c._ignoreMove=true,c._animationStart(),this.setOpacity(1),i=p.length-1;0<=i;i--)(e=p[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,s=true,e._setPos&&(e._setPos(u),s=false),e.clusterHide&&(e.clusterHide(),s=false),s&&d.removeLayer(e),f&&(n=(a=(r=e._spiderLeg)._path).getTotalLength()+.1,a.style.strokeDashoffset=n,r.setStyle({opacity:0})));c._ignoreMove=false,setTimeout((function(){var t=0;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&t++;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&d.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:o,markers:p})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=true,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:true})}))})(leaflet_markercluster$1,leaflet_markercluster$1.exports);return leaflet_markercluster$1.exports}requireLeaflet_markercluster();!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof exports)module.exports=t(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=t(window.L)}}((function(t){var e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:true,zoomLevel:void 0,drawCircle:true,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>',htmlSpinner:'\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>',htmlGeolocation:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>',htmlOrientation:'\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>',iconGeolocation:t.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((function(){clearTimeout(t._clickTimeout),t._clickTimeout=void 0,t._map&&(t._clicked&&t.options.setViewAfterClick?t._setView():(t._clicked=true,t._updateButton(),t._map.on("layeradd",t._onLayerAdd,t),t._checkGeolocation().then((function(e){t._geolocation=true,t._onLocationFound(e.coords),t.options.setViewAfterClick&&t._setView(),t._watchGeolocation(),t._checkClickResult()})).catch((function(){t._geolocation=false,t._checkClickResult()})),t._checkOrientation().then((function(){t._orientation=true,t._watchOrientation(),t._checkClickResult()})).catch((function(){t._orientation=false,t._checkClickResult()}))))}),this.options.clickTimeoutDelay);return[2]}))}))},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),false===this._geolocation&&false===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise((function(t,e){navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:true})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((function(t){return"granted"===t||Promise.reject()})):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:true,enableHighAccuracy:true}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){var e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var e=void 0;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var earthRadius=6371008.8;var factors={centimeters:earthRadius*100,centimetres:earthRadius*100,degrees:earthRadius/111325,feet:earthRadius*3.28084,inches:earthRadius*39.37,kilometers:earthRadius/1e3,kilometres:earthRadius/1e3,meters:earthRadius,metres:earthRadius,miles:earthRadius/1609.344,millimeters:earthRadius*1e3,millimetres:earthRadius*1e3,nauticalmiles:earthRadius/1852,radians:1,yards:earthRadius*1.0936};function feature(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function point(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!isNumber(t[0])||!isNumber(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return feature(r,e,i)}function featureCollection(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function radiansToLength(t,e){if(e===void 0){e="kilometers"}var i=factors[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function degreesToRadians(t){var e=t%360;return e*Math.PI/180}function isNumber(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function coordEach(t,e,i){if(t===null)return;var r,a,n,s,o,c,l,d=0,u=0,p,f=t.type,h=f==="FeatureCollection",m=f==="Feature",b=h?t.features.length:1;for(var v=0;v<b;v++){l=h?t.features[v].geometry:m?t.geometry:t;p=l?l.type==="GeometryCollection":false;o=p?l.geometries.length:1;for(var g=0;g<o;g++){var w=0;var k=0;s=p?l.geometries[g]:l;if(s===null)continue;c=s.coordinates;var y=s.type;d=0;switch(y){case null:break;case"Point":if(e(c,u,v,w,k)===false)return false;u++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],u,v,w,k)===false)return false;u++;if(y==="MultiPoint")w++}if(y==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(a=0;a<c[r].length-d;a++){if(e(c[r][a],u,v,w,k)===false)return false;u++}if(y==="MultiLineString")w++;if(y==="Polygon")k++}if(y==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(a=0;a<c[r].length;a++){for(n=0;n<c[r][a].length-d;n++){if(e(c[r][a][n],u,v,w,k)===false)return false;u++}k++}w++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(coordEach(s.geometries[r],e)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function featureEach(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function explode(t){var e=[];if(t.type==="FeatureCollection"){featureEach(t,(function(t){coordEach(t,(function(i){e.push(point(i,t.properties))}))}))}else{coordEach(t,(function(i){e.push(point(i,t.properties))}))}return featureCollection(e)}function bbox(t){var e=[Infinity,Infinity,-Infinity,-Infinity];coordEach(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}bbox["default"]=bbox;function center(t,e){if(e===void 0){e={}}var i=bbox(t);var r=(i[0]+i[2])/2;var a=(i[1]+i[3])/2;return point([r,a],e.properties,e)}function clone(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return cloneFeature(t);case"FeatureCollection":return cloneFeatureCollection(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(t);default:throw new Error("unknown GeoJSON type")}}function cloneFeature(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=cloneProperties(t.properties);e.geometry=cloneGeometry(t.geometry);return e}function cloneProperties(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=cloneProperties(r)}}else{e[i]=r}}));return e}function cloneFeatureCollection(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return cloneFeature(t)}));return e}function cloneGeometry(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return cloneGeometry(t)}));return e}e.coordinates=deepSlice(t.coordinates);return e}function deepSlice(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return deepSlice(t)}))}function getCoord(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function getGeom(t){if(t.type==="Feature"){return t.geometry}return t}function distance(t,e,i){if(i===void 0){i={}}var r=getCoord(t);var a=getCoord(e);var n=degreesToRadians(a[1]-r[1]);var s=degreesToRadians(a[0]-r[0]);var o=degreesToRadians(r[1]);var c=degreesToRadians(a[1]);var l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(o)*Math.cos(c);return radiansToLength(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function nearestPoint(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var a=0;featureEach(e,(function(e,i){var n=distance(t,e);if(n<r){a=i;r=n}}));i=clone(e.features[a]);i.properties.featureIndex=a;i.properties.distanceToPoint=r;return i}function booleanPointInPolygon(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=getCoord(t);var a=getGeom(e);var n=a.type;var s=e.bbox;var o=a.coordinates;if(s&&inBBox(r,s)===false){return false}if(n==="Polygon"){o=[o]}var c=false;for(var l=0;l<o.length&&!c;l++){if(inRing(r,o[l][0],i.ignoreBoundary)){var d=false;var u=1;while(u<o[l].length&&!d){if(inRing(r,o[l][u],!i.ignoreBoundary)){d=true}u++}if(!d){c=true}}}return c}function inRing(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var a=0,n=e.length-1;a<e.length;n=a++){var s=e[a][0];var o=e[a][1];var c=e[n][0];var l=e[n][1];var d=t[1]*(s-c)+o*(c-t[0])+l*(t[0]-s)===0&&(s-t[0])*(c-t[0])<=0&&(o-t[1])*(l-t[1])<=0;if(d){return!i}var u=o>t[1]!==l>t[1]&&t[0]<(c-s)*(t[1]-o)/(l-o)+s;if(u){r=!r}}return r}function inBBox(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function pointOnFeature(t){var e=normalize(t);var i=center(e);var r=false;var a=0;while(!r&&a<e.features.length){var n=e.features[a].geometry;var s,o,c,l,d,u,p;var f=false;if(n.type==="Point"){if(i.geometry.coordinates[0]===n.coordinates[0]&&i.geometry.coordinates[1]===n.coordinates[1]){r=true}}else if(n.type==="MultiPoint"){var h=false;p=0;while(!h&&p<n.coordinates.length){if(i.geometry.coordinates[0]===n.coordinates[p][0]&&i.geometry.coordinates[1]===n.coordinates[p][1]){r=true;h=true}p++}}else if(n.type==="LineString"){p=0;while(!f&&p<n.coordinates.length-1){s=i.geometry.coordinates[0];o=i.geometry.coordinates[1];c=n.coordinates[p][0];l=n.coordinates[p][1];d=n.coordinates[p+1][0];u=n.coordinates[p+1][1];if(pointOnSegment(s,o,c,l,d,u)){f=true;r=true}p++}}else if(n.type==="MultiLineString"){var m=0;while(m<n.coordinates.length){f=false;p=0;var b=n.coordinates[m];while(!f&&p<b.length-1){s=i.geometry.coordinates[0];o=i.geometry.coordinates[1];c=b[p][0];l=b[p][1];d=b[p+1][0];u=b[p+1][1];if(pointOnSegment(s,o,c,l,d,u)){f=true;r=true}p++}m++}}else if(n.type==="Polygon"||n.type==="MultiPolygon"){if(booleanPointInPolygon(i,n)){r=true}}a++}if(r){return i}else{var v=featureCollection([]);for(a=0;a<e.features.length;a++){v.features=v.features.concat(explode(e.features[a]).features)}return point(nearestPoint(i,v).geometry.coordinates)}}function normalize(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return featureCollection([feature(t)])}return featureCollection([t])}return t}function pointOnSegment(t,e,i,r,a,n){var s=Math.sqrt((a-i)*(a-i)+(n-r)*(n-r));var o=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((a-t)*(a-t)+(n-e)*(n-e));return s===o+c}(function(){var t=L.Polyline.prototype.onAdd,e=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var a={onAdd:function(e){t.call(this,e);this._textRedraw()},onRemove:function(t){t=t||this._map;if(t&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);e.call(this,t)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var t=this._text,e=this._textOptions;if(t){this.setText(null).setText(t,e)}},setText:function(t,e){this._text=t;this._textOptions=e;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};e=L.Util.extend(i,e);if(!t){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}t=t.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var a=this._renderer._container;this._path.setAttribute("id",r);if(e.repeat){if(e.repeat!=true&&e.repeat>=1){t=t.padStart(e.repeat," ")}var n=L.SVG.create("text");for(var s in e.attributes)n.setAttribute(s,e.attributes[s]);n.appendChild(document.createTextNode(t));a.appendChild(n);var o=n.getComputedTextLength();a.removeChild(n);t=new Array(Math.ceil(isNaN(this._path.getTotalLength()/o)?0:this._path.getTotalLength()/o)).join(t)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=e.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var s in e.attributes)c.setAttribute(s,e.attributes[s]);l.appendChild(document.createTextNode(t));c.appendChild(l);this._textNode=c;if(e.below){a.insertBefore(c,a.firstChild)}else{a.appendChild(c)}if(e.center){var u=c.getComputedTextLength();var p=this._path.getTotalLength();c.setAttribute("dx",p/2-u/2)}if(e.orientation){var f=0;switch(e.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=e.orientation}var h=c.getBBox().x+c.getBBox().width/2;var m=c.getBBox().y+c.getBBox().height/2;c.setAttribute("transform","rotate("+f+" "+h+" "+m+")")}if(this.options.interactive){if(L.Browser.svg||!L.Browser.vml){l.setAttribute("class","leaflet-interactive")}var b=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"];for(var v=0;v<b.length;v++){L.DomEvent.on(c,b[v],this.fire,this)}}return this}};L.Polyline.include(a);L.LayerGroup.include({setText:function(t,e){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(t,e)}}return this}})})();var grwMapCss=function(){return'@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.outdoor-site-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-content-tooltip .signage-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important;margin-right:8px}.signage-marker .signage-name{color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-tip{background-color:var(--color-background)}.leaflet-popup-content{width:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}.leaflet-simple-locate-icon{fill:#1e90ff}.layer-loader-container{width:100%;height:100%;background-color:rgba(255, 255, 255, 0.8);position:absolute;z-index:8000;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.layer-loader-container .layer-loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=createEvent(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=createEvent(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.mapIsReady=false;this.customLayersRefreshInterval=0;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.arrowRepeat=20;this.userLayersState={};this.tileLayer=[];this.customLayers={};this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.addTreksController=null;this.addTouristicContentsController=null;this.addTouristicEventsController=null;this.addOutdoorSitesController=null;this.addSelectedCurrentTrekController=null;this.showTrekLineController=null;this.viewportState={};this.hasScrolled=false;this.fitBoundsQueued=false}t.prototype.componentDidUpdate=function(){if(this.map){this.map.invalidateSize();if(this.fitBoundsQueued&&this.bounds){this.map.fitBounds(this.bounds);this.fitBoundsQueued=false}}};t.prototype.onCenterOnMap=function(t){this.map.setView(new L$1.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){this.viewportState.steps=t.detail;if(this.hasScrolled&&this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){this.viewportState.description=t.detail;if(this.hasScrolled&&this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){this.viewportState.parking=t.detail;if(this.hasScrolled&&this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){this.viewportState.informationPlaces=t.detail;if(this.hasScrolled&&this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){this.viewportState.sensitiveArea=t.detail;if(this.hasScrolled&&this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){this.viewportState.pois=t.detail;if(this.hasScrolled&&this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer,!state.currentPois||state.currentPois.length===0)}};t.prototype.touristicContentsIsInViewport=function(t){this.viewportState.touristicContents=t.detail;if(this.hasScrolled&&this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer,!state.trekTouristicContents||state.trekTouristicContents.length===0)}};t.prototype.touristicEventsIsInViewport=function(t){this.viewportState.touristicEvents=t.detail;if(this.hasScrolled&&this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer,!state.trekTouristicEvents||state.trekTouristicEvents.length===0)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onDetailScrolled=function(){if(!this.hasScrolled){this.hasScrolled=true;this.applyCachedViewportState()}};t.prototype.onCardTrekMouseOver=function(t){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==t.detail)){state.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){state.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentWillLoad=function(){if(!state.language){state.language="fr"}if(!state.languages){state.languages=["fr"]}};t.prototype.componentDidLoad=function(){var t=this;this.map=L$1.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});this.map.on("overlayadd",(function(e){var i=e.layer;var r=Object.values(t.customLayers).includes(i);if(r){t.refreshSingleLayer(i)}}));var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,a){t.tileLayer.push({key:"".concat(e[a]),value:bundleExports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[a]&&r[a]!==""?r[a].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=L$1.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}L$1.control.zoom({zoomInTitle:translate[state.language].zoomIn,zoomOutTitle:translate[state.language].zoomOut}).addTo(this.map);L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.Control.Contract=L$1.Control.extend({onAdd:function(){var e=L$1.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(L$1.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};i.title=translate[state.language].contract;return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).addTo(this.map);new L$1.Control.SimpleLocate({position:"topleft",className:"button-locate",title:translate[state.language].locate}).addTo(this.map);if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.currentOutdoorSite){this.addOutdoorSite()}else if(state.currentOutdoorCourse){this.addOutdoorCourse()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}else if(state.outdoorSites){this.addOutdoorSites()}onChange("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));onChange("currentPois",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentPois();return[2]}))}))}));onChange("trekTouristicContents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicContents();return[2]}))}))}));onChange("trekTouristicEvents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicEvents();return[2]}))}))}));onChange("currentOutdoorSites",(function(){if(state.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}t.updateCustomLayersVisibility()}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(state.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));onChange("currentTouristicContent",(function(){if(t.grwApp){if(state.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(state.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(state.currentTrek){t.removeTouristicContent();t.addTrek()}else if(state.currentTreks){t.removeTouristicContent();t.addTreks()}}}));onChange("currentTouristicEvent",(function(){if(t.grwApp){if(state.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}}));onChange("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}));onChange("mode",(function(){t.updateCustomLayersVisibility()}));this.addCustomLayers();if(this.customLayersRefreshInterval>0){this.refreshIntervalId=window.setInterval((function(){t.refreshCustomLayers()}),this.customLayersRefreshInterval*60*1e3)}};t.prototype.disconnectedCallback=function(){if(this.refreshIntervalId){window.clearInterval(this.refreshIntervalId)}};t.prototype.addCustomLayers=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f;var h=this;return __generator(this,(function(m){switch(m.label){case 0:if(this.customWmsUrl){t=this.customWmsUrl.split(",");e=this.customWmsLayers?this.customWmsLayers.split(","):[];i=this.customWmsName?this.customWmsName.split(","):[];r=this.customWmsAttribution?this.customWmsAttribution.split(","):[];t.forEach((function(t,a){var n=e[a]||"";var s=i[a]||"WMS Layer ".concat(a+1);var o=r[a]||"";try{var c=L$1.tileLayer.wms(t.trim(),{layers:n.trim(),format:"image/png",transparent:true,maxZoom:h.maxZoom,version:"1.3.0",attribution:o.trim()});h.customLayers[s.trim()]=c}catch(t){console.error("Error adding WMS layer:",t)}}))}if(this.customTileUrl){a=this.customTileUrl.split(",");n=this.customTileName?this.customTileName.split(","):[];s=this.customTileAttribution?this.customTileAttribution.split(","):[];a.forEach((function(t,e){var i=n[e]||"Tile Layer ".concat(e+1);var r=s[e]||"";try{var a=L$1.tileLayer(t.trim(),{maxZoom:h.maxZoom,attribution:r.trim()});a._originalUrl=t.trim();h.customLayers[i.trim()]=a}catch(t){console.error("Error adding custom tile layer:",t)}}))}if(!this.customGeojsonUrl)return[3,4];o=this.customGeojsonUrl.split(",");c=this.customGeojsonName?this.customGeojsonName.split(","):[];l=this.customGeojsonColor?this.customGeojsonColor.split(","):[];d=this.customGeojsonWeight?this.customGeojsonWeight.split(","):[];u=function(t){var e,i,r,a,n,s,u,f;return __generator(this,(function(m){switch(m.label){case 0:e=o[t].trim();i=c[t]||"GeoJSON Layer ".concat(t+1);r=l[t]||"#3388ff";a=d[t]?parseInt(d[t],10):3;m.label=1;case 1:m.trys.push([1,4,,5]);return[4,fetch(e)];case 2:n=m.sent();if(!n.ok){throw new Error("HTTP error! status: ".concat(n.status))}return[4,n.json()];case 3:s=m.sent();u=L$1.geoJSON(s,{style:function(t){var e=(t===null||t===void 0?void 0:t.properties)||{};var i=e.stroke||e.color||r;var n=e["stroke-width"]||e.weight||a;var s=e["stroke-opacity"]||e.opacity||1;var o=e.fill||e.fillColor||i;var c=e["fill-opacity"]||e.fillOpacity||.2;return{color:i,weight:n,opacity:s,fillColor:o,fillOpacity:c}},pointToLayer:function(t,e){var i=(t===null||t===void 0?void 0:t.properties)||{};var a=i.icon||i["marker-symbol"];var n=i.name||i.title||"";var s=i.description||i.desc||"";var o;if(a){var c=a.startsWith("http")||a.startsWith("/")||a.startsWith("assets/");var l=h.commonMarkerSize;if(c){var d=L$1.icon({iconUrl:a,iconSize:[l,l],iconAnchor:[l/2,l]});o=L$1.marker(e,{icon:d})}else{var u=i["marker-color"]||i.backgroundColor||"transparent";var p=i["marker-stroke"]||i.borderColor||(u!=="transparent"?"#ffffff":"transparent");var f=i["marker-stroke-width"]||(u!=="transparent"?2:0);var m=i["marker-radius"]||"50%";var b=L$1.divIcon({html:'<div style="font-size: '.concat(l*.6,"px; display: flex; align-items: center; justify-content: center; width: ").concat(l,"px; height: ").concat(l,"px; background-color: ").concat(u,"; border: ").concat(f,"px solid ").concat(p,"; border-radius: ").concat(m,'; box-sizing: border-box;">').concat(a,"</div>"),className:"",iconSize:[l,l],iconAnchor:[l/2,l]});o=L$1.marker(e,{icon:b})}}else{var v=i.stroke||i.color||r;o=L$1.circleMarker(e,{radius:8,fillColor:v,color:"#fff",weight:2,opacity:1,fillOpacity:.8})}if(n||s){var g='<div class="trek-departure-popup" style="font-family: var(--font-family, sans-serif);">';if(i.image){var w=i.image;g+='<img src="'.concat(w,'" style="width: 100%; height: auto; border-top-left-radius: var(--border-radius, 8px); border-top-right-radius: var(--border-radius, 8px); max-height: 120px; object-fit: cover;" />')}if(n){g+='<div class="trek-name" style="padding: 12px 12px 4px 12px; margin: 0; color: var(--color-primary-app);">'.concat(n,"</div>")}if(s){g+='<div style="font-size: 12px; color: var(--color-on-surface-variant, #49454e); padding: '.concat(n?"0px 12px 12px 12px":"12px",'; line-height: 1.4; word-break: break-word;">').concat(s,"</div>")}g+="</div>";o.bindPopup(g,{closeButton:false})}return o}});u._customUrl=e;p.customLayers[i.trim()]=u;return[3,5];case 4:f=m.sent();console.error("Error loading GeoJSON from ".concat(e,":"),f);return[3,5];case 5:return[2]}}))};p=this;f=0;m.label=1;case 1:if(!(f<o.length))return[3,4];return[5,u(f)];case 2:m.sent();m.label=3;case 3:f++;return[3,1];case 4:this.updateCustomLayersVisibility();return[2]}}))}))};t.prototype.refreshCustomLayers=function(){var t=this;Object.keys(this.customLayers).forEach((function(e){var i=t.customLayers[e];if(t.map.hasLayer(i)){t.refreshSingleLayer(i)}}))};t.prototype.refreshSingleLayer=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s;return __generator(this,(function(o){switch(o.label){case 0:if(!(t instanceof L$1.TileLayer.WMS))return[3,1];t.setParams({_t:Date.now()});return[3,8];case 1:if(!(t instanceof L$1.TileLayer))return[3,2];e=t._originalUrl;if(e){i=e.includes("?")?"&":"?";t.setUrl("".concat(e).concat(i,"_t=").concat(Date.now()))}else{t.redraw()}return[3,8];case 2:if(!(t instanceof L$1.GeoJSON))return[3,8];r=t._customUrl;if(!r)return[3,8];o.label=3;case 3:o.trys.push([3,7,,8]);return[4,fetch(r,{cache:"no-store"})];case 4:a=o.sent();if(!a.ok)return[3,6];return[4,a.json()];case 5:n=o.sent();t.clearLayers();t.addData(n);o.label=6;case 6:return[3,8];case 7:s=o.sent();console.error("Error refreshing GeoJSON layer:",s);return[3,8];case 8:return[2]}}))}))};t.prototype.updateCustomLayersVisibility=function(){var t=this;var e=!this.grwApp||state.mode==="treks"&&!!state.currentTrek;if(e&&Object.keys(this.customLayers).length>0&&!this.layersControl){var i={};this.tileLayer.forEach((function(t){i[t.key]=t.value}));this.layersControl=L$1.control.layers(i,{},{collapsed:true}).addTo(this.map)}Object.keys(this.customLayers).forEach((function(i){var r=t.customLayers[i];if(e){if(!t.map.hasLayer(r)){r.addTo(t.map)}if(t.layersControl){var a=t.layersControl._layers.some((function(t){return t.layer===r}));if(!a){t.layersControl.addOverlay(r,i)}}}else{if(t.map.hasLayer(r)){t.map.removeLayer(r)}if(t.layersControl){t.layersControl.removeLayer(r)}}}));if(e&&Object.keys(this.customLayers).length>0){this.handleLayersControlEvent()}};t.prototype.handleLayerVisibility=function(t,e,i){if(i===void 0){i=false}if(t&&!this.map.hasLayer(e)){e.addTo(this.map);this.layerDataIsLoading=i;forceUpdate(this.hostElement)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;if(t===void 0){t=false}return __generator(this,(function(p){switch(p.label){case 0:(e=this.addTreksController)===null||e===void 0?void 0:e.abort();this.addTreksController=new AbortController;r=this.addTreksController.signal;state.treksWithinBounds=state.currentTreks;a=[];n={type:"FeatureCollection",features:[]};if(state.currentTreks){s=function(t){a.push(t.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=state.practices.find((function(e){return e.id===t.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentTreks;o<c.length;o++){l=c[o];s(l)}}if(!!this.treksLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"practice")];case 1:d=p.sent();if(r.aborted){return[2]}this.treksLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:d[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(d[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:u.mainMarkerSize,iconAnchor:[u.mainMarkerSize/2,u.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(u,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image-popup";n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){u.hideTrekLine();u.showTrekLine(t.properties.id);u.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:u.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);p.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){var t;(t=this.addTreksController)===null||t===void 0?void 0:t.abort();if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(state.currentOutdoorSites&&!state.currentMapBounds||state.currentOutdoorSites&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.outdoorSitesWithinBounds=state.currentOutdoorSites.filter((function(e){var i=pointOnFeature(e.geometry).geometry.coordinates;return t.map.getBounds().contains(L$1.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A;var _=this;return __generator(this,(function(L){switch(L.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=L.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:"transparent"}},onEachFeature:function(t,e){e.setText(">",{repeat:_.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat(Build.isDev?"/":"","assets/parking.svg"));a={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:_.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){n={type:"FeatureCollection",features:[]};for(s=0,o=state.currentSensitiveAreas;s<o.length;s++){c=o[s];n.features.push({type:"Feature",properties:{name:c.name},geometry:c.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(n,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:_.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:L.sent();return[4,this.addCurrentPois()];case 3:L.sent();return[4,this.addCurrentSignages()];case 4:L.sent();return[4,this.addCurrentTouristicContents()];case 5:L.sent();return[4,this.addCurrentTouristicEvents()];case 6:L.sent();if(state.currentTrek.points_reference){l={type:"FeatureCollection",features:[]};l.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});d=0;this.currentReferencePointsLayer=L$1.geoJSON(l,{pointToLayer:function(t,e){d+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(d,"</div>"),className:"",iconSize:_.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){p=function(e){u.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=state.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(t){return t.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(f=0,h=state.currentTrekSteps;f<h.length;f++){m=h[f];p(m)}}b=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){b+=1;return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(b,"</div></div></div>"),className:"",iconSize:_.mainMarkerSize,iconAnchor:[_.mainMarkerSize/2,_.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(_,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;a.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";a.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){_.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}v={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};L$1.registerLocale("fr",v);L$1.setLocale("fr");g=state.currentTrek.geometry.coordinates.map((function(t){return t[2]})).filter((function(t){return t!==undefined&&t!==null}));w={yAxisMin:g.length>0?Math.min.apply(Math,g)*.75:0,yAxisMax:g.length>0?Math.max.apply(Math,g)*1.25:0};k=Object.assign({elevationDiv:"#elevation-container",theme:"custom-theme use-theme-color",height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:false},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false},w);this.elevationControl=L$1.control.elevation(k).addTo(this.map);y=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(y);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";forceUpdate(this.hostElement);x={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[state.currentTrek.geometry.coordinates.length-1]},properties:null}]};A=0;this.departureArrivalLayer=L$1.geoJSON(x,{pointToLayer:function(t,e){A+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(A===1?"departure-marker":"arrival-marker",'" class="').concat(A===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:_.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=L$1.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){_.fitBoundsQueued=true;!_.mapIsReady&&(_.mapIsReady=!_.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;return __generator(this,(function(s){switch(s.label){case 0:i={};r=0;s.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];a=i;n=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:a[n]=s.sent();s.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s;return __generator(this,(function(o){switch(o.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=o.sent();if(!i)return[3,3];n=(a=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=n.apply(a,[o.sent().data]);return[3,4];case 3:r=t?t:null;o.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:s=o.sent();if(s){e=Capacitor.convertFileSrc(s.uri)}o.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:a={type:"FeatureCollection",features:[]};if(state.currentTreks){n=state.currentTreks.find((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=state.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(t){return t.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedCurrentTrek();(r=this.addSelectedCurrentTrekController)===null||r===void 0?void 0:r.abort();this.addSelectedCurrentTrekController=new AbortController;s=this.addSelectedCurrentTrekController.signal;state.selectedTrekId=t;return[4,this.getIcons(a,"practice")];case 1:o=l.sent();if(s.aborted){return[2]}this.selectedCurrentTrekLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:c.selectedMainMarkerSize,iconAnchor:[c.selectedMainMarkerSize/2,c.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(c,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;n.part="trek-image";a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!c.trekPopupIsOpen){state.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){c.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){c.trekPopupIsOpen=false;state.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){var t;(t=this.addSelectedCurrentTrekController)===null||t===void 0?void 0:t.abort();state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var a={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var n=state.currentTrekSteps.findIndex((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[n].departure_geom},properties:{id:state.currentTrekSteps[n].id,name:state.currentTrekSteps[n].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[n].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[n].attachments&&state.currentTrekSteps[n].attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTrekSteps[n].attachments[0].thumbnail!==""?state.currentTrekSteps[n].attachments[0].thumbnail:state.currentTrekSteps[n].attachments[0].url:null,index:n+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image";n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-name";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));e.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked;var r=t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId}));if(t.userLayersState[e.layerId]&&r.layer._layers&&Object.keys(r.layer._layers).length===0){t.layerDataIsLoading=true;forceUpdate(t.hostElement)}}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:this.removeSelectedCurrentTrek();(e=this.showTrekLineController)===null||e===void 0?void 0:e.abort();this.showTrekLineController=new AbortController;i=this.showTrekLineController.signal;return[4,getTrekGeometry(t)];case 1:r=s.sent();if(i.aborted){return[2]}a={type:"Feature",geometry:r.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(a,{style:function(){return{color:n.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){var t;(t=this.showTrekLineController)===null||t===void 0?void 0:t.abort();if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=r.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,r){return L$1.marker(r,{icon:L$1.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l;var d=this;if(t===void 0){t=false}return __generator(this,(function(u){switch(u.label){case 0:(e=this.addTouristicContentsController)===null||e===void 0?void 0:e.abort();this.addTouristicContentsController=new AbortController;i=this.addTouristicContentsController.signal;state.touristicContentsWithinBounds=state.currentTouristicContents;r=[];a={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){n=function(t){r.push(t.geometry.coordinates);a.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:state.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(s=0,o=state.currentTouristicContents;s<o.length;s++){c=o[s];n(c)}}if(!!this.toutisticContentsLayer)return[3,2];if(r.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(a,"practice")];case 1:l=u.sent();if(i.aborted){return[2]}this.toutisticContentsLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(l[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:d.mainMarkerSize,iconAnchor:[d.mainMarkerSize/2,d.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;i.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return d.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){d.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:d.mainClusterSize})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(r.length>0){this.bounds=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(a);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);u.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){var t;(t=this.addTouristicContentsController)===null||t===void 0?void 0:t.abort();if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e=state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentToutisticEventLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);a.label=2;case 2:this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){a=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===a.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:n=o.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return s.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){s.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){s.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;if(t===void 0){t=false}return __generator(this,(function(p){switch(p.label){case 0:(e=this.addTouristicEventsController)===null||e===void 0?void 0:e.abort();this.addTouristicEventsController=new AbortController;r=this.addTouristicEventsController.signal;state.touristicEventsWithinBounds=state.currentTouristicEvents;a=[];n={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){s=function(t){a.push(t.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentTouristicEvents;o<c.length;o++){l=c[o];s(l)}}if(!!this.touristicEventsLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"type")];case 1:d=p.sent();if(r.aborted){return[2]}this.touristicEventsLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:d[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(d[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:u.mainMarkerSize,iconAnchor:[u.mainMarkerSize/2,u.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return u.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){u.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:u.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(n);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);p.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){var t;(t=this.addTouristicEventsController)===null||t===void 0?void 0:t.abort();if(this.touristicEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d,u;var p=this;if(t===void 0){t=false}return __generator(this,(function(f){switch(f.label){case 0:(e=this.addOutdoorSitesController)===null||e===void 0?void 0:e.abort();this.addOutdoorSitesController=new AbortController;r=this.addOutdoorSitesController.signal;state.outdoorSitesWithinBounds=state.currentOutdoorSites;a=[];n={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){s=function(t){n.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(i=state.outdoorPractices.find((function(e){return e.id===t.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentOutdoorSites;o<c.length;o++){l=c[o];s(l)}}if(!!this.outdoorSitesLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){d=bbox(n);this.bounds=L$1.latLngBounds([d[1],d[0]],[d[3],d[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"practice")];case 1:u=f.sent();if(r.aborted){return[2]}this.outdoorSitesLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:u[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(u[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:p.mainMarkerSize,iconAnchor:[p.mainMarkerSize/2,p.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="outdoor-site-button";n.className="outdoor-site-button";n.onclick=function(){return p.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:p.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(n);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);f.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){var t;(t=this.addOutdoorSitesController)===null||t===void 0?void 0:t.abort();if(this.outdoorSitesLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorSite){e=state.outdoorPractices.find((function(t){return t.id===state.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:state.currentOutdoorSite.geometry,properties:{id:state.currentOutdoorSite.id,name:state.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=a.sent();this.currentOutdoorSiteLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);a.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:a.sent();return[4,this.addCurrentPois()];case 4:a.sent();return[4,this.addCurrentTouristicContents()];case 5:a.sent();return[4,this.addCurrentTouristicEvents()];case 6:a.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:a.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:a.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s;var o=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=state.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorSites;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:s=c.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s;var o=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=state.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorCourses;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:s=c.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){a=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===a.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:n=o.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return s.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){s.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){s.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){e=state.outdoorCourseTypes.find((function(t){return t.id===state.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:state.currentOutdoorCourse.geometry,properties:{id:state.currentOutdoorCourse.id,name:state.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentOutdoorCourseLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);a.label=2;case 2:return[4,this.addCurrentPois()];case 3:a.sent();return[4,this.addCurrentTouristicContents()];case 4:a.sent();return[4,this.addCurrentTouristicEvents()];case 5:a.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){r=state.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=state.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:a=s.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return n.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){n.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){n.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){state.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){r=state.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=state.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:a=s.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(a[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-course-name";a.className="outdoor-course-name";i.appendChild(a);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-course-button";s.className="outdoor-course-button";s.onclick=function(){return n.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){n.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){n.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){state.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.poisData>0){t={type:"FeatureCollection",features:[]};this.currentPoisLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="poi-marker" class="poi-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});if(state.currentPois){this.setCurrentPois()}}return[2]}))}))};t.prototype.setCurrentPois=function(){var t;if(this.currentPoisLayer){if(state.currentPois){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.currentPois;r<a.length;r++){var n=a[r];i(n)}this.currentPoisLayer.clearLayers();this.currentPoisLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(s){if(state.currentSignages&&state.currentSignages.length>0){t=getAssetPath("".concat(Build.isDev?"/":"","assets/signage.svg"));e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentSignages;i<r.length;i++){a=r[i];e.features.push({type:"Feature",properties:{name:a.name},geometry:a.geometry})}this.currentSignagesLayer=L$1.geoJSON(e,{pointToLayer:function(e,i){return L$1.marker(i,{icon:L$1.divIcon({html:'<div part="signage-marker" class="signage-marker"><img part="signage-img" src='.concat(t,' /><div part="signage-name" class="signage-name">').concat(e.properties.name,"</div></div>"),className:"",iconSize:[n.commonMarkerSize*1.2,n.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicContentsData>0){t={type:"FeatureCollection",features:[]};this.currentToutisticContentsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.category_pictogram?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(t.properties.category_pictogram," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicContentCardPress.emit(t.properties.id)}}));i.on("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-content-tooltip";e.className="touristic-content-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicContents){this.setCurrentTouristicContents()}}return[2]}))}))};t.prototype.setCurrentTouristicContents=function(){var t;if(this.currentToutisticContentsLayer){if(state.trekTouristicContents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=state.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicContents;r<a.length;r++){var n=a[r];i(n)}this.currentToutisticContentsLayer.clearLayers();this.currentToutisticContentsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicEventsData>0){t={type:"FeatureCollection",features:[]};this.currentTouristicEventsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicEventCardPress.emit(t.properties.id)}}));i.once("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-event-tooltip";e.className="touristic-event-tooltip";var r=L$1.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicEvents){this.setCurrentTouristicEvents()}}return[2]}))}))};t.prototype.setCurrentTouristicEvents=function(){var t;if(this.currentTouristicEventsLayer){if(state.trekTouristicEvents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=state.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicEvents;r<a.length;r++){var n=a[r];i(n)}this.currentTouristicEventsLayer.clearLayers();this.currentTouristicEventsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:if(!(state.currentInformationDesks&&state.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){a=r[i];if(a.latitude&&a.longitude){e.features.push({type:"Feature",properties:{name:a.name,type_pictogram:a.type.pictogram},geometry:{type:"Point",coordinates:[Number(a.longitude),Number(a.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:n=o.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:n[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(n[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=L$1.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(state.poisData>0){e[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[translate[state.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(state.touristicContentsData>0){e[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(state.touristicEventsData>0){e[translate[state.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[translate[state.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[translate[state.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=L$1.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.applyCachedViewportState=function(){if(!this.layersControl)return;var t=[{key:"steps",layer:this.currentStepsLayer},{key:"description",layer:this.currentReferencePointsLayer},{key:"parking",layer:this.currentParkingLayer},{key:"sensitiveArea",layer:this.currentSensitiveAreasLayer},{key:"informationPlaces",layer:this.currentInformationDesksLayer},{key:"pois",layer:this.currentPoisLayer,loading:!state.currentPois||state.currentPois.length===0},{key:"touristicContents",layer:this.currentToutisticContentsLayer,loading:!state.trekTouristicContents||state.trekTouristicContents.length===0},{key:"touristicEvents",layer:this.currentTouristicEventsLayer,loading:!state.trekTouristicEvents||state.trekTouristicEvents.length===0}];for(var e=0,i=t;e<i.length;e++){var r=i[e],a=r.key,n=r.layer,s=r.loading;if(n&&this.viewportState[a]!==undefined){this.handleLayerVisibility(this.viewportState[a],n,s||false)}}};t.prototype.handleLayersOnRemove=function(){var t=this;this.viewportState={};this.hasScrolled=false;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}forceUpdate(this.hostElement)};t.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();forceUpdate(this.hostElement)};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/layers.svg"));var i=getAssetPath("".concat(Build.isDev?"/":"","assets/contract.svg"));return h(Host,{key:"242cc293124d230347aa6accd72e936b18a62cb1",ref:function(e){return t.hostElement=e},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},h("div",{key:"243c78917cf017fae10ed667818ef64584ba46b4",id:"map",part:"map",class:(state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse)&&this.grwApp?"common-map":state.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}},this.layerDataIsLoading&&h("div",{key:"e9b297654f99ed6412724b5343212afbe1ab4a31",class:"layer-loader-container"},h("div",{key:"a1a6be407c08fcd926bef1b2235fb25be3a6e393",class:"layer-loader"})),state.currentTrek&&h("div",{key:"a358cc8b339d41f73e525aa56ac2a45f211931ac",class:"grw-elevation-visibility-button-container"},h("grw-fab",{key:"1a194b03b2cd8005b9f3eef0306765289e7fdb10",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleElevation()},icon:function(){return t.elevationControl&&t.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:translate[state.language].showElevation,hideTitle:translate[state.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&h("div",{key:"76374c2d4d829c28e4cfe57dc3a95bfdbca3a24d",part:"map-loader-container",class:"map-loader-container"},h("span",{key:"1cb3ac748f10113704d381bdc3b8197e76865aee",part:"loader",class:"loader"})))};Object.defineProperty(t.prototype,"mapElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwMap.style=grwMapCss();var grwOfflineConfirmModalCss=function(){return":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}"};var GrwOfflineConfirmModal=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};t.prototype.render=function(){var t=this;return h(Host,{key:"7306b7a65560fcb9c4088b7c3a9a2ee160dd3a0b"},this.showOfflineModal&&h("div",{key:"14e0880950476ecc6d884fdca71df39f29f918e4",class:"modal-container"},h("div",{key:"43bc502d63bf2a70a3ca5bc1507f93955dae406f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,{key:"1f1f66df6b7cd679c047d628be3c0a1b44b508c8"},h("div",{key:"754600cafd576f889a663ec1559540f1ab7d4e10",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.downloadRouteQuestion:translate[state.language].offline.downloadOutdoorQuestion)),h("div",{key:"6c8b16285f711b6b950a0df205acdd6daf6b6a4d",class:"modal-buttons-container"},h("button",{key:"059d1cb25bcce42a1737b96607d60dcebd50a8a1",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"345f06cb86b5d4fa2677e828d34379dd6f65d38f",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},translate[state.language].offline.ok))),this.showConfirmDeleteModal&&h(Fragment,{key:"bbaf82b8f3ce83cc38394f5e9587ff7a3f90153e"},h("div",{key:"f64a7242bedeb2f5683f0d2f3348a2a723feac1d",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.deleteRouteQuestion:translate[state.language].offline.deleteRouteQuestion)),h("div",{key:"2127e7ea9f8f35baa54b57bf93ea04ee2ab81333",class:"modal-buttons-container"},h("button",{key:"276e45cfd48fb2f9cd492745f953fbc4353478f8",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"1f5c9d6eb92330e8f918b9e0418093141b2a3db4",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},translate[state.language].offline.ok))),this.showLoaderModal&&h(Fragment,{key:"f089931324dec141dd6cf0885296ac127305c99c"},h("div",{key:"7ed4f98632d3fd859413f02adb588ca37da95e05",class:"modal-message-container"},h("div",{key:"8d4afc461bf6c3c6ea4bd4682cf6a8cf88404f7e",class:"modal-loader"}),this.showDeletingMessage?translate[state.language].offline.deleting:translate[state.language].offline.downloading)),this.showSuccessModal&&h(Fragment,{key:"9615a88d554a05dacf036998fcfb68261f29c0fe"},h("div",{key:"beb9348cc5fc4513e02a1f518152de8f132b54a6",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.offlineRouteDeleted:translate[state.language].offline.offlineOutdoorDeleted:this.mode==="treks"?translate[state.language].offline.routeAvailableOffline:translate[state.language].offline.outdoorAvailableOffline),h("div",{key:"045530fbea8ae990ed78c61a5c2b7cf2519d6bfc",class:"modal-button-container"},h("button",{key:"a75df76a487c0658ff9a3e10f07a35285d619685",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))),this.showErrorModal&&h(Fragment,{key:"2ab6733b150331690c42aaeb8a5c2a96d73657fa"},h("div",{key:"35b0edde0866fa2cbe4b3e6a147a2b8f323fa579",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.deleteRouteError:translate[state.language].offline.deleteOutdoorError:this.mode==="treks"?translate[state.language].offline.downloadRouteError:translate[state.language].offline.downloadOutdoorError),h("div",{key:"d1785cfe79fae56a8f6ed61b6c39aca80cea887c",class:"modal-button-container"},h("button",{key:"b3f3dc1440a637492bc5c4bcaf0a3e786692608d",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))))))};return t}();GrwOfflineConfirmModal.style=grwOfflineConfirmModalCss();function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,a=t.emit;var n=getDocument();var s=false;var o=null;var c=null;var l;var d;var u;var p;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,a=t.el;var n=e.params.scrollbar;var s=e.params.loop?e.progressLoop:e.progress;var c=d;var l=(u-d)*s;if(i){l=-l;if(l>0){c=d-l;l=0}else if(-l+d>u){c=u+l}}else if(l<0){c=d+l;l=0}else if(l+d>u){c=u-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(n.hide){clearTimeout(o);a.style.opacity=1;o=setTimeout((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}}function h(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){d=u*p}else{d=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(d,"px")}else{i.style.height="".concat(d,"px")}if(p>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function b(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var a=i.el;var n;n=(b(t)-elementOffset(a)[e.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(u-d);n=Math.max(Math.min(n,1),0);if(r){n=1-n}var s=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*n;e.updateProgress(s);e.setTranslate(s);e.updateActiveIndex();e.updateSlidesClasses()}function g(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var o=r.el,d=r.dragEl;s=true;l=t.target===d?b(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();n.style.transitionDuration="100ms";d.style.transitionDuration="100ms";v(t);clearTimeout(c);o.style.transitionDuration="0ms";if(i.hide){o.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}a("scrollbarDragStart",t)}function w(t){var i=e.scrollbar,r=e.wrapperEl;var n=i.el,o=i.dragEl;if(!s)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";n.style.transitionDuration="0ms";o.style.transitionDuration="0ms";a("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var o=r.el;if(!s)return;s=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=nextTick((function(){o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}a("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function y(t){var i=e.scrollbar,r=e.params;var a=i.el;if(!a)return;var s=a;var o=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!s)return;var l=t==="on"?"addEventListener":"removeEventListener";s[l]("pointerdown",g,o);n[l]("pointermove",w,o);n[l]("pointerup",k,c)}function x(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("off")}function _(){var t=e.scrollbar,i=e.el;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var a;if(typeof r.el==="string"&&e.isElement){a=e.el.shadowRoot.querySelector(r.el)}if(!a&&typeof r.el==="string"){a=n.querySelectorAll(r.el)}else if(!a){a=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&a.length>1&&i.querySelectorAll(r.el).length===1){a=i.querySelector(r.el)}if(a.length>0)a=a[0];a.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var s;if(a){s=a.querySelector(".".concat(e.params.scrollbar.dragClass));if(!s){s=createElement("div",e.params.scrollbar.dragClass);a.append(s)}}Object.assign(t,{el:a,dragEl:s});if(r.draggable){x()}if(a){a.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function L(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){z()}else{_();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(t,e){h(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){L()}));var C=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}_();m();f()};var z=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}L()};Object.assign(e.scrollbar,{enable:C,disable:z,updateSize:m,setTranslate:f,init:_,destroy:L})}var WarningIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>';var grwOutdoorCourseDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .current-advice-container{margin-bottom:12px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}'};var observerOptions$2={threshold:0};var GrwOutdoorCourseDetail=function(){function t(t){registerInstance(this,t);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.offline=false}t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),observerOptions$2);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),observerOptions$2);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),observerOptions$2);this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}onChange("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var i=state.outdoorCourseTypes&&this.currentOutdoorCourse&&state.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var r=state.cities&&state.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var s=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"de4a3fb086ae56fdf282be6639bc152684786ba4",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&h("div",{key:"74d112f1ad1aaa488b96d82ca8179b2b766ab86d",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{key:"720bf3def2c342bcfe5fc9e4dd36366a97c81389",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"cd3d17b4ee01d1f77d2597f2cdb2d4f7c4fef269",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"be9d53286f3e283533629ef210f1dad0c14872f1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),h("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),h("div",{key:"9e44f9b45cd8cf95caaeb4835e96b123d664728c"},h("div",{key:"53dc119d4698668b01f16b295103154c25db28c5",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"86c4d6c2189ddc76903ab594fc007df800a30e84",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"635b7eaf08e3ac423509d26f6ccce64e118e6b4e",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"81602f0f206c9d668f4d5481a8771a71014d8d07",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{key:"6fb7d72aa3c2cc46e051786c90f6791b641af1f7",part:"sub-container",class:"sub-container"},h("div",{key:"ffb05137813d26185b26a1b8b755542ead83514c",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"c99a27c6741dfa1f0323eaee0791f1ab3f96a318",part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{key:"dcce2bb22cf20ae86d649deacc67a1ee680f985e",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"d58ea3eea098cce7f31b244fb83184f0ce641db1",part:"label",class:"label"},i.name)),h("div",{key:"c5818aab071d0f55b70c5cfa4ca052fb7e661653",part:"icon-label",class:"icon-label duration"},h("span",{key:"ba7f57b331f40d5f41272a8c30e135bbd85dd53e",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"900a95c7999063d86c3fb6aade5d29efae2b34a7",part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{key:"294658e69896f9f267b9d10e133d4c51963741cb",part:"icon-label",class:"icon-label length"},h("span",{key:"3787b172941642316fd2598dc81e1b7b2a89a5d2",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"3bdcc19d957bb1a2690c3698368736c6947b76a5",part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{key:"5ef4b39a87956fb2e473c4dd477ffa792b4b8a4d",part:"icon-label",class:"icon-label ascent"},h("span",{key:"f9c47d879b0c1fd715427bce6ec5c19cbeefa4d7",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"5facbd60201aa18d8642ed9efbb2694151069357",part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),a&&s.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"45f2ea4c40d4851de8da601c0359a9151ad0b62c",part:"divider",class:"divider"}),h("div",{key:"44ceb38fd0d0a157f460adcb29da672389d1352b",part:"downloads-container",class:"downloads-container"},h("div",{key:"19fa7eab8d3a3cf84435fa8b2899071de8a98026",part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{key:"aeae3040f48438f28f2bc4a5af0b5f5635e2d6ed",part:"links-container",class:"links-container"},h("a",{key:"75d33aac1801e7befbb9737c76e8a9f1f4b6b5dc",href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"a1315b4469712655b7aa5c598d132607ecc1af57",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"29c1190aff566bf0f4e30735bc8c822e074b7cc4",part:"label",class:"label"},"PDF")))),h("div",{key:"70c612f4ba07b202275b7133e1ead094a5bec925",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{key:"6e7759cb4cb489cb3d935085df9b965f426784b5",part:"description-container",class:"description-container"},h("div",{key:"b0fc7be19f565fcfee78a3f8d739af80d2743b7e",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"60d460af1704eca6b018865d89615d91c538d365",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"1b841d4b7660e5a002548dd935c3eb9b0b6396e2",part:"departure-container",class:"departure-container"},h("div",{key:"b4f4f15a623ea34d6681c2c0794ddc6e1e4f9833",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"8fc874411d7226de3d891caaf1a4754e0d23cb18",part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"6d55128d14eb7b6a64cdb194ff6ec3fbdd28d14d",part:"cities-container",class:"cities-container"},h("div",{key:"5620624c4331ee7bd5f4639f70d1dcabb1342916",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"7b2f2d1890c82c6b245d54fb8d6a3f7f11589172",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&h("div",{key:"764aca5816dabf72d6641bc0228a35625b60dea5"},h("div",{key:"fcdddf2db0381a2c6c3ad76df5ea77363b6c3ec0",part:"divider",class:"divider"}),h("div",{key:"68ae5da0347c924ed27f92870492e373ac5bee64",part:"advice-container",class:"advice-container"},h("div",{key:"107fba634800cab28a3da11de11e2f7074dee95d",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{key:"cc4fdf59b3c9a2804751120114c950dec521c0a0",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"4e48eb3d6ce5cf546216296691abf864fd7e8c98",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"054191b070f46ac50205bee67da066994e2162af",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",{key:"d646f6a5a3aae9cb62f59b17da50772237871070"},h("div",{key:"7d462e8585214204b0475abd12f4dfe46e497429",part:"divider",class:"divider"}),h("div",{key:"941b9f090fe0a42903104e8e844dd06e3749ca42",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"e4ec4c4af8a173adb5f53868423a3e7b8c23eb91",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"5611c521c43c617d1a819c2eac1951f1d178eccc",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"0eb0872432c85f0eed7dc01b1c8e7711f05d5335"},h("div",{key:"8772302a21fdd4b5439530b92dfd844d46942e5c",part:"divider",class:"divider"}),h("div",{key:"dd4db42bfb4868a114fa802476dacf463c33dcc6",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"2deaca2a7c6e65718d163f9491f3142d15bae36f",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"95f0cfe7f48114189b896acaf15a94b684b4708c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"0cadff9089c970989d965f6d0ad3df37f0a1c37d",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),h("div",{key:"3938f896920176d5f6cf31e3e33821809f0cf517",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"6f74ed161c27fe505059ea18b7abf6acd04c0d4a"},h("div",{key:"ef40fb490ffe4b585e42be0de2629ef54029a8a2",part:"divider",class:"divider"}),h("div",{key:"1770ec488528f408f2647e0d229b443f69a1b4bc",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"0f0ca2c1dfc163e8b1647c4d6bc585d2449b4222",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"d3440f4c29d6e9815c27f666af059289579060c4",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"065b642e861c17ad3d8111c84b607aa399ec340c",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),h("div",{key:"d77cd6a581378a35e2f00653af9d9d41d03b61ae",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",{key:"0132851fdb60ae94f9c9e488cf32c85ff806e073"},h("div",{key:"745e53b9a5918d13f14d52af2923926dfbd204bb",part:"divider",class:"divider"}),h("div",{key:"2c1a7cf8e756492ed4c2c05d691d4ee78870936e",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"a20939460013a4fb57c9167dcdda0f1f699c72ed",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{key:"8984df9ada4afa24291c0ae34dbdd8de47c0f1ec",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"0cb808485a02af874a16e2ba59de447263f33189",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"8ffccb4eae4c4c0068e529315b2ba564eb8a2105",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"595379521647b327b370555534e06bbaad5d06fa"},h("div",{key:"0f48eece90e062a074b55001625f7827d45bb7c6",part:"divider",class:"divider"}),h("div",{key:"be9d42ae3b84aaa9169c5dc142e3091ea0d92581",part:"weather-container",class:"weather-container"},h("iframe",{key:"0ef8761a811aa9459fef1de6f98b8453652dd4c4",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&h("div",{key:"f1cb5b224791a2c89087717f65005caf12304ce1",part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=grwOutdoorCourseDetailCss();var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f;return __generator(this,(function(h){switch(h.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=h.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=h.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=h.sent();a=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:a.touristicContentCategories=h.sent();n=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:n.touristicEventTypes=h.sent();s=state;return[4,handleOfflineProperty("poiTypes")];case 6:s.poiTypes=h.sent();o=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:o.outdoorCourseTypes=h.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:c=h.sent();l=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=l;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:d=h.sent();u=d.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:p=h.sent();f=p.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=f;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:h.sent();state.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getTouristicContentsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(getOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2],c=t[3],l=t[4],d=t[5],u=t[6],p=t[7],f=t[8],h=t[9];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.themes=s.results}if(o){state.outdoorCourseTypes=o.results}if(c){state.trekTouristicContents=c.results}if(l){state.touristicContentCategories=l.results}if(d){state.trekTouristicEvents=d.results}if(u){state.touristicEventTypes=u.results}if(p){state.currentPois=p.results}if(f){state.poiTypes=f.results}state.currentOutdoorCourse=h;e=__spreadArray([],h.cities,true);if(state.cities){i=state.cities.map((function(t){return t.id}));e=e.filter((function(t){return t&&!i.includes(t)}))}if(!(e.length>0))return[3,4];t.label=1;case 1:t.trys.push([1,3,,4]);return[4,getCities(state.api,state.language,this.init,e).then((function(t){return t.json()}))];case 2:r=t.sent().results;if(r){state.cities=__spreadArray(__spreadArray([],state.cities,true),r,true)}return[3,4];case 3:a=t.sent();console.error("Failed to load cities",a);return[3,4];case 4:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"ec4361aeaa78afd9e4a5bb0154bd0e2d9d5da915"})};return t}();var EventIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>';var AirIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>';var ExploreIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DownloadForOfflineIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DeleteIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>';function getOutdoorSites(t,e,i,r,a,n,s,o,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));a&&(l+="&districts=".concat(a));n&&(l+="&structures=".concat(n));s&&(l+="&themes=".concat(s));o&&(l+="&portals=".concat(o));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind";return getAllPaginatedResults(l,c)}function getOutdoorSite(t,e,i,r){var a="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");a+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents";return fetch(a,r)}function getOutdoorSiteTypes(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function getOutdoorPractices(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function getPoisNearSite(t,e,i,r){return getAllPaginatedResults("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function outdoorSiteIsAvailableOffline(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}function getOutdoorRatings(t,e,i,r){return getAllPaginatedResults("".concat(t,"outdoor_rating/?language=").concat(e).concat(i?"&portals=".concat(i):"","&fields=id,name,scale"),r)}function getOutdoorRatingsScale(t,e,i){return getAllPaginatedResults("".concat(t,"outdoor_ratingscale/?language=").concat(e,"&fields=id,name"),i)}var grwOutdoorSiteDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{height:5px}.outdoor-site-options::-webkit-scrollbar-thumb{background:var(--color-primary-app);border-radius:8px}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.current-advice-container,.gear-container{margin-bottom:12px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}'};var observerOptions$1={threshold:0};var GrwOutdoorSiteDetail=function(){function t(t){registerInstance(this,t);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=createEvent(this,"sitesIsInViewport",7);this.coursesIsInViewport=createEvent(this,"coursesIsInViewport",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.handleObservers=function(){var t=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),observerOptions$1);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),observerOptions$1);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),observerOptions$1);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),observerOptions$1);this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),observerOptions$1);this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),observerOptions$1);this.courseObserver.observe(this.coursesRef)}};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new Swiper(this.swiperRelatedOutdoorSitesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new Swiper(this.swiperRelatedOutdoorCoursesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}onChange("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,o,l;var d=this;return __generator(this,(function(u){switch(u.label){case 0:t=new AbortController;e=t.signal;i={cache:getCacheMode(),signal:e};if(!!state.outdoorSites)return[3,3];return[4,getOutdoorSites(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districtsFromProviders,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,i)];case 1:r=u.sent();a=state;return[4,r.json()];case 2:a.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:n=u.sent().filter((function(t){return t.offline===true}));s=state.outdoorSites;s=s.filter((function(t){return n.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",s)];case 5:u.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:u.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 8:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorSiteTypes,imagesRegExp)];case 9:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorPractices,imagesRegExp)];case 10:u.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 11:u.sent();return[4,writeOrUpdateFilesInStore(this.currentOutdoorSite,imagesRegExp,true,["url"])];case 12:u.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 13:u.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 14:u.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 15:u.sent();return[4,writeOrUpdateDataInStore("outdoorSiteTypes",state.outdoorSiteTypes)];case 16:u.sent();return[4,writeOrUpdateDataInStore("outdoorPractices",state.outdoorPractices)];case 17:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatings",state.outdoorRatings)];case 18:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatingsScale",state.outdoorRatingsScale)];case 19:u.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 20:u.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 21:u.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 22:u.sent();return[4,writeOrUpdateDataInStore("outdoorCourseTypes",state.outdoorCourseTypes)];case 23:u.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 24:u.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 25:u.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 26:u.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 27:u.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 28:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorCourseTypes,imagesRegExp,true)];case 29:u.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp,true)];case 30:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 31:u.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 32:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 33:u.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 34:u.sent();if(!(state.currentOutdoorSite.courses&&state.currentOutdoorSite.courses.length>0))return[3,38];o=0;u.label=35;case 35:if(!(o<state.currentOutdoorSite.courses.length))return[3,38];c=state.currentOutdoorSite.courses[o];return[4,this.downloadOutdoorCourse(c)];case 36:u.sent();u.label=37;case 37:o++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];o=0;u.label=39;case 39:if(!(o<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[o];return[4,this.downloadOutdoorSite(l)];case 40:u.sent();u.label=41;case 41:o++;return[3,39];case 42:return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:state.currentPois.map((function(t){return t.id})),touristicContents:state.trekTouristicContents.map((function(t){return t.id})),touristicEvents:state.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:u.sent();state.outdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,22,,23]);e=new AbortController;i=e.signal;r={cache:getCacheMode(),signal:i};return[4,getOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=p.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:p.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:p.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=p.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:p.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:p.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:s=p.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 8:p.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",s)];case 9:p.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=p.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:p.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:p.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:p.sent();if(!(a.courses&&a.courses.length>0))return[3,17];c=0;p.label=14;case 14:if(!(c<a.courses.length))return[3,17];l=a.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:p.sent();p.label=16;case 16:c++;return[3,14];case 17:if(!(a.children&&a.children.length>0))return[3,21];c=0;p.label=18;case 18:if(!(c<a.children.length))return[3,21];d=a.children[c];return[4,this.downloadOutdoorSite(d)];case 19:p.sent();p.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:u=p.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:getCacheMode(),signal:i};return[4,getOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:c.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:c.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=c.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:c.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:c.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:s=c.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 8:c.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",s)];case 9:c.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=c.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:c.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:c.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=a.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:a.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=a.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(a=0,n=state.outdoorSites;a<n.length;a++){s=n[a];r.push(pointOnFeature(s.geometry).geometry.coordinates)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,a,n;return __generator(this,(function(s){switch(s.label){case 0:r=bundleExports.tileLayerOffline(t,{attribution:e});a=bbox(i);n=L$1.latLngBounds([a[1],a[0]],[a[3],a[2]]);return[4,writeOrUpdateTilesInStore(r,n,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:s.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var i=state.outdoorPractices&&this.currentOutdoorSite&&state.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var r=state.cities&&this.currentOutdoorSite&&state.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var s=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"daf63b09060f1c3ffee0610d65b47985426aa085",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&h("div",{key:"bb2c6add2adfc3b5120749f65f3e91f695c0313c",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{key:"f52c3d7d4f15b03f5b5795eab4a6860d12689370",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"2b19c9182485c1f97e0eea5622094731cd343da3",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"092740232bedeb497af16c237fa5761eeba01d0c",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),h("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),h("div",{key:"543f0c5412f8514ca34ac53c9652f171795f0eaa"},h("div",{key:"1033be1c24f54064f0b336463ccf0ad20d3e1472",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"1c77534aad2c9242f54f74bfbc5bfb93d17e771f",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"05a2fca9418b94e3ae6c17877baa5094e0b067b7",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"c7e518d4319c42d7179c04cfbcc40f7a4a744281",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),state.themes&&state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&h("div",{key:"b0c3ff08eacbe3da21374a40d935b93db098dae1",part:"themes-container",class:"themes-container"},state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"9559d8ae731642a8f566821f13990612dc85c7e3",part:"sub-container",class:"sub-container"},h("div",{key:"69a1ce00a955f04ce321c9dad5130668fcc727a9",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"63a09dc8f6bbb97856078b0930c0ad0ef3992ee7",part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{key:"af0508d2ff5543b1dc9863ef48998f91ab3289c3",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"e7c5329ece6f17ae2db06155c88bd6b5f9c98fe9",part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{key:"0be0c4620a8bb5c3e2366741f0c0e57157933399",part:"row",class:"row"},h("span",{key:"a27402e456b33944f81e5ee5395cc993470de4ec",part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{key:"ae31a51c4b9d6997fb3232a4908021e0a572cf44",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&h("div",{key:"e9feb615390c3049294c9a84fddb6116e0bf1699",part:"row",class:"row"},h("span",{key:"9d8bcb5614ad546e3666a632c609a33616db9abe",part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{key:"b2d7fd249dfc3ec6863481842e7cba1f0f4f5ebb",part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{key:"56323ea809f5aa71e3597c305622c19277c36403",part:"row",class:"row"},h("span",{key:"8a9ec3f51605d7054d0933dcbdc3dc893a55dd87",part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{key:"ebe5577f0cfb2f29843786fd04631cc18ebb3f81",part:"label",class:"label"},this.currentOutdoorSite.period)),a&&s.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"ec701cc093883b296cdb3d76010b7fb3940e3416",part:"divider",class:"divider"}),h("div",{key:"39816f8e641d31cd2eed65e7916a9f542e5f5579",part:"downloads-container",class:"downloads-container"},h("div",{key:"a6ffb22721afb92bdea20b63a688b3392258c854",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"e9fe2c9db70ca37554eb944f6bcb510f636ce5bb",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"459c5c6a997abf24444f559da47279450f41357e",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"2ef0ce3382f67ad33c4fe7f4c1c6d64c822aa00a",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"dd8abe004f497960f88c25dc5473820115af6a17",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"5d0dccc989e6c964edf81dfef99891b7a44f7431",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"e3362dc01327f111543cf8125dd53ecf6515e53e",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"3103a2d617dd7002b5bbeced908249fe61f99ef1",part:"links-container",class:"links-container"},h("a",{key:"d049e58d9e4a6392d400f4655e3a97e5cca03858",href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"ed4b5b94c19162a9d403aa293b7d6f48015d9173",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"5245f08c8750e43e3ff42b0cf8a1e6d4e4d0c13e",part:"label",class:"label"},"PDF")))),h("div",{key:"c87e4cb40b366a398ef1bac0c9783f4748c2f476",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{key:"f5a66875b0c73ea1ac974ce06e00b3ce08e34e98",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{key:"b4b7d086c1a3faa719c7b505dbe8ad810eb3c252",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{key:"6b3d2b7d8d8664bec32a0bde6e496aef806be190",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{key:"5549e7fdab0a34487a149005ebc7cb1766a2968c",part:"description-container",class:"description-container"},h("div",{key:"fb6435da4831c4855e78a0db207291644a54c90d",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"b257d6e8c4d59b81713d4236766dd13b105e9faf",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"9af11de5832cbb5a9de7336e7b224c814ea2955d",part:"departure-container",class:"departure-container"},h("div",{key:"f55d578960f639ee36043e89af9e880701c3762f",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"695257f598a269e426b3d805b27bf2650c8e3464",part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"50482fee5f5d5db97d49f5a5e943181c9fc066af",part:"cities-container",class:"cities-container"},h("div",{key:"68cf9d4f82c29818e5de7540b9a2516eb245fe0d",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"ace9056405d1702df74aeb74b2e4c1c69a1e8ab1",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",{key:"bc1a0777b7b6156d04a3b53550dbc9deb25ce81e"},h("div",{key:"fa0e3a0dfb3b30573e209b606963d94a7eecc3aa",part:"divider",class:"divider"}),h("div",{key:"fa0b709eb118212be94020f7c834a7e278d976cc",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"28ac4c2521d693f1759fd5f9532870e8391378ad",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{key:"d99f1c6e37514721e5e0c0c5d4b215a7e9a7b1dc",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"a125ebd3d4e5aeea32f2d34257c31cc1297a5b36",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"27e7c7aff8060d6bee5118a6413c8fb9f5107fdd",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",{key:"10908dd1b443da27ec774bccaf29074b4b7e919b"},h("div",{key:"d51286b51fc00cb4b7b318239085baf6a4031fbf",part:"divider",class:"divider"}),h("div",{key:"31de07816cf4613bf07dee47d52e0665163a37f1",part:"advice-container",class:"advice-container"},h("div",{key:"5a28bbfbded18300aa39f01750a2eec9c3def340",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{key:"3cc88d8aea6e10f7de69765107a4a32cbbbc0fcb",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"16172cded72b330ea831a33e6ec93899ac79cac4",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"ca965945c04fbad0b832b84d3153a2ac4943b569",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",{key:"003f2284e433b5f3487fed41ed02891201bd4818"},h("div",{key:"16091a4de5dbd8e655512a482549dbaad486b509",part:"divider",class:"divider"}),h("div",{key:"abbd1afc83f24eb62e2f21633388eaa4f8fe0301",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"3e1e472cb870ee66f39d714394abd2e44b818118",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"ec6709cdb3c1b8274d0aaf3f5cdc3ecc576cadec",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",{key:"d0d4fd6a9ec97c3c33ae0440e944801c8f6953a3"},h("div",{key:"c661abd3bc54cd7568bd962abc885f5a7fc4899f",part:"divider",class:"divider"}),h("div",{key:"8769aa59927e595466bc28696eb0c2949b2195bd",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container",ref:function(e){return t.sitesRef=e}},h("div",{key:"6b5530ec49492c5c3538de29c0e9860e205d4878",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title"},translate[state.language].relatedOutdoorSites(state.currentRelatedOutdoorSites.length)),h("div",{key:"1a4859c9e33d655e67b7915f3347cd4f1fee0d4c",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{key:"dd7c4b8c58d400e02f8696b1921cd24e13470479",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorSites.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),h("div",{key:"93d434e0466cb6aa3d6a3b9e5c307bf934dcc8c1",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",{key:"0303d0d42abcc9c54d550f824e3bd1c42b43ca90"},h("div",{key:"876c6637f4046b627d2aebbd5b53708d6588d29e",part:"divider",class:"divider"}),h("div",{key:"2083426d7e5000868d4556d06a4577b2f4a47c77",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container",ref:function(e){return t.coursesRef=e}},h("div",{key:"81da66eeddb9bbf8331eba7b9836d10c053dd4a8",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title"},translate[state.language].relatedOutdoorCourses(state.currentRelatedOutdoorCourses.length)),h("div",{key:"866e413a257e1667f98f0cb01bd3f48e6ebdd269",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{key:"4abb1ce4c410c81b4f449d9a2bd88d7d18cf7eb5",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorCourses.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),h("div",{key:"dde8798fd39562a58ddc542ad32cc16004e4809f",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&h("div",{key:"0ea40a0e4c01ef94751c6564e74bd1cedbdfbbb2"},h("div",{key:"2a1275197c5111d8e8cdc2d93b513ee4a714d418",part:"divider",class:"divider"}),h("div",{key:"6e4302f051f2ae1fb83428849db99c3d7e72c7fc",part:"information-desks-container",class:"information-desks-container",ref:function(e){return t.informationPlacesRef=e}},h("div",{key:"fb078f313eebb862e066271f526d163f7ff9fd6a",part:"information-desks-title",class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{key:"98d29e7f000d0350148914a1ab0aa31d9c76b57d",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"5c9f1818a1f1c785549c1329d620869bd66c451b",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))}))),h("div",{key:"64650cd934f30581d6a731162d9311b56b6e380a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"bc024c94ba84d8770331bf7f85fee7bce8968ae3"},h("div",{key:"afe7c3cab2ab616a3c6156ce48758b358fd4072d",part:"divider",class:"divider"}),h("div",{key:"109bce7196acef4379048bd7683b12d580c25f89",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"b268cbd15dad64652128c0cea4088d513bdfb2a6",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"2f1807bef528855ec77b01e1d75fc8a41a48300c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"2b093789aee912b3b67928cf2d08bcc056e4231c",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"7a3dbf08a785fed67c6b7d6c41e76337febcb58a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"87de809502242132d951c2012707e545c4d68784"},h("div",{key:"40cc823b1a333051c6aec904aa552f87d65c569e",part:"divider",class:"divider"}),h("div",{key:"5f57f56bf55e7fd6199cc86931cdc00a8cb286c3",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"548157d54118424770fa0a038a3d0279e565f5ad",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"e4cc8569c3af1d16047660739fabf34ae3bd4939",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"8add6a364adf7324edf51f9af1f54f8623cf5c5e",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"5f76cd4185b43b3b192b1d6a112551258934c59a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"6c040869ea57eaaeed47ad0199175c8191f7dbf4"},h("div",{key:"70cbd3046f4c4a91f2b5e8a502b80d6a15e64f68",part:"divider",class:"divider"}),h("div",{key:"0c8e8eebef07bc4bf5b74aacd386b7e063292fb0",part:"weather-container",class:"weather-container"},h("iframe",{key:"a21c3a94e525e47d69af5613593f4ac6cfedbe7f",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&h("div",{key:"af00be86773aeed6e4c809982e9c523442fcced5"},h("div",{key:"3a76b8e48f5ec37175346fa65fd25034cadcca79",part:"divider",class:"divider"}),h("div",{key:"57d5f3d11d08acfd44c097906e2f13b399be44ec",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"99f6839173dab2dc418e79d5cfb2664b179a5a6d",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&h("div",{key:"de499d07a998cd0e10d30eeed6b2616a4e2330a4"},h("div",{key:"c72b131e968b687c14d200b9d71481d62fd64119",part:"divider",class:"divider"}),h("div",{key:"bc18b7753b2dbbf2004d238a575060c479b669c3",part:"source-container",class:"source-container"},h("div",{key:"b164573a925070110e59cdf3656759f8a64a116a",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"664ff0314de7fd6007751b4428cd249427998e73",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"5f4ec74c01cf10b9ef0d745f427dda9193df9b6d"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"9912fffc554699b6751b82cfba55591efbeaa00e",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"432799e5359adf2612040aa60b2940bfe028021b",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwOutdoorSiteDetail.style=grwOutdoorSiteDetailCss();var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_;return __generator(this,(function(L){switch(L.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=L.sent();i=state;return[4,handleOfflineProperty("sources")];case 2:i.sources=L.sent();r=state;return[4,handleOfflineProperty("districts")];case 3:r.districts=L.sent();a=state;return[4,handleOfflineProperty("themes")];case 4:a.themes=L.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=L.sent();s=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:s.outdoorPractices=L.sent();o=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:o.outdoorRatings=L.sent();c=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=L.sent();l=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:l.touristicContentCategories=L.sent();d=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:d.touristicEventTypes=L.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=L.sent();p=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:p.outdoorCourseTypes=L.sent();return[4,handleOfflineProperty("informationDesks")];case 13:f=L.sent();h=f.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=h;return[4,handleOfflineProperty("pois",["url"])];case 14:m=L.sent();b=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=b;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=L.sent();g=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=g;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:w=L.sent();k=w.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:y=L.sent();x=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=x;return[4,handleOfflineProperty("outdoorCourses",["url"])];case 18:A=L.sent();_=A.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorCourses=_;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 19:L.sent();state.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!state.sources?getSources(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorRatings?getOutdoorRatings(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorRatingsScale?getOutdoorRatingsScale(state.api,state.language,this.init):new Response("null"));e.push(getInformationsDesks(state.api,state.language,this.init));e.push(getTouristicContentsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;var p=t[0],f=t[1],h=t[2],m=t[3],b=t[4],v=t[5],g=t[6],w=t[7],k=t[8],y=t[9],x=t[10],A=t[11],_=t[12],L=t[13],C=t[14],z=t[15];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(z&&z.children.length>0))return[3,2];e=[];e.push.apply(e,z.children);i=[];e.forEach((function(t){i.push(getOutdoorSite(state.api,state.language,t,u.init))}));r=state;return[4,Promise.all(__spreadArray([],i,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:r.currentRelatedOutdoorSites=t.sent();t.label=2;case 2:if(!(z&&z.courses.length>0))return[3,4];a=[];a.push.apply(a,z.courses);n=[];a.forEach((function(t){n.push(getOutdoorCourse(state.api,state.language,t,u.init))}));s=state;return[4,Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:s.currentRelatedOutdoorCourses=t.sent();t.label=4;case 4:if(p){state.sources=p.results}if(f){state.districts=f.results}if(h){state.themes=h.results}if(m){state.outdoorSiteTypes=m.results}if(b){state.outdoorPractices=b.results}if(v){state.outdoorRatings=v.results}if(g){state.outdoorRatingsScale=g.results}if(w){state.currentInformationDesks=w.results}if(y){state.touristicContentCategories=y.results}if(k){state.trekTouristicContents=k.results}if(x){state.trekTouristicEvents=x.results}if(A){state.touristicEventTypes=A.results}if(_){state.currentPois=_.results}if(L){state.poiTypes=L.results}if(C){state.outdoorCourseTypes=C.results}state.currentOutdoorSite=z;o=__spreadArray([],z.cities,true);if(state.cities){c=state.cities.map((function(t){return t.id}));o=o.filter((function(t){return t&&!c.includes(t)}))}if(!(o.length>0))return[3,8];t.label=5;case 5:t.trys.push([5,7,,8]);return[4,getCities(state.api,state.language,this.init,o).then((function(t){return t.json()}))];case 6:l=t.sent().results;if(l){state.cities=__spreadArray(__spreadArray([],state.cities,true),l,true)}return[3,8];case 7:d=t.sent();console.error("Failed to load cities",d);return[3,8];case 8:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"91c32f48f6236291537777d4dac26c9517f4c590"})};return t}();var grwOutdoorSitesListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-outdoor-site-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwOutdoorSitesList=function(){function t(t){registerInstance(this,t);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,this.step),true)}onChange("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,t.step),true)}}));onChange("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],state.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<state.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=state.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=state.outdoorSitesWithinBounds.length?state.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"570e403ff6dbfc2c1b894cae48df1b19ce348928",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{key:"d016205f78e04b75925d5bf7ba959979b0ea7c33",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].outdoorSites:translate[state.language].outdoorSite)),h("div",{key:"8cdcb2898c8782328266ab101168f298fa4fe65c",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return h("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"32e12286a63cf5dd67e2b735729f8e682d6bd93b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwOutdoorSitesList.style=grwOutdoorSitesListCss();var GrwOutdoorSitesProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n;return __generator(this,(function(s){switch(s.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=s.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(!(t&&t.length>0))return[3,8];e=state;return[4,handleOfflineProperty("cities")];case 2:e.cities=s.sent();i=state;return[4,handleOfflineProperty("districts")];case 3:i.districts=s.sent();r=state;return[4,handleOfflineProperty("themes")];case 4:r.themes=s.sent();a=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:a.outdoorSiteTypes=s.sent();n=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:n.outdoorPractices=s.sent();return[4,handleOfflineProperty("outdoorSites")];case 7:t=s.sent();state.outdoorSites=t;state.currentOutdoorSites=t;return[3,9];case 8:state.networkError=true;s.label=9;case 9:return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSites(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o;var c=t[0],l=t[1],d=t[2],u=t[3],p=t[4];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(c){state.districts=c.results}if(l){state.themes=l.results}if(d){state.outdoorSiteTypes=d.results}if(u){state.outdoorPractices=u.results}e=[];i=0;t.label=1;case 1:if(!(i<p.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(p.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},p.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:state.outdoorSites=e;state.currentOutdoorSites=e;if(!(!state.cities||state.cities.length===0))return[3,9];a=new Set;if(p&&p.results){p.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return a.add(t)}))}}))}if(!(a.size>0))return[3,9];t.label=5;case 5:t.trys.push([5,8,,9]);return[4,getCities(state.api,state.language,this.init,Array.from(a))];case 6:n=t.sent();return[4,n.json()];case 7:s=t.sent();state.cities=s.results||[];return[3,9];case 8:o=t.sent();console.error("Failed to load cities",o);return[3,9];case 9:return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:t.sent();return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"a16bd23916c46dda3f6b774dde75dad6c343d66c"})};return t}();var SearchIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>';var grwSearchCss=function(){return":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}"};var GrwSearch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){state.searchValue=t.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}else if(state.mode==="outdoor"){state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.render=function(){var t=this;return h(Host,{key:"e3d98b43edc220fd948553e50aed73ad3475aa9b",style:{"--font-family":this.fontFamily}},h("span",{key:"68ade2155e15c25161484dd9746a9ccb77ca4877",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"d4443be1fc756debe93a61bb8491be4fd41a4931",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=grwSearchCss();var grwSegmentedSegmentCss=function(){return".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}"};var GrwSegmentedSegment=function(){function t(t){registerInstance(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){state.searchValue="";if(t==="treks"){treksFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.treks){state.currentTreks=__spreadArray([],handleTreksFiltersAndSearch(),true)}}else if(t==="touristicContents"){touristicContentsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicContents){state.currentTouristicContents=__spreadArray([],handleTouristicContentsFiltersAndSearch(),true)}}else if(t==="touristicEvents"){touristicEventsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicEvents){state.currentTouristicEvents=__spreadArray([],handleTouristicEventsFiltersAndSearch(),true)}}else if(t==="outdoor"){outdoorSitesFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.outdoorSites){state.currentOutdoorSites=__spreadArray([],handleOutdoorSitesFiltersAndSearch(),true)}}state.mode=t};t.prototype.render=function(){var t=this;return h(Host,{key:"a2b16c24fbedec687122ed70258ff6543ee2f110",style:{"--font-family":this.fontFamily}},h("div",{key:"d24b1cfa8cf64efda81820f816db2ce13104f872",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{key:"0bba2d05fbb3867cbd816eb2dbc16dada86e77f9",part:"segment",class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},translate[state.language].home.segment.treks),this.outdoor&&h("label",{key:"e2cb2ba38033b8100ea916aab9f4cb012f3ac039",part:"segment",class:"segment".concat(state.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},translate[state.language].home.segment.outdoorSites),this.touristicContents&&h("label",{key:"65364c1a08a3e6faee2f53647c3eca17b40c0e99",part:"segment",class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},translate[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{key:"03afc47e263cb8a610f2694efdb8ab5b2f647401",part:"segment",class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},translate[state.language].home.segment.touristicEvents)))};return t}();GrwSegmentedSegment.style=grwSegmentedSegmentCss();var TranslateIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>';var grwSelectLanguageCss=function(){return":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}"};var GrwSelectLanguage=function(){function t(t){registerInstance(this,t)}t.prototype.handleSelect=function(t){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=t.target.value};t.prototype.render=function(){var t=this;return h(Host,{key:"c0d285e09423559c5824e64b7cacbcaa26c5c88b"},h("span",{key:"ef14fdec0f1f7df2d460def242d35459cc86d766",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"96ae6cbaef672db97abfb2ce2bb92d8fcd526ad7",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},state.languages.map((function(t){return h("option",{part:"select-language-option",selected:t===state.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}();GrwSelectLanguage.style=grwSelectLanguageCss();var DoneIcon='<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 grwSwitchCss=function(){return'.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}'};var GrwSwitch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"f2d85060c3b246d9837910145853bf74aed81000",style:{"--font-family":this.fontFamily}},h("label",{key:"e58114850d33b7731560cce7716a815f948ff25b",class:"md3 switch"},h("input",{key:"ba34f0da609b27cb3133d8bc5e821030d7cd7da0",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"b08381e1f0882e3af80e80e4c63f19dd432d2d9b",class:"slider"},h("span",{key:"fe77cfa55dceb12b0f6a2460f657001b4bb33dbe",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=grwSwitchCss();var grwTouristicContentsListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-touristic-content-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTouristicContentsList$1=function(){function t(t){registerInstance(this,t);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,t.step),true)}}));onChange("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"258f2d41e9b43dd2260d503518af31cc24cb21bc",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{key:"9e6d6d7e6a12ed1f39316e024a61517608ac4ade",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"5c4081b92faa32ed7a9dae04b67cece6f6be0429",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"3f4f0431918b6b396e6309eb6d6e6525ddb9160b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList$1.style=grwTouristicContentsListCss();var GrwTouristicContentsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t=this;var e=getTouristicContentsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));i.push(!state.touristicContentCategories?getTouristicContentCategory(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[e],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.touristicContentCategories=s.results}state.touristicContents=o.results;state.currentTouristicContents=o.results;if(!(!state.cities||state.cities.length===0))return[3,5];e=new Set;if(o&&o.results){o.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:i=t.sent();return[4,i.json()];case 3:r=t.sent();state.cities=r.results||[];return[3,5];case 4:a=t.sent();console.error("Failed to load cities",a);return[3,5];case 5:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"27520274c596a3df2bad605075b1f9d801651e8c"})};return t}();var grwTouristicEventsListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-touristic-event-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,t.step),true)}}));onChange("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"93ce992fa4c096def9508d0c730fffb30c500520",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{key:"b0abcfce497d42a01974b533718e3ae502b38faa",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"a85edc6cd7ef02f061558059af04fd5901340c62",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){return h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"ef096ee268e9527e082553ee243a092167d1ca12",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=grwTouristicEventsListCss();var GrwTouristicEventsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t=this;var e=getTouristicEventsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));i.push(!state.touristicEventTypes?getTouristicEventType(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[e],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.touristicEventTypes=s.results}state.touristicEvents=o.results;state.currentTouristicEvents=o.results;if(!(!state.cities||state.cities.length===0))return[3,5];e=new Set;if(o&&o.results){o.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:i=t.sent();return[4,i.json()];case 3:r=t.sent();state.cities=r.results||[];return[3,5];case 4:a=t.sent();console.error("Failed to load cities",a);return[3,5];case 5:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"3b676b212a8d49c31a1b13c8651e64cbd3319189"})};return t}();var BackpackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>';var grwTrekDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{height:5px}.trek-options::-webkit-scrollbar-thumb{background:var(--color-primary-app);border-radius:8px}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{color:var(--reference-point-color);background:var(--reference-point-background-color);position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.current-advice-container,.gear-container{margin-bottom:12px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-height:120px}.loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var observerOptions={threshold:0};var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var accessibility={visible:false,indicator:false,ref:"accessibilityOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,pois:pois,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,accessibility:accessibility,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function t(t){registerInstance(this,t);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.detailScrolled=createEvent(this,"detailScrolled",7);this.parentTrekPress=createEvent(this,"parentTrekPress",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel,Scrollbar],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),observerOptions);this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers();this.setupScrollListener()};t.prototype.setupScrollListener=function(){var t=this;var e=this.trekDetailContainerRef;if(e){var i=function(){t.detailScrolled.emit();e.removeEventListener("scroll",i)};e.addEventListener("scroll",i)}else{var r=function(){t.detailScrolled.emit();window.removeEventListener("scroll",r)};window.addEventListener("scroll",r)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}onChange("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(state.currentTrek.description)}),pois:Object.assign(Object.assign({},pois),{visible:state.poisData>0}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(state.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},accessibility),{visible:Boolean(state.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||state.currentTrek.accessibility_level||state.currentTrek.accessibility_slope||state.currentTrek.accessibility_width||state.currentTrek.accessibility_signage||state.currentTrek.accessibility_covering||state.currentTrek.accessibility_exposure||state.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:state.touristicContentsData>0}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:state.touristicEventsData>0})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=-1;var i=Object.values(this.options);for(var r=0;r<i.length;r++){if(i[r].indicator){t=i[r];e=r;break}}if(t&&this[t.ref]){var a=0;var n=0;for(var r=0;r<e;r++){if(i[r].visible){a+=1;n+=this[i[r].ref].clientWidth}}var s=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(n+16*a-s/2,"px"),width:"".concat(s*2,"px"),backgroundSize:"".concat(s,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){var e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}};t.prototype.getCurrentStepIndex=function(){var t=this;return state.currentTrekSteps?state.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(a=0,n=state.treks;a<n.length;a++){s=n[a];r.push(s.departure_geom)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(a){switch(a.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=L$1.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_,L,C,z,O;var F=this;return __generator(this,(function(S){switch(S.label){case 0:S.trys.push([0,72,,73]);t=new AbortController;e=t.signal;i={cache:getCacheMode(),signal:e};return[4,getAllDataInStore("treks")];case 1:r=S.sent().filter((function(t){return t.offline===true}));a=void 0;if(!!state.treks)return[3,4];return[4,getTreksList(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districts,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,state.routesFromProviders,state.practicesFromProviders,state.labelsFromProviders,i)];case 2:n=S.sent();s=state;return[4,n.json()];case 3:s.treks=S.sent().results;S.label=4;case 4:a=state.treks;a=a.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!state.districts)return[3,7];return[4,getDistricts(state.api,state.language,i)];case 5:o=S.sent();c=state;return[4,o.json()];case 6:c.districts=S.sent().results;S.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",a)];case 8:S.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:S.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:S.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:S.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:S.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:S.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:S.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:S.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:S.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:S.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:S.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:S.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 20:S.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 21:S.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 22:S.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 23:S.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 24:S.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 25:S.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 26:S.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 27:S.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 28:S.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 29:S.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 30:S.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 31:S.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 32:S.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 33:S.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 34:S.sent();return[4,writeOrUpdateDataInStore("signages",state.currentSignages)];case 35:S.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 36:S.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 37:S.sent();return[4,getCities(state.api,state.language,i).then((function(t){return t.json()}))];case 38:l=S.sent().results;return[4,writeOrUpdateDataInStore("cities",l)];case 39:S.sent();d=[];u=[];p=[];if(!(state.poisData>0))return[3,46];return[4,getPoisNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 40:d=S.sent().results;return[4,fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),i).then((function(t){return t.json()}))];case 41:f=S.sent().results;return[4,writeOrUpdateDataInStore("pois",d)];case 42:S.sent();return[4,writeOrUpdateDataInStore("poiTypes",f)];case 43:S.sent();return[4,writeOrUpdateFilesInStore(d,imagesRegExp,true,["url"])];case 44:S.sent();return[4,writeOrUpdateFilesInStore(f,imagesRegExp)];case 45:S.sent();S.label=46;case 46:if(!(state.touristicContentsData>0))return[3,53];return[4,getTouristicContentsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 47:u=S.sent().results;return[4,getTouristicContentCategory(state.api,state.language,null,i).then((function(t){return t.json()}))];case 48:h=S.sent().results;u.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",u)];case 49:S.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",h)];case 50:S.sent();return[4,writeOrUpdateFilesInStore(u,imagesRegExp,true,["url"])];case 51:S.sent();return[4,writeOrUpdateFilesInStore(h,imagesRegExp)];case 52:S.sent();S.label=53;case 53:if(!(state.touristicEventsData>0))return[3,60];return[4,getTouristicEventsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 54:p=S.sent().results;return[4,getTouristicEventType(state.api,state.language,null,i).then((function(t){return t.json()}))];case 55:m=S.sent().results;p.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",p)];case 56:S.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",m)];case 57:S.sent();return[4,writeOrUpdateFilesInStore(m,imagesRegExp)];case 58:S.sent();return[4,writeOrUpdateFilesInStore(p,imagesRegExp,true,["url"])];case 59:S.sent();S.label=60;case 60:if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,70];b=[];b.push.apply(b,this.currentTrek.children);v=[];g=[];w=[];k=[];y=[];b.forEach((function(t){v.push(getTrek(state.api,state.language,t,i));g.push(getTouristicContentsNearTrek(state.api,state.language,t,i));w.push(getTouristicEventsNearTrek(state.api,state.language,t,i));k.push(getPoisNearTrek(state.api,state.language,t,i));y.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],v,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 61:x=S.sent();return[4,Promise.all(__spreadArray([],g,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 62:A=S.sent();return[4,Promise.all(__spreadArray([],w,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 63:_=S.sent();return[4,Promise.all(__spreadArray([],k,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 64:L=S.sent();return[4,Promise.all(__spreadArray([],y,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 65:C=S.sent();z=0;S.label=66;case 66:if(!(z<x.length))return[3,70];x[z].offline=true;x[z].pois=L[z].results.map((function(t){return t.id}));x[z].touristicContents=A[z].results.map((function(t){return t.id}));x[z].touristicEvents=_[z].results.map((function(t){return t.id}));x[z].sensitiveAreas=C[z].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[x[z]])];case 67:S.sent();return[4,writeOrUpdateFilesInStore(x[z],imagesRegExp,true,["url"])];case 68:S.sent();S.label=69;case 69:z++;return[3,66];case 70:return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:d.map((function(t){return t.id})),signages:state.currentSignages.map((function(t){return t.id})),touristicContents:u.map((function(t){return t.id})),touristicEvents:p.map((function(t){return t.id})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 71:S.sent();state.treks.find((function(t){return t.id===F.currentTrek.id})).offline=true;if(!state.currentTreks){state.currentTreks=state.treks}state.currentTreks.find((function(t){return t.id===F.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id);return[3,73];case 72:O=S.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,73];case 73:return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,7,,8]);t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=s.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;s.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=s.sent();this.deleteOfflineTrekProperties(r);t.push(r);s.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:s.sent();if(state.treks){delete state.treks.find((function(t){return t.id===n.currentTrek.id})).offline;if(!state.currentTreks){state.currentTreks=state.treks}delete state.currentTreks.find((function(t){return t.id===n.currentTrek.id})).offline}if(state.parentTrek){delete state.parentTrek.offline}if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:a=s.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.getDepartureCityCode=function(){var t;var e=state.cities.find((function(t){return t.id===state.currentTrek.departure_city}));return(t=e.code)!==null&&t!==void 0?t:e.id};t.prototype.render=function(){var t=this;var e,i,r,a,n,s;var o=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var c=this.currentTrek&&this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>1||this.offline;return h(Host,{key:"8056c0a27f3a1dd46ae0d114d6f577d7228aeb3f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentTrek&&h("div",{key:"b303856480be42b6dc240450a4d8e477c360c239",part:"trek-options",class:"trek-options"},h("a",{key:"1a0f83fb17ed9e1fd158e26e7569cebe105e5626",part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{key:"c620a8121169c3d2749f5937b4a61e33e383f319",part:"trek-option",class:"steps trek-option".concat(this.indicatorSelectedTrekOption.ref==="stepsOptionRef"?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{key:"a9774229b79373964ca040d354412138b8eec1c8",part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{key:"e9c416ddad9348336e43d7a2bebed56f364dc24d",part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{key:"b824fe1dec5b8a8d0d70db11001a34a490c4c57e",part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{key:"e54134afd8a969037ac194d9090cc26b7e5c99aa",part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{key:"83455c4705b03272ec7bdeda591f5eb29fc8c73c",part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{key:"d75e9e87f2b3cf2e644dedc59281e08024a57d2e",part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{key:"f4b388b35eade9689a3c6b2ff5197bee388a8802",part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{key:"4d10a2fe171939017b84837240c7e14cd7bd8a01",part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{key:"20309d2f8ba63af9daa046bdd6da6c20018cca8b",part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{key:"4245997ca1ce78ab6545fa6fb4390896353a6ea7",part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{key:"cbe663137a1a432ae984528bc5b16b7b3fcadcf7",part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"d90e380850fd96b525bf3ea8d6c4bbcd56ac7e1e",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"ddfcd41e0e3a605c45867cc6034f9324d456aad1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var i=[e.legend,e.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"trek-image-legend",class:"trek-image-legend"},i),h("img",{part:"trek-img",class:"trek-img",src:t.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=o},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:o,loading:"lazy",alt:""})),h("div",{key:"67e31fe952c0cd6407d67951dd3b76d07979ee5e",style:{display:"block",visibility:c?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"9fffc676f36b3ea5ac1816405ab045707cfde1ce",style:{display:"flex",visibility:c?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"ff5806e477f5c9211159a49feb884d1a401403f0",style:{display:"flex",visibility:c?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{key:"4f2ca1b81824e62db8771540b32350e29ad1c4da",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{key:"470e578f6ff3607b85d1421f967040a4b3eb1617",part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"4ab0300ca98a161dd25ee3690fe08bfa1e0ca222",part:"sub-container",class:"sub-container"},h("div",{key:"8bf748be4496f6adb82df0ee9b1cbf7c22caa63c",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{key:"cad66bad05ce721070792ba132551ef87b3f238f",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"c6ff801d49c4fba4f73b435557734c5337be9f44",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"211b95c6bb7ed70744fb6aebb533e6975d8d2e73",part:"label",class:"label"},this.difficulty.label)),h("div",{key:"ba0afce0152a48fd6c999bc72f5405c8339cfebe",part:"icon-label",class:"icon-label duration"},h("span",{key:"f23bd5fff68eedcb171d24b410f5662b6ae9d543",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"efc712b997738e778ee209240fbab4046538f8fc",part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{key:"f4896a51c6f998f2bebfe4414497b543981237cc",part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"b43dbfc142270470eef68156c1c2885201c61b58",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{key:"c05006ec9e314a1c646ccab58f65524942c7b831",part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"c45260033030cb8659b2a4dc3b878c71111d7076",part:"icon-label",class:"icon-label length"},h("span",{key:"8781656a190650a50a7234b54974f228ba1d61c5",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"3093ad0b2e2af5e7e26b10b03ee42b2412300d82",part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{key:"24b747036ff58269711258338ee2701f23e582bc",part:"icon-label",class:"icon-label ascent"},h("span",{key:"d508bc3f8fce3b617d83fda582d63efa22488209",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"6ad471609f440720c0fd98a4bd986d5878570884",part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{key:"533222292f4506e97fbfab8045908ac518fc7e13",part:"icon-label",class:"icon-label descent"},h("span",{key:"8fbb18e91fcd0fa0ae3b95967e4b9e3b1f754317",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"f923f7757c63ba36e25e607030dad10339c46b29",part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{key:"91124c364f4e87dfe4a8ab1d3654c8a99defc388",part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"389b3691c84570648183d4d950945cc278c4b85c",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{key:"3628a2a7812fa47fa445334f7f0e246707527e66",part:"label",class:"label"},(n=this.practice)===null||n===void 0?void 0:n.name)),h("div",{key:"98f4b85c92d0b2a3c6054245171b52e454ede447",part:"icon-label",class:"icon-label networks"},(s=this.currentTrek.networks)===null||s===void 0?void 0:s.map((function(t){var e;var i=(e=state.networks)===null||e===void 0?void 0:e.find((function(e){return e.id===t}));if(!i)return null;return h("div",{part:"network",class:"network"},h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.label))}))),this.currentTrek.ratings&&state.ratings&&state.ratingsScale&&this.currentTrek.ratings.map((function(t){var e=state.ratings.find((function(e){return e.id===t}));if(!e)return null;var i=state.ratingsScale.find((function(t){return t.id===e.scale}));if(!i)return null;return h("div",{part:"row",class:"row"},"".concat(i.name," : ").concat(e.name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{key:"be45be1e4ec518e10d8bb517ec97ada6d148d18a",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{key:"73166517c274a896c66f660178cbf75a6c3d26d4",part:"divider",class:"divider"}),h("div",{key:"1f89d784c875cb52e0e2aeb7336fa2201cabc5c7",part:"downloads-container",class:"downloads-container"},h("div",{key:"37cb5c0de2e31d6b18571d671acbb188c5d16960",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"2c81dbe5096a7f8753f9c3f78d24700c198c40dc",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"0690d25f36666c42a3751551664faa4faaa806f9",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"be1ec5b062e965ed5fa5cd79d2987c8e79dff6fd",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"6643c2fcba8207e7ad08c2c216d9a59accc70ba4",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"267fc4080aac8b73ef19f5b58f8264b1a0c5eb45",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"cba3162d287a629daaa5ea18746ad6795628ce74",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"a4160f10fc13640f0219352e62659acbb84a55e0",part:"links-container",class:"links-container"},h("a",{key:"2b22420fb12cdbce5ea3422c6cec7e2d1398440f",part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"9858ac2d2691d74646941237a76a7a8d93c90999",part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{key:"0e5d1a67fd6068ffd6757b961e8e2a4e34485804",part:"label",class:"label"},"GPX")),h("a",{key:"8bb88524999b700629f96da239a384177f8ee4ec",part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"1c49c772fec62afd8fb26369165427f38f8506e2",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"1a0e1eea8efcb88995f2e781dd1741865e8739fc",part:"label",class:"label"},"KML")),h("a",{key:"5ab0bb7a155736e9ea0c077be254abfebc878c4f",part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"ea8a117a7765eaa66a47b2a3897cb7029497cc69",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"35991b278ba93d8089f96673be75fb8d5dee3f9a",part:"label",class:"label"},"PDF")))),h("div",{key:"bf5999b7846b85d33c8f4eb80542ec5be7419acd",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{key:"76c04a32f9c27209a27c903cf0c8051ed69de068",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{key:"a1b945d6d95b814ef44eff0cb521164fbc7cc1a0",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",{key:"14a2851a9663619a9e984e7cc0e81d0b00b80133"},h("div",{key:"bca99f01e2525cea538dcf99e46210fae1134147",part:"divider",class:"divider"}),h("div",{key:"fefd49f0703c4604477e501f05d835744df7061d",part:"parent-trek-container",class:"parent-trek-container"},h("button",{key:"d879717b82916dae39fbdad99eee17df33615bd1",part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",{key:"bed07488869c0b7cfd4a483a539dc4f75a4a237e"},"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{key:"8ce08e9dd17accad9f4c0352efd74e57729aa579",part:"step-container",class:"step-container",ref:function(e){return t.stepsRef=e}},h("div",{key:"6e1d7af75339fd0d550a16d2855dcc9033f892dc",part:"step-title",class:"step-title"},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{key:"768caf0c1a3618e78f2684ddf1ba5b115a1a809c",part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{key:"beadc34783bb73ebcb55842b0669507cffddc94e",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp}))}))),h("div",{key:"c42299aff5ad2091f61a5121e0871d3a3c470724",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{key:"db44ce34b81d03f9c412e54433a69d8507cf3ab6",part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{key:"fc4bfdc7ea6fa092a8249053ec111cc404d306d9",part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{key:"aa12ae2fc3017bb59097555f1c8a6171d8248fa4",part:"description-title",class:"description-title"},translate[state.language].description),h("div",{key:"5a0b7b6eff715a213533ab1e91751ffc862e7b87",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{key:"1055d8766febbbd18f5dc993e5fefd5b2927314f",part:"departure-container",class:"departure-container"},h("div",{key:"6b676e5ce915da16481e7dd4eec0d58d3e5af814",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"23d9987816c7872187dffc9ee5407975c12b20a3",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{key:"ce8d3bc40a75d642cd9f16204df89b625afea755",part:"arrival-container",class:"arrival-container"},h("div",{key:"b94c44817e347d0e62b194c4c8a4c22dce8cb7a5",part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{key:"765913eb6e8ead102cfb6dbc7ee0b074d8f05a43",part:"arrival",innerHTML:this.currentTrek.arrival})),this.cities&&this.cities.length>0&&h("div",{key:"cab01c4af2d4fb836cc35a9b243ac7afd50a9088",part:"cities-container",class:"cities-container"},h("div",{key:"3991f88880808c7a0542ab40c0a195b0602d64ec",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"a7d7a7a7a04fb9b2ee761a1f58881cf02bb3edbb",part:"cities",innerHTML:this.cities.join(", ")})),this.options.pois.visible&&h("div",{key:"c96b0a84ba48006025e397f5fea38a460616a9e0",part:"divider-and-pois-container",class:"divider-and-pois-container"},h("div",{key:"b863150374a53b0dc7ae920dbff19f7c81181c1f",part:"divider",class:"divider"}),h("div",{key:"5ac0b85fb62eb636d52dfed810f93004449237b2",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"5ef409abb360c9500b2796252a92ed97f56a834c",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.poisData)),!state.currentPois?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}}))))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",{key:"f5b71da699c318830a360f2f547486223e0fe212",part:"divider-and-weather-container",class:"divider-and-weather-container"},h("div",{key:"be810c526a76a8523ee6539b8d6dfee753263721",part:"divider",class:"divider"}),h("div",{key:"2f9e188f734e38814fdb2d28056dbf44b8354d2a",part:"weather-container",class:"weather-container"},h("iframe",{key:"b01b6f66328a868e925f44b6ec811fb80806a876",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.getDepartureCityCode(),"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",{key:"43ac08370634ba91cc8d73a667586040c218d72f",part:"divider-and-access-container",class:"divider-and-access-container"},h("div",{key:"140d47c65c6b52fe1c16e8f3a7969657960879f9",part:"divider",class:"divider"}),h("div",{key:"3d38690a06022602ef64a6f3b56e19b7add348c0",part:"access-container",class:"access-container"},h("div",{key:"80412576c7120bf367089c9757a43a45fa473160",part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{key:"d68254ad5b780b4fdeff6d05f90a2ae746ecf6eb",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",{key:"f52cab7cdcd7567176b822a666ce328daa04ce8d"},h("div",{key:"ad15b3cbf5a4e2440f0197886d9bbab7b301d3d3",part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{key:"fb326c4fc9521ca596cd28579cdd20d97bb2f677",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",{key:"e13d5d7edcada9f4013f37ac4743b640fe051b3a",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},h("div",{key:"67b66cea272cd8f5c74e0baf024189067dc87b96",part:"divider",class:"divider"}),h("div",{key:"0d234296f396fa9059dbcf8c7f626cb5b3948b6f",part:"public-transport-container",class:"public-transport-container"},h("div",{key:"14f3f7f4488c6400e3390b74f3197ea49561abcb",part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{key:"a6644adc2dbf7171742a3b995d8b4dac1d4c38c4",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",{key:"a05d29c7b27648b72101d0dfbedf64c34224db52",part:"divider-and-advice-container",class:"divider-and-advice-container"},h("div",{key:"ae740c45bb62f80b4c7e23c603b4fd663a0d7848",part:"divider",class:"divider"}),h("div",{key:"dd7bfc62d4c96bd2523c01036df45ea116ef326e",part:"advice-container",class:"advice-container",ref:function(e){return t.recommendationRef=e}},h("div",{key:"be0d489e5fb8881a92b5858c971f4db200846beb",part:"advice-title",class:"advice-title"},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{key:"e25822eff7f1e2d6ff41ae1444456d2cad6a2818",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"b43de70d5eaa645a365f471ca73849e82c6b311f",part:"advice-icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"076d6aed9ab88794eb598c52433e1c431bc711a1",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{key:"1fc74ae9b24032b01ec7fd98d1743c716449a145",part:"gear-container",class:"gear-container"},h("span",{key:"6fdb3407df03df3b6563bf855c7d0cf5efaece80",part:"gear-icon",class:"icon",innerHTML:BackpackIcon}),h("div",{key:"10cc4636701f990faf502bf6e88b0d21b6ae6dcb",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return h("div",{part:"label-container",class:"label-container"},h("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",{part:"label-name",class:"label-name",innerHTML:t.name})),h("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",{key:"e1430c6999edf66a1de69565f6e74482e95c7fc1",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},h("div",{key:"ec27793a46466e434cc1637a181350780dea9a24",part:"divider",class:"divider"}),h("div",{key:"85f662cf5767f590f1e9da5f97f3cb17a1c5acf9",part:"sensitive-areas-container",class:"sensitive-areas-container",ref:function(e){return t.sensitiveAreaRef=e}},h("div",{key:"93f91208e212670a20f7cb56c1e44e0b39cb9424",part:"ensitive-areas-title",class:"sensitive-areas-title"},translate[state.language].environmentalSensitiveAreas),h("div",{key:"de5daa2245052f028a7661352e713ececc28451b",part:"sensitive-areas-description",class:"sensitive-areas-description",innerHTML:translate[state.language].sensitiveAreasDescription}),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value,sensitive-area-rules-container,sensitive-area-rules-title,sensitive-area-rules,sensitive-area-rule,sensitive-area-rule-name,sensitive-area-rule-description",sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",{key:"e9bf2202911f2106e7eed913ad6cac6862e949a7",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},h("div",{key:"0f7c972297729f57bee9257f131dcd942f6c4cc6",part:"divider",class:"divider"}),h("div",{key:"786a53e548f501d28263de700ab49d68ec13ed9e",part:"information-desks-container",class:"information-desks-container",ref:function(e){return t.informationPlacesRef=e}},h("div",{key:"7eed5bcf460b5144b87dcc4e3c3124ef0486026a",part:"information-desks-title",class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{key:"c1ff82908e9a7c3dcf6f41da7188a6ae25e54081",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"3b5c259322df1c10e52259460d2a3154203a8c93",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"a16ace6cd6c37eeec4c0219ea5e5bc6f42260874",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&h("div",{key:"b17bf4022ee3c9aab4502ea190bcaaf56bd07246",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},h("div",{key:"e96537063c01248b7b48f10e20d9e755c2ec3e5f",part:"divider",class:"divider"}),h("div",{key:"5c917e87000d22e4034c960ea48dae6c6c2bcd9c",part:"accessibilities-container",class:"accessibilities-container",ref:function(e){return t.accessibilityRef=e}},h("div",{key:"0b657271584265e9485040360a9c9bfdda5b5d59",part:"accessibilities-title",class:"accessibilities-title"},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{key:"6e02f009a6735462101ea3b0c765c5b0dae48a44",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{key:"ea2ba1e68a2c8a16bd0955fc797a5b01c0779554",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{part:"accessibility-content-container",class:"accessibility-content-container"},h("img",{src:t.pictogram,alt:""}),h("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&h("div",{key:"d6bb069f7dacaafb5a457dd4cebdde567d3a26a0",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{key:"ef98f922afa0dc6e655a2d04cfa9460618472585",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{key:"bdeb4aeab191a91ce4edd01578792d2c00247235",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{key:"42e856247a47c4f4a7af84f17f3e43b2e18e8ca8",href:"tel:".concat(this.emergencyNumber.toString())},h("span",{key:"f5f98db6a141220fbf2c8fb739f293dc1f877c1f",part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{key:"b73edc2e774f9ed27e6dc0c4e4354f2c11acc12a",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{key:"99e2ddf97c48565cbed527919a118a8915e106f8",part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{key:"7fb529ec780b95c30396e4b0e831811348f529b2",part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{key:"4a90d61229dd75fc9c036e800f5b635dfb40003b",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{key:"e4965d7d9fd70580c60e83b2fd23cb5dc3ac453f",part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{key:"0689c69d2fe2bb66f23a641672280064dd7c9a94",part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{key:"e29817a08430fdf17f4246b28fc5eb7fe18c4360",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{key:"6293cf8bcbfb3ba615d0f5729edd19788107393d",part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{key:"3aeb825a6f5c81564f363bb2a0c6f9da23d1552a",part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{key:"dc2823909081e95cf1e12a01504b842a0cfb29b3",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{key:"9eda6d3e4ba587ae0bdf0539dfe8e38551bfefb9",part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{key:"d87871b771585da37654011fe7454f6479f7a198",part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{key:"b7d535794336ae9684895e5c3a1469f5305debdc",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{key:"9ae714a89e6f2a0369e893384da8b7fc9e89f7ba",part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{key:"f5f7cec0e5ac87575246f2589171275fcd8ad977",part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{key:"ff281034591ab3098a2af9e2ecd5e4d2c4d7b476",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{key:"cff0700f6d0f4cf210d6bd220a0decd4b765c7e6",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{key:"dea368c92a7a275127ca142d71dac06fcea8747e",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{key:"acf301f63e152448f5cfbc9b3f62f185b5169507",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{key:"657faeb3b0806952a1ceb0a7e0db280f2b404ba8",part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{key:"e13a5149621e5a5fb8cb7ca94cc434c6c6e31e8e",part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{key:"2bac6f8e98cebfb8d245cd5c5f92933ea78a5c2e",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),this.options.touristicContents.visible&&h("div",{key:"ab4400ef728b0d06ff2eb8b4e122ec3b44a407bc",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},h("div",{key:"295932a6bcf4f5c70c336600d1aa9447e81f1ee2",part:"divider",class:"divider"}),h("div",{key:"5884854910d07ec337bef65347032d0a65ead6e4",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"18296b8976cf6220d9b9434addb2d7473978b443",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.touristicContentsData)),!state.trekTouristicContents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}}))))),this.options.touristicEvents.visible&&h("div",{key:"02991af10c2b6982f56491f0305d4c86e801aa9b",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},h("div",{key:"24eda30f8bc9a2a107dc96557a561b28c2bc806f",part:"divider",class:"divider"}),h("div",{key:"13e9dc162d5021646e07cf33e992eafbae33e417",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"9f02735b59105f7014862d641aebd49f1630d320",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.touristicEventsData)),!state.trekTouristicEvents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}}))))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&h("div",{key:"494c71b0095353f716564a8ef14f12f89c1e9cd2",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},h("div",{key:"f680c377e1194f2136914371c32bf0e831d6a1cc",part:"divider",class:"divider"}),h("div",{key:"490ce9c6e6c3fdc5bda69026c7d550d406be0f80",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"38891f5e73aa5fde817cea64b0a5e219274aa4f2",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentTrek.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",{key:"66816c4b3cd95ce15f455ff302a043f07e89d393",part:"divider-and-source-container",class:"divider-and-source-container"},h("div",{key:"199885dbcb1c38a28a3804046382bcd6bd87032b",part:"divider",class:"divider"}),h("div",{key:"f40130e768448309bc69a5992d94c60b3ab896c3",part:"source-container",class:"source-container"},h("div",{key:"9c3770c70cd4c177255fa728accad098ee5e302d",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"75fda50d6ba82cb3bb636566aa4833d6bcd0e795",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"af592c9a38038ce4b6dde27d83b096b74fe86678"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"a270a189214c77dd45716ecc6368e6a5b24779ba",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"4740417d2fbec297aa58d21dc7fff8386dd89d68",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwTrekDetail.style=grwTrekDetailCss();var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){state.poisData=0;state.touristicContentsData=0;state.touristicEventsData=0;state.currentPois=null;state.trekTouristicContents=null;state.trekTouristicEvents=null;if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){state.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_,L,C,z,O,F,S,P;return __generator(this,(function(T){switch(T.label){case 0:if(!(t&&t.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];state.parentTrekId=t.id;state.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,getDataInStore("treks",state.parentTrekId)];case 2:i=T.sent();state.parentTrek=i;e.push.apply(e,i.children);T.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:a.currentTrekSteps=T.sent();T.label=5;case 5:n=state;return[4,handleOfflineProperty("difficulties")];case 6:n.difficulties=T.sent();s=state;return[4,handleOfflineProperty("routes")];case 7:s.routes=T.sent();o=state;return[4,handleOfflineProperty("practices")];case 8:o.practices=T.sent();c=state;return[4,handleOfflineProperty("themes")];case 9:c.themes=T.sent();l=state;return[4,handleOfflineProperty("cities")];case 10:l.cities=T.sent();d=state;return[4,handleOfflineProperty("accessibilities")];case 11:d.accessibilities=T.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=T.sent();p=state;return[4,handleOfflineProperty("ratingsScale")];case 13:p.ratingsScale=T.sent();f=state;return[4,handleOfflineProperty("labels")];case 14:f.labels=T.sent();h=state;return[4,handleOfflineProperty("sources")];case 15:h.sources=T.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=T.sent();b=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:b.touristicContentCategories=T.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=T.sent();g=state;return[4,handleOfflineProperty("networks")];case 19:g.networks=T.sent();w=state;return[4,handleOfflineProperty("poiTypes")];case 20:w.poiTypes=T.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=T.sent();y=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=y;return[4,handleOfflineProperty("pois",["url"])];case 22:x=T.sent();A=x.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;state.poisData=A.length;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:_=T.sent();L=_.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=L;state.touristicContentsData=L.length;return[4,handleOfflineProperty("touristicEvents",["url"])];case 24:C=T.sent();z=C.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=z;state.touristicEventsData=z.length;return[4,handleOfflineProperty("sensitiveAreas")];case 25:O=T.sent();F=O.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=F;return[4,handleOfflineProperty("signages")];case 26:S=T.sent();P=S.filter((function(e){return t.signages.some((function(t){return t===e.id}))}));state.currentSignages=P;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 27:T.sent();state.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.ratings?getTrekRatings(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.ratingsScale?getTrekRatingsScale(state.api,state.language,this.init):new Response("null"));e.push(this.signages?getSignages(state.api,state.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[getSensitiveAreasNearTrek(state.api,state.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram,filter"),this.init),getSources(state.api,state.language,this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),getPoisNearTrekCount(state.api,state.language,this.trekId,this.init),getInformationsDesks(state.api,state.language,this.init),getTrekNetwork(state.api,state.language,this.init),getTrek(state.api,state.language,this.trekId,this.init),getTouristicContentsNearTrekCount(state.api,state.language,this.trekId,this.init),getTouristicEventsNearTrekCount(state.api,state.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o;var c=this;var l=t[0],d=t[1],u=t[2],p=t[3],f=t[4],h=t[5],m=t[6],b=t[7],v=t[8],g=t[9],w=t[10],k=t[11],y=t[12],x=t[13],A=t[14],_=t[15],L=t[16],C=t[17];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(_&&_.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(_.children.length>0))return[3,1];state.parentTrekId=_.id;state.parentTrek=_;e.push.apply(e,_.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children"),this.init).then((function(t){return t.json()}))];case 2:i=t.sent();state.parentTrek=i;e.push.apply(e,i.children);t.label=3;case 3:r=[];e.forEach((function(t){r.push(getTrek(state.api,state.language,t,c.init))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:a.currentTrekSteps=t.sent();t.label=5;case 5:n=__spreadArray([_.departure_city],_.cities,true);if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){n=__spreadArray(__spreadArray(__spreadArray([],n,true),[t.departure_city],false),t.cities,true)}))}n=__spreadArray([],new Set(n.filter(Boolean)),true);if(state.cities){s=state.cities.map((function(t){return t.id}));n=n.filter((function(t){return!s.includes(t)}))}if(!(n.length>0))return[3,7];return[4,getCities(state.api,state.language,this.init,n).then((function(t){return t.json()}))];case 6:o=t.sent().results;if(o){if(state.cities){state.cities=__spreadArray(__spreadArray([],state.cities,true),o,true)}else{state.cities=o}}t.label=7;case 7:if(!state.cities){state.cities=[]}if(l){state.difficulties=l.results}if(d){state.routes=d.results}if(u){state.practices=u.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(p){state.themes=p.results}if(f){state.accessibilities=f.results}if(h){state.ratings=h.results}if(m){state.ratingsScale=m.results}state.currentSignages=b?b.results:[];if(k){state.accessibilitiesLevel=k.results}if(v){state.currentSensitiveAreas=v.results}if(g){state.labels=g.results}if(w){state.sources=w.results}if(A){state.networks=A.results}if(x){state.currentInformationDesks=x.results}if(y.count){state.poisData=y.count}if(L.count){state.touristicContentsData=L.count}if(C.count){state.touristicEventsData=C.count}if(_){state.currentTrek=_}if(state.poisData>0){Promise.all([getPoisNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.poiTypes=i.results}if(e){state.currentPois=e.results}})).catch((function(){state.poisData=0}))}if(state.touristicContentsData>0){Promise.all([getTouristicContentsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicContentCategory(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicContentCategories=i.results}if(e){state.trekTouristicContents=e.results}})).catch((function(){state.touristicContentsData=0}))}if(state.touristicEventsData>0){Promise.all([getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicEventType(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicEventTypes=i.results}if(e){state.trekTouristicEvents=e.results}})).catch((function(){state.touristicEventsData=0}))}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"c906a7bee2cf22789ff613bf3c429404a23775a0"})};return t}();var grwTreksListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-trek-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTreksList=function(){function t(t){registerInstance(this,t);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTreks){t.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,t.step),true)}}));onChange("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.treksWithinBounds){t.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"fc23416db0a6d67acae73d521024429dc0566627",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{key:"8a74a4d35b095dd7dfa0c3d83e65c03266412817",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"5f81aff6bb9ef65fc3638bf5ab2c10a428028683",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp})}))),h("div",{key:"8dc46a4b655af7b8266262ca664ba31e039f2c78",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=grwTreksListCss();var GrwTreksProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};t.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=l.sent();if(!(t&&t.length>0))return[3,11];e=state;return[4,this.handleOfflineProperty("difficulties")];case 2:e.difficulties=l.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();a=state;return[4,this.handleOfflineProperty("themes")];case 5:a.themes=l.sent();n=state;return[4,this.handleOfflineProperty("cities")];case 6:n.cities=l.sent();s=state;return[4,this.handleOfflineProperty("accessibilities")];case 7:s.accessibilities=l.sent();o=state;return[4,this.handleOfflineProperty("labels")];case 8:o.labels=l.sent();c=state;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 10:t=l.sent();this.sortTreks(t);if(this.offline){t=t.filter((function(t){return t.offline}))}state.treks=t;state.currentTreks=t;return[3,12];case 11:state.networkError=true;l.label=12;case 12:return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t){return __awaiter(this,arguments,void 0,(function(t,e){var i;if(e===void 0){e=[]}return __generator(this,(function(r){switch(r.label){case 0:return[4,getAllDataInStore(t)];case 1:i=r.sent();return[4,setFilesFromStore(i,imagesRegExp,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),getTrekAccessibility(state.api,state.language,this.portals,this.init),getLabel(state.api,state.language,this.portals,this.init),getDistricts(state.api,state.language,this.init),getTreksList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o,c,l;var d=t[0],u=t[1],p=t[2],f=t[3],h=t[4],m=t[5],b=t[6],v=t[7];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;state.difficulties=d.results;state.routes=u.results;state.practices=p.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=f.results;state.accessibilities=h.results;state.labels=m.results;state.districts=b.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;e=new Set;if(v&&v.results){v.results.forEach((function(t){if(t.departure_city){e.add(t.departure_city)}if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}i=[];if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:r=t.sent();return[4,r.json()];case 3:a=t.sent();i=a.results||[];return[3,5];case 4:n=t.sent();console.error("Failed to load cities",n);return[3,5];case 5:state.cities=i;s=[];o=v.results.filter((function(t){return t.departure_geom!==null}));c=0;t.label=6;case 6:if(!(c<o.length))return[3,9];return[4,trekIsAvailableOffline(o[c].id)];case 7:l=t.sent();s.push(Object.assign(Object.assign({},o[c]),{offline:l}));t.label=8;case 8:c++;return[3,6];case 9:this.sortTreks(s);state.treks=s;state.currentTreks=s;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineTreks()];case 1:t.sent();return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"b89d70f3abfd3b072342261b4d6c34e813746646"})};return t}();export{GrwCommonButton as grw_common_button,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,GrwOfflineConfirmModal as grw_offline_confirm_modal,GrwOutdoorCourseDetail as grw_outdoor_course_detail,GrwOutdoorCourseProvider as grw_outdoor_course_provider,GrwOutdoorSiteDetail as grw_outdoor_site_detail,GrwOutdoorSiteProvider as grw_outdoor_site_provider,GrwOutdoorSitesList as grw_outdoor_sites_list,GrwOutdoorSitesProvider as grw_outdoor_sites_provider,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSwitch as grw_switch,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
|
|
3
|
+
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&true!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});Q.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+" "+i.label},order:10}})})),Q.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return a(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===U(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),a=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+a)}else e.meta.time=new Date(Date.now());var n=e.meta.time;return n.getTime()-60*n.getTimezoneOffset()*1e3==0&&(n=0),n},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+a(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return a(t.time||0)},order:20}}))})),Q.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),a=O[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,a=t.track_info;if(t.options.altitudeDeltaMax){var n=e-r[i>0?i-1:i].z,s=t.options.altitudeDeltaMax;Math.abs(n)>s&&(e=r[i-1].z+s*Math.sign(n))}return(e=c(e,t.options.altitudeRange))>a.elevation_max&&(a.elevation_max=e),e<a.elevation_min&&(a.elevation_min=e),a.elevation_avg=(e+a.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:a.area||r,strokeColor:e.detached?a.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?a.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),Q.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),a=i[e].z-i[e>0?e-1:e].z;return isNaN(a)||0===r?0:a/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,a=t._data,n=a[i].z-a[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var s=slop-a[i>0?i-1:i].slope,o=t.options.slopeDeltaMax;Math.abs(s)>o&&(e=a[i-1].slope+o*Math.sign(s))}return e=c(e,t.options.slopeRange),n>0?t.track_info.ascent+=n:n<0&&(t.track_info.descent-=n),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+i.label},order:40}})}})),Q.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,a=1e3*(r[i].dist-r[i>0?i-1:i].dist),n=r[i].time-r[i>0?i-1:i].time;return n>0?Math.abs(a/n*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,a=t.track_info;if(t.options.speedDeltaMax){var n=e-r[i>0?i-1:i].speed,s=t.options.speedDeltaMax;Math.abs(n)>s&&(e=r[i-1].speed+s*Math.sign(n))}return(e=c(e,t.options.speedRange))>a.speed_max&&(a.speed_max=e),e<a.speed_min&&(a.speed_min=e),a.speed_avg=(e+a.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+i.label},order:50}}))}})),Q.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,a=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),n=(r[i].time-r[i>0?i-1:i].time)/1e3;return n>0?Math.abs(a/n)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,a=t.track_info;if(t.options.accelerationDeltaMax){var n=e-r[i>0?i-1:i].acceleration,s=t.options.accelerationDeltaMax;Math.abs(n)>s&&(e=r[i-1].acceleration+s*Math.sign(n))}return(e=c(e,t.options.accelerationRange))>a.acceleration_max&&(a.acceleration_max=e),e<a.acceleration_min&&(a.acceleration_min=e),a.acceleration_avg=(e+a.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+i.label},order:60}})}})),Q.Utils=z,Q.Components=Y,Q.Chart=H,$=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),$.call(null,t,e)},Q.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(t){return new Q(t)}}))})(leafletElevation_min);return leafletElevation_min.exports}requireLeafletElevation_min();var leaflet_markercluster$1={exports:{}};var leaflet_markercluster=leaflet_markercluster$1.exports;var hasRequiredLeaflet_markercluster;function requireLeaflet_markercluster(){if(hasRequiredLeaflet_markercluster)return leaflet_markercluster$1.exports;hasRequiredLeaflet_markercluster=1;(function(t,e){!function(t,i){i(e)}(leaflet_markercluster,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:false,spiderfyOnMaxZoom:true,showCoverageOnHover:true,zoomToBoundsOnClick:true,singleMarkerMode:false,disableClusteringAtZoom:null,removeOutsideVisibleBounds:true,animate:true,animateAddingMarkers:false,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:false,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,true),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,a=this._nonPointGroup,n=this.options.chunkedLoading,s=this.options.chunkInterval,o=this.options.chunkProgress,c=t.length,l=0,d=true;if(this._map){var u=(new Date).getTime(),p=L.bind((function(){var f=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<c;l++){if(n&&l%200==0){var h=(new Date).getTime()-f;if(s<h)break}if((i=t[l])instanceof L.LayerGroup)d&&(t=t.slice(),d=false),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else a.addLayer(i),e||this.fire("layeradd",{layer:i})}o&&o(l,c,(new Date).getTime()-u),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)}),this);p()}else for(var f=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(d&&(t=t.slice(),d=false),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||f.push(i):a.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,a=this._featureGroup,n=this._nonPointGroup,s=true;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=false),this._extractNonGroupLayers(i,t),r=t.length):(this._arraySplice(this._needsClustering,i),n.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var o=t.slice(),c=r;for(e=0;e<c;e++)(i=o[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,o),c=o.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=false),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,true,true),this.fire("layerremove",{layer:i}),a.hasLayer(i)&&(a.removeLayer(i),i.clusterShow&&i.clusterShow())):(n.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,a,n=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),r=n.length-1;0<=r;r--){for(i=true,a=s.length-1;0<=a;a--)if(s[a].layer===n[r]){i=false;break}i&&t.call(e,n[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return false;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return true;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return false;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,true),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,true)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),true},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());a<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,a=this._gridUnclustered,n=this._featureGroup,s=this._map,o=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,d=l._markers;for(this._arraySplice(d,t);l&&(l._childCount--,l._boundsNeedUpdate=true,!(l._zoom<o));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,s.project(l._cLatLng,l._zoom)),a[l._zoom].addObject(c,s.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(n.removeLayer(l),i||n.addLayer(c))):l._iconNeedsUpdate=true,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return true;e=e.parentNode}return false},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,a=this.options.spiderfyOnEveryZoom;(e||r||a)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,a=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),a.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var a=t;e<=a;a--)this._gridClusters[a]=new L.DistanceGrid(r(a)),this._gridUnclustered[a]=new L.DistanceGrid(r(a));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,a=this._gridClusters,n=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);s<=e;e--){i=this._map.project(t.getLatLng(),e);var o=a[e].getNearObject(i);if(o)return o._addChild(t),void(t.__parent=o);if(o=n[e].getNearObject(i)){var c=o.__parent;c&&this._removeLayer(o,false);var l=new this._markerCluster(this,e,o,t);a[e].addObject(l,this._map.project(l._cLatLng,e)),o.__parent=l;var d=t.__parent=l;for(r=e-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),a[r].addObject(d,this._map.project(o.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(o,e)}n[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),a=0;for(e=e||[];a<r.length;a++)(i=r[a])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),a=this._featureGroup,n=Math.floor(this._map.getMinZoom());this._ignoreMove=true,this._topClusterLevel._recursively(r,t,n,(function(n){var s,o=n._latlng,c=n._markers;for(r.contains(o)||(o=null),n._isSingleParent()&&t+1===e?(a.removeLayer(n),n._recursivelyAddChildrenToMap(null,e,r)):(n.clusterHide(),n._recursivelyAddChildrenToMap(o,e,r)),i=c.length-1;0<=i;i--)s=c[i],r.contains(s._latlng)||a.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),a.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=false,this._enqueue((function(){this._topClusterLevel._recursively(r,t,n,(function(t){a.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),a=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,a,e+1,i);var n=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];this._ignoreMove=true,s.setLatLng(s.getLatLng()),this._ignoreMove=false,s.clusterShow&&s.clusterShow()}else t._recursively(r,i,a,(function(t){t._recursivelyRemoveChildrenFromMap(r,a,e+1)}));n._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,a=r.getBoundsZoom(this._bounds),n=this._zoom+1,s=r.getZoom();0<i.length&&n<a;){n++;var o=[];for(e=0;e<i.length;e++)o=o.concat(i[e]._childClusters);i=o}n<a?this._group._map.setView(this._latlng,n):a<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=true,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=false),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,true)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,a=this._markers,n=this._childClusters,s=0,o=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<a.length;t++)i=a[t]._latlng,this._bounds.extend(i),s+=i.lat,o+=i.lng;for(t=0;t<n.length;t++)(e=n[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,s+=i.lat*r,o+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/c,o/c),this._boundsNeedUpdate=false}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,a=t._markers;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,a=t._childClusters;for(i=a.length-1;0<=i;i--)(r=a[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(a){a._recursivelyAnimateChildrenIn(t,a._group._map.latLngToLayerPoint(a.getLatLng()).round(),i),a._isSingleParent()&&i-1===r?(a.clusterShow(),a._recursivelyRemoveChildrenFromMap(t,e,i)):a.clusterHide(),a._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var a=r._markers.length-1;0<=a;a--){var n=r._markers[a];i.contains(n._latlng)&&(t&&(n._backupLatlng=n.getLatLng(),n.setLatLng(t),n.clusterHide&&n.clusterHide()),r._group._featureGroup.addLayer(n))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var a=this._childClusters.length-1;0<=a;a--)this._childClusters[a]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var a,n;this._recursively(t,e-1,i-1,(function(t){for(n=t._markers.length-1;0<=n;n--)a=t._markers[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}),(function(t){for(n=t._childClusters.length-1;0<=n;n--)a=t._childClusters[n],r&&r.contains(a._latlng)||(t._group._featureGroup.removeLayer(a),a.clusterShow&&a.clusterShow())}))},_recursively:function(t,e,i,r,a){var n,s,o=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),a&&c===i&&a(this)),c<e||c<i)for(n=o.length-1;0<=n;n--)(s=o[n])._boundsNeedUpdate&&s._recalculateBounds(),t.intersects(s._bounds)&&s._recursively(t,e,i,r,a)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),a=this._grid,n=a[r]=a[r]||{},s=n[i]=n[i]||[],o=L.Util.stamp(t);this._objectPoint[o]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,a=this._getCoord(e.x),n=this._getCoord(e.y),s=this._grid,o=s[n]=s[n]||{},c=o[a]=o[a]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete o[a],true},eachObject:function(t,e){var i,r,a,n,s,o,c=this._grid;for(i in c)for(r in s=c[i])for(a=0,n=(o=s[r]).length;a<n;a++)t.call(e,o[a])&&(a--,n--)},getNearObject:function(t){var e,i,r,a,n,s,o,c,l=this._getCoord(t.x),d=this._getCoord(t.y),u=this._objectPoint,p=this._sqCellSize,f=null;for(e=d-1;e<=d+1;e++)if(a=this._grid[e])for(i=l-1;i<=l+1;i++)if(n=a[i])for(r=0,s=n.length;r<s;r++)o=n[r],((c=this._sqDist(u[L.Util.stamp(o)],t))<p||c<=p&&null===f)&&(p=c,f=o);return f},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,a,n=0,s=null,o=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(a=this.getDistant(r,t))&&(o.push(r),n<a&&(n=a,s=r));return{maxPoint:s,newPoints:o}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=false,r=false,a=false,n=false,s=null,o=null,c=null,l=null,d=null,u=null;for(e=t.length-1;0<=e;e--){var p=t[e];(false===i||p.lat>i)&&(i=(s=p).lat),(false===r||p.lat<r)&&(r=(o=p).lat),(false===a||p.lng>a)&&(a=(c=p).lng),(false===n||p.lng<n)&&(n=(l=p).lng)}return d=r!==i?(u=o,s):(u=l,c),[].concat(this.buildConvexHull([u,d],t),this.buildConvexHull([d,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,true),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,n=this._2PI/t,s=[];for(a=Math.max(a,35),s.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*n,s[i]=new L.Point(e.x+a*Math.cos(r),e.y+a*Math.sin(r))._round();return s},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,a=r*this._spiralLengthStart,n=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,o=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+a*Math.cos(o),e.y+a*Math.sin(o))._round()),a+=s/(o+=n/a+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,a=i._featureGroup,n=this.getAllChildMarkers(null,true);for(i._ignoreMove=true,this.setOpacity(1),e=n.length-1;0<=e;e--)t=n[e],a.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:n}),i._ignoreMove=false,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,a,n,s=this._group,o=s._map,c=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=true,i=0;i<t.length;i++)n=o.layerPointToLatLng(e[i]),r=t[i],a=new L.Polyline([this._latlng,n],l),o.addLayer(a),r._spiderLeg=a,r._preSpiderfyLatlng=r._latlng,r.setLatLng(n),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),s._ignoreMove=false,s.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,a,n,s,o,c=this,l=this._group,d=l._map,u=l._featureGroup,p=this._latlng,f=d.latLngToLayerPoint(p),h=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),b=m.opacity;for(void 0===b&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=b,l._ignoreMove=true,i=0;i<t.length;i++)r=t[i],o=d.layerPointToLatLng(e[i]),a=new L.Polyline([p,o],m),d.addLayer(a),r._spiderLeg=a,h&&(s=(n=a._path).getTotalLength()+.1,n.style.strokeDasharray=s,n.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)o=d.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.clusterShow&&r.clusterShow(),h&&((n=(a=r._spiderLeg)._path).style.strokeDashoffset=0,a.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=false,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,a,n,s,o=this,c=this._group,l=c._map,d=c._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),p=this.getAllChildMarkers(null,true),f=L.Path.SVG;for(c._ignoreMove=true,c._animationStart(),this.setOpacity(1),i=p.length-1;0<=i;i--)(e=p[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,s=true,e._setPos&&(e._setPos(u),s=false),e.clusterHide&&(e.clusterHide(),s=false),s&&d.removeLayer(e),f&&(n=(a=(r=e._spiderLeg)._path).getTotalLength()+.1,a.style.strokeDashoffset=n,r.setStyle({opacity:0})));c._ignoreMove=false,setTimeout((function(){var t=0;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&t++;for(i=p.length-1;0<=i;i--)(e=p[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&d.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:o,markers:p})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=true,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:true})}))})(leaflet_markercluster$1,leaflet_markercluster$1.exports);return leaflet_markercluster$1.exports}requireLeaflet_markercluster();!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof exports)module.exports=t(require("leaflet"));else if("undefined"!=typeof window){if(void 0===window.L)throw"Leaflet must be loaded first.";window.L.Control.SimpleLocate=t(window.L)}}((function(t){var e=t.Control.extend({options:{className:"",title:"Locate Geolocation and Orientation",ariaLabel:"",minAngleChange:3,clickTimeoutDelay:500,setViewAfterClick:true,zoomLevel:void 0,drawCircle:true,afterClick:null,afterMarkerAdd:null,afterDeviceMove:null,htmlInit:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 8,1.5 A 6.5,6.5 0 0 0 1.5,8 6.5,6.5 0 0 0 8,14.5 6.5,6.5 0 0 0 14.5,8 6.5,6.5 0 0 0 8,1.5 Z m 0,2 A 4.5,4.5 0 0 1 12.5,8 4.5,4.5 0 0 1 8,12.5 4.5,4.5 0 0 1 3.5,8 4.5,4.5 0 0 1 8,3.5 Z" />\n\t<rect width="1.5" height="4" x="7.25" y="0.5" rx="0.5" ry="0.5" />\n\t<rect width="1.5" height="4" x="7.25" y="11.5" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="0.5" y="7.25" rx="0.5" ry="0.5" />\n\t<rect width="4" height="1.5" x="11.5" y="7.25" ry="0.5" rx="0.5" />\n\t<circle cx="8" cy="8" r="1" />\n</svg>',htmlSpinner:'\n<svg width="16" height="16" viewBox="-8 -8 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<g>\n\t\t<circle opacity=".7" cx="0" cy="-6" r=".9" transform="rotate(90)" />\n\t\t<circle opacity=".9" cx="0" cy="-6" r="1.3" transform="rotate(45)" />\n\t\t<circle opacity="1" cx="0" cy="-6" r="1.5" />\n\t\t<circle opacity=".95" cx="0" cy="-6" r="1.42" transform="rotate(-45)" />\n\t\t<circle opacity=".85" cx="0" cy="-6" r="1.26" transform="rotate(-90)" />\n\t\t<circle opacity=".7" cx="0" cy="-6" r="1.02" transform="rotate(-135)" />\n\t\t<circle opacity=".5" cx="0" cy="-6" r=".7" transform="rotate(-180)" />\n\t\t<circle opacity=".25" cx="0" cy="-6" r=".3" transform="rotate(-225)" />\n\t\t<animateTransform attributeName="transform" type="rotate" values="0;0;45;45;90;90;135;135;180;180;225;225;270;270;315;315;360" keyTimes="0;.125;.125;.25;.25;.375;.375;.5;.5;.675;.675;.75;.75;.875;.875;1;1" dur="1.3s" repeatCount="indefinite" />\n\t</g>\n</svg>',htmlGeolocation:'\n<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path d="M 13.329384,2.6706085 C 13.133096,2.4743297 12.77601,2.4382611 12.303066,2.6103882 L 6.6307133,4.6742285 1.1816923,6.6577732 C 1.0668479,6.6995703 0.95157337,6.752486 0.83540381,6.8133451 0.27343954,7.1201064 0.41842508,7.4470449 1.2644998,7.5962244 l 6.0688263,1.0701854 1.0714872,6.0698222 c 0.1491847,0.84604 0.4751513,0.990031 0.7816575,0.427825 0.060857,-0.116165 0.1137803,-0.231436 0.1555779,-0.346273 L 11.324426,9.3702482 13.389608,3.6968841 C 13.56174,3.2239596 13.52567,2.8668883 13.329392,2.6706094 Z" />\n</svg>',htmlOrientation:'\n<svg class="leaflet-simple-locate-orientation" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n\t<path fill="#c00000" d="M 8,0 C 7.7058986,0 7.4109021,0.30139625 7.1855469,0.90234375 L 5.3378906,5.8300781 C 5.2559225,6.0486598 5.1908259,6.292468 5.1386719,6.5507812 6.0506884,6.193573 7.0205489,6.0068832 8,6 8.9768002,6.0005071 9.945249,6.1798985 10.857422,6.5292969 10.805917,6.2790667 10.741782,6.0425374 10.662109,5.8300781 L 8.8144531,0.90234375 C 8.5890978,0.30139615 8.2941007,0 8,0 Z" />\n\t<path d="M 8,5.9999998 C 7.0205501,6.006884 6.0506874,6.1935733 5.138672,6.5507817 4.9040515,7.7126196 4.9691485,9.1866095 5.3378906,10.169922 l 1.8476563,4.927734 c 0.4507105,1.201895 1.1781958,1.201894 1.628906,0 L 10.662109,10.169922 C 11.033147,9.1804875 11.097283,7.6944254 10.857422,6.5292967 9.9452497,6.1798989 8.9767993,6.0005076 8,5.9999998 Z m -1e-7,0.7499999 A 1.25,1.258 90 0 1 9.2578124,7.9999996 1.25,1.258 90 0 1 8,9.2500001 a 1.25,1.258 90 0 1 -1.2578124,-1.25 1.25,1.258 90 0 1 1.2578123,-1.2500004 z" />\n</svg>',iconGeolocation:t.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:t.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(e){t.Util.setOptions(this,e),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(e){return this._map=e,this._button=t.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&t.DomUtil.addClass(this._button,this.options.className),t.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),t.DomEvent.on(this._button,"click",t.DomEvent.stopPropagation).on(this._button,"click",t.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(t){this.options.zoomLevel=t},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this._clickTimeout?(clearTimeout(this._clickTimeout),this._clickTimeout=void 0,this._clicked&&(this._geolocation&&this._unwatchGeolocation(),this._orientation&&this._unwatchOrientation(),this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._updateButton(),this._map.off("layeradd",this._onLayerAdd,this))):this._clickTimeout=setTimeout((function(){clearTimeout(t._clickTimeout),t._clickTimeout=void 0,t._map&&(t._clicked&&t.options.setViewAfterClick?t._setView():(t._clicked=true,t._updateButton(),t._map.on("layeradd",t._onLayerAdd,t),t._checkGeolocation().then((function(e){t._geolocation=true,t._onLocationFound(e.coords),t.options.setViewAfterClick&&t._setView(),t._watchGeolocation(),t._checkClickResult()})).catch((function(){t._geolocation=false,t._checkClickResult()})),t._checkOrientation().then((function(){t._orientation=true,t._watchOrientation(),t._checkClickResult()})).catch((function(){t._orientation=false,t._checkClickResult()}))))}),this.options.clickTimeoutDelay);return[2]}))}))},_checkClickResult:function(){this._updateButton(),this.options.afterClick&&void 0!==this._geolocation&&void 0!==this._orientation&&this.options.afterClick({geolocation:this._geolocation,orientation:this._orientation}),false===this._geolocation&&false===this._orientation&&(this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0)},_checkGeolocation:function(){return"object"==typeof navigator&&"geolocation"in navigator&&"function"==typeof navigator.geolocation.getCurrentPosition&&"function"==typeof navigator.geolocation.watchPosition?new Promise((function(t,e){navigator.geolocation.getCurrentPosition(t,e,{maximumAge:0,enableHighAccuracy:true})})):Promise.reject()},_checkOrientation:function(){return("ondeviceorientationabsolute"in window||"ondeviceorientation"in window)&&DeviceOrientationEvent?"function"!=typeof DeviceOrientationEvent.requestPermission?Promise.resolve():DeviceOrientationEvent.requestPermission().then((function(t){return"granted"===t||Promise.reject()})):Promise.reject()},_watchGeolocation:function(){this._map.locate({watch:true,enableHighAccuracy:true}),this._map.on("locationfound",this._onLocationFound,this),this._map.on("zoomstart",this._onZoomStart,this),this._map.on("zoomend",this._onZoomEnd,this)},_unwatchGeolocation:function(){this._map.stopLocate(),this._map.off("locationfound",this._onLocationFound,this),this._map.off("zoomstart",this._onZoomStart,this),this._map.off("zoomend",this._onZoomEnd,this),this._circle&&(this._map.removeLayer(this._circle),this._circle=void 0),this._marker&&(this._map.removeLayer(this._marker),this._marker=void 0),this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0},_watchOrientation:function(){t.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){t.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(t){this._latitude&&t.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*t.latitude)&&this._longitude&&t.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*t.longitude)&&this._accuracy&&t.accuracy&&Math.round(100*this._accuracy)===Math.round(100*t.accuracy)||(this._latitude=t.latitude,this._longitude=t.longitude,this._accuracy=t.accuracy,this._updateMarker())},_onOrientation:function(t){var e;e=t.webkitCompassHeading||360-t.alpha,this._angle&&Math.abs(e-this._angle)<this.options.minAngleChange||(this._angle=e,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(t){this.options.afterMarkerAdd&&t.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var e=void 0;if(this._geolocation&&this._orientation&&this._angle)e="iconOrientation";else{if(!this._geolocation)return;e="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=t.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===e?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=t.marker([this._latitude,this._longitude],{icon:this.options[e]}),this._marker.icon_name=e,this._marker.addTo(this._map))}}});return t.control.simpleLocate=function(t){return new e(t)},e}));var earthRadius=6371008.8;var factors={centimeters:earthRadius*100,centimetres:earthRadius*100,degrees:earthRadius/111325,feet:earthRadius*3.28084,inches:earthRadius*39.37,kilometers:earthRadius/1e3,kilometres:earthRadius/1e3,meters:earthRadius,metres:earthRadius,miles:earthRadius/1609.344,millimeters:earthRadius*1e3,millimetres:earthRadius*1e3,nauticalmiles:earthRadius/1852,radians:1,yards:earthRadius*1.0936};function feature(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function point(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!isNumber(t[0])||!isNumber(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return feature(r,e,i)}function featureCollection(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function radiansToLength(t,e){if(e===void 0){e="kilometers"}var i=factors[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function degreesToRadians(t){var e=t%360;return e*Math.PI/180}function isNumber(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function coordEach(t,e,i){if(t===null)return;var r,a,n,s,o,c,l,d=0,u=0,p,f=t.type,h=f==="FeatureCollection",m=f==="Feature",b=h?t.features.length:1;for(var v=0;v<b;v++){l=h?t.features[v].geometry:m?t.geometry:t;p=l?l.type==="GeometryCollection":false;o=p?l.geometries.length:1;for(var g=0;g<o;g++){var w=0;var k=0;s=p?l.geometries[g]:l;if(s===null)continue;c=s.coordinates;var y=s.type;d=0;switch(y){case null:break;case"Point":if(e(c,u,v,w,k)===false)return false;u++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],u,v,w,k)===false)return false;u++;if(y==="MultiPoint")w++}if(y==="LineString")w++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(a=0;a<c[r].length-d;a++){if(e(c[r][a],u,v,w,k)===false)return false;u++}if(y==="MultiLineString")w++;if(y==="Polygon")k++}if(y==="Polygon")w++;break;case"MultiPolygon":for(r=0;r<c.length;r++){k=0;for(a=0;a<c[r].length;a++){for(n=0;n<c[r][a].length-d;n++){if(e(c[r][a][n],u,v,w,k)===false)return false;u++}k++}w++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(coordEach(s.geometries[r],e)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function featureEach(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function explode(t){var e=[];if(t.type==="FeatureCollection"){featureEach(t,(function(t){coordEach(t,(function(i){e.push(point(i,t.properties))}))}))}else{coordEach(t,(function(i){e.push(point(i,t.properties))}))}return featureCollection(e)}function bbox(t){var e=[Infinity,Infinity,-Infinity,-Infinity];coordEach(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}bbox["default"]=bbox;function center(t,e){if(e===void 0){e={}}var i=bbox(t);var r=(i[0]+i[2])/2;var a=(i[1]+i[3])/2;return point([r,a],e.properties,e)}function clone(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return cloneFeature(t);case"FeatureCollection":return cloneFeatureCollection(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return cloneGeometry(t);default:throw new Error("unknown GeoJSON type")}}function cloneFeature(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=cloneProperties(t.properties);e.geometry=cloneGeometry(t.geometry);return e}function cloneProperties(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=cloneProperties(r)}}else{e[i]=r}}));return e}function cloneFeatureCollection(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return cloneFeature(t)}));return e}function cloneGeometry(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return cloneGeometry(t)}));return e}e.coordinates=deepSlice(t.coordinates);return e}function deepSlice(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return deepSlice(t)}))}function getCoord(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function getGeom(t){if(t.type==="Feature"){return t.geometry}return t}function distance(t,e,i){if(i===void 0){i={}}var r=getCoord(t);var a=getCoord(e);var n=degreesToRadians(a[1]-r[1]);var s=degreesToRadians(a[0]-r[0]);var o=degreesToRadians(r[1]);var c=degreesToRadians(a[1]);var l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(o)*Math.cos(c);return radiansToLength(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function nearestPoint(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var a=0;featureEach(e,(function(e,i){var n=distance(t,e);if(n<r){a=i;r=n}}));i=clone(e.features[a]);i.properties.featureIndex=a;i.properties.distanceToPoint=r;return i}function booleanPointInPolygon(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=getCoord(t);var a=getGeom(e);var n=a.type;var s=e.bbox;var o=a.coordinates;if(s&&inBBox(r,s)===false){return false}if(n==="Polygon"){o=[o]}var c=false;for(var l=0;l<o.length&&!c;l++){if(inRing(r,o[l][0],i.ignoreBoundary)){var d=false;var u=1;while(u<o[l].length&&!d){if(inRing(r,o[l][u],!i.ignoreBoundary)){d=true}u++}if(!d){c=true}}}return c}function inRing(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var a=0,n=e.length-1;a<e.length;n=a++){var s=e[a][0];var o=e[a][1];var c=e[n][0];var l=e[n][1];var d=t[1]*(s-c)+o*(c-t[0])+l*(t[0]-s)===0&&(s-t[0])*(c-t[0])<=0&&(o-t[1])*(l-t[1])<=0;if(d){return!i}var u=o>t[1]!==l>t[1]&&t[0]<(c-s)*(t[1]-o)/(l-o)+s;if(u){r=!r}}return r}function inBBox(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function pointOnFeature(t){var e=normalize(t);var i=center(e);var r=false;var a=0;while(!r&&a<e.features.length){var n=e.features[a].geometry;var s,o,c,l,d,u,p;var f=false;if(n.type==="Point"){if(i.geometry.coordinates[0]===n.coordinates[0]&&i.geometry.coordinates[1]===n.coordinates[1]){r=true}}else if(n.type==="MultiPoint"){var h=false;p=0;while(!h&&p<n.coordinates.length){if(i.geometry.coordinates[0]===n.coordinates[p][0]&&i.geometry.coordinates[1]===n.coordinates[p][1]){r=true;h=true}p++}}else if(n.type==="LineString"){p=0;while(!f&&p<n.coordinates.length-1){s=i.geometry.coordinates[0];o=i.geometry.coordinates[1];c=n.coordinates[p][0];l=n.coordinates[p][1];d=n.coordinates[p+1][0];u=n.coordinates[p+1][1];if(pointOnSegment(s,o,c,l,d,u)){f=true;r=true}p++}}else if(n.type==="MultiLineString"){var m=0;while(m<n.coordinates.length){f=false;p=0;var b=n.coordinates[m];while(!f&&p<b.length-1){s=i.geometry.coordinates[0];o=i.geometry.coordinates[1];c=b[p][0];l=b[p][1];d=b[p+1][0];u=b[p+1][1];if(pointOnSegment(s,o,c,l,d,u)){f=true;r=true}p++}m++}}else if(n.type==="Polygon"||n.type==="MultiPolygon"){if(booleanPointInPolygon(i,n)){r=true}}a++}if(r){return i}else{var v=featureCollection([]);for(a=0;a<e.features.length;a++){v.features=v.features.concat(explode(e.features[a]).features)}return point(nearestPoint(i,v).geometry.coordinates)}}function normalize(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return featureCollection([feature(t)])}return featureCollection([t])}return t}function pointOnSegment(t,e,i,r,a,n){var s=Math.sqrt((a-i)*(a-i)+(n-r)*(n-r));var o=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((a-t)*(a-t)+(n-e)*(n-e));return s===o+c}(function(){var t=L.Polyline.prototype.onAdd,e=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var a={onAdd:function(e){t.call(this,e);this._textRedraw()},onRemove:function(t){t=t||this._map;if(t&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);e.call(this,t)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var t=this._text,e=this._textOptions;if(t){this.setText(null).setText(t,e)}},setText:function(t,e){this._text=t;this._textOptions=e;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};e=L.Util.extend(i,e);if(!t){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}t=t.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var a=this._renderer._container;this._path.setAttribute("id",r);if(e.repeat){if(e.repeat!=true&&e.repeat>=1){t=t.padStart(e.repeat," ")}var n=L.SVG.create("text");for(var s in e.attributes)n.setAttribute(s,e.attributes[s]);n.appendChild(document.createTextNode(t));a.appendChild(n);var o=n.getComputedTextLength();a.removeChild(n);t=new Array(Math.ceil(isNaN(this._path.getTotalLength()/o)?0:this._path.getTotalLength()/o)).join(t)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=e.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var s in e.attributes)c.setAttribute(s,e.attributes[s]);l.appendChild(document.createTextNode(t));c.appendChild(l);this._textNode=c;if(e.below){a.insertBefore(c,a.firstChild)}else{a.appendChild(c)}if(e.center){var u=c.getComputedTextLength();var p=this._path.getTotalLength();c.setAttribute("dx",p/2-u/2)}if(e.orientation){var f=0;switch(e.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=e.orientation}var h=c.getBBox().x+c.getBBox().width/2;var m=c.getBBox().y+c.getBBox().height/2;c.setAttribute("transform","rotate("+f+" "+h+" "+m+")")}if(this.options.interactive){if(L.Browser.svg||!L.Browser.vml){l.setAttribute("class","leaflet-interactive")}var b=["click","dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"];for(var v=0;v<b.length;v++){L.DomEvent.on(c,b[v],this.fire,this)}}return this}};L.Polyline.include(a);L.LayerGroup.include({setText:function(t,e){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(t,e)}}return this}})})();var grwMapCss=function(){return'@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}@-moz-document url-prefix(){.leaflet-simple-locate .fa,.leaflet-simple-locate .fab,.leaflet-simple-locate .far,.leaflet-simple-locate .fas{margin-top:0.05rem;margin-bottom:-0.05rem}}.leaflet-simple-locate{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;width:2.5rem;height:2.5rem;padding:0;margin:0;font-size:1.375rem;color:rgba(var(--primary-rgb), 1);background-color:rgba(255, 255, 255, 1) !important;border:0.125rem solid rgba(var(--primary-rgb), 1) !important;border-radius:2.5rem;-webkit-box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;box-shadow:rgba(0, 0, 0, 0.33) 0 0.125rem 0.375rem;cursor:pointer;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;text-size-adjust:none;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;-ms-text-size-adjust:none;-khtml-text-size-adjust:none}.leaflet-simple-locate:active{color:white;background-color:rgba(var(--primary-rgb), 1) !important;border-color:white !important}.leaflet-simple-locate:active svg{fill:white}.leaflet-simple-locate:focus{-webkit-box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);box-shadow:0 0 0 0.25rem rgba(var(--primary-rgb), 0.25)}.leaflet-simple-locate:focus-visible{border:0.125rem solid rgba(0, 0, 0, 1)}.leaflet-simple-locate svg{fill:rgba(var(--primary-rgb), 1);width:1.375rem;height:1.375rem}.leaflet-simple-locate.button-locate{position:absolute;margin:0 !important;left:0.5rem;top:calc(var(--vh, 1vh) * 50);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.leaflet-simple-locate-icon{fill:rgba(var(--primary-rgb), 1);pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-icon stop{stop-color:rgba(var(--primary-rgb), 1)}.leaflet-simple-locate-icon .orientation{-webkit-transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)));transform:rotate(calc(-1 * var(--leaflet-simple-locate-orientation, 0deg)))}.leaflet-simple-locate-circle{display:var(--leaflet-simple-locate-circle-display);fill:rgba(var(--primary-rgb), 1);fill-opacity:0.1;stroke:rgba(var(--primary-rgb), 1);stroke-width:1;stroke-opacity:0.3;pointer-events:none !important;cursor:-webkit-grab;cursor:grab}.leaflet-simple-locate-orientation{-webkit-transform:rotate(var(--leaflet-simple-locate-orientation, 0deg));transform:rotate(var(--leaflet-simple-locate-orientation, 0deg))}#leaflet-simple-locate-icon-spot{pointer-events:auto;cursor:pointer}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:100%}.trek-map-and-elevation{height:calc(100% - var(--elevation-height))}.common-map{height:100%}#elevation{position:relative;background-color:#ffffff}.elevation-control .background{border-radius:0px}.custom-theme.elevation-control .axis text{fill:var(--color-on-surface)}.custom-theme.elevation-control .axis line,.custom-theme.elevation-control .axis path{stroke:var(--color-on-surface)}.custom-theme.elevation-control .mouse-focus-label-rect{fill:var(--color-primary-container);stroke:var(--color-on-primary-container)}.custom-theme.elevation-control .mouse-focus-label-text{fill:var(--color-on-primary-container)}.custom-theme.elevation-control .background{background-color:var(--color-background)}.custom-theme.elevation-control .mouse-focus-line{stroke:var(--color-on-surface)}.use-theme-color.elevation-control .area path.altitude,.use-theme-color .legend-altitude rect.area{fill:var(--color-primary-app);stroke:var(--color-trek-line)}.custom-theme.height-focus.circle-lower{fill:#ffffff;stroke:var(--color-on-surface)}.custom-theme.elevation-polyline{stroke:var(--color-trek-line)}.custom-theme.height-focus.line,.custom-theme.height-focus-label{display:none}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon,.outdoor-site-marker-cluster-group-icon{background-color:var(--color-clusters);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--color-on-primary);font-size:16px;height:100%;width:100%}.trek-marker,.step-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker,.departure-marker,.arrival-marker{width:100%;height:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .step-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-44deg);transform:rotate(-44deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.trek-marker .outdoor-site-marker-container img,.trek-marker .outdoor-site-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.step-marker .outdoor-site-marker-container img,.step-marker .outdoor-site-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-content-marker .outdoor-site-marker-container img,.touristic-content-marker .outdoor-site-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.touristic-event-marker .outdoor-site-marker-container img,.touristic-event-marker .outdoor-site-marker-container .step-number,.outdoor-site-marker .trek-marker-container img,.outdoor-site-marker .trek-marker-container .step-number,.outdoor-site-marker .step-marker-container img,.outdoor-site-marker .step-marker-container .step-number,.outdoor-site-marker .touristic-content-marker-container img,.outdoor-site-marker .touristic-content-marker-container .step-number,.outdoor-site-marker .touristic-event-marker-container img,.outdoor-site-marker .touristic-event-marker-container .step-number,.outdoor-site-marker .outdoor-site-marker-container img,.outdoor-site-marker .outdoor-site-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container img,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container img,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container img,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container img,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container img,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container img,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container img,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container img,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container img,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.departure-marker .outdoor-site-marker-container img,.departure-marker .outdoor-site-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number,.arrival-marker .outdoor-site-marker-container img,.arrival-marker .outdoor-site-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(44deg);transform:rotate(44deg);position:absolute;z-index:20;width:var(--main-marker-icon-width) !important}.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{-webkit-transform:rotate(-42deg);transform:rotate(-42deg)}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.trek-marker .outdoor-site-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.step-marker .outdoor-site-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-content-marker .outdoor-site-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.touristic-event-marker .outdoor-site-marker-container,.outdoor-site-marker .trek-marker-container,.outdoor-site-marker .touristic-content-marker-container,.outdoor-site-marker .touristic-event-marker-container,.outdoor-site-marker .outdoor-site-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.departure-marker .outdoor-site-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container,.arrival-marker .outdoor-site-marker-container{background-color:var(--color-markers)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.outdoor-site-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-outdoor-site-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-markers)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker,.selected-outdoor-site-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-trek-marker .outdoor-site-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-step-marker .outdoor-site-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-content-marker .outdoor-site-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.selected-touristic-event-marker .outdoor-site-marker-container,.selected-outdoor-site-marker .trek-marker-container,.selected-outdoor-site-marker .step-marker-container,.selected-outdoor-site-marker .touristic-content-marker-container,.selected-outdoor-site-marker .touristic-event-marker-container,.selected-outdoor-site-marker .outdoor-site-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-trek-marker .outdoor-site-marker-container .trek-marker,.selected-trek-marker .outdoor-site-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-step-marker .outdoor-site-marker-container .trek-marker,.selected-step-marker .outdoor-site-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-content-marker .outdoor-site-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .outdoor-site-marker-container .trek-marker,.selected-touristic-event-marker .outdoor-site-marker-container .step-number,.selected-outdoor-site-marker .trek-marker-container .trek-marker,.selected-outdoor-site-marker .trek-marker-container .step-number,.selected-outdoor-site-marker .step-marker-container .trek-marker,.selected-outdoor-site-marker .step-marker-container .step-number,.selected-outdoor-site-marker .touristic-content-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-content-marker-container .step-number,.selected-outdoor-site-marker .touristic-event-marker-container .trek-marker,.selected-outdoor-site-marker .touristic-event-marker-container .step-number,.selected-outdoor-site-marker .outdoor-site-marker-container .trek-marker,.selected-outdoor-site-marker .outdoor-site-marker-container .step-number{width:100% !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.outdoor-site-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img,.outdoor-site-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.trek-departure-popup .outdoor-site-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-content-coordinates-popup .outdoor-site-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .outdoor-site-name,.outdoor-site-coordinates-popup .trek-name,.outdoor-site-coordinates-popup .touristic-content-name,.outdoor-site-coordinates-popup .touristic-event-name,.outdoor-site-coordinates-popup .outdoor-site-name{color:var(--color-primary-app);font-weight:700;font-size:16px;line-height:24px;padding:12px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.trek-departure-popup .outdoor-site-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-content-coordinates-popup .outdoor-site-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .outdoor-site-button,.outdoor-site-coordinates-popup .trek-button,.outdoor-site-coordinates-popup .touristic-content-button,.outdoor-site-coordinates-popup .touristic-event-button,.outdoor-site-coordinates-popup .outdoor-site-button{margin:0px 8px 16px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:1px solid var(--color-on-primary-container);background-color:var(--color-background);color:var(--color-on-primary-container);padding:12px 24px;border-radius:var(--border-radius, 8px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.trek-departure-popup .trek-button:hover,.trek-departure-popup .touristic-content-button:hover,.trek-departure-popup .touristic-event-button:hover,.trek-departure-popup .outdoor-site-button:hover,.touristic-content-coordinates-popup .trek-button:hover,.touristic-content-coordinates-popup .touristic-content-button:hover,.touristic-content-coordinates-popup .touristic-event-button:hover,.touristic-content-coordinates-popup .outdoor-site-button:hover,.touristic-event-coordinates-popup .trek-button:hover,.touristic-event-coordinates-popup .touristic-content-button:hover,.touristic-event-coordinates-popup .touristic-event-button:hover,.touristic-event-coordinates-popup .outdoor-site-button:hover,.outdoor-site-coordinates-popup .trek-button:hover,.outdoor-site-coordinates-popup .touristic-content-button:hover,.outdoor-site-coordinates-popup .touristic-event-button:hover,.outdoor-site-coordinates-popup .outdoor-site-button:hover{background-color:var(--color-primary-container)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.poi-tooltip .signage-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.information-desks-tooltip .signage-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.sensitive-area-tooltip .signage-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-content-tooltip .signage-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.touristic-event-tooltip .signage-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name,.parking-tooltip .signage-name,.signage-tootltip .poi-name,.signage-tootltip .information-desks-name,.signage-tootltip .sensitive-area-name,.signage-tootltip .touristic-content-name,.signage-tootltip .touristic-event-name,.signage-tootltip .parking-name,.signage-tootltip .signage-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-marker,.signage-marker{background-color:var(--color-markers);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img,.outdoor-site-marker img,.signage-marker img{width:var(--common-marker-icon-width) !important;height:auto}.signage-marker{overflow:hidden;border-radius:0%}.signage-marker img{width:30% !important;margin-right:8px}.signage-marker .signage-name{color:white;white-space:nowrap;max-width:50%}.parking-marker{width:100%;height:100%}.parking-marker img{width:100% !important;height:auto}.point-reference-icon{color:var(--reference-point-color);background-color:var(--reference-point-background-color);border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-tip{background-color:var(--color-background)}.leaflet-popup-content{width:221px;margin:0}.leaflet-simple-locate svg{--primary-rgb:00, 00, 00}.leaflet-simple-locate-icon{--primary-rgb:25, 135, 84}.leaflet-simple-locate-orientation{--primary-rgb:25, 135, 84 !important}.leaflet-simple-locate.button-locate{--primary-rgb:25, 135, 84;margin:10px 0px 0px 10px !important;position:relative;-webkit-transform:none;transform:none;top:auto;left:auto;width:34px;height:34px;border-radius:4px;border:2px solid rgba(0, 0, 0, 0.2) !important;-webkit-box-shadow:none;box-shadow:none}.leaflet-interactive{cursor:-webkit-grab;cursor:grab}.cursor-pointer{cursor:pointer}.grw-elevation-visibility-button-container{z-index:4000;position:absolute;left:10px;bottom:36px}.leaflet-simple-locate-icon{fill:#1e90ff}.layer-loader-container{width:100%;height:100%;background-color:rgba(255, 255, 255, 0.8);position:absolute;z-index:8000;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.layer-loader-container .layer-loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var GrwMap=function(){function t(t){registerInstance(this,t);this.trekCardPress=createEvent(this,"trekCardPress",7);this.touristicContentCardPress=createEvent(this,"touristicContentCardPress",7);this.touristicEventCardPress=createEvent(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=createEvent(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=createEvent(this,"outdoorCourseCardPress",7);this.maxZoom=19;this.mapIsReady=false;this.customLayersRefreshInterval=0;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorMarkers=null;this.colorClusters=null;this.colorOutdoorArea="#ffb700";this.tilesMaxZoomOffline=16;this.grwApp=false;this.mainMarkerSize=32;this.selectedMainMarkerSize=48;this.mainClusterSize=48;this.commonMarkerSize=48;this.departureArrivalMarkerSize=14;this.pointReferenceMarkerSize=24;this.elevationHeight=280;this.mobileElevationHeight=280;this.largeViewSize=1024;this.elevationDefaultState="visible";this.isLargeView=false;this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.arrowRepeat=20;this.userLayersState={};this.tileLayer=[];this.customLayers={};this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.addTreksController=null;this.addTouristicContentsController=null;this.addTouristicEventsController=null;this.addOutdoorSitesController=null;this.addSelectedCurrentTrekController=null;this.showTrekLineController=null;this.viewportState={};this.hasScrolled=false;this.fitBoundsQueued=false}t.prototype.componentDidUpdate=function(){if(this.map){this.map.invalidateSize();if(this.fitBoundsQueued&&this.bounds){this.map.fitBounds(this.bounds);this.fitBoundsQueued=false}}};t.prototype.onCenterOnMap=function(t){this.map.setView(new L$1.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){this.viewportState.steps=t.detail;if(this.hasScrolled&&this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){this.viewportState.description=t.detail;if(this.hasScrolled&&this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){this.viewportState.parking=t.detail;if(this.hasScrolled&&this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){this.viewportState.informationPlaces=t.detail;if(this.hasScrolled&&this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){this.viewportState.sensitiveArea=t.detail;if(this.hasScrolled&&this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){this.viewportState.pois=t.detail;if(this.hasScrolled&&this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer,!state.currentPois||state.currentPois.length===0)}};t.prototype.touristicContentsIsInViewport=function(t){this.viewportState.touristicContents=t.detail;if(this.hasScrolled&&this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer,!state.trekTouristicContents||state.trekTouristicContents.length===0)}};t.prototype.touristicEventsIsInViewport=function(t){this.viewportState.touristicEvents=t.detail;if(this.hasScrolled&&this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer,!state.trekTouristicEvents||state.trekTouristicEvents.length===0)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onDetailScrolled=function(){if(!this.hasScrolled){this.hasScrolled=true;this.applyCachedViewportState()}};t.prototype.onCardTrekMouseOver=function(t){if(!state.parentTrek&&(!state.selectedTrekId||state.selectedTrekId!==t.detail)){state.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(state.parentTrek){this.stepPopupIsOpen=false;state.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&state.selectedTrekId){this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){state.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){state.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){state.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentWillLoad=function(){if(!state.language){state.language="fr"}if(!state.languages){state.languages=["fr"]}};t.prototype.componentDidLoad=function(){var t=this;this.map=L$1.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});this.map.on("overlayadd",(function(e){var i=e.layer;var r=Object.values(t.customLayers).includes(i);if(r){t.refreshSingleLayer(i)}}));var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,a){t.tileLayer.push({key:"".concat(e[a]),value:bundleExports.tileLayerOffline(i,{maxZoom:t.maxZoom,attribution:"".concat(r[a]&&r[a]!==""?r[a].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=L$1.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}L$1.control.zoom({zoomInTitle:translate[state.language].zoomIn,zoomOutTitle:translate[state.language].zoomOut}).addTo(this.map);L$1.control.scale({metric:true,imperial:false}).addTo(this.map);L$1.Control.Contract=L$1.Control.extend({onAdd:function(){var e=L$1.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(L$1.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};i.title=translate[state.language].contract;return e}});L$1.control.contract=function(t){return new L$1.Control.Contract(t)};L$1.control.contract({position:"topleft"}).addTo(this.map);new L$1.Control.SimpleLocate({position:"topleft",className:"button-locate",title:translate[state.language].locate}).addTo(this.map);if(state.currentTrek){this.addTrek()}else if(state.currentTreks){this.addTreks()}else if(state.currentTouristicContent){this.addTouristicContent()}else if(state.currentTouristicEvent){this.addTouristicEvent()}else if(state.currentOutdoorSite){this.addOutdoorSite()}else if(state.currentOutdoorCourse){this.addOutdoorCourse()}else if(state.touristicContents){this.addTouristicContents()}else if(state.touristicEvents){this.addTouristicEvents()}else if(state.outdoorSites){this.addOutdoorSites()}onChange("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));onChange("currentPois",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentPois();return[2]}))}))}));onChange("trekTouristicContents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicContents();return[2]}))}))}));onChange("trekTouristicEvents",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){this.setCurrentTouristicEvents();return[2]}))}))}));onChange("currentOutdoorSites",(function(){if(state.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));onChange("currentTrek",(function(){if(state.currentTrek){t.removeTreks();t.addTrek()}else if(state.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}t.updateCustomLayersVisibility()}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(state.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));onChange("currentOutdoorSite",(function(){if(state.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));onChange("currentTouristicContent",(function(){if(t.grwApp){if(state.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(state.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(state.currentTrek){t.removeTouristicContent();t.addTrek()}else if(state.currentTreks){t.removeTouristicContent();t.addTreks()}}}));onChange("currentTouristicEvent",(function(){if(t.grwApp){if(state.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(state.currentTreks){t.removeTouristicEvent();t.addTreks()}}}));onChange("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(state.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));onChange("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(state.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(state.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}));onChange("mode",(function(){t.updateCustomLayersVisibility()}));this.addCustomLayers();if(this.customLayersRefreshInterval>0){this.refreshIntervalId=window.setInterval((function(){t.refreshCustomLayers()}),this.customLayersRefreshInterval*60*1e3)}};t.prototype.disconnectedCallback=function(){if(this.refreshIntervalId){window.clearInterval(this.refreshIntervalId)}};t.prototype.addCustomLayers=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f;var h=this;return __generator(this,(function(m){switch(m.label){case 0:if(this.customWmsUrl){t=this.customWmsUrl.split(",");e=this.customWmsLayers?this.customWmsLayers.split(","):[];i=this.customWmsName?this.customWmsName.split(","):[];r=this.customWmsAttribution?this.customWmsAttribution.split(","):[];t.forEach((function(t,a){var n=e[a]||"";var s=i[a]||"WMS Layer ".concat(a+1);var o=r[a]||"";try{var c=L$1.tileLayer.wms(t.trim(),{layers:n.trim(),format:"image/png",transparent:true,maxZoom:h.maxZoom,version:"1.3.0",attribution:o.trim()});h.customLayers[s.trim()]=c}catch(t){console.error("Error adding WMS layer:",t)}}))}if(this.customTileUrl){a=this.customTileUrl.split(",");n=this.customTileName?this.customTileName.split(","):[];s=this.customTileAttribution?this.customTileAttribution.split(","):[];a.forEach((function(t,e){var i=n[e]||"Tile Layer ".concat(e+1);var r=s[e]||"";try{var a=L$1.tileLayer(t.trim(),{maxZoom:h.maxZoom,attribution:r.trim()});a._originalUrl=t.trim();h.customLayers[i.trim()]=a}catch(t){console.error("Error adding custom tile layer:",t)}}))}if(!this.customGeojsonUrl)return[3,4];o=this.customGeojsonUrl.split(",");c=this.customGeojsonName?this.customGeojsonName.split(","):[];l=this.customGeojsonColor?this.customGeojsonColor.split(","):[];d=this.customGeojsonWeight?this.customGeojsonWeight.split(","):[];u=function(t){var e,i,r,a,n,s,u,f;return __generator(this,(function(m){switch(m.label){case 0:e=o[t].trim();i=c[t]||"GeoJSON Layer ".concat(t+1);r=l[t]||"#3388ff";a=d[t]?parseInt(d[t],10):3;m.label=1;case 1:m.trys.push([1,4,,5]);return[4,fetch(e,{cache:"no-store"})];case 2:n=m.sent();if(!n.ok){throw new Error("HTTP error! status: ".concat(n.status))}return[4,n.json()];case 3:s=m.sent();u=L$1.geoJSON(s,{style:function(t){var e=(t===null||t===void 0?void 0:t.properties)||{};var i=e.stroke||e.color||r;var n=e["stroke-width"]||e.weight||a;var s=e["stroke-opacity"]||e.opacity||1;var o=e.fill||e.fillColor||i;var c=e["fill-opacity"]||e.fillOpacity||.2;return{color:i,weight:n,opacity:s,fillColor:o,fillOpacity:c}},pointToLayer:function(t,e){var i=(t===null||t===void 0?void 0:t.properties)||{};var a=i.icon||i["marker-symbol"];var n=i.name||i.title||"";var s=i.description||i.desc||"";var o;if(a){var c=a.startsWith("http")||a.startsWith("/")||a.startsWith("assets/");var l=h.commonMarkerSize;if(c){var d=L$1.icon({iconUrl:a,iconSize:[l,l],iconAnchor:[l/2,l]});o=L$1.marker(e,{icon:d})}else{var u=i["marker-color"]||i.backgroundColor||"transparent";var p=i["marker-stroke"]||i.borderColor||(u!=="transparent"?"#ffffff":"transparent");var f=i["marker-stroke-width"]||(u!=="transparent"?2:0);var m=i["marker-radius"]||"50%";var b=L$1.divIcon({html:'<div style="font-size: '.concat(l*.6,"px; display: flex; align-items: center; justify-content: center; width: ").concat(l,"px; height: ").concat(l,"px; background-color: ").concat(u,"; border: ").concat(f,"px solid ").concat(p,"; border-radius: ").concat(m,'; box-sizing: border-box;">').concat(a,"</div>"),className:"",iconSize:[l,l],iconAnchor:[l/2,l]});o=L$1.marker(e,{icon:b})}}else{var v=i.stroke||i.color||r;o=L$1.circleMarker(e,{radius:8,fillColor:v,color:"#fff",weight:2,opacity:1,fillOpacity:.8})}if(n||s){var g='<div class="trek-departure-popup" style="font-family: var(--font-family, sans-serif);">';if(i.image){var w=i.image;g+='<img src="'.concat(w,'" style="width: 100%; height: auto; border-top-left-radius: var(--border-radius, 8px); border-top-right-radius: var(--border-radius, 8px); max-height: 120px; object-fit: cover;" />')}if(n){g+='<div class="trek-name" style="padding: 12px 12px 4px 12px; margin: 0; color: var(--color-primary-app);">'.concat(n,"</div>")}if(s){g+='<div style="font-size: 12px; color: var(--color-on-surface-variant, #49454e); padding: '.concat(n?"0px 12px 12px 12px":"12px",'; line-height: 1.4; word-break: break-word;">').concat(s,"</div>")}g+="</div>";o.bindPopup(g,{closeButton:false})}return o}});u._customUrl=e;p.customLayers[i.trim()]=u;return[3,5];case 4:f=m.sent();console.error("Error loading GeoJSON from ".concat(e,":"),f);return[3,5];case 5:return[2]}}))};p=this;f=0;m.label=1;case 1:if(!(f<o.length))return[3,4];return[5,u(f)];case 2:m.sent();m.label=3;case 3:f++;return[3,1];case 4:this.updateCustomLayersVisibility();return[2]}}))}))};t.prototype.refreshCustomLayers=function(){var t=this;Object.keys(this.customLayers).forEach((function(e){var i=t.customLayers[e];if(t.map.hasLayer(i)){t.refreshSingleLayer(i)}}))};t.prototype.refreshSingleLayer=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,i,a,n,s;return __generator(this,(function(o){switch(o.label){case 0:if(!(t instanceof L$1.TileLayer.WMS))return[3,1];t.setParams({_t:Date.now()});return[3,8];case 1:if(!(t instanceof L$1.TileLayer))return[3,2];e=t._originalUrl;if(e){i=e.includes("?")?"&":"?";t.setUrl("".concat(e).concat(i,"_t=").concat(Date.now()))}else{t.redraw()}return[3,8];case 2:if(!(t instanceof L$1.GeoJSON))return[3,8];r=t._customUrl;if(!r)return[3,8];o.label=3;case 3:o.trys.push([3,7,,8]);i=r.includes("?")?"&":"?";return[4,fetch("".concat(r).concat(i,"_t=").concat(Date.now()),{cache:"no-store"})];case 4:a=o.sent();if(!a.ok)return[3,6];return[4,a.json()];case 5:n=o.sent();t.clearLayers();t.addData(n);o.label=6;case 6:return[3,8];case 7:s=o.sent();console.error("Error refreshing GeoJSON layer:",s);return[3,8];case 8:return[2]}}))}))};t.prototype.updateCustomLayersVisibility=function(){var t=this;var e=!this.grwApp||state.mode==="treks"&&!!state.currentTrek;if(e&&Object.keys(this.customLayers).length>0&&!this.layersControl){var i={};this.tileLayer.forEach((function(t){i[t.key]=t.value}));this.layersControl=L$1.control.layers(i,{},{collapsed:true}).addTo(this.map)}Object.keys(this.customLayers).forEach((function(i){var r=t.customLayers[i];if(e){if(!t.map.hasLayer(r)){r.addTo(t.map)}if(t.layersControl){var a=t.layersControl._layers.some((function(t){return t.layer===r}));if(!a){t.layersControl.addOverlay(r,i)}}}else{if(t.map.hasLayer(r)){t.map.removeLayer(r)}if(t.layersControl){t.layersControl.removeLayer(r)}}}));if(e&&Object.keys(this.customLayers).length>0){this.handleLayersControlEvent()}};t.prototype.handleLayerVisibility=function(t,e,i){if(i===void 0){i=false}if(t&&!this.map.hasLayer(e)){e.addTo(this.map);this.layerDataIsLoading=i;forceUpdate(this.hostElement)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;if(t===void 0){t=false}return __generator(this,(function(p){switch(p.label){case 0:(e=this.addTreksController)===null||e===void 0?void 0:e.abort();this.addTreksController=new AbortController;r=this.addTreksController.signal;state.treksWithinBounds=state.currentTreks;a=[];n={type:"FeatureCollection",features:[]};if(state.currentTreks){s=function(t){a.push(t.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=state.practices.find((function(e){return e.id===t.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentTreks;o<c.length;o++){l=c[o];s(l)}}if(!!this.treksLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"practice")];case 1:d=p.sent();if(r.aborted){return[2]}this.treksLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:d[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(d[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:u.mainMarkerSize,iconAnchor:[u.mainMarkerSize/2,u.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(u,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image-popup";n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){u.hideTrekLine();u.showTrekLine(t.properties.id);u.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:u.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);p.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){var t;(t=this.addTreksController)===null||t===void 0?void 0:t.abort();if(this.treksLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(state.currentTreks&&!state.currentMapBounds||state.currentTreks&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.treksWithinBounds=state.currentTreks.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(state.currentTouristicContents&&!state.currentMapBounds||state.currentTouristicContents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicContentsWithinBounds=state.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(state.currentTouristicEvents&&!state.currentMapBounds||state.currentTouristicEvents&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.touristicEventsWithinBounds=state.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(L$1.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(state.currentOutdoorSites&&!state.currentMapBounds||state.currentOutdoorSites&&state.currentMapBounds&&state.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){state.outdoorSitesWithinBounds=state.currentOutdoorSites.filter((function(e){var i=pointOnFeature(e.geometry).geometry.coordinates;return t.map.getBounds().contains(L$1.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A;var _=this;return __generator(this,(function(L){switch(L.label){case 0:return[4,getDataInStore("treks",state.currentTrek.id)];case 1:e=L.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;state.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:state.currentTrek.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(i,{style:function(){return{color:"transparent"}},onEachFeature:function(t,e){e.setText(">",{repeat:_.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(state.currentTrek.parking_location){r=getAssetPath("".concat(Build.isDev?"/":"","assets/parking.svg"));a={type:"Feature",properties:{name:state.currentTrek.advised_parking},geometry:{type:"Point",coordinates:state.currentTrek.parking_location}};this.currentParkingLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:_.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0){n={type:"FeatureCollection",features:[]};for(s=0,o=state.currentSensitiveAreas;s<o.length;s++){c=o[s];n.features.push({type:"Feature",properties:{name:c.name},geometry:c.geometry})}this.currentSensitiveAreasLayer=L$1.geoJSON(n,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:_.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(state.currentTrek)];case 2:L.sent();return[4,this.addCurrentPois()];case 3:L.sent();return[4,this.addCurrentSignages()];case 4:L.sent();return[4,this.addCurrentTouristicContents()];case 5:L.sent();return[4,this.addCurrentTouristicEvents()];case 6:L.sent();if(state.currentTrek.points_reference){l={type:"FeatureCollection",features:[]};l.features.push({type:"Feature",properties:{},geometry:state.currentTrek.points_reference});d=0;this.currentReferencePointsLayer=L$1.geoJSON(l,{pointToLayer:function(t,e){d+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(d,"</div>"),className:"",iconSize:_.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&state.parentTrekId&&state.parentTrek&&state.currentTrek.id===state.parentTrekId){u={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){p=function(e){u.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=state.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(t){return t.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(f=0,h=state.currentTrekSteps;f<h.length;f++){m=h[f];p(m)}}b=0;this.currentStepsLayer=L$1.geoJSON(u,{pointToLayer:function(t,e){b+=1;return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(b,"</div></div></div>"),className:"",iconSize:_.mainMarkerSize,iconAnchor:[_.mainMarkerSize/2,_.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(_,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;a.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";a.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){_.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}v={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};L$1.registerLocale("fr",v);L$1.setLocale("fr");g=state.currentTrek.geometry.coordinates.map((function(t){return t[2]})).filter((function(t){return t!==undefined&&t!==null}));w={yAxisMin:g.length>0?Math.min.apply(Math,g)*.75:0,yAxisMax:g.length>0?Math.max.apply(Math,g)*1.25:0};k=Object.assign({elevationDiv:"#elevation-container",theme:"custom-theme use-theme-color",height:this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight,distanceMarkers:{distance:false,direction:false},summary:"inline",legend:false,downloadLink:false,autofitBounds:false,ruler:false,waypoints:false,almostOver:false,dragging:false},w);this.elevationControl=L$1.control.elevation(k).addTo(this.map);y=JSON.stringify({name:"".concat(state.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:state.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(y);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";forceUpdate(this.hostElement);x={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:state.currentTrek.geometry.coordinates[state.currentTrek.geometry.coordinates.length-1]},properties:null}]};A=0;this.departureArrivalLayer=L$1.geoJSON(x,{pointToLayer:function(t,e){A+=1;return L$1.marker(e,{icon:L$1.divIcon({html:'<div part="'.concat(A===1?"departure-marker":"arrival-marker",'" class="').concat(A===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:_.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=L$1.latLngBounds(state.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){_.fitBoundsQueued=true;!_.mapIsReady&&(_.mapIsReady=!_.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;return __generator(this,(function(s){switch(s.label){case 0:i={};r=0;s.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];a=i;n=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:a[n]=s.sent();s.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s;return __generator(this,(function(o){switch(o.label){case 0:if(!!Capacitor.isNativePlatform())return[3,5];return[4,checkFileInStore(t)];case 1:i=o.sent();if(!i)return[3,3];n=(a=window.URL).createObjectURL;return[4,getFileInStore(t)];case 2:r=n.apply(a,[o.sent().data]);return[3,4];case 3:r=t?t:null;o.label=4;case 4:e=r;return[3,7];case 5:return[4,Filesystem.getUri({path:t,directory:Directory.Data})];case 6:s=o.sent();if(s){e=Capacitor.convertFileSrc(s.uri)}o.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:a={type:"FeatureCollection",features:[]};if(state.currentTreks){n=state.currentTreks.find((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=state.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(t){return t.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedCurrentTrek();(r=this.addSelectedCurrentTrekController)===null||r===void 0?void 0:r.abort();this.addSelectedCurrentTrekController=new AbortController;s=this.addSelectedCurrentTrekController.signal;state.selectedTrekId=t;return[4,this.getIcons(a,"practice")];case 1:o=l.sent();if(s.aborted){return[2]}this.selectedCurrentTrekLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:o[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:c.selectedMainMarkerSize,iconAnchor:[c.selectedMainMarkerSize/2,c.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(c,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.src=r;n.part="trek-image";a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-button";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!c.trekPopupIsOpen){state.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){c.trekPopupIsOpen=Boolean(state.selectedTrekId)}));e.on("popupclose",(function(){if(state.selectedTrekId){c.trekPopupIsOpen=false;state.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){var t;(t=this.addSelectedCurrentTrekController)===null||t===void 0?void 0:t.abort();state.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var a={type:"FeatureCollection",features:[]};if(state.currentTrekSteps){var n=state.currentTrekSteps.findIndex((function(e){return e.id===t}));a.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:state.currentTrekSteps[n].departure_geom},properties:{id:state.currentTrekSteps[n].id,name:state.currentTrekSteps[n].name,practice:(r=state.practices.find((function(t){return t.id===state.currentTrekSteps[n].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:state.currentTrekSteps[n].attachments&&state.currentTrekSteps[n].attachments.filter((function(t){return t.type==="image"})).length>0?state.currentTrekSteps[n].attachments[0].thumbnail!==""?state.currentTrekSteps[n].attachments[0].thumbnail:state.currentTrekSteps[n].attachments[0].url:null,index:n+1}})}this.removeSelectedCurrentStep();state.selectedStepId=t;this.selectedCurrentStepLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,a,n,s,o;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;a=L$1.DomUtil.create("div");a.part="trek-departure-popup";a.className="trek-departure-popup";if(r){n=L$1.DomUtil.create("img");n.part="trek-image";n.src=r;a.appendChild(n)}s=L$1.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";a.appendChild(s);o=L$1.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="trek-name";o.className="trek-button";o.onclick=function(){return c.trekCardPress.emit(t.properties.id)};a.appendChild(o);e.bindPopup(a,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){state.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(state.selectedStepId)}));e.on("popupclose",(function(){if(state.selectedStepId){i.stepPopupIsOpen=false;state.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(state.selectedStepId){state.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked;var r=t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId}));if(t.userLayersState[e.layerId]&&r.layer._layers&&Object.keys(r.layer._layers).length===0){t.layerDataIsLoading=true;forceUpdate(t.hostElement)}}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:this.removeSelectedCurrentTrek();(e=this.showTrekLineController)===null||e===void 0?void 0:e.abort();this.showTrekLineController=new AbortController;i=this.showTrekLineController.signal;return[4,getTrekGeometry(t)];case 1:r=s.sent();if(i.aborted){return[2]}a={type:"Feature",geometry:r.geometry,properties:{}};this.currentTrekLayer=L$1.geoJSON(a,{style:function(){return{color:n.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){var t;(t=this.showTrekLineController)===null||t===void 0?void 0:t.abort();if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(state.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicContent.geometry.coordinates},properties:{id:state.currentTouristicContent.id,name:state.currentTouristicContent.name,practice:state.touristicContentCategories.find((function(t){return t.id===state.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=r.sent();this.currentToutisticContentLayer=L$1.geoJSON(t,{pointToLayer:function(t,r){return L$1.marker(r,{icon:L$1.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([state.currentTouristicContent.geometry.coordinates[1],state.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l;var d=this;if(t===void 0){t=false}return __generator(this,(function(u){switch(u.label){case 0:(e=this.addTouristicContentsController)===null||e===void 0?void 0:e.abort();this.addTouristicContentsController=new AbortController;i=this.addTouristicContentsController.signal;state.touristicContentsWithinBounds=state.currentTouristicContents;r=[];a={type:"FeatureCollection",features:[]};if(state.currentTouristicContents){n=function(t){r.push(t.geometry.coordinates);a.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:state.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(s=0,o=state.currentTouristicContents;s<o.length;s++){c=o[s];n(c)}}if(!!this.toutisticContentsLayer)return[3,2];if(r.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(a,"practice")];case 1:l=u.sent();if(i.aborted){return[2]}this.toutisticContentsLayer=L$1.geoJSON(a,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:l[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(l[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:d.mainMarkerSize,iconAnchor:[d.mainMarkerSize/2,d.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;i.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return d.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){d.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:d.mainClusterSize})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(r.length>0){this.bounds=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(a);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);u.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){var t;(t=this.addTouristicContentsController)===null||t===void 0?void 0:t.abort();if(this.toutisticContentsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentTouristicEvent){e=state.touristicEventTypes.find((function(t){return t.id===state.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:state.currentTouristicEvent.geometry.coordinates},properties:{id:state.currentTouristicEvent.id,name:state.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentToutisticEventLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);a.label=2;case 2:this.map.setView([state.currentTouristicEvent.geometry.coordinates[1],state.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicContents){a=state.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicContentCategories.find((function(t){return t.id===a.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicContent();state.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:n=o.sent();this.selectedTouristicContentLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-content-name";a.className="touristic-content-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-content-button";n.className="touristic-content-button";n.onclick=function(){return s.touristicContentCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicContentPopupIsOpen){state.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){s.touristicContentPopupIsOpen=Boolean(state.selectedTouristicContentId)}));e.on("popupclose",(function(){if(state.selectedTouristicContentId){s.touristicContentPopupIsOpen=false;state.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){state.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;if(t===void 0){t=false}return __generator(this,(function(p){switch(p.label){case 0:(e=this.addTouristicEventsController)===null||e===void 0?void 0:e.abort();this.addTouristicEventsController=new AbortController;r=this.addTouristicEventsController.signal;state.touristicEventsWithinBounds=state.currentTouristicEvents;a=[];n={type:"FeatureCollection",features:[]};if(state.currentTouristicEvents){s=function(t){a.push(t.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=state.touristicEventTypes.find((function(e){return e.id===t.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentTouristicEvents;o<c.length;o++){l=c[o];s(l)}}if(!!this.touristicEventsLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"type")];case 1:d=p.sent();if(r.aborted){return[2]}this.touristicEventsLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:d[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(d[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:u.mainMarkerSize,iconAnchor:[u.mainMarkerSize/2,u.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return u.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){u.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:u.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(n);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);p.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){var t;(t=this.addTouristicEventsController)===null||t===void 0?void 0:t.abort();if(this.touristicEventsLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(){return __awaiter(this,arguments,void 0,(function(t){var e,i,r,a,n,s,o,c,l,d,u;var p=this;if(t===void 0){t=false}return __generator(this,(function(f){switch(f.label){case 0:(e=this.addOutdoorSitesController)===null||e===void 0?void 0:e.abort();this.addOutdoorSitesController=new AbortController;r=this.addOutdoorSitesController.signal;state.outdoorSitesWithinBounds=state.currentOutdoorSites;a=[];n={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){s=function(t){n.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(i=state.outdoorPractices.find((function(e){return e.id===t.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(t){return t.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(o=0,c=state.currentOutdoorSites;o<c.length;o++){l=c[o];s(l)}}if(!!this.outdoorSitesLayer)return[3,2];if(a.length>0&&!state.currentMapBounds||t){d=bbox(n);this.bounds=L$1.latLngBounds([d[1],d[0]],[d[3],d[2]])}else{if(state.currentMapBounds){this.bounds=state.currentMapBounds}}return[4,this.getIcons(n,"practice")];case 1:u=f.sent();if(r.aborted){return[2]}this.outdoorSitesLayer=L$1.geoJSON(n,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:u[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(u[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:p.mainMarkerSize,iconAnchor:[p.mainMarkerSize/2,p.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="outdoor-site-button";n.className="outdoor-site-button";n.onclick=function(){return p.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=L$1.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return L$1.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:p.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(a.length>0){this.bounds=L$1.latLngBounds(a.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(n);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);f.label=3;case 3:this.map.invalidateSize();this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){var t;(t=this.addOutdoorSitesController)===null||t===void 0?void 0:t.abort();if(this.outdoorSitesLayer){state.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorSite){e=state.outdoorPractices.find((function(t){return t.id===state.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:state.currentOutdoorSite.geometry,properties:{id:state.currentOutdoorSite.id,name:state.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=a.sent();this.currentOutdoorSiteLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);a.label=2;case 2:return[4,this.addCurrentInformationDesks(state.currentOutdoorSite)];case 3:a.sent();return[4,this.addCurrentPois()];case 4:a.sent();return[4,this.addCurrentTouristicContents()];case 5:a.sent();return[4,this.addCurrentTouristicEvents()];case 6:a.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:a.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:a.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s;var o=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=state.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorSites;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:s=c.sent();this.currentRelatedOutdoorSitesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s;var o=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(state.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=state.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(t){return t.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,a=state.currentRelatedOutdoorCourses;r<a.length;r++){n=a[r];i(n)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:s=c.sent();this.currentRelatedOutdoorCoursesLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:s[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',className:"",iconSize:o.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:o.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:r={type:"FeatureCollection",features:[]};if(state.touristicEvents){a=state.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:a.geometry.coordinates},properties:{id:a.id,name:a.name,category:(i=state.touristicEventTypes.find((function(t){return t.id===a.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:a.attachments&&a.attachments.filter((function(t){return t.type==="image"})).length>0?a.attachments[0].thumbnail!==""?a.attachments[0].thumbnail:a.attachments[0].url:null}})}this.removeSelectedTouristicEvent();state.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:n=o.sent();this.selectedTouristicEventLayer=L$1.geoJSON(r,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:n[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(n[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:s.selectedMainMarkerSize,iconAnchor:[s.selectedMainMarkerSize/2,s.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="touristic-event-name";a.className="touristic-event-name";i.appendChild(a);var n=L$1.DomUtil.create("button");n.innerHTML="Afficher le détail";n.part="touristic-event-button";n.className="touristic-event-button";n.onclick=function(){return s.touristicEventCardPress.emit(t.properties.id)};i.appendChild(n);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicEventPopupIsOpen){state.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){s.touristicEventPopupIsOpen=Boolean(state.selectedTouristicEventId)}));e.on("popupclose",(function(){if(state.selectedTouristicEventId){s.touristicEventPopupIsOpen=false;state.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){state.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:t={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){e=state.outdoorCourseTypes.find((function(t){return t.id===state.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:state.currentOutdoorCourse.geometry,properties:{id:state.currentOutdoorCourse.id,name:state.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=a.sent();this.currentOutdoorCourseLayer=L$1.geoJSON(t,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);a.label=2;case 2:return[4,this.addCurrentPois()];case 3:a.sent();return[4,this.addCurrentTouristicContents()];case 4:a.sent();return[4,this.addCurrentTouristicEvents()];case 5:a.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorSites){r=state.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=state.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();state.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:a=s.sent();this.selectedOutdoorSiteLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-site-name";a.className="outdoor-site-name";i.appendChild(a);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return n.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorSitePopupIsOpen){state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){n.outdoorSitePopupIsOpen=Boolean(state.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(state.selectedOutdoorSiteId){n.outdoorSitePopupIsOpen=false;state.selectedOutdoorSiteId=null;n.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){state.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(state.currentOutdoorCourse){r=state.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:pointOnFeature(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=state.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(t){return t.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();state.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:a=s.sent();this.selectedOutdoorCourseLayer=L$1.geoJSON(i,{pointToLayer:function(t,e){return L$1.marker(e,{zIndexOffset:4e6,icon:L$1.divIcon({html:a[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(a[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:n.selectedMainMarkerSize,iconAnchor:[n.selectedMainMarkerSize/2,n.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=L$1.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=L$1.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var a=L$1.DomUtil.create("div");a.innerHTML=t.properties.name;a.part="outdoor-course-name";a.className="outdoor-course-name";i.appendChild(a);var s=L$1.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-course-button";s.className="outdoor-course-button";s.onclick=function(){return n.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!n.outdoorCoursePopupIsOpen){state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){n.outdoorCoursePopupIsOpen=Boolean(state.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(state.selectedOutdoorCourseId){n.outdoorCoursePopupIsOpen=false;state.selectedOutdoorCourseId=null;n.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){state.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.poisData>0){t={type:"FeatureCollection",features:[]};this.currentPoisLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="poi-marker" class="poi-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});if(state.currentPois){this.setCurrentPois()}}return[2]}))}))};t.prototype.setCurrentPois=function(){var t;if(this.currentPoisLayer){if(state.currentPois){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=state.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.currentPois;r<a.length;r++){var n=a[r];i(n)}this.currentPoisLayer.clearLayers();this.currentPoisLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(s){if(state.currentSignages&&state.currentSignages.length>0){t=getAssetPath("".concat(Build.isDev?"/":"","assets/signage.svg"));e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentSignages;i<r.length;i++){a=r[i];e.features.push({type:"Feature",properties:{name:a.name},geometry:a.geometry})}this.currentSignagesLayer=L$1.geoJSON(e,{pointToLayer:function(e,i){return L$1.marker(i,{icon:L$1.divIcon({html:'<div part="signage-marker" class="signage-marker"><img part="signage-img" src='.concat(t,' /><div part="signage-name" class="signage-name">').concat(e.properties.name,"</div></div>"),className:"",iconSize:[n.commonMarkerSize*1.2,n.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicContentsData>0){t={type:"FeatureCollection",features:[]};this.currentToutisticContentsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.category_pictogram?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(t.properties.category_pictogram," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicContentCardPress.emit(t.properties.id)}}));i.on("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-content-tooltip";e.className="touristic-content-tooltip";var r=L$1.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicContents){this.setCurrentTouristicContents()}}return[2]}))}))};t.prototype.setCurrentTouristicContents=function(){var t;if(this.currentToutisticContentsLayer){if(state.trekTouristicContents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(t=state.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicContents;r<a.length;r++){var n=a[r];i(n)}this.currentToutisticContentsLayer.clearLayers();this.currentToutisticContentsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){if(state.touristicEventsData>0){t={type:"FeatureCollection",features:[]};this.currentTouristicEventsLayer=L$1.geoJSON(t,{pointToLayer:function(t,i){return L$1.marker(i,{icon:L$1.divIcon({html:t.properties.type_pictogram?'<div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(t.properties.type_pictogram," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:e.grwApp?"":"cursor-pointer",iconSize:e.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.on("click",(function(){if(!e.grwApp){e.touristicEventCardPress.emit(t.properties.id)}}));i.once("mouseover",(function(){var e=L$1.DomUtil.create("div");e.part="touristic-event-tooltip";e.className="touristic-event-tooltip";var r=L$1.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}});if(state.trekTouristicEvents){this.setCurrentTouristicEvents()}}return[2]}))}))};t.prototype.setCurrentTouristicEvents=function(){var t;if(this.currentTouristicEventsLayer){if(state.trekTouristicEvents){var e={type:"FeatureCollection",features:[]};var i=function(i){e.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(t=state.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(var r=0,a=state.trekTouristicEvents;r<a.length;r++){var n=a[r];i(n)}this.currentTouristicEventsLayer.clearLayers();this.currentTouristicEventsLayer.addData(e);this.layerDataIsLoading=false;forceUpdate(this.hostElement)}}};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n;var s=this;return __generator(this,(function(o){switch(o.label){case 0:if(!(state.currentInformationDesks&&state.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=state.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){a=r[i];if(a.latitude&&a.longitude){e.features.push({type:"Feature",properties:{name:a.name,type_pictogram:a.type.pictogram},geometry:{type:"Point",coordinates:[Number(a.longitude),Number(a.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:n=o.sent();this.currentInformationDesksLayer=L$1.geoJSON(e,{pointToLayer:function(t,e){return L$1.marker(e,{icon:L$1.divIcon({html:n[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(n[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=L$1.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=L$1.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});o.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[translate[state.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[translate[state.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[translate[state.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[translate[state.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[translate[state.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(state.poisData>0){e[translate[state.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){e[translate[state.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(state.touristicContentsData>0){e[translate[state.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(state.touristicEventsData>0){e[translate[state.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[translate[state.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[translate[state.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=L$1.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.applyCachedViewportState=function(){if(!this.layersControl)return;var t=[{key:"steps",layer:this.currentStepsLayer},{key:"description",layer:this.currentReferencePointsLayer},{key:"parking",layer:this.currentParkingLayer},{key:"sensitiveArea",layer:this.currentSensitiveAreasLayer},{key:"informationPlaces",layer:this.currentInformationDesksLayer},{key:"pois",layer:this.currentPoisLayer,loading:!state.currentPois||state.currentPois.length===0},{key:"touristicContents",layer:this.currentToutisticContentsLayer,loading:!state.trekTouristicContents||state.trekTouristicContents.length===0},{key:"touristicEvents",layer:this.currentTouristicEventsLayer,loading:!state.trekTouristicEvents||state.trekTouristicEvents.length===0}];for(var e=0,i=t;e<i.length;e++){var r=i[e],a=r.key,n=r.layer,s=r.loading;if(n&&this.viewportState[a]!==undefined){this.handleLayerVisibility(this.viewportState[a],n,s||false)}}};t.prototype.handleLayersOnRemove=function(){var t=this;this.viewportState={};this.hasScrolled=false;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentSignagesLayer){this.map.removeLayer(this.currentSignagesLayer);this.currentSignagesLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.onWindowResize=function(){this.handleView()};t.prototype.handleView=function(){var t=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=t;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}forceUpdate(this.hostElement)};t.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();forceUpdate(this.hostElement)};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/layers.svg"));var i=getAssetPath("".concat(Build.isDev?"/":"","assets/contract.svg"));return h(Host,{key:"6d1b42605e51d3cae5931fca0ff69c1dc20b9a7d",ref:function(e){return t.hostElement=e},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(i,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},h("div",{key:"59e68ac86598eff655b93d887657a988da374b65",id:"map",part:"map",class:(state.currentTouristicContent||state.currentTouristicEvent||state.currentOutdoorSite||state.currentOutdoorCourse)&&this.grwApp?"common-map":state.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":state.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}},this.layerDataIsLoading&&h("div",{key:"ff5bcd2b3b5378736da9985bcb399342f5f4853b",class:"layer-loader-container"},h("div",{key:"23981ef97e2126ea354883c09c1386ed3bddba0d",class:"layer-loader"})),state.currentTrek&&h("div",{key:"44414e84a8158b3443f0577b5abb43ab46713d27",class:"grw-elevation-visibility-button-container"},h("grw-fab",{key:"84281f6b748bbaa21c01812193a382a93ffd7e53",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return t.handleElevation()},icon:function(){return t.elevationControl&&t.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:translate[state.language].showElevation,hideTitle:translate[state.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&h("div",{key:"dd06f70274750517068d9d206cf2c04ceda4507c",part:"map-loader-container",class:"map-loader-container"},h("span",{key:"71d7662c959a6f0e88506d6fd5877b80e95c0174",part:"loader",class:"loader"})))};Object.defineProperty(t.prototype,"mapElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwMap.style=grwMapCss();var grwOfflineConfirmModalCss=function(){return":host{display:block}.modal-container{z-index:40000;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:var(--font-family);top:0px;left:0px;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.6)}.modal-container .modal-content-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;width:380px;height:120px;padding:16px;margin:0px 16px;background-color:var(--color-background);border-radius:var(--border-radius, 8px)}.modal-container .modal-message-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-container .modal-message-container .modal-loader{width:16px;height:16px;border:3px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite;margin-right:16px}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.modal-container .modal-buttons-container,.modal-container .modal-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin-top:16px}.modal-container .modal-buttons-container .modal-button,.modal-container .modal-button-container .modal-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;height:32px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-app);background-color:transparent;font-family:var(--font-family)}.modal-container .modal-button-container{-ms-flex-pack:end;justify-content:flex-end}"};var GrwOfflineConfirmModal=function(){function t(t){registerInstance(this,t);this.downloadPress=createEvent(this,"downloadPress",7);this.deletePress=createEvent(this,"deletePress",7);this.showOfflineModal=false;this.showConfirmModal=false;this.showLoaderModal=false;this.showSuccessModal=false;this.showErrorModal=false;this.showConfirmDeleteModal=false;this.showDeletingMessage=false;this.showDeleteSuccessMessage=false}t.prototype.onDownloadConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;this.showDeletingMessage=false;this.showConfirmDeleteModal=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true};t.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};t.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};t.prototype.onDeleteConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=false;this.showDeleteSuccessMessage=false;document.body.style.overflow="hidden";this.showOfflineModal=true;this.showConfirmModal=true;this.showConfirmDeleteModal=true};t.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};t.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};t.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};t.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};t.prototype.render=function(){var t=this;return h(Host,{key:"7306b7a65560fcb9c4088b7c3a9a2ee160dd3a0b"},this.showOfflineModal&&h("div",{key:"14e0880950476ecc6d884fdca71df39f29f918e4",class:"modal-container"},h("div",{key:"43bc502d63bf2a70a3ca5bc1507f93955dae406f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&h(Fragment,{key:"1f1f66df6b7cd679c047d628be3c0a1b44b508c8"},h("div",{key:"754600cafd576f889a663ec1559540f1ab7d4e10",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.downloadRouteQuestion:translate[state.language].offline.downloadOutdoorQuestion)),h("div",{key:"6c8b16285f711b6b950a0df205acdd6daf6b6a4d",class:"modal-buttons-container"},h("button",{key:"059d1cb25bcce42a1737b96607d60dcebd50a8a1",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"345f06cb86b5d4fa2677e828d34379dd6f65d38f",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDownloadModal()}},translate[state.language].offline.ok))),this.showConfirmDeleteModal&&h(Fragment,{key:"bbaf82b8f3ce83cc38394f5e9587ff7a3f90153e"},h("div",{key:"f64a7242bedeb2f5683f0d2f3348a2a723feac1d",class:"modal-message-container"},"".concat(this.mode==="treks"?translate[state.language].offline.deleteRouteQuestion:translate[state.language].offline.deleteRouteQuestion)),h("div",{key:"2127e7ea9f8f35baa54b57bf93ea04ee2ab81333",class:"modal-buttons-container"},h("button",{key:"276e45cfd48fb2f9cd492745f953fbc4353478f8",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.cancel),h("button",{key:"1f5c9d6eb92330e8f918b9e0418093141b2a3db4",part:"modal-button",class:"modal-button",onClick:function(){return t.handleOkDeleteModal()}},translate[state.language].offline.ok))),this.showLoaderModal&&h(Fragment,{key:"f089931324dec141dd6cf0885296ac127305c99c"},h("div",{key:"7ed4f98632d3fd859413f02adb588ca37da95e05",class:"modal-message-container"},h("div",{key:"8d4afc461bf6c3c6ea4bd4682cf6a8cf88404f7e",class:"modal-loader"}),this.showDeletingMessage?translate[state.language].offline.deleting:translate[state.language].offline.downloading)),this.showSuccessModal&&h(Fragment,{key:"9615a88d554a05dacf036998fcfb68261f29c0fe"},h("div",{key:"beb9348cc5fc4513e02a1f518152de8f132b54a6",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.offlineRouteDeleted:translate[state.language].offline.offlineOutdoorDeleted:this.mode==="treks"?translate[state.language].offline.routeAvailableOffline:translate[state.language].offline.outdoorAvailableOffline),h("div",{key:"045530fbea8ae990ed78c61a5c2b7cf2519d6bfc",class:"modal-button-container"},h("button",{key:"a75df76a487c0658ff9a3e10f07a35285d619685",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))),this.showErrorModal&&h(Fragment,{key:"2ab6733b150331690c42aaeb8a5c2a96d73657fa"},h("div",{key:"35b0edde0866fa2cbe4b3e6a147a2b8f323fa579",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?translate[state.language].offline.deleteRouteError:translate[state.language].offline.deleteOutdoorError:this.mode==="treks"?translate[state.language].offline.downloadRouteError:translate[state.language].offline.downloadOutdoorError),h("div",{key:"d1785cfe79fae56a8f6ed61b6c39aca80cea887c",class:"modal-button-container"},h("button",{key:"b3f3dc1440a637492bc5c4bcaf0a3e786692608d",part:"modal-button",class:"modal-button",onClick:function(){return t.handleCancelModal()}},translate[state.language].offline.ok))))))};return t}();GrwOfflineConfirmModal.style=grwOfflineConfirmModalCss();function Scrollbar(t){var e=t.swiper,i=t.extendParams,r=t.on,a=t.emit;var n=getDocument();var s=false;var o=null;var c=null;var l;var d;var u;var p;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,a=t.el;var n=e.params.scrollbar;var s=e.params.loop?e.progressLoop:e.progress;var c=d;var l=(u-d)*s;if(i){l=-l;if(l>0){c=d-l;l=0}else if(-l+d>u){c=u+l}}else if(l<0){c=d+l;l=0}else if(l+d>u){c=u-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(n.hide){clearTimeout(o);a.style.opacity=1;o=setTimeout((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}}function h(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;p=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){d=u*p}else{d=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(d,"px")}else{i.style.height="".concat(d,"px")}if(p>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function b(t){return e.isHorizontal()?t.clientX:t.clientY}function v(t){var i=e.scrollbar,r=e.rtlTranslate;var a=i.el;var n;n=(b(t)-elementOffset(a)[e.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(u-d);n=Math.max(Math.min(n,1),0);if(r){n=1-n}var s=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*n;e.updateProgress(s);e.setTranslate(s);e.updateActiveIndex();e.updateSlidesClasses()}function g(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var o=r.el,d=r.dragEl;s=true;l=t.target===d?b(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();n.style.transitionDuration="100ms";d.style.transitionDuration="100ms";v(t);clearTimeout(c);o.style.transitionDuration="0ms";if(i.hide){o.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}a("scrollbarDragStart",t)}function w(t){var i=e.scrollbar,r=e.wrapperEl;var n=i.el,o=i.dragEl;if(!s)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;v(t);r.style.transitionDuration="0ms";n.style.transitionDuration="0ms";o.style.transitionDuration="0ms";a("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,n=e.wrapperEl;var o=r.el;if(!s)return;s=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";n.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=nextTick((function(){o.style.opacity=0;o.style.transitionDuration="400ms"}),1e3)}a("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function y(t){var i=e.scrollbar,r=e.params;var a=i.el;if(!a)return;var s=a;var o=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!s)return;var l=t==="on"?"addEventListener":"removeEventListener";s[l]("pointerdown",g,o);n[l]("pointermove",w,o);n[l]("pointerup",k,c)}function x(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;y("off")}function _(){var t=e.scrollbar,i=e.el;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var a;if(typeof r.el==="string"&&e.isElement){a=e.el.shadowRoot.querySelector(r.el)}if(!a&&typeof r.el==="string"){a=n.querySelectorAll(r.el)}else if(!a){a=r.el}if(e.params.uniqueNavElements&&typeof r.el==="string"&&a.length>1&&i.querySelectorAll(r.el).length===1){a=i.querySelector(r.el)}if(a.length>0)a=a[0];a.classList.add(e.isHorizontal()?r.horizontalClass:r.verticalClass);var s;if(a){s=a.querySelector(".".concat(e.params.scrollbar.dragClass));if(!s){s=createElement("div",e.params.scrollbar.dragClass);a.append(s)}}Object.assign(t,{el:a,dragEl:s});if(r.draggable){x()}if(a){a.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function L(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){z()}else{_();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(t,e){h(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){L()}));var C=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}_();m();f()};var z=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}L()};Object.assign(e.scrollbar,{enable:C,disable:z,updateSize:m,setTranslate:f,init:_,destroy:L})}var WarningIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z"/></svg>';var grwOutdoorCourseDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;overflow-wrap:break-word}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .current-advice-container{margin-bottom:12px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}'};var observerOptions$2={threshold:0};var GrwOutdoorCourseDetail=function(){function t(t){registerInstance(this,t);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.grwApp=false;this.displayFullscreen=false;this.offline=false}t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),observerOptions$2);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),observerOptions$2);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),observerOptions$2);this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}onChange("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorCourse){this.currentOutdoorCourse=state.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var i=state.outdoorCourseTypes&&this.currentOutdoorCourse&&state.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var r=state.cities&&state.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorCourse&&state.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var s=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"de4a3fb086ae56fdf282be6639bc152684786ba4",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&h("div",{key:"74d112f1ad1aaa488b96d82ca8179b2b766ab86d",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},h("div",{key:"720bf3def2c342bcfe5fc9e4dd36366a97c81389",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"cd3d17b4ee01d1f77d2597f2cdb2d4f7c4fef269",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"be9d53286f3e283533629ef210f1dad0c14872f1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},r),h("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),h("div",{key:"9e44f9b45cd8cf95caaeb4835e96b123d664728c"},h("div",{key:"53dc119d4698668b01f16b295103154c25db28c5",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"86c4d6c2189ddc76903ab594fc007df800a30e84",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"635b7eaf08e3ac423509d26f6ccce64e118e6b4e",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"81602f0f206c9d668f4d5481a8771a71014d8d07",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),h("div",{key:"6fb7d72aa3c2cc46e051786c90f6791b641af1f7",part:"sub-container",class:"sub-container"},h("div",{key:"ffb05137813d26185b26a1b8b755542ead83514c",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"c99a27c6741dfa1f0323eaee0791f1ab3f96a318",part:"icon-label",class:"icon-label type"},i.pictogram&&h("img",{key:"dcce2bb22cf20ae86d649deacc67a1ee680f985e",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"d58ea3eea098cce7f31b244fb83184f0ce641db1",part:"label",class:"label"},i.name)),h("div",{key:"c5818aab071d0f55b70c5cfa4ca052fb7e661653",part:"icon-label",class:"icon-label duration"},h("span",{key:"ba7f57b331f40d5f41272a8c30e135bbd85dd53e",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"900a95c7999063d86c3fb6aade5d29efae2b34a7",part:"label",class:"label"},formatDuration(this.currentOutdoorCourse.duration))),h("div",{key:"294658e69896f9f267b9d10e133d4c51963741cb",part:"icon-label",class:"icon-label length"},h("span",{key:"3787b172941642316fd2598dc81e1b7b2a89a5d2",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"3bdcc19d957bb1a2690c3698368736c6947b76a5",part:"label",class:"label"},formatLength(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&h("div",{key:"5ef4b39a87956fb2e473c4dd477ffa792b4b8a4d",part:"icon-label",class:"icon-label ascent"},h("span",{key:"f9c47d879b0c1fd715427bce6ec5c19cbeefa4d7",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"5facbd60201aa18d8642ed9efbb2694151069357",part:"label",class:"label"},formatAscent(this.currentOutdoorCourse.max_elevation))),a&&s.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"45f2ea4c40d4851de8da601c0359a9151ad0b62c",part:"divider",class:"divider"}),h("div",{key:"44ceb38fd0d0a157f460adcb29da672389d1352b",part:"downloads-container",class:"downloads-container"},h("div",{key:"19fa7eab8d3a3cf84435fa8b2899071de8a98026",part:"download-title",class:"download-title"},translate[state.language].downloads),h("div",{key:"aeae3040f48438f28f2bc4a5af0b5f5635e2d6ed",part:"links-container",class:"links-container"},h("a",{key:"75d33aac1801e7befbb9737c76e8a9f1f4b6b5dc",href:"".concat(this.currentOutdoorCourse.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"a1315b4469712655b7aa5c598d132607ecc1af57",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"29c1190aff566bf0f4e30735bc8c822e074b7cc4",part:"label",class:"label"},"PDF")))),h("div",{key:"70c612f4ba07b202275b7133e1ead094a5bec925",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&h("div",{key:"6e7759cb4cb489cb3d935085df9b965f426784b5",part:"description-container",class:"description-container"},h("div",{key:"b0fc7be19f565fcfee78a3f8d739af80d2743b7e",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"60d460af1704eca6b018865d89615d91c538d365",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"1b841d4b7660e5a002548dd935c3eb9b0b6396e2",part:"departure-container",class:"departure-container"},h("div",{key:"b4f4f15a623ea34d6681c2c0794ddc6e1e4f9833",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"8fc874411d7226de3d891caaf1a4754e0d23cb18",part:"departure",innerHTML:r.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&h("div",{key:"6d55128d14eb7b6a64cdb194ff6ec3fbdd28d14d",part:"cities-container",class:"cities-container"},h("div",{key:"5620624c4331ee7bd5f4639f70d1dcabb1342916",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"7b2f2d1890c82c6b245d54fb8d6a3f7f11589172",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&h("div",{key:"764aca5816dabf72d6641bc0228a35625b60dea5"},h("div",{key:"fcdddf2db0381a2c6c3ad76df5ea77363b6c3ec0",part:"divider",class:"divider"}),h("div",{key:"68ae5da0347c924ed27f92870492e373ac5bee64",part:"advice-container",class:"advice-container"},h("div",{key:"107fba634800cab28a3da11de11e2f7074dee95d",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorCourse.advice&&h("div",{key:"cc4fdf59b3c9a2804751120114c950dec521c0a0",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"4e48eb3d6ce5cf546216296691abf864fd7e8c98",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"054191b070f46ac50205bee67da066994e2162af",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&h("div",{key:"d646f6a5a3aae9cb62f59b17da50772237871070"},h("div",{key:"7d462e8585214204b0475abd12f4dfe46e497429",part:"divider",class:"divider"}),h("div",{key:"941b9f090fe0a42903104e8e844dd06e3749ca42",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"e4ec4c4af8a173adb5f53868423a3e7b8c23eb91",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"5611c521c43c617d1a819c2eac1951f1d178eccc",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"0eb0872432c85f0eed7dc01b1c8e7711f05d5335"},h("div",{key:"8772302a21fdd4b5439530b92dfd844d46942e5c",part:"divider",class:"divider"}),h("div",{key:"dd4db42bfb4868a114fa802476dacf463c33dcc6",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"2deaca2a7c6e65718d163f9491f3142d15bae36f",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"95f0cfe7f48114189b896acaf15a94b684b4708c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"0cadff9089c970989d965f6d0ad3df37f0a1c37d",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),h("div",{key:"3938f896920176d5f6cf31e3e33821809f0cf517",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"6f74ed161c27fe505059ea18b7abf6acd04c0d4a"},h("div",{key:"ef40fb490ffe4b585e42be0de2629ef54029a8a2",part:"divider",class:"divider"}),h("div",{key:"1770ec488528f408f2647e0d229b443f69a1b4bc",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"0f0ca2c1dfc163e8b1647c4d6bc585d2449b4222",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"d3440f4c29d6e9815c27f666af059289579060c4",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"065b642e861c17ad3d8111c84b607aa399ec340c",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),h("div",{key:"d77cd6a581378a35e2f00653af9d9d41d03b61ae",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),state.currentPois&&state.currentPois.length>0&&h("div",{key:"0132851fdb60ae94f9c9e488cf32c85ff806e073"},h("div",{key:"745e53b9a5918d13f14d52af2923926dfbd204bb",part:"divider",class:"divider"}),h("div",{key:"2c1a7cf8e756492ed4c2c05d691d4ee78870936e",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"a20939460013a4fb57c9167dcdda0f1f699c72ed",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{key:"8984df9ada4afa24291c0ae34dbdd8de47c0f1ec",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"0cb808485a02af874a16e2ba59de447263f33189",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"8ffccb4eae4c4c0068e529315b2ba564eb8a2105",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"595379521647b327b370555534e06bbaad5d06fa"},h("div",{key:"0f48eece90e062a074b55001625f7827d45bb7c6",part:"divider",class:"divider"}),h("div",{key:"be9d42ae3b84aaa9169c5dc142e3091ea0d92581",part:"weather-container",class:"weather-container"},h("iframe",{key:"0ef8761a811aa9459fef1de6f98b8453652dd4c4",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&h("div",{key:"f1cb5b224791a2c89087717f65005caf12304ce1",part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}();GrwOutdoorCourseDetail.style=grwOutdoorCourseDetailCss();var GrwOutdoorCourseProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f;return __generator(this,(function(h){switch(h.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=h.sent();i=state;return[4,handleOfflineProperty("districts")];case 2:i.districts=h.sent();r=state;return[4,handleOfflineProperty("themes")];case 3:r.themes=h.sent();a=state;return[4,handleOfflineProperty("touristicContentCategories")];case 4:a.touristicContentCategories=h.sent();n=state;return[4,handleOfflineProperty("touristicEventTypes")];case 5:n.touristicEventTypes=h.sent();s=state;return[4,handleOfflineProperty("poiTypes")];case 6:s.poiTypes=h.sent();o=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 7:o.outdoorCourseTypes=h.sent();return[4,handleOfflineProperty("pois",["url"])];case 8:c=h.sent();l=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=l;return[4,handleOfflineProperty("touristicContents",["url"])];case 9:d=h.sent();u=d.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=u;return[4,handleOfflineProperty("touristicEvents",["url"])];case 10:p=h.sent();f=p.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=f;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 11:h.sent();state.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getTouristicContentsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearCourse(state.api,state.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(getOutdoorCourse(state.api,state.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2],c=t[3],l=t[4],d=t[5],u=t[6],p=t[7],f=t[8],h=t[9];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.themes=s.results}if(o){state.outdoorCourseTypes=o.results}if(c){state.trekTouristicContents=c.results}if(l){state.touristicContentCategories=l.results}if(d){state.trekTouristicEvents=d.results}if(u){state.touristicEventTypes=u.results}if(p){state.currentPois=p.results}if(f){state.poiTypes=f.results}state.currentOutdoorCourse=h;e=__spreadArray([],h.cities,true);if(state.cities){i=state.cities.map((function(t){return t.id}));e=e.filter((function(t){return t&&!i.includes(t)}))}if(!(e.length>0))return[3,4];t.label=1;case 1:t.trys.push([1,3,,4]);return[4,getCities(state.api,state.language,this.init,e).then((function(t){return t.json()}))];case 2:r=t.sent().results;if(r){state.cities=__spreadArray(__spreadArray([],state.cities,true),r,true)}return[3,4];case 3:a=t.sent();console.error("Failed to load cities",a);return[3,4];case 4:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"ec4361aeaa78afd9e4a5bb0154bd0e2d9d5da915"})};return t}();var EventIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M580-240q-42 0-71-29t-29-71q0-42 29-71t71-29q42 0 71 29t29 71q0 42-29 71t-71 29ZM200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"/></svg>';var AirIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M460-160q-50 0-85-35t-35-85h80q0 17 11.5 28.5T460-240q17 0 28.5-11.5T500-280q0-17-11.5-28.5T460-320H80v-80h380q50 0 85 35t35 85q0 50-35 85t-85 35ZM80-560v-80h540q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43h-80q0-59 40.5-99.5T620-840q59 0 99.5 40.5T760-700q0 59-40.5 99.5T620-560H80Zm660 320v-80q26 0 43-17t17-43q0-26-17-43t-43-17H80v-80h660q59 0 99.5 40.5T880-380q0 59-40.5 99.5T740-240Z"/></svg>';var ExploreIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m260-260 300-140 140-300-300 140-140 300Zm220-180q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520q17 0 28.5 11.5T520-480q0 17-11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DownloadForOfflineIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-280h400v-80H280v80Zm200-120 160-160-56-56-64 62v-166h-80v166l-64-62-56 56 160 160Zm0 320q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>';var DeleteIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"/></svg>';function getOutdoorSites(t,e,i,r,a,n,s,o,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));a&&(l+="&districts=".concat(a));n&&(l+="&structures=".concat(n));s&&(l+="&themes=".concat(s));o&&(l+="&portals=".concat(o));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind";return getAllPaginatedResults(l,c)}function getOutdoorSite(t,e,i,r){var a="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&published=true");a+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind,parents";return fetch(a,r)}function getOutdoorSiteTypes(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function getOutdoorPractices(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function getPoisNearSite(t,e,i,r){return getAllPaginatedResults("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function outdoorSiteIsAvailableOffline(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,getDataInStore("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}function getOutdoorRatings(t,e,i,r){return getAllPaginatedResults("".concat(t,"outdoor_rating/?language=").concat(e).concat(i?"&portals=".concat(i):"","&fields=id,name,scale"),r)}function getOutdoorRatingsScale(t,e,i){return getAllPaginatedResults("".concat(t,"outdoor_ratingscale/?language=").concat(e,"&fields=id,name"),i)}var grwOutdoorSiteDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{height:5px}.outdoor-site-options::-webkit-scrollbar-thumb{background:var(--color-primary-app);border-radius:8px}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.current-advice-container,.gear-container{margin-bottom:12px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}'};var observerOptions$1={threshold:0};var GrwOutdoorSiteDetail=function(){function t(t){registerInstance(this,t);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=createEvent(this,"sitesIsInViewport",7);this.coursesIsInViewport=createEvent(this,"coursesIsInViewport",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.isLargeView=false;this.weather=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.rounded=true;this.offline=false;this.displayFullscreen=false;this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.handleObservers=function(){var t=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),observerOptions$1);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),observerOptions$1);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),observerOptions$1);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),observerOptions$1);this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),observerOptions$1);this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),observerOptions$1);this.courseObserver.observe(this.coursesRef)}};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new Swiper(this.swiperRelatedOutdoorSitesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorSitesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperRelatedOutdoorCoursesRef&&!this.swiperRelatedOutdoorCourses){this.swiperRelatedOutdoorCourses=new Swiper(this.swiperRelatedOutdoorCoursesRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.relatedOutdoorCoursesSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}onChange("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentOutdoorSite){this.sources=state.sources.filter((function(t){return state.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=state.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,o,l;var d=this;return __generator(this,(function(u){switch(u.label){case 0:t=new AbortController;e=t.signal;i={cache:getCacheMode(),signal:e};if(!!state.outdoorSites)return[3,3];return[4,getOutdoorSites(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districtsFromProviders,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,i)];case 1:r=u.sent();a=state;return[4,r.json()];case 2:a.outdoorSites=u.sent().results;state.currentOutdoorSites=state.outdoorSites;u.label=3;case 3:return[4,getAllDataInStore("outdoorSites")];case 4:n=u.sent().filter((function(t){return t.offline===true}));s=state.outdoorSites;s=s.filter((function(t){return n.findIndex((function(e){return e.id===t.id}))===-1}));return[4,writeOrUpdateDataInStore("outdoorSites",s)];case 5:u.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:u.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:u.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 8:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorSiteTypes,imagesRegExp)];case 9:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorPractices,imagesRegExp)];case 10:u.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 11:u.sent();return[4,writeOrUpdateFilesInStore(this.currentOutdoorSite,imagesRegExp,true,["url"])];case 12:u.sent();return[4,writeOrUpdateDataInStore("cities",state.cities)];case 13:u.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 14:u.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 15:u.sent();return[4,writeOrUpdateDataInStore("outdoorSiteTypes",state.outdoorSiteTypes)];case 16:u.sent();return[4,writeOrUpdateDataInStore("outdoorPractices",state.outdoorPractices)];case 17:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatings",state.outdoorRatings)];case 18:u.sent();return[4,writeOrUpdateDataInStore("outdoorRatingsScale",state.outdoorRatingsScale)];case 19:u.sent();return[4,writeOrUpdateDataInStore("pois",state.currentPois)];case 20:u.sent();return[4,writeOrUpdateDataInStore("poiTypes",state.poiTypes)];case 21:u.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 22:u.sent();return[4,writeOrUpdateDataInStore("outdoorCourseTypes",state.outdoorCourseTypes)];case 23:u.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",state.touristicEventTypes)];case 24:u.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",state.touristicContentCategories)];case 25:u.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 26:u.sent();return[4,writeOrUpdateFilesInStore(state.currentPois,imagesRegExp,true,["url"])];case 27:u.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 28:u.sent();return[4,writeOrUpdateFilesInStore(state.outdoorCourseTypes,imagesRegExp,true)];case 29:u.sent();return[4,writeOrUpdateFilesInStore(state.touristicContentCategories,imagesRegExp,true)];case 30:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicContents,imagesRegExp,true,["url"])];case 31:u.sent();state.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",state.trekTouristicContents)];case 32:u.sent();return[4,writeOrUpdateFilesInStore(state.trekTouristicEvents,imagesRegExp,true,["url"])];case 33:u.sent();state.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",state.trekTouristicEvents)];case 34:u.sent();if(!(state.currentOutdoorSite.courses&&state.currentOutdoorSite.courses.length>0))return[3,38];o=0;u.label=35;case 35:if(!(o<state.currentOutdoorSite.courses.length))return[3,38];c=state.currentOutdoorSite.courses[o];return[4,this.downloadOutdoorCourse(c)];case 36:u.sent();u.label=37;case 37:o++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];o=0;u.label=39;case 39:if(!(o<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[o];return[4,this.downloadOutdoorSite(l)];case 40:u.sent();u.label=41;case 41:o++;return[3,39];case 42:return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:state.currentPois.map((function(t){return t.id})),touristicContents:state.trekTouristicContents.map((function(t){return t.id})),touristicEvents:state.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:u.sent();state.outdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;state.currentOutdoorSites.find((function(t){return t.id===d.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,c,d,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,22,,23]);e=new AbortController;i=e.signal;r={cache:getCacheMode(),signal:i};return[4,getOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=p.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:p.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:p.sent();return[4,getPoisNearSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=p.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:p.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:p.sent();return[4,getTouristicContentsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:s=p.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 8:p.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",s)];case 9:p.sent();return[4,getTouristicEventsNearOutdoorSite(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=p.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:p.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:p.sent();return[4,writeOrUpdateDataInStore("outdoorSites",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:p.sent();if(!(a.courses&&a.courses.length>0))return[3,17];c=0;p.label=14;case 14:if(!(c<a.courses.length))return[3,17];l=a.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:p.sent();p.label=16;case 16:c++;return[3,14];case 17:if(!(a.children&&a.children.length>0))return[3,21];c=0;p.label=18;case 18:if(!(c<a.children.length))return[3,21];d=a.children[c];return[4,this.downloadOutdoorSite(d)];case 19:p.sent();p.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:u=p.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:getCacheMode(),signal:i};return[4,getOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 1:a=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,a.geometry)];case 2:c.sent();return[4,writeOrUpdateFilesInStore(a,imagesRegExp,true,["url"])];case 3:c.sent();return[4,getPoisNearCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 4:n=c.sent().results;return[4,writeOrUpdateDataInStore("pois",n)];case 5:c.sent();return[4,writeOrUpdateFilesInStore(n,imagesRegExp,true,["url"])];case 6:c.sent();return[4,getTouristicContentsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 7:s=c.sent().results;return[4,writeOrUpdateFilesInStore(s,imagesRegExp,true,["url"])];case 8:c.sent();s.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",s)];case 9:c.sent();return[4,getTouristicEventsNearOutdoorCourse(state.api,state.language,t,r).then((function(t){return t.json()}))];case 10:o=c.sent().results;return[4,writeOrUpdateFilesInStore(o,imagesRegExp,true,["url"])];case 11:c.sent();o.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",o)];case 12:c.sent();return[4,writeOrUpdateDataInStore("outdoorCourses",[Object.assign(Object.assign({},a),{offline:true,pois:n.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:o.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);t=[];return[4,getDataInStore("outdoorSites",this.currentOutdoorSite.id)];case 1:e=a.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,writeOrUpdateDataInStore("outdoorSites",t)];case 2:a.sent();if(state.outdoorSites){delete state.outdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline;if(!state.currentOutdoorSites){state.currentOutdoorSites=state.outdoorSites}delete state.currentOutdoorSites.find((function(t){return t.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=a.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=[];if(state.outdoorSites){for(a=0,n=state.outdoorSites;a<n.length;a++){s=n[a];r.push(pointOnFeature(s.geometry).geometry.coordinates)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,a,n;return __generator(this,(function(s){switch(s.label){case 0:r=bundleExports.tileLayerOffline(t,{attribution:e});a=bbox(i);n=L$1.latLngBounds([a[1],a[0]],[a[3],a[2]]);return[4,writeOrUpdateTilesInStore(r,n,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:s.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var i=state.outdoorPractices&&this.currentOutdoorSite&&state.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var r=state.cities&&this.currentOutdoorSite&&state.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var a=state.outdoorRatings&&this.currentOutdoorSite&&state.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var n=a&&__spreadArray([],new Set(a.map((function(t){return t.scale}))),true);var s=n&&state.outdoorRatingsScale.filter((function(t){return n.includes(t.id)}));return h(Host,{key:"daf63b09060f1c3ffee0610d65b47985426aa085",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&h("div",{key:"bb2c6add2adfc3b5120749f65f3e91f695c0313c",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},h("div",{key:"f52c3d7d4f15b03f5b5795eab4a6860d12689370",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"2b19c9182485c1f97e0eea5622094731cd343da3",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"092740232bedeb497af16c237fa5761eeba01d0c",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(i){var r=[i.legend,i.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},r),h("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:t.offline&&i.thumbnail!==""?i.thumbnail:i.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:i.legend}))})):h("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),h("div",{key:"543f0c5412f8514ca34ac53c9652f171795f0eaa"},h("div",{key:"1033be1c24f54064f0b336463ccf0ad20d3e1472",part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"1c77534aad2c9242f54f74bfbc5bfb93d17e771f",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"05a2fca9418b94e3ae6c17877baa5094e0b067b7",part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),h("div",{key:"c7e518d4319c42d7179c04cfbcc40f7a4a744281",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),state.themes&&state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&h("div",{key:"b0c3ff08eacbe3da21374a40d935b93db098dae1",part:"themes-container",class:"themes-container"},state.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"9559d8ae731642a8f566821f13990612dc85c7e3",part:"sub-container",class:"sub-container"},h("div",{key:"69a1ce00a955f04ce321c9dad5130668fcc727a9",part:"icons-labels-container",class:"icons-labels-container"},i&&h("div",{key:"63a09dc8f6bbb97856078b0930c0ad0ef3992ee7",part:"icon-label",class:"icon-label practice"},i.pictogram&&h("img",{key:"af0508d2ff5543b1dc9863ef48998f91ab3289c3",part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{key:"e7c5329ece6f17ae2db06155c88bd6b5f9c98fe9",part:"label",class:"label"},i.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&h("div",{key:"0be0c4620a8bb5c3e2366741f0c0e57157933399",part:"row",class:"row"},h("span",{key:"a27402e456b33944f81e5ee5395cc993470de4ec",part:"icon",class:"icon",innerHTML:ExploreIcon}),h("span",{key:"ae31a51c4b9d6997fb3232a4908021e0a572cf44",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&h("div",{key:"e9feb615390c3049294c9a84fddb6116e0bf1699",part:"row",class:"row"},h("span",{key:"9d8bcb5614ad546e3666a632c609a33616db9abe",part:"icon",class:"icon",innerHTML:AirIcon}),h("span",{key:"b2d7fd249dfc3ec6863481842e7cba1f0f4f5ebb",part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return translate[state.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&h("div",{key:"56323ea809f5aa71e3597c305622c19277c36403",part:"row",class:"row"},h("span",{key:"8a9ec3f51605d7054d0933dcbdc3dc893a55dd87",part:"icon",class:"icon",innerHTML:EventIcon}),h("span",{key:"ebe5577f0cfb2f29843786fd04631cc18ebb3f81",part:"label",class:"label"},this.currentOutdoorSite.period)),a&&s.map((function(t){return h("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(a.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),h("div",{key:"ec701cc093883b296cdb3d76010b7fb3940e3416",part:"divider",class:"divider"}),h("div",{key:"39816f8e641d31cd2eed65e7916a9f542e5f5579",part:"downloads-container",class:"downloads-container"},h("div",{key:"a6ffb22721afb92bdea20b63a688b3392258c854",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"e9fe2c9db70ca37554eb944f6bcb510f636ce5bb",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"459c5c6a997abf24444f559da47279450f41357e",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"2ef0ce3382f67ad33c4fe7f4c1c6d64c822aa00a",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&h("button",{key:"dd8abe004f497960f88c25dc5473820115af6a17",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"5d0dccc989e6c964edf81dfef99891b7a44f7431",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"e3362dc01327f111543cf8125dd53ecf6515e53e",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"3103a2d617dd7002b5bbeced908249fe61f99ef1",part:"links-container",class:"links-container"},h("a",{key:"d049e58d9e4a6392d400f4655e3a97e5cca03858",href:"".concat(this.currentOutdoorSite.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"ed4b5b94c19162a9d403aa293b7d6f48015d9173",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"5245f08c8750e43e3ff42b0cf8a1e6d4e4d0c13e",part:"label",class:"label"},"PDF")))),h("div",{key:"c87e4cb40b366a398ef1bac0c9783f4748c2f476",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&h("div",{key:"f5a66875b0c73ea1ac974ce06e00b3ce08e34e98",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&h("div",{key:"b4b7d086c1a3faa719c7b505dbe8ad810eb3c252",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),h("div",{key:"6b3d2b7d8d8664bec32a0bde6e496aef806be190",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&h("div",{key:"5549e7fdab0a34487a149005ebc7cb1766a2968c",part:"description-container",class:"description-container"},h("div",{key:"fb6435da4831c4855e78a0db207291644a54c90d",part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},translate[state.language].description),h("div",{key:"b257d6e8c4d59b81713d4236766dd13b105e9faf",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"9af11de5832cbb5a9de7336e7b224c814ea2955d",part:"departure-container",class:"departure-container"},h("div",{key:"f55d578960f639ee36043e89af9e880701c3762f",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"695257f598a269e426b3d805b27bf2650c8e3464",part:"departure",innerHTML:r.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&h("div",{key:"50482fee5f5d5db97d49f5a5e943181c9fc066af",part:"cities-container",class:"cities-container"},h("div",{key:"68cf9d4f82c29818e5de7540b9a2516eb245fe0d",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"ace9056405d1702df74aeb74b2e4c1c69a1e8ab1",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),state.currentPois&&state.currentPois.length>0&&h("div",{key:"bc1a0777b7b6156d04a3b53550dbc9deb25ce81e"},h("div",{key:"fa0e3a0dfb3b30573e209b606963d94a7eecc3aa",part:"divider",class:"divider"}),h("div",{key:"fa0b709eb118212be94020f7c834a7e278d976cc",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"28ac4c2521d693f1759fd5f9532870e8391378ad",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.currentPois.length)),h("div",{key:"d99f1c6e37514721e5e0c0c5d4b215a7e9a7b1dc",part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{key:"a125ebd3d4e5aeea32f2d34257c31cc1297a5b36",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:t}))}))),h("div",{key:"27e7c7aff8060d6bee5118a6413c8fb9f5107fdd",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&h("div",{key:"10908dd1b443da27ec774bccaf29074b4b7e919b"},h("div",{key:"d51286b51fc00cb4b7b318239085baf6a4031fbf",part:"divider",class:"divider"}),h("div",{key:"31de07816cf4613bf07dee47d52e0665163a37f1",part:"advice-container",class:"advice-container"},h("div",{key:"5a28bbfbded18300aa39f01750a2eec9c3def340",part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},translate[state.language].recommendations),this.currentOutdoorSite.advice&&h("div",{key:"3cc88d8aea6e10f7de69765107a4a32cbbbc0fcb",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"16172cded72b330ea831a33e6ec93899ac79cac4",part:"icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"ca965945c04fbad0b832b84d3153a2ac4943b569",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&h("div",{key:"003f2284e433b5f3487fed41ed02891201bd4818"},h("div",{key:"16091a4de5dbd8e655512a482549dbaad486b509",part:"divider",class:"divider"}),h("div",{key:"abbd1afc83f24eb62e2f21633388eaa4f8fe0301",part:"accessibilities-container",class:"accessibilities-container"},h("div",{key:"3e1e472cb870ee66f39d714394abd2e44b818118",part:"accessibilites-title",class:"accessibilities-title"},translate[state.language].accessibility),h("div",{key:"ec6709cdb3c1b8274d0aaf3f5cdc3ecc576cadec",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),state.currentRelatedOutdoorSites&&state.currentRelatedOutdoorSites.length>0&&h("div",{key:"d0d4fd6a9ec97c3c33ae0440e944801c8f6953a3"},h("div",{key:"c661abd3bc54cd7568bd962abc885f5a7fc4899f",part:"divider",class:"divider"}),h("div",{key:"8769aa59927e595466bc28696eb0c2949b2195bd",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container",ref:function(e){return t.sitesRef=e}},h("div",{key:"6b5530ec49492c5c3538de29c0e9860e205d4878",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title"},translate[state.language].relatedOutdoorSites(state.currentRelatedOutdoorSites.length)),h("div",{key:"1a4859c9e33d655e67b7915f3347cd4f1fee0d4c",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},h("div",{key:"dd7c4b8c58d400e02f8696b1921cd24e13470479",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorSites.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-site-card",{exportparts:"related-outdoor-sites-card,related-outdoor-sites-img-container,swiper-related-outdoor-sites,swiper-wrapper,swiper-slide,related-outdoor-sites-img,default-related-outdoor-sites-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-sites-sub-container,related-outdoor-sites-sub-container,related-outdoor-sites-type-img,related-outdoor-sites-type-name,related-outdoor-sites-name,related-outdoor-sites-date-container,related-outdoor-sites-date,related-outdoor-sites-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),h("div",{key:"93d434e0466cb6aa3d6a3b9e5c307bf934dcc8c1",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),state.currentRelatedOutdoorCourses&&state.currentRelatedOutdoorCourses.length>0&&h("div",{key:"0303d0d42abcc9c54d550f824e3bd1c42b43ca90"},h("div",{key:"876c6637f4046b627d2aebbd5b53708d6588d29e",part:"divider",class:"divider"}),h("div",{key:"2083426d7e5000868d4556d06a4577b2f4a47c77",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container",ref:function(e){return t.coursesRef=e}},h("div",{key:"81da66eeddb9bbf8331eba7b9836d10c053dd4a8",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title"},translate[state.language].relatedOutdoorCourses(state.currentRelatedOutdoorCourses.length)),h("div",{key:"866e413a257e1667f98f0cb01bd3f48e6ebdd269",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},h("div",{key:"4abb1ce4c410c81b4f449d9a2bd88d7d18cf7eb5",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentRelatedOutdoorCourses.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-outdoor-course-card",{exportparts:"related-outdoor-courses-card,related-outdoor-courses-img-container,swiper-related-outdoor-courses,swiper-wrapper,swiper-slide,related-outdoor-courses-img,default-related-outdoor-courses-img,swiper-pagination,swiper-button-prev,swiper-button-next,related-outdoor-courses-sub-container,related-outdoor-courses-sub-container,related-outdoor-courses-type-img,related-outdoor-courses-type-name,related-outdoor-courses-name,related-outdoor-courses-date-container,related-outdoor-courses-date,related-outdoor-courses-more-detail-container,more-details-button",fontFamily:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),h("div",{key:"dde8798fd39562a58ddc542ad32cc16004e4809f",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&h("div",{key:"0ea40a0e4c01ef94751c6564e74bd1cedbdfbbb2"},h("div",{key:"2a1275197c5111d8e8cdc2d93b513ee4a714d418",part:"divider",class:"divider"}),h("div",{key:"6e4302f051f2ae1fb83428849db99c3d7e72c7fc",part:"information-desks-container",class:"information-desks-container",ref:function(e){return t.informationPlacesRef=e}},h("div",{key:"fb078f313eebb862e066271f526d163f7ff9fd6a",part:"information-desks-title",class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{key:"98d29e7f000d0350148914a1ab0aa31d9c76b57d",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"5c9f1818a1f1c785549c1329d620869bd66c451b",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).map((function(t){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:t}))}))),h("div",{key:"64650cd934f30581d6a731162d9311b56b6e380a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),state.trekTouristicContents&&state.trekTouristicContents.length>0&&h("div",{key:"bc024c94ba84d8770331bf7f85fee7bce8968ae3"},h("div",{key:"afe7c3cab2ab616a3c6156ce48758b358fd4072d",part:"divider",class:"divider"}),h("div",{key:"109bce7196acef4379048bd7683b12d580c25f89",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"b268cbd15dad64652128c0cea4088d513bdfb2a6",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.trekTouristicContents.length)),h("div",{key:"2f1807bef528855ec77b01e1d75fc8a41a48300c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{key:"2b093789aee912b3b67928cf2d08bcc056e4231c",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"7a3dbf08a785fed67c6b7d6c41e76337febcb58a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),state.trekTouristicEvents&&state.trekTouristicEvents.length>0&&h("div",{key:"87de809502242132d951c2012707e545c4d68784"},h("div",{key:"40cc823b1a333051c6aec904aa552f87d65c569e",part:"divider",class:"divider"}),h("div",{key:"5f57f56bf55e7fd6199cc86931cdc00a8cb286c3",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"548157d54118424770fa0a038a3d0279e565f5ad",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.trekTouristicEvents.length)),h("div",{key:"e4cc8569c3af1d16047660739fabf34ae3bd4939",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{key:"8add6a364adf7324edf51f9af1f54f8623cf5c5e",part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"5f76cd4185b43b3b192b1d6a112551258934c59a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&r&&!this.offline&&h("div",{key:"6c040869ea57eaaeed47ad0199175c8191f7dbf4"},h("div",{key:"70cbd3046f4c4a91f2b5e8a502b80d6a15e64f68",part:"divider",class:"divider"}),h("div",{key:"0c8e8eebef07bc4bf5b74aacd386b7e063292fb0",part:"weather-container",class:"weather-container"},h("iframe",{key:"a21c3a94e525e47d69af5613593f4ac6cfedbe7f",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(r.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&h("div",{key:"af00be86773aeed6e4c809982e9c523442fcced5"},h("div",{key:"3a76b8e48f5ec37175346fa65fd25034cadcca79",part:"divider",class:"divider"}),h("div",{key:"57d5f3d11d08acfd44c097906e2f13b399be44ec",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"99f6839173dab2dc418e79d5cfb2664b179a5a6d",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&h("div",{key:"de499d07a998cd0e10d30eeed6b2616a4e2330a4"},h("div",{key:"c72b131e968b687c14d200b9d71481d62fd64119",part:"divider",class:"divider"}),h("div",{key:"bc18b7753b2dbbf2004d238a575060c479b669c3",part:"source-container",class:"source-container"},h("div",{key:"b164573a925070110e59cdf3656759f8a64a116a",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"664ff0314de7fd6007751b4428cd249427998e73",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"5f4ec74c01cf10b9ef0d745f427dda9193df9b6d"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"9912fffc554699b6751b82cfba55591efbeaa00e",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"432799e5359adf2612040aa60b2940bfe028021b",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwOutdoorSiteDetail.style=grwOutdoorSiteDetailCss();var GrwOutdoorSiteProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_;return __generator(this,(function(L){switch(L.label){case 0:e=state;return[4,handleOfflineProperty("cities")];case 1:e.cities=L.sent();i=state;return[4,handleOfflineProperty("sources")];case 2:i.sources=L.sent();r=state;return[4,handleOfflineProperty("districts")];case 3:r.districts=L.sent();a=state;return[4,handleOfflineProperty("themes")];case 4:a.themes=L.sent();n=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=L.sent();s=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:s.outdoorPractices=L.sent();o=state;return[4,handleOfflineProperty("outdoorRatings")];case 7:o.outdoorRatings=L.sent();c=state;return[4,handleOfflineProperty("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=L.sent();l=state;return[4,handleOfflineProperty("touristicContentCategories")];case 9:l.touristicContentCategories=L.sent();d=state;return[4,handleOfflineProperty("touristicEventTypes")];case 10:d.touristicEventTypes=L.sent();u=state;return[4,handleOfflineProperty("poiTypes")];case 11:u.poiTypes=L.sent();p=state;return[4,handleOfflineProperty("outdoorCourseTypes")];case 12:p.outdoorCourseTypes=L.sent();return[4,handleOfflineProperty("informationDesks")];case 13:f=L.sent();h=f.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=h;return[4,handleOfflineProperty("pois",["url"])];case 14:m=L.sent();b=m.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=b;return[4,handleOfflineProperty("touristicContents",["url"])];case 15:v=L.sent();g=v.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=g;return[4,handleOfflineProperty("touristicEvents",["url"])];case 16:w=L.sent();k=w.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=k;return[4,handleOfflineProperty("outdoorSites",["url"])];case 17:y=L.sent();x=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorSites=x;return[4,handleOfflineProperty("outdoorCourses",["url"])];case 18:A=L.sent();_=A.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));state.currentRelatedOutdoorCourses=_;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 19:L.sent();state.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!state.sources?getSources(state.api,state.language,this.init):new Response("null"));e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorRatings?getOutdoorRatings(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorRatingsScale?getOutdoorRatingsScale(state.api,state.language,this.init):new Response("null"));e.push(getInformationsDesks(state.api,state.language,this.init));e.push(getTouristicContentsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicContentCategory(state.api,state.language,null,this.init));e.push(getTouristicEventsNearOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(getTouristicEventType(state.api,state.language,null,this.init));e.push(getPoisNearSite(state.api,state.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init));e.push(!state.outdoorCourseTypes?getOutdoorCourseTypes(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSite(state.api,state.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o,c,l,d;var u=this;var p=t[0],f=t[1],h=t[2],m=t[3],b=t[4],v=t[5],g=t[6],w=t[7],k=t[8],y=t[9],x=t[10],A=t[11],_=t[12],L=t[13],C=t[14],z=t[15];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(z&&z.children.length>0))return[3,2];e=[];e.push.apply(e,z.children);i=[];e.forEach((function(t){i.push(getOutdoorSite(state.api,state.language,t,u.init))}));r=state;return[4,Promise.all(__spreadArray([],i,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:r.currentRelatedOutdoorSites=t.sent();t.label=2;case 2:if(!(z&&z.courses.length>0))return[3,4];a=[];a.push.apply(a,z.courses);n=[];a.forEach((function(t){n.push(getOutdoorCourse(state.api,state.language,t,u.init))}));s=state;return[4,Promise.all(__spreadArray([],n,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:s.currentRelatedOutdoorCourses=t.sent();t.label=4;case 4:if(p){state.sources=p.results}if(f){state.districts=f.results}if(h){state.themes=h.results}if(m){state.outdoorSiteTypes=m.results}if(b){state.outdoorPractices=b.results}if(v){state.outdoorRatings=v.results}if(g){state.outdoorRatingsScale=g.results}if(w){state.currentInformationDesks=w.results}if(y){state.touristicContentCategories=y.results}if(k){state.trekTouristicContents=k.results}if(x){state.trekTouristicEvents=x.results}if(A){state.touristicEventTypes=A.results}if(_){state.currentPois=_.results}if(L){state.poiTypes=L.results}if(C){state.outdoorCourseTypes=C.results}state.currentOutdoorSite=z;o=__spreadArray([],z.cities,true);if(state.cities){c=state.cities.map((function(t){return t.id}));o=o.filter((function(t){return t&&!c.includes(t)}))}if(!(o.length>0))return[3,8];t.label=5;case 5:t.trys.push([5,7,,8]);return[4,getCities(state.api,state.language,this.init,o).then((function(t){return t.json()}))];case 6:l=t.sent().results;if(l){state.cities=__spreadArray(__spreadArray([],state.cities,true),l,true)}return[3,8];case 7:d=t.sent();console.error("Failed to load cities",d);return[3,8];case 8:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"91c32f48f6236291537777d4dac26c9517f4c590"})};return t}();var grwOutdoorSitesListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-outdoor-site-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwOutdoorSitesList=function(){function t(t){registerInstance(this,t);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,this.step),true)}onChange("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],state.currentOutdoorSites.slice(0,t.step),true)}}));onChange("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],state.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<state.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=state.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=state.outdoorSitesWithinBounds.length?state.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"570e403ff6dbfc2c1b894cae48df1b19ce348928",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.outdoorSitesWithinBounds&&h("div",{key:"d016205f78e04b75925d5bf7ba959979b0ea7c33",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(state.outdoorSitesWithinBounds.length," ").concat(state.outdoorSitesWithinBounds.length>1?translate[state.language].outdoorSites:translate[state.language].outdoorSite)),h("div",{key:"8cdcb2898c8782328266ab101168f298fa4fe65c",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return h("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"32e12286a63cf5dd67e2b735729f8e682d6bd93b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwOutdoorSitesList.style=grwOutdoorSitesListCss();var GrwOutdoorSitesProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n;return __generator(this,(function(s){switch(s.label){case 0:return[4,getAllDataInStore("outdoorSites")];case 1:t=s.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(!(t&&t.length>0))return[3,8];e=state;return[4,handleOfflineProperty("cities")];case 2:e.cities=s.sent();i=state;return[4,handleOfflineProperty("districts")];case 3:i.districts=s.sent();r=state;return[4,handleOfflineProperty("themes")];case 4:r.themes=s.sent();a=state;return[4,handleOfflineProperty("outdoorSiteTypes")];case 5:a.outdoorSiteTypes=s.sent();n=state;return[4,handleOfflineProperty("outdoorPractices")];case 6:n.outdoorPractices=s.sent();return[4,handleOfflineProperty("outdoorSites")];case 7:t=s.sent();state.outdoorSites=t;state.currentOutdoorSites=t;return[3,9];case 8:state.networkError=true;s.label=9;case 9:return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));e.push(!state.themes?getThemes(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.outdoorSiteTypes?getOutdoorSiteTypes(state.api,state.language,this.init):new Response("null"));e.push(!state.outdoorPractices?getOutdoorPractices(state.api,state.language,this.init):new Response("null"));e.push(getOutdoorSites(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o;var c=t[0],l=t[1],d=t[2],u=t[3],p=t[4];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(c){state.districts=c.results}if(l){state.themes=l.results}if(d){state.outdoorSiteTypes=d.results}if(u){state.outdoorPractices=u.results}e=[];i=0;t.label=1;case 1:if(!(i<p.results.length))return[3,4];return[4,outdoorSiteIsAvailableOffline(p.results[i].id)];case 2:r=t.sent();e.push(Object.assign(Object.assign({},p.results[i]),{offline:r}));t.label=3;case 3:i++;return[3,1];case 4:state.outdoorSites=e;state.currentOutdoorSites=e;if(!(!state.cities||state.cities.length===0))return[3,9];a=new Set;if(p&&p.results){p.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return a.add(t)}))}}))}if(!(a.size>0))return[3,9];t.label=5;case 5:t.trys.push([5,8,,9]);return[4,getCities(state.api,state.language,this.init,Array.from(a))];case 6:n=t.sent();return[4,n.json()];case 7:s=t.sent();state.cities=s.results||[];return[3,9];case 8:o=t.sent();console.error("Failed to load cities",o);return[3,9];case 9:return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:t.sent();return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"a16bd23916c46dda3f6b774dde75dad6c343d66c"})};return t}();var SearchIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"/></svg>';var grwSearchCss=function(){return":host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex;color:var(--color-on-primary-container);position:absolute;left:32px;z-index:20;pointer-events:none}.search-input{width:100%;background-color:var(--color-surface-container-high);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2);border:none;border-radius:var(--border-radius, 40px);color:var(--color-on-primary-container);font-size:16px;line-height:24px;font-weight:400;font-family:var(--font-family);height:44px;padding:0px 16px 0px 48px;outline-color:var(--color-outline)}.search-input::-webkit-input-placeholder{color:var(--color-on-primary-container)}.search-input::-moz-placeholder{color:var(--color-on-primary-container)}.search-input:-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::-ms-input-placeholder{color:var(--color-on-primary-container)}.search-input::placeholder{color:var(--color-on-primary-container)}.search-input::-webkit-search-cancel-button{-webkit-appearance:none;background-color:var(--color-on-primary-container);-webkit-mask-image:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>\");background-size:20px 20px;height:20px;width:20px}"};var GrwSearch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){state.searchValue=t.target.value;if(state.mode==="treks"){state.currentTreks=handleTreksFiltersAndSearch()}else if(state.mode==="touristicContents"){state.currentTouristicContents=handleTouristicContentsFiltersAndSearch()}else if(state.mode==="touristicEvents"){state.currentTouristicEvents=handleTouristicEventsFiltersAndSearch()}else if(state.mode==="outdoor"){state.currentOutdoorSites=handleOutdoorSitesFiltersAndSearch()}};t.prototype.render=function(){var t=this;return h(Host,{key:"e3d98b43edc220fd948553e50aed73ad3475aa9b",style:{"--font-family":this.fontFamily}},h("span",{key:"68ade2155e15c25161484dd9746a9ccb77ca4877",part:"icon",class:"icon",innerHTML:SearchIcon}),h("input",{key:"d4443be1fc756debe93a61bb8491be4fd41a4931",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:state.searchValue}))};return t}();GrwSearch.style=grwSearchCss();var grwSegmentedSegmentCss=function(){return".segmented-buttons-container{font-family:var(--font-family);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;width:calc(100% - 32px);height:40px;margin:16px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 20px);line-height:20px}.segmented-buttons-container .segment{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);background-color:transparent;border-radius:0px;min-width:40px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.segmented-buttons-container .segment:first-child{border-top-left-radius:var(--border-radius, 20px);border-bottom-left-radius:var(--border-radius, 20px)}.segmented-buttons-container .segment:not(:last-child){border-right:1px solid var(--color-outline)}.segmented-buttons-container .segment:last-child{border-top-right-radius:var(--border-radius, 20px);border-bottom-right-radius:var(--border-radius, 20px)}.segmented-buttons-container .selected-segment{color:var(--color-on-primary-container);background-color:var(--color-primary-container)}"};var GrwSegmentedSegment=function(){function t(t){registerInstance(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){state.searchValue="";if(t==="treks"){treksFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.treks){state.currentTreks=__spreadArray([],handleTreksFiltersAndSearch(),true)}}else if(t==="touristicContents"){touristicContentsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicContents){state.currentTouristicContents=__spreadArray([],handleTouristicContentsFiltersAndSearch(),true)}}else if(t==="touristicEvents"){touristicEventsFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.touristicEvents){state.currentTouristicEvents=__spreadArray([],handleTouristicEventsFiltersAndSearch(),true)}}else if(t==="outdoor"){outdoorSitesFilters.forEach((function(t){state[t.property]&&state[t.property].forEach((function(t){return t.selected=false}))}));state.selectedActivitiesFilters=0;state.selectedThemesFilters=0;state.selectedLocationFilters=0;if(state.outdoorSites){state.currentOutdoorSites=__spreadArray([],handleOutdoorSitesFiltersAndSearch(),true)}}state.mode=t};t.prototype.render=function(){var t=this;return h(Host,{key:"a2b16c24fbedec687122ed70258ff6543ee2f110",style:{"--font-family":this.fontFamily}},h("div",{key:"d24b1cfa8cf64efda81820f816db2ce13104f872",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&h("label",{key:"0bba2d05fbb3867cbd816eb2dbc16dada86e77f9",part:"segment",class:"segment".concat(state.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},translate[state.language].home.segment.treks),this.outdoor&&h("label",{key:"e2cb2ba38033b8100ea916aab9f4cb012f3ac039",part:"segment",class:"segment".concat(state.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},translate[state.language].home.segment.outdoorSites),this.touristicContents&&h("label",{key:"65364c1a08a3e6faee2f53647c3eca17b40c0e99",part:"segment",class:"segment".concat(state.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},translate[state.language].home.segment.touristicContents),this.touristicEvents&&h("label",{key:"03afc47e263cb8a610f2694efdb8ab5b2f647401",part:"segment",class:"segment".concat(state.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},translate[state.language].home.segment.touristicEvents)))};return t}();GrwSegmentedSegment.style=grwSegmentedSegmentCss();var TranslateIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m476-80 182-480h84L924-80h-84l-43-122H603L560-80h-84ZM160-200l-56-56 202-202q-35-35-63.5-80T190-640h84q20 39 40 68t48 58q33-33 68.5-92.5T484-720H40v-80h280v-80h80v80h280v80H564q-21 72-63 148t-83 116l96 98-30 82-122-125-202 201Zm468-72h144l-72-204-72 204Z"/></svg>';var grwSelectLanguageCss=function(){return":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .icon{display:-ms-flexbox;display:flex}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}"};var GrwSelectLanguage=function(){function t(t){registerInstance(this,t)}t.prototype.handleSelect=function(t){state.treks=null;state.currentTreks=null;state.currentTrek=null;state.language=t.target.value};t.prototype.render=function(){var t=this;return h(Host,{key:"c0d285e09423559c5824e64b7cacbcaa26c5c88b"},h("span",{key:"ef14fdec0f1f7df2d460def242d35459cc86d766",part:"select-language-icon",class:"icon",innerHTML:TranslateIcon}),h("select",{key:"96ae6cbaef672db97abfb2ce2bb92d8fcd526ad7",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},state.languages.map((function(t){return h("option",{part:"select-language-option",selected:t===state.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}();GrwSelectLanguage.style=grwSelectLanguageCss();var DoneIcon='<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 grwSwitchCss=function(){return'.md3.switch{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-tap-highlight-color:transparent;margin:10px;font-family:var(--font-family)}.md3.switch input{opacity:0;width:0;height:0;margin:0;padding:0}.md3.switch span.slider{position:absolute;cursor:pointer;background-color:var(--color-primary-container);width:48px;height:28px;border-radius:28px;border:2px solid var(--color-outline);-webkit-transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;transition:background-color 0.1s ease-in-out, border-color 0.1s ease-in-out}.md3.switch span.slider::before{position:absolute;content:"";height:16px;width:16px;left:0px;margin:6px;background-color:var(--color-outline);border-radius:28px;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out;transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5), background-color 0.1s ease-in-out, height 50ms ease-in-out, width 50ms ease-in-out, margin 50ms ease-in-out}.md3.switch span.slider span.icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;left:0px;margin:6px 0px;height:16px;width:16px;font-size:16px;text-align:center;opacity:0;-webkit-transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);transition:left 175ms cubic-bezier(0, 0.5, 0.5, 1.5);color:var(--color-surface-variant)}.md3.switch input:checked+span.slider{background-color:var(--color-primary);border-color:transparent}.md3.switch input:checked+span.slider::before{background-color:var(--color-on-primary);height:24px;width:24px;left:20px;margin:2px}.md3.switch input:not(:disabled):hover+span.slider::before{background-color:var(--color-on-surface-variant)}.md3.switch input:not(:disabled):checked:hover+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:not(:disabled):active+span.slider::before{height:28px;width:28px;margin:0px}.md3.switch input:not(:disabled):checked:active+span.slider::before{background-color:var(--color-primary-container)}.md3.switch input:checked+span.slider span.icon{left:26px;opacity:1;color:var(--color-on-primary-container)}.md3.switch input:focus-visible+span.slider{outline:2px solid var(--color-primary)}'};var GrwSwitch=function(){function t(t){registerInstance(this,t);this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return h(Host,{key:"f2d85060c3b246d9837910145853bf74aed81000",style:{"--font-family":this.fontFamily}},h("label",{key:"e58114850d33b7731560cce7716a815f948ff25b",class:"md3 switch"},h("input",{key:"ba34f0da609b27cb3133d8bc5e821030d7cd7da0",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),h("span",{key:"b08381e1f0882e3af80e80e4c63f19dd432d2d9b",class:"slider"},h("span",{key:"fe77cfa55dceb12b0f6a2460f657001b4bb33dbe",part:"icon",class:"icon",innerHTML:DoneIcon}))))};return t}();GrwSwitch.style=grwSwitchCss();var grwTouristicContentsListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-touristic-content-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTouristicContentsList$1=function(){function t(t){registerInstance(this,t);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,this.step),true)}onChange("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],state.currentTouristicContents.slice(0,t.step),true)}}));onChange("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],state.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<state.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=state.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=state.touristicContentsWithinBounds.length?state.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"258f2d41e9b43dd2260d503518af31cc24cb21bc",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicContentsWithinBounds&&h("div",{key:"9e6d6d7e6a12ed1f39316e024a61517608ac4ade",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(state.touristicContentsWithinBounds.length," ").concat(state.touristicContentsWithinBounds.length>1?translate[state.language].home.touristicContents:translate[state.language].home.touristicContent)),h("div",{key:"5c4081b92faa32ed7a9dae04b67cece6f6be0429",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){return h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"3f4f0431918b6b396e6309eb6d6e6525ddb9160b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList$1.style=grwTouristicContentsListCss();var GrwTouristicContentsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t=this;var e=getTouristicContentsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));i.push(!state.touristicContentCategories?getTouristicContentCategory(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[e],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.touristicContentCategories=s.results}state.touristicContents=o.results;state.currentTouristicContents=o.results;if(!(!state.cities||state.cities.length===0))return[3,5];e=new Set;if(o&&o.results){o.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:i=t.sent();return[4,i.json()];case 3:r=t.sent();state.cities=r.results||[];return[3,5];case 4:a=t.sent();console.error("Failed to load cities",a);return[3,5];case 5:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"27520274c596a3df2bad605075b1f9d801651e8c"})};return t}();var grwTouristicEventsListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-touristic-event-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTouristicContentsList=function(){function t(t){registerInstance(this,t);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,this.step),true)}onChange("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],state.currentTouristicEvents.slice(0,t.step),true)}}));onChange("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],state.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<state.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=state.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=state.touristicEventsWithinBounds.length?state.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"93ce992fa4c096def9508d0c730fffb30c500520",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.touristicEventsWithinBounds&&h("div",{key:"b0abcfce497d42a01974b533718e3ae502b38faa",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(state.touristicEventsWithinBounds.length," ").concat(state.touristicEventsWithinBounds.length>1?translate[state.language].home.touristicEvents:translate[state.language].home.touristicEvent)),h("div",{key:"a85edc6cd7ef02f061558059af04fd5901340c62",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){return h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",key:"touristic-event-".concat(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),h("div",{key:"ef096ee268e9527e082553ee243a092167d1ca12",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTouristicContentsList.style=grwTouristicEventsListCss();var GrwTouristicEventsProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t=this;var e=getTouristicEventsList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!state.districts?getDistricts(state.api,state.language,this.init):new Response("null"));i.push(!state.touristicEventTypes?getTouristicEventType(state.api,state.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[e],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a;var n=t[0],s=t[1],o=t[2];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(n){state.districts=n.results}if(s){state.touristicEventTypes=s.results}state.touristicEvents=o.results;state.currentTouristicEvents=o.results;if(!(!state.cities||state.cities.length===0))return[3,5];e=new Set;if(o&&o.results){o.results.forEach((function(t){if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:i=t.sent();return[4,i.json()];case 3:r=t.sent();state.cities=r.results||[];return[3,5];case 4:a=t.sent();console.error("Failed to load cities",a);return[3,5];case 5:return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.render=function(){return h(Host,{key:"3b676b212a8d49c31a1b13c8651e64cbd3319189"})};return t}();var BackpackIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M240-80q-33 0-56.5-23.5T160-160v-480q0-56 34-98t86-56v-86h120v80h160v-80h120v86q52 14 86 56t34 98v480q0 33-23.5 56.5T720-80H240Zm0-80h480v-480q0-33-23.5-56.5T640-720H320q-33 0-56.5 23.5T240-640v480Zm340-160h80v-160H300v80h280v80ZM480-440Z"/></svg>';var grwTrekDetailCss=function(){return'@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-pagination-progressbar{}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;width:100%;overflow:hidden;--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{height:5px}.trek-options::-webkit-scrollbar-thumb{background:var(--color-primary-app);border-radius:8px}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{color:var(--reference-point-color);background:var(--reference-point-background-color);position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;border-radius:12px;font-weight:bold;font-size:0.8em;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.current-advice-container,.gear-container{margin-bottom:12px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.trek-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.trek-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.trek-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.loader-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-height:120px}.loader{width:48px;height:48px;border:5px solid var(--color-primary-app);border-bottom-color:transparent;border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'};var observerOptions={threshold:0};var presentation={visible:true,indicator:false,ref:"presentationOptionRef"};var steps={visible:false,indicator:false,ref:"stepsOptionRef"};var description={visible:false,indicator:false,ref:"descriptionOptionRef"};var pois={visible:false,indicator:false,ref:"poisOptionRef"};var recommendations={visible:false,indicator:false,ref:"recommendationsOptionRef"};var sensitiveArea={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var informationPlaces={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var accessibility={visible:false,indicator:false,ref:"accessibilityOptionRef"};var touristicContents={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var touristicEvents={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var options={presentation:presentation,steps:steps,description:description,pois:pois,recommendations:recommendations,sensitiveArea:sensitiveArea,informationPlaces:informationPlaces,accessibility:accessibility,touristicContents:touristicContents,touristicEvents:touristicEvents};var GrwTrekDetail=function(){function t(t){registerInstance(this,t);this.descriptionIsInViewport=createEvent(this,"descriptionIsInViewport",7);this.parkingIsInViewport=createEvent(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=createEvent(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=createEvent(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=createEvent(this,"poiIsInViewport",7);this.stepsIsInViewport=createEvent(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=createEvent(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=createEvent(this,"touristicEventsIsInViewport",7);this.detailScrolled=createEvent(this,"detailScrolled",7);this.parentTrekPress=createEvent(this,"parentTrekPress",7);this.downloadConfirm=createEvent(this,"downloadConfirm",7);this.downloadedSuccessConfirm=createEvent(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=createEvent(this,"downloadedErrorConfirm",7);this.deleteConfirm=createEvent(this,"deleteConfirm",7);this.deleteSuccessConfirm=createEvent(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=createEvent(this,"deleteErrorConfirm",7);this.displayFullscreen=false;this.offline=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.rounded=true;this.weather=false;this.isLargeView=false;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false;this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.showTouristicContentDetailsModal=false;this.showTouristicEventDetailsModal=false;this.modalDetailsId=null}t.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";state.currentTouristicContent=null;state.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};t.prototype.onTouristiceEventCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("TouristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-event-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onTouristicContentCardPress=function(t){if(!this.grwApp){this.modalDetailsId=t.detail;this.onOpenDetailsModal("touristicContent");var e=document.createElement("grw-details-modal");e.setAttribute("font-family",this.fontFamily);e.setAttribute("color-background",this.colorBackground);e.setAttribute("color-primary-container",this.colorPrimaryContainer);e.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);e.setAttribute("rounded",this.rounded.toString());var i=document.createElement("grw-touristic-content-detail");i.setAttribute("font-family",this.fontFamily);i.setAttribute("color-primary-app",this.colorPrimaryApp);i.setAttribute("color-on-surface",this.colorOnSurface);i.setAttribute("color-primary-container",this.colorPrimaryContainer);i.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);i.setAttribute("color-secondary-container",this.colorSecondaryContainer);i.setAttribute("color-on-secondary-container",this.colorOnSecondaryContainer);i.setAttribute("color-surface-container-low",this.colorSurfaceContainerLow);i.setAttribute("color-background",this.colorBackground);e.append(i);document.body.append(e)}};t.prototype.onOpenDetailsModal=function(t){document.body.style.overflow="hidden";if(t==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};t.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};t.prototype.handleSwipers=function(){var t=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new Swiper(this.swiperImagesRef,{modules:[Navigation,Pagination,Keyboard,freeMode,Mousewheel],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new Swiper(this.swiperStepRef,{modules:[freeMode,Mousewheel,Scrollbar],initialSlide:this.getCurrentStepIndex(),slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperPoisRef&&!this.swiperPois){this.swiperPois=new Swiper(this.swiperPoisRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperInformationDesksRef&&!this.swiperInformationDesks){this.swiperInformationDesks=new Swiper(this.swiperInformationDesksRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new Swiper(this.swiperTouristicContentsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}if(this.swiperTouristicEventsRef&&!this.swiperTouristicEvents){this.swiperTouristicEvents=new Swiper(this.swiperTouristicEventsRef,{modules:[freeMode,Mousewheel,Scrollbar],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5},1024:{slidesPerView:4}},loop:false})}};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),observerOptions);this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),observerOptions);this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers();this.setupScrollListener()};t.prototype.setupScrollListener=function(){var t=this;var e=this.trekDetailContainerRef;if(e){var i=function(){t.detailScrolled.emit();e.removeEventListener("scroll",i)};e.addEventListener("scroll",i)}else{var r=function(){t.detailScrolled.emit();window.removeEventListener("scroll",r)};window.addEventListener("scroll",r)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}onChange("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(state.currentTrek){this.offline=state.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=state.difficulties.find((function(t){return t.id===state.currentTrek.difficulty}));this.route=state.routes.find((function(t){return t.id===state.currentTrek.route}));this.practice=state.practices.find((function(t){return t.id===state.currentTrek.practice}));this.themes=state.themes.filter((function(t){return state.currentTrek.themes.includes(t.id)}));this.labels=state.labels.filter((function(t){return state.currentTrek.labels.includes(t.id)}));this.sources=state.sources.filter((function(t){return state.currentTrek.source.includes(t.id)}));this.accessibilities=state.accessibilities.filter((function(t){return state.currentTrek.accessibilities.includes(t.id)}));if(state.accessibilitiesLevel){this.accessibilityLevel=state.accessibilitiesLevel.find((function(t){return state.currentTrek.accessibility_level===t.id}))}if(state.cities){this.cities=state.currentTrek.cities.map((function(t){var e;return(e=state.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}))}this.hasStep=state.currentTrek.children.length>0;this.currentTrek=state.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},options),{presentation:Object.assign({},presentation),steps:Object.assign(Object.assign({},steps),{visible:Boolean(state.parentTrek)}),description:Object.assign(Object.assign({},description),{visible:Boolean(state.currentTrek.description)}),pois:Object.assign(Object.assign({},pois),{visible:state.poisData>0}),recommendations:Object.assign(Object.assign({},recommendations),{visible:Boolean(state.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},sensitiveArea),{visible:Boolean(state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},informationPlaces),{visible:Boolean(state.currentInformationDesks&&state.currentInformationDesks.filter((function(t){return state.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},accessibility),{visible:Boolean(state.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||state.currentTrek.accessibility_level||state.currentTrek.accessibility_slope||state.currentTrek.accessibility_width||state.currentTrek.accessibility_signage||state.currentTrek.accessibility_covering||state.currentTrek.accessibility_exposure||state.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},touristicContents),{visible:state.touristicContentsData>0}),touristicEvents:Object.assign(Object.assign({},touristicEvents),{visible:state.touristicEventsData>0})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=-1;var i=Object.values(this.options);for(var r=0;r<i.length;r++){if(i[r].indicator){t=i[r];e=r;break}}if(t&&this[t.ref]){var a=0;var n=0;for(var r=0;r<e;r++){if(i[r].visible){a+=1;n+=this[i[r].ref].clientWidth}}var s=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(n+16*a-s/2,"px"),width:"".concat(s*2,"px"),backgroundSize:"".concat(s,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){var e=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(e){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}else{window.scrollTo({top:t.offsetTop-64})}};t.prototype.getCurrentStepIndex=function(){var t=this;return state.currentTrekSteps?state.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,a,n,s,o;return __generator(this,(function(c){switch(c.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=[];if(state.treks){for(a=0,n=state.treks;a<n.length;a++){s=n[a];r.push(s.departure_geom)}}o=L$1.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,o,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(a){switch(a.label){case 0:i=bundleExports.tileLayerOffline(t,{attribution:e});r=L$1.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,writeOrUpdateTilesInStore(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_,L,C,z,O;var F=this;return __generator(this,(function(S){switch(S.label){case 0:S.trys.push([0,72,,73]);t=new AbortController;e=t.signal;i={cache:getCacheMode(),signal:e};return[4,getAllDataInStore("treks")];case 1:r=S.sent().filter((function(t){return t.offline===true}));a=void 0;if(!!state.treks)return[3,4];return[4,getTreksList(state.api,state.language,state.inBboxFromProviders,state.citiesFromProviders,state.districts,state.structuresFromProviders,state.themesFromProviders,state.portalsFromProviders,state.routesFromProviders,state.practicesFromProviders,state.labelsFromProviders,i)];case 2:n=S.sent();s=state;return[4,n.json()];case 3:s.treks=S.sent().results;S.label=4;case 4:a=state.treks;a=a.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!state.districts)return[3,7];return[4,getDistricts(state.api,state.language,i)];case 5:o=S.sent();c=state;return[4,o.json()];case 6:c.districts=S.sent().results;S.label=7;case 7:return[4,writeOrUpdateDataInStore("treks",a)];case 8:S.sent();return[4,writeOrUpdateDataInStore("districts",state.districts)];case 9:S.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:S.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:S.sent();return[4,writeOrUpdateFilesInStore(state.difficulties,imagesRegExp)];case 12:S.sent();return[4,writeOrUpdateFilesInStore(state.routes,imagesRegExp)];case 13:S.sent();return[4,writeOrUpdateFilesInStore(state.practices,imagesRegExp)];case 14:S.sent();return[4,writeOrUpdateFilesInStore(state.themes,imagesRegExp)];case 15:S.sent();return[4,writeOrUpdateFilesInStore(state.labels,imagesRegExp)];case 16:S.sent();return[4,writeOrUpdateFilesInStore(state.districts,imagesRegExp)];case 17:S.sent();return[4,writeOrUpdateFilesInStore(state.sources,imagesRegExp)];case 18:S.sent();return[4,writeOrUpdateFilesInStore(state.accessibilities,imagesRegExp)];case 19:S.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp)];case 20:S.sent();return[4,writeOrUpdateFilesInStore(state.networks,imagesRegExp)];case 21:S.sent();return[4,writeOrUpdateFilesInStore(this.currentTrek,imagesRegExp,true,["url"])];case 22:S.sent();return[4,writeOrUpdateDataInStore("difficulties",state.difficulties)];case 23:S.sent();return[4,writeOrUpdateDataInStore("routes",state.routes)];case 24:S.sent();return[4,writeOrUpdateDataInStore("practices",state.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 25:S.sent();return[4,writeOrUpdateDataInStore("themes",state.themes)];case 26:S.sent();return[4,writeOrUpdateDataInStore("accessibilities",state.accessibilities)];case 27:S.sent();return[4,writeOrUpdateDataInStore("ratings",state.ratings)];case 28:S.sent();return[4,writeOrUpdateDataInStore("ratingsScale",state.ratingsScale)];case 29:S.sent();return[4,writeOrUpdateDataInStore("sensitiveAreas",state.currentSensitiveAreas)];case 30:S.sent();return[4,writeOrUpdateDataInStore("labels",state.labels)];case 31:S.sent();return[4,writeOrUpdateDataInStore("sources",state.sources)];case 32:S.sent();return[4,writeOrUpdateDataInStore("accessibilitiesLevel",state.accessibilitiesLevel)];case 33:S.sent();return[4,writeOrUpdateDataInStore("networks",state.networks)];case 34:S.sent();return[4,writeOrUpdateDataInStore("signages",state.currentSignages)];case 35:S.sent();return[4,writeOrUpdateDataInStore("informationDesks",state.currentInformationDesks)];case 36:S.sent();return[4,writeOrUpdateFilesInStore(state.currentInformationDesks,imagesRegExp,true)];case 37:S.sent();return[4,getCities(state.api,state.language,i).then((function(t){return t.json()}))];case 38:l=S.sent().results;return[4,writeOrUpdateDataInStore("cities",l)];case 39:S.sent();d=[];u=[];p=[];if(!(state.poisData>0))return[3,46];return[4,getPoisNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 40:d=S.sent().results;return[4,fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),i).then((function(t){return t.json()}))];case 41:f=S.sent().results;return[4,writeOrUpdateDataInStore("pois",d)];case 42:S.sent();return[4,writeOrUpdateDataInStore("poiTypes",f)];case 43:S.sent();return[4,writeOrUpdateFilesInStore(d,imagesRegExp,true,["url"])];case 44:S.sent();return[4,writeOrUpdateFilesInStore(f,imagesRegExp)];case 45:S.sent();S.label=46;case 46:if(!(state.touristicContentsData>0))return[3,53];return[4,getTouristicContentsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 47:u=S.sent().results;return[4,getTouristicContentCategory(state.api,state.language,null,i).then((function(t){return t.json()}))];case 48:h=S.sent().results;u.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicContents",u)];case 49:S.sent();return[4,writeOrUpdateDataInStore("touristicContentCategories",h)];case 50:S.sent();return[4,writeOrUpdateFilesInStore(u,imagesRegExp,true,["url"])];case 51:S.sent();return[4,writeOrUpdateFilesInStore(h,imagesRegExp)];case 52:S.sent();S.label=53;case 53:if(!(state.touristicEventsData>0))return[3,60];return[4,getTouristicEventsNearTrek(state.api,state.language,this.currentTrek.id,i).then((function(t){return t.json()}))];case 54:p=S.sent().results;return[4,getTouristicEventType(state.api,state.language,null,i).then((function(t){return t.json()}))];case 55:m=S.sent().results;p.forEach((function(t){t.offline=true}));return[4,writeOrUpdateDataInStore("touristicEvents",p)];case 56:S.sent();return[4,writeOrUpdateDataInStore("touristicEventTypes",m)];case 57:S.sent();return[4,writeOrUpdateFilesInStore(m,imagesRegExp)];case 58:S.sent();return[4,writeOrUpdateFilesInStore(p,imagesRegExp,true,["url"])];case 59:S.sent();S.label=60;case 60:if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,70];b=[];b.push.apply(b,this.currentTrek.children);v=[];g=[];w=[];k=[];y=[];b.forEach((function(t){v.push(getTrek(state.api,state.language,t,i));g.push(getTouristicContentsNearTrek(state.api,state.language,t,i));w.push(getTouristicEventsNearTrek(state.api,state.language,t,i));k.push(getPoisNearTrek(state.api,state.language,t,i));y.push(getSensitiveAreasNearTrek(state.api,state.language,t,i))}));return[4,Promise.all(__spreadArray([],v,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 61:x=S.sent();return[4,Promise.all(__spreadArray([],g,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 62:A=S.sent();return[4,Promise.all(__spreadArray([],w,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 63:_=S.sent();return[4,Promise.all(__spreadArray([],k,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 64:L=S.sent();return[4,Promise.all(__spreadArray([],y,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 65:C=S.sent();z=0;S.label=66;case 66:if(!(z<x.length))return[3,70];x[z].offline=true;x[z].pois=L[z].results.map((function(t){return t.id}));x[z].touristicContents=A[z].results.map((function(t){return t.id}));x[z].touristicEvents=_[z].results.map((function(t){return t.id}));x[z].sensitiveAreas=C[z].results.map((function(t){return t.id}));return[4,writeOrUpdateDataInStore("treks",[x[z]])];case 67:S.sent();return[4,writeOrUpdateFilesInStore(x[z],imagesRegExp,true,["url"])];case 68:S.sent();S.label=69;case 69:z++;return[3,66];case 70:return[4,writeOrUpdateDataInStore("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:d.map((function(t){return t.id})),signages:state.currentSignages.map((function(t){return t.id})),touristicContents:u.map((function(t){return t.id})),touristicEvents:p.map((function(t){return t.id})),sensitiveAreas:state.currentSensitiveAreas?state.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 71:S.sent();state.treks.find((function(t){return t.id===F.currentTrek.id})).offline=true;if(!state.currentTreks){state.currentTreks=state.treks}state.currentTreks.find((function(t){return t.id===F.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit(this.currentTrek.id);return[3,73];case 72:O=S.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,73];case 73:return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a;var n=this;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,7,,8]);t=[];return[4,getDataInStore("treks",this.currentTrek.id)];case 1:e=s.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;s.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,getDataInStore("treks",this.currentTrek.children[i])];case 3:r=s.sent();this.deleteOfflineTrekProperties(r);t.push(r);s.label=4;case 4:i++;return[3,2];case 5:return[4,writeOrUpdateDataInStore("treks",t)];case 6:s.sent();if(state.treks){delete state.treks.find((function(t){return t.id===n.currentTrek.id})).offline;if(!state.currentTreks){state.currentTreks=state.treks}delete state.currentTreks.find((function(t){return t.id===n.currentTrek.id})).offline}if(state.parentTrek){delete state.parentTrek.offline}if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:a=s.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.getDepartureCityCode=function(){var t;var e=state.cities.find((function(t){return t.id===state.currentTrek.departure_city}));return(t=e.code)!==null&&t!==void 0?t:e.id};t.prototype.render=function(){var t=this;var e,i,r,a,n,s;var o=getAssetPath("".concat(Build.isDev?"/":"","assets/default-image.svg"));var c=this.currentTrek&&this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>1||this.offline;return h(Host,{key:"8056c0a27f3a1dd46ae0d114d6f577d7228aeb3f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?state.languages&&state.languages.length>1?"44px":"12px":state.languages&&state.languages.length>1?"164px":"124px"}},this.currentTrek&&h("div",{key:"b303856480be42b6dc240450a4d8e477c360c239",part:"trek-options",class:"trek-options"},h("a",{key:"1a0f83fb17ed9e1fd158e26e7569cebe105e5626",part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},translate[state.language].options.presentation),this.options.steps.visible&&h("a",{key:"c620a8121169c3d2749f5937b4a61e33e383f319",part:"trek-option",class:"steps trek-option".concat(this.indicatorSelectedTrekOption.ref==="stepsOptionRef"?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},translate[state.language].options.steps),this.options.description.visible&&h("a",{key:"a9774229b79373964ca040d354412138b8eec1c8",part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},translate[state.language].options.description),this.options.pois.visible&&h("a",{key:"e9c416ddad9348336e43d7a2bebed56f364dc24d",part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},translate[state.language].options.pois),this.options.recommendations.visible&&h("a",{key:"b824fe1dec5b8a8d0d70db11001a34a490c4c57e",part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},translate[state.language].options.recommendations),this.options.sensitiveArea.visible&&h("a",{key:"e54134afd8a969037ac194d9090cc26b7e5c99aa",part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},translate[state.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&h("a",{key:"83455c4705b03272ec7bdeda591f5eb29fc8c73c",part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},translate[state.language].options.informationPlaces),this.options.accessibility.visible&&h("a",{key:"d75e9e87f2b3cf2e644dedc59281e08024a57d2e",part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},translate[state.language].options.accessibility),this.options.touristicContents.visible&&h("a",{key:"f4b388b35eade9689a3c6b2ff5197bee388a8802",part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},translate[state.language].options.touristicContents),this.options.touristicEvents.visible&&h("a",{key:"4d10a2fe171939017b84837240c7e14cd7bd8a01",part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},translate[state.language].options.touristicEvents),this.presentationOptionRef&&h("span",{key:"20309d2f8ba63af9daa046bdd6da6c20018cca8b",part:"trek-indicator-selected-trek-option",class:"trek-indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&h("div",{key:"4245997ca1ce78ab6545fa6fb4390896353a6ea7",part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},h("div",{key:"cbe663137a1a432ae984528bc5b16b7b3fcadcf7",part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},h("div",{key:"d90e380850fd96b525bf3ea8d6c4bbcd56ac7e1e",part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},h("div",{key:"ddfcd41e0e3a605c45867cc6034f9324d456aad1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var i=[e.legend,e.author].filter(Boolean).join(" - ");return h("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&h("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},h("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:CloseIcon})),h("div",{part:"trek-image-legend",class:"trek-image-legend"},i),h("img",{part:"trek-img",class:"trek-img",src:t.offline&&e.thumbnail!==""?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=o},alt:e.legend}))})):h("img",{part:"trek-img",class:"trek-img default-trek-img",src:o,loading:"lazy",alt:""})),h("div",{key:"67e31fe952c0cd6407d67951dd3b76d07979ee5e",style:{display:"block",visibility:c?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),h("div",{key:"9fffc676f36b3ea5ac1816405ab045707cfde1ce",style:{display:"flex",visibility:c?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),h("div",{key:"ff5806e477f5c9211159a49feb884d1a401403f0",style:{display:"flex",visibility:c?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),h("div",{key:"4f2ca1b81824e62db8771540b32350e29ad1c4da",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&h("div",{key:"470e578f6ff3607b85d1421f967040a4b3eb1617",part:"themes-container",class:"themes-container"},this.themes.map((function(t){return h("div",{part:"theme",class:"theme"},t.label)}))),h("div",{key:"4ab0300ca98a161dd25ee3690fe08bfa1e0ca222",part:"sub-container",class:"sub-container"},h("div",{key:"8bf748be4496f6adb82df0ee9b1cbf7c22caa63c",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&h("div",{key:"cad66bad05ce721070792ba132551ef87b3f238f",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&h("img",{key:"c6ff801d49c4fba4f73b435557734c5337be9f44",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),h("span",{key:"211b95c6bb7ed70744fb6aebb533e6975d8d2e73",part:"label",class:"label"},this.difficulty.label)),h("div",{key:"ba0afce0152a48fd6c999bc72f5405c8339cfebe",part:"icon-label",class:"icon-label duration"},h("span",{key:"f23bd5fff68eedcb171d24b410f5662b6ae9d543",part:"icon",class:"icon",innerHTML:TimelapseIcon}),h("span",{key:"efc712b997738e778ee209240fbab4046538f8fc",part:"label",class:"label"},formatDuration((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),h("div",{key:"f4896a51c6f998f2bebfe4414497b543981237cc",part:"icon-label",class:"icon-label route"},((i=this.route)===null||i===void 0?void 0:i.pictogram)&&h("img",{key:"b43dbfc142270470eef68156c1c2885201c61b58",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),h("span",{key:"c05006ec9e314a1c646ccab58f65524942c7b831",part:"label",class:"label"},(r=this.route)===null||r===void 0?void 0:r.route)),h("div",{key:"c45260033030cb8659b2a4dc3b878c71111d7076",part:"icon-label",class:"icon-label length"},h("span",{key:"8781656a190650a50a7234b54974f228ba1d61c5",part:"icon",class:"icon",innerHTML:OpenInFullIcon}),h("span",{key:"3093ad0b2e2af5e7e26b10b03ee42b2412300d82",part:"label",class:"label"},formatLength(this.currentTrek.length_2d))),this.currentTrek.ascent&&h("div",{key:"24b747036ff58269711258338ee2701f23e582bc",part:"icon-label",class:"icon-label ascent"},h("span",{key:"d508bc3f8fce3b617d83fda582d63efa22488209",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"6ad471609f440720c0fd98a4bd986d5878570884",part:"label",class:"label"},formatAscent(this.currentTrek.ascent))),this.currentTrek.descent&&h("div",{key:"533222292f4506e97fbfab8045908ac518fc7e13",part:"icon-label",class:"icon-label descent"},h("span",{key:"8fbb18e91fcd0fa0ae3b95967e4b9e3b1f754317",part:"icon",class:"icon",innerHTML:MovingIcon}),h("span",{key:"f923f7757c63ba36e25e607030dad10339c46b29",part:"label",class:"label"},formatDescent(this.currentTrek.descent))),h("div",{key:"91124c364f4e87dfe4a8ab1d3654c8a99defc388",part:"icon-label",class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&h("img",{key:"389b3691c84570648183d4d950945cc278c4b85c",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),h("span",{key:"3628a2a7812fa47fa445334f7f0e246707527e66",part:"label",class:"label"},(n=this.practice)===null||n===void 0?void 0:n.name)),h("div",{key:"98f4b85c92d0b2a3c6054245171b52e454ede447",part:"icon-label",class:"icon-label networks"},(s=this.currentTrek.networks)===null||s===void 0?void 0:s.map((function(t){var e;var i=(e=state.networks)===null||e===void 0?void 0:e.find((function(e){return e.id===t}));if(!i)return null;return h("div",{part:"network",class:"network"},h("img",{part:"icon",class:"icon",src:i.pictogram,alt:""}),h("span",{part:"label",class:"label"},i.label))}))),this.currentTrek.ratings&&state.ratings&&state.ratingsScale&&this.currentTrek.ratings.map((function(t){var e=state.ratings.find((function(e){return e.id===t}));if(!e)return null;var i=state.ratingsScale.find((function(t){return t.id===e.scale}));if(!i)return null;return h("div",{part:"row",class:"row"},"".concat(i.name," : ").concat(e.name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&h("div",{key:"be45be1e4ec518e10d8bb517ec97ada6d148d18a",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),h("div",{key:"73166517c274a896c66f660178cbf75a6c3d26d4",part:"divider",class:"divider"}),h("div",{key:"1f89d784c875cb52e0e2aeb7336fa2201cabc5c7",part:"downloads-container",class:"downloads-container"},h("div",{key:"37cb5c0de2e31d6b18571d671acbb188c5d16960",part:"download-title",class:"download-title"},translate[state.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"2c81dbe5096a7f8753f9c3f78d24700c198c40dc",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},h("span",{key:"0690d25f36666c42a3751551664faa4faaa806f9",part:"icon",class:"icon",innerHTML:DownloadForOfflineIcon}),h("span",{key:"be1ec5b062e965ed5fa5cd79d2987c8e79dff6fd",part:"label",class:"label"},translate[state.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&h("button",{key:"6643c2fcba8207e7ad08c2c216d9a59accc70ba4",part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},h("span",{key:"267fc4080aac8b73ef19f5b58f8264b1a0c5eb45",part:"icon",class:"icon",innerHTML:DeleteIcon}),h("span",{key:"cba3162d287a629daaa5ea18746ad6795628ce74",part:"label",class:"label"},translate[state.language].offline.deleteOffline)),h("div",{key:"a4160f10fc13640f0219352e62659acbb84a55e0",part:"links-container",class:"links-container"},h("a",{key:"2b22420fb12cdbce5ea3422c6cec7e2d1398440f",part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"9858ac2d2691d74646941237a76a7a8d93c90999",part:"icon",class:" icon",innerHTML:DownloadIcon}),h("span",{key:"0e5d1a67fd6068ffd6757b961e8e2a4e34485804",part:"label",class:"label"},"GPX")),h("a",{key:"8bb88524999b700629f96da239a384177f8ee4ec",part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"1c49c772fec62afd8fb26369165427f38f8506e2",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"1a0e1eea8efcb88995f2e781dd1741865e8739fc",part:"label",class:"label"},"KML")),h("a",{key:"5ab0bb7a155736e9ea0c077be254abfebc878c4f",part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(state.portalsFromProviders&&state.portalsFromProviders.length===1?"?portal="+state.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},h("span",{key:"ea8a117a7765eaa66a47b2a3897cb7029497cc69",part:"icon",class:"icon",innerHTML:DownloadIcon}),h("span",{key:"35991b278ba93d8089f96673be75fb8d5dee3f9a",part:"label",class:"label"},"PDF")))),h("div",{key:"bf5999b7846b85d33c8f4eb80542ec5be7419acd",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&h("div",{key:"76c04a32f9c27209a27c903cf0c8051ed69de068",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&h("div",{key:"a1b945d6d95b814ef44eff0cb521164fbc7cc1a0",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),state.parentTrekId&&state.parentTrek&&this.currentTrek.id!==state.parentTrekId&&h("div",{key:"14a2851a9663619a9e984e7cc0e81d0b00b80133"},h("div",{key:"bca99f01e2525cea538dcf99e46210fae1134147",part:"divider",class:"divider"}),h("div",{key:"fefd49f0703c4604477e501f05d835744df7061d",part:"parent-trek-container",class:"parent-trek-container"},h("button",{key:"d879717b82916dae39fbdad99eee17df33615bd1",part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(state.parentTrekId)}},h("div",{key:"bed07488869c0b7cfd4a483a539dc4f75a4a237e"},"<"),state.parentTrek.name))),state.currentTrekSteps&&h("div",{key:"8ce08e9dd17accad9f4c0352efd74e57729aa579",part:"step-container",class:"step-container",ref:function(e){return t.stepsRef=e}},h("div",{key:"6e1d7af75339fd0d550a16d2855dcc9033f892dc",part:"step-title",class:"step-title"},"".concat(state.currentTrekSteps.length," ").concat(translate[state.language].steps)),h("div",{key:"768caf0c1a3618e78f2684ddf1ba5b115a1a809c",part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},h("div",{key:"beadc34783bb73ebcb55842b0669507cffddc94e",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentTrekSteps&&state.currentTrekSteps.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp}))}))),h("div",{key:"c42299aff5ad2091f61a5121e0871d3a3c470724",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),h("div",{key:"db44ce34b81d03f9c412e54433a69d8507cf3ab6",part:"divider",class:"divider"}),this.currentTrek.description&&h("div",{key:"fc4bfdc7ea6fa092a8249053ec111cc404d306d9",part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},h("div",{key:"aa12ae2fc3017bb59097555f1c8a6171d8248fa4",part:"description-title",class:"description-title"},translate[state.language].description),h("div",{key:"5a0b7b6eff715a213533ab1e91751ffc862e7b87",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&h("div",{key:"1055d8766febbbd18f5dc993e5fefd5b2927314f",part:"departure-container",class:"departure-container"},h("div",{key:"6b676e5ce915da16481e7dd4eec0d58d3e5af814",part:"departure-title",class:"departure-title"},translate[state.language].departure," : "),h("div",{key:"23d9987816c7872187dffc9ee5407975c12b20a3",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&h("div",{key:"ce8d3bc40a75d642cd9f16204df89b625afea755",part:"arrival-container",class:"arrival-container"},h("div",{key:"b94c44817e347d0e62b194c4c8a4c22dce8cb7a5",part:"arrival-title",class:"arrival-title"},translate[state.language].arrival," : "),h("div",{key:"765913eb6e8ead102cfb6dbc7ee0b074d8f05a43",part:"arrival",innerHTML:this.currentTrek.arrival})),this.cities&&this.cities.length>0&&h("div",{key:"cab01c4af2d4fb836cc35a9b243ac7afd50a9088",part:"cities-container",class:"cities-container"},h("div",{key:"3991f88880808c7a0542ab40c0a195b0602d64ec",part:"cities-title",class:"cities-title"},translate[state.language].crossedCities," : "),h("div",{key:"a7d7a7a7a04fb9b2ee761a1f58881cf02bb3edbb",part:"cities",innerHTML:this.cities.join(", ")})),this.options.pois.visible&&h("div",{key:"c96b0a84ba48006025e397f5fea38a460616a9e0",part:"divider-and-pois-container",class:"divider-and-pois-container"},h("div",{key:"b863150374a53b0dc7ae920dbff19f7c81181c1f",part:"divider",class:"divider"}),h("div",{key:"5ac0b85fb62eb636d52dfed810f93004449237b2",part:"pois-container",class:"pois-container",ref:function(e){return t.poiRef=e}},h("div",{key:"5ef409abb360c9500b2796252a92ed97f56a834c",part:"pois-title",class:"pois-title"},translate[state.language].pois(state.poisData)),!state.currentPois?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.currentPois.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-poi",{exportparts:"poi-type-img-container,poi-type,swiper-poi,swiper-wrapper,swiper-slide,poi-img,default-poi-img,swiper-pagination,swiper-button-prev,swiper-button-next,poi-sub-container,poi-name,poi-description,handle-poi-description",poi:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}}))))),this.weather&&this.currentTrek.departure_city&&!this.offline&&h("div",{key:"f5b71da699c318830a360f2f547486223e0fe212",part:"divider-and-weather-container",class:"divider-and-weather-container"},h("div",{key:"be810c526a76a8523ee6539b8d6dfee753263721",part:"divider",class:"divider"}),h("div",{key:"2f9e188f734e38814fdb2d28056dbf44b8354d2a",part:"weather-container",class:"weather-container"},h("iframe",{key:"b01b6f66328a868e925f44b6ec811fb80806a876",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.getDepartureCityCode(),"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&h("div",{key:"43ac08370634ba91cc8d73a667586040c218d72f",part:"divider-and-access-container",class:"divider-and-access-container"},h("div",{key:"140d47c65c6b52fe1c16e8f3a7969657960879f9",part:"divider",class:"divider"}),h("div",{key:"3d38690a06022602ef64a6f3b56e19b7add348c0",part:"access-container",class:"access-container"},h("div",{key:"80412576c7120bf367089c9757a43a45fa473160",part:"access-title",class:"access-title"},translate[state.language].roadAccessAndParking),h("div",{key:"d68254ad5b780b4fdeff6d05f90a2ae746ecf6eb",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&h("div",{key:"f52cab7cdcd7567176b822a666ce328daa04ce8d"},h("div",{key:"ad15b3cbf5a4e2440f0197886d9bbab7b301d3d3",part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},translate[state.language].recommendedParking),h("div",{key:"fb326c4fc9521ca596cd28579cdd20d97bb2f677",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&h("div",{key:"e13d5d7edcada9f4013f37ac4743b640fe051b3a",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},h("div",{key:"67b66cea272cd8f5c74e0baf024189067dc87b96",part:"divider",class:"divider"}),h("div",{key:"0d234296f396fa9059dbcf8c7f626cb5b3948b6f",part:"public-transport-container",class:"public-transport-container"},h("div",{key:"14f3f7f4488c6400e3390b74f3197ea49561abcb",part:"public-transport-title",class:"public-transport-title"},translate[state.language].transport),h("div",{key:"a6644adc2dbf7171742a3b995d8b4dac1d4c38c4",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&h("div",{key:"a05d29c7b27648b72101d0dfbedf64c34224db52",part:"divider-and-advice-container",class:"divider-and-advice-container"},h("div",{key:"ae740c45bb62f80b4c7e23c603b4fd663a0d7848",part:"divider",class:"divider"}),h("div",{key:"dd7bfc62d4c96bd2523c01036df45ea116ef326e",part:"advice-container",class:"advice-container",ref:function(e){return t.recommendationRef=e}},h("div",{key:"be0d489e5fb8881a92b5858c971f4db200846beb",part:"advice-title",class:"advice-title"},translate[state.language].recommendations),this.currentTrek.advice&&h("div",{key:"e25822eff7f1e2d6ff41ae1444456d2cad6a2818",part:"current-advice-container",class:"current-advice-container"},h("span",{key:"b43de70d5eaa645a365f471ca73849e82c6b311f",part:"advice-icon",class:"icon",innerHTML:WarningIcon}),h("div",{key:"076d6aed9ab88794eb598c52433e1c431bc711a1",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&h("div",{key:"1fc74ae9b24032b01ec7fd98d1743c716449a145",part:"gear-container",class:"gear-container"},h("span",{key:"6fdb3407df03df3b6563bf855c7d0cf5efaece80",part:"gear-icon",class:"icon",innerHTML:BackpackIcon}),h("div",{key:"10cc4636701f990faf502bf6e88b0d21b6ae6dcb",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return h("div",{part:"label-container",class:"label-container"},h("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",{part:"label-name",class:"label-name",innerHTML:t.name})),h("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),state.currentSensitiveAreas&&state.currentSensitiveAreas.length>0&&h("div",{key:"e1430c6999edf66a1de69565f6e74482e95c7fc1",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},h("div",{key:"ec27793a46466e434cc1637a181350780dea9a24",part:"divider",class:"divider"}),h("div",{key:"85f662cf5767f590f1e9da5f97f3cb17a1c5acf9",part:"sensitive-areas-container",class:"sensitive-areas-container",ref:function(e){return t.sensitiveAreaRef=e}},h("div",{key:"93f91208e212670a20f7cb56c1e44e0b39cb9424",part:"ensitive-areas-title",class:"sensitive-areas-title"},translate[state.language].environmentalSensitiveAreas),h("div",{key:"de5daa2245052f028a7661352e713ececc28451b",part:"sensitive-areas-description",class:"sensitive-areas-description",innerHTML:translate[state.language].sensitiveAreasDescription}),state.currentSensitiveAreas.map((function(t){return h("grw-sensitive-area-detail",{exportparts:"sensitive-area-title-container,sensitive-area-color-container,sensitive-area-title,sensitive-area-description,sensitive-area-practice-container,sensitive-area-practice-title,sensitive-area-practices,sensitive-area-practice,sensitive-area-period-container,sensitive-area-period-title,sensitive-area-periods,sensitive-area-period,sensitive-area-contact-container,sensitive-area-contact-title,sensitive-area-contact-value,sensitive-area-rules-container,sensitive-area-rules-title,sensitive-area-rules,sensitive-area-rule,sensitive-area-rule-name,sensitive-area-rule-description",sensitiveArea:t})})))),state.currentInformationDesks&&state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&h("div",{key:"e9bf2202911f2106e7eed913ad6cac6862e949a7",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},h("div",{key:"0f7c972297729f57bee9257f131dcd942f6c4cc6",part:"divider",class:"divider"}),h("div",{key:"786a53e548f501d28263de700ab49d68ec13ed9e",part:"information-desks-container",class:"information-desks-container",ref:function(e){return t.informationPlacesRef=e}},h("div",{key:"7eed5bcf460b5144b87dcc4e3c3124ef0486026a",part:"information-desks-title",class:"information-desks-title"},translate[state.language].informationPlaces),h("div",{key:"c1ff82908e9a7c3dcf6f41da7188a6ae25e54081",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},h("div",{key:"3b5c259322df1c10e52259460d2a3154203a8c93",part:"swiper-wrapper",class:"swiper-wrapper"},state.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-information-desk",{exportparts:"information-desk-img-container,information-desk-img,information-desk-sub-container,information-desk-name,center-on-map-button,icon,label,information-desk-informations,phone-container,mail-container,link-container,information-desk-description-container,information-desk-description,handle-information-desk-description",informationDesk:e,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{key:"a16ace6cd6c37eeec4c0219ea5e5bc6f42260874",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&h("div",{key:"b17bf4022ee3c9aab4502ea190bcaaf56bd07246",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},h("div",{key:"e96537063c01248b7b48f10e20d9e755c2ec3e5f",part:"divider",class:"divider"}),h("div",{key:"5c917e87000d22e4034c960ea48dae6c6c2bcd9c",part:"accessibilities-container",class:"accessibilities-container",ref:function(e){return t.accessibilityRef=e}},h("div",{key:"0b657271584265e9485040360a9c9bfdda5b5d59",part:"accessibilities-title",class:"accessibilities-title"},translate[state.language].accessibility),this.currentTrek.disabled_infrastructure&&h("div",{key:"6e02f009a6735462101ea3b0c765c5b0dae48a44",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&h("div",{key:"ea2ba1e68a2c8a16bd0955fc797a5b01c0779554",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return h("div",{part:"accessibility-content-container",class:"accessibility-content-container"},h("img",{src:t.pictogram,alt:""}),h("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&h("div",{key:"d6bb069f7dacaafb5a457dd4cebdde567d3a26a0",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},h("div",{key:"ef98f922afa0dc6e655a2d04cfa9460618472585",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},translate[state.language].emergencyNumber),h("div",{key:"bdeb4aeab191a91ce4edd01578792d2c00247235",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},h("a",{key:"42e856247a47c4f4a7af84f17f3e43b2e18e8ca8",href:"tel:".concat(this.emergencyNumber.toString())},h("span",{key:"f5f98db6a141220fbf2c8fb739f293dc1f877c1f",part:"icon",class:"icon",innerHTML:CallIcon}),h("span",{key:"b73edc2e774f9ed27e6dc0c4e4354f2c11acc12a",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&h("div",{key:"99e2ddf97c48565cbed527919a118a8915e106f8",part:"accessibility-level-container",class:"accessibility-level-container"},h("div",{key:"7fb529ec780b95c30396e4b0e831811348f529b2",part:"accessibility-level-title",class:"accessibility-level-title"},translate[state.language].accessibilityLevel),h("div",{key:"4a90d61229dd75fc9c036e800f5b635dfb40003b",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&h("div",{key:"e4965d7d9fd70580c60e83b2fd23cb5dc3ac453f",part:"accessibility-slope-container",class:"accessibility-slope-container"},h("div",{key:"0689c69d2fe2bb66f23a641672280064dd7c9a94",part:"accessibility-slope-title",class:"accessibility-slope-title"},translate[state.language].accessibilitySlope),h("div",{key:"e29817a08430fdf17f4246b28fc5eb7fe18c4360",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&h("div",{key:"6293cf8bcbfb3ba615d0f5729edd19788107393d",part:"accessibility-width-container",class:"accessibility-width-container"},h("div",{key:"3aeb825a6f5c81564f363bb2a0c6f9da23d1552a",part:"accessibility-width-title",class:"accessibility-width-title"},translate[state.language].accessibilityWidth),h("div",{key:"dc2823909081e95cf1e12a01504b842a0cfb29b3",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&h("div",{key:"9eda6d3e4ba587ae0bdf0539dfe8e38551bfefb9",part:"accessibility-signage-container",class:"accessibility-signage-container"},h("div",{key:"d87871b771585da37654011fe7454f6479f7a198",part:"accessibility-signage-title",class:"accessibility-signage-title"},translate[state.language].accessibilitySignage),h("div",{key:"b7d535794336ae9684895e5c3a1469f5305debdc",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&h("div",{key:"9ae714a89e6f2a0369e893384da8b7fc9e89f7ba",part:"accessibility-covering-container",class:"accessibility-covering-container"},h("div",{key:"f5f7cec0e5ac87575246f2589171275fcd8ad977",part:"accessibility-covering-title",class:"accessibility-covering-title"},translate[state.language].accessibilityCovering),h("div",{key:"ff281034591ab3098a2af9e2ecd5e4d2c4d7b476",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&h("div",{key:"cff0700f6d0f4cf210d6bd220a0decd4b765c7e6",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},h("div",{key:"dea368c92a7a275127ca142d71dac06fcea8747e",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},translate[state.language].accessibilityExposure),h("div",{key:"acf301f63e152448f5cfbc9b3f62f185b5169507",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&h("div",{key:"657faeb3b0806952a1ceb0a7e0db280f2b404ba8",part:"accessibility-advice-container",class:"accessibility-advice-container"},h("div",{key:"e13a5149621e5a5fb8cb7ca94cc434c6c6e31e8e",part:"accessibility-advice-title",class:"accessibility-advice-title"},translate[state.language].accessibilityAdvices),h("div",{key:"2bac6f8e98cebfb8d245cd5c5f92933ea78a5c2e",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),this.options.touristicContents.visible&&h("div",{key:"ab4400ef728b0d06ff2eb8b4e122ec3b44a407bc",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},h("div",{key:"295932a6bcf4f5c70c336600d1aa9447e81f1ee2",part:"divider",class:"divider"}),h("div",{key:"5884854910d07ec337bef65347032d0a65ead6e4",part:"touristic-content-container",class:"touristic-content-container",ref:function(e){return t.touristicContentsRef=e}},h("div",{key:"18296b8976cf6220d9b9434addb2d7473978b443",part:"touristic-content-title",class:"touristic-content-title"},translate[state.language].touristicContents(state.touristicContentsData)),!state.trekTouristicContents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicContents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-content-card",{exportparts:"touristic-content-card,touristic-content-img-container,swiper-touristic-content,swiper-wrapper,swiper-slide,touristic-content-img,default-touristic-content-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-content-sub-container,touristic-content-category-container,touristic-content-category-img,touristic-content-category-name,touristic-content-name,touristic-content-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicContent:e,isInsideHorizontalList:true,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}}))))),this.options.touristicEvents.visible&&h("div",{key:"02991af10c2b6982f56491f0305d4c86e801aa9b",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},h("div",{key:"24eda30f8bc9a2a107dc96557a561b28c2bc806f",part:"divider",class:"divider"}),h("div",{key:"13e9dc162d5021646e07cf33e992eafbae33e417",part:"touristic-event-container",class:"touristic-event-container",ref:function(e){return t.touristicEventsRef=e}},h("div",{key:"9f02735b59105f7014862d641aebd49f1630d320",part:"touristic-event-title",class:"touristic-event-title"},translate[state.language].touristicEvents(state.touristicEventsData)),!state.trekTouristicEvents?h("div",{class:"loader-container"},h("span",{part:"loader",class:"loader"})):h(Fragment,null,h("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},h("div",{part:"swiper-wrapper",class:"swiper-wrapper"},state.trekTouristicEvents.map((function(e){return h("div",{part:"swiper-slide",class:"swiper-slide"},h("grw-touristic-event-card",{exportparts:"touristic-event-card,touristic-event-img-container,swiper-touristic-event,swiper-wrapper,swiper-slide,touristic-event-img,default-touristic-event-img,swiper-pagination,swiper-button-prev,swiper-button-next,touristic-event-sub-container,touristic-event-sub-container,touristic-event-type-img,touristic-event-type-name,touristic-event-name,touristic-event-date-container,touristic-event-date,touristic-event-more-detail-container,more-details-button",fontFamily:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true,colorSurfaceContainerLow:t.colorSurfaceContainerLow}))}))),h("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}}))))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&h("div",{key:"494c71b0095353f716564a8ef14f12f89c1e9cd2",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},h("div",{key:"f680c377e1194f2136914371c32bf0e831d6a1cc",part:"divider",class:"divider"}),h("div",{key:"490ce9c6e6c3fdc5bda69026c7d550d406be0f80",part:"weblinks-container",class:"weblinks-container"},h("div",{key:"38891f5e73aa5fde817cea64b0a5e219274aa4f2",part:"weblinks-title",class:"weblinks-title"},translate[state.language].learnMore),this.currentTrek.web_links.map((function(t){return h("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&h("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&h("div",{key:"66816c4b3cd95ce15f455ff302a043f07e89d393",part:"divider-and-source-container",class:"divider-and-source-container"},h("div",{key:"199885dbcb1c38a28a3804046382bcd6bd87032b",part:"divider",class:"divider"}),h("div",{key:"f40130e768448309bc69a5992d94c60b3ab896c3",part:"source-container",class:"source-container"},h("div",{key:"9c3770c70cd4c177255fa728accad098ee5e302d",part:"source-title",class:"source-title"},translate[state.language].sources),this.sources.map((function(t){return h("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&h("img",{src:t.pictogram,alt:""}),h("div",null,h("div",{part:"source-name",class:"source-name",innerHTML:t.name}),h("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&h("div",{key:"75fda50d6ba82cb3bb636566aa4833d6bcd0e795",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&h(Fragment,{key:"af592c9a38038ce4b6dde27d83b096b74fe86678"},this.showTouristicContentDetailsModal&&h("grw-touristic-content-provider",{key:"a270a189214c77dd45716ecc6368e6a5b24779ba",api:state.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&h("grw-touristic-event-provider",{key:"4740417d2fbec297aa58d21dc7fff8386dd89d68",api:state.api,"touristic-event-id":this.modalDetailsId})))};return t}();GrwTrekDetail.style=grwTrekDetailCss();var GrwTrekProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){state.poisData=0;state.touristicContentsData=0;state.touristicEventsData=0;state.currentPois=null;state.trekTouristicContents=null;state.trekTouristicEvents=null;if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){state.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,getDataInStore("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,a,n,s,o,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_,L,C,z,O,F,S,P;return __generator(this,(function(T){switch(T.label){case 0:if(!(t&&t.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];state.parentTrekId=t.id;state.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,getDataInStore("treks",state.parentTrekId)];case 2:i=T.sent();state.parentTrek=i;e.push.apply(e,i.children);T.label=3;case 3:r=[];e.forEach((function(t){r.push(getDataInStore("treks",t))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:a.currentTrekSteps=T.sent();T.label=5;case 5:n=state;return[4,handleOfflineProperty("difficulties")];case 6:n.difficulties=T.sent();s=state;return[4,handleOfflineProperty("routes")];case 7:s.routes=T.sent();o=state;return[4,handleOfflineProperty("practices")];case 8:o.practices=T.sent();c=state;return[4,handleOfflineProperty("themes")];case 9:c.themes=T.sent();l=state;return[4,handleOfflineProperty("cities")];case 10:l.cities=T.sent();d=state;return[4,handleOfflineProperty("accessibilities")];case 11:d.accessibilities=T.sent();u=state;return[4,handleOfflineProperty("ratings")];case 12:u.ratings=T.sent();p=state;return[4,handleOfflineProperty("ratingsScale")];case 13:p.ratingsScale=T.sent();f=state;return[4,handleOfflineProperty("labels")];case 14:f.labels=T.sent();h=state;return[4,handleOfflineProperty("sources")];case 15:h.sources=T.sent();m=state;return[4,handleOfflineProperty("accessibilitiesLevel")];case 16:m.accessibilitiesLevel=T.sent();b=state;return[4,handleOfflineProperty("touristicContentCategories")];case 17:b.touristicContentCategories=T.sent();v=state;return[4,handleOfflineProperty("touristicEventTypes")];case 18:v.touristicEventTypes=T.sent();g=state;return[4,handleOfflineProperty("networks")];case 19:g.networks=T.sent();w=state;return[4,handleOfflineProperty("poiTypes")];case 20:w.poiTypes=T.sent();return[4,handleOfflineProperty("informationDesks")];case 21:k=T.sent();y=k.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));state.currentInformationDesks=y;return[4,handleOfflineProperty("pois",["url"])];case 22:x=T.sent();A=x.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));state.currentPois=A;state.poisData=A.length;return[4,handleOfflineProperty("touristicContents",["url"])];case 23:_=T.sent();L=_.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));state.trekTouristicContents=L;state.touristicContentsData=L.length;return[4,handleOfflineProperty("touristicEvents",["url"])];case 24:C=T.sent();z=C.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));state.trekTouristicEvents=z;state.touristicEventsData=z.length;return[4,handleOfflineProperty("sensitiveAreas")];case 25:O=T.sent();F=O.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));state.currentSensitiveAreas=F;return[4,handleOfflineProperty("signages")];case 26:S=T.sent();P=S.filter((function(e){return t.signages.some((function(t){return t===e.id}))}));state.currentSignages=P;return[4,setFilesFromStore(t,imagesRegExp,["url"])];case 27:T.sent();state.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!state.difficulties?fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.routes?fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!state.practices?fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.themes?fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!state.accessibilities?fetch("".concat(state.api,"trek_accessibility/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!state.ratings?getTrekRatings(state.api,state.language,this.portals,this.init):new Response("null"));e.push(!state.ratingsScale?getTrekRatingsScale(state.api,state.language,this.init):new Response("null"));e.push(this.signages?getSignages(state.api,state.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[getSensitiveAreasNearTrek(state.api,state.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(state.api,"label/?language=").concat(state.language,"&fields=id,name,advice,pictogram,filter"),this.init),getSources(state.api,state.language,this.init),fetch("".concat(state.api,"trek_accessibility_level/?language=").concat(state.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),getPoisNearTrekCount(state.api,state.language,this.trekId,this.init),getInformationsDesks(state.api,state.language,this.init),getTrekNetwork(state.api,state.language,this.init),getTrek(state.api,state.language,this.trekId,this.init),getTouristicContentsNearTrekCount(state.api,state.language,this.trekId,this.init),getTouristicEventsNearTrekCount(state.api,state.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o;var c=this;var l=t[0],d=t[1],u=t[2],p=t[3],f=t[4],h=t[5],m=t[6],b=t[7],v=t[8],g=t[9],w=t[10],k=t[11],y=t[12],x=t[13],A=t[14],_=t[15],L=t[16],C=t[17];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;if(!(_&&_.children.length>0||state.parentTrekId))return[3,5];e=[];if(!(_.children.length>0))return[3,1];state.parentTrekId=_.id;state.parentTrek=_;e.push.apply(e,_.children);return[3,3];case 1:return[4,fetch("".concat(state.api,"trek/").concat(state.parentTrekId,"/?language=").concat(state.language,"&published=true&fields=name,children"),this.init).then((function(t){return t.json()}))];case 2:i=t.sent();state.parentTrek=i;e.push.apply(e,i.children);t.label=3;case 3:r=[];e.forEach((function(t){r.push(getTrek(state.api,state.language,t,c.init))}));a=state;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:a.currentTrekSteps=t.sent();t.label=5;case 5:n=__spreadArray([_.departure_city],_.cities,true);if(state.currentTrekSteps){state.currentTrekSteps.forEach((function(t){n=__spreadArray(__spreadArray(__spreadArray([],n,true),[t.departure_city],false),t.cities,true)}))}n=__spreadArray([],new Set(n.filter(Boolean)),true);if(state.cities){s=state.cities.map((function(t){return t.id}));n=n.filter((function(t){return!s.includes(t)}))}if(!(n.length>0))return[3,7];return[4,getCities(state.api,state.language,this.init,n).then((function(t){return t.json()}))];case 6:o=t.sent().results;if(o){if(state.cities){state.cities=__spreadArray(__spreadArray([],state.cities,true),o,true)}else{state.cities=o}}t.label=7;case 7:if(!state.cities){state.cities=[]}if(l){state.difficulties=l.results}if(d){state.routes=d.results}if(u){state.practices=u.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(p){state.themes=p.results}if(f){state.accessibilities=f.results}if(h){state.ratings=h.results}if(m){state.ratingsScale=m.results}state.currentSignages=b?b.results:[];if(k){state.accessibilitiesLevel=k.results}if(v){state.currentSensitiveAreas=v.results}if(g){state.labels=g.results}if(w){state.sources=w.results}if(A){state.networks=A.results}if(x){state.currentInformationDesks=x.results}if(y.count){state.poisData=y.count}if(L.count){state.touristicContentsData=L.count}if(C.count){state.touristicEventsData=C.count}if(_){state.currentTrek=_}if(state.poisData>0){Promise.all([getPoisNearTrek(state.api,state.language,this.trekId,this.init),fetch("".concat(state.api,"poi_type/?language=").concat(state.language,"&fields=id,pictogram"),this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.poiTypes=i.results}if(e){state.currentPois=e.results}})).catch((function(){state.poisData=0}))}if(state.touristicContentsData>0){Promise.all([getTouristicContentsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicContentCategory(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicContentCategories=i.results}if(e){state.trekTouristicContents=e.results}})).catch((function(){state.touristicContentsData=0}))}if(state.touristicEventsData>0){Promise.all([getTouristicEventsNearTrek(state.api,state.language,this.trekId,this.init),getTouristicEventType(state.api,state.language,null,this.init)]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1];if(i){state.touristicEventTypes=i.results}if(e){state.trekTouristicEvents=e.results}})).catch((function(){state.touristicEventsData=0}))}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){state.networkError=true}}};t.prototype.render=function(){return h(Host,{key:"c906a7bee2cf22789ff613bf3c429404a23775a0"})};return t}();var grwTreksListCss=function(){return":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px;-ms-flex:1 1 300px;flex:1 1 300px;max-width:350px}:host(.large-view) grw-trek-card{-ms-flex:1 1 100%;flex:1 1 100%;max-width:none}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}"};var GrwTreksList=function(){function t(t){registerInstance(this,t);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.displayOnlyOfflineTreks=false;this.isLargeView=false;this.grwApp=false;this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(state.currentTreks){this.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,this.step),true)}onChange("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.currentTreks){t.treksToDisplay=__spreadArray([],state.currentTreks.slice(0,t.step),true)}}));onChange("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(state.treksWithinBounds){t.treksToDisplay=__spreadArray([],state.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<state.treksWithinBounds.length){this.treksToDisplay=state.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=state.treksWithinBounds.length?state.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return h(Host,{key:"fc23416db0a6d67acae73d521024429dc0566627",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},state.treksWithinBounds&&h("div",{key:"8a74a4d35b095dd7dfa0c3d83e65c03266412817",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(state.treksWithinBounds.length," ").concat(state.treksWithinBounds.length>1?translate[state.language].treks:translate[state.language].trek)),h("div",{key:"5f81aff6bb9ef65fc3638bf5ab2c10a428028683",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){return h("grw-trek-card",{exportparts:"trek-card,trek-img-container,trek-img,trek-sub-container,trek-departure,trek-name,trek-themes-container,trek-theme,trek-icons-labels-container,trek-icon-label,trek-icon,trek-label",key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow,"grw-app":t.grwApp})}))),h("div",{key:"8dc46a4b655af7b8266262ca664ba31e039f2c78",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();GrwTreksList.style=grwTreksListCss();var GrwTreksProvider=function(){function t(t){registerInstance(this,t);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:getCacheMode(),signal:this.signal}}t.prototype.connectedCallback=function(){if(!state.api){state.api=this.api;state.languages=this.languages.split(",");state.language=state.languages[0]}state.portalsFromProviders=this.portals;state.inBboxFromProviders=this.inBbox;state.citiesFromProviders=this.cities;state.districtsFromProviders=this.districts;state.structuresFromProviders=this.structures;state.themesFromProviders=this.themes;state.routesFromProviders=this.routes;state.practicesFromProviders=this.practices;state.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();state.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};t.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,a,n,s,o,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,getAllDataInStore("treks")];case 1:t=l.sent();if(!(t&&t.length>0))return[3,11];e=state;return[4,this.handleOfflineProperty("difficulties")];case 2:e.difficulties=l.sent();i=state;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=state;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();a=state;return[4,this.handleOfflineProperty("themes")];case 5:a.themes=l.sent();n=state;return[4,this.handleOfflineProperty("cities")];case 6:n.cities=l.sent();s=state;return[4,this.handleOfflineProperty("accessibilities")];case 7:s.accessibilities=l.sent();o=state;return[4,this.handleOfflineProperty("labels")];case 8:o.labels=l.sent();c=state;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();state.durations=durations;state.lengths=lengths;state.elevations=elevations;return[4,this.handleOfflineProperty("treks")];case 10:t=l.sent();this.sortTreks(t);if(this.offline){t=t.filter((function(t){return t.offline}))}state.treks=t;state.currentTreks=t;return[3,12];case 11:state.networkError=true;l.label=12;case 12:return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t){return __awaiter(this,arguments,void 0,(function(t,e){var i;if(e===void 0){e=[]}return __generator(this,(function(r){switch(r.label){case 0:return[4,getAllDataInStore(t)];case 1:i=r.sent();return[4,setFilesFromStore(i,imagesRegExp,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(state.api,"trek_difficulty/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(state.api,"trek_route/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(state.api,"trek_practice/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(state.api,"theme/?language=").concat(state.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),getTrekAccessibility(state.api,state.language,this.portals,this.init),getLabel(state.api,state.language,this.portals,this.init),getDistricts(state.api,state.language,this.init),getTreksList(state.api,state.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){return __awaiter(t,[e],void 0,(function(t){var e,i,r,a,n,s,o,c,l;var d=t[0],u=t[1],p=t[2],f=t[3],h=t[4],m=t[5],b=t[6],v=t[7];return __generator(this,(function(t){switch(t.label){case 0:state.networkError=false;state.difficulties=d.results;state.routes=u.results;state.practices=p.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));state.themes=f.results;state.accessibilities=h.results;state.labels=m.results;state.districts=b.results;state.durations=durations;state.lengths=lengths;state.elevations=elevations;e=new Set;if(v&&v.results){v.results.forEach((function(t){if(t.departure_city){e.add(t.departure_city)}if(t.cities){t.cities.forEach((function(t){return e.add(t)}))}}))}i=[];if(!(e.size>0))return[3,5];t.label=1;case 1:t.trys.push([1,4,,5]);return[4,getCities(state.api,state.language,this.init,Array.from(e))];case 2:r=t.sent();return[4,r.json()];case 3:a=t.sent();i=a.results||[];return[3,5];case 4:n=t.sent();console.error("Failed to load cities",n);return[3,5];case 5:state.cities=i;s=[];o=v.results.filter((function(t){return t.departure_geom!==null}));c=0;t.label=6;case 6:if(!(c<o.length))return[3,9];return[4,trekIsAvailableOffline(o[c].id)];case 7:l=t.sent();s.push(Object.assign(Object.assign({},o[c]),{offline:l}));t.label=8;case 8:c++;return[3,6];case 9:this.sortTreks(s);state.treks=s;state.currentTreks=s;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.handleOfflineTreks()];case 1:t.sent();return[2]}}))}))}))};t.prototype.render=function(){return h(Host,{key:"b89d70f3abfd3b072342261b4d6c34e813746646"})};return t}();export{GrwCommonButton as grw_common_button,GrwFilters as grw_filters,GrwLoader as grw_loader,GrwMap as grw_map,GrwOfflineConfirmModal as grw_offline_confirm_modal,GrwOutdoorCourseDetail as grw_outdoor_course_detail,GrwOutdoorCourseProvider as grw_outdoor_course_provider,GrwOutdoorSiteDetail as grw_outdoor_site_detail,GrwOutdoorSiteProvider as grw_outdoor_site_provider,GrwOutdoorSitesList as grw_outdoor_sites_list,GrwOutdoorSitesProvider as grw_outdoor_sites_provider,GrwSearch as grw_search,GrwSegmentedSegment as grw_segmented_segment,GrwSelectLanguage as grw_select_language,GrwSwitch as grw_switch,GrwTouristicContentsList$1 as grw_touristic_contents_list,GrwTouristicContentsProvider as grw_touristic_contents_provider,GrwTouristicContentsList as grw_touristic_events_list,GrwTouristicEventsProvider as grw_touristic_events_provider,GrwTrekDetail as grw_trek_detail,GrwTrekProvider as grw_trek_provider,GrwTreksList as grw_treks_list,GrwTreksProvider as grw_treks_provider};
|
|
4
4
|
//# sourceMappingURL=grw-common-button_23.entry.js.map
|