@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 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?i(e.value):n(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(i=0)),i)try{if(r=1,n&&(o=s[0]&2?n["return"]:s[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;if(n=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;n=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];n=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-BLAgqYtk.system.js","./p-B6BvITiN.system.js","./p-CjEUOB-c.system.js","./p-BIqgYRjy.system.js","./p-BIgWETXd.system.js","./p-SVBG_B0V.system.js","./p-OZ0h5Iqs.system.js","./p-Cj1BsxU1.system.js","./p-Pgu1g3CX.system.js","./p-CUHAiJJU.system.js"],(function(e){"use strict";var t,i,r,n,o,a,s,c,l,d,u,p,f,h,m,b,v,g,w,k,y,x,A,_,z,C,M,F,P,O,B,T,j,E,S,N,Y,I,H,G,Z,D,R,q,V,Q,U,X,J,W,K,$,ee,te,ie,re,ne,oe,ae,se,ce,le,de,ue,pe,fe,he,me,be,ve,ge,we,ke,ye,xe,Ae,_e,ze,Le,Ce,Me,Fe,Pe,Oe,Be,Te,je,Ee,Se,Ne,Ye,Ie,He,Ge,Ze;return{setters:[function(e){t=e.r;i=e.h;r=e.H;n=e.j;o=e.f;a=e.i;s=e.e;c=e.d;l=e.F},function(e){d=e.t},function(e){u=e.s;p=e.o},function(e){f=e.t;h=e.h;m=e.d;b=e.f;v=e.o;g=e.e;w=e.j;k=e.c;y=e.C;x=e.u;A=e.v;_=e.F;z=e.D;C=e.k;M=e.l;F=e.m;P=e.g;O=e.s;B=e.i;T=e.a;j=e.w;E=e.x;S=e.y;N=e.z},function(e){Y=e.r;I=e.L;H=e.c;G=e.a;Z=e.h;D=e.g;R=e.w;q=e.d;V=e.e},function(e){Q=e.c;U=e.g;X=e.a;J=e.b;W=e.d;K=e.e;$=e.f;ee=e.h;te=e.i;ie=e.j;re=e.k;ne=e.l;oe=e.m;ae=e.n;se=e.o;ce=e.p;le=e.q;de=e.t},function(e){ue=e.b;pe=e.c;fe=e.d;he=e.a;me=e.f;be=e.S;ve=e.N;ge=e.P;we=e.K},function(e){ke=e.f;ye=e.M;xe=e.C;Ae=e.D;_e=e.e;ze=e.g;Le=e.h;Ce=e.c;Me=e.i;Fe=e.j;Pe=e.k;Oe=e.l;Be=e.m;Te=e.n;je=e.a;Ee=e.o;Se=e.p},function(e){Ne=e.T;Ye=e.O;Ie=e.M},function(e){He=e.a;Ge=e.b;Ze=e.c}],execute:function(){var De='<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 Re='<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 qe=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 Ve=e("grw_common_button",function(){function e(e){t(this,e);this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{key:"20934a73599663dde31e5d2e44e7d4e07c6abb3a",style:{"--font-family":this.fontFamily}},i("button",{key:"10660a565bebc2e2d68197291b58e4f0f707439f",part:"common-button",class:"common-button",onClick:function(){return e.action()}},i("span",{key:"89ac4803284dec581c71da1622b5dea2f86254b0",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?De:Re}),i("span",{key:"96d918bc3f3d02424acd7050131bf8ddedc12406",part:"common-button-label",class:"label"},this.name)))};return e}());Ve.style=qe();var Qe=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 Ue=e("grw_filters",function(){function e(e){t(this,e);this.resetFilter=n(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.fontFamily="Roboto"}e.prototype.handleEraseTreksFilters=function(){f.forEach((function(e){u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;u.currentTreks=h();this.resetFilter.emit()};e.prototype.handleOkTreksFilters=function(){this.handleFilters()};e.prototype.handleSelectedSegment=function(e){this.selectedSegment=e};e.prototype.handleSegment=function(e){if(u.mode==="treks"){return f.filter((function(t){return t.segment===e})).some((function(e){return u[e.property]&&u[e.property].length>0}))}else if(u.mode==="touristicContents"){return m.filter((function(t){return t.segment===e})).some((function(e){return u[e.property]&&u[e.property].length>0}))}else if(u.mode==="touristicEvents"){return b.filter((function(t){return t.segment===e})).some((function(e){return u[e.property]&&u[e.property].length>0}))}else if(u.mode==="outdoor"){return v.filter((function(t){return t.segment===e})).some((function(e){return u[e.property]&&u[e.property].length>0}))}};e.prototype.handleEraseTouristicContentsFilters=function(){m.forEach((function(e){u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentTouristicContents=g();this.resetFilter.emit()};e.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};e.prototype.handleEraseTouristicEventsFilters=function(){b.forEach((function(e){u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentTouristicEvents=w();this.resetFilter.emit()};e.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};e.prototype.handleEraseOutdoorSitesFilters=function(){v.forEach((function(e){u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedLocationFilters=0;u.currentOutdoorSites=k();this.resetFilter.emit()};e.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};e.prototype.render=function(){var e=this;return i(r,{key:"7cb0827af20aec71998635f772961892bae64782",style:{"--font-family":this.fontFamily}},i("div",{key:"7ca850687d5c240429364fce16a2e985f4d14a69",part:"options-container",class:"options-container"},i("div",{key:"0608d1e60c4e3a3466f16907ed1a87a1a0500cbf",part:"filters-container",class:"filters-container"},u.mode==="treks"&&i("div",{key:"bb266f50acbf0c404f7ac64dfde538f8327db50b",part:"filters-treks-container",class:"filters-treks-container"},i("div",{key:"68e8bffaf9784038487f1383e3c26d4a7e7ec8d6",part:"filters-options-container",class:"filters-options-container"},u.treksWithinBounds&&i("div",{key:"d22377ccd74aa51463270f5bd922bd15159aeff7",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.treksWithinBounds.length," ").concat(u.treksWithinBounds.length>1?d[u.language].treks:d[u.language].trek)),i("div",{key:"d99afb8765bb918f10d2662b4b525c3bccf94014",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{key:"1e976bf1b4f85e33e5861653d19311e019a9534b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTreksFilters()}},d[u.language].erase),i("button",{key:"761793867f49f477f013946e1eaefd09e1d29a2a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTreksFilters()}},d[u.language].ok))),i("div",{key:"ac29966072168933f7905845d255dcf058dcda82",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{key:"0d8b89703a4286d2287b8a86c6bf7709faa8e615",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},d[u.language].home.segment.treks," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{key:"1c57830b534b5f2fe9e9a3d8c7fdb70840ccdb3a",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},d[u.language].themes," ",u.selectedThemesFilters!==0&&"(".concat(u.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{key:"3644ee38d8f452a6ec6f3a3a2fbdeb2278ed25f8",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},d[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{key:"1c6468c5daf78faa0e1c81896896951f2d0d9d12",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},u["practices"].length>0&&i("div",{key:"0a63d2022609cabcd4811ba0a3465a6b62d1222b",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"99a5b02f8d81082d6fda024ea3cf9e943f5cb6e1",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderPractices})),u["difficulties"].length>0&&i("div",{key:"00867ddca97044ae17ff7f404d50116c7c7a1571",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"cfbcd5a30e22caa42708ff47fb868bd63a77c814",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderDifficulties})),u["durations"].length>0&&i("div",{key:"d1eec8a2747f52e7ab23d06a5317640904cb8932",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"6239dc492b7203c008d24a91faaa03b3d5234a82",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderDurations})),u["lengths"].length>0&&i("div",{key:"108e2a5a071b8b1d2407873efe5275a2b5548329",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"b0b25767deb8c55678e34be1d14677182b86e0ab",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderLengths})),u["elevations"].length>0&&i("div",{key:"23c722fa4f015a7d1e962b7e13a352770362c366",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"2a9bc4968ccb250ae43dc36d3064283e2ea631a8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderElevations})),u["routes"].length>0&&i("div",{key:"081b49faab7f24cd5444a5f3856d9a1ae75fae0e",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"9da94f9ce99386a1a3fa9938f85fcdea3cfccfe4",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderRoutes})),u["accessibilities"].length>0&&i("div",{key:"abc8b5530dbaaee862712b0400f9694504e225f7",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"b9dac8b1b9c93051920f5120f73f758c18ee2867",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderAccessibilities})),u["labels"].length>0&&i("div",{key:"b514da44c0a95b792d527e88c7d0e9a74cf70635",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"71be7fb25371586f1ad1b44f136be028582bd5f9",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},u["themes"].length>0&&i("div",{key:"0c0ae67b8266db5364a746edde0dd74b8c81535c",part:"",class:"filter-container"},i("grw-filter",{key:"39bec081b3ca8506378a7478f8d27a4d88589b8a",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].themes,filterPlaceholder:d[u.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},u["districts"].length>0&&i("div",{key:"d3832fe24e8925133b2e7044675b88b3a84668d4",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"7bd9147852d6d8e5b1aa4e407636dace41b45950",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:d[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{key:"f798c02a9811f4726a6efdd20bb29e789c64a435",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"a2497727878f08ca6833c8b8cf14461984ea91e2",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].crossedCities,filterPlaceholder:d[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="touristicContents"&&i("div",{key:"7ff7afa469ec1f70a2c65891c40673b749d01f03",part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},i("div",{key:"d26d5e679ee89784aa7bfab9880733aea80cb25b",part:"filters-options-container",class:"filters-options-container"},u.touristicContentsWithinBounds&&i("div",{key:"ffa578e5c8700a02f3532d7cfe73786adf99600c",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.touristicContentsWithinBounds.length," ").concat(u.touristicContentsWithinBounds.length>1?d[u.language].home.touristicContents:d[u.language].home.touristicContent)),i("div",{key:"3b2dd444be31e090a93a77884187533d706ac54d",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{key:"22b85f396c036f1c53538cdbfb6cf4eb6bfed91a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicContentsFilters()}},d[u.language].erase),i("button",{key:"6c3ceb7d89b206396b68c3a40be88b9056846ab7",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicContentsFilters()}},d[u.language].ok))),i("div",{key:"7775cc54df6aa5ddcffcc6b761c6cd1426d86821",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{key:"e85dd1dc7601c99140285bf2dd5ed8a0d804888d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},d[u.language].services," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{key:"3cdf68426f8722b260587e06e3b7029f22690e8d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},d[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{key:"a5b816a3e56c04f7b3d80d9a58b0d96c64e87626",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["touristicContentCategories"].length>0&&i("div",{key:"2c39f1384e2b49599b7eb040a0a2f5e7dbeaf52a",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"e26190a8d6d43872b041e6519919e069a2230ffb",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},u["districts"].length>0&&i("div",{key:"326e0471f4d065f86a4e799b0369490eb2c6089a",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"1c6c2742d7f33f13c8fc9268096d1e5f54e44369",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:d[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{key:"491dc0f4101c21f6b396a3e529826a104b1e5044",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"d1774b6bd54a39d60745f5e819d6a65ebbd76fac",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].crossedCities,filterPlaceholder:d[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="touristicEvents"&&i("div",{key:"c348864948b70fd86e2f787c8e4663bbcd7bd797",part:"filters-touristic-events-container",class:"filters-touristic-events-container"},i("div",{key:"164ab5e697e32fdc98b4ace8d04058e8fb2a29f0",part:"filters-options-container",class:"filters-options-container"},u.touristicEventsWithinBounds&&i("div",{key:"845d53b5e85f258d0ee7adc53810ad49fd73d93b",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.touristicEventsWithinBounds.length," ").concat(u.touristicEventsWithinBounds.length>1?d[u.language].home.touristicEvents:d[u.language].home.touristicEvent)),i("div",{key:"a103291d00f28cd1edec0be589ed968c123963cf",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{key:"cd0084e1b079006aa84459517dd05d8360c805b1",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseTouristicEventsFilters()}},d[u.language].erase),i("button",{key:"90d9a9543e6d9543ec666b06d2eb072a71f6d7fc",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkTouristicEventsFilters()}},d[u.language].ok))),i("div",{key:"a028044dc52dc04d58663163fbccd742699ab31f",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{key:"7d37a03878eea6fdfc7be4b8c84eabdf85e8023f",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},d[u.language].services," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{key:"4cf188f9d3c50482d5cd515941929c4d7fb307cd",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},d[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{key:"135f6b451a25254c81920a89ecb511834cbacda3",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["touristicEventTypes"].length>0&&i("div",{key:"9c62a23f0c9d70c9ec60a0ef1440c567a0df3b3c",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"5414ba2979bf112516d42fde4b2de23e3ed37936",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].type,filterPlaceholder:d[u.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-events-location-segment-container"},u["districts"].length>0&&i("div",{key:"aa6e6933f9394e9448274f782cfa81a271510bd0",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"dac40ec18d9dc3f1c00e45f80c8150217c47d8bf",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:d[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{key:"a80b5c285f00dcc89f131c048742b7c8f170a410",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"678695182e258c014b061fadf2f994c60f3a5b1e",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].crossedCities,filterPlaceholder:d[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),u.mode==="outdoor"&&i("div",{key:"0aca784169b67e5f7bb08f427b7b9579d5c918b3",part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},i("div",{key:"59c1b969199440613d994dd04750fa248f5902a9",part:"filters-options-container",class:"filters-options-container"},u.outdoorSitesWithinBounds&&i("div",{key:"119faef0178c050e66b43ad2520aec585e77910c",part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(u.outdoorSitesWithinBounds.length," ").concat(u.outdoorSitesWithinBounds.length>1?d[u.language].home.outdoorSites:d[u.language].home.outdoorSite)),i("div",{key:"8638027f4f673ea2453a23e46e62d5a2030586eb",part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{key:"2ffd27a1bdc91be1bd328db313dc00b05a8cf85b",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleEraseOutdoorSitesFilters()}},d[u.language].erase),i("button",{key:"c6a2adf9d00c0e2b112624942a6a4d6c80a6139a",part:"filter-option-button",class:"filter-option-button",onClick:function(){return e.handleOkOutdoorSitesFilters()}},d[u.language].ok))),i("div",{key:"8cc082dad59e4e304ab19d8303ee3b703faab76d",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{key:"ea4cef9ee95e5e19495d13767150a632a30e314d",part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},d[u.language].home.segment.outdoorSites," ",u.selectedActivitiesFilters!==0&&"(".concat(u.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{key:"3807ad0c400b66c30ae3cd7ae8483b4b16699df0",part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},d[u.language].themes," ",u.selectedThemesFilters!==0&&"(".concat(u.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{key:"41833fbbe64154b7b8e8e9bdaec14f7cbdab6202",part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},d[u.language].location," ",u.selectedLocationFilters!==0&&"(".concat(u.selectedLocationFilters,")"))),i("div",{key:"0d72e1572521e536593e9cf928b47664074febde",part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-activities-segment-container"},u["outdoorPractices"].length>0&&i("div",{key:"2d57106ff3c8a996927aa12f12485ac6e3667f5a",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"34d61290f728c3bb89122f7bd39c52847f0c16a5",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].practice,filterPlaceholder:d[u.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),u["outdoorSiteTypes"].length>0&&i("div",{key:"d624787d8a82df90196aa684d0ab314bcc454583",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"1f786587372e88148d3386585a6de96e3a44c121",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:d[u.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},u["themes"].length>0&&i("div",{key:"74df99c7f261902662125f04dfff5d58377735cf",part:"",class:"filter-container"},i("grw-filter",{key:"ab3055ff3652cfbd72a3020bd14f798385fafd57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].themes,filterPlaceholder:d[u.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"outdoor-sites-location-segment-container"},u["districts"].length>0&&i("div",{key:"e541bb845bb3df017711368796e7262fe6eec179",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"3b1266c88bbcad0a2953065c81ba12fff62defc8",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:d[u.language].placeholderDistricts})),u["cities"].length>0&&i("div",{key:"5d8f67bb98692023f243d151b6ec05244827155c",part:"filter-container",class:"filter-container"},i("grw-filter",{key:"5beca62535975404d512fc7ebd9c7af320071b57",exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:d[u.language].crossedCities,filterPlaceholder:d[u.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),i("div",{key:"83051ed904bf12db211d03a90576213d510d14aa",part:"back-filters-container",class:"back-filters-container",onClick:function(){return e.handleFilters()}})))};return e}());Ue.style=Qe();var Xe=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 Je=e("grw_loader",function(){function e(e){t(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}e.prototype.render=function(){return i(r,{key:"7bfffe55c6ad0d9e710d0ecac80eae6e1d2b82fb",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},i("span",{key:"ff3f0d45fde66ff7fe393bee41d8f74ca8e672d4",part:"loader",class:"loader"}))};return e}());Je.style=Xe();var We={exports:{}};var Ke;function $e(){if(Ke)return We.exports;Ke=1;(function(e,t){(function(t,i){{e.exports=t(Y())}if(typeof i!=="undefined"&&i.L){t(i.L)}})((function(e){e.locales={};e.locale=null;e.registerLocale=function t(i,r){e.locales[i]=e.Util.extend({},e.locales[i],r)};e.setLocale=function t(i){e.locale=i};return e.i18n=e._=function t(i,r){if(e.locale&&e.locales[e.locale]&&typeof e.locales[e.locale][i]!=="undefined"){i=e.locales[e.locale][i]}try{i=e.Util.template(i,r)}catch(e){}return i}}),window)})(We);return We.exports}$e();var et={exports:{}};var tt;function it(){if(tt)return et.exports;tt=1;(function(e,t){!function(e){e()}((function(){!function(t,i){e.exports=t(Y()),void 0!==i&&i.L&&t(i.L)}((function(e){return e.locales={},e.locale=null,e.registerLocale=function(t,i){e.locales[t]=e.Util.extend({},e.locales[t],i)},e.setLocale=function(t){e.locale=t},e.i18n=e._=function(t,i){e.locale&&e.locales[e.locale]&&e.locales[e.locale][t]&&(t=e.locales[e.locale][t]);try{t=e.Util.template(t,i)}catch(e){}return t}}),window);var t=6e4,i=60*t,r=24*i;function n(e){var n=Math.floor(e/r),o=Math.floor((e-n*r)/i),a=Math.floor((e-n*r-o*i)/t),s=Math.round((e-n*r-o*i-a*t)/1e3);return 60===s&&(a++,s=0),60===a&&(o++,a=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+a.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function o(e,t){var i=b("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function a(e,t,i){return false===t?Promise.resolve():i instanceof Promise?i:new Promise((function(t,i){var r=document.createElement("script");r.addEventListener("load",t,{once:true}),r.src=e,document.head.appendChild(r)}))}function s(e,t){t.classed("canvas-path",true),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()}function c(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e}function l(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))}function d(e,t){e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))}function u(e,t,i){return(i?l:d).call(null,e,t)}function p(e,t,i){t&&d(e,t),i&&l(e,i)}function f(e,t,i){return void 0===i?L.DomUtil.getStyle(e,t):e.style.setProperty(t,i)}function h(e,t,i,r){return f(e,t,r?i:"")}function m(e,t,i,r){return e[r?"on":"off"](t,i)}function b(e,t,i,r){var n=L.DomUtil.create(e,t||"");return i&&w(n,i),r&&v(r,n),n}function v(e,t){return e.appendChild(t)}function g(e,t,i){return e.insertAdjacentElement(i,t)}function w(e,t){for(var i in t)e.setAttribute(i,t[i])}function k(e,t){return(t||document).querySelector(e)}var y=L.DomEvent.on,x=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(e,t){for(var i in e)t(e[i],i)}var C=Object.freeze({__proto__:null,formatTime:n,saveFile:o,lazyLoader:a,drawCanvas:s,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:z}),M={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(e){var t=e.height,i=e.xAttr,r=e.yAttr,n=e.scaleX,o=e.scaleY,a=e.interpolation,s=void 0===a?"curveLinear":a;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(e){return e.xDiagCoord=n(e[i])})).y0(t).y1((function(e){return o(e[r])}))},P=function(e){var t=e.name,i=e.color,r=e.strokeColor,n=e.strokeOpacity,o=e.fillOpacity,a=d3.create("svg:path");return t&&a.classed(t,true),a.style("pointer-events","none"),a.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",o||"0.8"),a},O=function(e){var t=e.type,i=void 0===t?"axis":t,r=e.tickSize,n=void 0===r?6:r,o=e.tickPadding,a=void 0===o?3:o,s=e.position,c=e.height,l=e.width,d=e.axis,u=e.scale,p=e.ticks,f=e.tickFormat,h=e.label,m=e.labelX,b=e.labelY,v=e.name,g=void 0===v?"":v,w=e.onAxisMount;return function(e){var t=0,r=0;"bottom"==s&&(r=c),"right"==s&&(t=l),"x"==d&&"grid"==i?n=-c:"y"==d&&"grid"==i&&(n=-l);var o=d3["axis"+s.replace(/\b\w/g,(function(e){return e.toUpperCase()}))]().scale(u).ticks(p).tickPadding(a).tickSize(n).tickFormat(f),v=e.append("g").attr("class",[d,i,s,g].join(" ")).attr("transform","translate("+t+","+r+")").call(o);return h&&v.append("svg:text").attr("x",m).attr("y",b).text(h),w&&v.call(w),v}},B=function(e){return e.type="grid",O(e)},T=function(e){var t=e.theme,i=e.xCoord,r=void 0===i?0:i,n=e.yCoord,o=void 0===n?0:n,a=e.labels,s=void 0===a?{}:a,c=e.item,l=void 0===c?{}:c,d=e.length,u=void 0===d?0:d;return function(e){e.attr("class","height-focus-group");var i,n=e.select(".height-focus.line"),a=e.select(".height-focus.circle-lower"),c=e.select(".height-focus-label");return n.node()||(n=e.append("svg:line")),a.node()||(a=e.append("svg:circle")),c.node()||(c=e.append("svg:text")),isNaN(r)||isNaN(o)||(a.attr("class",t+" height-focus circle-lower").attr("transform","translate("+r+","+o+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",t+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",o).attr("y2",u),c.attr("class",t+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(s).sort((function(e,t){return s[e].order-s[t].order})).forEach((function(e){(i=c.select(".height-focus-"+s[e].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+s[e].name).attr("dy","1.5em")),i.text("function"!=typeof s[e].value?s[e].value:s[e].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),e}},j=function(e){var t=e.name,i=e.label,r=e.width,n=e.height,o=e.margins,a=void 0===o?{}:o,s=e.color,c=e.path;return function(e){return e.attr("class","legend-item legend-"+t.toLowerCase()).attr("data-name",t),e.on("click.legend",(function(){return d3.select(e.node().ownerSVGElement||e).dispatch("legend_clicked",{detail:{path:c.node(),name:t,legend:e.node(),enabled:!c.classed("leaflet-hidden")}})})),e.append("svg:rect").attr("x",r/2-50).attr("y",n+a.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),e.append("svg:text").text(L._(i||t)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+a.bottom/2).attr("dy","0.75em"),e}},E=function(e){var t=e.xCoord,i=e.yCoord,r=e.width,n=e.height,o=e.labels,a=void 0===o?{}:o,s=e.item,c=void 0===s?{}:s;return function(e){var o=e.select(".mouse-focus-line"),s=e.select(".mouse-focus-label");o.node()||(o=e.append("svg:line")),s.node()||(s=e.append("g"));var l=s.select(".mouse-focus-label-rect"),d=s.select(".mouse-focus-label-text");l.node()||(l=s.append("svg:rect")),d.node()||(d=s.append("svg:text"));var u,p=0,f=0,h={width:0,height:0};try{h=d.node().getBBox()}catch(t){return e}return t&&(p=t+(t<r/2?10:-h.width-10)),i&&(f=Math.max(i-h.height,L.Browser.webkit?0:-1/0)),o.attr("class","mouse-focus-line").attr("x2",t).attr("y2",0).attr("x1",t).attr("y1",n),s.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(a).sort((function(e,t){return a[e].order-a[t].order})).forEach((function(e){(u=d.select(".mouse-focus-label-"+a[e].name)).size()||(u=d.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+a[e].name).attr("dy","1.5em")),u.text("function"!=typeof a[e].value?a[e].value:a[e].value(c))})),d.select("tspan").attr("dy","1em"),d.selectAll("tspan").attr("x",p),e}},S=function(e){var t=e.height,i=e.width;return function(e){e.data([{x:0,y:t}]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"}));var r=e.selectAll(".horizontal-drag-rect").data([{w:i}]),n=e.selectAll(".horizontal-drag-line").data([{w:i}]),o=e.selectAll(".horizontal-drag-label").data([{w:i-8}]),a=e.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),o.exit().remove(),a.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(e){return e.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(e){return e.w})),o.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(o).attr("x",(function(e){return e.w})),a.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(a).attr("d",d3.symbol().type((function(e){return e.type})).size((function(e){return e.size}))).attr("transform",(function(e){return"translate("+e.x+","+e.y+") rotate("+e.angle+")"})),e}},N=function(e){var t=e.point,i=e.height,r=e.width,n=e.x,o=e.y;return function(e){return isNaN(n)||isNaN(o)||(t.item&&t.item.property("isConnected")||(t.position=t.position||"bottom",t.item=e.append("g"),t.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),t.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),t.label&&t.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),t.item.datum({pos:t.position,x:n,y:o}).attr("class",(function(e){return"point "+e.pos})).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})),t.item.select("line").datum({y2:{top:-o,bottom:i-o}[t.position],x2:{left:-n,right:r-n}[t.position]||0}).attr("y2",(function(e){return e.y2})).attr("x2",(function(e){return e.x2})),t.label&&t.item.select("text").text(t.label)),e}},I=function(e){var t=e.min,i=e.max,r=e.attr,n=e.name,o=e.forceBounds,a=e.scale;return function(e){r=r||n,a&&a.attr&&(r=a.attr);var s=e&&e.length?d3.extent(e,(function(e){return e[r]})):[0,1];return void 0!==t&&(t<s[0]||o)&&(s[0]=t),void 0!==i&&(i>s[1]||o)&&(s[1]=i),s}},H=function(e){var t=e.axis;return function(e,i){return"x"==t?[0,e]:"y"==t?[i,0]:void 0}},G=function(e){var t=e.data,i=e.attr,r=e.min,n=e.max,o=e.forceBounds,a=e.range;return d3.scaleLinear().range(a).domain(I({min:r,max:n,attr:i,forceBounds:o})(t))},Z=function(e){var t=e.width,i=e.height,r=e.margins,n=void 0===r?{}:r,o=t-n.left-n.right,a=i-n.top-n.bottom,s=d3.create("svg:svg").attr("class","background"),c=s.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(E({xCoord:0,yCoord:0,height:a,width:o,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:s,g:c,panes:l,utils:b,scale:function(e){return{x:G(e.x),y:G(e.y)}},_resize:function(e){var t=e.width,i=e.height,r=e.margins,n=void 0===r?{}:r,o=e.ruler,a=t-n.left-n.right,d=i-n.top-n.bottom;s.attr("viewBox","0 0 ".concat(t," ").concat(i)).attr("width",t).attr("height",i),c.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&f.style("transform","translate("+n.left+"px,"+n.top+"px)"),u.attr("x",0).attr("y",0).attr("width",a).attr("height",d),p.attr("width",a).attr("height",d),f.attr("width",a).attr("height",d),o&&l.ruler.call(S({height:d,width:a})),l.brush.call(m.extent([[0,0],[a,d]])),l.brush.select(".overlay").attr("cursor",null),v._width=a,v._height=d,v.svg.dispatch("resize",{detail:{width:a,height:d}})},pane:function(e){return l[e]||(l[e]=c.append("g").attr("class",e)),l[e]},get:function(e){return b[e]}};return v._resize({width:t,height:i,margins:n}),v},D=Object.freeze({__proto__:null,Colors:M,Area:F,Path:P,Axis:O,Grid:B,PositionMarker:T,LegendItem:j,Tooltip:E,Ruler:S,CheckPoint:N,Domain:I,Range:H,Scale:G,Bisect:function(e){var t=e.data,i=void 0===t?[0,1]:t,r=e.scale,n=e.x,o=e.attr;return d3.bisector((function(e){return e[o]})).left(i,r.invert(n))},Chart:Z}),R=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(e,t){var i=this;this.options=e,this.control=t,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=e.dragging,this._zoomEnabled=e.zooming;var r=this._chart=Z(e);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],t.on("eletrack_added",(function(e){i._maskGaps.push(e.index),t.once("eledata_updated",(function(e){return i._maskGaps.push(e.index)}))}))},update:function(e){return e&&(e.data&&(this._data=e.data),e.options&&(this.options=e.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var e=this;return function(t){return t.append((function(){return e._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(e){var t=this._paths[e],i=this._props.areas[e];t.datum(this._data).attr("d",F(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),t.classed("leaflet-hidden")||(this.options.preferCanvas?s(this._context,t):this._area.append((function(){return t.node()})))},_hasActiveLayers:function(){var e=this._paths;for(var t in e)if(!e[t].classed("leaflet-hidden"))return true;return false},_initBrush:function(e){var t=this,i=function(e){if(t._data.length&&("brush"!=e.type||e.sourceEvent)){var i=t._chart.panes.brush.select(".overlay").node(),r=d3.pointers(e,i)[0][0],n=t._data[t._findIndexForXCoord(r)];t.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(e){return t._brushEnabled&&!e.shiftKey&&!e.button})).on("end.update",(function(e){if(t._data.length){var i=e.selection;if(i){var r=t._findIndexForXCoord(i[0]),n=t._findIndexForXCoord(i[1]);t.fire("dragged",{dragstart:t._data[r],dragend:t._data[n]})}}})).on("brush.update",i),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",i)},_initClipper:function(){var e=this,t=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(t){return e._zoomEnabled&&(t.shiftKey||4==t.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&t.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",true),e._mask&&e._point.attr("mask","url(#"+e._mask.attr("id")+")")),e.zooming=true})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(e._container.classed("zoomed",false),e._mask&&e._point.attr("mask",null)),e.zooming=false,t.style("cursor","")})).on("zoom",(function(t){e.zooming=false,e._updateScale(),e.zooming=true,e._scales.distance=e._x=t.transform.rescaleX(e._x),e._scales.time&&(e._scales.time=t.transform.rescaleX(e._scales.time)),e._resetDrag(),t.sourceEvent&&"mousemove"==t.sourceEvent.type&&e._hideDiagramIndicator(),e.fire("zoom")})),t.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var e=this;this._container.on("legend_clicked",(function(t){var i=t.detail,r=i.path,n=i.legend,o=i.name,a=i.enabled;if(r){var s=k("text",n),c=k("rect",n);h(s,"text-decoration-line","line-through",a),h(c,"fill-opacity","0",a),u(r,"leaflet-hidden",a),e._updateArea(),e.fire("elepath_toggle",{path:r,name:o,legend:n,enabled:a})}}))},_initRuler:function(){var e=this;if(this.options.ruler){var t=d3.format(".0f"),i=this._drag;i.on("start end",(function(t,i){var r=e._height(),n=e._ruler.data()[0].y;(n>=r||n<=0)&&e._ruler.select(".horizontal-drag-label").text(""),e._hideDiagramIndicator()})).on("drag",(function(i,r){var n=e._height(),o=d3.pointers(i,e._area.node())[0][1],a=o>0?o<n?o:n:0,s=e._y.invert(a),c=L.extend(e._ruler.data()[0],{y:a});e._ruler.data([c]).attr("transform",(function(e){return"translate("+e.x+","+e.y+")"})).classed("active",a<n),e._container.select(".horizontal-drag-label").text(t(s)+" "+(e.options.imperial?"ft":"m")),e.fire("ruler_filter",{coords:o<n&&o>0?e._findCoordsForY(o):[]})})),this._ruler.call(i)}},_initScale:function(){var e=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:e.xAttr,min:e.xAxisMin,max:e.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:e.yAttr,min:e.yAxisMin,max:e.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options;e.xAttr||(e.xAttr=t.xAttr),e.yAttr||(e.yAttr=t.yAttr),void 0===e.preferCanvas&&(e.preferCanvas=t.preferCanvas);var i=P(e);this._paths[e.name]=i,this._props.areas[e.name]=e,t.legend&&(this._props.legendItems[e.name]={name:e.name,label:e.label,color:e.color,path:i})},_registerAxisGrid:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x),this._props.grids[e.name||e.axis]=e},_registerAxisScale:function(e){"y"==e.scale?e.scale=this._y:"x"==e.scale&&(e.scale=this._x);var t=this.options,i=e.scale;if("function"==typeof this._scales[e.name])e.scale=this._scales[e.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:t.forceAxisBounds},i)).attr=i.attr||e.name;var r=this._domains[e.name]=I(e),n=this._ranges[e.name]=H(e);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[e.name]=i,e.scale=this._scales[e.name]=G(i)}return e.ticks||("x"==e.axis?e.ticks=t.xTicks:"y"==e.axis&&(e.ticks=t.yTicks)),this._props.axes[e.name]=e,i},_registerCheckPoint:function(e){var t,i,r;this._data.length&&(e.latlng?(t=this._data[this._findIndexForLatLng(e.latlng)],i=this._x(t.dist),r=this._y(t.z)):isNaN(e.dist)||(i=this._x(e.dist),t=this._data[this._findIndexForXCoord(i)],r=this._y(t.z)),this._point.call(N({point:e,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(e){var t;e.order=null!==(t=e.order)&&void 0!==t?t:100,this._props.tooltipItems[e.name]=e},_updateArea:function(){var e=this._paths;for(var t in this._context.clearRect(0,0,this._width(),this._height()),e)e[t].classed("leaflet-hidden")||this._drawPath(t)},_updateAxis:function(){var e=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var t,i,r,n=this._props.grids,o=this._props.axes,a={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var c in n)t=L.extend({},a,n[c]),r=B(t),this._grid.call(r);for(var l in o)false!==e[l]&&"summary"!==e[l]&&(t=L.extend({},s,o[l]),i=O(t),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(e,t,i){var r=d3.select(i[t]),n=r.attr("transform"),o=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+o[0]+40*t)+","+o[1]+")"),t>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var e=this,t=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[t.left,0],[this._width()-t.right,this._height()]]).translateExtent([[t.left,-1/0],[this._width()-t.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(t,i){if(!(i>=e._maskGaps.length-2)){var r=e._data[e._maskGaps[i]],n=e._data[e._maskGaps[i+1]],o=e._x(e._data[e._findIndexForLatLng(r.latlng)].dist),a=e._x(e._data[e._findIndexForLatLng(n.latlng)].dist);e._mask.append("rect").attr("x",o).attr("y",0).attr("width",a-o).attr("height",e._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var e=this;if(false!==this.options.legend){var t,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)t=j(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(t);var n=this._legend.selectAll(".legend-item"),o=n.nodes().length,a=Array(Math.floor(o/2)).fill(null).map((function(e,t){return 2*(t+1)-(1-Math.sign(o%2))})),s=a.slice().reverse().map((function(e){return-e}));o%2!=0&&s.push(0),a=s.concat(a);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,d=30*o;o&&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")),n.each((function(t,i,r){var n=d3.select(r[i]),o=(n.select("rect"),n.attr("data-name")),s=e._paths[o],l=55*a[i],d=2*c;n.attr("transform","translate("+l+", "+d+")"),o in e.options&&"disabled"==e.options[o]&&(s.classed("leaflet-hidden",true),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),e._mask&&s.attr("mask","url(#"+e._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var e in this._scales)this._scales[e].domain(this._domains[e](this._data)).range(this._ranges[e](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(e){var t,i=this._data,r=this._y.invert(e),n=i.reduce((function(e,t,i){return t.z>=r&&e.push(i),e}),[]),o=0;return n.reduce((function(e,r,a){return n[t=a+1]===n[a]+1&&t!==n.length||(e.push(n.slice(o,t).map((function(e){return i[e].latlng}))),o=t),e}),[])},_findIndexForXCoord:function(e){var t=this;return d3.bisector((function(e){return e[t.options.xAttr]})).left(this._data||[0,1],this._x.invert(e))},_findIndexForLatLng:function(e){var t=null,i=1/0;return this._data.forEach((function(r,n){var o=e.distanceTo(r.latlng);o<i&&(i=o,t=n)})),t},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(e,t){this._tooltip.attr("display",null).call(E({xCoord:t,yCoord:this._y(e[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:e}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var V,Q=L.Class.extend({initialize:function(e){switch(this.options=e,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:false})}return this._labels={},this},addTo:function(e){switch(this._map=e,this.options.marker){case"elevation-line":this._container=d3.select(e.getPane("elevationPane")).select("svg > g").call(T({}));break;case"position-marker":this._marker.addTo(e,{pane:"overlayPane"})}return this},update:function(e){if(e?this._props=e:e=this._props,e)switch(e.options&&(this.options=e.options),this._map||this.addTo(e.map),this._latlng=e.item.latlng,this.options.marker){case"elevation-line":if(this._container){var t=this._map.latLngToLayerPoint(this._latlng);t=L.extend({},e.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(t):t),this._container.classed("leaflet-hidden",false),this._container.call(T({theme:this.options.theme,xCoord:t.x,yCoord:t.y,length:t.y-this._height()/e.maxElevation*t.z,labels:this._labels,item:t}))}break;case"position-marker":d(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",true);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var e=this.options;return e.height-e.margins.top-e.margins.bottom},_registerTooltip:function(e){this._labels[e.name]=e}}),U=L.Class.extend({initialize:function(e,t){this.options=e,this.control=t,this.labels={},f(this._container=b("div","elevation-summary "+(e.summary?e.summary+"-summary":"")),"max-width",e.width?e.width+"px":"")},render:function(){var e=this;return function(t){return t.append((function(){return e._container}))}},reset:function(){this._container.innerHTML=""},append:function(e,t,i){return this._container.innerHTML+='<span class="'.concat(e,'"><span class="summarylabel">').concat(t,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var e=this;Object.keys(this.labels).sort((function(t,i){return e.labels[t].order-e.labels[i].order})).forEach((function(t){e.append(t,L._(e.labels[t].label),"function"!=typeof e.labels[t].value?e.labels[t].value:e.labels[t].value(e.control.track_info))}))},_registerSummary:function(e){for(var t in e){var i;e[t].order=null!==(i=e[t].order)&&void 0!==i?i:100,this.labels[t]=e[t]}}}),X={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},J=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:X,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(e,t){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===t&&e.on&&(t=e),i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})}))},addTo:function(e){if(this.options.detached){var t=this._initElevationDiv();t.isConnected||g(e.getContainer(),t,"afterend"),v(t,this.onAdd(e))}else L.Control.prototype.addTo.call(this,e);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){return e.off("elechart_updated",t.fn,t.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(e){return e.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(e){return e.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=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(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return e=e||this._data,L.latLngBounds(e.map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(e){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=true,this.track_info={},this.handlers=[],L.setOptions(this,e),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),true===this.options.wptIcons&&(this.options.wptIcons=X.wptIcons),true===this.options.distanceMarkers&&(this.options.distanceMarkers=X.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(M,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(e){case this.__D3:i="_d3LazyLoader",t="object"!==("undefined"==typeof d3?"undefined":q(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",t="object"!==("undefined"==typeof toGeoJSON?"undefined":q(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",t="object"!==q(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",t="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",t="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=a(e,t,L.Control.Elevation[i])},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=b("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){t._initButton(i),t._initChart(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),e.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),y(e.getContainer(),"mousewheel",t._resetDrag,t),y(e.getContainer(),"touchstart",t._resetDrag,t),y(document,"keydown",t._keydownHandler,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()})),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(e){this.options.zFollow=e},show:function(){f(this._container,"display","block")},_addData:function(e){var t=this;if(e){var i=e.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(e){return t._addGeoJSONData(e)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===e.type&&z(e.features,(function(e){return t._addData(e)})),e._latlngs&&this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties)}},_addGeoJSONData:function(e,t){var i=this;e.forEach((function(e,r){var n,o,a,s,c;e.meta=null!==(n=e.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=t&&t.coordinateProperties||t;i.fire("elepoint_init",{point:e,props:l,id:r}),i._addPoint(null!==(o=e.lat)&&void 0!==o?o:e[1],null!==(a=e.lng)&&void 0!==a?a:e[0],null!==(s=null!==(c=e.alt)&&void 0!==c?c:e.meta.ele)&&void 0!==s?s:e[2]),i.fire("elepoint_added",{point:e,index:i._data.length-1})})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){if(this.options.reverseCoords){var r=[t,e];e=r[0],t=r[1]}this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){return L.DistanceMarkers&&e.target instanceof L.Polyline&&e.target[e.type+"DistanceMarkers"]()}))},_addMarker:function(e){e&&this._markers.addLayer(e)},_initAlmostOverHandler:function(e,t){var i=this;e&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",(function(e){return i._mousemoveLayerHandler(e)})).on("almost:out",(function(e){return i._mouseoutHandler(e)})))}))},_initDistanceMarkers:function(e,t){var i=this;e&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&t.addTo(e)})):this.options.polyline&&t.addTo(e))},_initElevationDiv:function(){var e=k(this.options.elevationDiv);return e||(this.options.elevationDiv="#elevation-div_"+_(),e=b("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&p(e,"leaflet-control","elevation-detached"),this.eleDiv=e},_initMapIntegrations:function(e,t){var i=e._map;e._map?(i.once("layeradd",(function(i){return e.options.autofitBounds&&e.fitBounds(t.getBounds())})),L.Browser.mobile?e.options.polyline&&t.addTo(i):(e._initAlmostOverHandler(i,t),e._initDistanceMarkers(i,t))):console.warn("Undefined elevation map object")},_collapse:function(){p(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){p(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var e=L.Canvas.prototype._fillStroke,t=this;L.Canvas.include({_fillStroke:function(i,r){if(t._layers.hasLayer(r)){var n=t.options.theme.replace("-theme",""),o=M[n]||{},a=r.options;if(a.color=o.line||o.area||n,a.stroke=!!a.color,e.call(this,i,r),a.stroke&&0!==a.weight){var s=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=o.outline||"#FFF",i.lineWidth=1.75*a.weight,i.stroke(),i.globalCompositeOperation=s}}else e.call(this,i,r)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){e._chartEnabled&&(e._chart._showDiagramIndicator(t.data,t.xCoord),e._chart._showDiagramIndicator(t.data,t.xCoord)),e._updateMarker(t.data)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_height:function(){if(this._chart)return this._chart._height();var e=this.options;return e.height-e.margins.top-e.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this.options;if(t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),t.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(t.width=r),n>20&&(t.height=n-20)}else{var o=this._map.getContainer().clientWidth;t._maxWidth=t._maxWidth>t.width?t._maxWidth:t.width,this._container.style.maxWidth=t._maxWidth+"px",t._maxWidth>o&&(t.width=o-30)}var a=this._chart=new R(t,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(e).call(a.render()),a.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer;u(i.getElement&&i.getElement(),e.options.polyline.className+" "+e.options.theme,"layeradd"==t.type),m(i,"mousemove",e._mousemoveLayerHandler.bind(e),"layeradd"==t.type),m(i,"mouseout",e._mouseoutHandler.bind(e),"layeradd"==t.type)}))},_initMarker:function(e){var t=e.getPane("elevationPane");t||((t=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.getPane("mapPane"))).style.zIndex=625,t.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new Q(this.options),this.fire("elechart_marker")},_initButton:function(e){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),!this.options.detached){var t=this._button=b("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},e);this.options.collapsed&&(this._collapse(),this.options.autohide?(y(e,"mouseover",this._expand,this),y(e,"mouseout",this._collapse,this)):(y(t,"click",L.DomEvent.stop),y(t,"click",this._toggle,this)),y(t,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(e){this._summary=new U({summary:this.options.summary},this),d3.select(e).call(this._summary.render())},_keydownHandler:function(e){this.options.detached||"Escape"!==e.key||this._collapse()},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadLayer:function(e){var t=this,i=t.options,r=i.wptIcons,n=i.wptLabels,o=L.geoJson(e,{distanceMarkers:t.options.distanceMarkers,style:function(e){var i=L.extend({},t.options.polyline);return t.options.theme&&(i.className+=" "+t.options.theme),i},pointToLayer:function(e,i){var o,a,s;if(t.options.waypoints){var c=e.properties,l=null!==(o=c.desc)&&void 0!==o?o:"",d=null!==(a=c.name)&&void 0!==a?a:"",u=(null!==(s=c.sym)&&void 0!==s?s:d).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([true,"dots"].includes(t.options.waypoints)&&t._registerCheckPoint({latlng:i,label:[true,"dots"].includes(n)?d:""}),[true,"markers"].includes(t.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(n)&&(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 t._addMarker(p),t.fire("waypoint_added",{point:p,element:i,properties:c}),p}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(t.addData(r),t.track_info=L.extend({},t.track_info,{name:e.name}))}});return t.lazyLoad(t.__D3).then((function(){t._initMapIntegrations(t,o),t._fireEvt("eledata_loaded",{data:e,layer:o,name:t.track_info.name,track_info:t.track_info})})),o},_dragendHandler:function(e){this._hideMarker(),this.fitBounds(L.latLngBounds([e.dragstart.latlng,e.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(e){this.fire("elechart_enter")},_mousemoveHandler:function(e){if(this._data.length&&this._chartEnabled){var t=this._findItemForX(e.xCoord);if(t){var i=e.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this._setMapView(t),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:t,xCoord:i}),this.fire("elechart_hover",{data:t,xCoord:i})}}},_mousemoveLayerHandler:function(e){if(this._data.length){var t=this._findItemForLatLng(e.latlng);if(t){var i=t.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(t,i),this._updateMarker(t),this.fire("elechart_change",{data:t,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&d(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.lazyLoad(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r=t._prepareMultiLineStrings(r),r=t._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?(null!==(t=Array.from(n).find((function(e){return"trk"==e.parentElement.tagName})))&&void 0!==t?t:n[0]).textContent:"",o},_prepareAdditionalProperties:function(e){return!e.name&&this._downloadURL&&(e.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),e},_prepareMultiLineStrings:function(e){return e.features.forEach((function(t){"MultiLineString"==t.geometry.type&&t.geometry.coordinates.forEach((function(i){e.features.push({geometry:{type:"LineString",coordinates:i},properties:t.properties,type:"Feature"})}))})),e.features.filter((function(e){return"MultiLineString"!=e.geometry.type}))},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;this.on("elechart_updated",(function(){return t._chart._registerCheckPoint(e)}))},_registerDataAttribute:function(e){var t=this,i=null;e.init&&this.on("elepoint_init",(function(i){return e.init.call(t,i)})),this.on("elepoint_added",(function(r){if(false===e.skipNull){var n=t._data[r.index][e.name];if(r.index>0){var o=t._data[r.index-1][e.name];if(isNaN(o)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(o=n):o=i:o=(i+n)/2,!isNaN(o))return t._data.splice(r.index-1,1);t._data[r.index-1][e.name]=o}}isNaN(n)||(i=n)}t._data[r.index][e.name]=e.fetch.call(t,r.index,r.point),e.update&&(t._data[r.index][e.name]=e.update.call(t,t._data[r.index][e.name],r.index,r.point))}))},_registerTooltip:function(e){var t=this;if(e.chart){var i=L.extend({},e,{value:e.chart});this.on("elechart_init",(function(){return t._chart._registerTooltip(i)}))}if(e.marker){var r=L.extend({},e,{value:e.marker});this.on("elechart_marker",(function(){return t._marker._registerTooltip(r)}))}},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=f(this._container,"display")){var e,t=this.options;if(t.detached)e=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;e=t._maxWidth>i?i-30:t._maxWidth}if(e){var r=this._chart;t.width=e,r&&r._chart&&(r._chart._resize(t),t.xTicks=this._xTicks(),t.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(e){this._updateMapSegments(e.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this.options.followMarker&&this._map){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:true,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:true,duration:.25})}},_toggleChartHandler:function(e){var t=this,i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return u(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
2
|
-
/*!this._data.length ||*/
|
|
3
|
-
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(e){this._marker&&this._marker.update({map:this._map,item:e,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:o.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&true!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var e=this.options;return e.width-e.margins.left-e.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});J.addInitHook((function(){var e=this,t=this.options,i={};t.imperial?(t.distanceFactor=this.__mileFactor,i.label="mi"):(t.distanceFactor=t.distanceFactor||1,i.label=t.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=e._data[i].latlng.distanceTo(e._data[i>0?i-1:i].latlng)*t.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(t){return e.track_info.distance=e.track_info.distance||0,e.track_info.distance+=t,e.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return e._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(e){return L._("x: ")+d3.format("."+t.decimalsX+"f")(e[t.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(e){return(e.distance||0).toFixed(2)+" "+i.label},order:10}})})),J.addInitHook((function(){var e=this,t=this.options,i={};i.label=t.timeLabel||"t",t.timeFactor=t.timeFactor||3600,this._timeAVGSpeed=(t.timeAVGSpeed||3.6)*(t.speedFactor||1),t.timeFormat?"time"==t.timeFormat?t.timeFormat=function(e){return new Date(e).toLocaleTimeString()}:"date"==t.timeFormat&&(t.timeFormat=function(e){return new Date(e).toLocaleDateString()}):t.timeFormat=function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")},t.xTimeFormat=t.xTimeFormat||function(e){return n(e).split("'")[0]},this._registerDataAttribute({name:"time",init:function(e){var t=e.point,i=e.props,r=e.id;i&&("coordTimes"in i?t.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?t.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(t.meta.time=new Date(Date.parse("object"===q(i.time)?i.time[r]:i.time))))},fetch:function(e,t){if(!t.meta||!t.meta.time)if(t.meta=t.meta||{},e>0){var i=this._data[e].dist-this._data[e-1].dist,r=this._data[e-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;t.meta.time=new Date(r+n)}else t.meta.time=new Date(Date.now());var o=t.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},update:function(e,t){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[t].time-this._data[t>0?t-1:t].time),this._data[t].duration=this.track_info.time,e}}),t.time&&"summary"!=t.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return e._width()},name:"time",tickFormat:function(e){return 0==e?"":t.xTimeFormat(e)},onAxisMount:function(t){t.select(".domain").remove(),t.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),t.selectAll(".tick line").attr("y2",e._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(t){return L._("t: ")+e.options.timeFormat(t.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(e){return L._("T: ")+n(e.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(e){return n(e.time||0)},order:20}}))})),J.addInitHook((function(){var e=this,t=this.options,i={},r=t.theme.replace("-theme",""),n=M[r]||{};t.imperial?(t.altitudeFactor=this.__footFactor,i.label="ft"):(t.altitudeFactor=t.heightFactor||t.altitudeFactor||1,i.label=t.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(e){var t=e.point;"alt"in t&&(t.meta.ele=t.alt)},fetch:function(i){return e._data[i].z*t.altitudeFactor},update:function(t,i){e.track_info.elevation_max=e.track_info.elevation_max||-1/0,e.track_info.elevation_min=e.track_info.elevation_max||1/0,e.track_info.elevation_avg=e.track_info.elevation_avg||0;var r=e._data,n=e.track_info;if(e.options.altitudeDeltaMax){var o=t-r[i>0?i-1:i].z,a=e.options.altitudeDeltaMax;Math.abs(o)>a&&(t=r[i-1].z+a*Math.sign(o))}return(t=c(t,e.options.altitudeRange))>n.elevation_max&&(n.elevation_max=t),t<n.elevation_min&&(n.elevation_min=t),n.elevation_avg=(t+n.elevation_avg)/2,t}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:i.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||r,strokeColor:t.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:t.detached?n.alpha||"0.8":1,preferCanvas:t.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(e){return L._("y: ")+d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},marker:function(e){return d3.format("."+t.decimalsY+"f")(e[t.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(e){return(e.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(e){return(e.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(e){return(e.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),J.addInitHook((function(){var e=this;if(this.options.slope){var t=this.options,i={};i.label=t.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(t){var i=e._data,r=1e3*(i[t].dist-i[t>0?t-1:t].dist),n=i[t].z-i[t>0?t-1:t].z;return isNaN(n)||0===r?0:n/r*100},update:function(t,i){e.track_info.ascent=e.track_info.ascent||0,e.track_info.descent=e.track_info.descent||0,e.track_info.slope_max=e.track_info.slope_max||-1/0,e.track_info.slope_min=e.track_info.slope_min||1/0,e.track_info.slope_avg=e.track_info.slope_avg||0;var r=e.track_info,n=e._data,o=n[i].z-n[i>0?i-1:i].z;if(e.options.slopeDeltaMax){var a=slop-n[i>0?i-1:i].slope,s=e.options.slopeDeltaMax;Math.abs(a)>s&&(t=n[i-1].slope+s*Math.sign(a))}return t=c(t,e.options.slopeRange),o>0?e.track_info.ascent+=o:o<0&&(e.track_info.descent-=o),t>r.slope_max&&(r.slope_max=t),t<r.slope_min&&(r.slope_min=t),r.slope_avg=(t+r.slope_avg)/2,L.Util.formatNum(t,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(e){return L._("m: ")+e.slope+i.label},marker:function(e){return Math.round(e.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(t){return Math.round(t.ascent||0)+" "+(e.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(t){return Math.round(t.descent||0)+" "+(e.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(e){return Math.round(e.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(e){return Math.round(e.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(e){return Math.round(e.slope_avg||0)+" "+i.label},order:40}})}})),J.addInitHook((function(){var e=this;if(this.options.speed||this.options.acceleration){var t=this.options,i={};i.label=t.speedLabel||L._(t.imperial?"mph":"km/h"),t.speedFactor=t.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=e._data,n=1e3*(r[i].dist-r[i>0?i-1:i].dist),o=r[i].time-r[i>0?i-1:i].time;return o>0?Math.abs(n/o*t.timeFactor)*t.speedFactor:0},update:function(t,i){e.track_info.speed_max=e.track_info.speed_max||-1/0,e.track_info.speed_min=e.track_info.speed_min||1/0,e.track_info.speed_avg=e.track_info.speed_avg||0;var r=e._data,n=e.track_info;if(e.options.speedDeltaMax){var o=t-r[i>0?i-1:i].speed,a=e.options.speedDeltaMax;Math.abs(o)>a&&(t=r[i-1].speed+a*Math.sign(o))}return(t=c(t,e.options.speedRange))>n.speed_max&&(n.speed_max=t),t<n.speed_min&&(n.speed_min=t),n.speed_avg=(t+n.speed_avg)/2,L.Util.formatNum(t,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(e){return L._("v: ")+e.speed+" "+i.label},marker:function(e){return Math.round(e.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(e){return Math.round(e.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(e){return Math.round(e.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(e){return Math.round(e.speed_avg||0)+" "+i.label},order:50}}))}})),J.addInitHook((function(){var e=this;if(this.options.acceleration){var t=this.options,i={};i.label=t.accelerationLabel||L._(t.imperial?"ft/s²":"m/s²"),t.accelerationFactor=t.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=e._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/t.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(n/o)*t.accelerationFactor:0},update:function(t,i){e.track_info.acceleration_max=e.track_info.acceleration_max||-1/0,e.track_info.acceleration_min=e.track_info.acceleration_min||1/0,e.track_info.acceleration_avg=e.track_info.acceleration_avg||0;var r=e._data,n=e.track_info;if(e.options.accelerationDeltaMax){var o=t-r[i>0?i-1:i].acceleration,a=e.options.accelerationDeltaMax;Math.abs(o)>a&&(t=r[i-1].acceleration+a*Math.sign(o))}return(t=c(t,e.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=t),t<n.acceleration_min&&(n.acceleration_min=t),n.acceleration_avg=(t+n.acceleration_avg)/2,L.Util.formatNum(t,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(e){return L._("a: ")+e.acceleration+" "+i.label},marker:function(e){return Math.round(e.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(e){return Math.round(e.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(e){return Math.round(e.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(e){return Math.round(e.acceleration_avg||0)+" "+i.label},order:60}})}})),J.Utils=C,J.Components=D,J.Chart=R,V=L.i18n.bind({}),L.i18n=L._=function(e,t){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][e]&&(L.locales[L.locale][e]=""),V.call(null,e,t)},J.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip})),L.control.elevation=function(e){return new J(e)}}))})(et);return et.exports}it();var rt={exports:{}};var nt=rt.exports;var ot;function at(){if(ot)return rt.exports;ot=1;(function(e,t){!function(e,i){i(t)}(nt,(function(e){var t=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(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,true),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,a=this.options.chunkInterval,s=this.options.chunkProgress,c=e.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(o&&l%200==0){var h=(new Date).getTime()-f;if(a<h)break}if((i=e[l])instanceof L.LayerGroup)d&&(e=e.slice(),d=false),this._extractNonGroupLayers(i,e),c=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),b=m[0]===i?m[1]:m[0];r.removeLayer(b)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}s&&s(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=e[l])instanceof L.LayerGroup?(d&&(e=e.slice(),d=false),this._extractNonGroupLayers(i,e),c=e.length):i.getLatLng?this.hasLayer(i)||f.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,a=true;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=false),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),o.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 s=e.slice(),c=r;for(t=0;t<c;t++)(i=s[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,s),c=s.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(a&&(e=e.slice(),a=false),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,true,true),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),a=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=true,n=a.length-1;0<=n;n--)if(a[n].layer===o[r]){i=false;break}i&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return false;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return true;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return false;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,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(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),true},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,a=this._map,s=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var c,l=e.__parent,d=l._markers;for(this._arraySplice(d,e);l&&(l._childCount--,l._boundsNeedUpdate=true,!(l._zoom<s));)t&&l._childCount<=1?(c=l._markers[0]===e?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,a.project(l._cLatLng,l._zoom)),n[l._zoom].addObject(c,a.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(o.removeLayer(l),i||o.addLayer(c))):l._iconNeedsUpdate=true,l=l.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return true;t=t.parentNode}return false},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,a=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);a<=t;t--){i=this._map.project(e.getLatLng(),t);var s=n[t].getNearObject(i);if(s)return s._addChild(e),void(e.__parent=s);if(s=o[t].getNearObject(i)){var c=s.__parent;c&&this._removeLayer(s,false);var l=new this._markerCluster(this,t,s,e);n[t].addObject(l,this._map.project(l._cLatLng,t)),s.__parent=l;var d=e.__parent=l;for(r=t-1;r>c._zoom;r--)d=new this._markerCluster(this,r,d),n[r].addObject(d,this._map.project(s.getLatLng(),r));return c._addChild(d),void this._removeFromGridUnclustered(s,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=true,this._topClusterLevel._recursively(r,e,o,(function(o){var a,s=o._latlng,c=o._markers;for(r.contains(s)||(s=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(s,t,r)),i=c.length-1;0<=i;i--)a=c[i],r.contains(a._latlng)||n.removeLayer(a)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=false,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var a=e._markers[0];this._ignoreMove=true,a.setLatLng(a.getLatLng()),this._ignoreMove=false,a.clusterShow&&a.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,a=r.getZoom();0<i.length&&o<n;){o++;var s=[];for(t=0;t<i.length;t++)s=s.concat(i[t]._childClusters);i=s}o<n?this._group._map.setView(this._latlng,o):n<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=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(e,t){this._iconNeedsUpdate=true,this._boundsNeedUpdate=true,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,true)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,a=0,s=0,c=this._childCount;if(0!==c){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),a+=i.lat,s+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,a+=i.lat*r,s+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(a/c,s/c),this._boundsNeedUpdate=false}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,a,s=this._childClusters,c=this._zoom;if(t<=c&&(r&&r(this),n&&c===i&&n(this)),c<t||c<i)for(o=s.length-1;0<=o;o--)(a=s[o])._boundsNeedUpdate&&a._recalculateBounds(),e.intersects(a._bounds)&&a._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},a=o[i]=o[i]||[],s=L.Util.stamp(e);this._objectPoint[s]=t,a.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),a=this._grid,s=a[o]=a[o]||{},c=s[n]=s[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=c.length;i<r;i++)if(c[i]===e)return c.splice(i,1),1===r&&delete s[n],true},eachObject:function(e,t){var i,r,n,o,a,s,c=this._grid;for(i in c)for(r in a=c[i])for(n=0,o=(s=a[r]).length;n<o;n++)e.call(t,s[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,a,s,c,l=this._getCoord(e.x),d=this._getCoord(e.y),u=this._objectPoint,p=this._sqCellSize,f=null;for(t=d-1;t<=d+1;t++)if(n=this._grid[t])for(i=l-1;i<=l+1;i++)if(o=n[i])for(r=0,a=o.length;r<a;r++)s=o[r],((c=this._sqDist(u[L.Util.stamp(s)],e))<p||c<=p&&null===f)&&(p=c,f=s);return f},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,a=null,s=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(s.push(r),o<n&&(o=n,a=r));return{maxPoint:a,newPoints:s}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=false,r=false,n=false,o=false,a=null,s=null,c=null,l=null,d=null,u=null;for(t=e.length-1;0<=t;t--){var p=e[t];(false===i||p.lat>i)&&(i=(a=p).lat),(false===r||p.lat<r)&&(r=(s=p).lat),(false===n||p.lng>n)&&(n=(c=p).lng),(false===o||p.lng<o)&&(o=(l=p).lng)}return d=r!==i?(u=s,a):(u=l,c),[].concat(this.buildConvexHull([u,d],e),this.buildConvexHull([d,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,true),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,a=[];for(n=Math.max(n,35),a.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,a[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return a},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,a=r*this._spiralLengthFactor*this._2PI,s=0,c=[];for(i=c.length=e;0<=i;i--)i<e&&(c[i]=new L.Point(t.x+n*Math.cos(s),t.y+n*Math.sin(s))._round()),n+=a/(s+=o/n+5e-4*i);return c},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,true);for(i._ignoreMove=true,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=false,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,a=this._group,s=a._map,c=a._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(a._ignoreMove=true,i=0;i<e.length;i++)o=s.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],l),s.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),a._ignoreMove=false,a.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,a,s,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<e.length;i++)r=e[i],s=d.layerPointToLatLng(t[i]),n=new L.Polyline([p,s],m),d.addLayer(n),r._spiderLeg=n,h&&(a=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=a,o.style.strokeDashoffset=a),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=e.length-1;0<=i;i--)s=d.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.clusterShow&&r.clusterShow(),h&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:b}));this.setOpacity(.3),l._ignoreMove=false,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,a,s=this,c=this._group,l=c._map,d=c._featureGroup,u=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.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--)(t=p[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,a=true,t._setPos&&(t._setPos(u),a=false),t.clusterHide&&(t.clusterHide(),a=false),a&&d.removeLayer(t),f&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));c._ignoreMove=false,setTimeout((function(){var e=0;for(i=p.length-1;0<=i;i--)(t=p[i])._spiderLeg&&e++;for(i=p.length-1;0<=i;i--)(t=p[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&d.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:s,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(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=true,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:true})}))})(rt,rt.exports);return rt.exports}at();!function(t){if("function"==typeof define&&define.amd)define(["leaflet"],t);else if("object"==typeof e)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(e){var t=e.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:e.divIcon({html:'\n<svg width="24" height="24" viewBox="-12 -12 24 24" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;8;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[24,24],iconAnchor:[12,12]}),iconOrientation:e.divIcon({html:'\n<svg width="96" height="96" viewBox="-48 -48 96 96" xmlns="http://www.w3.org/2000/svg">\n\t<defs>\n\t\t<linearGradient id="gradient" x2="0" y2="-48" gradientUnits="userSpaceOnUse">\n\t\t\t<stop style="stop-opacity:1" offset="0" />\n\t\t\t<stop style="stop-opacity:0" offset="1" />\n\t\t</linearGradient>\n\t\t<filter id="gaussian">\n\t\t\t<feGaussianBlur stdDeviation="0.5" />\n\t\t</filter>\n\t</defs>\n\t<path class="orientation" opacity="1" style="fill:url(#gradient)" d="M -24,-48 H 24 L 10,0 H -10 z">\n\t\t<animate attributeName="opacity" values=".75;.33;.75" dur="2s" repeatCount="indefinite" />\n\t</path>\n\t<g id="leaflet-simple-locate-icon-spot">\n\t\t<circle fill="#000000" style="opacity:0.3;filter:url(#gaussian)" cx="1" cy="1" r="10" />\n\t\t<circle fill="#ffffff" r="10" />\n\t\t<circle r="6">\n\t\t\t<animate attributeName="r" values="6;9;6" dur="2s" repeatCount="indefinite" />\n\t\t</circle>\n\t</g>\n</svg>',className:"leaflet-simple-locate-icon",iconSize:[96,96],iconAnchor:[48,48]})},initialize:function(t){e.Util.setOptions(this,t),this._map=void 0,this._button=void 0,this._marker=void 0,this._circle=void 0,this._clicked=void 0,this._geolocation=void 0,this._orientation=void 0,this._clickTimeout=void 0,this._latitude=void 0,this._longitude=void 0,this._accuracy=void 0,this._angle=void 0},onAdd:function(t){return this._map=t,this._button=e.DomUtil.create("button","leaflet-simple-locate"),this.options.className&&e.DomUtil.addClass(this._button,this.options.className),e.DomEvent.disableClickPropagation(this._button),this._button.innerHTML=this.options.htmlInit,this._button.title=this.options.title,this._button.setAttribute("aria-label",this.options.ariaLabel||this.options.title),e.DomEvent.on(this._button,"click",e.DomEvent.stopPropagation).on(this._button,"click",e.DomEvent.preventDefault).on(this._button,"click",this._onClick,this),this._button},getLatLng:function(){return this._latitude&&this._longitude?{lat:this._latitude,lng:this._longitude}:null},getAccuracy:function(){return this._accuracy||null},getAngle:function(){return this._angle||null},setZoomLevel:function(e){this.options.zoomLevel=e},_onClick:function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){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(e._clickTimeout),e._clickTimeout=void 0,e._map&&(e._clicked&&e.options.setViewAfterClick?e._setView():(e._clicked=true,e._updateButton(),e._map.on("layeradd",e._onLayerAdd,e),e._checkGeolocation().then((function(t){e._geolocation=true,e._onLocationFound(t.coords),e.options.setViewAfterClick&&e._setView(),e._watchGeolocation(),e._checkClickResult()})).catch((function(){e._geolocation=false,e._checkClickResult()})),e._checkOrientation().then((function(){e._orientation=true,e._watchOrientation(),e._checkClickResult()})).catch((function(){e._orientation=false,e._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(e,t){navigator.geolocation.getCurrentPosition(e,t,{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(e){return"granted"===e||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(){e.DomEvent.on(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this)},_unwatchOrientation:function(){e.DomEvent.off(window,"ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation",this._onOrientation,this),document.documentElement.style.setProperty("--leaflet-simple-locate-orientation","0deg"),this._angle=void 0},_onLocationFound:function(e){this._latitude&&e.latitude&&Math.round(1e6*this._latitude)===Math.round(1e6*e.latitude)&&this._longitude&&e.longitude&&Math.round(1e6*this._longitude)===Math.round(1e6*e.longitude)&&this._accuracy&&e.accuracy&&Math.round(100*this._accuracy)===Math.round(100*e.accuracy)||(this._latitude=e.latitude,this._longitude=e.longitude,this._accuracy=e.accuracy,this._updateMarker())},_onOrientation:function(e){var t;t=e.webkitCompassHeading||360-e.alpha,this._angle&&Math.abs(t-this._angle)<this.options.minAngleChange||(this._angle=t,"orientation"in screen&&(this._angle+=screen.orientation.angle),this._angle=(this._angle+360)%360,document.documentElement.style.setProperty("--leaflet-simple-locate-orientation",-this._angle+"deg"),this._updateMarker())},_onZoomStart:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","none")},_onZoomEnd:function(){this._circle&&document.documentElement.style.setProperty("--leaflet-simple-locate-circle-display","inline")},_onLayerAdd:function(e){this.options.afterMarkerAdd&&e.layer==this._marker&&this.options.afterMarkerAdd()},_setView:function(){this._map&&this._latitude&&this._longitude&&(this.options.zoomLevel?this._map.setView([this._latitude,this._longitude],this.options.zoomLevel):this._map.setView([this._latitude,this._longitude]))},_updateButton:function(){this._clicked?void 0===this._geolocation||void 0===this._orientation?"spinner"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlSpinner,this._button.html_name="spinner"):this._orientation&&"orientation"!==this._button.html_name?(this._button.innerHTML=this.options.htmlOrientation,this._button.html_name="orientation"):this._geolocation&&"geolocation"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlGeolocation,this._button.html_name="geolocation"):"init"!==this._button.html_name&&(this._button.innerHTML=this.options.htmlInit,this._button.html_name="init")},_updateMarker:function(){if(this.options.afterDeviceMove&&this.options.afterDeviceMove({lat:this._latitude,lng:this._longitude,accuracy:this._accuracy,angle:this._angle}),this._latitude&&this._longitude&&(!this.options.drawCircle||this._accuracy)){var t=void 0;if(this._geolocation&&this._orientation&&this._angle)t="iconOrientation";else{if(!this._geolocation)return;t="iconGeolocation"}this._circle?(this._circle.setLatLng([this._latitude,this._longitude]),this._circle.setRadius(this._accuracy)):this.options.drawCircle&&(this._circle=e.circle([this._latitude,this._longitude],{className:"leaflet-simple-locate-circle",radius:this._accuracy}).addTo(this._map)),this._marker&&this._marker.icon_name===t?this._marker.setLatLng([this._latitude,this._longitude]):(this._marker&&this._map.removeLayer(this._marker),this._marker=e.marker([this._latitude,this._longitude],{icon:this.options[t]}),this._marker.icon_name=t,this._marker.addTo(this._map))}}});return e.control.simpleLocate=function(e){return new t(e)},t}));var st=6371008.8;var ct={centimeters:st*100,centimetres:st*100,degrees:st/111325,feet:st*3.28084,inches:st*39.37,kilometers:st/1e3,kilometres:st/1e3,meters:st,metres:st,miles:st/1609.344,millimeters:st*1e3,millimetres:st*1e3,nauticalmiles:st/1852,radians:1,yards:st*1.0936};function lt(e,t,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=t||{};r.geometry=e;return r}function dt(e,t,i){if(i===void 0){i={}}if(!e){throw new Error("coordinates is required")}if(!Array.isArray(e)){throw new Error("coordinates must be an Array")}if(e.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!ht(e[0])||!ht(e[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:e};return lt(r,t,i)}function ut(e,t){if(t===void 0){t={}}var i={type:"FeatureCollection"};if(t.id){i.id=t.id}if(t.bbox){i.bbox=t.bbox}i.features=e;return i}function pt(e,t){if(t===void 0){t="kilometers"}var i=ct[t];if(!i){throw new Error(t+" units is invalid")}return e*i}function ft(e){var t=e%360;return t*Math.PI/180}function ht(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function mt(e,t,i){if(e===null)return;var r,n,o,a,s,c,l,d=0,u=0,p,f=e.type,h=f==="FeatureCollection",m=f==="Feature",b=h?e.features.length:1;for(var v=0;v<b;v++){l=h?e.features[v].geometry:m?e.geometry:e;p=l?l.type==="GeometryCollection":false;s=p?l.geometries.length:1;for(var g=0;g<s;g++){var w=0;var k=0;a=p?l.geometries[g]:l;if(a===null)continue;c=a.coordinates;var y=a.type;d=0;switch(y){case null:break;case"Point":if(t(c,u,v,w,k)===false)return false;u++;w++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(t(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(n=0;n<c[r].length-d;n++){if(t(c[r][n],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(n=0;n<c[r].length;n++){for(o=0;o<c[r][n].length-d;o++){if(t(c[r][n][o],u,v,w,k)===false)return false;u++}k++}w++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(mt(a.geometries[r],t)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function bt(e,t){if(e.type==="Feature"){t(e,0)}else if(e.type==="FeatureCollection"){for(var i=0;i<e.features.length;i++){if(t(e.features[i],i)===false)break}}}function vt(e){var t=[];if(e.type==="FeatureCollection"){bt(e,(function(e){mt(e,(function(i){t.push(dt(i,e.properties))}))}))}else{mt(e,(function(i){t.push(dt(i,e.properties))}))}return ut(t)}function gt(e){var t=[Infinity,Infinity,-Infinity,-Infinity];mt(e,(function(e){if(t[0]>e[0]){t[0]=e[0]}if(t[1]>e[1]){t[1]=e[1]}if(t[2]<e[0]){t[2]=e[0]}if(t[3]<e[1]){t[3]=e[1]}}));return t}gt["default"]=gt;function wt(e,t){if(t===void 0){t={}}var i=gt(e);var r=(i[0]+i[2])/2;var n=(i[1]+i[3])/2;return dt([r,n],t.properties,t)}function kt(e){if(!e){throw new Error("geojson is required")}switch(e.type){case"Feature":return yt(e);case"FeatureCollection":return At(e);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return _t(e);default:throw new Error("unknown GeoJSON type")}}function yt(e){var t={type:"Feature"};Object.keys(e).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:t[i]=e[i]}}));t.properties=xt(e.properties);t.geometry=_t(e.geometry);return t}function xt(e){var t={};if(!e){return t}Object.keys(e).forEach((function(i){var r=e[i];if(typeof r==="object"){if(r===null){t[i]=null}else if(Array.isArray(r)){t[i]=r.map((function(e){return e}))}else{t[i]=xt(r)}}else{t[i]=r}}));return t}function At(e){var t={type:"FeatureCollection"};Object.keys(e).forEach((function(i){switch(i){case"type":case"features":return;default:t[i]=e[i]}}));t.features=e.features.map((function(e){return yt(e)}));return t}function _t(e){var t={type:e.type};if(e.bbox){t.bbox=e.bbox}if(e.type==="GeometryCollection"){t.geometries=e.geometries.map((function(e){return _t(e)}));return t}t.coordinates=zt(e.coordinates);return t}function zt(e){var t=e;if(typeof t[0]!=="object"){return t.slice()}return t.map((function(e){return zt(e)}))}function Lt(e){if(!e){throw new Error("coord is required")}if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point"){return e.geometry.coordinates}if(e.type==="Point"){return e.coordinates}}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1])){return e}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ct(e){if(e.type==="Feature"){return e.geometry}return e}function Mt(e,t,i){if(i===void 0){i={}}var r=Lt(e);var n=Lt(t);var o=ft(n[1]-r[1]);var a=ft(n[0]-r[0]);var s=ft(r[1]);var c=ft(n[1]);var l=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(c);return pt(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function Ft(e,t){if(!e)throw new Error("targetPoint is required");if(!t)throw new Error("points is required");var i;var r=Infinity;var n=0;bt(t,(function(t,i){var o=Mt(e,t);if(o<r){n=i;r=o}}));i=kt(t.features[n]);i.properties.featureIndex=n;i.properties.distanceToPoint=r;return i}function Pt(e,t,i){if(i===void 0){i={}}if(!e){throw new Error("point is required")}if(!t){throw new Error("polygon is required")}var r=Lt(e);var n=Ct(t);var o=n.type;var a=t.bbox;var s=n.coordinates;if(a&&Bt(r,a)===false){return false}if(o==="Polygon"){s=[s]}var c=false;for(var l=0;l<s.length&&!c;l++){if(Ot(r,s[l][0],i.ignoreBoundary)){var d=false;var u=1;while(u<s[l].length&&!d){if(Ot(r,s[l][u],!i.ignoreBoundary)){d=true}u++}if(!d){c=true}}}return c}function Ot(e,t,i){var r=false;if(t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]){t=t.slice(0,t.length-1)}for(var n=0,o=t.length-1;n<t.length;o=n++){var a=t[n][0];var s=t[n][1];var c=t[o][0];var l=t[o][1];var d=e[1]*(a-c)+s*(c-e[0])+l*(e[0]-a)===0&&(a-e[0])*(c-e[0])<=0&&(s-e[1])*(l-e[1])<=0;if(d){return!i}var u=s>e[1]!==l>e[1]&&e[0]<(c-a)*(e[1]-s)/(l-s)+a;if(u){r=!r}}return r}function Bt(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}function Tt(e){var t=jt(e);var i=wt(t);var r=false;var n=0;while(!r&&n<t.features.length){var o=t.features[n].geometry;var a,s,c,l,d,u,p;var f=false;if(o.type==="Point"){if(i.geometry.coordinates[0]===o.coordinates[0]&&i.geometry.coordinates[1]===o.coordinates[1]){r=true}}else if(o.type==="MultiPoint"){var h=false;p=0;while(!h&&p<o.coordinates.length){if(i.geometry.coordinates[0]===o.coordinates[p][0]&&i.geometry.coordinates[1]===o.coordinates[p][1]){r=true;h=true}p++}}else if(o.type==="LineString"){p=0;while(!f&&p<o.coordinates.length-1){a=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=o.coordinates[p][0];l=o.coordinates[p][1];d=o.coordinates[p+1][0];u=o.coordinates[p+1][1];if(Et(a,s,c,l,d,u)){f=true;r=true}p++}}else if(o.type==="MultiLineString"){var m=0;while(m<o.coordinates.length){f=false;p=0;var b=o.coordinates[m];while(!f&&p<b.length-1){a=i.geometry.coordinates[0];s=i.geometry.coordinates[1];c=b[p][0];l=b[p][1];d=b[p+1][0];u=b[p+1][1];if(Et(a,s,c,l,d,u)){f=true;r=true}p++}m++}}else if(o.type==="Polygon"||o.type==="MultiPolygon"){if(Pt(i,o)){r=true}}n++}if(r){return i}else{var v=ut([]);for(n=0;n<t.features.length;n++){v.features=v.features.concat(vt(t.features[n]).features)}return dt(Ft(i,v).geometry.coordinates)}}function jt(e){if(e.type!=="FeatureCollection"){if(e.type!=="Feature"){return ut([lt(e)])}return ut([e])}return e}function Et(e,t,i,r,n,o){var a=Math.sqrt((n-i)*(n-i)+(o-r)*(o-r));var s=Math.sqrt((e-i)*(e-i)+(t-r)*(t-r));var c=Math.sqrt((n-e)*(n-e)+(o-t)*(o-t));return a===s+c}(function(){var e=L.Polyline.prototype.onAdd,t=L.Polyline.prototype.onRemove,i=L.Polyline.prototype._updatePath,r=L.Polyline.prototype.bringToFront;var n={onAdd:function(t){e.call(this,t);this._textRedraw()},onRemove:function(e){e=e||this._map;if(e&&this._textNode&&this._renderer._container)this._renderer._container.removeChild(this._textNode);t.call(this,e)},bringToFront:function(){r.call(this);this._textRedraw()},_updatePath:function(){i.call(this);this._textRedraw()},_textRedraw:function(){var e=this._text,t=this._textOptions;if(e){this.setText(null).setText(e,t)}},setText:function(e,t){this._text=e;this._textOptions=t;if(!L.Browser.svg||typeof this._map==="undefined"){return this}var i={repeat:false,fillColor:"black",attributes:{},below:false};t=L.Util.extend(i,t);if(!e){if(this._textNode&&this._textNode.parentNode){this._renderer._container.removeChild(this._textNode);delete this._textNode}return this}e=e.replace(/ /g," ");var r="pathdef-"+L.Util.stamp(this);var n=this._renderer._container;this._path.setAttribute("id",r);if(t.repeat){if(t.repeat!=true&&t.repeat>=1){e=e.padStart(t.repeat," ")}var o=L.SVG.create("text");for(var a in t.attributes)o.setAttribute(a,t.attributes[a]);o.appendChild(document.createTextNode(e));n.appendChild(o);var s=o.getComputedTextLength();n.removeChild(o);e=new Array(Math.ceil(isNaN(this._path.getTotalLength()/s)?0:this._path.getTotalLength()/s)).join(e)}var c=L.SVG.create("text"),l=L.SVG.create("textPath");var d=t.offset||this._path.getAttribute("stroke-width");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+r);c.setAttribute("dy",d);for(var a in t.attributes)c.setAttribute(a,t.attributes[a]);l.appendChild(document.createTextNode(e));c.appendChild(l);this._textNode=c;if(t.below){n.insertBefore(c,n.firstChild)}else{n.appendChild(c)}if(t.center){var u=c.getComputedTextLength();var p=this._path.getTotalLength();c.setAttribute("dx",p/2-u/2)}if(t.orientation){var f=0;switch(t.orientation){case"flip":f=180;break;case"perpendicular":f=90;break;default:f=t.orientation}var 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(n);L.LayerGroup.include({setText:function(e,t){for(var i in this._layers){if(typeof this._layers[i].setText==="function"){this._layers[i].setText(e,t)}}return this}})})();var St=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 Nt=e("grw_map",function(){function e(e){t(this,e);this.trekCardPress=n(this,"trekCardPress",7);this.touristicContentCardPress=n(this,"touristicContentCardPress",7);this.touristicEventCardPress=n(this,"touristicEventCardPress",7);this.outdoorSiteCardPress=n(this,"outdoorSiteCardPress",7);this.outdoorCourseCardPress=n(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}e.prototype.componentDidUpdate=function(){if(this.map){this.map.invalidateSize();if(this.fitBoundsQueued&&this.bounds){this.map.fitBounds(this.bounds);this.fitBoundsQueued=false}}};e.prototype.onCenterOnMap=function(e){this.map.setView(new I.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){this.viewportState.steps=e.detail;if(this.hasScrolled&&this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){this.viewportState.description=e.detail;if(this.hasScrolled&&this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){this.viewportState.parking=e.detail;if(this.hasScrolled&&this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationPlacesIsInViewport=function(e){this.viewportState.informationPlaces=e.detail;if(this.hasScrolled&&this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){this.viewportState.sensitiveArea=e.detail;if(this.hasScrolled&&this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){this.viewportState.pois=e.detail;if(this.hasScrolled&&this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentPoisLayer,!u.currentPois||u.currentPois.length===0)}};e.prototype.touristicContentsIsInViewport=function(e){this.viewportState.touristicContents=e.detail;if(this.hasScrolled&&this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer,!u.trekTouristicContents||u.trekTouristicContents.length===0)}};e.prototype.touristicEventsIsInViewport=function(e){this.viewportState.touristicEvents=e.detail;if(this.hasScrolled&&this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentTouristicEventsLayer,!u.trekTouristicEvents||u.trekTouristicEvents.length===0)}};e.prototype.sitesIsInViewport=function(e){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentRelatedOutdoorSitesLayer)}};e.prototype.coursesIsInViewport=function(e){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(e.detail,this.currentRelatedOutdoorCoursesLayer)}};e.prototype.onDetailScrolled=function(){if(!this.hasScrolled){this.hasScrolled=true;this.applyCachedViewportState()}};e.prototype.onCardTrekMouseOver=function(e){if(!u.parentTrek&&(!u.selectedTrekId||u.selectedTrekId!==e.detail)){u.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(u.parentTrek){this.stepPopupIsOpen=false;u.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&u.selectedTrekId){this.trekPopupIsOpen=false;u.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){u.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;u.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){u.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};e.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};e.prototype.onOutdoorSiteMouseOver=function(e){this.outdoorSitePopupIsOpen=false;u.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(e.detail)};e.prototype.onOutdoorSiteMouseLeave=function(){u.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};e.prototype.componentWillLoad=function(){if(!u.language){u.language="fr"}if(!u.languages){u.languages=["fr"]}};e.prototype.componentDidLoad=function(){var e=this;this.map=I.map(this.mapRef,{zoom:4,center:[47,2],zoomControl:false});this.map.on("overlayadd",(function(t){var i=t.layer;var r=Object.values(e.customLayers).includes(i);if(r){e.refreshSingleLayer(i)}}));var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:H.tileLayerOffline(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].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=I.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}I.control.zoom({zoomInTitle:d[u.language].zoomIn,zoomOutTitle:d[u.language].zoomOut}).addTo(this.map);I.control.scale({metric:true,imperial:false}).addTo(this.map);I.Control.Contract=I.Control.extend({onAdd:function(){var t=I.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(I.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};i.title=d[u.language].contract;return t}});I.control.contract=function(e){return new I.Control.Contract(e)};I.control.contract({position:"topleft"}).addTo(this.map);new I.Control.SimpleLocate({position:"topleft",className:"button-locate",title:d[u.language].locate}).addTo(this.map);if(u.currentTrek){this.addTrek()}else if(u.currentTreks){this.addTreks()}else if(u.currentTouristicContent){this.addTouristicContent()}else if(u.currentTouristicEvent){this.addTouristicEvent()}else if(u.currentOutdoorSite){this.addOutdoorSite()}else if(u.currentOutdoorCourse){this.addOutdoorCourse()}else if(u.touristicContents){this.addTouristicContents()}else if(u.touristicEvents){this.addTouristicEvents()}else if(u.outdoorSites){this.addOutdoorSites()}p("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(u.currentTrek){e.removeTreks();e.addTrek()}else if(u.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeOutdoorSites();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));p("currentPois",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.setCurrentPois();return[2]}))}))}));p("trekTouristicContents",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.setCurrentTouristicContents();return[2]}))}))}));p("trekTouristicEvents",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.setCurrentTouristicEvents();return[2]}))}))}));p("currentOutdoorSites",(function(){if(u.currentOutdoorSites){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeOutdoorSites();e.addOutdoorSites(true)}}));p("currentTrek",(function(){if(u.currentTrek){e.removeTreks();e.addTrek()}else if(u.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}e.updateCustomLayersVisibility()}));p("currentOutdoorSite",(function(){if(u.currentOutdoorSite){e.removeOutdoorCourse();e.removeOutdoorSites();e.addOutdoorSite()}else if(u.currentOutdoorSites){e.removeOutdoorSite();e.addOutdoorSites()}}));p("currentOutdoorSite",(function(){if(u.currentOutdoorCourse){e.removeOutdoorSite();e.addOutdoorCourse()}}));p("currentTouristicContent",(function(){if(e.grwApp){if(u.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(u.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(u.currentTrek){e.removeTouristicContent();e.addTrek()}else if(u.currentTreks){e.removeTouristicContent();e.addTreks()}}}));p("currentTouristicEvent",(function(){if(e.grwApp){if(u.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(u.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(u.currentTreks){e.removeTouristicEvent();e.addTreks()}}}));p("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(u.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(u.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeOutdoorSites();e.removeTouristicContent();e.addTouristicContents(true)}}));p("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(u.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(u.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeOutdoorSites();e.removeTouristicEvent();e.addTouristicEvents(true)}}));p("mode",(function(){e.updateCustomLayersVisibility()}));this.addCustomLayers();if(this.customLayersRefreshInterval>0){this.refreshIntervalId=window.setInterval((function(){e.refreshCustomLayers()}),this.customLayersRefreshInterval*60*1e3)}};e.prototype.disconnectedCallback=function(){if(this.refreshIntervalId){window.clearInterval(this.refreshIntervalId)}};e.prototype.addCustomLayers=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,c,l,d,u,p,f;var h=this;return __generator(this,(function(m){switch(m.label){case 0:if(this.customWmsUrl){e=this.customWmsUrl.split(",");t=this.customWmsLayers?this.customWmsLayers.split(","):[];i=this.customWmsName?this.customWmsName.split(","):[];r=this.customWmsAttribution?this.customWmsAttribution.split(","):[];e.forEach((function(e,n){var o=t[n]||"";var a=i[n]||"WMS Layer ".concat(n+1);var s=r[n]||"";try{var c=I.tileLayer.wms(e.trim(),{layers:o.trim(),format:"image/png",transparent:true,maxZoom:h.maxZoom,version:"1.3.0",attribution:s.trim()});h.customLayers[a.trim()]=c}catch(e){console.error("Error adding WMS layer:",e)}}))}if(this.customTileUrl){n=this.customTileUrl.split(",");o=this.customTileName?this.customTileName.split(","):[];a=this.customTileAttribution?this.customTileAttribution.split(","):[];n.forEach((function(e,t){var i=o[t]||"Tile Layer ".concat(t+1);var r=a[t]||"";try{var n=I.tileLayer(e.trim(),{maxZoom:h.maxZoom,attribution:r.trim()});n._originalUrl=e.trim();h.customLayers[i.trim()]=n}catch(e){console.error("Error adding custom tile layer:",e)}}))}if(!this.customGeojsonUrl)return[3,4];s=this.customGeojsonUrl.split(",");c=this.customGeojsonName?this.customGeojsonName.split(","):[];l=this.customGeojsonColor?this.customGeojsonColor.split(","):[];d=this.customGeojsonWeight?this.customGeojsonWeight.split(","):[];u=function(e){var t,i,r,n,o,a,u,f;return __generator(this,(function(m){switch(m.label){case 0:t=s[e].trim();i=c[e]||"GeoJSON Layer ".concat(e+1);r=l[e]||"#3388ff";n=d[e]?parseInt(d[e],10):3;m.label=1;case 1:m.trys.push([1,4,,5]);return[4,fetch(t)];case 2:o=m.sent();if(!o.ok){throw new Error("HTTP error! status: ".concat(o.status))}return[4,o.json()];case 3:a=m.sent();u=I.geoJSON(a,{style:function(e){var t=(e===null||e===void 0?void 0:e.properties)||{};var i=t.stroke||t.color||r;var o=t["stroke-width"]||t.weight||n;var a=t["stroke-opacity"]||t.opacity||1;var s=t.fill||t.fillColor||i;var c=t["fill-opacity"]||t.fillOpacity||.2;return{color:i,weight:o,opacity:a,fillColor:s,fillOpacity:c}},pointToLayer:function(e,t){var i=(e===null||e===void 0?void 0:e.properties)||{};var n=i.icon||i["marker-symbol"];var o=i.name||i.title||"";var a=i.description||i.desc||"";var s;if(n){var c=n.startsWith("http")||n.startsWith("/")||n.startsWith("assets/");var l=h.commonMarkerSize;if(c){var d=I.icon({iconUrl:n,iconSize:[l,l],iconAnchor:[l/2,l]});s=I.marker(t,{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=I.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(n,"</div>"),className:"",iconSize:[l,l],iconAnchor:[l/2,l]});s=I.marker(t,{icon:b})}}else{var v=i.stroke||i.color||r;s=I.circleMarker(t,{radius:8,fillColor:v,color:"#fff",weight:2,opacity:1,fillOpacity:.8})}if(o||a){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(o){g+='<div class="trek-name" style="padding: 12px 12px 4px 12px; margin: 0; color: var(--color-primary-app);">'.concat(o,"</div>")}if(a){g+='<div style="font-size: 12px; color: var(--color-on-surface-variant, #49454e); padding: '.concat(o?"0px 12px 12px 12px":"12px",'; line-height: 1.4; word-break: break-word;">').concat(a,"</div>")}g+="</div>";s.bindPopup(g,{closeButton:false})}return s}});u._customUrl=t;p.customLayers[i.trim()]=u;return[3,5];case 4:f=m.sent();console.error("Error loading GeoJSON from ".concat(t,":"),f);return[3,5];case 5:return[2]}}))};p=this;f=0;m.label=1;case 1:if(!(f<s.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]}}))}))};e.prototype.refreshCustomLayers=function(){var e=this;Object.keys(this.customLayers).forEach((function(t){var i=e.customLayers[t];if(e.map.hasLayer(i)){e.refreshSingleLayer(i)}}))};e.prototype.refreshSingleLayer=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a;return __generator(this,(function(s){switch(s.label){case 0:if(!(e instanceof I.TileLayer.WMS))return[3,1];e.setParams({_t:Date.now()});return[3,8];case 1:if(!(e instanceof I.TileLayer))return[3,2];t=e._originalUrl;if(t){i=t.includes("?")?"&":"?";e.setUrl("".concat(t).concat(i,"_t=").concat(Date.now()))}else{e.redraw()}return[3,8];case 2:if(!(e instanceof I.GeoJSON))return[3,8];r=e._customUrl;if(!r)return[3,8];s.label=3;case 3:s.trys.push([3,7,,8]);return[4,fetch(r,{cache:"no-store"})];case 4:n=s.sent();if(!n.ok)return[3,6];return[4,n.json()];case 5:o=s.sent();e.clearLayers();e.addData(o);s.label=6;case 6:return[3,8];case 7:a=s.sent();console.error("Error refreshing GeoJSON layer:",a);return[3,8];case 8:return[2]}}))}))};e.prototype.updateCustomLayersVisibility=function(){var e=this;var t=!this.grwApp||u.mode==="treks"&&!!u.currentTrek;if(t&&Object.keys(this.customLayers).length>0&&!this.layersControl){var i={};this.tileLayer.forEach((function(e){i[e.key]=e.value}));this.layersControl=I.control.layers(i,{},{collapsed:true}).addTo(this.map)}Object.keys(this.customLayers).forEach((function(i){var r=e.customLayers[i];if(t){if(!e.map.hasLayer(r)){r.addTo(e.map)}if(e.layersControl){var n=e.layersControl._layers.some((function(e){return e.layer===r}));if(!n){e.layersControl.addOverlay(r,i)}}}else{if(e.map.hasLayer(r)){e.map.removeLayer(r)}if(e.layersControl){e.layersControl.removeLayer(r)}}}));if(t&&Object.keys(this.customLayers).length>0){this.handleLayersControlEvent()}};e.prototype.handleLayerVisibility=function(e,t,i){if(i===void 0){i=false}if(e&&!this.map.hasLayer(t)){t.addTo(this.map);this.layerDataIsLoading=i;o(this.hostElement)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,r,n,o,a,s,c,l,d;var p=this;if(e===void 0){e=false}return __generator(this,(function(f){switch(f.label){case 0:(t=this.addTreksController)===null||t===void 0?void 0:t.abort();this.addTreksController=new AbortController;r=this.addTreksController.signal;u.treksWithinBounds=u.currentTreks;n=[];o={type:"FeatureCollection",features:[]};if(u.currentTreks){a=function(e){n.push(e.departure_geom);o.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(i=u.practices.find((function(t){return t.id===e.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(e){return e.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(s=0,c=u.currentTreks;s<c.length;s++){l=c[s];a(l)}}if(!!this.treksLayer)return[3,2];if(n.length>0&&!u.currentMapBounds||e){this.bounds=I.latLngBounds(n.map((function(e){return[e[1],e[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(o,"practice")];case 1:d=f.sent();if(r.aborted){return[2]}this.treksLayer=I.geoJSON(o,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:d[e.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(d[e.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:p.mainMarkerSize,iconAnchor:[p.mainMarkerSize/2,p.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(p,void 0,void 0,(function(){var i,r,n,o,a,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(e.properties.imgSrc)];case 1:i=l.sent();r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;n=I.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=I.DomUtil.create("img");o.part="trek-image-popup";o.src=r;n.appendChild(o)}a=I.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);s=I.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){p.hideTrekLine();p.showTrekLine(e.properties.id);p.addSelectedCurrentTrek(e.properties.id,t.latlng)}))}});this.treksMarkerClusterGroup=I.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return I.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+e.getChildCount()+"</div>",className:"",iconSize:p.mainClusterSize})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(n.length>0){this.bounds=I.latLngBounds(n.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(o);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);f.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]}}))}))};e.prototype.removeTreks=function(){var e;(e=this.addTreksController)===null||e===void 0?void 0:e.abort();if(this.treksLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(u.currentTreks&&!u.currentMapBounds||u.currentTreks&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.treksWithinBounds=u.currentTreks.filter((function(t){return e.map.getBounds().contains(I.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(u.currentTouristicContents&&!u.currentMapBounds||u.currentTouristicContents&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.touristicContentsWithinBounds=u.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(I.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(u.currentTouristicEvents&&!u.currentMapBounds||u.currentTouristicEvents&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.touristicEventsWithinBounds=u.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(I.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleOutdoorSitesWithinBounds=function(){var e=this;if(u.currentOutdoorSites&&!u.currentMapBounds||u.currentOutdoorSites&&u.currentMapBounds&&u.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){u.outdoorSitesWithinBounds=u.currentOutdoorSites.filter((function(t){var i=Tt(t.geometry).geometry.coordinates;return e.map.getBounds().contains(I.latLng(i[1],i[0]))}))}};e.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,c,l,d,p,f,h,m,b,v,g,w,k,y,x,A,_,z,L,C;var M=this;return __generator(this,(function(F){switch(F.label){case 0:return[4,G("treks",u.currentTrek.id)];case 1:t=F.sent();if(t){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;u.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:u.currentTrek.geometry,properties:{}};this.currentTrekLayer=I.geoJSON(i,{style:function(){return{color:"transparent"}},onEachFeature:function(e,t){t.setText(">",{repeat:M.arrowRepeat,center:true,attributes:{fill:"#000000","font-weight":"bold","font-size":"16px"}})},interactive:false}).addTo(this.map);if(u.currentTrek.parking_location){r=a("".concat(s.isDev?"/":"","assets/parking.svg"));n={type:"Feature",properties:{name:u.currentTrek.advised_parking},geometry:{type:"Point",coordinates:u.currentTrek.parking_location}};this.currentParkingLayer=I.geoJSON(n,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:M.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=I.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=I.DomUtil.create("div");r.innerHTML=e.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0){c={type:"FeatureCollection",features:[]};for(l=0,d=u.currentSensitiveAreas;l<d.length;l++){p=d[l];c.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=I.geoJSON(c,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=I.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=I.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:M.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(u.currentTrek)];case 2:F.sent();return[4,this.addCurrentPois()];case 3:F.sent();return[4,this.addCurrentSignages()];case 4:F.sent();return[4,this.addCurrentTouristicContents()];case 5:F.sent();return[4,this.addCurrentTouristicEvents()];case 6:F.sent();if(u.currentTrek.points_reference){f={type:"FeatureCollection",features:[]};f.features.push({type:"Feature",properties:{},geometry:u.currentTrek.points_reference});h=0;this.currentReferencePointsLayer=I.geoJSON(f,{pointToLayer:function(e,t){h+=1;return I.marker(t,{icon:I.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(h,"</div>"),className:"",iconSize:M.pointReferenceMarkerSize}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&u.parentTrekId&&u.parentTrek&&u.currentTrek.id===u.parentTrekId){m={type:"FeatureCollection",features:[]};if(u.currentTrekSteps){b=function(t){m.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=u.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.filter((function(e){return e.type==="image"})).length>0?t.attachments[0].thumbnail!==""?t.attachments[0].thumbnail:t.attachments[0].url:null}})};for(v=0,g=u.currentTrekSteps;v<g.length;v++){w=g[v];b(w)}}k=0;this.currentStepsLayer=I.geoJSON(m,{pointToLayer:function(e,t){k+=1;return I.marker(t,{zIndexOffset:4e6,icon:I.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(k,"</div></div></div>"),className:"",iconSize:M.mainMarkerSize,iconAnchor:[M.mainMarkerSize/2,M.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(M,void 0,void 0,(function(){var i,r,n,o,a,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(e.properties.imgSrc)];case 1:i=l.sent();r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;n=I.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=I.DomUtil.create("img");o.src=r;n.appendChild(o)}a=I.DomUtil.create("div");a.innerHTML=e.properties.name;n.part="trek-name";a.className="trek-name";n.appendChild(a);s=I.DomUtil.create("button");s.innerHTML="Afficher le détail";n.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseover",(function(t){M.addSelectedCurrentStep(e.properties.id,t.latlng)}))}})}y={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};I.registerLocale("fr",y);I.setLocale("fr");x=u.currentTrek.geometry.coordinates.map((function(e){return e[2]})).filter((function(e){return e!==undefined&&e!==null}));A={yAxisMin:x.length>0?Math.min.apply(Math,x)*.75:0,yAxisMax:x.length>0?Math.max.apply(Math,x)*1.25:0};_=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},A);this.elevationControl=I.control.elevation(_).addTo(this.map);z=JSON.stringify({name:"".concat(u.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:u.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(z);this.elevationControl.eleDiv.style.display=this.elevationDefaultState==="visible"?"block":"none";o(this.hostElement);L={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:u.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:u.currentTrek.geometry.coordinates[u.currentTrek.geometry.coordinates.length-1]},properties:null}]};C=0;this.departureArrivalLayer=I.geoJSON(L,{pointToLayer:function(e,t){C+=1;return I.marker(t,{icon:I.divIcon({html:'<div part="'.concat(C===1?"departure-marker":"arrival-marker",'" class="').concat(C===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:M.departureArrivalMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=I.latLngBounds(u.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.map.on("eledata_loaded",(function(){M.fitBoundsQueued=true;!M.mapIsReady&&(M.mapIsReady=!M.mapIsReady)}));return[2]}}))}))};e.prototype.getIcons=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(a){switch(a.label){case 0:i={};r=0;a.label=1;case 1:if(!(r<e.features.length))return[3,4];if(!e.features[r].properties[t])return[3,3];n=i;o=e.features[r].properties[t];return[4,this.getIcon(e.features[r].properties[t])];case 2:n[o]=a.sent();a.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};e.prototype.getIcon=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a;return __generator(this,(function(s){switch(s.label){case 0:if(!!y.isNativePlatform())return[3,5];return[4,x(e)];case 1:i=s.sent();if(!i)return[3,3];o=(n=window.URL).createObjectURL;return[4,A(e)];case 2:r=o.apply(n,[s.sent().data]);return[3,4];case 3:r=e?e:null;s.label=4;case 4:t=r;return[3,7];case 5:return[4,_.getUri({path:e,directory:z.Data})];case 6:a=s.sent();if(a){t=y.convertFileSrc(a.uri)}s.label=7;case 7:return[2,t]}}))}))};e.prototype.addSelectedCurrentTrek=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,a,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:n={type:"FeatureCollection",features:[]};if(u.currentTreks){o=u.currentTreks.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(i=u.practices.find((function(e){return e.id===o.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:o.attachments&&o.attachments.filter((function(e){return e.type==="image"})).length>0?o.attachments[0].thumbnail!==""?o.attachments[0].thumbnail:o.attachments[0].url:null}})}this.removeSelectedCurrentTrek();(r=this.addSelectedCurrentTrekController)===null||r===void 0?void 0:r.abort();this.addSelectedCurrentTrekController=new AbortController;a=this.addSelectedCurrentTrekController.signal;u.selectedTrekId=e;return[4,this.getIcons(n,"practice")];case 1:s=l.sent();if(a.aborted){return[2]}this.selectedCurrentTrekLayer=I.geoJSON(n,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.divIcon({html:s[e.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(s[e.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:c.selectedMainMarkerSize,iconAnchor:[c.selectedMainMarkerSize/2,c.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(c,void 0,void 0,(function(){var i,r,n,o,a,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(e.properties.imgSrc)];case 1:i=l.sent();r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;n=I.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=I.DomUtil.create("img");o.src=r;o.part="trek-image";n.appendChild(o)}a=I.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);s=I.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-button";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!c.trekPopupIsOpen){u.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){c.trekPopupIsOpen=Boolean(u.selectedTrekId)}));t.on("popupclose",(function(){if(u.selectedTrekId){c.trekPopupIsOpen=false;u.selectedTrekId=null;c.hideTrekLine();c.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedCurrentTrek=function(){var e;(e=this.addSelectedCurrentTrekController)===null||e===void 0?void 0:e.abort();u.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(u.currentTrekSteps){var o=u.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:u.currentTrekSteps[o].departure_geom},properties:{id:u.currentTrekSteps[o].id,name:u.currentTrekSteps[o].name,practice:(r=u.practices.find((function(e){return e.id===u.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:u.currentTrekSteps[o].attachments&&u.currentTrekSteps[o].attachments.filter((function(e){return e.type==="image"})).length>0?u.currentTrekSteps[o].attachments[0].thumbnail!==""?u.currentTrekSteps[o].attachments[0].thumbnail:u.currentTrekSteps[o].attachments[0].url:null,index:o+1}})}this.removeSelectedCurrentStep();u.selectedStepId=e;this.selectedCurrentStepLayer=I.geoJSON(n,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.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(e.properties.index,"</div></div></div>"),className:"",iconSize:i.selectedMainMarkerSize,iconAnchor:[i.selectedMainMarkerSize/2,i.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o,a,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(e.properties.imgSrc)];case 1:i=l.sent();r=i?i:e.properties.imgSrc?e.properties.imgSrc:null;n=I.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=I.DomUtil.create("img");o.part="trek-image";o.src=r;n.appendChild(o)}a=I.DomUtil.create("div");a.innerHTML=e.properties.name;a.part="trek-name";a.className="trek-name";n.appendChild(a);s=I.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="trek-name";s.className="trek-button";s.onclick=function(){return c.trekCardPress.emit(e.properties.id)};n.appendChild(s);t.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){u.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(u.selectedStepId)}));t.on("popupclose",(function(){if(u.selectedStepId){i.stepPopupIsOpen=false;u.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(u.selectedStepId){u.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;if(this.layersControl){var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked;var r=e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId}));if(e.userLayersState[t.layerId]&&r.layer._layers&&Object.keys(r.layer._layers).length===0){e.layerDataIsLoading=true;o(e.hostElement)}}}}))}};e.prototype.removeTrek=function(){this.handleLayersOnRemove()};e.prototype.showTrekLine=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n;var o=this;return __generator(this,(function(a){switch(a.label){case 0:this.removeSelectedCurrentTrek();(t=this.showTrekLineController)===null||t===void 0?void 0:t.abort();this.showTrekLineController=new AbortController;i=this.showTrekLineController.signal;return[4,Q(e)];case 1:r=a.sent();if(i.aborted){return[2]}n={type:"Feature",geometry:r.geometry,properties:{}};this.currentTrekLayer=I.geoJSON(n,{style:function(){return{color:o.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};e.prototype.hideTrekLine=function(){var e;(e=this.showTrekLineController)===null||e===void 0?void 0:e.abort();if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(r){switch(r.label){case 0:this.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;this.removeSelectedTouristicContent();e={type:"FeatureCollection",features:[]};if(u.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:u.currentTouristicContent.geometry.coordinates},properties:{id:u.currentTouristicContent.id,name:u.currentTouristicContent.name,practice:u.touristicContentCategories.find((function(e){return e.id===u.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(e,"practice")];case 1:t=r.sent();this.currentToutisticContentLayer=I.geoJSON(e,{pointToLayer:function(e,r){return I.marker(r,{icon:I.divIcon({html:t[e.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(t[e.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:i.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);r.label=2;case 2:this.map.setView([u.currentTouristicContent.geometry.coordinates[1],u.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,r,n,o,a,s,c,l;var d=this;if(e===void 0){e=false}return __generator(this,(function(p){switch(p.label){case 0:(t=this.addTouristicContentsController)===null||t===void 0?void 0:t.abort();this.addTouristicContentsController=new AbortController;i=this.addTouristicContentsController.signal;u.touristicContentsWithinBounds=u.currentTouristicContents;r=[];n={type:"FeatureCollection",features:[]};if(u.currentTouristicContents){o=function(e){r.push(e.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:u.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.filter((function(e){return e.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(a=0,s=u.currentTouristicContents;a<s.length;a++){c=s[a];o(c)}}if(!!this.toutisticContentsLayer)return[3,2];if(r.length>0&&!u.currentMapBounds||e){this.bounds=I.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(n,"practice")];case 1:l=p.sent();if(i.aborted){return[2]}this.toutisticContentsLayer=I.geoJSON(n,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:l[e.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(l[e.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:d.mainMarkerSize,iconAnchor:[d.mainMarkerSize/2,d.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;i.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=I.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return d.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){d.addSelectedTouristicContent(e.properties.id,t.latlng)}))}});this.touristicContentsMarkerClusterGroup=I.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return I.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+e.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=I.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(n);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);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.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicContents=function(){var e;(e=this.addTouristicContentsController)===null||e===void 0?void 0:e.abort();if(this.toutisticContentsLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e={type:"FeatureCollection",features:[]};if(u.currentTouristicEvent){t=u.touristicEventTypes.find((function(e){return e.id===u.currentTouristicEvent.type}));e.features.push({type:"Feature",geometry:{type:"Point",coordinates:u.currentTouristicEvent.geometry.coordinates},properties:{id:u.currentTouristicEvent.id,name:u.currentTouristicEvent.name,type:t?t.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(e,"type")];case 1:i=n.sent();this.currentToutisticEventLayer=I.geoJSON(e,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:i[e.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[e.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);n.label=2;case 2:this.map.setView([u.currentTouristicEvent.geometry.coordinates[1],u.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(u.touristicContents){n=u.touristicContents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=u.touristicContentCategories.find((function(e){return e.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(e){return e.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedTouristicContent();u.selectedTouristicContentId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicContentLayer=I.geoJSON(r,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.divIcon({html:o[e.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(o[e.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:a.selectedMainMarkerSize,iconAnchor:[a.selectedMainMarkerSize/2,a.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=I.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return a.touristicContentCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicContentPopupIsOpen){u.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){a.touristicContentPopupIsOpen=Boolean(u.selectedTouristicContentId)}));t.on("popupclose",(function(){if(u.selectedTouristicContentId){a.touristicContentPopupIsOpen=false;u.selectedTouristicContentId=null;a.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicContent=function(){u.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,r,n,o,a,s,c,l,d;var p=this;if(e===void 0){e=false}return __generator(this,(function(f){switch(f.label){case 0:(t=this.addTouristicEventsController)===null||t===void 0?void 0:t.abort();this.addTouristicEventsController=new AbortController;r=this.addTouristicEventsController.signal;u.touristicEventsWithinBounds=u.currentTouristicEvents;n=[];o={type:"FeatureCollection",features:[]};if(u.currentTouristicEvents){a=function(e){n.push(e.geometry.coordinates);o.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(i=u.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(e){return e.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(s=0,c=u.currentTouristicEvents;s<c.length;s++){l=c[s];a(l)}}if(!!this.touristicEventsLayer)return[3,2];if(n.length>0&&!u.currentMapBounds||e){this.bounds=I.latLngBounds(n.map((function(e){return[e[1],e[0]]})))}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(o,"type")];case 1:d=f.sent();if(r.aborted){return[2]}this.touristicEventsLayer=I.geoJSON(o,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:d[e.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(d[e.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:p.mainMarkerSize,iconAnchor:[p.mainMarkerSize/2,p.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=I.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=function(){return p.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){p.addSelectedTouristicEvent(e.properties.id,t.latlng)}))}});this.touristicEventsMarkerClusterGroup=I.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return I.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+e.getChildCount()+"</div></div>",className:"",iconSize:p.mainClusterSize})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(n.length>0){this.bounds=I.latLngBounds(n.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(o);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);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.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};e.prototype.removeTouristicEvents=function(){var e;(e=this.addTouristicEventsController)===null||e===void 0?void 0:e.abort();if(this.touristicEventsLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addOutdoorSites=function(){return __awaiter(this,arguments,void 0,(function(e){var t,i,r,n,o,a,s,c,l,d,p;var f=this;if(e===void 0){e=false}return __generator(this,(function(h){switch(h.label){case 0:(t=this.addOutdoorSitesController)===null||t===void 0?void 0:t.abort();this.addOutdoorSitesController=new AbortController;r=this.addOutdoorSitesController.signal;u.outdoorSitesWithinBounds=u.currentOutdoorSites;n=[];o={type:"FeatureCollection",features:[]};if(u.currentOutdoorSites){a=function(e){o.features.push({type:"Feature",geometry:{type:"Point",coordinates:Tt(e.geometry).geometry.coordinates},properties:{id:e.id,name:e.name,practice:(i=u.outdoorPractices.find((function(t){return t.id===e.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.filter((function(e){return e.type==="image"})).length>0?e.attachments[0].thumbnail!==""?e.attachments[0].thumbnail:e.attachments[0].url:null}})};for(s=0,c=u.currentOutdoorSites;s<c.length;s++){l=c[s];a(l)}}if(!!this.outdoorSitesLayer)return[3,2];if(n.length>0&&!u.currentMapBounds||e){d=gt(o);this.bounds=I.latLngBounds([d[1],d[0]],[d[3],d[2]])}else{if(u.currentMapBounds){this.bounds=u.currentMapBounds}}return[4,this.getIcons(o,"practice")];case 1:p=h.sent();if(r.aborted){return[2]}this.outdoorSitesLayer=I.geoJSON(o,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:p[e.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(p[e.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:f.mainMarkerSize,iconAnchor:[f.mainMarkerSize/2,f.mainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var o=I.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=function(){return f.outdoorSiteCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseover",(function(t){f.addSelectedOutdoorSite(e.properties.id,t.latlng)}))}});this.outdoorSitesMarkerClusterGroup=I.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return I.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+e.getChildCount()+"</div></div>",className:"",iconSize:f.mainClusterSize})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(n.length>0){this.bounds=I.latLngBounds(n.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(o);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);h.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]}}))}))};e.prototype.removeOutdoorSites=function(){var e;(e=this.addOutdoorSitesController)===null||e===void 0?void 0:e.abort();if(this.outdoorSitesLayer){u.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};e.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e={type:"FeatureCollection",features:[]};if(u.currentOutdoorSite){t=u.outdoorPractices.find((function(e){return e.id===u.currentOutdoorSite.practice}));e.features.push({type:"Feature",geometry:u.currentOutdoorSite.geometry,properties:{id:u.currentOutdoorSite.id,name:u.currentOutdoorSite.name,practice:t?t.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(e,"practice")];case 1:i=n.sent();this.currentOutdoorSiteLayer=I.geoJSON(e,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:i[e.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[e.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);n.label=2;case 2:return[4,this.addCurrentInformationDesks(u.currentOutdoorSite)];case 3:n.sent();return[4,this.addCurrentPois()];case 4:n.sent();return[4,this.addCurrentTouristicContents()];case 5:n.sent();return[4,this.addCurrentTouristicEvents()];case 6:n.sent();return[4,this.addCurrentRelatedOutdoorSites()];case 7:n.sent();return[4,this.addCurrentRelatedOutdoorCourses()];case 8:n.sent();this.handleLayersControl();this.map.invalidateSize();this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(),{maxZoom:this.maxZoom});!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a;var s=this;return __generator(this,(function(c){switch(c.label){case 0:t={type:"FeatureCollection",features:[]};if(u.currentRelatedOutdoorSites){i=function(i){t.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(e=u.outdoorPractices.find((function(e){return e.id===i.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(e){return e.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,n=u.currentRelatedOutdoorSites;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorSitesLayer&&t.features.length>0))return[3,2];return[4,this.getIcons(t,"practice")];case 1:a=c.sent();this.currentRelatedOutdoorSitesLayer=I.geoJSON(t,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:a[e.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(a[e.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};e.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a;var s=this;return __generator(this,(function(c){switch(c.label){case 0:t={type:"FeatureCollection",features:[]};if(u.currentRelatedOutdoorCourses){i=function(i){t.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(e=u.outdoorCourseTypes.find((function(e){return e.id===i.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:i.attachments&&i.attachments.filter((function(e){return e.type==="image"})).length>0?i.attachments[0].thumbnail!==""?i.attachments[0].thumbnail:i.attachments[0].url:null}})};for(r=0,n=u.currentRelatedOutdoorCourses;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&t.features.length>0))return[3,2];return[4,this.getIcons(t,"type")];case 1:a=c.sent();this.currentRelatedOutdoorCoursesLayer=I.geoJSON(t,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:a[e.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(a[e.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:s.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:s.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};e.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};e.prototype.addSelectedTouristicEvent=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:r={type:"FeatureCollection",features:[]};if(u.touristicEvents){n=u.touristicEvents.find((function(t){return t.id===e}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=u.touristicEventTypes.find((function(e){return e.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.filter((function(e){return e.type==="image"})).length>0?n.attachments[0].thumbnail!==""?n.attachments[0].thumbnail:n.attachments[0].url:null}})}this.removeSelectedTouristicEvent();u.selectedTouristicEventId=e;return[4,this.getIcons(r,"category")];case 1:o=s.sent();this.selectedTouristicEventLayer=I.geoJSON(r,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.divIcon({html:o[e.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(o[e.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:a.selectedMainMarkerSize,iconAnchor:[a.selectedMainMarkerSize/2,a.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=I.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=function(){return a.touristicEventCardPress.emit(e.properties.id)};i.appendChild(o);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!a.touristicEventPopupIsOpen){u.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){a.touristicEventPopupIsOpen=Boolean(u.selectedTouristicEventId)}));t.on("popupclose",(function(){if(u.selectedTouristicEventId){a.touristicEventPopupIsOpen=false;u.selectedTouristicEventId=null;a.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedTouristicEvent=function(){u.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e={type:"FeatureCollection",features:[]};if(u.currentOutdoorCourse){t=u.outdoorCourseTypes.find((function(e){return e.id===u.currentOutdoorCourse.type}));e.features.push({type:"Feature",geometry:u.currentOutdoorCourse.geometry,properties:{id:u.currentOutdoorCourse.id,name:u.currentOutdoorCourse.name,type:t?t.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(e,"type")];case 1:i=n.sent();this.currentOutdoorCourseLayer=I.geoJSON(e,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:i[e.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[e.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:r.commonMarkerSize}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorCourseLayer);n.label=2;case 2:return[4,this.addCurrentPois()];case 3:n.sent();return[4,this.addCurrentTouristicContents()];case 4:n.sent();return[4,this.addCurrentTouristicEvents()];case 5:n.sent();this.handleLayersControl();this.map.fitBounds(this.currentOutdoorCourseLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};e.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};e.prototype.addSelectedOutdoorSite=function(e,t){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n;var o=this;return __generator(this,(function(a){switch(a.label){case 0:i={type:"FeatureCollection",features:[]};if(u.currentOutdoorSites){r=u.currentOutdoorSites.find((function(t){return t.id===e}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:Tt(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(t=u.outdoorPractices.find((function(e){return e.id===r.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(e){return e.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}}this.removeSelectedOutdoorSite();u.selectedOutdoorSiteId=e;return[4,this.getIcons(i,"practice")];case 1:n=a.sent();this.selectedOutdoorSiteLayer=I.geoJSON(i,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.divIcon({html:n[e.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(n[e.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var a=I.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-site-button";a.className="outdoor-site-button";a.onclick=function(){return o.outdoorSiteCardPress.emit(e.properties.id)};i.appendChild(a);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!o.outdoorSitePopupIsOpen){u.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}));t.on("popupopen",(function(){o.outdoorSitePopupIsOpen=Boolean(u.selectedOutdoorSiteId)}));t.on("popupclose",(function(){if(u.selectedOutdoorSiteId){o.outdoorSitePopupIsOpen=false;u.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedOutdoorSite=function(){u.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};e.prototype.addSelectedOutdoorCourse=function(e,t){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n;var o=this;return __generator(this,(function(a){switch(a.label){case 0:i={type:"FeatureCollection",features:[]};if(u.currentOutdoorCourse){r=u.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:Tt(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(t=u.outdoorCourseTypes.find((function(e){return e.id===r.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:r.attachments&&r.attachments.filter((function(e){return e.type==="image"})).length>0?r.attachments[0].thumbnail!==""?r.attachments[0].thumbnail:r.attachments[0].url:null}})}this.removeSelectedOutdoorCourse();u.selectedOutdoorCourseId=e;return[4,this.getIcons(i,"type")];case 1:n=a.sent();this.selectedOutdoorCourseLayer=I.geoJSON(i,{pointToLayer:function(e,t){return I.marker(t,{zIndexOffset:4e6,icon:I.divIcon({html:n[e.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(n[e.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:o.selectedMainMarkerSize,iconAnchor:[o.selectedMainMarkerSize/2,o.selectedMainMarkerSize]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var i=I.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(e.properties.imgSrc){var r=I.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=e.properties.imgSrc;i.appendChild(r)}var n=I.DomUtil.create("div");n.innerHTML=e.properties.name;n.part="outdoor-course-name";n.className="outdoor-course-name";i.appendChild(n);var a=I.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="outdoor-course-button";a.className="outdoor-course-button";a.onclick=function(){return o.outdoorCourseCardPress.emit(e.properties.id)};i.appendChild(a);t.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!o.outdoorCoursePopupIsOpen){u.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}));t.on("popupopen",(function(){o.outdoorCoursePopupIsOpen=Boolean(u.selectedOutdoorCourseId)}));t.on("popupclose",(function(){if(u.selectedOutdoorCourseId){o.outdoorCoursePopupIsOpen=false;u.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};e.prototype.removeSelectedOutdoorCourse=function(){u.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};e.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){if(u.poisData>0){e={type:"FeatureCollection",features:[]};this.currentPoisLayer=I.geoJSON(e,{pointToLayer:function(e,i){return I.marker(i,{icon:I.divIcon({html:e.properties.type_pictogram?'<div part="poi-marker" class="poi-marker"><img src='.concat(e.properties.type_pictogram," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:t.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=I.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=I.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});if(u.currentPois){this.setCurrentPois()}}return[2]}))}))};e.prototype.setCurrentPois=function(){var e;if(this.currentPoisLayer){if(u.currentPois){var t={type:"FeatureCollection",features:[]};var i=function(i){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=u.poiTypes.find((function(e){return e.id===i.type})))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})};for(var r=0,n=u.currentPois;r<n.length;r++){var a=n[r];i(a)}this.currentPoisLayer.clearLayers();this.currentPoisLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}};e.prototype.addCurrentSignages=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n;var o=this;return __generator(this,(function(c){if(u.currentSignages&&u.currentSignages.length>0){e=a("".concat(s.isDev?"/":"","assets/signage.svg"));t={type:"FeatureCollection",features:[]};for(i=0,r=u.currentSignages;i<r.length;i++){n=r[i];t.features.push({type:"Feature",properties:{name:n.name},geometry:n.geometry})}this.currentSignagesLayer=I.geoJSON(t,{pointToLayer:function(t,i){return I.marker(i,{icon:I.divIcon({html:'<div part="signage-marker" class="signage-marker"><img part="signage-img" src='.concat(e,' /><div part="signage-name" class="signage-name">').concat(t.properties.name,"</div></div>"),className:"",iconSize:[o.commonMarkerSize*1.2,o.commonMarkerSize*.8]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=I.DomUtil.create("div");i.part="signage-tooltip";i.className="signage-tooltip";var r=I.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="signage-name";r.className="signage-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}return[2]}))}))};e.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){if(u.touristicContentsData>0){e={type:"FeatureCollection",features:[]};this.currentToutisticContentsLayer=I.geoJSON(e,{pointToLayer:function(e,i){return I.marker(i,{icon:I.divIcon({html:e.properties.category_pictogram?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(e.properties.category_pictogram," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:t.grwApp?"":"cursor-pointer",iconSize:t.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.on("click",(function(){if(!t.grwApp){t.touristicContentCardPress.emit(e.properties.id)}}));i.on("mouseover",(function(){var t=I.DomUtil.create("div");t.part="touristic-content-tooltip";t.className="touristic-content-tooltip";var r=I.DomUtil.create("div");r.innerHTML=e.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";t.appendChild(r);i.bindTooltip(t).openTooltip()}))}});if(u.trekTouristicContents){this.setCurrentTouristicContents()}}return[2]}))}))};e.prototype.setCurrentTouristicContents=function(){var e;if(this.currentToutisticContentsLayer){if(u.trekTouristicContents){var t={type:"FeatureCollection",features:[]};var i=function(i){t.features.push({type:"Feature",properties:{id:i.id,name:i.name,category_pictogram:(e=u.touristicContentCategories.find((function(e){return e.id===i.category})))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})};for(var r=0,n=u.trekTouristicContents;r<n.length;r++){var a=n[r];i(a)}this.currentToutisticContentsLayer.clearLayers();this.currentToutisticContentsLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}};e.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){if(u.touristicEventsData>0){e={type:"FeatureCollection",features:[]};this.currentTouristicEventsLayer=I.geoJSON(e,{pointToLayer:function(e,i){return I.marker(i,{icon:I.divIcon({html:e.properties.type_pictogram?'<div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(e.properties.type_pictogram," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:t.grwApp?"":"cursor-pointer",iconSize:t.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.on("click",(function(){if(!t.grwApp){t.touristicEventCardPress.emit(e.properties.id)}}));i.once("mouseover",(function(){var t=I.DomUtil.create("div");t.part="touristic-event-tooltip";t.className="touristic-event-tooltip";var r=I.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=e.properties.name;r.className="touristic-event-name";t.appendChild(r);i.bindTooltip(t).openTooltip()}))}});if(u.trekTouristicEvents){this.setCurrentTouristicEvents()}}return[2]}))}))};e.prototype.setCurrentTouristicEvents=function(){var e;if(this.currentTouristicEventsLayer){if(u.trekTouristicEvents){var t={type:"FeatureCollection",features:[]};var i=function(i){t.features.push({type:"Feature",properties:{id:i.id,name:i.name,type_pictogram:(e=u.touristicEventTypes.find((function(e){return e.id===i.type})))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})};for(var r=0,n=u.trekTouristicEvents;r<n.length;r++){var a=n[r];i(a)}this.currentTouristicEventsLayer.clearLayers();this.currentTouristicEventsLayer.addData(t);this.layerDataIsLoading=false;o(this.hostElement)}}};e.prototype.addCurrentInformationDesks=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o;var a=this;return __generator(this,(function(s){switch(s.label){case 0:if(!(u.currentInformationDesks&&u.currentInformationDesks.length>0))return[3,2];t={type:"FeatureCollection",features:[]};for(i=0,r=u.currentInformationDesks.filter((function(t){return e.information_desks.includes(t.id)}));i<r.length;i++){n=r[i];if(n.latitude&&n.longitude){t.features.push({type:"Feature",properties:{name:n.name,type_pictogram:n.type.pictogram},geometry:{type:"Point",coordinates:[Number(n.longitude),Number(n.latitude)]}})}}if(!(t.features.length>0))return[3,2];return[4,this.getIcons(t,"type_pictogram")];case 1:o=s.sent();this.currentInformationDesksLayer=I.geoJSON(t,{pointToLayer:function(e,t){return I.marker(t,{icon:I.divIcon({html:o[e.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(o[e.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:a.commonMarkerSize}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=I.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=I.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}});s.label=2;case 2:return[2]}}))}))};e.prototype.handleLayersControl=function(){var e=this;var t={};if(this.currentStepsLayer){t[d[u.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){t[d[u.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){t[d[u.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){t[d[u.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){t[d[u.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(u.poisData>0){t[d[u.language].layers.pois]=this.currentPoisLayer}if(this.currentSignagesLayer){t[d[u.language].layers.signages]=this.currentSignagesLayer;this.currentSignagesLayer.addTo(this.map)}if(u.touristicContentsData>0){t[d[u.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(u.touristicEventsData>0){t[d[u.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){t[d[u.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){t[d[u.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(t).forEach((function(i){e.layersControl.addOverlay(t[i],i)}))}else if(Object.keys(t).length>0){this.layersControl=I.control.layers({},t,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};e.prototype.applyCachedViewportState=function(){if(!this.layersControl)return;var e=[{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:!u.currentPois||u.currentPois.length===0},{key:"touristicContents",layer:this.currentToutisticContentsLayer,loading:!u.trekTouristicContents||u.trekTouristicContents.length===0},{key:"touristicEvents",layer:this.currentTouristicEventsLayer,loading:!u.trekTouristicEvents||u.trekTouristicEvents.length===0}];for(var t=0,i=e;t<i.length;t++){var r=i[t],n=r.key,o=r.layer,a=r.loading;if(o&&this.viewportState[n]!==undefined){this.handleLayerVisibility(this.viewportState[n],o,a||false)}}};e.prototype.handleLayersOnRemove=function(){var e=this;this.viewportState={};this.hasScrolled=false;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.layersControl.removeLayer(t.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}};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.handleView=function(){var e=this.mapElement.getBoundingClientRect().width>=this.largeViewSize?this.elevationHeight:this.mobileElevationHeight;if(this.elevationControl){this.elevationControl.options.height=e;this.elevationControl.redraw()}if(this.map){this.map.invalidateSize()}o(this.hostElement)};e.prototype.handleElevation=function(){this.elevationControl.eleDiv.style.display=this.elevationControl.eleDiv.style.display==="block"?"none":"block";this.elevationControl.redraw();o(this.hostElement)};e.prototype.render=function(){var e=this;var t=a("".concat(s.isDev?"/":"","assets/layers.svg"));var n=a("".concat(s.isDev?"/":"","assets/contract.svg"));return i(r,{key:"242cc293124d230347aa6accd72e936b18a62cb1",ref:function(t){return e.hostElement=t},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(t,")"),"--contract-image-src":"url(".concat(n,")"),"--elevation-height":(this.mapElement.getBoundingClientRect().width>=this.largeViewSize/2?this.elevationHeight:this.mobileElevationHeight).toString().concat("px")}},i("div",{key:"243c78917cf017fae10ed667818ef64584ba46b4",id:"map",part:"map",class:(u.currentTouristicContent||u.currentTouristicEvent||u.currentOutdoorSite||u.currentOutdoorCourse)&&this.grwApp?"common-map":u.currentTrek&&this.elevationControl&&this.elevationControl.eleDiv.style.display==="block"?"trek-map-and-elevation":u.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}},this.layerDataIsLoading&&i("div",{key:"e9b297654f99ed6412724b5343212afbe1ab4a31",class:"layer-loader-container"},i("div",{key:"a1a6be407c08fcd926bef1b2235fb25be3a6e393",class:"layer-loader"})),u.currentTrek&&i("div",{key:"a358cc8b339d41f73e525aa56ac2a45f211931ac",class:"grw-elevation-visibility-button-container"},i("grw-fab",{key:"1a194b03b2cd8005b9f3eef0306765289e7fdb10",exportparts:"fab-visibility-button,fab-visibility-button-icon,fab-visibility-button-label","font-family":this.fontFamily,action:function(){return e.handleElevation()},icon:function(){return e.elevationControl&&e.elevationControl.eleDiv.style.display==="block"?"show-elevation":"hide-elevation"},showTitle:d[u.language].showElevation,hideTitle:d[u.language].hideElevation,"fab-background-color":this.fabBackgroundColor,"fab-color":this.fabColor}))),!this.mapIsReady&&i("div",{key:"76374c2d4d829c28e4cfe57dc3a95bfdbca3a24d",part:"map-loader-container",class:"map-loader-container"},i("span",{key:"1cb3ac748f10113704d381bdc3b8197e76865aee",part:"loader",class:"loader"})))};Object.defineProperty(e.prototype,"mapElement",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());Nt.style=St();var Yt=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 It=e("grw_offline_confirm_modal",function(){function e(e){t(this,e);this.downloadPress=n(this,"downloadPress",7);this.deletePress=n(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}e.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};e.prototype.onDownloadedSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true};e.prototype.downloadedErrorConfirm=function(){this.showLoaderModal=false;this.showErrorModal=true};e.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};e.prototype.onDeleteSuccessConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};e.prototype.deleteErrorConfirm=function(){this.showLoaderModal=false;this.showSuccessModal=true;this.showDeleteSuccessMessage=true};e.prototype.handleOkDeleteModal=function(){this.showDeletingMessage=true;this.showConfirmDeleteModal=false;this.showConfirmModal=false;this.showLoaderModal=true;this.deletePress.emit()};e.prototype.handleOkDownloadModal=function(){this.showConfirmModal=false;this.showLoaderModal=true;this.downloadPress.emit()};e.prototype.handleCancelModal=function(){document.body.style.overflow="visible";this.showOfflineModal=false};e.prototype.render=function(){var e=this;return i(r,{key:"7306b7a65560fcb9c4088b7c3a9a2ee160dd3a0b"},this.showOfflineModal&&i("div",{key:"14e0880950476ecc6d884fdca71df39f29f918e4",class:"modal-container"},i("div",{key:"43bc502d63bf2a70a3ca5bc1507f93955dae406f",class:"modal-content-container"},this.showConfirmModal&&!this.showConfirmDeleteModal&&i(l,{key:"1f1f66df6b7cd679c047d628be3c0a1b44b508c8"},i("div",{key:"754600cafd576f889a663ec1559540f1ab7d4e10",class:"modal-message-container"},"".concat(this.mode==="treks"?d[u.language].offline.downloadRouteQuestion:d[u.language].offline.downloadOutdoorQuestion)),i("div",{key:"6c8b16285f711b6b950a0df205acdd6daf6b6a4d",class:"modal-buttons-container"},i("button",{key:"059d1cb25bcce42a1737b96607d60dcebd50a8a1",part:"modal-button",class:"modal-button",onClick:function(){return e.handleCancelModal()}},d[u.language].offline.cancel),i("button",{key:"345f06cb86b5d4fa2677e828d34379dd6f65d38f",part:"modal-button",class:"modal-button",onClick:function(){return e.handleOkDownloadModal()}},d[u.language].offline.ok))),this.showConfirmDeleteModal&&i(l,{key:"bbaf82b8f3ce83cc38394f5e9587ff7a3f90153e"},i("div",{key:"f64a7242bedeb2f5683f0d2f3348a2a723feac1d",class:"modal-message-container"},"".concat(this.mode==="treks"?d[u.language].offline.deleteRouteQuestion:d[u.language].offline.deleteRouteQuestion)),i("div",{key:"2127e7ea9f8f35baa54b57bf93ea04ee2ab81333",class:"modal-buttons-container"},i("button",{key:"276e45cfd48fb2f9cd492745f953fbc4353478f8",part:"modal-button",class:"modal-button",onClick:function(){return e.handleCancelModal()}},d[u.language].offline.cancel),i("button",{key:"1f5c9d6eb92330e8f918b9e0418093141b2a3db4",part:"modal-button",class:"modal-button",onClick:function(){return e.handleOkDeleteModal()}},d[u.language].offline.ok))),this.showLoaderModal&&i(l,{key:"f089931324dec141dd6cf0885296ac127305c99c"},i("div",{key:"7ed4f98632d3fd859413f02adb588ca37da95e05",class:"modal-message-container"},i("div",{key:"8d4afc461bf6c3c6ea4bd4682cf6a8cf88404f7e",class:"modal-loader"}),this.showDeletingMessage?d[u.language].offline.deleting:d[u.language].offline.downloading)),this.showSuccessModal&&i(l,{key:"9615a88d554a05dacf036998fcfb68261f29c0fe"},i("div",{key:"beb9348cc5fc4513e02a1f518152de8f132b54a6",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?d[u.language].offline.offlineRouteDeleted:d[u.language].offline.offlineOutdoorDeleted:this.mode==="treks"?d[u.language].offline.routeAvailableOffline:d[u.language].offline.outdoorAvailableOffline),i("div",{key:"045530fbea8ae990ed78c61a5c2b7cf2519d6bfc",class:"modal-button-container"},i("button",{key:"a75df76a487c0658ff9a3e10f07a35285d619685",part:"modal-button",class:"modal-button",onClick:function(){return e.handleCancelModal()}},d[u.language].offline.ok))),this.showErrorModal&&i(l,{key:"2ab6733b150331690c42aaeb8a5c2a96d73657fa"},i("div",{key:"35b0edde0866fa2cbe4b3e6a147a2b8f323fa579",class:"modal-message-container"},this.showDeleteSuccessMessage?this.mode==="treks"?d[u.language].offline.deleteRouteError:d[u.language].offline.deleteOutdoorError:this.mode==="treks"?d[u.language].offline.downloadRouteError:d[u.language].offline.downloadOutdoorError),i("div",{key:"d1785cfe79fae56a8f6ed61b6c39aca80cea887c",class:"modal-button-container"},i("button",{key:"b3f3dc1440a637492bc5c4bcaf0a3e786692608d",part:"modal-button",class:"modal-button",onClick:function(){return e.handleCancelModal()}},d[u.language].offline.ok))))))};return e}());It.style=Yt();function Ht(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=ue();var a=false;var s=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"}});t.scrollbar={el:null,dragEl:null};function f(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar,i=t.rtlTranslate;var r=e.dragEl,n=e.el;var o=t.params.scrollbar;var a=t.params.loop?t.progressLoop:t.progress;var c=d;var l=(u-d)*a;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(t.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(o.hide){clearTimeout(s);n.style.opacity=1;s=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function h(e){if(!t.params.scrollbar.el||!t.scrollbar.el)return;t.scrollbar.dragEl.style.transitionDuration="".concat(e,"ms")}function m(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;var e=t.scrollbar;var i=e.dragEl,r=e.el;i.style.width="";i.style.height="";u=t.isHorizontal()?r.offsetWidth:r.offsetHeight;p=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0));if(t.params.scrollbar.dragSize==="auto"){d=u*p}else{d=parseInt(t.params.scrollbar.dragSize,10)}if(t.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(t.params.scrollbar.hide){r.style.opacity=0}if(t.params.watchOverflow&&t.enabled){e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}}function b(e){return t.isHorizontal()?e.clientX:e.clientY}function v(e){var i=t.scrollbar,r=t.rtlTranslate;var n=i.el;var o;o=(b(e)-me(n)[t.isHorizontal()?"left":"top"]-(l!==null?l:d/2))/(u-d);o=Math.max(Math.min(o,1),0);if(r){o=1-o}var a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*o;t.updateProgress(a);t.setTranslate(a);t.updateActiveIndex();t.updateSlidesClasses()}function g(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el,d=r.dragEl;a=true;l=e.target===d?b(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null;e.preventDefault();e.stopPropagation();o.style.transitionDuration="100ms";d.style.transitionDuration="100ms";v(e);clearTimeout(c);s.style.transitionDuration="0ms";if(i.hide){s.style.opacity=1}if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",e)}function w(e){var i=t.scrollbar,r=t.wrapperEl;var o=i.el,s=i.dragEl;if(!a)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;v(e);r.style.transitionDuration="0ms";o.style.transitionDuration="0ms";s.style.transitionDuration="0ms";n("scrollbarDragMove",e)}function k(e){var i=t.params.scrollbar;var r=t.scrollbar,o=t.wrapperEl;var s=r.el;if(!a)return;a=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=he((function(){s.style.opacity=0;s.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",e);if(i.snapOnRelease){t.slideToClosest()}}function y(e){var i=t.scrollbar,r=t.params;var n=i.el;if(!n)return;var a=n;var s=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!a)return;var l=e==="on"?"addEventListener":"removeEventListener";a[l]("pointerdown",g,s);o[l]("pointermove",w,s);o[l]("pointerup",k,c)}function x(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;y("on")}function A(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;y("off")}function _(){var e=t.scrollbar,i=t.el;t.params.scrollbar=pe(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});var r=t.params.scrollbar;if(!r.el)return;var n;if(typeof r.el==="string"&&t.isElement){n=t.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=o.querySelectorAll(r.el)}else if(!n){n=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&n.length>1&&i.querySelectorAll(r.el).length===1){n=i.querySelector(r.el)}if(n.length>0)n=n[0];n.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);var a;if(n){a=n.querySelector(".".concat(t.params.scrollbar.dragClass));if(!a){a=fe("div",t.params.scrollbar.dragClass);n.append(a)}}Object.assign(e,{el:n,dragEl:a});if(r.draggable){x()}if(n){n.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}function z(){var e=t.params.scrollbar;var i=t.scrollbar.el;if(i){i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass)}A()}r("init",(function(){if(t.params.scrollbar.enabled===false){C()}else{_();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(e,t){h(t)}));r("enable disable",(function(){var e=t.scrollbar.el;if(e){e.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}));r("destroy",(function(){z()}));var L=function(){t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass)}_();m();f()};var C=function(){t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass)}z()};Object.assign(t.scrollbar,{enable:L,disable:C,updateSize:m,setTranslate:f,init:_,destroy:z})}var Gt='<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 Zt=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 Dt={threshold:0};var Rt=e("grw_outdoor_course_detail",function(){function e(e){t(this,e);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(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}e.prototype.handleSwipers=function(){var e=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new be(this.swiperImagesRef,{modules:[ve,ge,we,ke,ye],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}if(this.swiperTouristicContentsRef&&!this.swiperTouristicContents){this.swiperTouristicContents=new be(this.swiperTouristicContentsRef,{modules:[ke,ye,Ht],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 be(this.swiperTouristicEventsRef,{modules:[ke,ye,Ht],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 be(this.swiperPoisRef,{modules:[ke,ye,Ht],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})}};e.prototype.handleObservers=function(){var e=this;if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i)}),Dt);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i)}),Dt);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i)}),Dt);this.touristicEventObserver.observe(this.touristicEventsRef)}};e.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};e.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(u.currentOutdoorCourse){this.currentOutdoorCourse=u.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}p("currentOutdoorCourse",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(u.currentOutdoorCourse){this.currentOutdoorCourse=u.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.render=function(){var e=this;var t=a("".concat(s.isDev?"/":"","assets/default-image.svg"));var n=u.outdoorCourseTypes&&this.currentOutdoorCourse&&u.outdoorCourseTypes.find((function(t){return t.id===e.currentOutdoorCourse.type}));var o=u.cities&&u.cities.find((function(t){return t.id===e.currentOutdoorCourse.cities[0]}));var c=u.outdoorRatings&&this.currentOutdoorCourse&&u.outdoorRatings.filter((function(t){return e.currentOutdoorCourse.ratings.includes(t.id)}));var l=c&&__spreadArray([],new Set(c.map((function(e){return e.scale}))),true);var p=l&&u.outdoorRatingsScale.filter((function(e){return l.includes(e.id)}));return i(r,{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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentOutdoorCourse&&i("div",{key:"74d112f1ad1aaa488b96d82ca8179b2b766ab86d",part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(t){return e.outdoorCourseDetailContainerRef=t}},i("div",{key:"720bf3def2c342bcfe5fc9e4dd36366a97c81389",part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(t){return e.presentationRef=t}},i("div",{key:"cd3d17b4ee01d1f77d2597f2cdb2d4f7c4fef269",part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{key:"be9d53286f3e283533629ef210f1dad0c14872f1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(e){return e.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(e){return e.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"outdoor-course-close-fullcreen-icon",class:"outdoor-course-close-fullcreen-icon",innerHTML:xe})),i("div",{part:"outdoor-course-image-legend",class:"outdoor-course-image-legend"},n),i("img",{part:"outdoor-course-img",class:"outdoor-course-img",src:e.offline&&r.thumbnail!==""?r.thumbnail:r.url,loading:"lazy",onClick:function(){return e.handleFullscreen()},onerror:function(e){e.target.onerror=null;e.target.className="outdoor-course-img default-outdoor-course-img";e.target.src=t},alt:r.legend}))})):i("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:t,loading:"lazy",alt:""})),i("div",{key:"9e44f9b45cd8cf95caaeb4835e96b123d664728c"},i("div",{key:"53dc119d4698668b01f16b295103154c25db28c5",part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{key:"86c4d6c2189ddc76903ab594fc007df800a30e84",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{key:"635b7eaf08e3ac423509d26f6ccce64e118e6b4e",part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}})))),i("div",{key:"81602f0f206c9d668f4d5481a8771a71014d8d07",part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),i("div",{key:"6fb7d72aa3c2cc46e051786c90f6791b641af1f7",part:"sub-container",class:"sub-container"},i("div",{key:"ffb05137813d26185b26a1b8b755542ead83514c",part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{key:"c99a27c6741dfa1f0323eaee0791f1ab3f96a318",part:"icon-label",class:"icon-label type"},n.pictogram&&i("img",{key:"dcce2bb22cf20ae86d649deacc67a1ee680f985e",part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{key:"d58ea3eea098cce7f31b244fb83184f0ce641db1",part:"label",class:"label"},n.name)),i("div",{key:"c5818aab071d0f55b70c5cfa4ca052fb7e661653",part:"icon-label",class:"icon-label duration"},i("span",{key:"ba7f57b331f40d5f41272a8c30e135bbd85dd53e",part:"icon",class:"icon",innerHTML:Ne}),i("span",{key:"900a95c7999063d86c3fb6aade5d29efae2b34a7",part:"label",class:"label"},C(this.currentOutdoorCourse.duration))),i("div",{key:"294658e69896f9f267b9d10e133d4c51963741cb",part:"icon-label",class:"icon-label length"},i("span",{key:"3787b172941642316fd2598dc81e1b7b2a89a5d2",part:"icon",class:"icon",innerHTML:Ye}),i("span",{key:"3bdcc19d957bb1a2690c3698368736c6947b76a5",part:"label",class:"label"},M(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&i("div",{key:"5ef4b39a87956fb2e473c4dd477ffa792b4b8a4d",part:"icon-label",class:"icon-label ascent"},i("span",{key:"f9c47d879b0c1fd715427bce6ec5c19cbeefa4d7",part:"icon",class:"icon",innerHTML:Ie}),i("span",{key:"5facbd60201aa18d8642ed9efbb2694151069357",part:"label",class:"label"},F(this.currentOutdoorCourse.max_elevation))),c&&p.map((function(e){return i("div",{part:"row",class:"row"},"".concat(e.name," : ").concat(c.filter((function(t){return t.scale===e.id})).map((function(e){return e.name})).join(", ")))})))),i("div",{key:"45f2ea4c40d4851de8da601c0359a9151ad0b62c",part:"divider",class:"divider"}),i("div",{key:"44ceb38fd0d0a157f460adcb29da672389d1352b",part:"downloads-container",class:"downloads-container"},i("div",{key:"19fa7eab8d3a3cf84435fa8b2899071de8a98026",part:"download-title",class:"download-title"},d[u.language].downloads),i("div",{key:"aeae3040f48438f28f2bc4a5af0b5f5635e2d6ed",part:"links-container",class:"links-container"},i("a",{key:"75d33aac1801e7befbb9737c76e8a9f1f4b6b5dc",href:"".concat(this.currentOutdoorCourse.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{key:"a1315b4469712655b7aa5c598d132607ecc1af57",part:"icon",class:"icon",innerHTML:Ae}),i("span",{key:"29c1190aff566bf0f4e30735bc8c822e074b7cc4",part:"label",class:"label"},"PDF")))),i("div",{key:"70c612f4ba07b202275b7133e1ead094a5bec925",part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&i("div",{key:"6e7759cb4cb489cb3d935085df9b965f426784b5",part:"description-container",class:"description-container"},i("div",{key:"b0fc7be19f565fcfee78a3f8d739af80d2743b7e",part:"description-title",class:"description-title",ref:function(t){return e.descriptionRef=t}},d[u.language].description),i("div",{key:"60d460af1704eca6b018865d89615d91c538d365",part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{key:"1b841d4b7660e5a002548dd935c3eb9b0b6396e2",part:"departure-container",class:"departure-container"},i("div",{key:"b4f4f15a623ea34d6681c2c0794ddc6e1e4f9833",part:"departure-title",class:"departure-title"},d[u.language].departure," : "),i("div",{key:"8fc874411d7226de3d891caaf1a4754e0d23cb18",part:"departure",innerHTML:o.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{key:"6d55128d14eb7b6a64cdb194ff6ec3fbdd28d14d",part:"cities-container",class:"cities-container"},i("div",{key:"5620624c4331ee7bd5f4639f70d1dcabb1342916",part:"cities-title",class:"cities-title"},d[u.language].crossedCities," : "),i("div",{key:"7b2f2d1890c82c6b245d54fb8d6a3f7f11589172",part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(e){var t;return(t=u.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name})).join(", ")})),this.currentOutdoorCourse.advice&&i("div",{key:"764aca5816dabf72d6641bc0228a35625b60dea5"},i("div",{key:"fcdddf2db0381a2c6c3ad76df5ea77363b6c3ec0",part:"divider",class:"divider"}),i("div",{key:"68ae5da0347c924ed27f92870492e373ac5bee64",part:"advice-container",class:"advice-container"},i("div",{key:"107fba634800cab28a3da11de11e2f7074dee95d",part:"advice-title",class:"advice-title",ref:function(t){return e.recommendationRef=t}},d[u.language].recommendations),this.currentOutdoorCourse.advice&&i("div",{key:"cc4fdf59b3c9a2804751120114c950dec521c0a0",part:"current-advice-container",class:"current-advice-container"},i("span",{key:"4e48eb3d6ce5cf546216296691abf864fd7e8c98",part:"icon",class:"icon",innerHTML:Gt}),i("div",{key:"054191b070f46ac50205bee67da066994e2162af",part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&i("div",{key:"d646f6a5a3aae9cb62f59b17da50772237871070"},i("div",{key:"7d462e8585214204b0475abd12f4dfe46e497429",part:"divider",class:"divider"}),i("div",{key:"941b9f090fe0a42903104e8e844dd06e3749ca42",part:"accessibilities-container",class:"accessibilities-container"},i("div",{key:"e4ec4c4af8a173adb5f53868423a3e7b8c23eb91",part:"accessibilites-title",class:"accessibilities-title"},d[u.language].accessibility),i("div",{key:"5611c521c43c617d1a819c2eac1951f1d178eccc",part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),u.trekTouristicContents&&u.trekTouristicContents.length>0&&i("div",{key:"0eb0872432c85f0eed7dc01b1c8e7711f05d5335"},i("div",{key:"8772302a21fdd4b5439530b92dfd844d46942e5c",part:"divider",class:"divider"}),i("div",{key:"dd4db42bfb4868a114fa802476dacf463c33dcc6",part:"touristic-content-container",class:"touristic-content-container",ref:function(t){return e.touristicContentsRef=t}},i("div",{key:"2deaca2a7c6e65718d163f9491f3142d15bae36f",part:"touristic-content-title",class:"touristic-content-title"},d[u.language].touristicContents(u.trekTouristicContents.length)),i("div",{key:"95f0cfe7f48114189b896acaf15a94b684b4708c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},i("div",{key:"0cadff9089c970989d965f6d0ad3df37f0a1c37d",part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))}))),i("div",{key:"3938f896920176d5f6cf31e3e33821809f0cf517",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicContentsSwiperScrollbar=t}})))),u.trekTouristicEvents&&u.trekTouristicEvents.length>0&&i("div",{key:"6f74ed161c27fe505059ea18b7abf6acd04c0d4a"},i("div",{key:"ef40fb490ffe4b585e42be0de2629ef54029a8a2",part:"divider",class:"divider"}),i("div",{key:"1770ec488528f408f2647e0d229b443f69a1b4bc",part:"touristic-event-container",class:"touristic-event-container",ref:function(t){return e.touristicEventsRef=t}},i("div",{key:"0f0ca2c1dfc163e8b1647c4d6bc585d2449b4222",part:"touristic-event-title",class:"touristic-event-title"},d[u.language].touristicEvents(u.trekTouristicEvents.length)),i("div",{key:"d3440f4c29d6e9815c27f666af059289579060c4",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},i("div",{key:"065b642e861c17ad3d8111c84b607aa399ec340c",part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicEvent:t,isInsideHorizontalList:true}))}))),i("div",{key:"d77cd6a581378a35e2f00653af9d9d41d03b61ae",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicEventsSwiperScrollbar=t}})))),u.currentPois&&u.currentPois.length>0&&i("div",{key:"0132851fdb60ae94f9c9e488cf32c85ff806e073"},i("div",{key:"745e53b9a5918d13f14d52af2923926dfbd204bb",part:"divider",class:"divider"}),i("div",{key:"2c1a7cf8e756492ed4c2c05d691d4ee78870936e",part:"pois-container",class:"pois-container",ref:function(t){return e.poiRef=t}},i("div",{key:"a20939460013a4fb57c9167dcdda0f1f699c72ed",part:"pois-title",class:"pois-title"},d[u.language].pois(u.currentPois.length)),i("div",{key:"8984df9ada4afa24291c0ae34dbdd8de47c0f1ec",part:"swiper-pois",class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},i("div",{key:"0cb808485a02af874a16e2ba59de447263f33189",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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}))}))),i("div",{key:"8ffccb4eae4c4c0068e529315b2ba564eb8a2105",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.poisSwiperScrollbar=t}})))),this.weather&&o&&!this.offline&&i("div",{key:"595379521647b327b370555534e06bbaad5d06fa"},i("div",{key:"0f48eece90e062a074b55001625f7827d45bb7c6",part:"divider",class:"divider"}),i("div",{key:"be9d42ae3b84aaa9169c5dc142e3091ea0d92581",part:"weather-container",class:"weather-container"},i("iframe",{key:"0ef8761a811aa9459fef1de6f98b8453652dd4c4",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(o.id,"0#").concat(this.colorPrimaryApp)}))),this.grwApp&&i("div",{key:"f1cb5b224791a2c89087717f65005caf12304ce1",part:"detail-bottom-space",class:"detail-bottom-space"})))};return e}());Rt.style=Zt();var qt=e("grw_outdoor_course_provider",function(){function e(e){t(this,e);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleOutdoorCourse()};e.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,G("outdoorCourses",this.outdoorCourseId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineOutdoorCourse(e)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};e.prototype.handleOfflineOutdoorCourse=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,c,l,d,p,f,h;return __generator(this,(function(m){switch(m.label){case 0:t=u;return[4,Z("cities")];case 1:t.cities=m.sent();i=u;return[4,Z("districts")];case 2:i.districts=m.sent();r=u;return[4,Z("themes")];case 3:r.themes=m.sent();n=u;return[4,Z("touristicContentCategories")];case 4:n.touristicContentCategories=m.sent();o=u;return[4,Z("touristicEventTypes")];case 5:o.touristicEventTypes=m.sent();a=u;return[4,Z("poiTypes")];case 6:a.poiTypes=m.sent();s=u;return[4,Z("outdoorCourseTypes")];case 7:s.outdoorCourseTypes=m.sent();return[4,Z("pois",["url"])];case 8:c=m.sent();l=c.filter((function(t){return e.pois.some((function(e){return e===t.id}))}));u.currentPois=l;return[4,Z("touristicContents",["url"])];case 9:d=m.sent();p=d.filter((function(t){return e.touristicContents.some((function(e){return e===t.id}))}));u.trekTouristicContents=p;return[4,Z("touristicEvents",["url"])];case 10:f=m.sent();h=f.filter((function(t){return e.touristicEvents.some((function(e){return e===t.id}))}));u.trekTouristicEvents=h;return[4,O(e,B,["url"])];case 11:m.sent();u.currentOutdoorCourse=e;return[2]}}))}))};e.prototype.handleOnlineOutdoorCourse=function(){var e=this;var t=[];t.push(!u.districts?U(u.api,u.language,this.init):new Response("null"));t.push(!u.themes?X(u.api,u.language,this.portals,this.init):new Response("null"));t.push(!u.outdoorCourseTypes?He(u.api,u.language,this.init):new Response("null"));t.push(_e(u.api,u.language,this.outdoorCourseId,this.init));t.push(ze(u.api,u.language,null,this.init));t.push(Le(u.api,u.language,this.outdoorCourseId,this.init));t.push(Ce(u.api,u.language,null,this.init));t.push(Ge(u.api,u.language,this.outdoorCourseId,this.init));t.push(fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init));t.push(Ze(u.api,u.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],t,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n;var o=e[0],a=e[1],s=e[2],c=e[3],l=e[4],d=e[5],p=e[6],f=e[7],h=e[8],m=e[9];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(o){u.districts=o.results}if(a){u.themes=a.results}if(s){u.outdoorCourseTypes=s.results}if(c){u.trekTouristicContents=c.results}if(l){u.touristicContentCategories=l.results}if(d){u.trekTouristicEvents=d.results}if(p){u.touristicEventTypes=p.results}if(f){u.currentPois=f.results}if(h){u.poiTypes=h.results}u.currentOutdoorCourse=m;t=__spreadArray([],m.cities,true);if(u.cities){i=u.cities.map((function(e){return e.id}));t=t.filter((function(e){return e&&!i.includes(e)}))}if(!(t.length>0))return[3,4];e.label=1;case 1:e.trys.push([1,3,,4]);return[4,J(u.api,u.language,this.init,t).then((function(e){return e.json()}))];case 2:r=e.sent().results;if(r){u.cities=__spreadArray(__spreadArray([],u.cities,true),r,true)}return[3,4];case 3:n=e.sent();console.error("Failed to load cities",n);return[3,4];case 4:return[2]}}))}))}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){u.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.render=function(){return i(r,{key:"ec4361aeaa78afd9e4a5bb0154bd0e2d9d5da915"})};return e}());var Vt='<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 Qt='<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 Ut='<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 Xt='<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 Jt='<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 Wt(e,t,i,r,n,o,a,s,c){var l="".concat(e,"outdoor_site/?language=").concat(t,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));n&&(l+="&districts=".concat(n));o&&(l+="&structures=".concat(o));a&&(l+="&themes=".concat(a));s&&(l+="&portals=".concat(s));l+="&fields=id,name,geometry,accessibility,advice,ambiance,attachments,cities,children,description,description_teaser,districts,information_desks,labels,managers,orientation,pdf,period,parent,portal,practice,provider,ratings,sector,source,structure,themes,view_points,type,courses,web_links,wind";return T(l,c)}function Kt(e,t,i,r){var n="".concat(e,"outdoor_site/").concat(i,"/?language=").concat(t,"&published=true");n+="&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(n,r)}function $t(e,t,i){var r="".concat(e,"outdoor_sitetype/?language=").concat(t,"&published=true");return fetch(r,i)}function ei(e,t,i){var r="".concat(e,"outdoor_practice/?language=").concat(t,"&published=true");return fetch(r,i)}function ti(e,t,i,r){return T("".concat(e,"poi/?language=").concat(t,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry"),r)}function ii(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,G("outdoorSites",e)];case 1:t=i.sent();return[2,t&&t.offline]}}))}))}function ri(e,t,i,r){return T("".concat(e,"outdoor_rating/?language=").concat(t).concat(i?"&portals=".concat(i):"","&fields=id,name,scale"),r)}function ni(e,t,i){return T("".concat(e,"outdoor_ratingscale/?language=").concat(t,"&fields=id,name"),i)}var oi=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 ai={threshold:0};var si=e("grw_outdoor_site_detail",function(){function e(e){t(this,e);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.sitesIsInViewport=n(this,"sitesIsInViewport",7);this.coursesIsInViewport=n(this,"coursesIsInViewport",7);this.downloadConfirm=n(this,"downloadConfirm",7);this.downloadedSuccessConfirm=n(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=n(this,"downloadedErrorConfirm",7);this.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=n(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}e.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";u.currentTouristicContent=null;u.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};e.prototype.onTouristiceEventCardPress=function(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("TouristicContent");var t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());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);t.append(i);document.body.append(t)}};e.prototype.onTouristicContentCardPress=function(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("touristicContent");var t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());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);t.append(i);document.body.append(t)}};e.prototype.onOpenDetailsModal=function(e){document.body.style.overflow="hidden";if(e==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};e.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};e.prototype.onDeletePress=function(){this.deleteOutdoorSite()};e.prototype.handleObservers=function(){var e=this;if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i)}),ai);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i)}),ai);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i)}),ai);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i)}),ai);this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef&&!this.siteObserver){this.siteObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sitesIsInViewport.emit(i)}),ai);this.siteObserver.observe(this.sitesRef)}if(this.coursesRef&&!this.courseObserver){this.courseObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.coursesIsInViewport.emit(i)}),ai);this.courseObserver.observe(this.coursesRef)}};e.prototype.handleSwipers=function(){var e=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new be(this.swiperImagesRef,{modules:[ve,ge,we,ke,ye],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}if(this.swiperRelatedOutdoorSitesRef&&!this.swiperRelatedOutdoorSites){this.swiperRelatedOutdoorSites=new be(this.swiperRelatedOutdoorSitesRef,{modules:[ke,ye,Ht],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 be(this.swiperInformationDesksRef,{modules:[ke,ye,Ht],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 be(this.swiperRelatedOutdoorCoursesRef,{modules:[ke,ye,Ht],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 be(this.swiperTouristicContentsRef,{modules:[ke,ye,Ht],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 be(this.swiperTouristicEventsRef,{modules:[ke,ye,Ht],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 be(this.swiperPoisRef,{modules:[ke,ye,Ht],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})}};e.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};e.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers()};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(u.currentOutdoorSite){this.sources=u.sources.filter((function(e){return u.currentOutdoorSite.source.includes(e.id)}));this.currentOutdoorSite=u.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}p("currentOutdoorSite",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(u.currentOutdoorSite){this.sources=u.sources.filter((function(e){return u.currentOutdoorSite.source.includes(e.id)}));this.currentOutdoorSite=u.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};e.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};e.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,c,s,l;var d=this;return __generator(this,(function(p){switch(p.label){case 0:e=new AbortController;t=e.signal;i={cache:P(),signal:t};if(!!u.outdoorSites)return[3,3];return[4,Wt(u.api,u.language,u.inBboxFromProviders,u.citiesFromProviders,u.districtsFromProviders,u.structuresFromProviders,u.themesFromProviders,u.portalsFromProviders,i)];case 1:r=p.sent();n=u;return[4,r.json()];case 2:n.outdoorSites=p.sent().results;u.currentOutdoorSites=u.outdoorSites;p.label=3;case 3:return[4,D("outdoorSites")];case 4:o=p.sent().filter((function(e){return e.offline===true}));a=u.outdoorSites;a=a.filter((function(e){return o.findIndex((function(t){return t.id===e.id}))===-1}));return[4,R("outdoorSites",a)];case 5:p.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:p.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:p.sent();return[4,q(u.themes,B)];case 8:p.sent();return[4,q(u.outdoorSiteTypes,B)];case 9:p.sent();return[4,q(u.outdoorPractices,B)];case 10:p.sent();return[4,q(u.sources,B)];case 11:p.sent();return[4,q(this.currentOutdoorSite,B,true,["url"])];case 12:p.sent();return[4,R("cities",u.cities)];case 13:p.sent();return[4,R("districts",u.districts)];case 14:p.sent();return[4,R("themes",u.themes)];case 15:p.sent();return[4,R("outdoorSiteTypes",u.outdoorSiteTypes)];case 16:p.sent();return[4,R("outdoorPractices",u.outdoorPractices)];case 17:p.sent();return[4,R("outdoorRatings",u.outdoorRatings)];case 18:p.sent();return[4,R("outdoorRatingsScale",u.outdoorRatingsScale)];case 19:p.sent();return[4,R("pois",u.currentPois)];case 20:p.sent();return[4,R("poiTypes",u.poiTypes)];case 21:p.sent();return[4,R("informationDesks",u.currentInformationDesks)];case 22:p.sent();return[4,R("outdoorCourseTypes",u.outdoorCourseTypes)];case 23:p.sent();return[4,R("touristicEventTypes",u.touristicEventTypes)];case 24:p.sent();return[4,R("touristicContentCategories",u.touristicContentCategories)];case 25:p.sent();return[4,R("sources",u.sources)];case 26:p.sent();return[4,q(u.currentPois,B,true,["url"])];case 27:p.sent();return[4,q(u.currentInformationDesks,B,true)];case 28:p.sent();return[4,q(u.outdoorCourseTypes,B,true)];case 29:p.sent();return[4,q(u.touristicContentCategories,B,true)];case 30:p.sent();return[4,q(u.trekTouristicContents,B,true,["url"])];case 31:p.sent();u.trekTouristicContents.forEach((function(e){e.offline=true}));return[4,R("touristicContents",u.trekTouristicContents)];case 32:p.sent();return[4,q(u.trekTouristicEvents,B,true,["url"])];case 33:p.sent();u.trekTouristicEvents.forEach((function(e){e.offline=true}));return[4,R("touristicEvents",u.trekTouristicEvents)];case 34:p.sent();if(!(u.currentOutdoorSite.courses&&u.currentOutdoorSite.courses.length>0))return[3,38];s=0;p.label=35;case 35:if(!(s<u.currentOutdoorSite.courses.length))return[3,38];c=u.currentOutdoorSite.courses[s];return[4,this.downloadOutdoorCourse(c)];case 36:p.sent();p.label=37;case 37:s++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];s=0;p.label=39;case 39:if(!(s<this.currentOutdoorSite.children.length))return[3,42];l=this.currentOutdoorSite.children[s];return[4,this.downloadOutdoorSite(l)];case 40:p.sent();p.label=41;case 41:s++;return[3,39];case 42:return[4,R("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:u.currentPois.map((function(e){return e.id})),touristicContents:u.trekTouristicContents.map((function(e){return e.id})),touristicEvents:u.trekTouristicEvents.map((function(e){return e.id}))})])];case 43:p.sent();u.outdoorSites.find((function(e){return e.id===d.currentOutdoorSite.id})).offline=true;u.currentOutdoorSites.find((function(e){return e.id===d.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};e.prototype.downloadOutdoorSite=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,c,l,c,d,p;return __generator(this,(function(f){switch(f.label){case 0:f.trys.push([0,22,,23]);t=new AbortController;i=t.signal;r={cache:P(),signal:i};return[4,Kt(u.api,u.language,e,r).then((function(e){return e.json()}))];case 1:n=f.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:f.sent();return[4,q(n,B,true,["url"])];case 3:f.sent();return[4,ti(u.api,u.language,e,r).then((function(e){return e.json()}))];case 4:o=f.sent().results;return[4,R("pois",o)];case 5:f.sent();return[4,q(o,B,true,["url"])];case 6:f.sent();return[4,Me(u.api,u.language,e,r).then((function(e){return e.json()}))];case 7:a=f.sent().results;return[4,q(a,B,true,["url"])];case 8:f.sent();a.forEach((function(e){e.offline=true}));return[4,R("touristicContents",a)];case 9:f.sent();return[4,Fe(u.api,u.language,e,r).then((function(e){return e.json()}))];case 10:s=f.sent().results;return[4,q(s,B,true,["url"])];case 11:f.sent();s.forEach((function(e){e.offline=true}));return[4,R("touristicEvents",s)];case 12:f.sent();return[4,R("outdoorSites",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(e){return e.id})),touristicContents:a.map((function(e){return e.id})),touristicEvents:s.map((function(e){return e.id}))})])];case 13:f.sent();if(!(n.courses&&n.courses.length>0))return[3,17];c=0;f.label=14;case 14:if(!(c<n.courses.length))return[3,17];l=n.courses[c];return[4,this.downloadOutdoorCourse(l)];case 15:f.sent();f.label=16;case 16:c++;return[3,14];case 17:if(!(n.children&&n.children.length>0))return[3,21];c=0;f.label=18;case 18:if(!(c<n.children.length))return[3,21];d=n.children[c];return[4,this.downloadOutdoorSite(d)];case 19:f.sent();f.label=20;case 20:c++;return[3,18];case 21:return[3,23];case 22:p=f.sent();this.downloadedSuccessConfirm.emit(this.currentOutdoorSite.id);return[3,23];case 23:return[2]}}))}))};e.prototype.downloadOutdoorCourse=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:t=new AbortController;i=t.signal;r={cache:P(),signal:i};return[4,Ze(u.api,u.language,e,r).then((function(e){return e.json()}))];case 1:n=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:c.sent();return[4,q(n,B,true,["url"])];case 3:c.sent();return[4,Ge(u.api,u.language,e,r).then((function(e){return e.json()}))];case 4:o=c.sent().results;return[4,R("pois",o)];case 5:c.sent();return[4,q(o,B,true,["url"])];case 6:c.sent();return[4,_e(u.api,u.language,e,r).then((function(e){return e.json()}))];case 7:a=c.sent().results;return[4,q(a,B,true,["url"])];case 8:c.sent();a.forEach((function(e){e.offline=true}));return[4,R("touristicContents",a)];case 9:c.sent();return[4,Le(u.api,u.language,e,r).then((function(e){return e.json()}))];case 10:s=c.sent().results;return[4,q(s,B,true,["url"])];case 11:c.sent();s.forEach((function(e){e.offline=true}));return[4,R("touristicEvents",s)];case 12:c.sent();return[4,R("outdoorCourses",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(e){return e.id})),touristicContents:a.map((function(e){return e.id})),touristicEvents:s.map((function(e){return e.id}))})])];case 13:c.sent();return[2]}}))}))};e.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,3,,4]);e=[];return[4,G("outdoorSites",this.currentOutdoorSite.id)];case 1:t=n.sent();this.deleteOfflineOutdoorSiteProperties(t);e.push(t);return[4,R("outdoorSites",e)];case 2:n.sent();if(u.outdoorSites){delete u.outdoorSites.find((function(e){return e.id===r.currentOutdoorSite.id})).offline;if(!u.currentOutdoorSites){u.currentOutdoorSites=u.outdoorSites}delete u.currentOutdoorSites.find((function(e){return e.id===r.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[3,4];case 3:i=n.sent();this.deleteErrorConfirm.emit(this.currentOutdoorSite.id);return[3,4];case 4:return[2]}}))}))};e.prototype.downloadGlobalTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:i=H.tileLayerOffline(e,{attribution:t});r=[];if(u.outdoorSites){for(n=0,o=u.outdoorSites;n<o.length;n++){a=o[n];r.push(Tt(a.geometry).geometry.coordinates)}}s=I.latLngBounds(r.map((function(e){return[e[1],e[0]]})));return[4,V(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};e.prototype.downloadOutdoorSiteTiles=function(e,t,i){return __awaiter(this,void 0,void 0,(function(){var r,n,o;return __generator(this,(function(a){switch(a.label){case 0:r=H.tileLayerOffline(e,{attribution:t});n=gt(i);o=I.latLngBounds([n[1],n[0]],[n[3],n[2]]);return[4,V(r,o,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:a.sent();return[2]}}))}))};e.prototype.deleteOfflineOutdoorSiteProperties=function(e){delete e.offline;delete e.pois;delete e.touristicContents;delete e.touristicEvents};e.prototype.render=function(){var e=this;var t=a("".concat(s.isDev?"/":"","assets/default-image.svg"));var n=u.outdoorPractices&&this.currentOutdoorSite&&u.outdoorPractices.find((function(t){return t.id===e.currentOutdoorSite.practice}));var o=u.cities&&this.currentOutdoorSite&&u.cities.find((function(t){return t.id===e.currentOutdoorSite.cities[0]}));var c=u.outdoorRatings&&this.currentOutdoorSite&&u.outdoorRatings.filter((function(t){return e.currentOutdoorSite.ratings.includes(t.id)}));var p=c&&__spreadArray([],new Set(c.map((function(e){return e.scale}))),true);var f=p&&u.outdoorRatingsScale.filter((function(e){return p.includes(e.id)}));return i(r,{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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentOutdoorSite&&i("div",{key:"bb2c6add2adfc3b5120749f65f3e91f695c0313c",part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(t){return e.outdoorSiteDetailContainerRef=t}},i("div",{key:"f52c3d7d4f15b03f5b5795eab4a6860d12689370",part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(t){return e.presentationRef=t}},i("div",{key:"2b19c9182485c1f97e0eea5622094731cd343da3",part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{key:"092740232bedeb497af16c237fa5761eeba01d0c",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(e){return e.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(e){return e.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"outdoor-site-close-fullcreen-icon",class:"outdoor-site-close-fullcreen-icon",innerHTML:xe})),i("div",{part:"outdoor-site-image-legend",class:"outdoor-site-image-legend"},n),i("img",{part:"outdoor-site-img",class:"outdoor-site-img",src:e.offline&&r.thumbnail!==""?r.thumbnail:r.url,loading:"lazy",onClick:function(){return e.handleFullscreen()},onerror:function(e){e.target.onerror=null;e.target.className="outdoor-site-img default-outdoor-site-img";e.target.src=t},alt:r.legend}))})):i("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:t,loading:"lazy",alt:""})),i("div",{key:"543f0c5412f8514ca34ac53c9652f171795f0eaa"},i("div",{key:"1033be1c24f54064f0b336463ccf0ad20d3e1472",part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{key:"1c77534aad2c9242f54f74bfbc5bfb93d17e771f",part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{key:"05a2fca9418b94e3ae6c17877baa5094e0b067b7",part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}})))),i("div",{key:"c7e518d4319c42d7179c04cfbcc40f7a4a744281",part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),u.themes&&u.themes.filter((function(t){return e.currentOutdoorSite.themes.includes(t.id)})).length>0&&i("div",{key:"b0c3ff08eacbe3da21374a40d935b93db098dae1",part:"themes-container",class:"themes-container"},u.themes.filter((function(t){return e.currentOutdoorSite.themes.includes(t.id)})).map((function(e){return i("div",{part:"theme",class:"theme"},e.label)}))),i("div",{key:"9559d8ae731642a8f566821f13990612dc85c7e3",part:"sub-container",class:"sub-container"},i("div",{key:"69a1ce00a955f04ce321c9dad5130668fcc727a9",part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{key:"63a09dc8f6bbb97856078b0930c0ad0ef3992ee7",part:"icon-label",class:"icon-label practice"},n.pictogram&&i("img",{key:"af0508d2ff5543b1dc9863ef48998f91ab3289c3",part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{key:"e7c5329ece6f17ae2db06155c88bd6b5f9c98fe9",part:"label",class:"label"},n.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&i("div",{key:"0be0c4620a8bb5c3e2366741f0c0e57157933399",part:"row",class:"row"},i("span",{key:"a27402e456b33944f81e5ee5395cc993470de4ec",part:"icon",class:"icon",innerHTML:Ut}),i("span",{key:"ae31a51c4b9d6997fb3232a4908021e0a572cf44",part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(e){return d[u.language].cardinalPoints[e.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&i("div",{key:"e9feb615390c3049294c9a84fddb6116e0bf1699",part:"row",class:"row"},i("span",{key:"9d8bcb5614ad546e3666a632c609a33616db9abe",part:"icon",class:"icon",innerHTML:Qt}),i("span",{key:"b2d7fd249dfc3ec6863481842e7cba1f0f4f5ebb",part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(e){return d[u.language].cardinalPoints[e.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&i("div",{key:"56323ea809f5aa71e3597c305622c19277c36403",part:"row",class:"row"},i("span",{key:"8a9ec3f51605d7054d0933dcbdc3dc893a55dd87",part:"icon",class:"icon",innerHTML:Vt}),i("span",{key:"ebe5577f0cfb2f29843786fd04631cc18ebb3f81",part:"label",class:"label"},this.currentOutdoorSite.period)),c&&f.map((function(e){return i("div",{part:"row",class:"row"},"".concat(e.name," : ").concat(c.filter((function(t){return t.scale===e.id})).map((function(e){return e.name})).join(", ")))})))),i("div",{key:"ec701cc093883b296cdb3d76010b7fb3940e3416",part:"divider",class:"divider"}),i("div",{key:"39816f8e641d31cd2eed65e7916a9f542e5f5579",part:"downloads-container",class:"downloads-container"},i("div",{key:"a6ffb22721afb92bdea20b63a688b3392258c854",part:"download-title",class:"download-title"},d[u.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{key:"e9fe2c9db70ca37554eb944f6bcb510f636ce5bb",part:"offline-button",class:"offline-button",onClick:function(){return e.displayDownloadModal()}},i("span",{key:"459c5c6a997abf24444f559da47279450f41357e",part:"icon",class:"icon",innerHTML:Xt}),i("span",{key:"2ef0ce3382f67ad33c4fe7f4c1c6d64c822aa00a",part:"label",class:"label"},d[u.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{key:"dd8abe004f497960f88c25dc5473820115af6a17",part:"offline-button",class:"offline-button",onClick:function(){return e.displayDeleteModal()}},i("span",{key:"5d0dccc989e6c964edf81dfef99891b7a44f7431",part:"icon",class:"icon",innerHTML:Jt}),i("span",{key:"e3362dc01327f111543cf8125dd53ecf6515e53e",part:"label",class:"label"},d[u.language].offline.deleteOffline)),i("div",{key:"3103a2d617dd7002b5bbeced908249fe61f99ef1",part:"links-container",class:"links-container"},i("a",{key:"d049e58d9e4a6392d400f4655e3a97e5cca03858",href:"".concat(this.currentOutdoorSite.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{key:"ed4b5b94c19162a9d403aa293b7d6f48015d9173",part:"icon",class:"icon",innerHTML:Ae}),i("span",{key:"5245f08c8750e43e3ff42b0cf8a1e6d4e4d0c13e",part:"label",class:"label"},"PDF")))),i("div",{key:"c87e4cb40b366a398ef1bac0c9783f4748c2f476",part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&i("div",{key:"f5a66875b0c73ea1ac974ce06e00b3ce08e34e98",part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&i("div",{key:"b4b7d086c1a3faa719c7b505dbe8ad810eb3c252",part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),i("div",{key:"6b3d2b7d8d8664bec32a0bde6e496aef806be190",part:"divider",class:"divider"}),this.currentOutdoorSite.description&&i("div",{key:"5549e7fdab0a34487a149005ebc7cb1766a2968c",part:"description-container",class:"description-container"},i("div",{key:"fb6435da4831c4855e78a0db207291644a54c90d",part:"description-title",class:"description-title",ref:function(t){return e.descriptionRef=t}},d[u.language].description),i("div",{key:"b257d6e8c4d59b81713d4236766dd13b105e9faf",part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{key:"9af11de5832cbb5a9de7336e7b224c814ea2955d",part:"departure-container",class:"departure-container"},i("div",{key:"f55d578960f639ee36043e89af9e880701c3762f",part:"departure-title",class:"departure-title"},d[u.language].departure," : "),i("div",{key:"695257f598a269e426b3d805b27bf2650c8e3464",part:"departure",innerHTML:o.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{key:"50482fee5f5d5db97d49f5a5e943181c9fc066af",part:"cities-container",class:"cities-container"},i("div",{key:"68cf9d4f82c29818e5de7540b9a2516eb245fe0d",part:"cities-title",class:"cities-title"},d[u.language].crossedCities," : "),i("div",{key:"ace9056405d1702df74aeb74b2e4c1c69a1e8ab1",part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(e){var t;return(t=u.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name})).join(", ")})),u.currentPois&&u.currentPois.length>0&&i("div",{key:"bc1a0777b7b6156d04a3b53550dbc9deb25ce81e"},i("div",{key:"fa0e3a0dfb3b30573e209b606963d94a7eecc3aa",part:"divider",class:"divider"}),i("div",{key:"fa0b709eb118212be94020f7c834a7e278d976cc",part:"pois-container",class:"pois-container",ref:function(t){return e.poiRef=t}},i("div",{key:"28ac4c2521d693f1759fd5f9532870e8391378ad",part:"pois-title",class:"pois-title"},d[u.language].pois(u.currentPois.length)),i("div",{key:"d99f1c6e37514721e5e0c0c5d4b215a7e9a7b1dc",part:"swiper-pois",class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},i("div",{key:"a125ebd3d4e5aeea32f2d34257c31cc1297a5b36",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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}))}))),i("div",{key:"27e7c7aff8060d6bee5118a6413c8fb9f5107fdd",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.poisSwiperScrollbar=t}})))),this.currentOutdoorSite.advice&&i("div",{key:"10908dd1b443da27ec774bccaf29074b4b7e919b"},i("div",{key:"d51286b51fc00cb4b7b318239085baf6a4031fbf",part:"divider",class:"divider"}),i("div",{key:"31de07816cf4613bf07dee47d52e0665163a37f1",part:"advice-container",class:"advice-container"},i("div",{key:"5a28bbfbded18300aa39f01750a2eec9c3def340",part:"advice-title",class:"advice-title",ref:function(t){return e.recommendationRef=t}},d[u.language].recommendations),this.currentOutdoorSite.advice&&i("div",{key:"3cc88d8aea6e10f7de69765107a4a32cbbbc0fcb",part:"current-advice-container",class:"current-advice-container"},i("span",{key:"16172cded72b330ea831a33e6ec93899ac79cac4",part:"icon",class:"icon",innerHTML:Gt}),i("div",{key:"ca965945c04fbad0b832b84d3153a2ac4943b569",part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&i("div",{key:"003f2284e433b5f3487fed41ed02891201bd4818"},i("div",{key:"16091a4de5dbd8e655512a482549dbaad486b509",part:"divider",class:"divider"}),i("div",{key:"abbd1afc83f24eb62e2f21633388eaa4f8fe0301",part:"accessibilities-container",class:"accessibilities-container"},i("div",{key:"3e1e472cb870ee66f39d714394abd2e44b818118",part:"accessibilites-title",class:"accessibilities-title"},d[u.language].accessibility),i("div",{key:"ec6709cdb3c1b8274d0aaf3f5cdc3ecc576cadec",part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),u.currentRelatedOutdoorSites&&u.currentRelatedOutdoorSites.length>0&&i("div",{key:"d0d4fd6a9ec97c3c33ae0440e944801c8f6953a3"},i("div",{key:"c661abd3bc54cd7568bd962abc885f5a7fc4899f",part:"divider",class:"divider"}),i("div",{key:"8769aa59927e595466bc28696eb0c2949b2195bd",part:"related-outdoor-sites-container",class:"related-outdoor-sites-container",ref:function(t){return e.sitesRef=t}},i("div",{key:"6b5530ec49492c5c3538de29c0e9860e205d4878",part:"related-outdoor-sites-title",class:"related-outdoor-sites-title"},d[u.language].relatedOutdoorSites(u.currentRelatedOutdoorSites.length)),i("div",{key:"1a4859c9e33d655e67b7915f3347cd4f1fee0d4c",part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(t){return e.swiperRelatedOutdoorSitesRef=t}},i("div",{key:"dd7c4b8c58d400e02f8696b1921cd24e13470479",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentRelatedOutdoorSites.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,outdoorSite:t,isInsideHorizontalList:true}))}))),i("div",{key:"93d434e0466cb6aa3d6a3b9e5c307bf934dcc8c1",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.relatedOutdoorSitesSwiperScrollbar=t}})))),u.currentRelatedOutdoorCourses&&u.currentRelatedOutdoorCourses.length>0&&i("div",{key:"0303d0d42abcc9c54d550f824e3bd1c42b43ca90"},i("div",{key:"876c6637f4046b627d2aebbd5b53708d6588d29e",part:"divider",class:"divider"}),i("div",{key:"2083426d7e5000868d4556d06a4577b2f4a47c77",part:"related-outdoor-courses-container",class:"related-outdoor-courses-container",ref:function(t){return e.coursesRef=t}},i("div",{key:"81da66eeddb9bbf8331eba7b9836d10c053dd4a8",part:"related-outdoor-courses-title",class:"related-outdoor-courses-title"},d[u.language].relatedOutdoorCourses(u.currentRelatedOutdoorCourses.length)),i("div",{key:"866e413a257e1667f98f0cb01bd3f48e6ebdd269",part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(t){return e.swiperRelatedOutdoorCoursesRef=t}},i("div",{key:"4abb1ce4c410c81b4f449d9a2bd88d7d18cf7eb5",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentRelatedOutdoorCourses.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,outdoorCourse:t,isInsideHorizontalList:true}))}))),i("div",{key:"dde8798fd39562a58ddc542ad32cc16004e4809f",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.relatedOutdoorCoursesSwiperScrollbar=t}})))),u.currentInformationDesks&&u.currentInformationDesks.filter((function(t){return e.currentOutdoorSite.information_desks.includes(t.id)})).length>0&&i("div",{key:"0ea40a0e4c01ef94751c6564e74bd1cedbdfbbb2"},i("div",{key:"2a1275197c5111d8e8cdc2d93b513ee4a714d418",part:"divider",class:"divider"}),i("div",{key:"6e4302f051f2ae1fb83428849db99c3d7e72c7fc",part:"information-desks-container",class:"information-desks-container",ref:function(t){return e.informationPlacesRef=t}},i("div",{key:"fb078f313eebb862e066271f526d163f7ff9fd6a",part:"information-desks-title",class:"information-desks-title"},d[u.language].informationPlaces),i("div",{key:"98d29e7f000d0350148914a1ab0aa31d9c76b57d",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},i("div",{key:"5c9f1818a1f1c785549c1329d620869bd66c451b",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentInformationDesks.filter((function(t){return e.currentOutdoorSite.information_desks.includes(t.id)})).map((function(e){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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}))}))),i("div",{key:"64650cd934f30581d6a731162d9311b56b6e380a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.informationDesksContentsSwiperScrollbar=t}})))),u.trekTouristicContents&&u.trekTouristicContents.length>0&&i("div",{key:"bc024c94ba84d8770331bf7f85fee7bce8968ae3"},i("div",{key:"afe7c3cab2ab616a3c6156ce48758b358fd4072d",part:"divider",class:"divider"}),i("div",{key:"109bce7196acef4379048bd7683b12d580c25f89",part:"touristic-content-container",class:"touristic-content-container",ref:function(t){return e.touristicContentsRef=t}},i("div",{key:"b268cbd15dad64652128c0cea4088d513bdfb2a6",part:"touristic-content-title",class:"touristic-content-title"},d[u.language].touristicContents(u.trekTouristicContents.length)),i("div",{key:"2f1807bef528855ec77b01e1d75fc8a41a48300c",part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},i("div",{key:"2b093789aee912b3b67928cf2d08bcc056e4231c",part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicContent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:e.colorSurfaceContainerLow}))}))),i("div",{key:"7a3dbf08a785fed67c6b7d6c41e76337febcb58a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicContentsSwiperScrollbar=t}})))),u.trekTouristicEvents&&u.trekTouristicEvents.length>0&&i("div",{key:"87de809502242132d951c2012707e545c4d68784"},i("div",{key:"40cc823b1a333051c6aec904aa552f87d65c569e",part:"divider",class:"divider"}),i("div",{key:"5f57f56bf55e7fd6199cc86931cdc00a8cb286c3",part:"touristic-event-container",class:"touristic-event-container",ref:function(t){return e.touristicEventsRef=t}},i("div",{key:"548157d54118424770fa0a038a3d0279e565f5ad",part:"touristic-event-title",class:"touristic-event-title"},d[u.language].touristicEvents(u.trekTouristicEvents.length)),i("div",{key:"e4cc8569c3af1d16047660739fabf34ae3bd4939",part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},i("div",{key:"8add6a364adf7324edf51f9af1f54f8623cf5c5e",part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicEvent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:e.colorSurfaceContainerLow}))}))),i("div",{key:"5f76cd4185b43b3b192b1d6a112551258934c59a",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicEventsSwiperScrollbar=t}})))),this.weather&&o&&!this.offline&&i("div",{key:"6c040869ea57eaaeed47ad0199175c8191f7dbf4"},i("div",{key:"70cbd3046f4c4a91f2b5e8a502b80d6a15e64f68",part:"divider",class:"divider"}),i("div",{key:"0c8e8eebef07bc4bf5b74aacd386b7e063292fb0",part:"weather-container",class:"weather-container"},i("iframe",{key:"a21c3a94e525e47d69af5613593f4ac6cfedbe7f",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(o.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&i("div",{key:"af00be86773aeed6e4c809982e9c523442fcced5"},i("div",{key:"3a76b8e48f5ec37175346fa65fd25034cadcca79",part:"divider",class:"divider"}),i("div",{key:"57d5f3d11d08acfd44c097906e2f13b399be44ec",part:"weblinks-container",class:"weblinks-container"},i("div",{key:"99f6839173dab2dc418e79d5cfb2664b179a5a6d",part:"weblinks-title",class:"weblinks-title"},d[u.language].learnMore),this.currentOutdoorSite.web_links.map((function(e){return i("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&i("img",{src:e.category.pictogram,alt:e.category.label}),e.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&i("div",{key:"de499d07a998cd0e10d30eeed6b2616a4e2330a4"},i("div",{key:"c72b131e968b687c14d200b9d71481d62fd64119",part:"divider",class:"divider"}),i("div",{key:"bc18b7753b2dbbf2004d238a575060c479b669c3",part:"source-container",class:"source-container"},i("div",{key:"b164573a925070110e59cdf3656759f8a64a116a",part:"source-title",class:"source-title"},d[u.language].sources),this.sources.map((function(e){return i("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&i("img",{src:e.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:e.name}),i("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website})))})))),this.grwApp&&i("div",{key:"664ff0314de7fd6007751b4428cd249427998e73",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&i(l,{key:"5f4ec74c01cf10b9ef0d745f427dda9193df9b6d"},this.showTouristicContentDetailsModal&&i("grw-touristic-content-provider",{key:"9912fffc554699b6751b82cfba55591efbeaa00e",api:u.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&i("grw-touristic-event-provider",{key:"432799e5359adf2612040aa60b2940bfe028021b",api:u.api,"touristic-event-id":this.modalDetailsId})))};return e}());si.style=oi();var ci=e("grw_outdoor_site_provider",function(){function e(e){t(this,e);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;this.handleOutdoorSite()};e.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,G("outdoorSites",this.outdoorSiteId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineOutdoorSite(e)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};e.prototype.handleOfflineOutdoorSite=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,c,l,d,p,f,h,m,b,v,g,w,k,y,x,A,_,z;return __generator(this,(function(L){switch(L.label){case 0:t=u;return[4,Z("cities")];case 1:t.cities=L.sent();i=u;return[4,Z("sources")];case 2:i.sources=L.sent();r=u;return[4,Z("districts")];case 3:r.districts=L.sent();n=u;return[4,Z("themes")];case 4:n.themes=L.sent();o=u;return[4,Z("outdoorSiteTypes")];case 5:o.outdoorSiteTypes=L.sent();a=u;return[4,Z("outdoorPractices")];case 6:a.outdoorPractices=L.sent();s=u;return[4,Z("outdoorRatings")];case 7:s.outdoorRatings=L.sent();c=u;return[4,Z("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=L.sent();l=u;return[4,Z("touristicContentCategories")];case 9:l.touristicContentCategories=L.sent();d=u;return[4,Z("touristicEventTypes")];case 10:d.touristicEventTypes=L.sent();p=u;return[4,Z("poiTypes")];case 11:p.poiTypes=L.sent();f=u;return[4,Z("outdoorCourseTypes")];case 12:f.outdoorCourseTypes=L.sent();return[4,Z("informationDesks")];case 13:h=L.sent();m=h.filter((function(t){return e.information_desks.some((function(e){return e===t.id}))}));u.currentInformationDesks=m;return[4,Z("pois",["url"])];case 14:b=L.sent();v=b.filter((function(t){return e.pois.some((function(e){return e===t.id}))}));u.currentPois=v;return[4,Z("touristicContents",["url"])];case 15:g=L.sent();w=g.filter((function(t){return e.touristicContents.some((function(e){return e===t.id}))}));u.trekTouristicContents=w;return[4,Z("touristicEvents",["url"])];case 16:k=L.sent();y=k.filter((function(t){return e.touristicEvents.some((function(e){return e===t.id}))}));u.trekTouristicEvents=y;return[4,Z("outdoorSites",["url"])];case 17:x=L.sent();A=x.filter((function(t){return e.children.some((function(e){return e===t.id}))}));u.currentRelatedOutdoorSites=A;return[4,Z("outdoorCourses",["url"])];case 18:_=L.sent();z=_.filter((function(t){return e.courses.some((function(e){return e===t.id}))}));u.currentRelatedOutdoorCourses=z;return[4,O(e,B,["url"])];case 19:L.sent();u.currentOutdoorSite=e;return[2]}}))}))};e.prototype.handleOnlineOutdoorSite=function(){var e=this;var t=[];t.push(!u.sources?W(u.api,u.language,this.init):new Response("null"));t.push(!u.districts?U(u.api,u.language,this.init):new Response("null"));t.push(!u.themes?X(u.api,u.language,this.portals,this.init):new Response("null"));t.push(!u.outdoorSiteTypes?$t(u.api,u.language,this.init):new Response("null"));t.push(!u.outdoorPractices?ei(u.api,u.language,this.init):new Response("null"));t.push(!u.outdoorRatings?ri(u.api,u.language,this.portals,this.init):new Response("null"));t.push(!u.outdoorRatingsScale?ni(u.api,u.language,this.init):new Response("null"));t.push(K(u.api,u.language,this.init));t.push(Me(u.api,u.language,this.outdoorSiteId,this.init));t.push(ze(u.api,u.language,null,this.init));t.push(Fe(u.api,u.language,this.outdoorSiteId,this.init));t.push(Ce(u.api,u.language,null,this.init));t.push(ti(u.api,u.language,this.outdoorSiteId,this.init));t.push(fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init));t.push(!u.outdoorCourseTypes?He(u.api,u.language,this.init):new Response("null"));t.push(Kt(u.api,u.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],t,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n,o,a,s,c,l,d;var p=this;var f=e[0],h=e[1],m=e[2],b=e[3],v=e[4],g=e[5],w=e[6],k=e[7],y=e[8],x=e[9],A=e[10],_=e[11],z=e[12],L=e[13],C=e[14],M=e[15];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(!(M&&M.children.length>0))return[3,2];t=[];t.push.apply(t,M.children);i=[];t.forEach((function(e){i.push(Kt(u.api,u.language,e,p.init))}));r=u;return[4,Promise.all(__spreadArray([],i,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 1:r.currentRelatedOutdoorSites=e.sent();e.label=2;case 2:if(!(M&&M.courses.length>0))return[3,4];n=[];n.push.apply(n,M.courses);o=[];n.forEach((function(e){o.push(Ze(u.api,u.language,e,p.init))}));a=u;return[4,Promise.all(__spreadArray([],o,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 3:a.currentRelatedOutdoorCourses=e.sent();e.label=4;case 4:if(f){u.sources=f.results}if(h){u.districts=h.results}if(m){u.themes=m.results}if(b){u.outdoorSiteTypes=b.results}if(v){u.outdoorPractices=v.results}if(g){u.outdoorRatings=g.results}if(w){u.outdoorRatingsScale=w.results}if(k){u.currentInformationDesks=k.results}if(x){u.touristicContentCategories=x.results}if(y){u.trekTouristicContents=y.results}if(A){u.trekTouristicEvents=A.results}if(_){u.touristicEventTypes=_.results}if(z){u.currentPois=z.results}if(L){u.poiTypes=L.results}if(C){u.outdoorCourseTypes=C.results}u.currentOutdoorSite=M;s=__spreadArray([],M.cities,true);if(u.cities){c=u.cities.map((function(e){return e.id}));s=s.filter((function(e){return e&&!c.includes(e)}))}if(!(s.length>0))return[3,8];e.label=5;case 5:e.trys.push([5,7,,8]);return[4,J(u.api,u.language,this.init,s).then((function(e){return e.json()}))];case 6:l=e.sent().results;if(l){u.cities=__spreadArray(__spreadArray([],u.cities,true),l,true)}return[3,8];case 7:d=e.sent();console.error("Failed to load cities",d);return[3,8];case 8:return[2]}}))}))}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){u.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.render=function(){return i(r,{key:"91c32f48f6236291537777d4dac26c9517f4c590"})};return e}());var li=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 di=e("grw_outdoor_sites_list",function(){function e(e){t(this,e);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)}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(u.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],u.currentOutdoorSites.slice(0,this.step),true)}p("currentOutdoorSites",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.currentOutdoorSites){e.outdoorSitesToDisplay=__spreadArray([],u.currentOutdoorSites.slice(0,e.step),true)}}));p("outdoorSitesWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.outdoorSitesWithinBounds){e.outdoorSitesToDisplay=__spreadArray([],u.outdoorSitesWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<u.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=u.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=u.outdoorSitesWithinBounds.length?u.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{key:"570e403ff6dbfc2c1b894cae48df1b19ce348928",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.outdoorSitesWithinBounds&&i("div",{key:"d016205f78e04b75925d5bf7ba959979b0ea7c33",part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(u.outdoorSitesWithinBounds.length," ").concat(u.outdoorSitesWithinBounds.length>1?d[u.language].outdoorSites:d[u.language].outdoorSite)),i("div",{key:"8cdcb2898c8782328266ab101168f298fa4fe65c",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(t){return i("grw-outdoor-site-card",{outdoorSite:t,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(t.id),"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{key:"32e12286a63cf5dd67e2b735729f8e682d6bd93b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());di.style=li();var ui=e("grw_outdoor_sites_provider",function(){function e(e){t(this,e);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;this.handleOutdoorSites()};e.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.offline){this.handleOfflineOutdoorSites()}else{this.handleOnlineOutdoorSites()}return[2]}))}))};e.prototype.handleOfflineOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,D("outdoorSites")];case 1:e=a.sent();e.filter((function(e){return e.parents&&e.parents.length===0}));if(!(e&&e.length>0))return[3,8];t=u;return[4,Z("cities")];case 2:t.cities=a.sent();i=u;return[4,Z("districts")];case 3:i.districts=a.sent();r=u;return[4,Z("themes")];case 4:r.themes=a.sent();n=u;return[4,Z("outdoorSiteTypes")];case 5:n.outdoorSiteTypes=a.sent();o=u;return[4,Z("outdoorPractices")];case 6:o.outdoorPractices=a.sent();return[4,Z("outdoorSites")];case 7:e=a.sent();u.outdoorSites=e;u.currentOutdoorSites=e;return[3,9];case 8:u.networkError=true;a.label=9;case 9:return[2]}}))}))};e.prototype.handleOnlineOutdoorSites=function(){var e=this;var t=[];t.push(!u.districts?U(u.api,u.language,this.init):new Response("null"));t.push(!u.themes?X(u.api,u.language,this.portals,this.init):new Response("null"));t.push(!u.outdoorSiteTypes?$t(u.api,u.language,this.init):new Response("null"));t.push(!u.outdoorPractices?ei(u.api,u.language,this.init):new Response("null"));t.push(Wt(u.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],t,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n,o,a,s;var c=e[0],l=e[1],d=e[2],p=e[3],f=e[4];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(c){u.districts=c.results}if(l){u.themes=l.results}if(d){u.outdoorSiteTypes=d.results}if(p){u.outdoorPractices=p.results}t=[];i=0;e.label=1;case 1:if(!(i<f.results.length))return[3,4];return[4,ii(f.results[i].id)];case 2:r=e.sent();t.push(Object.assign(Object.assign({},f.results[i]),{offline:r}));e.label=3;case 3:i++;return[3,1];case 4:u.outdoorSites=t;u.currentOutdoorSites=t;if(!(!u.cities||u.cities.length===0))return[3,9];n=new Set;if(f&&f.results){f.results.forEach((function(e){if(e.cities){e.cities.forEach((function(e){return n.add(e)}))}}))}if(!(n.size>0))return[3,9];e.label=5;case 5:e.trys.push([5,8,,9]);return[4,J(u.api,u.language,this.init,Array.from(n))];case 6:o=e.sent();return[4,o.json()];case 7:a=e.sent();u.cities=a.results||[];return[3,9];case 8:s=e.sent();console.error("Failed to load cities",s);return[3,9];case 9:return[2]}}))}))})).catch((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleOfflineOutdoorSites()];case 1:e.sent();return[2]}}))}))}))};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.render=function(){return i(r,{key:"a16bd23916c46dda3f6b774dde75dad6c343d66c"})};return e}());var pi='<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 fi=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 hi=e("grw_search",function(){function e(e){t(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){u.searchValue=e.target.value;if(u.mode==="treks"){u.currentTreks=h()}else if(u.mode==="touristicContents"){u.currentTouristicContents=g()}else if(u.mode==="touristicEvents"){u.currentTouristicEvents=w()}else if(u.mode==="outdoor"){u.currentOutdoorSites=k()}};e.prototype.render=function(){var e=this;return i(r,{key:"e3d98b43edc220fd948553e50aed73ad3475aa9b",style:{"--font-family":this.fontFamily}},i("span",{key:"68ade2155e15c25161484dd9746a9ccb77ca4877",part:"icon",class:"icon",innerHTML:pi}),i("input",{key:"d4443be1fc756debe93a61bb8491be4fd41a4931",part:"search-input",class:"search-input",onInput:function(t){return e.onSearchChange(t)},type:"search",placeholder:"Rechercher",value:u.searchValue}))};return e}());hi.style=fi();var mi=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 bi=e("grw_segmented_segment",function(){function e(e){t(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){u.searchValue="";if(e==="treks"){f.forEach((function(e){u[e.property]&&u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.treks){u.currentTreks=__spreadArray([],h(),true)}}else if(e==="touristicContents"){m.forEach((function(e){u[e.property]&&u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.touristicContents){u.currentTouristicContents=__spreadArray([],g(),true)}}else if(e==="touristicEvents"){b.forEach((function(e){u[e.property]&&u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.touristicEvents){u.currentTouristicEvents=__spreadArray([],w(),true)}}else if(e==="outdoor"){v.forEach((function(e){u[e.property]&&u[e.property].forEach((function(e){return e.selected=false}))}));u.selectedActivitiesFilters=0;u.selectedThemesFilters=0;u.selectedLocationFilters=0;if(u.outdoorSites){u.currentOutdoorSites=__spreadArray([],k(),true)}}u.mode=e};e.prototype.render=function(){var e=this;return i(r,{key:"a2b16c24fbedec687122ed70258ff6543ee2f110",style:{"--font-family":this.fontFamily}},i("div",{key:"d24b1cfa8cf64efda81820f816db2ce13104f872",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&i("label",{key:"0bba2d05fbb3867cbd816eb2dbc16dada86e77f9",part:"segment",class:"segment".concat(u.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},d[u.language].home.segment.treks),this.outdoor&&i("label",{key:"e2cb2ba38033b8100ea916aab9f4cb012f3ac039",part:"segment",class:"segment".concat(u.mode==="outdoor"?" selected-segment":""),onClick:function(){return e.changeMode("outdoor")}},d[u.language].home.segment.outdoorSites),this.touristicContents&&i("label",{key:"65364c1a08a3e6faee2f53647c3eca17b40c0e99",part:"segment",class:"segment".concat(u.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},d[u.language].home.segment.touristicContents),this.touristicEvents&&i("label",{key:"03afc47e263cb8a610f2694efdb8ab5b2f647401",part:"segment",class:"segment".concat(u.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},d[u.language].home.segment.touristicEvents)))};return e}());bi.style=mi();var vi='<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 gi=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 wi=e("grw_select_language",function(){function e(e){t(this,e)}e.prototype.handleSelect=function(e){u.treks=null;u.currentTreks=null;u.currentTrek=null;u.language=e.target.value};e.prototype.render=function(){var e=this;return i(r,{key:"c0d285e09423559c5824e64b7cacbcaa26c5c88b"},i("span",{key:"ef14fdec0f1f7df2d460def242d35459cc86d766",part:"select-language-icon",class:"icon",innerHTML:vi}),i("select",{key:"96ae6cbaef672db97abfb2ce2bb92d8fcd526ad7",part:"select-language-select",onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},u.languages.map((function(e){return i("option",{part:"select-language-option",selected:e===u.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}());wi.style=gi();var ki='<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 yi=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 xi=e("grw_switch",function(){function e(e){t(this,e);this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return i(r,{key:"f2d85060c3b246d9837910145853bf74aed81000",style:{"--font-family":this.fontFamily}},i("label",{key:"e58114850d33b7731560cce7716a815f948ff25b",class:"md3 switch"},i("input",{key:"ba34f0da609b27cb3133d8bc5e821030d7cd7da0",checked:this.checked,onChange:function(){return e.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),i("span",{key:"b08381e1f0882e3af80e80e4c63f19dd432d2d9b",class:"slider"},i("span",{key:"fe77cfa55dceb12b0f6a2460f657001b4bb33dbe",part:"icon",class:"icon",innerHTML:ki}))))};return e}());xi.style=yi();var Ai=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 _i=e("grw_touristic_contents_list",function(){function e(e){t(this,e);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)}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(u.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],u.currentTouristicContents.slice(0,this.step),true)}p("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],u.currentTouristicContents.slice(0,e.step),true)}}));p("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],u.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<u.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=u.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=u.touristicContentsWithinBounds.length?u.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{key:"258f2d41e9b43dd2260d503518af31cc24cb21bc",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.touristicContentsWithinBounds&&i("div",{key:"9e6d6d7e6a12ed1f39316e024a61517608ac4ade",part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(u.touristicContentsWithinBounds.length," ").concat(u.touristicContentsWithinBounds.length>1?d[u.language].home.touristicContents:d[u.language].home.touristicContent)),i("div",{key:"5c4081b92faa32ed7a9dae04b67cece6f6be0429",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return i("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:e.fontFamily,key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{key:"3f4f0431918b6b396e6309eb6d6e6525ddb9160b",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());_i.style=Ai();var zi=e("grw_touristic_contents_provider",function(){function e(e){t(this,e);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e=this;var t=Pe(u.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!u.districts?U(u.api,u.language,this.init):new Response("null"));i.push(!u.touristicContentCategories?ze(u.api,u.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[t],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n;var o=e[0],a=e[1],s=e[2];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(o){u.districts=o.results}if(a){u.touristicContentCategories=a.results}u.touristicContents=s.results;u.currentTouristicContents=s.results;if(!(!u.cities||u.cities.length===0))return[3,5];t=new Set;if(s&&s.results){s.results.forEach((function(e){if(e.cities){e.cities.forEach((function(e){return t.add(e)}))}}))}if(!(t.size>0))return[3,5];e.label=1;case 1:e.trys.push([1,4,,5]);return[4,J(u.api,u.language,this.init,Array.from(t))];case 2:i=e.sent();return[4,i.json()];case 3:r=e.sent();u.cities=r.results||[];return[3,5];case 4:n=e.sent();console.error("Failed to load cities",n);return[3,5];case 5:return[2]}}))}))}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){u.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.render=function(){return i(r,{key:"27520274c596a3df2bad605075b1f9d801651e8c"})};return e}());var Li=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 Ci=e("grw_touristic_events_list",function(){function e(e){t(this,e);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)}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(u.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],u.currentTouristicEvents.slice(0,this.step),true)}p("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],u.currentTouristicEvents.slice(0,e.step),true)}}));p("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],u.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<u.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=u.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=u.touristicEventsWithinBounds.length?u.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{key:"93ce992fa4c096def9508d0c730fffb30c500520",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.touristicEventsWithinBounds&&i("div",{key:"b0abcfce497d42a01974b533718e3ae502b38faa",part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(u.touristicEventsWithinBounds.length," ").concat(u.touristicEventsWithinBounds.length>1?d[u.language].home.touristicEvents:d[u.language].home.touristicEvent)),i("div",{key:"a85edc6cd7ef02f061558059af04fd5901340c62",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return i("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(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),i("div",{key:"ef096ee268e9527e082553ee243a092167d1ca12",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());Ci.style=Li();var Mi=e("grw_touristic_events_provider",function(){function e(e){t(this,e);this.languages="fr";this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e=this;var t=Oe(u.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init);var i=[];i.push(!u.districts?U(u.api,u.language,this.init):new Response("null"));i.push(!u.touristicEventTypes?Ce(u.api,u.language,this.portals,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],i,true),[t],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n;var o=e[0],a=e[1],s=e[2];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(o){u.districts=o.results}if(a){u.touristicEventTypes=a.results}u.touristicEvents=s.results;u.currentTouristicEvents=s.results;if(!(!u.cities||u.cities.length===0))return[3,5];t=new Set;if(s&&s.results){s.results.forEach((function(e){if(e.cities){e.cities.forEach((function(e){return t.add(e)}))}}))}if(!(t.size>0))return[3,5];e.label=1;case 1:e.trys.push([1,4,,5]);return[4,J(u.api,u.language,this.init,Array.from(t))];case 2:i=e.sent();return[4,i.json()];case 3:r=e.sent();u.cities=r.results||[];return[3,5];case 4:n=e.sent();console.error("Failed to load cities",n);return[3,5];case 5:return[2]}}))}))}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){u.networkError=true}}};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.render=function(){return i(r,{key:"3b676b212a8d49c31a1b13c8651e64cbd3319189"})};return e}());var Fi='<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 Pi=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 Oi={threshold:0};var Bi={visible:true,indicator:false,ref:"presentationOptionRef"};var Ti={visible:false,indicator:false,ref:"stepsOptionRef"};var ji={visible:false,indicator:false,ref:"descriptionOptionRef"};var Ei={visible:false,indicator:false,ref:"poisOptionRef"};var Si={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Ni={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var Yi={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var Ii={visible:false,indicator:false,ref:"accessibilityOptionRef"};var Hi={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var Gi={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var Zi={presentation:Bi,steps:Ti,description:ji,pois:Ei,recommendations:Si,sensitiveArea:Ni,informationPlaces:Yi,accessibility:Ii,touristicContents:Hi,touristicEvents:Gi};var Di=e("grw_trek_detail",function(){function e(e){t(this,e);this.descriptionIsInViewport=n(this,"descriptionIsInViewport",7);this.parkingIsInViewport=n(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=n(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=n(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=n(this,"poiIsInViewport",7);this.stepsIsInViewport=n(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=n(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=n(this,"touristicEventsIsInViewport",7);this.detailScrolled=n(this,"detailScrolled",7);this.parentTrekPress=n(this,"parentTrekPress",7);this.downloadConfirm=n(this,"downloadConfirm",7);this.downloadedSuccessConfirm=n(this,"downloadedSuccessConfirm",7);this.downloadedErrorConfirm=n(this,"downloadedErrorConfirm",7);this.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",7);this.deleteErrorConfirm=n(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}e.prototype.onCloseDetailsModal=function(){document.body.style.overflow="visible";u.currentTouristicContent=null;u.currentTouristicEvent=null;this.modalDetailsId=null;if(this.showTouristicContentDetailsModal){this.showTouristicContentDetailsModal=false}else{this.showTouristicEventDetailsModal=false}document.body.getElementsByTagName("grw-details-modal")[0].remove()};e.prototype.onTouristiceEventCardPress=function(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("TouristicContent");var t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());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);t.append(i);document.body.append(t)}};e.prototype.onTouristicContentCardPress=function(e){if(!this.grwApp){this.modalDetailsId=e.detail;this.onOpenDetailsModal("touristicContent");var t=document.createElement("grw-details-modal");t.setAttribute("font-family",this.fontFamily);t.setAttribute("color-background",this.colorBackground);t.setAttribute("color-primary-container",this.colorPrimaryContainer);t.setAttribute("color-on-primary-container",this.colorOnPrimaryContainer);t.setAttribute("rounded",this.rounded.toString());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);t.append(i);document.body.append(t)}};e.prototype.onOpenDetailsModal=function(e){document.body.style.overflow="hidden";if(e==="touristicContent"){this.showTouristicContentDetailsModal=true}else{this.showTouristicEventDetailsModal=true}};e.prototype.componentDidUpdate=function(){this.handleObservers();this.handleSwipers()};e.prototype.handleSwipers=function(){var e=this;if(this.swiperImagesRef&&!this.swiperImages){this.swiperImages=new be(this.swiperImagesRef,{modules:[ve,ge,we,ke,ye],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen&&!e.offline?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}}if(this.swiperStepRef&&!this.swiperStep){this.swiperStep=new be(this.swiperStepRef,{modules:[ke,ye,Ht],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 be(this.swiperPoisRef,{modules:[ke,ye,Ht],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 be(this.swiperInformationDesksRef,{modules:[ke,ye,Ht],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 be(this.swiperTouristicContentsRef,{modules:[ke,ye,Ht],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 be(this.swiperTouristicEventsRef,{modules:[ke,ye,Ht],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})}};e.prototype.handleObservers=function(){var e=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),Oi);this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{accessibility:Object.assign(Object.assign({},e.defaultOptions.accessibility),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),Oi);this.touristicEventObserver.observe(this.touristicEventsRef)}};e.prototype.componentDidLoad=function(){this.handleObservers();this.handleSwipers();this.setupScrollListener()};e.prototype.setupScrollListener=function(){var e=this;var t=this.trekDetailContainerRef;if(t){var i=function(){e.detailScrolled.emit();t.removeEventListener("scroll",i)};t.addEventListener("scroll",i)}else{var r=function(){e.detailScrolled.emit();window.removeEventListener("scroll",r)};window.addEventListener("scroll",r)}};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){if(u.currentTrek){this.offline=u.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=u.difficulties.find((function(e){return e.id===u.currentTrek.difficulty}));this.route=u.routes.find((function(e){return e.id===u.currentTrek.route}));this.practice=u.practices.find((function(e){return e.id===u.currentTrek.practice}));this.themes=u.themes.filter((function(e){return u.currentTrek.themes.includes(e.id)}));this.labels=u.labels.filter((function(e){return u.currentTrek.labels.includes(e.id)}));this.sources=u.sources.filter((function(e){return u.currentTrek.source.includes(e.id)}));this.accessibilities=u.accessibilities.filter((function(e){return u.currentTrek.accessibilities.includes(e.id)}));if(u.accessibilitiesLevel){this.accessibilityLevel=u.accessibilitiesLevel.find((function(e){return u.currentTrek.accessibility_level===e.id}))}if(u.cities){this.cities=u.currentTrek.cities.map((function(e){var t;return(t=u.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}))}this.hasStep=u.currentTrek.children.length>0;this.currentTrek=u.currentTrek}p("currentTrek",(function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(u.currentTrek){this.offline=u.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=u.difficulties.find((function(e){return e.id===u.currentTrek.difficulty}));this.route=u.routes.find((function(e){return e.id===u.currentTrek.route}));this.practice=u.practices.find((function(e){return e.id===u.currentTrek.practice}));this.themes=u.themes.filter((function(e){return u.currentTrek.themes.includes(e.id)}));this.labels=u.labels.filter((function(e){return u.currentTrek.labels.includes(e.id)}));this.sources=u.sources.filter((function(e){return u.currentTrek.source.includes(e.id)}));this.accessibilities=u.accessibilities.filter((function(e){return u.currentTrek.accessibilities.includes(e.id)}));if(u.accessibilitiesLevel){this.accessibilityLevel=u.accessibilitiesLevel.find((function(e){return u.currentTrek.accessibility_level===e.id}))}if(u.cities){this.cities=u.currentTrek.cities.map((function(e){var t;return(t=u.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}))}this.hasStep=u.currentTrek.children.length>0;this.currentTrek=u.currentTrek}return[2]}))}))}));return[2]}))}))};e.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()};e.prototype.handleOptions=function(){return Object.assign(Object.assign({},Zi),{presentation:Object.assign({},Bi),steps:Object.assign(Object.assign({},Ti),{visible:Boolean(u.parentTrek)}),description:Object.assign(Object.assign({},ji),{visible:Boolean(u.currentTrek.description)}),pois:Object.assign(Object.assign({},Ei),{visible:u.poisData>0}),recommendations:Object.assign(Object.assign({},Si),{visible:Boolean(u.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Ni),{visible:Boolean(u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Yi),{visible:Boolean(u.currentInformationDesks&&u.currentInformationDesks.filter((function(e){return u.currentTrek.information_desks.includes(e.id)})).length>0)}),accessibility:Object.assign(Object.assign({},Ii),{visible:Boolean(u.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||u.currentTrek.accessibility_level||u.currentTrek.accessibility_slope||u.currentTrek.accessibility_width||u.currentTrek.accessibility_signage||u.currentTrek.accessibility_covering||u.currentTrek.accessibility_exposure||u.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Hi),{visible:u.touristicContentsData>0}),touristicEvents:Object.assign(Object.assign({},Gi),{visible:u.touristicEventsData>0})})};e.prototype.handleFullscreen=function(e){if(e===void 0){e=false}if(!e){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=-1;var i=Object.values(this.options);for(var r=0;r<i.length;r++){if(i[r].indicator){e=i[r];t=r;break}}if(e&&this[e.ref]){var n=0;var o=0;for(var r=0;r<t;r++){if(i[r].visible){n+=1;o+=this[i[r].ref].clientWidth}}var a=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(o+16*n-a/2,"px"),width:"".concat(a*2,"px"),backgroundSize:"".concat(a,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){var t=this.trekDetailContainerRef.scrollHeight>this.trekDetailContainerRef.clientHeight;if(t){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})}else{window.scrollTo({top:e.offsetTop-64})}};e.prototype.getCurrentStepIndex=function(){var e=this;return u.currentTrekSteps?u.currentTrekSteps.findIndex((function(t){return t.id===e.currentTrek.id})):0};e.prototype.downloadGlobalTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,a,s;return __generator(this,(function(c){switch(c.label){case 0:i=H.tileLayerOffline(e,{attribution:t});r=[];if(u.treks){for(n=0,o=u.treks;n<o.length;n++){a=o[n];r.push(a.departure_geom)}}s=I.latLngBounds(r.map((function(e){return[e[1],e[0]]})));return[4,V(i,s,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};e.prototype.downloadTrekTiles=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=H.tileLayerOffline(e,{attribution:t});r=I.latLngBounds(this.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));return[4,V(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:n.sent();return[2]}}))}))};e.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,c,l,d,p,f,h,m,b,v,g,w,k,y,x,A,_,z,L,C,M,F;var O=this;return __generator(this,(function(T){switch(T.label){case 0:T.trys.push([0,72,,73]);e=new AbortController;t=e.signal;i={cache:P(),signal:t};return[4,D("treks")];case 1:r=T.sent().filter((function(e){return e.offline===true}));n=void 0;if(!!u.treks)return[3,4];return[4,$(u.api,u.language,u.inBboxFromProviders,u.citiesFromProviders,u.districts,u.structuresFromProviders,u.themesFromProviders,u.portalsFromProviders,u.routesFromProviders,u.practicesFromProviders,u.labelsFromProviders,i)];case 2:o=T.sent();a=u;return[4,o.json()];case 3:a.treks=T.sent().results;T.label=4;case 4:n=u.treks;n=n.filter((function(e){return r.findIndex((function(t){return t.id===e.id}))===-1}));if(!!u.districts)return[3,7];return[4,U(u.api,u.language,i)];case 5:s=T.sent();c=u;return[4,s.json()];case 6:c.districts=T.sent().results;T.label=7;case 7:return[4,R("treks",n)];case 8:T.sent();return[4,R("districts",u.districts)];case 9:T.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:T.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:T.sent();return[4,q(u.difficulties,B)];case 12:T.sent();return[4,q(u.routes,B)];case 13:T.sent();return[4,q(u.practices,B)];case 14:T.sent();return[4,q(u.themes,B)];case 15:T.sent();return[4,q(u.labels,B)];case 16:T.sent();return[4,q(u.districts,B)];case 17:T.sent();return[4,q(u.sources,B)];case 18:T.sent();return[4,q(u.accessibilities,B)];case 19:T.sent();return[4,q(u.currentInformationDesks,B)];case 20:T.sent();return[4,q(u.networks,B)];case 21:T.sent();return[4,q(this.currentTrek,B,true,["url"])];case 22:T.sent();return[4,R("difficulties",u.difficulties)];case 23:T.sent();return[4,R("routes",u.routes)];case 24:T.sent();return[4,R("practices",u.practices.map((function(e){return Object.assign(Object.assign({},e),{selected:false})})))];case 25:T.sent();return[4,R("themes",u.themes)];case 26:T.sent();return[4,R("accessibilities",u.accessibilities)];case 27:T.sent();return[4,R("ratings",u.ratings)];case 28:T.sent();return[4,R("ratingsScale",u.ratingsScale)];case 29:T.sent();return[4,R("sensitiveAreas",u.currentSensitiveAreas)];case 30:T.sent();return[4,R("labels",u.labels)];case 31:T.sent();return[4,R("sources",u.sources)];case 32:T.sent();return[4,R("accessibilitiesLevel",u.accessibilitiesLevel)];case 33:T.sent();return[4,R("networks",u.networks)];case 34:T.sent();return[4,R("signages",u.currentSignages)];case 35:T.sent();return[4,R("informationDesks",u.currentInformationDesks)];case 36:T.sent();return[4,q(u.currentInformationDesks,B,true)];case 37:T.sent();return[4,J(u.api,u.language,i).then((function(e){return e.json()}))];case 38:l=T.sent().results;return[4,R("cities",l)];case 39:T.sent();d=[];p=[];f=[];if(!(u.poisData>0))return[3,46];return[4,ee(u.api,u.language,this.currentTrek.id,i).then((function(e){return e.json()}))];case 40:d=T.sent().results;return[4,fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),i).then((function(e){return e.json()}))];case 41:h=T.sent().results;return[4,R("pois",d)];case 42:T.sent();return[4,R("poiTypes",h)];case 43:T.sent();return[4,q(d,B,true,["url"])];case 44:T.sent();return[4,q(h,B)];case 45:T.sent();T.label=46;case 46:if(!(u.touristicContentsData>0))return[3,53];return[4,Be(u.api,u.language,this.currentTrek.id,i).then((function(e){return e.json()}))];case 47:p=T.sent().results;return[4,ze(u.api,u.language,null,i).then((function(e){return e.json()}))];case 48:m=T.sent().results;p.forEach((function(e){e.offline=true}));return[4,R("touristicContents",p)];case 49:T.sent();return[4,R("touristicContentCategories",m)];case 50:T.sent();return[4,q(p,B,true,["url"])];case 51:T.sent();return[4,q(m,B)];case 52:T.sent();T.label=53;case 53:if(!(u.touristicEventsData>0))return[3,60];return[4,Te(u.api,u.language,this.currentTrek.id,i).then((function(e){return e.json()}))];case 54:f=T.sent().results;return[4,Ce(u.api,u.language,null,i).then((function(e){return e.json()}))];case 55:b=T.sent().results;f.forEach((function(e){e.offline=true}));return[4,R("touristicEvents",f)];case 56:T.sent();return[4,R("touristicEventTypes",b)];case 57:T.sent();return[4,q(b,B)];case 58:T.sent();return[4,q(f,B,true,["url"])];case 59:T.sent();T.label=60;case 60:if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,70];v=[];v.push.apply(v,this.currentTrek.children);g=[];w=[];k=[];y=[];x=[];v.forEach((function(e){g.push(te(u.api,u.language,e,i));w.push(Be(u.api,u.language,e,i));k.push(Te(u.api,u.language,e,i));y.push(ee(u.api,u.language,e,i));x.push(ie(u.api,u.language,e,i))}));return[4,Promise.all(__spreadArray([],g,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 61:A=T.sent();return[4,Promise.all(__spreadArray([],w,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 62:_=T.sent();return[4,Promise.all(__spreadArray([],k,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 63:z=T.sent();return[4,Promise.all(__spreadArray([],y,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 64:L=T.sent();return[4,Promise.all(__spreadArray([],x,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 65:C=T.sent();M=0;T.label=66;case 66:if(!(M<A.length))return[3,70];A[M].offline=true;A[M].pois=L[M].results.map((function(e){return e.id}));A[M].touristicContents=_[M].results.map((function(e){return e.id}));A[M].touristicEvents=z[M].results.map((function(e){return e.id}));A[M].sensitiveAreas=C[M].results.map((function(e){return e.id}));return[4,R("treks",[A[M]])];case 67:T.sent();return[4,q(A[M],B,true,["url"])];case 68:T.sent();T.label=69;case 69:M++;return[3,66];case 70:return[4,R("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:d.map((function(e){return e.id})),signages:u.currentSignages.map((function(e){return e.id})),touristicContents:p.map((function(e){return e.id})),touristicEvents:f.map((function(e){return e.id})),sensitiveAreas:u.currentSensitiveAreas?u.currentSensitiveAreas.map((function(e){return e.id})):[]})])];case 71:T.sent();u.treks.find((function(e){return e.id===O.currentTrek.id})).offline=true;if(!u.currentTreks){u.currentTreks=u.treks}u.currentTreks.find((function(e){return e.id===O.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:F=T.sent();this.downloadedErrorConfirm.emit(this.currentTrek.id);return[3,73];case 73:return[2]}}))}))};e.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n;var o=this;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,7,,8]);e=[];return[4,G("treks",this.currentTrek.id)];case 1:t=a.sent();this.deleteOfflineTrekProperties(t);e.push(t);if(!(this.currentTrek.children.length>0))return[3,5];i=0;a.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,G("treks",this.currentTrek.children[i])];case 3:r=a.sent();this.deleteOfflineTrekProperties(r);e.push(r);a.label=4;case 4:i++;return[3,2];case 5:return[4,R("treks",e)];case 6:a.sent();if(u.treks){delete u.treks.find((function(e){return e.id===o.currentTrek.id})).offline;if(!u.currentTreks){u.currentTreks=u.treks}delete u.currentTreks.find((function(e){return e.id===o.currentTrek.id})).offline}if(u.parentTrek){delete u.parentTrek.offline}if(u.currentTrekSteps){u.currentTrekSteps.forEach((function(e){delete e.offline}))}this.offline=false;this.deleteSuccessConfirm.emit(this.currentTrek.id);return[3,8];case 7:n=a.sent();this.deleteErrorConfirm.emit(this.currentTrek.id);return[3,8];case 8:return[2]}}))}))};e.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};e.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};e.prototype.onDownloadPress=function(){this.downloadTrek()};e.prototype.onDeletePress=function(){this.deleteTrek()};e.prototype.deleteOfflineTrekProperties=function(e){delete e.descent;delete e.geometry;delete e.gpx;delete e.kml;delete e.pdf;delete e.parking_location;delete e.arrival;delete e.ambiance;delete e.access;delete e.public_transport;delete e.advice;delete e.advised_parking;delete e.gear;delete e.source;delete e.points_reference;delete e.disabled_infrastructure;delete e.accessibility_level;delete e.accessibility_slope;delete e.accessibility_width;delete e.accessibility_signage;delete e.accessibility_covering;delete e.accessibility_exposure;delete e.accessibility_advice;delete e.ratings;delete e.ratings_description;delete e.children;delete e.networks;delete e.web_links;delete e.update_datetime;delete e.information_desks;delete e.pois;delete e.touristicContents;delete e.touristicEvents;delete e.sensitiveAreas;delete e.offline};e.prototype.getDepartureCityCode=function(){var e;var t=u.cities.find((function(e){return e.id===u.currentTrek.departure_city}));return(e=t.code)!==null&&e!==void 0?e:t.id};e.prototype.render=function(){var e=this;var t,n,o,c,p,f;var h=a("".concat(s.isDev?"/":"","assets/default-image.svg"));var m=this.currentTrek&&this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>1||this.offline;return i(r,{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?u.languages&&u.languages.length>1?"44px":"12px":u.languages&&u.languages.length>1?"164px":"124px"}},this.currentTrek&&i("div",{key:"b303856480be42b6dc240450a4d8e477c360c239",part:"trek-options",class:"trek-options"},i("a",{key:"1a0f83fb17ed9e1fd158e26e7569cebe105e5626",part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)}},d[u.language].options.presentation),this.options.steps.visible&&i("a",{key:"c620a8121169c3d2749f5937b4a61e33e383f319",part:"trek-option",class:"steps trek-option".concat(this.indicatorSelectedTrekOption.ref==="stepsOptionRef"?" selected-trek-option":""),ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)}},d[u.language].options.steps),this.options.description.visible&&i("a",{key:"a9774229b79373964ca040d354412138b8eec1c8",part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)}},d[u.language].options.description),this.options.pois.visible&&i("a",{key:"e9c416ddad9348336e43d7a2bebed56f364dc24d",part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)}},d[u.language].options.pois),this.options.recommendations.visible&&i("a",{key:"b824fe1dec5b8a8d0d70db11001a34a490c4c57e",part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)}},d[u.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{key:"e54134afd8a969037ac194d9090cc26b7e5c99aa",part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)}},d[u.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{key:"83455c4705b03272ec7bdeda591f5eb29fc8c73c",part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)}},d[u.language].options.informationPlaces),this.options.accessibility.visible&&i("a",{key:"d75e9e87f2b3cf2e644dedc59281e08024a57d2e",part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(t){return e.accessibilityOptionRef=t},onClick:function(){return e.handleScrollTo(e.accessibilityRef)}},d[u.language].options.accessibility),this.options.touristicContents.visible&&i("a",{key:"f4b388b35eade9689a3c6b2ff5197bee388a8802",part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)}},d[u.language].options.touristicContents),this.options.touristicEvents.visible&&i("a",{key:"4d10a2fe171939017b84837240c7e14cd7bd8a01",part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)}},d[u.language].options.touristicEvents),this.presentationOptionRef&&i("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&&i("div",{key:"4245997ca1ce78ab6545fa6fb4390896353a6ea7",part:"trek-detail-container",class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},i("div",{key:"cbe663137a1a432ae984528bc5b16b7b3fcadcf7",part:"trek-images",class:"trek-images-container",ref:function(t){return e.presentationRef=t}},i("div",{key:"d90e380850fd96b525bf3ea8d6c4bbcd56ac7e1e",part:"swiper-images",class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},i("div",{key:"ddfcd41e0e3a605c45867cc6034f9324d456aad1",part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0?this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){var r=[t.legend,t.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},e.displayFullscreen&&i("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return e.handleFullscreen(true)}},i("span",{part:"trek-close-fullcreen-icon",class:"trek-close-fullcreen-icon",innerHTML:xe})),i("div",{part:"trek-image-legend",class:"trek-image-legend"},r),i("img",{part:"trek-img",class:"trek-img",src:e.offline&&t.thumbnail!==""?t.thumbnail:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()},onerror:function(e){e.target.onerror=null;e.target.className="trek-img default-trek-img";e.target.src=h},alt:t.legend}))})):i("img",{part:"trek-img",class:"trek-img default-trek-img",src:h,loading:"lazy",alt:""})),i("div",{key:"67e31fe952c0cd6407d67951dd3b76d07979ee5e",style:{display:"block",visibility:m?"visible":"hidden"},part:"swiper-pagination",class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),i("div",{key:"9fffc676f36b3ea5ac1816405ab045707cfde1ce",style:{display:"flex",visibility:m?"visible":"hidden"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),i("div",{key:"ff5806e477f5c9211159a49feb884d1a401403f0",style:{display:"flex",visibility:m?"visible":"hidden"},part:"swiper-button-next",class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),i("div",{key:"4f2ca1b81824e62db8771540b32350e29ad1c4da",part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&i("div",{key:"470e578f6ff3607b85d1421f967040a4b3eb1617",part:"themes-container",class:"themes-container"},this.themes.map((function(e){return i("div",{part:"theme",class:"theme"},e.label)}))),i("div",{key:"4ab0300ca98a161dd25ee3690fe08bfa1e0ca222",part:"sub-container",class:"sub-container"},i("div",{key:"8bf748be4496f6adb82df0ee9b1cbf7c22caa63c",part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&i("div",{key:"cad66bad05ce721070792ba132551ef87b3f238f",part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&i("img",{key:"c6ff801d49c4fba4f73b435557734c5337be9f44",part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),i("span",{key:"211b95c6bb7ed70744fb6aebb533e6975d8d2e73",part:"label",class:"label"},this.difficulty.label)),i("div",{key:"ba0afce0152a48fd6c999bc72f5405c8339cfebe",part:"icon-label",class:"icon-label duration"},i("span",{key:"f23bd5fff68eedcb171d24b410f5662b6ae9d543",part:"icon",class:"icon",innerHTML:Ne}),i("span",{key:"efc712b997738e778ee209240fbab4046538f8fc",part:"label",class:"label"},C((t=this.currentTrek)===null||t===void 0?void 0:t.duration))),i("div",{key:"f4896a51c6f998f2bebfe4414497b543981237cc",part:"icon-label",class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&i("img",{key:"b43dbfc142270470eef68156c1c2885201c61b58",part:"icon",class:"icon",src:this.route.pictogram,alt:""}),i("span",{key:"c05006ec9e314a1c646ccab58f65524942c7b831",part:"label",class:"label"},(o=this.route)===null||o===void 0?void 0:o.route)),i("div",{key:"c45260033030cb8659b2a4dc3b878c71111d7076",part:"icon-label",class:"icon-label length"},i("span",{key:"8781656a190650a50a7234b54974f228ba1d61c5",part:"icon",class:"icon",innerHTML:Ye}),i("span",{key:"3093ad0b2e2af5e7e26b10b03ee42b2412300d82",part:"label",class:"label"},M(this.currentTrek.length_2d))),this.currentTrek.ascent&&i("div",{key:"24b747036ff58269711258338ee2701f23e582bc",part:"icon-label",class:"icon-label ascent"},i("span",{key:"d508bc3f8fce3b617d83fda582d63efa22488209",part:"icon",class:"icon",innerHTML:Ie}),i("span",{key:"6ad471609f440720c0fd98a4bd986d5878570884",part:"label",class:"label"},F(this.currentTrek.ascent))),this.currentTrek.descent&&i("div",{key:"533222292f4506e97fbfab8045908ac518fc7e13",part:"icon-label",class:"icon-label descent"},i("span",{key:"8fbb18e91fcd0fa0ae3b95967e4b9e3b1f754317",part:"icon",class:"icon",innerHTML:Ie}),i("span",{key:"f923f7757c63ba36e25e607030dad10339c46b29",part:"label",class:"label"},j(this.currentTrek.descent))),i("div",{key:"91124c364f4e87dfe4a8ab1d3654c8a99defc388",part:"icon-label",class:"icon-label practice"},((c=this.practice)===null||c===void 0?void 0:c.pictogram)&&i("img",{key:"389b3691c84570648183d4d950945cc278c4b85c",part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),i("span",{key:"3628a2a7812fa47fa445334f7f0e246707527e66",part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),i("div",{key:"98f4b85c92d0b2a3c6054245171b52e454ede447",part:"icon-label",class:"icon-label networks"},(f=this.currentTrek.networks)===null||f===void 0?void 0:f.map((function(e){var t;var r=(t=u.networks)===null||t===void 0?void 0:t.find((function(t){return t.id===e}));if(!r)return null;return i("div",{part:"network",class:"network"},i("img",{part:"icon",class:"icon",src:r.pictogram,alt:""}),i("span",{part:"label",class:"label"},r.label))}))),this.currentTrek.ratings&&u.ratings&&u.ratingsScale&&this.currentTrek.ratings.map((function(e){var t=u.ratings.find((function(t){return t.id===e}));if(!t)return null;var r=u.ratingsScale.find((function(e){return e.id===t.scale}));if(!r)return null;return i("div",{part:"row",class:"row"},"".concat(r.name," : ").concat(t.name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&i("div",{key:"be45be1e4ec518e10d8bb517ec97ada6d148d18a",part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),i("div",{key:"73166517c274a896c66f660178cbf75a6c3d26d4",part:"divider",class:"divider"}),i("div",{key:"1f89d784c875cb52e0e2aeb7336fa2201cabc5c7",part:"downloads-container",class:"downloads-container"},i("div",{key:"37cb5c0de2e31d6b18571d671acbb188c5d16960",part:"download-title",class:"download-title"},d[u.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{key:"2c81dbe5096a7f8753f9c3f78d24700c198c40dc",part:"offline-button",class:"offline-button",onClick:function(){return e.displayDownloadModal()}},i("span",{key:"0690d25f36666c42a3751551664faa4faaa806f9",part:"icon",class:"icon",innerHTML:Xt}),i("span",{key:"be1ec5b062e965ed5fa5cd79d2987c8e79dff6fd",part:"label",class:"label"},d[u.language].offline.downloadOffline)),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{key:"6643c2fcba8207e7ad08c2c216d9a59accc70ba4",part:"offline-button",class:"offline-button",onClick:function(){return e.displayDeleteModal()}},i("span",{key:"267fc4080aac8b73ef19f5b58f8264b1a0c5eb45",part:"icon",class:"icon",innerHTML:Jt}),i("span",{key:"cba3162d287a629daaa5ea18746ad6795628ce74",part:"label",class:"label"},d[u.language].offline.deleteOffline)),i("div",{key:"a4160f10fc13640f0219352e62659acbb84a55e0",part:"links-container",class:"links-container"},i("a",{key:"2b22420fb12cdbce5ea3422c6cec7e2d1398440f",part:"download-gpx-button",href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},i("span",{key:"9858ac2d2691d74646941237a76a7a8d93c90999",part:"icon",class:" icon",innerHTML:Ae}),i("span",{key:"0e5d1a67fd6068ffd6757b961e8e2a4e34485804",part:"label",class:"label"},"GPX")),i("a",{key:"8bb88524999b700629f96da239a384177f8ee4ec",part:"download-kml-button",href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},i("span",{key:"1c49c772fec62afd8fb26369165427f38f8506e2",part:"icon",class:"icon",innerHTML:Ae}),i("span",{key:"1a0e1eea8efcb88995f2e781dd1741865e8739fc",part:"label",class:"label"},"KML")),i("a",{key:"5ab0bb7a155736e9ea0c077be254abfebc878c4f",part:"download-pdf-button",href:"".concat(this.currentTrek.pdf).concat(u.portalsFromProviders&&u.portalsFromProviders.length===1?"?portal="+u.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{key:"ea8a117a7765eaa66a47b2a3897cb7029497cc69",part:"icon",class:"icon",innerHTML:Ae}),i("span",{key:"35991b278ba93d8089f96673be75fb8d5dee3f9a",part:"label",class:"label"},"PDF")))),i("div",{key:"bf5999b7846b85d33c8f4eb80542ec5be7419acd",part:"divider",class:"divider"}),this.currentTrek.description_teaser&&i("div",{key:"76c04a32f9c27209a27c903cf0c8051ed69de068",part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{key:"a1b945d6d95b814ef44eff0cb521164fbc7cc1a0",part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),u.parentTrekId&&u.parentTrek&&this.currentTrek.id!==u.parentTrekId&&i("div",{key:"14a2851a9663619a9e984e7cc0e81d0b00b80133"},i("div",{key:"bca99f01e2525cea538dcf99e46210fae1134147",part:"divider",class:"divider"}),i("div",{key:"fefd49f0703c4604477e501f05d835744df7061d",part:"parent-trek-container",class:"parent-trek-container"},i("button",{key:"d879717b82916dae39fbdad99eee17df33615bd1",part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(u.parentTrekId)}},i("div",{key:"bed07488869c0b7cfd4a483a539dc4f75a4a237e"},"<"),u.parentTrek.name))),u.currentTrekSteps&&i("div",{key:"8ce08e9dd17accad9f4c0352efd74e57729aa579",part:"step-container",class:"step-container",ref:function(t){return e.stepsRef=t}},i("div",{key:"6e1d7af75339fd0d550a16d2855dcc9033f892dc",part:"step-title",class:"step-title"},"".concat(u.currentTrekSteps.length," ").concat(d[u.language].steps)),i("div",{key:"768caf0c1a3618e78f2684ddf1ba5b115a1a809c",part:"swiper-step",class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},i("div",{key:"beadc34783bb73ebcb55842b0669507cffddc94e",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentTrekSteps&&u.currentTrekSteps.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow,"grw-app":e.grwApp}))}))),i("div",{key:"c42299aff5ad2091f61a5121e0871d3a3c470724",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.stepSwiperScrollbar=t}}))),i("div",{key:"db44ce34b81d03f9c412e54433a69d8507cf3ab6",part:"divider",class:"divider"}),this.currentTrek.description&&i("div",{key:"fc4bfdc7ea6fa092a8249053ec111cc404d306d9",part:"description-container",class:"description-container",ref:function(t){return e.descriptionRef=t}},i("div",{key:"aa12ae2fc3017bb59097555f1c8a6171d8248fa4",part:"description-title",class:"description-title"},d[u.language].description),i("div",{key:"5a0b7b6eff715a213533ab1e91751ffc862e7b87",part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{key:"1055d8766febbbd18f5dc993e5fefd5b2927314f",part:"departure-container",class:"departure-container"},i("div",{key:"6b676e5ce915da16481e7dd4eec0d58d3e5af814",part:"departure-title",class:"departure-title"},d[u.language].departure," : "),i("div",{key:"23d9987816c7872187dffc9ee5407975c12b20a3",part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{key:"ce8d3bc40a75d642cd9f16204df89b625afea755",part:"arrival-container",class:"arrival-container"},i("div",{key:"b94c44817e347d0e62b194c4c8a4c22dce8cb7a5",part:"arrival-title",class:"arrival-title"},d[u.language].arrival," : "),i("div",{key:"765913eb6e8ead102cfb6dbc7ee0b074d8f05a43",part:"arrival",innerHTML:this.currentTrek.arrival})),this.cities&&this.cities.length>0&&i("div",{key:"cab01c4af2d4fb836cc35a9b243ac7afd50a9088",part:"cities-container",class:"cities-container"},i("div",{key:"3991f88880808c7a0542ab40c0a195b0602d64ec",part:"cities-title",class:"cities-title"},d[u.language].crossedCities," : "),i("div",{key:"a7d7a7a7a04fb9b2ee761a1f58881cf02bb3edbb",part:"cities",innerHTML:this.cities.join(", ")})),this.options.pois.visible&&i("div",{key:"c96b0a84ba48006025e397f5fea38a460616a9e0",part:"divider-and-pois-container",class:"divider-and-pois-container"},i("div",{key:"b863150374a53b0dc7ae920dbff19f7c81181c1f",part:"divider",class:"divider"}),i("div",{key:"5ac0b85fb62eb636d52dfed810f93004449237b2",part:"pois-container",class:"pois-container",ref:function(t){return e.poiRef=t}},i("div",{key:"5ef409abb360c9500b2796252a92ed97f56a834c",part:"pois-title",class:"pois-title"},d[u.language].pois(u.poisData)),!u.currentPois?i("div",{class:"loader-container"},i("span",{part:"loader",class:"loader"})):i(l,null,i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.currentPois.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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,colorSurfaceContainerLow:e.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.poisSwiperScrollbar=t}}))))),this.weather&&this.currentTrek.departure_city&&!this.offline&&i("div",{key:"f5b71da699c318830a360f2f547486223e0fe212",part:"divider-and-weather-container",class:"divider-and-weather-container"},i("div",{key:"be810c526a76a8523ee6539b8d6dfee753263721",part:"divider",class:"divider"}),i("div",{key:"2f9e188f734e38814fdb2d28056dbf44b8354d2a",part:"weather-container",class:"weather-container"},i("iframe",{key:"b01b6f66328a868e925f44b6ec811fb80806a876",height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.getDepartureCityCode(),"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&i("div",{key:"43ac08370634ba91cc8d73a667586040c218d72f",part:"divider-and-access-container",class:"divider-and-access-container"},i("div",{key:"140d47c65c6b52fe1c16e8f3a7969657960879f9",part:"divider",class:"divider"}),i("div",{key:"3d38690a06022602ef64a6f3b56e19b7add348c0",part:"access-container",class:"access-container"},i("div",{key:"80412576c7120bf367089c9757a43a45fa473160",part:"access-title",class:"access-title"},d[u.language].roadAccessAndParking),i("div",{key:"d68254ad5b780b4fdeff6d05f90a2ae746ecf6eb",part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&i("div",{key:"f52cab7cdcd7567176b822a666ce328daa04ce8d"},i("div",{key:"ad15b3cbf5a4e2440f0197886d9bbab7b301d3d3",part:"advised-parking-title",class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},d[u.language].recommendedParking),i("div",{key:"fb326c4fc9521ca596cd28579cdd20d97bb2f677",part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&i("div",{key:"e13d5d7edcada9f4013f37ac4743b640fe051b3a",part:"divider-and-public-transport-container",class:"divider-and-public-transport-container"},i("div",{key:"67b66cea272cd8f5c74e0baf024189067dc87b96",part:"divider",class:"divider"}),i("div",{key:"0d234296f396fa9059dbcf8c7f626cb5b3948b6f",part:"public-transport-container",class:"public-transport-container"},i("div",{key:"14f3f7f4488c6400e3390b74f3197ea49561abcb",part:"public-transport-title",class:"public-transport-title"},d[u.language].transport),i("div",{key:"a6644adc2dbf7171742a3b995d8b4dac1d4c38c4",part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&i("div",{key:"a05d29c7b27648b72101d0dfbedf64c34224db52",part:"divider-and-advice-container",class:"divider-and-advice-container"},i("div",{key:"ae740c45bb62f80b4c7e23c603b4fd663a0d7848",part:"divider",class:"divider"}),i("div",{key:"dd7bfc62d4c96bd2523c01036df45ea116ef326e",part:"advice-container",class:"advice-container",ref:function(t){return e.recommendationRef=t}},i("div",{key:"be0d489e5fb8881a92b5858c971f4db200846beb",part:"advice-title",class:"advice-title"},d[u.language].recommendations),this.currentTrek.advice&&i("div",{key:"e25822eff7f1e2d6ff41ae1444456d2cad6a2818",part:"current-advice-container",class:"current-advice-container"},i("span",{key:"b43de70d5eaa645a365f471ca73849e82c6b311f",part:"advice-icon",class:"icon",innerHTML:Gt}),i("div",{key:"076d6aed9ab88794eb598c52433e1c431bc711a1",part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&i("div",{key:"1fc74ae9b24032b01ec7fd98d1743c716449a145",part:"gear-container",class:"gear-container"},i("span",{key:"6fdb3407df03df3b6563bf855c7d0cf5efaece80",part:"gear-icon",class:"icon",innerHTML:Fi}),i("div",{key:"10cc4636701f990faf502bf6e88b0d21b6ae6dcb",part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(e){return i("div",{part:"label-container",class:"label-container"},i("div",{part:"label-sub-container",class:"label-sub-container"},e.pictogram&&i("img",{src:e.pictogram,alt:""}),i("div",{part:"label-name",class:"label-name",innerHTML:e.name})),i("div",{part:"label-advice",class:"label-advice",innerHTML:e.advice}))})))),u.currentSensitiveAreas&&u.currentSensitiveAreas.length>0&&i("div",{key:"e1430c6999edf66a1de69565f6e74482e95c7fc1",part:"divider-and-sensitive-areas-container",class:"divider-and-sensitive-areas-container"},i("div",{key:"ec27793a46466e434cc1637a181350780dea9a24",part:"divider",class:"divider"}),i("div",{key:"85f662cf5767f590f1e9da5f97f3cb17a1c5acf9",part:"sensitive-areas-container",class:"sensitive-areas-container",ref:function(t){return e.sensitiveAreaRef=t}},i("div",{key:"93f91208e212670a20f7cb56c1e44e0b39cb9424",part:"ensitive-areas-title",class:"sensitive-areas-title"},d[u.language].environmentalSensitiveAreas),i("div",{key:"de5daa2245052f028a7661352e713ececc28451b",part:"sensitive-areas-description",class:"sensitive-areas-description",innerHTML:d[u.language].sensitiveAreasDescription}),u.currentSensitiveAreas.map((function(e){return i("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:e})})))),u.currentInformationDesks&&u.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&i("div",{key:"e9bf2202911f2106e7eed913ad6cac6862e949a7",part:"divider-and-information-desks-container",class:"divider-and-information-desks-container"},i("div",{key:"0f7c972297729f57bee9257f131dcd942f6c4cc6",part:"divider",class:"divider"}),i("div",{key:"786a53e548f501d28263de700ab49d68ec13ed9e",part:"information-desks-container",class:"information-desks-container",ref:function(t){return e.informationPlacesRef=t}},i("div",{key:"7eed5bcf460b5144b87dcc4e3c3124ef0486026a",part:"information-desks-title",class:"information-desks-title"},d[u.language].informationPlaces),i("div",{key:"c1ff82908e9a7c3dcf6f41da7188a6ae25e54081",part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},i("div",{key:"3b5c259322df1c10e52259460d2a3154203a8c93",part:"swiper-wrapper",class:"swiper-wrapper"},u.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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,colorSurfaceContainerLow:e.colorSurfaceContainerLow}))}))),i("div",{key:"a16ace6cd6c37eeec4c0219ea5e5bc6f42260874",part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.informationDesksContentsSwiperScrollbar=t}})))),(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)&&i("div",{key:"b17bf4022ee3c9aab4502ea190bcaaf56bd07246",part:"divider-and-accessibilities-container",class:"divider-and-accessibilities-container"},i("div",{key:"e96537063c01248b7b48f10e20d9e755c2ec3e5f",part:"divider",class:"divider"}),i("div",{key:"5c917e87000d22e4034c960ea48dae6c6c2bcd9c",part:"accessibilities-container",class:"accessibilities-container",ref:function(t){return e.accessibilityRef=t}},i("div",{key:"0b657271584265e9485040360a9c9bfdda5b5d59",part:"accessibilities-title",class:"accessibilities-title"},d[u.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{key:"6e02f009a6735462101ea3b0c765c5b0dae48a44",part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&i("div",{key:"ea2ba1e68a2c8a16bd0955fc797a5b01c0779554",part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(e){return i("div",{part:"accessibility-content-container",class:"accessibility-content-container"},i("img",{src:e.pictogram,alt:""}),i("div",{part:"accessibility-name",innerHTML:e.name}))}))),this.emergencyNumber&&i("div",{key:"d6bb069f7dacaafb5a457dd4cebdde567d3a26a0",part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},i("div",{key:"ef98f922afa0dc6e655a2d04cfa9460618472585",part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},d[u.language].emergencyNumber),i("div",{key:"bdeb4aeab191a91ce4edd01578792d2c00247235",part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},i("a",{key:"42e856247a47c4f4a7af84f17f3e43b2e18e8ca8",href:"tel:".concat(this.emergencyNumber.toString())},i("span",{key:"f5f98db6a141220fbf2c8fb739f293dc1f877c1f",part:"icon",class:"icon",innerHTML:je}),i("span",{key:"b73edc2e774f9ed27e6dc0c4e4354f2c11acc12a",part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&i("div",{key:"99e2ddf97c48565cbed527919a118a8915e106f8",part:"accessibility-level-container",class:"accessibility-level-container"},i("div",{key:"7fb529ec780b95c30396e4b0e831811348f529b2",part:"accessibility-level-title",class:"accessibility-level-title"},d[u.language].accessibilityLevel),i("div",{key:"4a90d61229dd75fc9c036e800f5b635dfb40003b",part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{key:"e4965d7d9fd70580c60e83b2fd23cb5dc3ac453f",part:"accessibility-slope-container",class:"accessibility-slope-container"},i("div",{key:"0689c69d2fe2bb66f23a641672280064dd7c9a94",part:"accessibility-slope-title",class:"accessibility-slope-title"},d[u.language].accessibilitySlope),i("div",{key:"e29817a08430fdf17f4246b28fc5eb7fe18c4360",part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{key:"6293cf8bcbfb3ba615d0f5729edd19788107393d",part:"accessibility-width-container",class:"accessibility-width-container"},i("div",{key:"3aeb825a6f5c81564f363bb2a0c6f9da23d1552a",part:"accessibility-width-title",class:"accessibility-width-title"},d[u.language].accessibilityWidth),i("div",{key:"dc2823909081e95cf1e12a01504b842a0cfb29b3",part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{key:"9eda6d3e4ba587ae0bdf0539dfe8e38551bfefb9",part:"accessibility-signage-container",class:"accessibility-signage-container"},i("div",{key:"d87871b771585da37654011fe7454f6479f7a198",part:"accessibility-signage-title",class:"accessibility-signage-title"},d[u.language].accessibilitySignage),i("div",{key:"b7d535794336ae9684895e5c3a1469f5305debdc",part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{key:"9ae714a89e6f2a0369e893384da8b7fc9e89f7ba",part:"accessibility-covering-container",class:"accessibility-covering-container"},i("div",{key:"f5f7cec0e5ac87575246f2589171275fcd8ad977",part:"accessibility-covering-title",class:"accessibility-covering-title"},d[u.language].accessibilityCovering),i("div",{key:"ff281034591ab3098a2af9e2ecd5e4d2c4d7b476",part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{key:"cff0700f6d0f4cf210d6bd220a0decd4b765c7e6",part:"accessibility-exposure-container",class:"accessibility-exposure-container"},i("div",{key:"dea368c92a7a275127ca142d71dac06fcea8747e",part:"accessibility-exposure-title",class:"accessibility-exposure-title"},d[u.language].accessibilityExposure),i("div",{key:"acf301f63e152448f5cfbc9b3f62f185b5169507",part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{key:"657faeb3b0806952a1ceb0a7e0db280f2b404ba8",part:"accessibility-advice-container",class:"accessibility-advice-container"},i("div",{key:"e13a5149621e5a5fb8cb7ca94cc434c6c6e31e8e",part:"accessibility-advice-title",class:"accessibility-advice-title"},d[u.language].accessibilityAdvices),i("div",{key:"2bac6f8e98cebfb8d245cd5c5f92933ea78a5c2e",part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),this.options.touristicContents.visible&&i("div",{key:"ab4400ef728b0d06ff2eb8b4e122ec3b44a407bc",part:"divider-and-touristic-content-container",class:"divider-and-touristic-content-container"},i("div",{key:"295932a6bcf4f5c70c336600d1aa9447e81f1ee2",part:"divider",class:"divider"}),i("div",{key:"5884854910d07ec337bef65347032d0a65ead6e4",part:"touristic-content-container",class:"touristic-content-container",ref:function(t){return e.touristicContentsRef=t}},i("div",{key:"18296b8976cf6220d9b9434addb2d7473978b443",part:"touristic-content-title",class:"touristic-content-title"},d[u.language].touristicContents(u.touristicContentsData)),!u.trekTouristicContents?i("div",{class:"loader-container"},i("span",{part:"loader",class:"loader"})):i(l,null,i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicContents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicContent:t,isInsideHorizontalList:true,"color-surface-container-low":e.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicContentsSwiperScrollbar=t}}))))),this.options.touristicEvents.visible&&i("div",{key:"02991af10c2b6982f56491f0305d4c86e801aa9b",part:"divider-and-touristic-event-container",class:"divider-and-touristic-event-container"},i("div",{key:"24eda30f8bc9a2a107dc96557a561b28c2bc806f",part:"divider",class:"divider"}),i("div",{key:"13e9dc162d5021646e07cf33e992eafbae33e417",part:"touristic-event-container",class:"touristic-event-container",ref:function(t){return e.touristicEventsRef=t}},i("div",{key:"9f02735b59105f7014862d641aebd49f1630d320",part:"touristic-event-title",class:"touristic-event-title"},d[u.language].touristicEvents(u.touristicEventsData)),!u.trekTouristicEvents?i("div",{class:"loader-container"},i("span",{part:"loader",class:"loader"})):i(l,null,i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},u.trekTouristicEvents.map((function(t){return i("div",{part:"swiper-slide",class:"swiper-slide"},i("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:e.fontFamily,touristicEvent:t,isInsideHorizontalList:true,colorSurfaceContainerLow:e.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(t){return e.touristicEventsSwiperScrollbar=t}}))))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&i("div",{key:"494c71b0095353f716564a8ef14f12f89c1e9cd2",part:"divider-and-weblinks-container",class:"divider-and-weblinks-container"},i("div",{key:"f680c377e1194f2136914371c32bf0e831d6a1cc",part:"divider",class:"divider"}),i("div",{key:"490ce9c6e6c3fdc5bda69026c7d550d406be0f80",part:"weblinks-container",class:"weblinks-container"},i("div",{key:"38891f5e73aa5fde817cea64b0a5e219274aa4f2",part:"weblinks-title",class:"weblinks-title"},d[u.language].learnMore),this.currentTrek.web_links.map((function(e){return i("a",{part:"weblink-container",class:"weblink-container",href:e.url,target:"_blank",rel:"noopener noreferrer"},e.category&&e.category.pictogram&&i("img",{src:e.category.pictogram,alt:e.category.label}),e.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",{key:"66816c4b3cd95ce15f455ff302a043f07e89d393",part:"divider-and-source-container",class:"divider-and-source-container"},i("div",{key:"199885dbcb1c38a28a3804046382bcd6bd87032b",part:"divider",class:"divider"}),i("div",{key:"f40130e768448309bc69a5992d94c60b3ab896c3",part:"source-container",class:"source-container"},i("div",{key:"9c3770c70cd4c177255fa728accad098ee5e302d",part:"source-title",class:"source-title"},d[u.language].sources),this.sources.map((function(e){return i("div",{part:"source-sub-container",class:"source-sub-container"},e.pictogram&&i("img",{src:e.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:e.name}),i("a",{part:"source-advice",class:"source-advice",href:e.website,innerHTML:e.website})))})))),this.grwApp&&i("div",{key:"75fda50d6ba82cb3bb636566aa4833d6bcd0e795",part:"detail-bottom-space",class:"detail-bottom-space"})),this.modalDetailsId&&i(l,{key:"af592c9a38038ce4b6dde27d83b096b74fe86678"},this.showTouristicContentDetailsModal&&i("grw-touristic-content-provider",{key:"a270a189214c77dd45716ecc6368e6a5b24779ba",api:u.api,"touristic-content-id":this.modalDetailsId}),this.showTouristicEventDetailsModal&&i("grw-touristic-event-provider",{key:"4740417d2fbec297aa58d21dc7fff8386dd89d68",api:u.api,"touristic-event-id":this.modalDetailsId})))};return e}());Di.style=Pi();var Ri=e("grw_trek_provider",function(){function e(e){t(this,e);this.languages="fr";this.signages=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){u.poisData=0;u.touristicContentsData=0;u.touristicEventsData=0;u.currentPois=null;u.trekTouristicContents=null;u.trekTouristicEvents=null;if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;u.routesFromProviders=this.routes;u.practicesFromProviders=this.practices;u.labelsFromProviders=this.labels;this.handleTrek()};e.prototype.disconnectedCallback=function(){u.networkError=false};e.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,G("treks",this.trekId)];case 1:e=t.sent();if(e&&e.offline){this.handleOfflineTrek(e)}else{this.handleOnlineTrek()}return[2]}}))}))};e.prototype.handleOfflineTrek=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,r,n,o,a,s,c,l,d,p,f,h,m,b,v,g,w,k,y,x,A,_,z,L,C,M,F,P,T,j;return __generator(this,(function(E){switch(E.label){case 0:if(!(e&&e.children.length>0||u.parentTrekId))return[3,5];t=[];if(!(e.children.length>0))return[3,1];u.parentTrekId=e.id;u.parentTrek=e;t.push.apply(t,e.children);return[3,3];case 1:return[4,G("treks",u.parentTrekId)];case 2:i=E.sent();u.parentTrek=i;t.push.apply(t,i.children);E.label=3;case 3:r=[];t.forEach((function(e){r.push(G("treks",e))}));n=u;return[4,Promise.all(__spreadArray([],r,true)).then((function(e){return e}))];case 4:n.currentTrekSteps=E.sent();E.label=5;case 5:o=u;return[4,Z("difficulties")];case 6:o.difficulties=E.sent();a=u;return[4,Z("routes")];case 7:a.routes=E.sent();s=u;return[4,Z("practices")];case 8:s.practices=E.sent();c=u;return[4,Z("themes")];case 9:c.themes=E.sent();l=u;return[4,Z("cities")];case 10:l.cities=E.sent();d=u;return[4,Z("accessibilities")];case 11:d.accessibilities=E.sent();p=u;return[4,Z("ratings")];case 12:p.ratings=E.sent();f=u;return[4,Z("ratingsScale")];case 13:f.ratingsScale=E.sent();h=u;return[4,Z("labels")];case 14:h.labels=E.sent();m=u;return[4,Z("sources")];case 15:m.sources=E.sent();b=u;return[4,Z("accessibilitiesLevel")];case 16:b.accessibilitiesLevel=E.sent();v=u;return[4,Z("touristicContentCategories")];case 17:v.touristicContentCategories=E.sent();g=u;return[4,Z("touristicEventTypes")];case 18:g.touristicEventTypes=E.sent();w=u;return[4,Z("networks")];case 19:w.networks=E.sent();k=u;return[4,Z("poiTypes")];case 20:k.poiTypes=E.sent();return[4,Z("informationDesks")];case 21:y=E.sent();x=y.filter((function(t){return e.information_desks.some((function(e){return e===t.id}))}));u.currentInformationDesks=x;return[4,Z("pois",["url"])];case 22:A=E.sent();_=A.filter((function(t){return e.pois.some((function(e){return e===t.id}))}));u.currentPois=_;u.poisData=_.length;return[4,Z("touristicContents",["url"])];case 23:z=E.sent();L=z.filter((function(t){return e.touristicContents.some((function(e){return e===t.id}))}));u.trekTouristicContents=L;u.touristicContentsData=L.length;return[4,Z("touristicEvents",["url"])];case 24:C=E.sent();M=C.filter((function(t){return e.touristicEvents.some((function(e){return e===t.id}))}));u.trekTouristicEvents=M;u.touristicEventsData=M.length;return[4,Z("sensitiveAreas")];case 25:F=E.sent();P=F.filter((function(t){return e.sensitiveAreas.some((function(e){return e===t.id}))}));u.currentSensitiveAreas=P;return[4,Z("signages")];case 26:T=E.sent();j=T.filter((function(t){return e.signages.some((function(e){return e===t.id}))}));u.currentSignages=j;return[4,O(e,B,["url"])];case 27:E.sent();u.currentTrek=e;return[2]}}))}))};e.prototype.handleOnlineTrek=function(){var e=this;var t=[];t.push(!u.difficulties?fetch("".concat(u.api,"trek_difficulty/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!u.routes?fetch("".concat(u.api,"trek_route/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!u.practices?fetch("".concat(u.api,"trek_practice/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!u.themes?fetch("".concat(u.api,"theme/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!u.accessibilities?fetch("".concat(u.api,"trek_accessibility/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!u.ratings?re(u.api,u.language,this.portals,this.init):new Response("null"));t.push(!u.ratingsScale?ne(u.api,u.language,this.init):new Response("null"));t.push(this.signages?oe(u.api,u.language,this.trekId,this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[ie(u.api,u.language,this.trekId,this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(u.api,"label/?language=").concat(u.language,"&fields=id,name,advice,pictogram,filter"),this.init),W(u.api,u.language,this.init),fetch("".concat(u.api,"trek_accessibility_level/?language=").concat(u.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),ae(u.api,u.language,this.trekId,this.init),K(u.api,u.language,this.init),se(u.api,u.language,this.init),te(u.api,u.language,this.trekId,this.init),Ee(u.api,u.language,this.trekId,this.init),Se(u.api,u.language,this.trekId,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n,o,a,s;var c=this;var l=e[0],d=e[1],p=e[2],f=e[3],h=e[4],m=e[5],b=e[6],v=e[7],g=e[8],w=e[9],k=e[10],y=e[11],x=e[12],A=e[13],_=e[14],z=e[15],L=e[16],C=e[17];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;if(!(z&&z.children.length>0||u.parentTrekId))return[3,5];t=[];if(!(z.children.length>0))return[3,1];u.parentTrekId=z.id;u.parentTrek=z;t.push.apply(t,z.children);return[3,3];case 1:return[4,fetch("".concat(u.api,"trek/").concat(u.parentTrekId,"/?language=").concat(u.language,"&published=true&fields=name,children"),this.init).then((function(e){return e.json()}))];case 2:i=e.sent();u.parentTrek=i;t.push.apply(t,i.children);e.label=3;case 3:r=[];t.forEach((function(e){r.push(te(u.api,u.language,e,c.init))}));n=u;return[4,Promise.all(__spreadArray([],r,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:n.currentTrekSteps=e.sent();e.label=5;case 5:o=__spreadArray([z.departure_city],z.cities,true);if(u.currentTrekSteps){u.currentTrekSteps.forEach((function(e){o=__spreadArray(__spreadArray(__spreadArray([],o,true),[e.departure_city],false),e.cities,true)}))}o=__spreadArray([],new Set(o.filter(Boolean)),true);if(u.cities){a=u.cities.map((function(e){return e.id}));o=o.filter((function(e){return!a.includes(e)}))}if(!(o.length>0))return[3,7];return[4,J(u.api,u.language,this.init,o).then((function(e){return e.json()}))];case 6:s=e.sent().results;if(s){if(u.cities){u.cities=__spreadArray(__spreadArray([],u.cities,true),s,true)}else{u.cities=s}}e.label=7;case 7:if(!u.cities){u.cities=[]}if(l){u.difficulties=l.results}if(d){u.routes=d.results}if(p){u.practices=p.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(f){u.themes=f.results}if(h){u.accessibilities=h.results}if(m){u.ratings=m.results}if(b){u.ratingsScale=b.results}u.currentSignages=v?v.results:[];if(y){u.accessibilitiesLevel=y.results}if(g){u.currentSensitiveAreas=g.results}if(w){u.labels=w.results}if(k){u.sources=k.results}if(_){u.networks=_.results}if(A){u.currentInformationDesks=A.results}if(x.count){u.poisData=x.count}if(L.count){u.touristicContentsData=L.count}if(C.count){u.touristicEventsData=C.count}if(z){u.currentTrek=z}if(u.poisData>0){Promise.all([ee(u.api,u.language,this.trekId,this.init),fetch("".concat(u.api,"poi_type/?language=").concat(u.language,"&fields=id,pictogram"),this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1];if(i){u.poiTypes=i.results}if(t){u.currentPois=t.results}})).catch((function(){u.poisData=0}))}if(u.touristicContentsData>0){Promise.all([Be(u.api,u.language,this.trekId,this.init),ze(u.api,u.language,null,this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1];if(i){u.touristicContentCategories=i.results}if(t){u.trekTouristicContents=t.results}})).catch((function(){u.touristicContentsData=0}))}if(u.touristicEventsData>0){Promise.all([Te(u.api,u.language,this.trekId,this.init),Ce(u.api,u.language,null,this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1];if(i){u.touristicEventTypes=i.results}if(t){u.trekTouristicEvents=t.results}})).catch((function(){u.touristicEventsData=0}))}return[2]}}))}))}))}catch(e){if(!(e.code===DOMException.ABORT_ERR)){u.networkError=true}}};e.prototype.render=function(){return i(r,{key:"c906a7bee2cf22789ff613bf3c429404a23775a0"})};return e}());var qi=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 Vi=e("grw_treks_list",function(){function e(e){t(this,e);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)}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(u.currentTreks){this.treksToDisplay=__spreadArray([],u.currentTreks.slice(0,this.step),true)}p("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.currentTreks){e.treksToDisplay=__spreadArray([],u.currentTreks.slice(0,e.step),true)}}));p("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(u.treksWithinBounds){e.treksToDisplay=__spreadArray([],u.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<u.treksWithinBounds.length){this.treksToDisplay=u.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=u.treksWithinBounds.length?u.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return i(r,{key:"fc23416db0a6d67acae73d521024429dc0566627",class:{"large-view":this.isLargeView},style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},u.treksWithinBounds&&i("div",{key:"8a74a4d35b095dd7dfa0c3d83e65c03266412817",part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(u.treksWithinBounds.length," ").concat(u.treksWithinBounds.length>1?d[u.language].treks:d[u.language].trek)),i("div",{key:"5f81aff6bb9ef65fc3638bf5ab2c10a428028683",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(t){return i("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(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow,"grw-app":e.grwApp})}))),i("div",{key:"8dc46a4b655af7b8266262ca664ba31e039f2c78",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return c(this)},enumerable:false,configurable:true});return e}());Vi.style=qi();var Qi=e("grw_treks_provider",function(){function e(e){t(this,e);this.languages="fr";this.offline=false;this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:P(),signal:this.signal}}e.prototype.connectedCallback=function(){if(!u.api){u.api=this.api;u.languages=this.languages.split(",");u.language=u.languages[0]}u.portalsFromProviders=this.portals;u.inBboxFromProviders=this.inBbox;u.citiesFromProviders=this.cities;u.districtsFromProviders=this.districts;u.structuresFromProviders=this.structures;u.themesFromProviders=this.themes;u.routesFromProviders=this.routes;u.practicesFromProviders=this.practices;u.labelsFromProviders=this.labels;this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();u.networkError=false};e.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.offline){this.handleOfflineTreks()}else{this.handleOnlineTreks()}return[2]}))}))};e.prototype.handleOfflineTreks=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,r,n,o,a,s,c;return __generator(this,(function(l){switch(l.label){case 0:return[4,D("treks")];case 1:e=l.sent();if(!(e&&e.length>0))return[3,11];t=u;return[4,this.handleOfflineProperty("difficulties")];case 2:t.difficulties=l.sent();i=u;return[4,this.handleOfflineProperty("routes")];case 3:i.routes=l.sent();r=u;return[4,this.handleOfflineProperty("practices")];case 4:r.practices=l.sent();n=u;return[4,this.handleOfflineProperty("themes")];case 5:n.themes=l.sent();o=u;return[4,this.handleOfflineProperty("cities")];case 6:o.cities=l.sent();a=u;return[4,this.handleOfflineProperty("accessibilities")];case 7:a.accessibilities=l.sent();s=u;return[4,this.handleOfflineProperty("labels")];case 8:s.labels=l.sent();c=u;return[4,this.handleOfflineProperty("districts")];case 9:c.districts=l.sent();u.durations=E;u.lengths=S;u.elevations=N;return[4,this.handleOfflineProperty("treks")];case 10:e=l.sent();this.sortTreks(e);if(this.offline){e=e.filter((function(e){return e.offline}))}u.treks=e;u.currentTreks=e;return[3,12];case 11:u.networkError=true;l.label=12;case 12:return[2]}}))}))};e.prototype.sortTreks=function(e){e.sort((function(e,t){return e.name.localeCompare(t.name,undefined,{numeric:true,sensitivity:"base"})}))};e.prototype.handleOfflineProperty=function(e){return __awaiter(this,arguments,void 0,(function(e,t){var i;if(t===void 0){t=[]}return __generator(this,(function(r){switch(r.label){case 0:return[4,D(e)];case 1:i=r.sent();return[4,O(i,B,t)];case 2:r.sent();return[2,i]}}))}))};e.prototype.handleOnlineTreks=function(){var e=this;Promise.all([fetch("".concat(u.api,"trek_difficulty/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(u.api,"trek_route/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(u.api,"trek_practice/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(u.api,"theme/?language=").concat(u.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),ce(u.api,u.language,this.portals,this.init),le(u.api,u.language,this.portals,this.init),U(u.api,u.language,this.init),$(u.api,u.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(e){e.forEach((function(e){if(e.status!==200){throw new Error("network error")}}));return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){return __awaiter(e,[t],void 0,(function(e){var t,i,r,n,o,a,s,c,l;var d=e[0],p=e[1],f=e[2],h=e[3],m=e[4],b=e[5],v=e[6],g=e[7];return __generator(this,(function(e){switch(e.label){case 0:u.networkError=false;u.difficulties=d.results;u.routes=p.results;u.practices=f.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));u.themes=h.results;u.accessibilities=m.results;u.labels=b.results;u.districts=v.results;u.durations=E;u.lengths=S;u.elevations=N;t=new Set;if(g&&g.results){g.results.forEach((function(e){if(e.departure_city){t.add(e.departure_city)}if(e.cities){e.cities.forEach((function(e){return t.add(e)}))}}))}i=[];if(!(t.size>0))return[3,5];e.label=1;case 1:e.trys.push([1,4,,5]);return[4,J(u.api,u.language,this.init,Array.from(t))];case 2:r=e.sent();return[4,r.json()];case 3:n=e.sent();i=n.results||[];return[3,5];case 4:o=e.sent();console.error("Failed to load cities",o);return[3,5];case 5:u.cities=i;a=[];s=g.results.filter((function(e){return e.departure_geom!==null}));c=0;e.label=6;case 6:if(!(c<s.length))return[3,9];return[4,de(s[c].id)];case 7:l=e.sent();a.push(Object.assign(Object.assign({},s[c]),{offline:l}));e.label=8;case 8:c++;return[3,6];case 9:this.sortTreks(a);u.treks=a;u.currentTreks=a;return[2]}}))}))})).catch((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleOfflineTreks()];case 1:e.sent();return[2]}}))}))}))};e.prototype.render=function(){return i(r,{key:"b89d70f3abfd3b072342261b4d6c34e813746646"})};return e}())}}}));
|
|
4
|
-
//# sourceMappingURL=p-acb4209f.system.entry.js.map
|