@geotrekce/geotrek-rando-widget 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/grw-app.cjs.entry.js +5 -5
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-common-button_27.cjs.entry.js +496 -374
- package/dist/cjs/grw-common-button_27.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-common-button_27.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js +1 -1
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js +58 -38
- package/dist/cjs/grw-poi_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-poi_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-2df02bcf.js → i18n-736691e8.js} +5 -1
- package/dist/cjs/i18n-736691e8.js.br +0 -0
- package/dist/cjs/i18n-736691e8.js.gz +0 -0
- package/dist/cjs/i18n-736691e8.js.map +1 -0
- package/dist/collection/components/grw-app/grw-app.js +4 -4
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-common-button/grw-common-button.css +1 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.br +0 -0
- package/dist/collection/components/grw-common-button/grw-common-button.css.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js +104 -77
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-course-detail/grw-outdoor-course-detail.js.map +1 -1
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js +185 -143
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.br +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.gz +0 -0
- package/dist/collection/components/grw-outdoor-site-detail/grw-outdoor-site-detail.js.map +1 -1
- package/dist/collection/components/grw-poi-detail/grw-poi.js +31 -23
- package/dist/collection/components/grw-poi-detail/grw-poi.js.br +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.gz +0 -0
- package/dist/collection/components/grw-poi-detail/grw-poi.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js +13 -7
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +24 -16
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js +13 -7
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -1
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +24 -16
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
- package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +157 -120
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/collection/i18n/i18n.js +4 -0
- package/dist/collection/i18n/i18n.js.br +0 -0
- package/dist/collection/i18n/i18n.js.gz +0 -0
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/stories/App.js +2 -1
- package/dist/collection/stories/App.js.br +0 -0
- package/dist/collection/stories/App.js.gz +0 -0
- package/dist/collection/stories/App.stories.js +1 -0
- package/dist/collection/stories/App.stories.js.br +0 -0
- package/dist/collection/stories/App.stories.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +5 -5
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-common-button_27.entry.js +496 -374
- package/dist/esm/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm/grw-information-desk_3.entry.js +1 -1
- package/dist/esm/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk_3.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js +58 -38
- package/dist/esm/grw-poi_3.entry.js.br +0 -0
- package/dist/esm/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm/grw-poi_3.entry.js.map +1 -1
- package/dist/esm/{i18n-9a7ac609.js → i18n-84192695.js} +5 -1
- package/dist/esm/i18n-84192695.js.br +0 -0
- package/dist/esm/i18n-84192695.js.gz +0 -0
- package/dist/esm/i18n-84192695.js.map +1 -0
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-common-button_27.entry.js +3 -3
- package/dist/esm-es5/grw-common-button_27.entry.js.br +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.gz +0 -0
- package/dist/esm-es5/grw-common-button_27.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js +1 -1
- package/dist/esm-es5/grw-poi_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-poi_3.entry.js.map +1 -1
- package/dist/esm-es5/i18n-84192695.js +2 -0
- package/dist/esm-es5/i18n-84192695.js.br +0 -0
- package/dist/esm-es5/i18n-84192695.js.gz +0 -0
- package/dist/esm-es5/i18n-84192695.js.map +1 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-989276bc.entry.js → p-2ed1025e.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2ed1025e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js → p-3ea6b596.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-3ea6b596.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-45fc47d9.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js +2 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-5d955904.system.js.map +1 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js +2 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6b64ae12.js.map +1 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-76e3667f.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js +1 -1
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-775aaaa7.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-6ac9b3f1.entry.js → p-9d7b3f9a.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9d7b3f9a.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js +10 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-bee90815.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c61ad2b7.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-01061bf4.system.entry.js → p-f3a9a20f.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-f3a9a20f.system.entry.js.map +1 -0
- package/dist/types/components/grw-outdoor-course-detail/grw-outdoor-course-detail.d.ts +3 -0
- package/dist/types/components/grw-outdoor-site-detail/grw-outdoor-site-detail.d.ts +3 -0
- package/dist/types/components/grw-poi-detail/grw-poi.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-card/grw-touristic-content-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-content-detail/grw-touristic-content-detail.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-card/grw-touristic-event-card.d.ts +2 -0
- package/dist/types/components/grw-touristic-event-detail/grw-touristic-event-detail.d.ts +2 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +1 -0
- package/dist/types/i18n/i18n.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/i18n-2df02bcf.js.br +0 -0
- package/dist/cjs/i18n-2df02bcf.js.gz +0 -0
- package/dist/cjs/i18n-2df02bcf.js.map +0 -1
- package/dist/esm/i18n-9a7ac609.js.br +0 -0
- package/dist/esm/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm/i18n-9a7ac609.js.map +0 -1
- package/dist/esm-es5/i18n-9a7ac609.js +0 -2
- package/dist/esm-es5/i18n-9a7ac609.js.br +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.gz +0 -0
- package/dist/esm-es5/i18n-9a7ac609.js.map +0 -1
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-01061bf4.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-105ea0c8.js +0 -2
- package/dist/geotrek-rando-widget/p-105ea0c8.js.br +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-105ea0c8.js.map +0 -1
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-2b7b2f0b.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6ac9b3f1.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6f7d6ea5.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7e28980f.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-989276bc.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js +0 -10
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-a2af6c11.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b4942f58.system.js +0 -2
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b4942f58.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c5a341b3.system.entry.js.map +0 -1
- /package/dist/geotrek-rando-widget/{p-989276bc.entry.js.map → p-2ed1025e.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-6f7d6ea5.system.entry.js.map → p-3ea6b596.system.entry.js.map} +0 -0
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,r){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?i(t.value):n(t.value).then(s,a)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return c([t,e])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(r=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];n=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var r=0,n=e.length,o;r<n;r++){if(o||!(r in e)){if(!o)o=Array.prototype.slice.call(e,0,r);o[r]=e[r]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-ee8964dd.system.js","./p-b4942f58.system.js","./p-4dc3f45e.system.js","./p-4f8ca64d.system.js","./p-ebe1072e.system.js","./p-e59b4714.system.js","./p-5f0cf716.system.js","./p-42525761.system.js","./p-55a1eaed.system.js"],(function(t){"use strict";var e,i,r,n,o,s,a,c,l,p,u,d,f,h,m,v,g,w,b,k,x,y,A,_,z,M,C,B,P,F,T,O,E,j,Y,N,S,H,G,Z,D,I,R,q,Q,V,U,X,J,K,W,$,tt,et,it,rt,nt,ot,st,at,ct,lt,pt,ut,dt,ft,ht,mt,vt,gt,wt;return{setters:[function(t){e=t.r;i=t.h;r=t.H;n=t.c;o=t.e;s=t.g},function(t){a=t.t},function(t){c=t.t;l=t.s;p=t.h;u=t.f;d=t.j;f=t.o;h=t.k;m=t.l;v=t.b;g=t.m;w=t.C;b=t.d;k=t.n;x=t.F;y=t.D;A=t.p;_=t.q;z=t.u;M=t.e;C=t.i;B=t.v;P=t.w;F=t.x;T=t.y},function(t){O=t.l;E=t.c;j=t.L;Y=t.b;N=t.a;S=t.h;H=t.g;G=t.w;Z=t.d;D=t.e},function(t){I=t.c;R=t.g;q=t.a;Q=t.b;V=t.d;U=t.e;X=t.f;J=t.h;K=t.i;W=t.j;$=t.t},function(t){tt=t.g;et=t.n;it=t.a;rt=t.b;nt=t.c;ot=t.d;st=t.e;at=t.f;ct=t.S;lt=t.N;pt=t.P;ut=t.K},function(t){dt=t.T;ft=t.O;ht=t.M},function(t){mt=t.a;vt=t.b;gt=t.c},function(t){wt=t.C}],execute:function(){var bt='<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 kt='<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 xt=".common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}";var yt=xt;var At=t("grw_common_button",function(){function t(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;return i(r,{key:"75c00d1d6355bfe164a96b8833e648cb1382986b",style:{"--font-family":this.fontFamily}},i("button",{key:"aeba6123a03f4226f9704c5f77d8968ed6002a80",part:"common-button",class:"common-button",onClick:function(){return t.action()}},i("span",{key:"78eac7ec8fc244bf0b640074670f35224136dddf",part:"common-button-icon",class:"icon",innerHTML:this.icon==="refresh"?bt:kt}),i("span",{key:"248b06ddd2cdd1d9ded5848670cb2eac816b6c30",part:"common-button-label",class:"label"},this.name)))};return t}());At.style=yt;var _t='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm0 160q17 0 28.5-11.5T360-480q0-17-11.5-28.5T320-520q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440Zm0 160q17 0 28.5-11.5T360-320q0-17-11.5-28.5T320-360q-17 0-28.5 11.5T280-320q0 17 11.5 28.5T320-280ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h440l200 200v440q0 33-23.5 56.5T760-120H200Zm0-80h560v-400H600v-160H200v560Zm0-560v160-160 560-560Z"/></svg>';var zt='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m600-120-240-84-186 72q-20 8-37-4.5T120-170v-560q0-13 7.5-23t20.5-15l212-72 240 84 186-72q20-8 37 4.5t17 33.5v560q0 13-7.5 23T812-192l-212 72Zm-40-98v-468l-160-56v468l160 56Zm80 0 120-40v-474l-120 46v468Zm-440-10 120-46v-468l-120 40v474Zm440-458v468-468Zm-320-56v468-468Z"/></svg>';var Lt='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M280-600v-80h560v80H280Zm0 160v-80h560v80H280Zm0 160v-80h560v80H280ZM160-600q-17 0-28.5-11.5T120-640q0-17 11.5-28.5T160-680q17 0 28.5 11.5T200-640q0 17-11.5 28.5T160-600Zm0 160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520q17 0 28.5 11.5T200-480q0 17-11.5 28.5T160-440Zm0 160q-17 0-28.5-11.5T120-320q0-17 11.5-28.5T160-360q17 0 28.5 11.5T200-320q0 17-11.5 28.5T160-280Z"/></svg>';var Mt=".map-visibility-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;text-decoration:none;padding:16px;background-color:var(--fab-background-color);color:var(--fab-color);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border-radius:var(--border-radius, 12px);height:56px;font-family:var(--font-family);font-size:16px;width:unset}.map-visibility-button:hover{-webkit-box-shadow:var(--elevation-4);box-shadow:var(--elevation-4)}.map-visibility-button .icon{display:-ms-flexbox;display:flex;margin-right:8px;color:var(--fab-color)}";var Ct=Mt;var Bt=t("grw_extended_fab",function(){function t(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}t.prototype.render=function(){var t=this;var e=this.icon();return i(r,{key:"7474c22931fa6d143b914124d662030d2a233ee0",style:{"--font-family":this.fontFamily}},i("button",{key:"08b6fa90f4cb61eceade8b480729969cd8a1bec8",part:"map-visibility-button",class:"map-visibility-button",onClick:function(){return t.action()},style:{display:this.display}},i("span",{key:"5a27e2aa43c2c02aaa8c4d66aa69db79693c8205",part:"map-visibility-button-icon",class:"icon",innerHTML:e==="Summarize"?_t:e==="map"?zt:Lt}),i("span",{key:"13524be33bae65509da1b406aef9e0f968eb8586",part:"map-visibility-button-label",class:"label"},this.name())))};return t}());Bt.style=Ct;var Pt='.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 Ft=Pt;var Tt=t("grw_filters",function(){function t(t){e(this,t);this.resetFilter=n(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}t.prototype.handleEraseTreksFilters=function(){c.forEach((function(t){l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;l.currentTreks=p();this.resetFilter.emit()};t.prototype.handleOkTreksFilters=function(){this.handleFilters()};t.prototype.handleSelectedSegment=function(t){this.selectedSegment=t};t.prototype.handleSegment=function(t){if(l.mode==="treks"){return c.filter((function(e){return e.segment===t})).some((function(t){return l[t.property]&&l[t.property].length>0}))}else if(l.mode==="touristicContents"){return u.filter((function(e){return e.segment===t})).some((function(t){return l[t.property]&&l[t.property].length>0}))}else if(l.mode==="touristicEvents"){return d.filter((function(e){return e.segment===t})).some((function(t){return l[t.property]&&l[t.property].length>0}))}else if(l.mode==="outdoor"){return f.filter((function(e){return e.segment===t})).some((function(t){return l[t.property]&&l[t.property].length>0}))}};t.prototype.handleEraseTouristicContentsFilters=function(){u.forEach((function(t){l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicContents=h();this.resetFilter.emit()};t.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};t.prototype.handleEraseTouristicEventsFilters=function(){d.forEach((function(t){l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentTouristicEvents=m();this.resetFilter.emit()};t.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};t.prototype.handleEraseOutdoorSitesFilters=function(){f.forEach((function(t){l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedLocationFilters=0;l.currentOutdoorSites=v();this.resetFilter.emit()};t.prototype.handleOkOutdoorSitesFilters=function(){this.handleFilters()};t.prototype.render=function(){var t=this;return i(r,{key:"8319f0b1047c6f2c8cb89e7c9fffd2a23dbf2f53",style:{"--font-family":this.fontFamily}},i("div",{key:"0f1e294677dc05332434eafce7740ae3d0060fe4",part:"options-container",class:"options-container"},i("div",{key:"5fa03c9a081ad337a1a7b61a0f6e6eefcd034e23",part:"filters-container",class:"filters-container"},l.mode==="treks"&&i("div",{part:"filters-treks-container",class:"filters-treks-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},l.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(l.treksWithinBounds.length," ").concat(l.treksWithinBounds.length>1?a[l.language].treks:a[l.language].trek)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTreksFilters()}},a[l.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTreksFilters()}},a[l.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},a[l.language].home.segment.treks," ",l.selectedActivitiesFilters!==0&&"(".concat(l.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},a[l.language].themes," ",l.selectedThemesFilters!==0&&"(".concat(l.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},a[l.language].location," ",l.selectedLocationFilters!==0&&"(".concat(l.selectedLocationFilters,")"))),i("div",{part:"filters-segment-container",class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-activities-segment-container"},l["practices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderPractices})),l["difficulties"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderDifficulties})),l["durations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderDurations})),l["lengths"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderLengths})),l["elevations"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderElevations})),l["routes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderRoutes})),l["accessibilities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderAccessibilities})),l["labels"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].themes,filterPlaceholder:a[l.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"treks-location-segment-container"},l["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:a[l.language].placeholderDistricts})),l["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].crossedCities,filterPlaceholder:a[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicContents"&&i("div",{part:"filters-touristic-contents-container",class:"filters-touristic-contents-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},l.touristicContentsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(l.touristicContentsWithinBounds.length," ").concat(l.touristicContentsWithinBounds.length>1?a[l.language].home.touristicContents:a[l.language].home.touristicContent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicContentsFilters()}},a[l.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicContentsFilters()}},a[l.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},a[l.language].services," ",l.selectedActivitiesFilters!==0&&"(".concat(l.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},a[l.language].location," ",l.selectedLocationFilters!==0&&"(".concat(l.selectedLocationFilters,")"))),i("div",{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"},l["touristicContentCategories"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderCategories}))),this.selectedSegment==="selectedLocationFilters"&&i("div",{part:"segment-container",class:"segment-container",key:"touristic-contents-location-segment-container"},l["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:a[l.language].placeholderDistricts})),l["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].crossedCities,filterPlaceholder:a[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="touristicEvents"&&i("div",{part:"filters-touristic-events-container",class:"filters-touristic-events-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},l.touristicEventsWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(l.touristicEventsWithinBounds.length," ").concat(l.touristicEventsWithinBounds.length>1?a[l.language].home.touristicEvents:a[l.language].home.touristicEvent)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseTouristicEventsFilters()}},a[l.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkTouristicEventsFilters()}},a[l.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},a[l.language].services," ",l.selectedActivitiesFilters!==0&&"(".concat(l.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},a[l.language].location," ",l.selectedLocationFilters!==0&&"(".concat(l.selectedLocationFilters,")"))),i("div",{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"},l["touristicEventTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].type,filterPlaceholder:a[l.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"},l["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:a[l.language].placeholderDistricts})),l["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].crossedCities,filterPlaceholder:a[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),l.mode==="outdoor"&&i("div",{part:"filters-outdoor-sites-container",class:"filters-outdoor-sites-container"},i("div",{part:"filters-options-container",class:"filters-options-container"},l.outdoorSitesWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(l.outdoorSitesWithinBounds.length," ").concat(l.outdoorSitesWithinBounds.length>1?a[l.language].home.outdoorSites:a[l.language].home.outdoorSite)),i("div",{part:"filters-options-buttons-container",class:"filters-options-buttons-container"},i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleEraseOutdoorSitesFilters()}},a[l.language].erase),i("button",{part:"filter-option-button",class:"filter-option-button",onClick:function(){return t.handleOkOutdoorSitesFilters()}},a[l.language].ok))),i("div",{part:"segmented-buttons-container",class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedActivitiesFilters")}},a[l.language].home.segment.outdoorSites," ",l.selectedActivitiesFilters!==0&&"(".concat(l.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedThemesFilters")}},a[l.language].themes," ",l.selectedThemesFilters!==0&&"(".concat(l.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&i("label",{part:"segment",class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return t.handleSelectedSegment("selectedLocationFilters")}},a[l.language].location," ",l.selectedLocationFilters!==0&&"(".concat(l.selectedLocationFilters,")"))),i("div",{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"},l["outdoorPractices"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].practice,filterPlaceholder:a[l.language].placeholderPractices,filterType:"outdoorPractices",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),l["outdoorSiteTypes"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].activities,filterType:"outdoorSiteTypes",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:a[l.language].placeholderActivities}))),this.selectedSegment==="selectedThemesFilters"&&i("div",{part:"filter-container",class:"segment-container",key:"treks-themes-segment-container"},l["themes"].length>0&&i("div",{part:"",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].themes,filterPlaceholder:a[l.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"},l["districts"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters",filterPlaceholder:a[l.language].placeholderDistricts})),l["cities"].length>0&&i("div",{part:"filter-container",class:"filter-container"},i("grw-filter",{exportparts:"filter-name,filter-button-container,filter-select,filter-button,elected-filter-icon,filter-label",fontFamily:this.fontFamily,filterName:a[l.language].crossedCities,filterPlaceholder:a[l.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),i("div",{key:"e321af3fe889643fbeebdf98b795b45bee577e99",part:"back-filters-container",class:"back-filters-container",onClick:function(){return t.handleFilters()}})))};return t}());Tt.style=Ft;var Ot=".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 Et=Ot;var jt=t("grw_loader",function(){function t(t){e(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}t.prototype.render=function(){return i(r,{key:"8cd022c14d3042ec3aa810280591403200618e27",style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},i("span",{key:"46787d8eebe717ddf59f632c375a2e3260fbba1a",part:"loader",class:"loader"}))};return t}());jt.style=Et;!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){var t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(e,i,r,n,o){var s=i||new L.Point(0,0);if(!n)return i=s._round(),t.setTransform.apply(this,arguments);s=s.rotateFrom(n,o),e.style[L.DomUtil.TRANSFORM]="translate3d("+s.x+"px,"+s.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(e,i,r,n,o){if(!r)return t.setPosition.apply(this,arguments);e._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(e,i,o,r,n):(e.style.left=i.x+"px",e.style.top=i.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,e){if(!t)return this;var i=Math.sin(t),r=Math.cos(t),n=e.x,o=e.y,s=this.x-n,a=this.y-o;return new L.Point(s*r-a*i+n,s*i+a*r+o)}});var e=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(e.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(e._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(t))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var e=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(e))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,r=this._containerWidth,n=new L.Point(this._containerLeft,-i-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var o=n._add(this._map._getMapPanePos()),s=L.point(this.options.autoPanPadding),a=L.point(this.options.autoPanPaddingTopLeft||s),c=L.point(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),p=0,u=0;o.x+r+c.x>l.x&&(p=o.x+r-l.x+c.x),o.x-p-a.x<0&&(p=o.x-a.x),o.y+i+c.y>l.y&&(u=o.y+i-l.y+c.y),o.y-u-a.y<0&&(u=o.y-a.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,e){var i=this.options,r=i[e+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),o=L.point("shadow"===e&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});var n=L.extend({},L.Marker.prototype);var o;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var s={_onDrag:function(t){var e=this._marker,i=e.options.rotation||e.options.rotateWithView,r=e._shadow,n=L.DomUtil.getPosition(e._icon);!i&&r&&L.DomUtil.setPosition(r,n),e._map._rotate&&(n=e._map.mapPanePointToRotatedPoint(n));var o=e._map.layerPointToLatLng(n);e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,i?e.setLatLng(o):e.fire("move",t),e.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),o._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(o=o||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:s._onDrag.bind(this.dragging),_onDragEnd:s._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var e=this.options.rotation||0;this.options.rotateWithView&&(e+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,e,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,e,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});var a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=a.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});var c=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(c.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){c.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(t,e){if(!this._map._rotate)return c._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(e,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,e,t);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return c._update.apply(this,arguments);this._bounds=this._map._getPaddedPixelBounds(this.options.padding),this._topLeft=this._map.layerPointToLatLng(this._bounds.min),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}});var l=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,e){e.rotate&&(this._rotate=!0,this._bearing=0),l.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):l.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):l.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&l.mapBoundsToContainerBounds)return l.mapBoundsToContainerBounds.apply(this,arguments);var e=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(e)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(e)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(e)),o=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(e));return L.bounds([L.point(Math.min(i.x,r.x,o.x,n.x),Math.min(i.y,r.y,o.y,n.y)),L.point(Math.max(i.x,r.x,o.x,n.x),Math.max(i.y,r.y,o.y,n.y))])},getBounds:function(){if(!this._rotate)return l.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var e=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(e,i);L.DomUtil.setPosition(this._rotatePane,r,e,i),this._pivot=i,this._bearing=e,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside:function(t,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return l.panInside.apply(this,arguments);e=e||{};var i=L.point(e.paddingTopLeft||e.padding||[0,0]),r=L.point(e.paddingBottomRight||e.padding||[0,0]),n=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(t),s=L.bounds([L.point(n),L.point(n).add(this.getSize())]),a=s.getCenter(),c=L.bounds([s.min.add(i),s.max.subtract(r)]),p=c.getSize();if(!c.contains(o)){this._enforcingBounds=!0;var u=o.subtract(c.getCenter()),d=c.extend(o).getSize().subtract(p);a.x+=u.x<0?-d.x:d.x,a.y+=u.y<0?-d.y:d.y,this.panTo(this.containerPointToLatLng(a),e),this._enforcingBounds=!1}return this},getBoundsZoom:function(t,e,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return l.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),i=L.point(i||[0,0]);var r=this.getZoom()||0;var n=this.getMinZoom(),o=this.getMaxZoom(),s=this.getSize().subtract(i),a=this.mapBoundsToContainerBounds(t).getSize(),c=this.options.zoomSnap,p=s.x/a.x,u=s.y/a.y,d=e?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),c&&(r=Math.round(r/(c/100))*(c/100),r=e?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(n,Math.min(o,r))},_getCenterOffset:function(t){var e=l._getCenterOffset.apply(this,arguments);return this._rotate&&(e=e.rotate(this._bearing)),e},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,e){if(!this._rotate)return l._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(t,e).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,e){if(t=t||this.getCenter(),e=e||this.getZoom(),!this._rotate&&l._getNewPixelBounds)return l._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,e),n=this.project(t,e).floor(),o=this.getSize(),s=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([o.x,0]).floor(),this.containerPointToLayerPoint([0,o.y]).floor(),this.containerPointToLayerPoint([o.x,o.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(s),n.add(s))},_getPixelCenter:function(){return!this._rotate&&l._getPixelCenter?l._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&l._getPaddedPixelBounds)return l._getPaddedPixelBounds.apply(this,arguments);var e=t,i=this.getSize(),r=i.multiplyBy(-e),n=i.multiplyBy(1+e);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(e,i),o=n.toBounds(t.coords.accuracy),s=this._locateOptions;if(s.setView){var a=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(a,s.maxZoom):a)}var c={latlng:n,bounds:o,timestamp:t.timestamp,heading:r};for(var l in t.coords)"number"==typeof t.coords[l]&&(c[l]=t.coords[l]);this.fire("locationfound",c)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var e=t.webkitCompassHeading||t.alpha,i=0;!t.absolute&&t.webkitCompassHeading&&(e=360-e),t.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(e-i)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming&&!this._rotating){var i=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),n=i.subtract(r);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=e.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=e.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,e._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var e,i=this._map,r=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]),o=r.subtract(n),s=r.distanceTo(n)/this._startDist;if(this._rotating){var a=(Math.atan(o.x/o.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;o.y<0&&(a+=180),a&&i.setBearing(this._startBearing-a)}if(this._zooming)if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{if(e=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===s&&0===e.x&&0===e.y)return;var c=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(e.rotate(c)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var l=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(l,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var e=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),i=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");i.style.backgroundImage="url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\")",i.style.cursor="grab",i.style.display="block",i.style.width="100%",i.style.height="100%",i.style.backgroundRepeat="no-repeat",i.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",e);return r.appendChild(i),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(e.style.display="none"),e},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var e=t.clientX-this.dragstartX;this._map.setBearing(e)}},_cycleState:function(t){if(this._map){var e=this._map;e.touchRotate.enabled()||e.compassBearing.enabled()?e.compassBearing.enabled()?(e.compassBearing.disable(),e.setBearing(0),this.options.closeOnZeroBearing&&e.touchRotate.enable()):(e.touchRotate.disable(),e.compassBearing.enable()):e.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,e=t.getBearing();this._arrow.style.transform="rotate("+e+"deg)",e&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===e&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));var Yt={exports:{}};
|
|
2
|
-
/*!
|
|
3
|
-
Copyright (c) 2016 Dominik Moritz
|
|
4
|
-
|
|
5
|
-
This file is part of the leaflet locate control. It is licensed under the MIT license.
|
|
6
|
-
You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
|
|
7
|
-
*/(function(t,e){(function(e,i){{if(typeof i!=="undefined"&&i.L){t.exports=e(L)}else{t.exports=e(O.exports)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=e(L)}})((function(t){var e=function(e,i,r){r=r.split(" ");r.forEach((function(r){t.DomUtil[e].call(this,i,r)}))};var i=function(t,i){return e("addClass",t,i)};var r=function(t,i){return e("removeClass",t,i)};var n=t.Marker.extend({initialize:function(e,i){t.Util.setOptions(this,i);this._latlng=e;this.createIcon()},createIcon:function(){var e=this.options;var i="";if(e.color!==undefined){i+="stroke:".concat(e.color,";")}if(e.weight!==undefined){i+="stroke-width:".concat(e.weight,";")}if(e.fillColor!==undefined){i+="fill:".concat(e.fillColor,";")}if(e.fillOpacity!==undefined){i+="fill-opacity:".concat(e.fillOpacity,";")}if(e.opacity!==undefined){i+="opacity:".concat(e.opacity,";")}var r=this._getIconSVG(e,i);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(t,e){var i=t.radius;var r=t.weight;var n=i+r;var o=n*2;var s='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(o,'" height="').concat(o,'" version="1.1" viewBox="-').concat(n," -").concat(n," ").concat(o," ").concat(o,'">')+'<circle r="'+i+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:s,w:o,h:o}},setStyle:function(e){t.Util.setOptions(this,e);this.createIcon()}});var o=n.extend({initialize:function(e,i,r){t.Util.setOptions(this,r);this._latlng=e;this._heading=i;this.createIcon()},setHeading:function(t){this._heading=t},_getIconSVG:function(t,e){var i=t.radius;var r=t.width+t.weight;var n=(i+t.depth+t.weight)*2;var o="M0,0 l".concat(t.width/2,",").concat(t.depth," l-").concat(r,",0 z");var s="transform: rotate(".concat(this._heading,"deg)");var a='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(r,'" height="').concat(n,'" version="1.1" viewBox="-').concat(r/2," 0 ").concat(r," ").concat(n,'" style="').concat(s,'">')+'<path d="'+o+'" style="'+e+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});var s=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:o,circleStyle:{className:"leaflet-control-locate-circle",color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:0},markerStyle:{className:"leaflet-control-locate-marker",color:"#fff",fillColor:"#2A93EE",fillOpacity:1,weight:3,opacity:1,radius:9},compassStyle:{fillColor:"#2A93EE",fillOpacity:1,weight:0,color:"#fff",opacity:1,radius:9,width:9,depth:6},followCircleStyle:{},followMarkerStyle:{},followCompassStyle:{},icon:"leaflet-control-locate-location-arrow",iconLoading:"leaflet-control-locate-spinner",iconElementTag:"span",textElementTag:"small",circlePadding:[0,0],metric:true,createButtonCallback:function(e,i){var r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=t.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var o=t.DomUtil.create(i.textElementTag,"leaflet-locate-text",r);o.textContent=i.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(i.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError:function(t,e){alert(t.message)},onLocationOutsideMapBounds:function(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize:function(e){for(var i in e){if(typeof this.options[i]==="object"){t.extend(this.options[i],e[i])}else{this.options[i]=e[i]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(e){var i=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=e;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(e);this._event=undefined;this._compassHeading=null;this._prevBounds=null;var r=this.options.createButtonCallback(i,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(e){t.DomEvent.stopPropagation(e);t.DomEvent.preventDefault(e);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var e=this.options.clickBehavior;var i=e.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=t?e.inView:e.inViewNotFollowing}if(e[i]){i=e[i]}switch(i){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){var r=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;r.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start:function(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop:function(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing:function(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate:function(){if(this._active||!this._map){return}this._map.locate(this.options.locateOptions);this._map.fire("locateactivate",this);this._active=true;this._map.on("locationfound",this._onLocationFound,this);this._map.on("locationerror",this._onLocationError,this);this._map.on("dragstart",this._onDrag,this);this._map.on("zoomstart",this._onZoom,this);this._map.on("zoomend",this._onZoomEnd,this);if(this.options.showCompass){var e="ondeviceorientationabsolute"in window;if(e||"ondeviceorientation"in window){var i=this;var r=function(){t.DomEvent.on(window,e?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate:function(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView:function(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var e=this.options.flyTo?this._map.flyTo:this._map.setView;e.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var e=this.options.flyTo?this._map.flyTo:this._map.panTo;e.bind(this._map)([this._event.latitude,this._event.longitude])}else{var e=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;e.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){var e=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,e).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(e)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker:function(){if(this._event.accuracy===undefined){this._event.accuracy=0}var e=this._event.accuracy;var i=this._event.latlng;if(this.options.drawCircle){var r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(i,e,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(e).setStyle(r)}}var n;var o;if(this.options.metric){n=e.toFixed(0);o=this.options.strings.metersUnit}else{n=(e*3.2808399).toFixed(0);o=this.options.strings.feetUnit}if(this.options.drawMarker){var s=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(i,s).addTo(this._layer)}else{this._marker.setLatLng(i);if(this._marker.setStyle){this._marker.setStyle(s)}}}this._drawCompass();var a=this.options.strings.popup;function c(){if(typeof a==="string"){return t.Util.template(a,{distance:n,unit:o})}else if(typeof a==="function"){return a({distance:n,unit:o})}else{return a}}if(this.options.showPopup&&a&&this._marker){this._marker.bindPopup(c())._popup.setLatLng(i)}if(this.options.showPopup&&a&&this._compass){this._compass.bindPopup(c())._popup.setLatLng(i)}},_removeMarker:function(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload:function(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading:function(e){if(!isNaN(parseFloat(e))&&isFinite(e)){e=Math.round(e);this._compassHeading=e;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError:function(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound:function(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag:function(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom:function(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd:function(){if(this._event){this._drawCompass()}if(this._event&&!this._ignoreEvent){if(this._marker&&!this._map.getBounds().pad(-.3).contains(this._marker.getLatLng())){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}}},_isFollowing:function(){if(!this._active){return false}if(this.options.setView==="always"){return true}else if(this.options.setView==="untilPan"){return!this._userPanned}else if(this.options.setView==="untilPanOrZoom"){return!this._userPanned&&!this._userZoomed}},_isOutsideMapBounds:function(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle:function(){if(!this._container){return}if(this._active&&!this._event){this._setClasses("requesting")}else if(this._isFollowing()){this._setClasses("following")}else if(this._active){this._setClasses("active")}else{this._cleanClasses()}},_setClasses:function(t){if(t=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)},_resetVariables:function(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=function(e){return new t.Control.Locate(e)};return s}),window)})(Yt);var Nt={exports:{}};(function(t,e){(function(e,i){{t.exports=e(O.exports)}if(typeof i!=="undefined"&&i.L){e(i.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function e(i,r){t.locales[i]=t.Util.extend({},t.locales[i],r)};t.setLocale=function e(i){t.locale=i};return t.i18n=t._=function e(i,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][i]!=="undefined"){i=t.locales[t.locale][i]}try{i=t.Util.template(i,r)}catch(t){}return i}}),window)})(Nt);var St={exports:{}};(function(t,e){!function(t){t()}((function(){!function(e,i){t.exports=e(O.exports),void 0!==i&&i.L&&e(i.L)}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,i){t.locales[e]=t.Util.extend({},t.locales[e],i)},t.setLocale=function(e){t.locale=e},t.i18n=t._=function(e,i){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,i)}catch(t){}return e}}),window);var e=6e4,i=60*e,r=24*i;function n(t){var n=Math.floor(t/r),o=Math.floor((t-n*r)/i),s=Math.floor((t-n*r-o*i)/e),a=Math.round((t-n*r-o*i-s*e)/1e3);return 60===a&&(s++,a=0),60===s&&(o++,s=0),24===o&&(n++,o=0),(n?n+"d ":"")+o.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'}function o(t,e){var i=v("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function s(t,e,i){return!1===e?Promise.resolve():i instanceof Promise?i:new Promise((function(e,i){var r=document.createElement("script");r.addEventListener("load",e,{once:!0}),r.src=t,document.head.appendChild(r)}))}function a(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath()}function c(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}))}function p(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}))}function u(t,e,i){return(i?l:p).call(null,t,e)}function d(t,e,i){e&&p(t,e),i&&l(t,i)}function f(t,e,i){return void 0===i?L.DomUtil.getStyle(t,e):t.style.setProperty(e,i)}function h(t,e,i,r){return f(t,e,r?i:"")}function m(t,e,i,r){return t[r?"on":"off"](e,i)}function v(t,e,i,r){var n=L.DomUtil.create(t,e||"");return i&&b(n,i),r&&g(r,n),n}function g(t,e){return t.appendChild(e)}function w(t,e,i){return t.insertAdjacentElement(i,e)}function b(t,e){for(var i in e)t.setAttribute(i,e[i])}function k(t,e){return(e||document).querySelector(t)}var x=L.DomEvent.on,y=L.DomEvent.off,A=L.DomUtil.hasClass;function _(){return Math.random().toString(36).substr(2,9)}function z(t,e){for(var i in t)e(t[i],i)}var M=Object.freeze({__proto__:null,formatTime:n,saveFile:o,lazyLoader:s,drawCanvas:a,clamp:c,addClass:l,removeClass:p,toggleClass:u,replaceClass:d,style:f,toggleStyle:h,toggleEvent:m,create:v,append:g,insert:w,setAttributes:b,select:k,on:x,off:y,hasClass:A,randomId:_,each:z}),C={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"}},B=function(t){var e=t.height,i=t.xAttr,r=t.yAttr,n=t.scaleX,o=t.scaleY,s=t.interpolation,a=void 0===s?"curveLinear":s;return d3.area().curve("string"==typeof a?d3[a]:a).x((function(t){return t.xDiagCoord=n(t[i])})).y0(e).y1((function(t){return o(t[r])}))},P=function(t){var e=t.name,i=t.color,r=t.strokeColor,n=t.strokeOpacity,o=t.fillOpacity,s=d3.create("svg:path");return e&&s.classed(e,!0),s.style("pointer-events","none"),s.attr("fill",i||"#3366CC").attr("stroke",r||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",o||"0.8"),s},F=function(t){var e=t.type,i=void 0===e?"axis":e,r=t.tickSize,n=void 0===r?6:r,o=t.tickPadding,s=void 0===o?3:o,a=t.position,c=t.height,l=t.width,p=t.axis,u=t.scale,d=t.ticks,f=t.tickFormat,h=t.label,m=t.labelX,v=t.labelY,g=t.name,w=void 0===g?"":g,b=t.onAxisMount;return function(t){var e=0,r=0;"bottom"==a&&(r=c),"right"==a&&(e=l),"x"==p&&"grid"==i?n=-c:"y"==p&&"grid"==i&&(n=-l);var o=d3["axis"+a.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(u).ticks(d).tickPadding(s).tickSize(n).tickFormat(f),g=t.append("g").attr("class",[p,i,a,w].join(" ")).attr("transform","translate("+e+","+r+")").call(o);return h&&g.append("svg:text").attr("x",m).attr("y",v).text(h),b&&g.call(b),g}},T=function(t){return t.type="grid",F(t)},E=function(t){var e=t.theme,i=t.xCoord,r=void 0===i?0:i,n=t.yCoord,o=void 0===n?0:n,s=t.labels,a=void 0===s?{}:s,c=t.item,l=void 0===c?{}:c,p=t.length,u=void 0===p?0:p;return function(t){t.attr("class","height-focus-group");var i,n=t.select(".height-focus.line"),s=t.select(".height-focus.circle-lower"),c=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),s.node()||(s=t.append("svg:circle")),c.node()||(c=t.append("svg:text")),isNaN(r)||isNaN(o)||(s.attr("class",e+" height-focus circle-lower").attr("transform","translate("+r+","+o+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",r).attr("x2",r).attr("y1",o).attr("y2",u),c.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",r+5).attr("y",u),Object.keys(a).sort((function(t,e){return a[t].order-a[e].order})).forEach((function(t){(i=c.select(".height-focus-"+a[t].name)).size()||(i=c.append("svg:tspan").attr("class","height-focus-"+a[t].name).attr("dy","1.5em")),i.text("function"!=typeof a[t].value?a[t].value:a[t].value(l))})),c.select("tspan").attr("dy",c.selectAll("tspan").size()>1?"-1.5em":"0em"),c.selectAll("tspan").attr("x",r+5)),t}},j=function(t){var e=t.name,i=t.label,r=t.width,n=t.height,o=t.margins,s=void 0===o?{}:o,a=t.color,c=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:c.node(),name:e,legend:t.node(),enabled:!c.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",r/2-50).attr("y",n+s.bottom/2).attr("width",50).attr("height",10).attr("fill",a).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(i||e)).attr("x",r/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+s.bottom/2).attr("dy","0.75em"),t}},Y=function(t){var e=t.xCoord,i=t.yCoord,r=t.width,n=t.height,o=t.labels,s=void 0===o?{}:o,a=t.item,c=void 0===a?{}:a;return function(t){var o=t.select(".mouse-focus-line"),a=t.select(".mouse-focus-label");o.node()||(o=t.append("svg:line")),a.node()||(a=t.append("g"));var l=a.select(".mouse-focus-label-rect"),p=a.select(".mouse-focus-label-text");l.node()||(l=a.append("svg:rect")),p.node()||(p=a.append("svg:text"));var u,d=0,f=0,h={width:0,height:0};try{h=p.node().getBBox()}catch(e){return t}return e&&(d=e+(e<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",e).attr("y2",0).attr("x1",e).attr("y1",n),a.attr("class","mouse-focus-label"),l.attr("class","mouse-focus-label-rect").attr("x",d-5).attr("y",f-5).attr("width",h.width+10).attr("height",h.height+10).attr("rx",3).attr("ry",3),p.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",f),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(u=p.select(".mouse-focus-label-"+s[t].name)).size()||(u=p.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+s[t].name).attr("dy","1.5em")),u.text("function"!=typeof s[t].value?s[t].value:s[t].value(c))})),p.select("tspan").attr("dy","1em"),p.selectAll("tspan").attr("x",d),t}},N=function(t){var e=t.height,i=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}));var r=t.selectAll(".horizontal-drag-rect").data([{w:i}]),n=t.selectAll(".horizontal-drag-line").data([{w:i}]),o=t.selectAll(".horizontal-drag-label").data([{w:i-8}]),s=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:i+7,y:0,angle:-90,size:50}]);return r.exit().remove(),n.exit().remove(),o.exit().remove(),s.exit().remove(),r.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(r).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),o.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(o).attr("x",(function(t){return t.w})),s.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(s).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return"translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},S=function(t){var e=t.point,i=t.height,r=t.width,n=t.x,o=t.y;return function(t){return isNaN(n)||isNaN(o)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:o}).attr("class",(function(t){return"point "+t.pos})).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-o,bottom:i-o}[e.position],x2:{left:-n,right:r-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},H=function(t){var e=t.min,i=t.max,r=t.attr,n=t.name,o=t.forceBounds,s=t.scale;return function(t){r=r||n,s&&s.attr&&(r=s.attr);var a=t&&t.length?d3.extent(t,(function(t){return t[r]})):[0,1];return void 0!==e&&(e<a[0]||o)&&(a[0]=e),void 0!==i&&(i>a[1]||o)&&(a[1]=i),a}},G=function(t){var e=t.axis;return function(t,i){return"x"==e?[0,t]:"y"==e?[i,0]:void 0}},Z=function(t){var e=t.data,i=t.attr,r=t.min,n=t.max,o=t.forceBounds,s=t.range;return d3.scaleLinear().range(s).domain(H({min:r,max:n,attr:i,forceBounds:o})(e))},D=function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,o=e-n.left-n.right,s=i-n.top-n.bottom,a=d3.create("svg:svg").attr("class","background"),c=a.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")},p=l.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),u=p.append("svg:rect").attr("class","zoom").attr("fill","white"),d=l.area.append("svg:foreignObject").attr("mask","url(#"+p.attr("id")+")"),f=d.append("xhtml:canvas").attr("class","canvas-plot"),h=f.node().getContext("2d");l.tooltip.call(Y({xCoord:0,yCoord:0,height:s,width:o,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return l.brush.select(".overlay").attr("cursor",null)})),v={mask:p,canvas:f,context:h,brush:m},g={svg:a,g:c,panes:l,utils:v,scale:function(t){return{x:Z(t.x),y:Z(t.y)}},_resize:function(t){var e=t.width,i=t.height,r=t.margins,n=void 0===r?{}:r,o=t.ruler,s=e-n.left-n.right,p=i-n.top-n.bottom;a.attr("viewBox","0 0 ".concat(e," ").concat(i)).attr("width",e).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",s).attr("height",p),d.attr("width",s).attr("height",p),f.attr("width",s).attr("height",p),o&&l.ruler.call(N({height:p,width:s})),l.brush.call(m.extent([[0,0],[s,p]])),l.brush.select(".overlay").attr("cursor",null),g._width=s,g._height=p,g.svg.dispatch("resize",{detail:{width:s,height:p}})},pane:function(t){return l[t]||(l[t]=c.append("g").attr("class",t)),l[t]},get:function(t){return v[t]}};return g._resize({width:e,height:i,margins:n}),g},I=Object.freeze({__proto__:null,Colors:C,Area:B,Path:P,Axis:F,Grid:T,PositionMarker:E,LegendItem:j,Tooltip:Y,Ruler:N,CheckPoint:S,Domain:H,Range:G,Scale:Z,Bisect:function(t){var e=t.data,i=void 0===e?[0,1]:e,r=t.scale,n=t.x,o=t.attr;return d3.bisector((function(t){return t[o]})).left(i,r.invert(n))},Chart:D}),R=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var i=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var r=this._chart=D(t);this._container=r.svg;this._grid=r.pane("grid"),this._area=r.pane("area"),this._point=r.pane("point"),this._axis=r.pane("axis"),this._legend=r.pane("legend"),this._tooltip=r.pane("tooltip"),this._ruler=r.pane("ruler"),this._initScale(),this._mask=r.get("mask"),this._context=r.get("context"),this._brush=r.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){i._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return i._maskGaps.push(t.index)}))}))},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove()},_drawPath:function(t){var e=this._paths[t],i=this._props.areas[t];e.datum(this._data).attr("d",B(L.extend({},i,{width:this._width(),height:this._height(),scaleX:this._scales[i.scaleX],scaleY:this._scales[i.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?a(this._context,e):this._area.append((function(){return e.node()})))},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return!0;return!1},_initBrush:function(t){var e=this,i=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var i=e._chart.panes.brush.select(".overlay").node(),r=d3.pointers(t,i)[0][0],n=e._data[e._findIndexForXCoord(r)];e.fire("mouse_move",{item:n,xCoord:r})}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var i=t.selection;if(i){var r=e._findIndexForXCoord(i[0]),n=e._findIndexForXCoord(i[1]);e.fire("dragged",{dragstart:e._data[r],dragend:e._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 t=this,e=this._container,i=this.options.margins,r=this._zoom;r.scaleExtent([1,10]).extent([[i.left,0],[this._width()-i.right,this._height()]]).translateExtent([[i.left,-1/0],[this._width()-i.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(i){i.sourceEvent&&"mousedown"==i.sourceEvent.type&&e.style("cursor","grabbing"),1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0})).on("end",(function(i){1==i.transform.k&&0==i.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","")})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom")})),e.call(r)},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend()},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var i=e.detail,r=i.path,n=i.legend,o=i.name,s=i.enabled;if(r){var a=k("text",n),c=k("rect",n);h(a,"text-decoration-line","line-through",s),h(c,"fill-opacity","0",s),u(r,"leaflet-hidden",s),t._updateArea(),t.fire("elepath_toggle",{path:r,name:o,legend:n,enabled:s})}}))},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),i=this._drag;i.on("start end",(function(e,i){var r=t._height(),n=t._ruler.data()[0].y;(n>=r||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator()})).on("drag",(function(i,r){var n=t._height(),o=d3.pointers(i,t._area.node())[0][1],s=o>0?o<n?o:n:0,a=t._y.invert(s),c=L.extend(t._ruler.data()[0],{y:s});t._ruler.data([c]).attr("transform",(function(t){return"translate("+t.x+","+t.y+")"})).classed("active",s<n),t._container.select(".horizontal-drag-label").text(e(a)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:o<n&&o>0?t._findCoordsForY(o):[]})})),this._ruler.call(i)}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var i=P(t);this._paths[t.name]=i,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:i})},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,i=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof i){(i=L.extend({data:this._data,forceBounds:e.forceAxisBounds},i)).attr=i.attr||t.name;var r=this._domains[t.name]=H(t),n=this._ranges[t.name]=G(t);i.range=i.range||n(this._width(),this._height()),i.domain=i.domain||r(this._data),this._props.scales[t.name]=i,t.scale=this._scales[t.name]=Z(i)}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,i},_registerCheckPoint:function(t){var e,i,r;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],i=this._x(e.dist),r=this._y(e.z)):isNaN(t.dist)||(i=this._x(t.dist),e=this._data[this._findIndexForXCoord(i)],r=this._y(e.z)),this._point.call(S({point:t,width:this._width(),height:this._height(),x:i,y:r})))},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e)},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,i,r,n=this._props.grids,o=this._props.axes,s={width:this._width(),height:this._height(),tickFormat:""},a={width:this._width(),height:this._height()};for(var c in n)e=L.extend({},s,n[c]),r=T(e),this._grid.call(r);for(var l in o)!1!==t[l]&&"summary"!==t[l]&&(e=L.extend({},a,o[l]),i=F(e),this._axis.call(i));this._axis.selectAll(".y.axis.right").each((function(t,e,i){var r=d3.select(i[e]),n=r.attr("transform"),o=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");r.attr("transform","translate("+(+o[0]+40*e)+","+o[1]+")"),e>0&&(r.select(":scope > path").attr("opacity",.25),r.selectAll(":scope > .tick line").attr("opacity",.75))}))},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,i){if(!(i>=t._maskGaps.length-2)){var r=t._data[t._maskGaps[i]],n=t._data[t._maskGaps[i+1]],o=t._x(t._data[t._findIndexForLatLng(r.latlng)].dist),s=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",o).attr("y",0).attr("width",s-o).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black")}}))},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,i=this._props.legendItems;for(var r in this._legend.selectAll("g").remove(),i)e=j(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},i[r])),this._legend.append("g").call(e);var n=this._legend.selectAll(".legend-item"),o=n.nodes().length,s=Array(Math.floor(o/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(o%2))})),a=s.slice().reverse().map((function(t){return-t}));o%2!=0&&a.push(0),s=a.concat(s);var c=this._axis.selectAll(".x.axis.bottom").nodes().length,l=30+2*c,p=30*o;o&&this.options.margins.right<p&&(this.options.margins.right=p,this.fire("margins_updated")),c&&this.options.margins.bottom<l&&(this.options.margins.bottom=l,this.fire("margins_updated")),n.each((function(e,i,r){var n=d3.select(r[i]),o=(n.select("rect"),n.attr("data-name")),a=t._paths[o],l=55*s[i],p=2*c;n.attr("transform","translate("+l+", "+p+")"),o in t.options&&"disabled"==t.options[o]&&(a.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&a.attr("mask","url(#"+t._mask.attr("id")+")")}))}},_updateScale:function(){if(this.zooming)return{x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return{x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,i=this._data,r=this._y.invert(t),n=i.reduce((function(t,e,i){return e.z>=r&&t.push(i),t}),[]),o=0;return n.reduce((function(t,r,s){return n[e=s+1]===n[s]+1&&e!==n.length||(t.push(n.slice(o,e).map((function(t){return i[t].latlng}))),o=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,i=1/0;return this._data.forEach((function(r,n){var o=t.distanceTo(r.latlng);o<i&&(i=o,e=n)})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"))},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity)},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(Y({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}))},_hideDiagramIndicator:function(){this._tooltip.attr("display","none")}});function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Q,V=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1})}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(E({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"})}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(E({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}))}break;case"position-marker":p(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng)}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden")}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t}}),U=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},f(this._container=v("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"")},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML=""},append:function(t,e,i){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(i,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,i){return t.labels[e].order-t.labels[i].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info))}))},_registerSummary:function(t){for(var e in t){var i;t[e].order=null!==(i=t[e].order)&&void 0!==i?i:100,this.labels[e]=t[e]}}}),X={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},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(t,e){var i=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),i._addData(t),i._addLayer(e),i._fireEvt("eledata_added",{data:t,layer:e,track_info:i.track_info})}))},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||w(t.getContainer(),e,"afterend"),g(e,this.onAdd(t))}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers())},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){f(this._container,"display","none")},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=X.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=X.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(C,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:i="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":q(d3));break;case this.__TOGEOJSON:i="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":q(toGeoJSON));break;case this.__LGEOMUTIL:i="_geomutilLazyLoader",e="object"!==q(L.GeometryUtil);break;case this.__LALMOSTOVER:i="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers}return L.Control.Elevation[i]=s(t,e,L.Control.Elevation[i])},load:function(t){var e=this;this._parseFromString(t).then((function(i){return i?e._loadLayer(i):e._loadFile(t)}))},onAdd:function(t){var e=this;this._map=t;var i=this._container=v("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(i),e._initChart(i),e._initSummary(i),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary()})),i},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),y(t.getContainer(),"mousewheel",this._resetDrag,this),y(t.getContainer(),"touchstart",this._resetDrag,this),y(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this)},redraw:function(){this._resizeChart()},setZFollow:function(t){this.options.zFollow=t},show:function(){f(this._container,"display","block")},_addData:function(t){var e=this;if(t){var i=t.geometry;if(i)switch(i.type){case"LineString":this._addGeoJSONData(i.coordinates);break;case"MultiLineString":z(i.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}"FeatureCollection"===t.type&&z(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties)}},_addGeoJSONData:function(t,e){var i=this;t.forEach((function(t,r){var n,o,s,a,c;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var l=e&&e.coordinateProperties||e;i.fire("elepoint_init",{point:t,props:l,id:r}),i._addPoint(null!==(o=t.lat)&&void 0!==o?o:t[1],null!==(s=t.lng)&&void 0!==s?s:t[0],null!==(a=null!==(c=t.alt)&&void 0!==c?c:t.meta.ele)&&void 0!==a?a:t[2]),i.fire("elepoint_added",{point:t,index:i._data.length-1})})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint:function(t,e,i){if(this.options.reverseCoords){var r=[e,t];t=r[0],e=r[1]}this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}))},_addMarker:function(t){t&&this._markers.addLayer(t)},_initAlmostOverHandler:function(t,e){var i=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return i._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return i._mouseoutHandler(t)})))}))},_initDistanceMarkers:function(t,e){var i=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return i.lazyLoad(i.__LDISTANCEM)})).then((function(){return i.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t))},_initElevationDiv:function(){var t=k(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+_(),t=v("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var i=t._map;t._map?(i.once("layeradd",(function(i){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(i):(t._initAlmostOverHandler(i,e),t._initDistanceMarkers(i,e))):console.warn("Undefined elevation map object")},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed")},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded")},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(i,r){if(e._layers.hasLayer(r)){var n=e.options.theme.replace("-theme",""),o=C[n]||{},s=r.options;if(s.color=o.line||o.area||n,s.stroke=!!s.color,t.call(this,i,r),s.stroke&&0!==s.weight){var a=i.globalCompositeOperation||"source-over";i.globalCompositeOperation="destination-over",i.strokeStyle=o.outline||"#FFF",i.lineWidth=1.75*s.weight,i.stroke(),i.globalCompositeOperation=a}}else t.call(this,i,r)}})},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data)}))}))},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i)},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var i=this.eleDiv,r=i.offsetWidth,n=i.offsetHeight;r>0&&(e.width=r),n>20&&(e.height=n-20)}else{var o=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>o&&(e.width=o-30)}var s=this._chart=new R(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(s.render()),s.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init")},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var i=e.layer;u(i.getElement&&i.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),m(i,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),m(i,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type)}))},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new V(this.options),this.fire("elechart_marker")},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=v("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this))}},_initSummary:function(t){this._summary=new U({summary:this.options.summary},this),d3.select(t).call(this._summary.render())},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse()},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(i){e._downloadURL=t,e._parseFromString(i).then((function(t){return t&&e._loadLayer(t)}))})).catch((function(t){return console.warn(t)}))},_loadLayer:function(t){var e=this,i=e.options,r=i.wptIcons,n=i.wptLabels,o=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var i=L.extend({},e.options.polyline);return e.options.theme&&(i.className+=" "+e.options.theme),i},pointToLayer:function(t,i){var o,s,a;if(e.options.waypoints){var c=t.properties,l=null!==(o=c.desc)&&void 0!==o?o:"",p=null!==(s=c.name)&&void 0!==s?s:"",u=(null!==(a=c.sym)&&void 0!==a?a:p).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(n)?p:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=r){r.hasOwnProperty(u)||(r[u]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+u+'"></i>'})));var d=L.marker(i,{icon:r[u]});if([!0,"markers"].includes(n)&&(p||l)){var f=decodeURI("<b>"+p+"</b>"+(l.length>0?"<br>"+l:""));d.bindPopup(f,{className:"elevation-popup",keepInView:!0}).openPopup(),d.bindTooltip(f,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()}return e._addMarker(d),e.fire("waypoint_added",{point:d,element:i,properties:c}),d}}},onEachFeature:function(i,r){i.geometry&&"Point"!=i.geometry.type&&(e.addData(r),e.track_info=L.extend({},e.track_info,{name:t.name}))}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,o),e._fireEvt("eledata_loaded",{data:t,layer:o,name:e.track_info.name,track_info:e.track_info})})),o},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged")},_mouseenterHandler:function(t){this.fire("elechart_enter")},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var i=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:i}),this.fire("elechart_hover",{data:e,xCoord:i})}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var i=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,i),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:i})}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(i){return e.lazyLoad(e.__TOGEOJSON).then((function(){var r;try{r=e._parseFromXMLString(t.trim())}catch(i){r=e._parseFromGeoJSONString(t.toString())}r&&(r=e._prepareMultiLineStrings(r),r=e._prepareAdditionalProperties(r)),i(r)}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(t,"text/xml"),r=i.documentElement.tagName.toLowerCase(),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!==(e=Array.from(n).find((function(t){return"trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",o},_prepareAdditionalProperties:function(t){return!t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(i){t.features.push({geometry:{type:"LineString",coordinates:i},properties:e.properties,type:"Feature"})}))})),t.features.filter((function(t){return"MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}))},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}))},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}))},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}))},_registerDataAttribute:function(t){var e=this,i=null;t.init&&this.on("elepoint_init",(function(i){return t.init.call(e,i)})),this.on("elepoint_added",(function(r){if(!1===t.skipNull){var n=e._data[r.index][t.name];if(r.index>0){var o=e._data[r.index-1][t.name];if(isNaN(o)){if(isNaN(i)||isNaN(n)?isNaN(i)?isNaN(n)||(o=n):o=i:o=(i+n)/2,!isNaN(o))return e._data.splice(r.index-1,1);e._data[r.index-1][t.name]=o}}isNaN(n)||(i=n)}e._data[r.index][t.name]=t.fetch.call(e,r.index,r.point),t.update&&(e._data[r.index][t.name]=t.update.call(e,e._data[r.index][t.name],r.index,r.point))}))},_registerTooltip:function(t){var e=this;if(t.chart){var i=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(i)}))}if(t.marker){var r=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(r)}))}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=f(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else{var i=this._map.getContainer().clientWidth;t=e._maxWidth>i?i-30:e._maxWidth}if(t){var r=this._chart;e.width=t,r&&r._chart&&(r._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart())}this._updateMapSegments()}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords)},_toggle:function(){A(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25})}},_toggleChartHandler:function(t){var e=this,i=t.name,r=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return u(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_updateChart:function(){
|
|
8
|
-
/*!this._data.length ||*/
|
|
9
|
-
this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",k(".download a",this._summary._container).onclick=function(e){e.preventDefault();var i={downloadLink:t.options.downloadLink,confirm:o.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||i.confirm(),t.fire("eletrack_download",i)})},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});J.addInitHook((function(){var t=this,e=this.options,i={};e.imperial?(e.distanceFactor=this.__mileFactor,i.label="mi"):(e.distanceFactor=e.distanceFactor||1,i.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(i){var r=t._data[i].latlng.distanceTo(t._data[i>0?i-1:i].latlng)*e.distanceFactor;return Math.round(r/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:i.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+i.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return(t.distance||0).toFixed(2)+" "+i.label},order:10}})})),J.addInitHook((function(){var t=this,e=this.options,i={};i.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return n(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,i=t.props,r=t.id;i&&("coordTimes"in i?e.meta.time=new Date(Date.parse(i.coordTimes[r])):"times"in i?e.meta.time=new Date(Date.parse(i.times[r])):"time"in i&&(e.meta.time=new Date(Date.parse("object"===q(i.time)?i.time[r]:i.time))))},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var i=this._data[t].dist-this._data[t-1].dist,r=this._data[t-1].time.getTime(),n=i/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(r+n)}else e.meta.time=new Date(Date.now());var o=e.meta.time;return o.getTime()-60*o.getTimezoneOffset()*1e3==0&&(o=0),o},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:i.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75)}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+n(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return n(t.time||0)},order:20}}))})),J.addInitHook((function(){var t=this,e=this.options,i={},r=e.theme.replace("-theme",""),n=C[r]||{};e.imperial?(e.altitudeFactor=this.__footFactor,i.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,i.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt)},fetch:function(i){return t._data[i].z*e.altitudeFactor},update:function(e,i){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var r=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var o=e-r[i>0?i-1:i].z,s=t.options.altitudeDeltaMax;Math.abs(o)>s&&(e=r[i-1].z+s*Math.sign(o))}return(e=c(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label: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:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+i.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return(t.elevation_max||0).toFixed(2)+" "+i.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return(t.elevation_min||0).toFixed(2)+" "+i.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return(t.elevation_avg||0).toFixed(2)+" "+i.label},order:30}})})),J.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,i={};i.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var i=t._data,r=1e3*(i[e].dist-i[e>0?e-1:e].dist),n=i[e].z-i[e>0?e-1:e].z;return isNaN(n)||0===r?0:n/r*100},update:function(e,i){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var r=t.track_info,n=t._data,o=n[i].z-n[i>0?i-1:i].z;if(t.options.slopeDeltaMax){var s=slop-n[i>0?i-1:i].slope,a=t.options.slopeDeltaMax;Math.abs(s)>a&&(e=n[i-1].slope+a*Math.sign(s))}return e=c(e,t.options.slopeRange),o>0?t.track_info.ascent+=o:o<0&&(t.track_info.descent-=o),e>r.slope_max&&(r.slope_max=e),e<r.slope_min&&(r.slope_min=e),r.slope_avg=(e+r.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+i.label},marker:function(t){return Math.round(t.slope)+i.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+" "+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+" "+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+" "+i.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+" "+i.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+" "+i.label},order:40}})}})),J.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,i={};i.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(i){var r=t._data,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*e.timeFactor)*e.speedFactor:0},update:function(e,i){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var r=t._data,n=t.track_info;if(t.options.speedDeltaMax){var o=e-r[i>0?i-1:i].speed,s=t.options.speedDeltaMax;Math.abs(o)>s&&(e=r[i-1].speed+s*Math.sign(o))}return(e=c(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+i.label},marker:function(t){return Math.round(t.speed)+" "+i.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+" "+i.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+" "+i.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+" "+i.label},order:50}}))}})),J.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,i={};i.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(i){var r=t._data,n=(r[i].speed-r[i>0?i-1:i].speed)*(1e3/e.timeFactor),o=(r[i].time-r[i>0?i-1:i].time)/1e3;return o>0?Math.abs(n/o)*e.accelerationFactor:0},update:function(e,i){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var r=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var o=e-r[i>0?i-1:i].acceleration,s=t.options.accelerationDeltaMax;Math.abs(o)>s&&(e=r[i-1].acceleration+s*Math.sign(o))}return(e=c(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:i.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+i.label},marker:function(t){return Math.round(t.acceleration)+" "+i.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+" "+i.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+" "+i.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+" "+i.label},order:60}})}})),J.Utils=M,J.Components=I,J.Chart=R,Q=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]=""),Q.call(null,t,e)},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(t){return new J(t)}}))})(St);var Ht={exports:{}};(function(t,e){!function(t,i){i(e)}(E,(function(t){var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,c=t.length,l=0,p=!0;if(this._map){var u=(new Date).getTime(),d=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(s<h)break}if((i=t[l])instanceof L.LayerGroup)p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),c=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),v=m[0]===i?m[1]:m[0];r.removeLayer(v)}}else n.addLayer(i),e||this.fire("layeradd",{layer:i})}a&&a(l,c,(new Date).getTime()-u),l===c?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var f=this._needsClustering;l<c;l++)(i=t[l])instanceof L.LayerGroup?(p&&(t=t.slice(),p=!1),this._extractNonGroupLayers(i,t),c=t.length):i.getLatLng?this.hasLayer(i)||f.push(i):n.addLayer(i);return this},removeLayers:function(t){var e,i,r=t.length,n=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=!1),this._extractNonGroupLayers(i,t),r=t.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 a=t.slice(),c=r;for(e=0;e<c;e++)(i=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),c=a.length):this._unspiderfyLayer(i)}for(e=0;e<r;e++)(i=t[e])instanceof L.LayerGroup?(s&&(t=t.slice(),s=!1),this._extractNonGroupLayers(i,t),r=t.length):i.__parent?(this._removeLayer(i,!0,!0),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(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,r,n,o=this._needsClustering.slice(),s=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),r=o.length-1;0<=r;r--){for(i=!0,n=s.length-1;0<=n;n--)if(s[n].layer===o[r]){i=!1;break}i&&t.call(e,o[r])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer((function(e){t.push(e)})),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer((function(i){L.stamp(i)===t&&(e=i)})),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var r=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(r=this._needsRemoving[e]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)r=this._needsRemoving[e],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=e&&r[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var c,l=t.__parent,p=l._markers;for(this._arraySplice(p,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)e&&l._childCount<=1?(c=l._markers[0]===t?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,s.project(l._cLatLng,l._zoom)),n[l._zoom].addObject(c,s.project(c.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(c),c.__parent=l.__parent,l._icon&&(o.removeLayer(l),i||o.addLayer(c))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(e||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),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 t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;e<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,r,n=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);s<=e;e--){i=this._map.project(t.getLatLng(),e);var a=n[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=o[e].getNearObject(i)){var c=a.__parent;c&&this._removeLayer(a,!1);var l=new this._markerCluster(this,e,a,t);n[e].addObject(l,this._map.project(l._cLatLng,e)),a.__parent=l;var p=t.__parent=l;for(r=e-1;r>c._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(a.getLatLng(),r));return c._addChild(p),void this._removeFromGridUnclustered(a,e)}o[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,r=t.getLayers(),n=0;for(e=e||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,o,(function(o){var s,a=o._latlng,c=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&t+1===e?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,e,r)),i=c.length-1;0<=i;i--)s=c[i],r.contains(s._latlng)||n.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,e),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,e,(function(t){t._recursivelyRestoreChildPositions(e)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,o,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,r=this._featureGroup;r.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===t._childCount){var s=t._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else t._recursively(r,i,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,e+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(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var r=this._markers.length-1;0<=r;r--)e&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,s=r.getZoom();0<i.length&&o<n;){o++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}o<n?this._group._map.setView(this._latlng,o):n<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,r,n=this._markers,o=this._childClusters,s=0,a=0,c=this._childCount;if(0!==c){for(this._resetBounds(),t=0;t<n.length;t++)i=n[t]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,r=e._childCount,s+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/c,a/c),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,(function(t){var i,r,n=t._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}),(function(t){var i,r,n=t._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(e),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,r){this._recursively(t,r,e,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,e,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(r){if(e!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,r){var n,o;this._recursively(t,e-1,i-1,(function(t){for(o=t._markers.length-1;0<=o;o--)n=t._markers[o],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(o=t._childClusters.length-1;0<=o;o--)n=t._childClusters[o],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,e,i,r,n){var o,s,a=this._childClusters,c=this._zoom;if(e<=c&&(r&&r(this),n&&c===i&&n(this)),c<e||c<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),t.intersects(s._bounds)&&s._recursively(t,e,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),r=this._getCoord(e.y),n=this._grid,o=n[r]=n[r]||{},s=o[i]=o[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,s.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,r,n=this._getCoord(e.x),o=this._getCoord(e.y),s=this._grid,a=s[o]=s[o]||{},c=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,r=c.length;i<r;i++)if(c[i]===t)return c.splice(i,1),1===r&&delete a[n],!0},eachObject:function(t,e){var i,r,n,o,s,a,c=this._grid;for(i in c)for(r in s=c[i])for(n=0,o=(a=s[r]).length;n<o;n++)t.call(e,a[n])&&(n--,o--)},getNearObject:function(t){var e,i,r,n,o,s,a,c,l=this._getCoord(t.x),p=this._getCoord(t.y),u=this._objectPoint,d=this._sqCellSize,f=null;for(e=p-1;e<=p+1;e++)if(n=this._grid[e])for(i=l-1;i<=l+1;i++)if(o=n[i])for(r=0,s=o.length;r<s;r++)a=o[r],((c=this._sqDist(u[L.Util.stamp(a)],t))<d||c<=d&&null===f)&&(d=c,f=a);return f},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,r=e.y-t.y;return i*i+r*r}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,r,n,o=0,s=null,a=[];for(i=e.length-1;0<=i;i--)r=e[i],0<(n=this.getDistant(r,t))&&(a.push(r),o<n&&(o=n,s=r));return{maxPoint:s,newPoints:a}},buildConvexHull:function(t,e){var i=[],r=this.findMostDistantPointFromBaseLine(t,e);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,r=!1,n=!1,o=!1,s=null,a=null,c=null,l=null,p=null,u=null;for(e=t.length-1;0<=e;e--){var d=t[e];(!1===i||d.lat>i)&&(i=(s=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(c=d).lng),(!1===o||d.lng<o)&&(o=(l=d).lng)}return p=r!==i?(u=a,s):(u=l,c),[].concat(this.buildConvexHull([u,p],t),this.buildConvexHull([p,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),r=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(e.length,i):(i.y+=10,this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,s=[];for(n=Math.max(n,35),s.length=t,i=0;i<t;i++)r=this._circleStartAngle+i*o,s[i]=new L.Point(e.x+n*Math.cos(r),e.y+n*Math.sin(r))._round();return s},_generatePointsSpiral:function(t,e){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,a=0,c=[];for(i=c.length=t;0<=i;i--)i<t&&(c[i]=new L.Point(e.x+n*Math.cos(a),e.y+n*Math.sin(a))._round()),n+=s/(a+=o/n+5e-4*i);return c},_noanimationUnspiderfy:function(){var t,e,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;0<=e;e--)t=o[e],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,r,n,o,s=this._group,a=s._map,c=s._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<t.length;i++)o=a.layerPointToLatLng(e[i]),r=t[i],n=new L.Polyline([this._latlng,o],l),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),c.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,r,n,o,s,a,c=this,l=this._group,p=l._map,u=l._featureGroup,d=this._latlng,f=p.latLngToLayerPoint(d),h=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),v=m.opacity;for(void 0===v&&(v=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),h?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=v,l._ignoreMove=!0,i=0;i<t.length;i++)r=t[i],a=p.layerPointToLatLng(e[i]),n=new L.Polyline([d,a],m),p.addLayer(n),r._spiderLeg=n,h&&(s=(o=n._path).getTotalLength()+.1,o.style.strokeDasharray=s,o.style.strokeDashoffset=s),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(f);for(l._forceLayout(),l._animationStart(),i=t.length-1;0<=i;i--)a=p.layerPointToLatLng(e[i]),(r=t[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),h&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:v}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout((function(){l._animationEnd(),l.fire("spiderfied",{cluster:c,markers:t})}),200)},_animationUnspiderfy:function(t){var e,i,r,n,o,s,a=this,c=this._group,l=c._map,p=c._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),f=L.Path.SVG;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,s=!0,e._setPos&&(e._setPos(u),s=!1),e.clusterHide&&(e.clusterHide(),s=!1),s&&p.removeLayer(e),f&&(o=(n=(r=e._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout((function(){var t=0;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;0<=i;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&p.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:a,markers:d})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}))})(Ht,Ht.exports);var Gt=6371008.8;var Zt={centimeters:Gt*100,centimetres:Gt*100,degrees:Gt/111325,feet:Gt*3.28084,inches:Gt*39.37,kilometers:Gt/1e3,kilometres:Gt/1e3,meters:Gt,metres:Gt,miles:Gt/1609.344,millimeters:Gt*1e3,millimetres:Gt*1e3,nauticalmiles:Gt/1852,radians:1,yards:Gt*1.0936};function Dt(t,e,i){if(i===void 0){i={}}var r={type:"Feature"};if(i.id===0||i.id){r.id=i.id}if(i.bbox){r.bbox=i.bbox}r.properties=e||{};r.geometry=t;return r}function It(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("coordinates is required")}if(!Array.isArray(t)){throw new Error("coordinates must be an Array")}if(t.length<2){throw new Error("coordinates must be at least 2 numbers long")}if(!Vt(t[0])||!Vt(t[1])){throw new Error("coordinates must contain numbers")}var r={type:"Point",coordinates:t};return Dt(r,e,i)}function Rt(t,e){if(e===void 0){e={}}var i={type:"FeatureCollection"};if(e.id){i.id=e.id}if(e.bbox){i.bbox=e.bbox}i.features=t;return i}function qt(t,e){if(e===void 0){e="kilometers"}var i=Zt[e];if(!i){throw new Error(e+" units is invalid")}return t*i}function Qt(t){var e=t%360;return e*Math.PI/180}function Vt(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Ut(t,e,i){if(t===null)return;var r,n,o,s,a,c,l,p=0,u=0,d,f=t.type,h=f==="FeatureCollection",m=f==="Feature",v=h?t.features.length:1;for(var g=0;g<v;g++){l=h?t.features[g].geometry:m?t.geometry:t;d=l?l.type==="GeometryCollection":false;a=d?l.geometries.length:1;for(var w=0;w<a;w++){var b=0;var k=0;s=d?l.geometries[w]:l;if(s===null)continue;c=s.coordinates;var x=s.type;p=i&&(x==="Polygon"||x==="MultiPolygon")?1:0;switch(x){case null:break;case"Point":if(e(c,u,g,b,k)===false)return false;u++;b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(e(c[r],u,g,b,k)===false)return false;u++;if(x==="MultiPoint")b++}if(x==="LineString")b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(n=0;n<c[r].length-p;n++){if(e(c[r][n],u,g,b,k)===false)return false;u++}if(x==="MultiLineString")b++;if(x==="Polygon")k++}if(x==="Polygon")b++;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-p;o++){if(e(c[r][n][o],u,g,b,k)===false)return false;u++}k++}b++}break;case"GeometryCollection":for(r=0;r<s.geometries.length;r++)if(Ut(s.geometries[r],e,i)===false)return false;break;default:throw new Error("Unknown Geometry Type")}}}}function Xt(t,e){if(t.type==="Feature"){e(t,0)}else if(t.type==="FeatureCollection"){for(var i=0;i<t.features.length;i++){if(e(t.features[i],i)===false)break}}}function Jt(t){var e=[];if(t.type==="FeatureCollection"){Xt(t,(function(t){Ut(t,(function(i){e.push(It(i,t.properties))}))}))}else{Ut(t,(function(i){e.push(It(i,t.properties))}))}return Rt(e)}function Kt(t){var e=[Infinity,Infinity,-Infinity,-Infinity];Ut(t,(function(t){if(e[0]>t[0]){e[0]=t[0]}if(e[1]>t[1]){e[1]=t[1]}if(e[2]<t[0]){e[2]=t[0]}if(e[3]<t[1]){e[3]=t[1]}}));return e}Kt["default"]=Kt;function Wt(t,e){if(e===void 0){e={}}var i=Kt(t);var r=(i[0]+i[2])/2;var n=(i[1]+i[3])/2;return It([r,n],e.properties,e)}function $t(t){if(!t){throw new Error("geojson is required")}switch(t.type){case"Feature":return te(t);case"FeatureCollection":return ie(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return re(t);default:throw new Error("unknown GeoJSON type")}}function te(t){var e={type:"Feature"};Object.keys(t).forEach((function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}));e.properties=ee(t.properties);e.geometry=re(t.geometry);return e}function ee(t){var e={};if(!t){return e}Object.keys(t).forEach((function(i){var r=t[i];if(typeof r==="object"){if(r===null){e[i]=null}else if(Array.isArray(r)){e[i]=r.map((function(t){return t}))}else{e[i]=ee(r)}}else{e[i]=r}}));return e}function ie(t){var e={type:"FeatureCollection"};Object.keys(t).forEach((function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}));e.features=t.features.map((function(t){return te(t)}));return e}function re(t){var e={type:t.type};if(t.bbox){e.bbox=t.bbox}if(t.type==="GeometryCollection"){e.geometries=t.geometries.map((function(t){return re(t)}));return e}e.coordinates=ne(t.coordinates);return e}function ne(t){var e=t;if(typeof e[0]!=="object"){return e.slice()}return e.map((function(t){return ne(t)}))}function oe(t){if(!t){throw new Error("coord is required")}if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point"){return t.geometry.coordinates}if(t.type==="Point"){return t.coordinates}}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1])){return t}throw new Error("coord must be GeoJSON Point or an Array of numbers")}function se(t){if(t.type==="Feature"){return t.geometry}return t}function ae(t,e,i){if(i===void 0){i={}}var r=oe(t);var n=oe(e);var o=Qt(n[1]-r[1]);var s=Qt(n[0]-r[0]);var a=Qt(r[1]);var c=Qt(n[1]);var l=Math.pow(Math.sin(o/2),2)+Math.pow(Math.sin(s/2),2)*Math.cos(a)*Math.cos(c);return qt(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),i.units)}function ce(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i;var r=Infinity;var n=0;Xt(e,(function(e,i){var o=ae(t,e);if(o<r){n=i;r=o}}));i=$t(e.features[n]);i.properties.featureIndex=n;i.properties.distanceToPoint=r;return i}function le(t,e,i){if(i===void 0){i={}}if(!t){throw new Error("point is required")}if(!e){throw new Error("polygon is required")}var r=oe(t);var n=se(e);var o=n.type;var s=e.bbox;var a=n.coordinates;if(s&&ue(r,s)===false){return false}if(o==="Polygon"){a=[a]}var c=false;for(var l=0;l<a.length&&!c;l++){if(pe(r,a[l][0],i.ignoreBoundary)){var p=false;var u=1;while(u<a[l].length&&!p){if(pe(r,a[l][u],!i.ignoreBoundary)){p=true}u++}if(!p){c=true}}}return c}function pe(t,e,i){var r=false;if(e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]){e=e.slice(0,e.length-1)}for(var n=0,o=e.length-1;n<e.length;o=n++){var s=e[n][0];var a=e[n][1];var c=e[o][0];var l=e[o][1];var p=t[1]*(s-c)+a*(c-t[0])+l*(t[0]-s)===0&&(s-t[0])*(c-t[0])<=0&&(a-t[1])*(l-t[1])<=0;if(p){return!i}var u=a>t[1]!==l>t[1]&&t[0]<(c-s)*(t[1]-a)/(l-a)+s;if(u){r=!r}}return r}function ue(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}function de(t){var e=fe(t);var i=Wt(e);var r=false;var n=0;while(!r&&n<e.features.length){var o=e.features[n].geometry;var s,a,c,l,p,u,d;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;d=0;while(!h&&d<o.coordinates.length){if(i.geometry.coordinates[0]===o.coordinates[d][0]&&i.geometry.coordinates[1]===o.coordinates[d][1]){r=true;h=true}d++}}else if(o.type==="LineString"){d=0;while(!f&&d<o.coordinates.length-1){s=i.geometry.coordinates[0];a=i.geometry.coordinates[1];c=o.coordinates[d][0];l=o.coordinates[d][1];p=o.coordinates[d+1][0];u=o.coordinates[d+1][1];if(he(s,a,c,l,p,u)){f=true;r=true}d++}}else if(o.type==="MultiLineString"){var m=0;while(m<o.coordinates.length){f=false;d=0;var v=o.coordinates[m];while(!f&&d<v.length-1){s=i.geometry.coordinates[0];a=i.geometry.coordinates[1];c=v[d][0];l=v[d][1];p=v[d+1][0];u=v[d+1][1];if(he(s,a,c,l,p,u)){f=true;r=true}d++}m++}}else if(o.type==="Polygon"||o.type==="MultiPolygon"){if(le(i,o)){r=true}}n++}if(r){return i}else{var g=Rt([]);for(n=0;n<e.features.length;n++){g.features=g.features.concat(Jt(e.features[n]).features)}return It(ce(i,g).geometry.coordinates)}}function fe(t){if(t.type!=="FeatureCollection"){if(t.type!=="Feature"){return Rt([Dt(t)])}return Rt([t])}return t}function he(t,e,i,r,n,o){var s=Math.sqrt((n-i)*(n-i)+(o-r)*(o-r));var a=Math.sqrt((t-i)*(t-i)+(e-r)*(e-r));var c=Math.sqrt((n-t)*(n-t)+(o-e)*(o-e));return s===a+c}var me='@charset "UTF-8";.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1), -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255, 255, 255, 0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);box-shadow:0 3px 14px rgba(0, 0, 0, 0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);box-shadow:0 1px 3px rgba(0, 0, 0, 0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.leaflet-control-locate a{cursor:pointer}.leaflet-control-locate a .leaflet-control-locate-location-arrow{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate a .leaflet-control-locate-spinner{display:inline-block;width:16px;height:16px;margin:7px;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="black" d="M304 48a48 48 0 1 1-96 0 48 48 0 0 1 96 0zm-48 368a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm208-208a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM96 256a48 48 0 1 0-96 0 48 48 0 0 0 96 0zm13 99a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm294 0a48 48 0 1 0 0 96 48 48 0 0 0 0-96zM109 61a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"/></svg>\');-webkit-animation:leaflet-control-locate-spin 2s linear infinite;animation:leaflet-control-locate-spin 2s linear infinite}.leaflet-control-locate.active a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(32, 116, 182)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-control-locate.following a .leaflet-control-locate-location-arrow{background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="rgb(252, 132, 40)" d="M445 4 29 195c-48 23-32 93 19 93h176v176c0 51 70 67 93 19L508 67c16-38-25-79-63-63z"/></svg>\')}.leaflet-touch .leaflet-bar .leaflet-locate-text-active{width:100%;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0 10px}.leaflet-touch .leaflet-bar .leaflet-locate-text-active .leaflet-locate-icon{padding:0 5px 0 0}.leaflet-control-locate-location circle{-webkit-animation:leaflet-control-locate-throb 4s ease infinite;animation:leaflet-control-locate-throb 4s ease infinite}@-webkit-keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@keyframes leaflet-control-locate-throb{0%{stroke-width:1}50%{stroke-width:3;-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8)}100%{stroke-width:1}}@-webkit-keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes leaflet-control-locate-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-hidden{visibility:hidden}.legend{cursor:pointer}.leaflet-container{z-index:0}.elevation-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:" — "}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:"✖";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:"";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 280px - var(--map-bottom-space-height))}.common-map{height:calc(100% - 64px)}#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 .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(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.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:14px;height:14px;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:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup,.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,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker,.outdoor-site-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{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-110px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:221px;margin:0}';var ve=me;var ge=t("grw_map",function(){function t(t){e(this,t);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.userLayersState={};this.tileLayer=[];this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this);this.handleTouristicContentsWithinBoundsBind=this.handleTouristicContentsWithinBounds.bind(this);this.handleTouristicEventsWithinBoundsBind=this.handleTouristicEventsWithinBounds.bind(this);this.handleOutdoorSitesWithinBoundsBind=this.handleOutdoorSitesWithinBounds.bind(this);this.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;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.useGradient=false;this.tilesMaxZoomOffline=16;this.isLargeView=false;this.grwApp=false}t.prototype.onCenterOnMap=function(t){this.map.setView(new j.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})};t.prototype.stepsIsInViewport=function(t){if(this.currentStepsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}};t.prototype.descriptionIsInViewport=function(t){if(this.currentReferencePointsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}};t.prototype.parkingIsInViewport=function(t){if(this.currentParkingLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}};t.prototype.onInformationPlacesIsInViewport=function(t){if(this.currentInformationDesksLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}};t.prototype.sensitiveAreaIsInViewport=function(t){if(this.currentSensitiveAreasLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}};t.prototype.poiIsInViewport=function(t){if(this.currentPoisLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}};t.prototype.touristicContentsIsInViewport=function(t){if(this.currentToutisticContentsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}};t.prototype.touristicEventsIsInViewport=function(t){if(this.currentTouristicEventsLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentTouristicEventsLayer)}};t.prototype.sitesIsInViewport=function(t){if(this.currentRelatedOutdoorSitesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorSitesLayer)}};t.prototype.coursesIsInViewport=function(t){if(this.currentRelatedOutdoorCoursesLayer&&this.layersControl){this.handleLayerVisibility(t.detail,this.currentRelatedOutdoorCoursesLayer)}};t.prototype.onCardTrekMouseOver=function(t){if(!l.parentTrek&&(!l.selectedTrekId||l.selectedTrekId!==t.detail)){l.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(l.parentTrek){this.stepPopupIsOpen=false;l.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}};t.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&l.selectedTrekId){this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.selectedCurrentStepLayer){this.removeSelectedCurrentStep()}};t.prototype.onTouristicContentMouseOver=function(t){this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)};t.prototype.onTouristicContentMouseLeave=function(){l.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};t.prototype.onTouristicEventMouseOver=function(t){this.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)};t.prototype.onTouristicEventMouseLeave=function(){l.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};t.prototype.onTrekDownloadedSuccessConfirm=function(){this.map.setMaxZoom(this.tilesMaxZoomOffline)};t.prototype.onTrekDeleteSuccessConfirm=function(){this.map.setMaxZoom(this.maxZoom)};t.prototype.onOutdoorSiteMouseOver=function(t){this.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;this.addSelectedOutdoorSite(t.detail)};t.prototype.onOutdoorSiteMouseLeave=function(){l.selectedOutdoorSiteId=null;this.removeSelectedOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;this.map=j.map(this.mapRef,{zoom:4,center:[47,2]});j.control.scale({metric:true,imperial:false}).addTo(this.map);j.control.locate({showPopup:false}).addTo(this.map);var e=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(t,e){return e===0?t:"http"+t}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){t.tileLayer.push({key:"".concat(e[n]),value:Y.exports.tileLayerOffline(i,{maxZoom:t.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=j.control.layers(this.tileLayer.reduce((function(t,e){var i;return Object.assign(t,(i={},i[e.key]=e.value,i))}),{}),{},{collapsed:true}).addTo(this.map)}j.Control.Contract=j.Control.extend({onAdd:function(){var e=j.DomUtil.create("div");e.className="leaflet-bar leaflet-control";var i=e.appendChild(j.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";e.onclick=function(e){t.bounds&&t.map.fitBounds(t.bounds);e.preventDefault()};return e}});j.control.contract=function(t){return new j.Control.Contract(t)};j.control.contract({position:"topleft"}).addTo(this.map);if(l.currentTrek){this.addTrek()}else if(l.currentTreks){this.addTreks()}else if(l.currentTouristicContent){this.addTouristicContent()}else if(l.currentTouristicEvent){this.addTouristicEvent()}else if(l.currentOutdoorSite){this.addOutdoorSite()}else if(l.currentOutdoorCourse){this.addOutdoorCourse()}else if(l.touristicContents){this.addTouristicContents()}else if(l.touristicEvents){this.addTouristicEvents()}else if(l.outdoorSites){this.addOutdoorSites()}g("currentTreks",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(l.currentTrek){t.removeTreks();t.addTrek()}else if(l.currentTreks){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks(true)}}));g("currentOutdoorSites",(function(){if(l.currentOutdoorSites){t.removeTreks();t.removeTouristicContents();t.removeTouristicEvents();t.removeOutdoorSites();t.addOutdoorSites(true)}}));g("currentTrek",(function(){if(l.currentTrek){t.removeTreks();t.addTrek()}else if(l.currentTreks){t.removeTrek();t.removeTouristicContent();t.removeTouristicEvent();t.addTreks()}}));g("currentOutdoorSite",(function(){if(l.currentOutdoorSite){t.removeOutdoorCourse();t.removeOutdoorSites();t.addOutdoorSite()}else if(l.currentOutdoorSites){t.removeOutdoorSite();t.addOutdoorSites()}}));g("currentOutdoorSite",(function(){if(l.currentOutdoorCourse){t.removeOutdoorSite();t.addOutdoorCourse()}}));g("currentTouristicContent",(function(){if(l.currentTouristicContent){t.removeTrek();t.removeTouristicContents();t.addTouristicContent()}else if(l.touristicContents){t.removeTouristicContent();t.addTouristicContents()}else if(l.currentTrek){t.removeTouristicContent();t.addTrek()}else if(l.currentTreks){t.removeTouristicContent();t.addTreks()}}));g("currentTouristicEvent",(function(){if(l.currentTouristicEvent){t.removeTrek();t.removeTouristicEvents();t.addTouristicEvent()}else if(l.currentTrek){t.removeTouristicEvent();t.addTrek()}else if(l.currentTreks){t.removeTouristicEvent();t.addTreks()}}));g("currentTouristicContents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(l.currentTouristicContent){t.removeTouristicContents();t.addTouristicContent()}else if(l.currentTouristicContents){t.removeTreks();t.removeTouristicEvents();t.removeOutdoorSites();t.removeTouristicContent();t.addTouristicContents(true)}}));g("currentTouristicEvents",(function(){t.hideTrekLine();t.removeSelectedCurrentTrek();t.removeSelectedTouristicContent();t.removeSelectedTouristicEvent();if(l.currentTouristicEvent){t.removeTouristicEvents();t.addTouristicEvent()}else if(l.currentTouristicEvents){t.removeTreks();t.removeTouristicContents();t.removeOutdoorSites();t.removeTouristicEvent();t.addTouristicEvents(true)}}))};t.prototype.handleLayerVisibility=function(t,e){if(t&&!this.map.hasLayer(e)){e.addTo(this.map)}else if(this.map.hasLayer(e)&&!this.userLayersState[e._leaflet_id]){this.map.removeLayer(e)}this.handleLayersControlEvent()};t.prototype.addTreks=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c;var p=this;return __generator(this,(function(u){switch(u.label){case 0:l.treksWithinBounds=l.currentTreks;i=[];r={type:"FeatureCollection",features:[]};if(l.currentTreks){n=function(t){i.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=l.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(o=0,s=l.currentTreks;o<s.length;o++){a=s[o];n(a)}}if(!!this.treksLayer)return[3,2];if(i.length>0&&!l.currentMapBounds||t){this.bounds=j.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:c=u.sent();this.treksLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:c[t.properties.practice]?'<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src='.concat(c[t.properties.practice]," /></div>"):'<div part="trek-marker-container" class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(p,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=j.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=j.DomUtil.create("img");o.part="trek-image-popup";o.src=r;n.appendChild(o)}s=j.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=j.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){p.hideTrekLine();p.showTrekLine(t.properties.id);p.addSelectedCurrentTrek(t.properties.id,e.latlng)}))}});this.treksMarkerClusterGroup=j.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return j.divIcon({html:'<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">'+t.getChildCount()+"</div>",className:"",iconSize:48})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=j.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer);u.label=3;case 3:this.bounds&&this.bounds._northEast&&this.bounds._southWest&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind);return[2]}}))}))};t.prototype.removeTreks=function(){if(this.treksLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(l.currentTreks&&!l.currentMapBounds||l.currentTreks&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.treksWithinBounds=l.currentTreks.filter((function(e){return t.map.getBounds().contains(j.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.handleTouristicContentsWithinBounds=function(){var t=this;if(l.currentTouristicContents&&!l.currentMapBounds||l.currentTouristicContents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicContentsWithinBounds=l.currentTouristicContents.filter((function(e){return t.map.getBounds().contains(j.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleTouristicEventsWithinBounds=function(){var t=this;if(l.currentTouristicEvents&&!l.currentMapBounds||l.currentTouristicEvents&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.touristicEventsWithinBounds=l.currentTouristicEvents.filter((function(e){return t.map.getBounds().contains(j.latLng(e.geometry.coordinates[1],e.geometry.coordinates[0]))}))}};t.prototype.handleOutdoorSitesWithinBounds=function(){var t=this;if(l.currentOutdoorSites&&!l.currentMapBounds||l.currentOutdoorSites&&l.currentMapBounds&&l.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){l.outdoorSitesWithinBounds=l.currentOutdoorSites.filter((function(e){var i=de(e.geometry).geometry.coordinates;return t.map.getBounds().contains(j.latLng(i[1],i[0]))}))}};t.prototype.addTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,s,a,c,p,u,d,f,h,m,v,g,w,b,k,x,y,A;var _=this;return __generator(this,(function(z){switch(z.label){case 0:return[4,N("treks",l.currentTrek.id)];case 1:e=z.sent();if(e){this.map.setMaxZoom(this.tilesMaxZoomOffline)}else{this.map.setMaxZoom(this.maxZoom)}this.trekPopupIsOpen=false;l.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();i={type:"Feature",geometry:l.currentTrek.geometry,properties:{}};this.currentTrekLayer=j.geoJSON(i,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(l.currentTrek.parking_location){r=o("".concat("","assets/parking.svg"));n={type:"Feature",properties:{name:l.currentTrek.advised_parking},geometry:{type:"Point",coordinates:l.currentTrek.parking_location}};this.currentParkingLayer=j.geoJSON(n,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:'<img part="parking-marker" src='.concat(r," />"),className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="parking-tooltip";i.className="parking-tooltip";var r=j.DomUtil.create("div");r.innerHTML=t.properties.name;i.part="parking-name";r.className="parking-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}})}if(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0){s={type:"FeatureCollection",features:[]};for(a=0,c=l.currentSensitiveAreas;a<c.length;a++){p=c[a];s.features.push({type:"Feature",properties:{name:p.name},geometry:p.geometry})}this.currentSensitiveAreasLayer=j.geoJSON(s,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="sensitive-area-tooltip";i.className="sensitive-area-tooltip";var r=j.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="sensitive-area-name";r.className="sensitive-area-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:_.colorSensitiveArea}}})}return[4,this.addCurrentInformationDesks(l.currentTrek)];case 2:z.sent();return[4,this.addCurrentPois()];case 3:z.sent();return[4,this.addCurrentTouristicContents()];case 4:z.sent();return[4,this.addCurrentTouristicEvents()];case 5:z.sent();if(l.currentTrek.points_reference){u={type:"FeatureCollection",features:[]};u.features.push({type:"Feature",properties:{},geometry:l.currentTrek.points_reference});d=0;this.currentReferencePointsLayer=j.geoJSON(u,{pointToLayer:function(t,e){d+=1;return j.marker(e,{icon:j.divIcon({html:'<div part="point-reference-icon" class="point-reference-icon">'.concat(d,"</div>"),className:"",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&l.parentTrekId&&l.parentTrek&&l.currentTrek.id===l.parentTrekId){f={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){h=function(e){f.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(t=l.practices.find((function(t){return t.id===e.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(m=0,v=l.currentTrekSteps;m<v.length;m++){g=v[m];h(g)}}w=0;this.currentStepsLayer=j.geoJSON(f,{pointToLayer:function(t,e){w+=1;return j.marker(e,{zIndexOffset:4e6,icon:j.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(w,"</div></div></div>"),className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(_,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=j.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=j.DomUtil.create("img");o.src=r;n.appendChild(o)}s=j.DomUtil.create("div");s.innerHTML=t.properties.name;n.part="trek-name";s.className="trek-name";n.appendChild(s);a=j.DomUtil.create("button");a.innerHTML="Afficher le détail";n.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseover",(function(e){_.addSelectedCurrentStep(t.properties.id,e.latlng)}))}})}b={"y: ":"","x: ":"","Total Length: ":"Longueur totale : ","Min Elevation: ":"Altitude min : ","Max Elevation: ":"Altitude max : "};j.registerLocale("fr",b);j.setLocale("fr");k={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:280,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:"inline",time:false,timestamps:false,legend:false,downloadLink:false,autofitBounds:false,ruler:false,edgeScale:false,waypoints:false,almostOver:false,speed:false,slope:false,acceleration:false,reverseCoords:false,imperial:false,dragging:false,zooming:false,handlers:["Altitude","Distance","Slope","LinearGradient"],linearGradient:{attr:"z",path:"altitude",range:{0:"#008800",.5:"#ffff00",1:"#ff0000"},min:"elevation_min",max:"elevation_max"}};this.elevationControl=j.control.elevation(Object.assign({},k)).addTo(this.map);x=JSON.stringify({name:"".concat(l.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:l.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(x);y={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[0]},properties:null},{type:"Feature",geometry:{type:"Point",coordinates:l.currentTrek.geometry.coordinates[l.currentTrek.geometry.coordinates.length-1]},properties:null}]};A=0;this.departureArrivalLayer=j.geoJSON(y,{pointToLayer:function(t,e){A+=1;return j.marker(e,{icon:j.divIcon({html:'<div part="'.concat(A===1?"departure-marker":"arrival-marker",'" class="').concat(A===1?"departure-marker":"arrival-marker",'"></div>'),className:"",iconSize:14}),autoPanOnFocus:false})}});this.map.addLayer(this.departureArrivalLayer);this.handleLayersControl();this.bounds=j.latLngBounds(l.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.on("eledata_loaded",(function(){_.bounds&&_.map.fitBounds(_.bounds);!_.mapIsReady&&(_.mapIsReady=!_.mapIsReady)}));return[2]}}))}))};t.prototype.getIcons=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:i={};r=0;s.label=1;case 1:if(!(r<t.features.length))return[3,4];if(!t.features[r].properties[e])return[3,3];n=i;o=t.features[r].properties[e];return[4,this.getIcon(t.features[r].properties[e])];case 2:n[o]=s.sent();s.label=3;case 3:r++;return[3,1];case 4:return[2,i]}}))}))};t.prototype.getIcon=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(!!w.isNativePlatform())return[3,5];return[4,b(t)];case 1:i=a.sent();if(!i)return[3,3];o=(n=window.URL).createObjectURL;return[4,k(t)];case 2:r=o.apply(n,[a.sent().data]);return[3,4];case 3:r=t?t:null;a.label=4;case 4:e=r;return[3,7];case 5:return[4,x.getUri({path:t,directory:y.Data})];case 6:s=a.sent();if(s){e=w.convertFileSrc(s.uri)}a.label=7;case 7:return[2,e]}}))}))};t.prototype.addSelectedCurrentTrek=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(l.currentTreks){n=l.currentTreks.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(i=l.practices.find((function(t){return t.id===n.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();l.selectedTrekId=t;return[4,this.getIcons(r,"practice")];case 1:o=a.sent();this.selectedCurrentTrekLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:o[t.properties.practice]?'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src='.concat(o[t.properties.practice]," /></div></div>"):'<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(s,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=j.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=j.DomUtil.create("img");o.src=r;o.part="trek-image";n.appendChild(o)}s=j.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=j.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-button";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!s.trekPopupIsOpen){l.selectedTrekId=null;s.hideTrekLine();s.removeSelectedCurrentTrek()}}));e.on("popupopen",(function(){s.trekPopupIsOpen=Boolean(l.selectedTrekId)}));e.on("popupclose",(function(){if(l.selectedTrekId){s.trekPopupIsOpen=false;l.selectedTrekId=null;s.hideTrekLine();s.removeSelectedCurrentTrek()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedCurrentTrek=function(){l.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};t.prototype.addSelectedCurrentStep=function(t,e){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(l.currentTrekSteps){var o=l.currentTrekSteps.findIndex((function(e){return e.id===t}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:l.currentTrekSteps[o].departure_geom},properties:{id:l.currentTrekSteps[o].id,name:l.currentTrekSteps[o].name,practice:(r=l.practices.find((function(t){return t.id===l.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:l.currentTrekSteps[o].attachments&&l.currentTrekSteps[o].attachments.length>0&&l.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();l.selectedStepId=t;this.selectedCurrentStepLayer=j.geoJSON(n,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:'<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">'.concat(t.properties.index,"</div></div></div>"),className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){return __awaiter(i,void 0,void 0,(function(){var i,r,n,o,s,a;var c=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getIcon(t.properties.imgSrc)];case 1:i=l.sent();r=i?i:t.properties.imgSrc?t.properties.imgSrc:null;n=j.DomUtil.create("div");n.part="trek-departure-popup";n.className="trek-departure-popup";if(r){o=j.DomUtil.create("img");o.part="trek-image";o.src=r;n.appendChild(o)}s=j.DomUtil.create("div");s.innerHTML=t.properties.name;s.part="trek-name";s.className="trek-name";n.appendChild(s);a=j.DomUtil.create("button");a.innerHTML="Afficher le détail";a.part="trek-name";a.className="trek-button";a.onclick=function(){return c.trekCardPress.emit(t.properties.id)};n.appendChild(a);e.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup();return[2]}}))}))}));e.on("mouseout",(function(){if(!i.stepPopupIsOpen){l.selectedTrekId=null;i.removeSelectedCurrentStep()}}));e.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(l.selectedStepId)}));e.on("popupclose",(function(){if(l.selectedStepId){i.stepPopupIsOpen=false;l.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};t.prototype.removeSelectedCurrentStep=function(){if(l.selectedStepId){l.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};t.prototype.handleLayersControlEvent=function(){var t=this;if(this.layersControl){var e=this.layersControl._layerControlInputs;e.forEach((function(e){if(t.layersControl._layers.find((function(t){return t.layer._leaflet_id===e.layerId})).overlay){e.onchange=function(i){t.userLayersState[e.layerId]=i.target.checked}}}))}};t.prototype.removeTrek=function(){this.handleLayersOnRemove()};t.prototype.showTrekLine=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:this.removeSelectedCurrentTrek();return[4,I(t)];case 1:e=n.sent();i={type:"Feature",geometry:e.geometry,properties:{}};this.currentTrekLayer=j.geoJSON(i,{style:function(){return{color:r.colorTrekLine}},interactive:false}).addTo(this.map);return[2]}}))}))};t.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};t.prototype.addTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;this.removeSelectedTouristicContent();t={type:"FeatureCollection",features:[]};if(l.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicContent.geometry.coordinates},properties:{id:l.currentTouristicContent.id,name:l.currentTouristicContent.name,practice:l.touristicContentCategories.find((function(t){return t.id===l.currentTouristicContent.category})).pictogram}})}if(!!this.currentToutisticContentLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:e=i.sent();this.currentToutisticContentLayer=j.geoJSON(t,{pointToLayer:function(t,i){return j.marker(i,{icon:j.divIcon({html:e[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(e[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer);i.label=2;case 2:this.map.setView([l.currentTouristicContent.geometry.coordinates[1],l.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};t.prototype.addTouristicContents=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a;var c=this;return __generator(this,(function(p){switch(p.label){case 0:l.touristicContentsWithinBounds=l.currentTouristicContents;e=[];i={type:"FeatureCollection",features:[]};if(l.currentTouristicContents){r=function(t){e.push(t.geometry.coordinates);i.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:l.touristicContentCategories.find((function(e){return e.id===t.category})).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(n=0,o=l.currentTouristicContents;n<o.length;n++){s=o[n];r(s)}}if(!!this.toutisticContentsLayer)return[3,2];if(e.length>0&&!l.currentMapBounds||t){this.bounds=j.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}return[4,this.getIcons(i,"practice")];case 1:a=p.sent();this.toutisticContentsLayer=j.geoJSON(i,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:a[t.properties.practice]?'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src='.concat(a[t.properties.practice]," /></div></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;i.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=j.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return c.touristicContentCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){c.addSelectedTouristicContent(t.properties.id,e.latlng)}))}});this.touristicContentsMarkerClusterGroup=j.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return j.divIcon({html:'<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:48})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup);return[3,3];case 2:if(e.length>0){this.bounds=j.latLngBounds(e.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(i);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);p.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};t.prototype.addTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;return __generator(this,(function(r){switch(r.label){case 0:t={type:"FeatureCollection",features:[]};if(l.currentTouristicEvent){e=l.touristicEventTypes.find((function(t){return t.id===l.currentTouristicEvent.type}));t.features.push({type:"Feature",geometry:{type:"Point",coordinates:l.currentTouristicEvent.geometry.coordinates},properties:{id:l.currentTouristicEvent.id,name:l.currentTouristicEvent.name,type:e?e.pictogram:null}})}if(!!this.currentToutisticEventLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=r.sent();this.currentToutisticEventLayer=j.geoJSON(t,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:i[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(i[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:48}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer);r.label=2;case 2:this.map.setView([l.currentTouristicEvent.geometry.coordinates[1],l.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};t.prototype.addSelectedTouristicContent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(l.touristicContents){n=l.touristicContents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=l.touristicContentCategories.find((function(t){return t.id===n.category})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();l.selectedTouristicContentId=t;return[4,this.getIcons(r,"category")];case 1:o=a.sent();this.selectedTouristicContentLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:o[t.properties.category]?'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src='.concat(o[t.properties.category]," /></div></div>"):'<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="touristic-content-coordinates-popup";i.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="touristic-content-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-content-name";n.className="touristic-content-name";i.appendChild(n);var o=j.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-content-button";o.className="touristic-content-button";o.onclick=function(){return s.touristicContentCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicContentPopupIsOpen){l.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}));e.on("popupopen",(function(){s.touristicContentPopupIsOpen=Boolean(l.selectedTouristicContentId)}));e.on("popupclose",(function(){if(l.selectedTouristicContentId){s.touristicContentPopupIsOpen=false;l.selectedTouristicContentId=null;s.removeSelectedTouristicContent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicContent=function(){l.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};t.prototype.addTouristicEvents=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c;var p=this;return __generator(this,(function(u){switch(u.label){case 0:l.touristicEventsWithinBounds=l.currentTouristicEvents;i=[];r={type:"FeatureCollection",features:[]};if(l.currentTouristicEvents){n=function(t){i.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(e=l.touristicEventTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(o=0,s=l.currentTouristicEvents;o<s.length;o++){a=s[o];n(a)}}if(!!this.touristicEventsLayer)return[3,2];if(i.length>0&&!l.currentMapBounds||t){this.bounds=j.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}return[4,this.getIcons(r,"type")];case 1:c=u.sent();this.touristicEventsLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:c[t.properties.type]?'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(c[t.properties.type]," /></div></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=j.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(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){p.addSelectedTouristicEvent(t.properties.id,e.latlng)}))}});this.touristicEventsMarkerClusterGroup=j.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return j.divIcon({html:'<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:48})}});this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=j.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.touristicEventsLayer.clearLayers();this.touristicEventsLayer.addData(r);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.touristicEventsLayer);u.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind);return[2]}}))}))};t.prototype.removeTouristicEvents=function(){if(this.touristicEventsLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.touristicEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};t.prototype.addOutdoorSites=function(t){if(t===void 0){t=false}return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,p;var u=this;return __generator(this,(function(d){switch(d.label){case 0:l.outdoorSitesWithinBounds=l.currentOutdoorSites;i=[];r={type:"FeatureCollection",features:[]};if(l.currentOutdoorSites){n=function(t){r.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(t.geometry).geometry.coordinates},properties:{id:t.id,name:t.name,practice:(e=l.outdoorPractices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(o=0,s=l.currentOutdoorSites;o<s.length;o++){a=s[o];n(a)}}if(!!this.outdoorSitesLayer)return[3,2];if(i.length>0&&!l.currentMapBounds||t){c=Kt(r);this.bounds=j.latLngBounds([c[1],c[0]],[c[3],c[2]])}else{if(l.currentMapBounds){this.bounds=l.currentMapBounds}}return[4,this.getIcons(r,"practice")];case 1:p=d.sent();this.outdoorSitesLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:p[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(p[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var o=j.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="outdoor-site-button";o.className="outdoor-site-button";o.onclick=function(){return u.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseover",(function(e){u.addSelectedOutdoorSite(t.properties.id,e.latlng)}))}});this.outdoorSitesMarkerClusterGroup=j.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(t){return j.divIcon({html:'<div part="outdoor-site-marker-cluster-group-icon" class="outdoor-site-marker-cluster-group-icon"><div>'+t.getChildCount()+"</div></div>",className:"",iconSize:48})}});this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);this.map.addLayer(this.outdoorSitesMarkerClusterGroup);return[3,3];case 2:if(i.length>0){this.bounds=j.latLngBounds(i.map((function(t){return[t[1],t[0]]})))}else{this.map.fire("moveend")}this.outdoorSitesLayer.clearLayers();this.outdoorSitesLayer.addData(r);this.outdoorSitesMarkerClusterGroup.clearLayers();this.outdoorSitesMarkerClusterGroup.addLayer(this.outdoorSitesLayer);d.label=3;case 3:this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleOutdoorSitesWithinBoundsBind);return[2]}}))}))};t.prototype.removeOutdoorSites=function(){if(this.outdoorSitesLayer){l.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.outdoorSitesMarkerClusterGroup);this.outdoorSitesLayer=null;this.outdoorSitesMarkerClusterGroup=null;this.map.off("moveend",this.handleOutdoorSitesWithinBoundsBind)}};t.prototype.addOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t={type:"FeatureCollection",features:[]};if(l.currentOutdoorSite){e=l.outdoorPractices.find((function(t){return t.id===l.currentOutdoorSite.practice}));t.features.push({type:"Feature",geometry:l.currentOutdoorSite.geometry,properties:{id:l.currentOutdoorSite.id,name:l.currentOutdoorSite.name,practice:e?e.pictogram:null}})}if(!!this.currentOutdoorSiteLayer)return[3,2];return[4,this.getIcons(t,"practice")];case 1:i=n.sent();this.currentOutdoorSiteLayer=j.geoJSON(t,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:i[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:r.colorOutdoorArea,interactive:false}}});this.map.addLayer(this.currentOutdoorSiteLayer);n.label=2;case 2:return[4,this.addCurrentInformationDesks(l.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.fitBounds(this.currentOutdoorSiteLayer.getBounds());!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorSites){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,practice:(t=l.outdoorPractices.find((function(t){return t.id===i.practice})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=l.currentRelatedOutdoorSites;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorSitesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"practice")];case 1:s=c.sent();this.currentRelatedOutdoorSitesLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:s[t.properties.practice]?'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-site-marker" class="outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:a.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentRelatedOutdoorCourses=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;var a=this;return __generator(this,(function(c){switch(c.label){case 0:e={type:"FeatureCollection",features:[]};if(l.currentRelatedOutdoorCourses){i=function(i){e.features.push({type:"Feature",geometry:i.geometry,properties:{id:i.id,name:i.name,type:(t=l.outdoorCourseTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})};for(r=0,n=l.currentRelatedOutdoorCourses;r<n.length;r++){o=n[r];i(o)}}if(!(!this.currentRelatedOutdoorCoursesLayer&&e.features.length>0))return[3,2];return[4,this.getIcons(e,"type")];case 1:s=c.sent();this.currentRelatedOutdoorCoursesLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:s[t.properties.practice]?'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"><img part="outdoor-courses-marker-icon" src='.concat(s[t.properties.practice]," /></div></div>"):'<div part="outdoor-courses-marker" class="outdoor-courses-marker"><div part="outdoor-courses-marker-container" class="outdoor-courses-marker-container"></div></div>',iconSize:48}),autoPanOnFocus:false})},style:function(){return{color:a.colorOutdoorArea,interactive:false}}});c.label=2;case 2:return[2]}}))}))};t.prototype.removeOutdoorSite=function(){this.handleLayersOnRemove()};t.prototype.addSelectedTouristicEvent=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o;var s=this;return __generator(this,(function(a){switch(a.label){case 0:r={type:"FeatureCollection",features:[]};if(l.touristicEvents){n=l.touristicEvents.find((function(e){return e.id===t}));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e?[e.lng,e.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(i=l.touristicEventTypes.find((function(t){return t.id===n.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();l.selectedTouristicEventId=t;return[4,this.getIcons(r,"category")];case 1:o=a.sent();this.selectedTouristicEventLayer=j.geoJSON(r,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:o[t.properties.category]?'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src='.concat(o[t.properties.category]," /></div></div>"):'<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="touristic-event-coordinates-popup";i.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="touristic-event-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="touristic-event-name";n.className="touristic-event-name";i.appendChild(n);var o=j.DomUtil.create("button");o.innerHTML="Afficher le détail";o.part="touristic-event-button";o.className="touristic-event-button";o.onclick=function(){return s.touristicEventCardPress.emit(t.properties.id)};i.appendChild(o);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!s.touristicEventPopupIsOpen){l.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}));e.on("popupopen",(function(){s.touristicEventPopupIsOpen=Boolean(l.selectedTouristicEventId)}));e.on("popupclose",(function(){if(l.selectedTouristicEventId){s.touristicEventPopupIsOpen=false;l.selectedTouristicEventId=null;s.removeSelectedTouristicEvent()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedTouristicEvent=function(){l.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};t.prototype.addOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i;var r=this;return __generator(this,(function(n){switch(n.label){case 0:t={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){e=l.outdoorCourseTypes.find((function(t){return t.id===l.currentOutdoorCourse.type}));t.features.push({type:"Feature",geometry:l.currentOutdoorCourse.geometry,properties:{id:l.currentOutdoorCourse.id,name:l.currentOutdoorCourse.name,type:e?e.pictogram:null}})}if(!!this.currentOutdoorCourseLayer)return[3,2];return[4,this.getIcons(t,"type")];case 1:i=n.sent();this.currentOutdoorCourseLayer=j.geoJSON(t,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:i[t.properties.practice]?'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(i[t.properties.practice]," /></div></div>"):'<div part="outdoor-course-marker" class="outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',iconSize:48}),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]}}))}))};t.prototype.removeOutdoorCourse=function(){this.handleLayersOnRemove()};t.prototype.addSelectedOutdoorSite=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(l.currentOutdoorSites){r=l.currentOutdoorSites.find((function(e){return e.id===t}));if(r&&r.geometry){i.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,practice:(e=l.outdoorPractices.find((function(t){return t.id===r.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.length>0&&r.attachments[0].thumbnail}})}}this.removeSelectedOutdoorSite();l.selectedOutdoorSiteId=t;return[4,this.getIcons(i,"practice")];case 1:n=s.sent();this.selectedOutdoorSiteLayer=j.geoJSON(i,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:n[t.properties.practice]?'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"><img part="outdoor-site-marker-icon" src='.concat(n[t.properties.practice]," /></div></div>"):'<div part="selected-outdoor-site-marker" class="selected-outdoor-site-marker"><div part="outdoor-site-marker-container" class="outdoor-site-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="outdoor-site-coordinates-popup";i.className="outdoor-site-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="outdoor-site-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-site-name";n.className="outdoor-site-name";i.appendChild(n);var s=j.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-site-button";s.className="outdoor-site-button";s.onclick=function(){return o.outdoorSiteCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.outdoorSitePopupIsOpen){l.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}));e.on("popupopen",(function(){o.outdoorSitePopupIsOpen=Boolean(l.selectedOutdoorSiteId)}));e.on("popupclose",(function(){if(l.selectedOutdoorSiteId){o.outdoorSitePopupIsOpen=false;l.selectedOutdoorSiteId=null;o.removeSelectedOutdoorSite()}}))},style:{color:this.colorOutdoorArea,interactive:false}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorSite=function(){l.selectedOutdoorSiteId=null;this.selectedOutdoorSiteLayer&&this.map.removeLayer(this.selectedOutdoorSiteLayer);this.selectedOutdoorSiteLayer=null};t.prototype.addSelectedOutdoorCourse=function(t,e){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n;var o=this;return __generator(this,(function(s){switch(s.label){case 0:i={type:"FeatureCollection",features:[]};if(l.currentOutdoorCourse){r=l.currentOutdoorCourse;i.features.push({type:"Feature",geometry:{type:"Point",coordinates:de(r.geometry).geometry.coordinates},properties:{id:r.id,name:r.name,type:(e=l.outdoorCourseTypes.find((function(t){return t.id===r.type})))===null||e===void 0?void 0:e.pictogram,imgSrc:r.attachments&&r.attachments.length>0&&r.attachments[0].thumbnail}})}this.removeSelectedOutdoorCourse();l.selectedOutdoorCourseId=t;return[4,this.getIcons(i,"type")];case 1:n=s.sent();this.selectedOutdoorCourseLayer=j.geoJSON(i,{pointToLayer:function(t,e){return j.marker(e,{zIndexOffset:4e6,icon:j.divIcon({html:n[t.properties.type]?'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"><img part="outdoor-course-marker-icon" src='.concat(n[t.properties.type]," /></div></div>"):'<div part="selected-outdoor-course-marker" class="selected-outdoor-course-marker"><div part="outdoor-course-marker-container" class="outdoor-course-marker-container"></div></div>',className:"",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("click",(function(){var i=j.DomUtil.create("div");i.part="outdoor-course-coordinates-popup";i.className="outdoor-course-coordinates-popup";if(t.properties.imgSrc){var r=j.DomUtil.create("img");r.part="outdoor-course-coordinates-image";r.src=t.properties.imgSrc;i.appendChild(r)}var n=j.DomUtil.create("div");n.innerHTML=t.properties.name;n.part="outdoor-course-name";n.className="outdoor-course-name";i.appendChild(n);var s=j.DomUtil.create("button");s.innerHTML="Afficher le détail";s.part="outdoor-course-button";s.className="outdoor-course-button";s.onclick=function(){return o.outdoorCourseCardPress.emit(t.properties.id)};i.appendChild(s);e.bindPopup(i,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));e.on("mouseout",(function(){if(!o.outdoorCoursePopupIsOpen){l.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}));e.on("popupopen",(function(){o.outdoorCoursePopupIsOpen=Boolean(l.selectedOutdoorCourseId)}));e.on("popupclose",(function(){if(l.selectedOutdoorCourseId){o.outdoorCoursePopupIsOpen=false;l.selectedOutdoorCourseId=null;o.removeSelectedOutdoorCourse()}}))}}).addTo(this.map);return[2]}}))}))};t.prototype.removeSelectedOutdoorCourse=function(){l.selectedOutdoorCourseId=null;this.selectedOutdoorCourseLayer&&this.map.removeLayer(this.selectedOutdoorCourseLayer);this.selectedOutdoorCourseLayer=null};t.prototype.addCurrentPois=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(!(l.currentPois&&l.currentPois.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=l.poiTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=l.currentPois;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"type_pictogram")];case 1:s=a.sent();this.currentPoisLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:s[t.properties.type_pictogram]?'<div part="poi-marker" class="poi-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="poi-marker" class="poi-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="poi-tooltip";i.className="poi-tooltip";var r=j.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="poi-name";r.className="poi-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});a.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicContents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(!(l.trekTouristicContents&&l.trekTouristicContents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{name:i.name,category_pictogram:(t=l.touristicContentCategories.find((function(t){return t.id===i.category})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=l.trekTouristicContents;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"category_pictogram")];case 1:s=a.sent();this.currentToutisticContentsLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:s[t.properties.category_pictogram]?'<div part="touristic-content-marker" class="touristic-content-marker"><img src='.concat(s[t.properties.category_pictogram]," /></div>"):'<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="touristic-content-tooltip";i.className="touristic-content-tooltip";var r=j.DomUtil.create("div");r.innerHTML=t.properties.name;r.part="touristic-content-name";r.className="touristic-content-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});a.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentTouristicEvents=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(!(l.trekTouristicEvents&&l.trekTouristicEvents.length>0))return[3,2];e={type:"FeatureCollection",features:[]};i=function(i){e.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(t=l.touristicEventTypes.find((function(t){return t.id===i.type})))===null||t===void 0?void 0:t.pictogram},geometry:i.geometry})};for(r=0,n=l.trekTouristicEvents;r<n.length;r++){o=n[r];i(o)}return[4,this.getIcons(e,"type_pictogram")];case 1:s=a.sent();this.currentTouristicEventsLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:s[t.properties.type_pictogram]?'\n <div part="touristic-event-marker" class="touristic-event-marker"><img src='.concat(s[t.properties.type_pictogram]," /></div>"):'<div part="touristic-event-marker" class="touristic-event-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="touristic-event-tooltip";i.className="touristic-event-tooltip";var r=j.DomUtil.create("div");r.part="touristic-event-name";r.innerHTML=t.properties.name;r.className="touristic-event-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});a.label=2;case 2:return[2]}}))}))};t.prototype.addCurrentInformationDesks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!(l.currentInformationDesks&&l.currentInformationDesks.length>0))return[3,2];e={type:"FeatureCollection",features:[]};for(i=0,r=l.currentInformationDesks.filter((function(e){return t.information_desks.includes(e.id)}));i<r.length;i++){n=r[i];if(n.latitude&&n.longitude){e.features.push({type:"Feature",properties:{name:n.name,type_pictogram:n.type.pictogram},geometry:{type:"Point",coordinates:[Number(n.longitude),Number(n.latitude)]}})}}if(!(e.features.length>0))return[3,2];return[4,this.getIcons(e,"type_pictogram")];case 1:o=s.sent();this.currentInformationDesksLayer=j.geoJSON(e,{pointToLayer:function(t,e){return j.marker(e,{icon:j.divIcon({html:o[t.properties.type_pictogram]?'<div part="information-desks-marker" class="information-desks-marker"><img src='.concat(o[t.properties.type_pictogram]," /></div>"):'<div part="information-desks-marker" class="information-desks-marker"><img /></div>',className:"",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=j.DomUtil.create("div");i.part="information-desks-tooltip";i.className="information-desks-tooltip";var r=j.DomUtil.create("div");r.part="information-desks-name";r.innerHTML=t.properties.name;r.className="information-desks-name";i.appendChild(r);e.bindTooltip(i).openTooltip()}))}});s.label=2;case 2:return[2]}}))}))};t.prototype.handleLayersControl=function(){var t=this;var e={};if(this.currentStepsLayer){e[a[l.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){e[a[l.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){e[a[l.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){e[a[l.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){e[a[l.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){e[a[l.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){e[a[l.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentTouristicEventsLayer){e[a[l.language].layers.touristicEvents]=this.currentTouristicEventsLayer}if(this.currentRelatedOutdoorSitesLayer){e[a[l.language].layers.sites]=this.currentRelatedOutdoorSitesLayer}if(this.currentRelatedOutdoorCoursesLayer){e[a[l.language].layers.courses]=this.currentRelatedOutdoorCoursesLayer}if(this.layersControl){Object.keys(e).forEach((function(i){t.layersControl.addOverlay(e[i],i)}))}else if(Object.keys(e).length>0){this.layersControl=j.control.layers({},e,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent()};t.prototype.handleLayersOnRemove=function(){var t=this;if(this.layersControl){if(!this.layersControl._layers.some((function(t){return!t.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(t){return t.overlay})).forEach((function(e){t.layersControl.removeLayer(e.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.departureArrivalLayer){this.map.removeLayer(this.departureArrivalLayer);this.departureArrivalLayer=null}if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentReferencePointsLayer){this.map.removeLayer(this.currentReferencePointsLayer);this.currentReferencePointsLayer=null}if(this.currentStepsLayer){this.map.removeLayer(this.currentStepsLayer);this.currentStepsLayer=null}if(this.currentToutisticContentsLayer){this.map.removeLayer(this.currentToutisticContentsLayer);this.currentToutisticContentsLayer=null}if(this.currentTouristicEventsLayer){this.map.removeLayer(this.currentTouristicEventsLayer);this.currentTouristicEventsLayer=null}if(this.currentOutdoorSiteLayer){this.map.removeLayer(this.currentOutdoorSiteLayer);this.currentOutdoorSiteLayer=null}if(this.currentOutdoorCourseLayer){this.map.removeLayer(this.currentOutdoorCourseLayer);this.currentOutdoorCourseLayer=null}if(this.currentRelatedOutdoorSitesLayer){this.map.removeLayer(this.currentRelatedOutdoorSitesLayer);this.currentRelatedOutdoorSitesLayer=null}if(this.currentRelatedOutdoorCoursesLayer){this.map.removeLayer(this.currentRelatedOutdoorCoursesLayer);this.currentRelatedOutdoorCoursesLayer=null}};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/layers.svg"));var n=o("".concat("","assets/contract.svg"));return i(r,{key:"7bb7283327e9c052d62a3e289c984dde39f222fd",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-background":this.colorBackground,"--color-markers":this.colorMarkers?this.colorMarkers:this.colorPrimaryApp,"--color-clusters":this.colorClusters?this.colorClusters:this.colorPrimaryApp,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(e,")"),"--contract-image-src":"url(".concat(n,")"),"--map-bottom-space-height":this.isLargeView||!this.grwApp?"0px":"144px"}},i("div",{key:"791ec31343feebab7ab861f8f5b754a3d1c01ac7",id:"map",part:"map",class:l.currentTouristicContent||l.currentTouristicEvent||l.currentOutdoorSite||l.currentOutdoorCourse?"common-map":l.currentTrek?"trek-map":"treks-map",ref:function(e){return t.mapRef=e}}),!this.mapIsReady&&i("div",{part:"map-loader-container",class:"map-loader-container"},i("span",{part:"loader",class:"loader"})))};return t}());ge.style=ve;function we(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var o=tt();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});e.mousewheel={enabled:false};var s;var a=it();var c;var l=[];function p(t){var e=10;var i=40;var r=800;var n=0;var o=0;var s=0;var a=0;if("detail"in t){o=t.detail}if("wheelDelta"in t){o=-t.wheelDelta/120}if("wheelDeltaY"in t){o=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=o;o=0}s=n*e;a=o*e;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){s=t.deltaX}if(t.shiftKey&&!s){s=a;a=0}if((s||a)&&t.deltaMode){if(t.deltaMode===1){s*=i;a*=i}else{s*=r;a*=r}}if(s&&!n){n=s<1?-1:1}if(a&&!o){o=a<1?-1:1}return{spinX:n,spinY:o,pixelX:s,pixelY:a}}function u(){if(!e.enabled)return;e.mouseEntered=true}function d(){if(!e.enabled)return;e.mouseEntered=false}function f(t){if(e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta){return false}if(e.params.mousewheel.thresholdTime&&it()-a<e.params.mousewheel.thresholdTime){return false}if(t.delta>=6&&it()-a<60){return true}if(t.direction<0){if((!e.isEnd||e.params.loop)&&!e.animating){e.slideNext();n("scroll",t.raw)}}else if((!e.isBeginning||e.params.loop)&&!e.animating){e.slidePrev();n("scroll",t.raw)}a=(new o.Date).getTime();return false}function h(t){var i=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&i.releaseOnEdges){return true}}else if(e.isBeginning&&!e.params.loop&&i.releaseOnEdges){return true}return false}function m(t){var i=t;var r=true;if(!e.enabled)return;if(t.target.closest(".".concat(e.params.mousewheel.noMousewheelClass)))return;var o=e.params.mousewheel;if(e.params.cssMode){i.preventDefault()}var a=e.el;if(e.params.mousewheel.eventsTarget!=="container"){a=document.querySelector(e.params.mousewheel.eventsTarget)}var u=a&&a.contains(i.target);if(!e.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=e.rtlTranslate?-1:1;var v=p(i);if(o.forceToAxis){if(e.isHorizontal()){if(Math.abs(v.pixelX)>Math.abs(v.pixelY))d=-v.pixelX*m;else return true}else if(Math.abs(v.pixelY)>Math.abs(v.pixelX))d=-v.pixelY;else return true}else{d=Math.abs(v.pixelX)>Math.abs(v.pixelY)?-v.pixelX*m:-v.pixelY}if(d===0)return true;if(o.invert)d=-d;var g=e.getTranslate()+d*o.sensitivity;if(g>=e.minTranslate())g=e.minTranslate();if(g<=e.maxTranslate())g=e.maxTranslate();r=e.params.loop?true:!(g===e.minTranslate()||g===e.maxTranslate());if(r&&e.params.nested)i.stopPropagation();if(!e.params.freeMode||!e.params.freeMode.enabled){var w={time:it(),delta:Math.abs(d),direction:Math.sign(d),raw:t};if(l.length>=2){l.shift()}var b=l.length?l[l.length-1]:undefined;l.push(w);if(b){if(w.direction!==b.direction||w.delta>b.delta||w.time>b.time+150){f(w)}}else{f(w)}if(h(w)){return true}}else{var k={time:it(),delta:Math.abs(d),direction:Math.sign(d)};var x=c&&k.time<c.time+500&&k.delta<=c.delta&&k.direction===c.direction;if(!x){c=undefined;var y=e.getTranslate()+d*o.sensitivity;var A=e.isBeginning;var _=e.isEnd;if(y>=e.minTranslate())y=e.minTranslate();if(y<=e.maxTranslate())y=e.maxTranslate();e.setTransition(0);e.setTranslate(y);e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses();if(!A&&e.isBeginning||!_&&e.isEnd){e.updateSlidesClasses()}if(e.params.loop){e.loopFix({direction:k.direction<0?"next":"prev",byMousewheel:true})}if(e.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}var b=l.length?l[l.length-1]:undefined;var z=l[0];l.push(k);if(b&&(k.delta>b.delta||k.direction!==b.direction)){l.splice(0)}else if(l.length>=15&&k.time-z.time<500&&z.delta-k.delta>=1&&k.delta<=6){var L=d>0?.8:.2;c=k;l.splice(0);s=et((function(){e.slideToClosest(e.params.speed,true,undefined,L)}),0)}if(!s){s=et((function(){var t=.5;c=k;l.splice(0);e.slideToClosest(e.params.speed,true,undefined,t)}),500)}}if(!x)n("scroll",i);if(e.params.autoplay&&e.params.autoplayDisableOnInteraction)e.autoplay.stop();if(y===e.minTranslate()||y===e.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function v(t){var i=e.el;if(e.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(e.params.mousewheel.eventsTarget)}i[t]("mouseenter",u);i[t]("mouseleave",d);i[t]("wheel",m)}function g(){if(e.params.cssMode){e.wrapperEl.removeEventListener("wheel",m);return true}if(e.mousewheel.enabled)return false;v("addEventListener");e.mousewheel.enabled=true;return true}function w(){if(e.params.cssMode){e.wrapperEl.addEventListener(event,m);return true}if(!e.mousewheel.enabled)return false;v("removeEventListener");e.mousewheel.enabled=false;return true}r("init",(function(){if(!e.params.mousewheel.enabled&&e.params.cssMode){w()}if(e.params.mousewheel.enabled)g()}));r("destroy",(function(){if(e.params.cssMode){g()}if(e.mousewheel.enabled)w()}));Object.assign(e.mousewheel,{enable:g,disable:w})}function be(t){var e=t.swiper,i=t.extendParams,r=t.on,n=t.emit;var o=rt();var s=false;var a=null;var c=null;var l;var p;var u;var d;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}});e.scrollbar={el:null,dragEl:null};function f(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar,i=e.rtlTranslate;var r=t.dragEl,n=t.el;var o=e.params.scrollbar;var s=e.params.loop?e.progressLoop:e.progress;var c=p;var l=(u-p)*s;if(i){l=-l;if(l>0){c=p-l;l=0}else if(-l+p>u){c=u+l}}else if(l<0){c=p+l;l=0}else if(l+p>u){c=u-l}if(e.isHorizontal()){r.style.transform="translate3d(".concat(l,"px, 0, 0)");r.style.width="".concat(c,"px")}else{r.style.transform="translate3d(0px, ".concat(l,"px, 0)");r.style.height="".concat(c,"px")}if(o.hide){clearTimeout(a);n.style.opacity=1;a=setTimeout((function(){n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function h(t){if(!e.params.scrollbar.el||!e.scrollbar.el)return;e.scrollbar.dragEl.style.transitionDuration="".concat(t,"ms")}function m(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;var t=e.scrollbar;var i=t.dragEl,r=t.el;i.style.width="";i.style.height="";u=e.isHorizontal()?r.offsetWidth:r.offsetHeight;d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0));if(e.params.scrollbar.dragSize==="auto"){p=u*d}else{p=parseInt(e.params.scrollbar.dragSize,10)}if(e.isHorizontal()){i.style.width="".concat(p,"px")}else{i.style.height="".concat(p,"px")}if(d>=1){r.style.display="none"}else{r.style.display=""}if(e.params.scrollbar.hide){r.style.opacity=0}if(e.params.watchOverflow&&e.enabled){t.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}}function v(t){return e.isHorizontal()?t.clientX:t.clientY}function g(t){var i=e.scrollbar,r=e.rtlTranslate;var n=i.el;var o;o=(v(t)-st(n)[e.isHorizontal()?"left":"top"]-(l!==null?l:p/2))/(u-p);o=Math.max(Math.min(o,1),0);if(r){o=1-o}var s=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*o;e.updateProgress(s);e.setTranslate(s);e.updateActiveIndex();e.updateSlidesClasses()}function w(t){var i=e.params.scrollbar;var r=e.scrollbar,o=e.wrapperEl;var a=r.el,p=r.dragEl;s=true;l=t.target===p?v(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null;t.preventDefault();t.stopPropagation();o.style.transitionDuration="100ms";p.style.transitionDuration="100ms";g(t);clearTimeout(c);a.style.transitionDuration="0ms";if(i.hide){a.style.opacity=1}if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="none"}n("scrollbarDragStart",t)}function b(t){var i=e.scrollbar,r=e.wrapperEl;var o=i.el,a=i.dragEl;if(!s)return;if(t.preventDefault)t.preventDefault();else t.returnValue=false;g(t);r.style.transitionDuration="0ms";o.style.transitionDuration="0ms";a.style.transitionDuration="0ms";n("scrollbarDragMove",t)}function k(t){var i=e.params.scrollbar;var r=e.scrollbar,o=e.wrapperEl;var a=r.el;if(!s)return;s=false;if(e.params.cssMode){e.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(i.hide){clearTimeout(c);c=et((function(){a.style.opacity=0;a.style.transitionDuration="400ms"}),1e3)}n("scrollbarDragEnd",t);if(i.snapOnRelease){e.slideToClosest()}}function x(t){var i=e.scrollbar,r=e.params;var n=i.el;if(!n)return;var s=n;var a=r.passiveListeners?{passive:false,capture:false}:false;var c=r.passiveListeners?{passive:true,capture:false}:false;if(!s)return;var l=t==="on"?"addEventListener":"removeEventListener";s[l]("pointerdown",w,a);o[l]("pointermove",b,a);o[l]("pointerup",k,c)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("on")}function A(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;x("off")}function _(){var t=e.scrollbar,i=e.el;e.params.scrollbar=nt(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});var r=e.params.scrollbar;if(!r.el)return;var n;if(typeof r.el==="string"&&e.isElement){n=e.el.shadowRoot.querySelector(r.el)}if(!n&&typeof r.el==="string"){n=o.querySelectorAll(r.el)}else if(!n){n=r.el}if(e.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(e.isHorizontal()?r.horizontalClass:r.verticalClass);var s;if(n){s=n.querySelector(".".concat(e.params.scrollbar.dragClass));if(!s){s=ot("div",e.params.scrollbar.dragClass);n.append(s)}}Object.assign(t,{el:n,dragEl:s});if(r.draggable){y()}if(n){n.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}function z(){var t=e.params.scrollbar;var i=e.scrollbar.el;if(i){i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass)}A()}r("init",(function(){if(e.params.scrollbar.enabled===false){M()}else{_();m();f()}}));r("update resize observerUpdate lock unlock",(function(){m()}));r("setTranslate",(function(){f()}));r("setTransition",(function(t,e){h(e)}));r("enable disable",(function(){var t=e.scrollbar.el;if(t){t.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}}));r("destroy",(function(){z()}));var L=function(){e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass)}_();m();f()};var M=function(){e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass);if(e.scrollbar.el){e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass)}z()};Object.assign(e.scrollbar,{enable:L,disable:M,updateSize:m,setTranslate:f,init:_,destroy:z})}function ke(t){var e=t.swiper,i=t.extendParams,r=t.emit,n=t.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(e.params.cssMode)return;var t=e.getTranslate();e.setTranslate(t);e.setTransition(0);e.touchEventsData.velocities.length=0;e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function s(){if(e.params.cssMode)return;var t=e.touchEventsData,i=e.touches;if(t.velocities.length===0){t.velocities.push({position:i[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime})}t.velocities.push({position:i[e.isHorizontal()?"currentX":"currentY"],time:it()})}function a(t){var i=t.currentPos;if(e.params.cssMode)return;var o=e.params,s=e.wrapperEl,a=e.rtlTranslate,c=e.snapGrid,l=e.touchEventsData;var p=it();var u=p-l.touchStartTime;if(i<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(i>-e.maxTranslate()){if(e.slides.length<c.length){e.slideTo(c.length-1)}else{e.slideTo(e.slides.length-1)}return}if(o.freeMode.momentum){if(l.velocities.length>1){var d=l.velocities.pop();var f=l.velocities.pop();var h=d.position-f.position;var m=d.time-f.time;e.velocity=h/m;e.velocity/=2;if(Math.abs(e.velocity)<o.freeMode.minimumVelocity){e.velocity=0}if(m>150||it()-d.time>300){e.velocity=0}}else{e.velocity=0}e.velocity*=o.freeMode.momentumVelocityRatio;l.velocities.length=0;var v=1e3*o.freeMode.momentumRatio;var g=e.velocity*v;var w=e.translate+g;if(a)w=-w;var b=false;var k;var x=Math.abs(e.velocity)*20*o.freeMode.momentumBounceRatio;var y=void 0;if(w<e.maxTranslate()){if(o.freeMode.momentumBounce){if(w+e.maxTranslate()<-x){w=e.maxTranslate()-x}k=e.maxTranslate();b=true;l.allowMomentumBounce=true}else{w=e.maxTranslate()}if(o.loop&&o.centeredSlides)y=true}else if(w>e.minTranslate()){if(o.freeMode.momentumBounce){if(w-e.minTranslate()>x){w=e.minTranslate()+x}k=e.minTranslate();b=true;l.allowMomentumBounce=true}else{w=e.minTranslate()}if(o.loop&&o.centeredSlides)y=true}else if(o.freeMode.sticky){var A=void 0;for(var _=0;_<c.length;_+=1){if(c[_]>-w){A=_;break}}if(Math.abs(c[A]-w)<Math.abs(c[A-1]-w)||e.swipeDirection==="next"){w=c[A]}else{w=c[A-1]}w=-w}if(y){n("transitionEnd",(function(){e.loopFix()}))}if(e.velocity!==0){if(a){v=Math.abs((-w-e.translate)/e.velocity)}else{v=Math.abs((w-e.translate)/e.velocity)}if(o.freeMode.sticky){var z=Math.abs((a?-w:w)-e.translate);var L=e.slidesSizesGrid[e.activeIndex];if(z<L){v=o.speed}else if(z<2*L){v=o.speed*1.5}else{v=o.speed*2.5}}}else if(o.freeMode.sticky){e.slideToClosest();return}if(o.freeMode.momentumBounce&&b){e.updateProgress(k);e.setTransition(v);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);e.animating=true;at(s,(function(){if(!e||e.destroyed||!l.allowMomentumBounce)return;r("momentumBounce");e.setTransition(o.speed);setTimeout((function(){e.setTranslate(k);at(s,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}),0)}))}else if(e.velocity){r("_freeModeNoMomentumRelease");e.updateProgress(w);e.setTransition(v);e.setTranslate(w);e.transitionStart(true,e.swipeDirection);if(!e.animating){e.animating=true;at(s,(function(){if(!e||e.destroyed)return;e.transitionEnd()}))}}else{e.updateProgress(w)}e.updateActiveIndex();e.updateSlidesClasses()}else if(o.freeMode.sticky){e.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){e.updateProgress();e.updateActiveIndex();e.updateSlidesClasses()}}Object.assign(e,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:a}})}var xe='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"/></svg>';var ye='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path fill="currentColor" d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>';var Ae='<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 _e='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-course-detail{overflow:hidden}.outdoor-course-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-course-detail-container .outdoor-course-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-course-detail-container .outdoor-course-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-course-detail-container .default-outdoor-course-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-course-detail-container .outdoor-course-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-course-detail-container .outdoor-course-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.outdoor-course-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-course-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-course-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-course-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-course-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-course-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-course-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-course-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-course-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-course-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-course-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-course-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-container,.outdoor-course-detail-container .touristic-event-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-course-detail-container .description-container a,.outdoor-course-detail-container .advice-container a,.outdoor-course-detail-container .weather-container a,.outdoor-course-detail-container .touristic-content-container a,.outdoor-course-detail-container .touristic-event-container a{color:var(--color-primary-app)}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-course-detail-container .description-title,.outdoor-course-detail-container .advice-title,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{margin-bottom:16px}.outdoor-course-detail-container .description-container,.outdoor-course-detail-container .advice-container,.outdoor-course-detail-container .weather-container,.outdoor-course-detail-container .touristic-content-title,.outdoor-course-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-course-detail-container .description-container .description ol{position:relative;counter-reset:referencePoint}.outdoor-course-detail-container .description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.outdoor-course-detail-container .description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.outdoor-course-detail-container .description-container .description ol li p{margin:0}.outdoor-course-detail-container .description-container .description ol li:not(:first-child){margin-top:12px}.outdoor-course-detail-container .description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.outdoor-course-detail-container .current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.outdoor-course-detail-container .current-advice-container .icon img{width:26px;margin-right:8px}.outdoor-course-detail-container .advice-container div:last-child{margin-bottom:0px}.outdoor-course-detail-container .departure-container,.outdoor-course-detail-container .cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.outdoor-course-detail-container .departure-container .departure-title,.outdoor-course-detail-container .departure-container .cities-title,.outdoor-course-detail-container .cities-container .departure-title,.outdoor-course-detail-container .cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.outdoor-course-detail-container .weather-container iframe{width:100%}.outdoor-course-detail-container .divider{margin:16px;border-top:1px solid var(--color-outline)}.outdoor-course-detail-container .detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-course-detail-container .type .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.outdoor-course-detail-container .offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.outdoor-course-detail-container .offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-course-detail-container .offline-button .icon{display:-ms-flexbox;display:flex}.outdoor-course-detail-container .departure-container{padding-top:24px}.outdoor-course-detail-container .advice-container .icon{margin-right:8px}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.accessibilities-container{padding:0px 24px 0px 24px;font-size:16px;line-height:24px;font-weight:400}.accessibilities-container a{color:var(--color-primary-app)}.accessibilities-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}';var ze=_e;var Le=1;var Me=t("grw_outdoor_course_detail",function(){function t(t){e(this,t);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.displayFullscreen=false;this.currentOutdoorCourse=undefined;this.offline=false}t.prototype.componentDidLoad=function(){var t=this;this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,pt,ut,ke,we],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[ke,we,be],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}},loop:false});this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[ke,we,be],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}},loop:false});this.swiperPois=new ct(this.swiperPoisRef,{modules:[ke,we,be],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}},loop:false});if(this.poiRef){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:Le});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:Le});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:Le});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}g("currentOutdoorCourse",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(l.currentOutdoorCourse){this.currentOutdoorCourse=l.currentOutdoorCourse;this.offline=this.currentOutdoorCourse.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorCourse.attachments&&this.currentOutdoorCourse.attachments[0]&&this.currentOutdoorCourse.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=l.outdoorCourseTypes&&this.currentOutdoorCourse&&l.outdoorCourseTypes.find((function(e){return e.id===t.currentOutdoorCourse.type}));var s=l.cities&&l.cities.find((function(e){return e.id===t.currentOutdoorCourse.cities[0]}));var c=l.outdoorRatings&&this.currentOutdoorCourse&&l.outdoorRatings.filter((function(e){return t.currentOutdoorCourse.ratings.includes(e.id)}));var p=c&&__spreadArray([],new Set(c.map((function(t){return t.scale}))),true);var u=p&&l.outdoorRatingsScale.filter((function(t){return p.includes(t.id)}));return i(r,{key:"0c53ba770f1205fa1cdfd6857985876e25c3af8b",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},this.currentOutdoorCourse&&i("div",{part:"outdoor-course-detail-container",class:"outdoor-course-detail-container",ref:function(e){return t.outdoorCourseDetailContainerRef=e}},i("div",{part:"outdoor-course-images-container",class:"outdoor-course-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorCourse.attachments.filter((function(t){return t.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"outdoor-course-close-fullscreen-button",class:"outdoor-course-close-fullscreen-button",onClick:function(){return t.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:t.offline?r.thumbnail:r.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-course-img default-outdoor-course-img";t.target.src=e},alt:r.legend}))})):i("img",{part:"outdoor-course-img",class:"outdoor-course-img default-outdoor-course-img",src:e,loading:"lazy",alt:""})),i("div",null,i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),i("div",{part:"outdoor-course-name",class:"outdoor-course-name"},this.currentOutdoorCourse.name),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{part:"icon-label",class:"icon-label type"},n.pictogram&&i("img",{part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{part:"label",class:"label"},n.name)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon",innerHTML:dt}),i("span",{part:"label",class:"label"},A(this.currentOutdoorCourse.duration))),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon",innerHTML:ft}),i("span",{part:"label",class:"label"},_(this.currentOutdoorCourse.length))),this.currentOutdoorCourse.max_elevation&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon",innerHTML:ht}),i("span",{part:"label",class:"label"},z(this.currentOutdoorCourse.max_elevation))),c&&u.map((function(t){return i("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(c.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},a[l.language].downloads),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentOutdoorCourse.pdf).concat(l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentOutdoorCourse.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},a[l.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentOutdoorCourse.description})),this.currentOutdoorCourse&&this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},a[l.language].departure," : "),i("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorCourse.cities&&this.currentOutdoorCourse.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},a[l.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.currentOutdoorCourse.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),this.currentOutdoorCourse.advice&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},a[l.language].recommendations),this.currentOutdoorCourse.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:Ae}),i("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorCourse.advice})))),this.currentOutdoorCourse.accessibility&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilites-title",class:"accessibilities-title"},a[l.language].accessibility),i("div",{part:"accessibilities",innerHTML:this.currentOutdoorCourse.accessibility}))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},a[l.language].touristicContents(l.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((function(e){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:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),l.trekTouristicEvents&&l.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},a[l.language].touristicEvents(l.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((function(e){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:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),l.currentPois&&l.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},a[l.language].pois(l.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&s&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(s.id,"0#").concat(this.colorPrimaryApp)}))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());Me.style=ze;function Ce(t,e,i,r){return fetch("".concat(t,"touristiccontent/").concat(i,"/?language=").concat(e,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts"),r)}function Be(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function Pe(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function Fe(t,e,i,r){return fetch("".concat(t,"touristiccontent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website,districts&page_size=999"),r)}function Te(t,e,i,r){return fetch("".concat(t,"touristicevent/").concat(i,"/?language=").concat(e,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),r)}function Oe(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_trek=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function Ee(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorsite=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}function je(t,e,i,r){return fetch("".concat(t,"touristicevent/?language=").concat(e,"&near_outdoorcourse=").concat(i,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),r)}var Ye=t("grw_outdoor_course_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorCourseId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleOutdoorCourse()};t.prototype.handleOutdoorCourse=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,N("outdoorCourses",this.outdoorCourseId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorCourse(t)}else{this.handleOnlineOutdoorCourse()}return[2]}}))}))};t.prototype.handleOfflineOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,p,u,d,f,h;return __generator(this,(function(m){switch(m.label){case 0:e=l;return[4,S("cities")];case 1:e.cities=m.sent();i=l;return[4,S("districts")];case 2:i.districts=m.sent();r=l;return[4,S("themes")];case 3:r.themes=m.sent();n=l;return[4,S("touristicContentCategories")];case 4:n.touristicContentCategories=m.sent();o=l;return[4,S("touristicEventTypes")];case 5:o.touristicEventTypes=m.sent();s=l;return[4,S("poiTypes")];case 6:s.poiTypes=m.sent();a=l;return[4,S("outdoorCourseTypes")];case 7:a.outdoorCourseTypes=m.sent();return[4,S("pois",["url"])];case 8:c=m.sent();p=c.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));l.currentPois=p;return[4,S("touristicContents",["url"])];case 9:u=m.sent();d=u.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));l.trekTouristicContents=d;return[4,S("touristicEvents",["url"])];case 10:f=m.sent();h=f.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));l.trekTouristicEvents=h;return[4,M(t,C,["url"])];case 11:m.sent();l.currentOutdoorCourse=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorCourse=function(){var t=this;var e=[];e.push(!l.cities?R(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?q(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorCourseTypes?mt(l.api,l.language,this.init):new Response("null"));e.push(Fe(l.api,l.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(l.api,"touristiccontent_category/?language=").concat(l.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(je(l.api,l.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(l.api,"touristicevent_type/?language=").concat(l.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init));e.push(vt(l.api,l.language,this.outdoorCourseId,this.init));e.push(fetch("".concat(l.api,"poi_type/?language=").concat(l.language,"&fields=id,pictogram"),this.init));e.push(gt(l.api,l.language,this.outdoorCourseId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],p=e[7],u=e[8],d=e[9],f=e[10];return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){l.networkError=false;if(i){l.cities=i.results}if(r){l.districts=r.results}if(n){l.themes=n.results}if(o){l.outdoorCourseTypes=o.results}if(s){l.trekTouristicContents=s.results}if(a){l.touristicContentCategories=a.results}if(c){l.trekTouristicEvents=c.results}if(p){l.touristicEventTypes=p.results}if(u){l.currentPois=u.results}if(d){l.poiTypes=d.results}l.currentOutdoorCourse=f;return[2]}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"06ce371568bf30472e5bfa9030176a10d2666c80"})};return t}());var Ne='<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 Se='<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 He='<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 Ge='<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 Ze='<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 De(t,e,i,r,n,o,s,a,c){var l="".concat(t,"outdoor_site/?language=").concat(e,"&root_sites_only=true&published=true");i&&(l+="&in_bbox=".concat(i));r&&(l+="&cities=".concat(r));n&&(l+="&districts=".concat(n));o&&(l+="&structures=".concat(o));s&&(l+="&themes=".concat(s));a&&(l+="&portals=".concat(a));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&page_size=999";return fetch(l,c)}function Ie(t,e,i,r){var n="".concat(t,"outdoor_site/").concat(i,"/?language=").concat(e,"&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&page_size=999";return fetch(n,r)}function Re(t,e,i){var r="".concat(t,"outdoor_sitetype/?language=").concat(e,"&published=true");return fetch(r,i)}function qe(t,e,i){var r="".concat(t,"outdoor_practice/?language=").concat(e,"&published=true");return fetch(r,i)}function Qe(t,e,i,r){return fetch("".concat(t,"poi/?language=").concat(e,"&sites=").concat(i,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),r)}function Ve(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:return[4,N("outdoorSites",t)];case 1:e=i.sent();return[2,e&&e.offline]}}))}))}var Ue='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-outdoor-site-detail{overflow:hidden}.swiper-related-outdoor-sites,.swiper-related-outdoor-courses{padding-right:32px;padding-left:32px;padding-bottom:20px}.related-outdoor-sites-title,.related-outdoor-courses-title{padding:0px 24px 0px 24px;color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;padding:0px 24px 0px 24px;margin-bottom:16px}.related-outdoor-sites-container,.related-outdoor-courses-container{font-size:16px;line-height:24px;font-weight:400}.related-outdoor-sites-container a,.related-outdoor-courses-container a{color:var(--color-primary-app)}grw-outdoor-site-detail{overflow:hidden}.outdoor-site-options{display:-ms-flexbox;display:flex;position:relative;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.outdoor-site-options::-webkit-scrollbar{display:none}.outdoor-site-options .outdoor-site-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.outdoor-site-options .outdoor-site-option:hover{color:var(--color-primary-app)}@media (hover: none){.outdoor-site-options .outdoor-site-option:not(.selected-outdoor-site-option):hover{color:inherit}}.outdoor-site-options .outdoor-site-option:last-of-type{margin-right:16px}.outdoor-site-options .selected-outdoor-site-option{color:var(--color-primary-app)}.outdoor-site-options .outdoor-site-indicator-selected-outdoor-site-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.outdoor-site-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.outdoor-site-detail-container .outdoor-site-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.outdoor-site-detail-container .outdoor-site-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.outdoor-site-detail-container .default-outdoor-site-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.outdoor-site-detail-container .sub-container{padding:24px 24px 0px 24px}.outdoor-site-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.outdoor-site-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.outdoor-site-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.outdoor-site-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:100%}.outdoor-site-detail-container .row .icon{margin-right:8px;color:var(--color-primary-app)}.outdoor-site-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.outdoor-site-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.outdoor-site-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.outdoor-site-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.outdoor-site-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.outdoor-site-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.outdoor-site-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.outdoor-site-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.outdoor-site-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .weblinks-container{padding:0px 24px 0px 24px}.outdoor-site-detail-container .ambiance,.outdoor-site-detail-container .description-teaser,.outdoor-site-detail-container .description-container,.outdoor-site-detail-container .altimetric-profile-container,.outdoor-site-detail-container .access-container,.outdoor-site-detail-container .public-transport-container,.outdoor-site-detail-container .advice-container,.outdoor-site-detail-container .advised-parking-container,.outdoor-site-detail-container .sensitive-areas-container,.outdoor-site-detail-container .information-desks-container,.outdoor-site-detail-container .pois-container,.outdoor-site-detail-container .source-container,.outdoor-site-detail-container .accessibilities-container,.outdoor-site-detail-container .weather-container,.outdoor-site-detail-container .parent-outdoor-site-container,.outdoor-site-detail-container .step-container,.outdoor-site-detail-container .touristic-content-container,.outdoor-site-detail-container .touristic-event-container,.outdoor-site-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.outdoor-site-detail-container .ambiance a,.outdoor-site-detail-container .description-teaser a,.outdoor-site-detail-container .description-container a,.outdoor-site-detail-container .altimetric-profile-container a,.outdoor-site-detail-container .access-container a,.outdoor-site-detail-container .public-transport-container a,.outdoor-site-detail-container .advice-container a,.outdoor-site-detail-container .advised-parking-container a,.outdoor-site-detail-container .sensitive-areas-container a,.outdoor-site-detail-container .information-desks-container a,.outdoor-site-detail-container .pois-container a,.outdoor-site-detail-container .source-container a,.outdoor-site-detail-container .accessibilities-container a,.outdoor-site-detail-container .weather-container a,.outdoor-site-detail-container .parent-outdoor-site-container a,.outdoor-site-detail-container .step-container a,.outdoor-site-detail-container .touristic-content-container a,.outdoor-site-detail-container .touristic-event-container a,.outdoor-site-detail-container .weblinks-container a{color:var(--color-primary-app)}.outdoor-site-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.outdoor-site-detail-container .access{margin-bottom:16px}.outdoor-site-detail-container .advised-parking-title{font-size:16px}.outdoor-site-detail-container .description-title,.outdoor-site-detail-container .altimetric-profile-title,.outdoor-site-detail-container .access-title,.outdoor-site-detail-container .public-transport-title,.outdoor-site-detail-container .advice-title,.outdoor-site-detail-container .advised-parking-title,.outdoor-site-detail-container .sensitive-areas-title,.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .source-title,.outdoor-site-detail-container .accessibilities-title,.outdoor-site-detail-container .parent-outdoor-site-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title,.outdoor-site-detail-container .weblinks-title{margin-bottom:16px}.outdoor-site-detail-container .step-title{margin-bottom:12px}.outdoor-site-detail-container .information-desks-title,.outdoor-site-detail-container .pois-title,.outdoor-site-detail-container .step-title,.outdoor-site-detail-container .touristic-content-title,.outdoor-site-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.outdoor-site-detail-container .parent-outdoor-site-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.outdoor-site-detail-container .parent-outdoor-site-title div{margin-right:4px}.outdoor-site-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.outdoor-site-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container div:nth-child(2) div:first-child{padding:0px 0px 12px 0px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.outdoor-site-images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent .icon{display:-ms-flexbox;display:flex;-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}.step-container .swiper-wrapper{padding-bottom:16px}.outdoor-site-image-legend{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.outdoor-site-close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.practice .icon{display:-ms-flexbox;display:flex;border-radius:100%;padding:2px;max-height:20px;max-width:20px}.offline-button{cursor:pointer;font-size:14px;border:none;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.offline-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.offline-button .icon{display:-ms-flexbox;display:flex}.departure-container{padding-top:24px}.advice-container .icon{margin-right:8px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:100px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-on-surface);font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}';var Xe=Ue;var Je=1;var Ke=t("grw_outdoor_site_detail",function(){function t(t){e(this,t);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.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",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.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.offline=false;this.displayFullscreen=false;this.currentOutdoorSite=undefined;this.sources=undefined}t.prototype.onDownloadPress=function(){this.downloadRootOutdoorSite()};t.prototype.onDeletePress=function(){this.deleteOutdoorSite()};t.prototype.componentDidLoad=function(){var t=this;this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,pt,ut,ke,we],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.swiperRelatedOutdoorSites=new ct(this.swiperRelatedOutdoorSitesRef,{modules:[ke,we,be],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}},loop:false});this.swiperInformationDesks=new ct(this.swiperInformationDesksRef,{modules:[ke,we,be],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}},loop:false});this.swiperRelatedOutdoorCourses=new ct(this.swiperRelatedOutdoorCoursesRef,{modules:[ke,we,be],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}},loop:false});this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[ke,we,be],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}},loop:false});this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[ke,we,be],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}},loop:false});this.swiperPois=new ct(this.swiperPoisRef,{modules:[ke,we,be],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}},loop:false});if(this.informationPlacesRef){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i)}),{threshold:Je});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.poiRef){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i)}),{threshold:Je});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i)}),{threshold:Je});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i)}),{threshold:Je});this.touristicEventObserver.observe(this.touristicEventsRef)}if(this.sitesRef){this.siteObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sitesIsInViewport.emit(i)}),{threshold:Je});this.siteObserver.observe(this.sitesRef)}if(this.coursesRef){this.courseObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.coursesIsInViewport.emit(i)}),{threshold:Je});this.courseObserver.observe(this.coursesRef)}};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(l.currentOutdoorSite){this.sources=l.sources.filter((function(t){return l.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=l.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}g("currentOutdoorSite",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(l.currentOutdoorSite){this.sources=l.sources.filter((function(t){return l.currentOutdoorSite.source.includes(t.id)}));this.currentOutdoorSite=l.currentOutdoorSite;this.offline=this.currentOutdoorSite.offline}return[2]}))}))}));return[2]}))}))};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentOutdoorSite.attachments&&this.currentOutdoorSite.attachments[0]&&this.currentOutdoorSite.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.downloadRootOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s,a,c,a,p;var u=this;return __generator(this,(function(d){switch(d.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};if(!!l.outdoorSites)return[3,3];return[4,De(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districtsFromProviders,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,i)];case 1:r=d.sent();n=l;return[4,r.json()];case 2:n.outdoorSites=d.sent().results;l.currentOutdoorSites=l.outdoorSites;d.label=3;case 3:return[4,H("outdoorSites")];case 4:o=d.sent().filter((function(t){return t.offline===true}));s=l.outdoorSites;s=s.filter((function(t){return o.findIndex((function(e){return e.id===t.id}))===-1}));return[4,G("outdoorSites",s)];case 5:d.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 6:d.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,this.currentOutdoorSite.geometry)];case 7:d.sent();return[4,Z(l.themes,C)];case 8:d.sent();return[4,Z(l.outdoorSiteTypes,C)];case 9:d.sent();return[4,Z(l.outdoorPractices,C)];case 10:d.sent();return[4,Z(l.sources,C)];case 11:d.sent();return[4,Z(this.currentOutdoorSite,C,true,["url"])];case 12:d.sent();return[4,G("cities",l.cities)];case 13:d.sent();return[4,G("districts",l.districts)];case 14:d.sent();return[4,G("themes",l.themes)];case 15:d.sent();return[4,G("outdoorSiteTypes",l.outdoorSiteTypes)];case 16:d.sent();return[4,G("outdoorPractices",l.outdoorPractices)];case 17:d.sent();return[4,G("outdoorRatings",l.outdoorRatings)];case 18:d.sent();return[4,G("outdoorRatingsScale",l.outdoorRatingsScale)];case 19:d.sent();return[4,G("pois",l.currentPois)];case 20:d.sent();return[4,G("poiTypes",l.poiTypes)];case 21:d.sent();return[4,G("informationDesks",l.currentInformationDesks)];case 22:d.sent();return[4,G("outdoorCourseTypes",l.outdoorCourseTypes)];case 23:d.sent();return[4,G("touristicEventTypes",l.touristicEventTypes)];case 24:d.sent();return[4,G("touristicContentCategories",l.touristicContentCategories)];case 25:d.sent();return[4,G("sources",l.sources)];case 26:d.sent();return[4,Z(l.currentPois,C,true,["url"])];case 27:d.sent();return[4,Z(l.currentInformationDesks,C,true)];case 28:d.sent();return[4,Z(l.outdoorCourseTypes,C,true)];case 29:d.sent();return[4,Z(l.touristicContentCategories,C,true)];case 30:d.sent();return[4,Z(l.trekTouristicContents,C,true,["url"])];case 31:d.sent();l.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,G("touristicContents",l.trekTouristicContents)];case 32:d.sent();return[4,Z(l.trekTouristicEvents,C,true,["url"])];case 33:d.sent();l.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,G("touristicEvents",l.trekTouristicEvents)];case 34:d.sent();if(!(l.currentOutdoorSite.courses&&l.currentOutdoorSite.courses.length>0))return[3,38];a=0;d.label=35;case 35:if(!(a<l.currentOutdoorSite.courses.length))return[3,38];c=l.currentOutdoorSite.courses[a];return[4,this.downloadOutdoorCourse(c)];case 36:d.sent();d.label=37;case 37:a++;return[3,35];case 38:if(!(this.currentOutdoorSite.children&&this.currentOutdoorSite.children.length>0))return[3,42];a=0;d.label=39;case 39:if(!(a<this.currentOutdoorSite.children.length))return[3,42];p=this.currentOutdoorSite.children[a];return[4,this.downloadOutdoorSite(p)];case 40:d.sent();d.label=41;case 41:a++;return[3,39];case 42:return[4,G("outdoorSites",[Object.assign(Object.assign({},this.currentOutdoorSite),{offline:true,pois:l.currentPois.map((function(t){return t.id})),touristicContents:l.trekTouristicContents.map((function(t){return t.id})),touristicEvents:l.trekTouristicEvents.map((function(t){return t.id}))})])];case 43:d.sent();l.outdoorSites.find((function(t){return t.id===u.currentOutdoorSite.id})).offline=true;l.currentOutdoorSites.find((function(t){return t.id===u.currentOutdoorSite.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,p,c,u;return __generator(this,(function(d){switch(d.label){case 0:e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,Ie(l.api,l.language,t,r).then((function(t){return t.json()}))];case 1:n=d.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:d.sent();return[4,Z(n,C,true,["url"])];case 3:d.sent();return[4,Qe(l.api,l.language,t,r).then((function(t){return t.json()}))];case 4:o=d.sent().results;return[4,G("pois",o)];case 5:d.sent();return[4,Z(o,C,true,["url"])];case 6:d.sent();return[4,Pe(l.api,l.language,t,r).then((function(t){return t.json()}))];case 7:s=d.sent().results;return[4,Z(s,C,true,["url"])];case 8:d.sent();s.forEach((function(t){t.offline=true}));return[4,G("touristicContents",s)];case 9:d.sent();return[4,Ee(l.api,l.language,t,r).then((function(t){return t.json()}))];case 10:a=d.sent().results;return[4,Z(a,C,true,["url"])];case 11:d.sent();a.forEach((function(t){t.offline=true}));return[4,G("touristicEvents",a)];case 12:d.sent();return[4,G("outdoorSites",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:a.map((function(t){return t.id}))})])];case 13:d.sent();if(!(n.courses&&n.courses.length>0))return[3,17];c=0;d.label=14;case 14:if(!(c<n.courses.length))return[3,17];p=n.courses[c];return[4,this.downloadOutdoorCourse(p)];case 15:d.sent();d.label=16;case 16:c++;return[3,14];case 17:if(!(n.children&&n.children.length>0))return[3,21];c=0;d.label=18;case 18:if(!(c<n.children.length))return[3,21];u=n.children[c];return[4,this.downloadOutdoorSite(u)];case 19:d.sent();d.label=20;case 20:c++;return[3,18];case 21:return[2]}}))}))};t.prototype.downloadOutdoorCourse=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:e=new AbortController;i=e.signal;r={cache:"default",signal:i};return[4,gt(l.api,l.language,t,r).then((function(t){return t.json()}))];case 1:n=c.sent();return[4,this.downloadOutdoorSiteTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution,n.geometry)];case 2:c.sent();return[4,Z(n,C,true,["url"])];case 3:c.sent();return[4,vt(l.api,l.language,t,r).then((function(t){return t.json()}))];case 4:o=c.sent().results;return[4,G("pois",o)];case 5:c.sent();return[4,Z(o,C,true,["url"])];case 6:c.sent();return[4,Fe(l.api,l.language,t,r).then((function(t){return t.json()}))];case 7:s=c.sent().results;return[4,Z(s,C,true,["url"])];case 8:c.sent();s.forEach((function(t){t.offline=true}));return[4,G("touristicContents",s)];case 9:c.sent();return[4,je(l.api,l.language,t,r).then((function(t){return t.json()}))];case 10:a=c.sent().results;return[4,Z(a,C,true,["url"])];case 11:c.sent();a.forEach((function(t){t.offline=true}));return[4,G("touristicEvents",a)];case 12:c.sent();return[4,G("outdoorCourses",[Object.assign(Object.assign({},n),{offline:true,pois:o.map((function(t){return t.id})),touristicContents:s.map((function(t){return t.id})),touristicEvents:a.map((function(t){return t.id}))})])];case 13:c.sent();return[2]}}))}))};t.prototype.deleteOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var i=this;return __generator(this,(function(r){switch(r.label){case 0:t=[];return[4,N("outdoorSites",this.currentOutdoorSite.id)];case 1:e=r.sent();this.deleteOfflineOutdoorSiteProperties(e);t.push(e);return[4,G("outdoorSites",t)];case 2:r.sent();if(l.outdoorSites){delete l.outdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline;if(!l.currentOutdoorSites){l.currentOutdoorSites=l.outdoorSites}delete l.currentOutdoorSites.find((function(t){return t.id===i.currentOutdoorSite.id})).offline}this.offline=false;this.deleteSuccessConfirm.emit();return[2]}}))}))};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=[];if(l.outdoorSites){for(n=0,o=l.outdoorSites;n<o.length;n++){s=o[n];r.push(de(s.geometry).geometry.coordinates)}}a=j.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,D(i,a,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadOutdoorSiteTiles=function(t,e,i){return __awaiter(this,void 0,void 0,(function(){var r,n,o;return __generator(this,(function(s){switch(s.label){case 0:r=Y.exports.tileLayerOffline(t,{attribution:e});n=Kt(i);o=j.latLngBounds([n[1],n[0]],[n[3],n[2]]);return[4,D(r,o,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:s.sent();return[2]}}))}))};t.prototype.deleteOfflineOutdoorSiteProperties=function(t){delete t.offline;delete t.pois;delete t.touristicContents;delete t.touristicEvents};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=l.outdoorPractices&&this.currentOutdoorSite&&l.outdoorPractices.find((function(e){return e.id===t.currentOutdoorSite.practice}));var s=l.cities&&this.currentOutdoorSite&&l.cities.find((function(e){return e.id===t.currentOutdoorSite.cities[0]}));var c=l.outdoorRatings&&this.currentOutdoorSite&&l.outdoorRatings.filter((function(e){return t.currentOutdoorSite.ratings.includes(e.id)}));var p=c&&__spreadArray([],new Set(c.map((function(t){return t.scale}))),true);var u=p&&l.outdoorRatingsScale.filter((function(t){return p.includes(t.id)}));return i(r,{key:"7b8c60c1799700365a05f092953660c653320f94",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},this.currentOutdoorSite&&i("div",{part:"outdoor-site-detail-container",class:"outdoor-site-detail-container",ref:function(e){return t.outdoorSiteDetailContainerRef=e}},i("div",{part:"outdoor-site-images-container",class:"outdoor-site-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentOutdoorSite.attachments.filter((function(t){return t.type==="image"})).map((function(r){var n=[r.legend,r.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"outdoor-site-close-fullscreen-button",class:"outdoor-site-close-fullscreen-button",onClick:function(){return t.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:t.offline?r.thumbnail:r.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="outdoor-site-img default-outdoor-site-img";t.target.src=e},alt:r.legend}))})):i("img",{part:"outdoor-site-img",class:"outdoor-site-img default-outdoor-site-img",src:e,loading:"lazy",alt:""})),i("div",null,i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),i("div",{part:"outdoor-site-name",class:"outdoor-site-name"},this.currentOutdoorSite.name),l.themes&&l.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).length>0&&i("div",{part:"themes-container",class:"themes-container"},l.themes.filter((function(e){return t.currentOutdoorSite.themes.includes(e.id)})).map((function(t){return i("div",{part:"theme",class:"theme"},t.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},n&&i("div",{part:"icon-label",class:"icon-label practice"},n.pictogram&&i("img",{part:"icon",class:"icon",src:n.pictogram,alt:""}),i("span",{part:"label",class:"label"},n.name)),this.currentOutdoorSite.orientation&&this.currentOutdoorSite.orientation.length>0&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:He}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.orientation.map((function(t){return a[l.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.wind&&this.currentOutdoorSite.wind.length>0&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:Se}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.wind.map((function(t){return a[l.language].cardinalPoints[t.toLowerCase()]})).join(", "))),this.currentOutdoorSite.period&&i("div",{part:"row",class:"row"},i("span",{part:"icon",class:"icon",innerHTML:Ne}),i("span",{part:"label",class:"label"},this.currentOutdoorSite.period)),c&&u.map((function(t){return i("div",{part:"row",class:"row"},"".concat(t.name," : ").concat(c.filter((function(e){return e.scale===t.id})).map((function(t){return t.name})).join(", ")))})))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},a[l.language].downloads),this.enableOffline&&!this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ge}),i("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentOutdoorSite.parents||this.currentOutdoorSite.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ze}),i("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentOutdoorSite.pdf).concat(l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentOutdoorSite.description_teaser}),this.currentOutdoorSite.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentOutdoorSite.ambiance}),i("div",{part:"divider",class:"divider"}),this.currentOutdoorSite.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},a[l.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentOutdoorSite.description})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},a[l.language].departure," : "),i("div",{part:"departure",innerHTML:s.name})),this.currentOutdoorSite.cities&&this.currentOutdoorSite.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},a[l.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.currentOutdoorSite.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name})).join(", ")})),l.currentPois&&l.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},a[l.language].pois(l.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.currentOutdoorSite.advice&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},a[l.language].recommendations),this.currentOutdoorSite.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:Ae}),i("div",{part:"advice",class:"advice",innerHTML:this.currentOutdoorSite.advice})))),this.currentOutdoorSite.accessibility&&this.currentOutdoorSite.accessibility!==""&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilites-title",class:"accessibilities-title"},a[l.language].accessibility),i("div",{part:"accessibilities",innerHTML:this.currentOutdoorSite.accessibility}))),l.currentRelatedOutdoorSites&&l.currentRelatedOutdoorSites.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"related-outdoor-sites-container",class:"related-outdoor-sites-container"},i("div",{part:"related-outdoor-sites-title",class:"related-outdoor-sites-title",ref:function(e){return t.sitesRef=e}},a[l.language].relatedOutdoorSites(l.currentRelatedOutdoorSites.length)),i("div",{part:"swiper-related-outdoor-sites",class:"swiper swiper-related-outdoor-sites",ref:function(e){return t.swiperRelatedOutdoorSitesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentRelatedOutdoorSites.map((function(e){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:t.fontFamily,outdoorSite:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorSitesSwiperScrollbar=e}})))),l.currentRelatedOutdoorCourses&&l.currentRelatedOutdoorCourses.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"related-outdoor-courses-container",class:"related-outdoor-courses-container"},i("div",{part:"related-outdoor-courses-title",class:"related-outdoor-courses-title",ref:function(e){return t.coursesRef=e}},a[l.language].relatedOutdoorCourses(l.currentRelatedOutdoorCourses.length)),i("div",{part:"swiper-related-outdoor-courses",class:"swiper swiper-related-outdoor-courses",ref:function(e){return t.swiperRelatedOutdoorCoursesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentRelatedOutdoorCourses.map((function(e){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:t.fontFamily,outdoorCourse:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.relatedOutdoorCoursesSwiperScrollbar=e}})))),l.currentInformationDesks&&l.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},a[l.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentInformationDesks.filter((function(e){return t.currentOutdoorSite.information_desks.includes(e.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}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},a[l.language].touristicContents(l.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((function(e){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:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),l.trekTouristicEvents&&l.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},a[l.language].touristicEvents(l.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((function(e){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:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.weather&&s&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(s.id,"0#").concat(this.colorPrimaryApp)}))),this.currentOutdoorSite.web_links&&this.currentOutdoorSite.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},a[l.language].learnMore),this.currentOutdoorSite.web_links.map((function(t){return i("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&i("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentOutdoorSite.source&&this.currentOutdoorSite.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},a[l.language].sources),this.sources.map((function(t){return i("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:t.name}),i("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());Ke.style=Xe;var We=t("grw_outdoor_site_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.outdoorSiteId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;this.handleOutdoorSite()};t.prototype.handleOutdoorSite=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,N("outdoorSites",this.outdoorSiteId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineOutdoorSite(t)}else{this.handleOnlineOutdoorSite()}return[2]}}))}))};t.prototype.handleOfflineOutdoorSite=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,p,u,d,f,h,m,v,g,w,b,k,x,y,A,_,z;return __generator(this,(function(L){switch(L.label){case 0:e=l;return[4,S("cities")];case 1:e.cities=L.sent();i=l;return[4,S("sources")];case 2:i.sources=L.sent();r=l;return[4,S("districts")];case 3:r.districts=L.sent();n=l;return[4,S("themes")];case 4:n.themes=L.sent();o=l;return[4,S("outdoorSiteTypes")];case 5:o.outdoorSiteTypes=L.sent();s=l;return[4,S("outdoorPractices")];case 6:s.outdoorPractices=L.sent();a=l;return[4,S("outdoorRatings")];case 7:a.outdoorRatings=L.sent();c=l;return[4,S("outdoorRatingsScale")];case 8:c.outdoorRatingsScale=L.sent();p=l;return[4,S("touristicContentCategories")];case 9:p.touristicContentCategories=L.sent();u=l;return[4,S("touristicEventTypes")];case 10:u.touristicEventTypes=L.sent();d=l;return[4,S("poiTypes")];case 11:d.poiTypes=L.sent();f=l;return[4,S("outdoorCourseTypes")];case 12:f.outdoorCourseTypes=L.sent();return[4,S("informationDesks")];case 13:h=L.sent();m=h.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));l.currentInformationDesks=m;return[4,S("pois",["url"])];case 14:v=L.sent();g=v.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));l.currentPois=g;return[4,S("touristicContents",["url"])];case 15:w=L.sent();b=w.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));l.trekTouristicContents=b;return[4,S("touristicEvents",["url"])];case 16:k=L.sent();x=k.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));l.trekTouristicEvents=x;return[4,S("outdoorSites",["url"])];case 17:y=L.sent();A=y.filter((function(e){return t.children.some((function(t){return t===e.id}))}));l.currentRelatedOutdoorSites=A;return[4,S("outdoorCourses",["url"])];case 18:_=L.sent();z=_.filter((function(e){return t.courses.some((function(t){return t===e.id}))}));l.currentRelatedOutdoorCourses=z;return[4,M(t,C,["url"])];case 19:L.sent();l.currentOutdoorSite=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSite=function(){var t=this;var e=[];e.push(!l.cities?R(l.api,l.language,this.init):new Response("null"));e.push(!l.sources?V(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?q(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorSiteTypes?Re(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorPractices?qe(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorRatings?fetch("".concat(l.api,"outdoor_rating/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!l.outdoorRatingsScale?fetch("".concat(l.api,"outdoor_ratingscale/?language=").concat(l.language,"&fields=id,name"),this.init):new Response("null"));e.push(U(l.api,l.language,this.init));e.push(Pe(l.api,l.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(l.api,"touristiccontent_category/?language=").concat(l.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init));e.push(Ee(l.api,l.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(l.api,"touristicevent_type/?language=").concat(l.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init));e.push(Qe(l.api,l.language,this.outdoorSiteId,this.init));e.push(fetch("".concat(l.api,"poi_type/?language=").concat(l.language,"&fields=id,pictogram"),this.init));e.push(!l.outdoorCourseTypes?mt(l.api,l.language,this.init):new Response("null"));e.push(Ie(l.api,l.language,this.outdoorSiteId,this.init));try{Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],p=e[7],u=e[8],d=e[9],f=e[10],h=e[11],m=e[12],v=e[13],g=e[14],w=e[15],b=e[16];return __awaiter(t,void 0,void 0,(function(){var t,e,k,x,y,A;var _=this;return __generator(this,(function(z){switch(z.label){case 0:l.networkError=false;if(!(b&&b.children.length>0))return[3,2];t=[];t.push.apply(t,b.children);e=[];t.forEach((function(t){e.push(Ie(l.api,l.language,t,_.init))}));k=l;return[4,Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 1:k.currentRelatedOutdoorSites=z.sent();z.label=2;case 2:if(!(b&&b.courses.length>0))return[3,4];x=[];x.push.apply(x,b.courses);y=[];x.forEach((function(t){y.push(gt(l.api,l.language,t,_.init))}));A=l;return[4,Promise.all(__spreadArray([],y,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 3:A.currentRelatedOutdoorCourses=z.sent();z.label=4;case 4:if(i){l.cities=i.results}if(r){l.sources=r.results}if(n){l.districts=n.results}if(o){l.themes=o.results}if(s){l.outdoorSiteTypes=s.results}if(a){l.outdoorPractices=a.results}if(c){l.outdoorRatings=c.results}if(p){l.outdoorRatingsScale=p.results}if(u){l.currentInformationDesks=u.results}if(d){l.trekTouristicContents=d.results}if(f){l.touristicContentCategories=f.results}if(h){l.trekTouristicEvents=h.results}if(m){l.touristicEventTypes=m.results}if(v){l.currentPois=v.results}if(g){l.poiTypes=g.results}if(w){l.outdoorCourseTypes=w.results}l.currentOutdoorSite=b;return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"945352e638982879808e7e9d829471b2e8d9fa14"})};return t}());var $e=":host{width:100%;height:100%;overflow-y:auto}grw-outdoor-site-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-outdoor-sites-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.outdoor-sites-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var ti=$e;var ei=t("grw_outdoor_sites_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.outdoorSitesToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(l.currentOutdoorSites){this.outdoorSitesToDisplay=__spreadArray([],l.currentOutdoorSites.slice(0,this.step),true)}g("currentOutdoorSites",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.currentOutdoorSites){t.outdoorSitesToDisplay=__spreadArray([],l.currentOutdoorSites.slice(0,t.step),true)}}));g("outdoorSitesWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.outdoorSitesWithinBounds){t.outdoorSitesToDisplay=__spreadArray([],l.outdoorSitesWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.outdoorSitesToDisplay.length<l.outdoorSitesWithinBounds.length){this.outdoorSitesToDisplay=l.outdoorSitesWithinBounds.slice(0,this.outdoorSitesToDisplay.length+this.step>=l.outdoorSitesWithinBounds.length?l.outdoorSitesWithinBounds.length:this.outdoorSitesToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"1fd0f6d1ee41a67dc9cad7f2e910074807b666f8",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.outdoorSitesWithinBounds&&i("div",{part:"current-outdoor-sites-within-bounds-length",class:"current-outdoor-sites-within-bounds-length"},"".concat(l.outdoorSitesWithinBounds.length," ").concat(l.outdoorSitesWithinBounds.length>1?a[l.language].outdoorSites:a[l.language].outdoorSite)),i("div",{key:"8706f9dac786babb951b459759c7362011539610",part:"outdoor-sites-list-container",class:"outdoor-sites-list-container"},this.outdoorSitesToDisplay.map((function(e){return i("grw-outdoor-site-card",{outdoorSite:e,exportparts:"outdoor-site-card,outdoor-site-img-container,outdoor-site-img,outdoor-site-sub-container,outdoor-site-departure,outdoor-site-name,outdoor-site-themes-container,outdoor-site-theme,outdoor-site-icons-labels-container,outdoor-site-icon-label,outdoor-site-icon,outdoor-site-label",key:"outdoorSite-".concat(e.id),"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"d87a9870dce11511aaaa2d8a51ae11e0c96aa431",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());ei.style=ti;var ii=t("grw_outdoor_sites_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;this.handleOutdoorSites()};t.prototype.handleOutdoorSites=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.handleOnlineOutdoorSites();return[2]}))}))};t.prototype.handleOfflineOutdoorSites=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o;return __generator(this,(function(s){switch(s.label){case 0:e=l;return[4,S("cities")];case 1:e.cities=s.sent();i=l;return[4,S("districts")];case 2:i.districts=s.sent();r=l;return[4,S("themes")];case 3:r.themes=s.sent();n=l;return[4,S("outdoorSiteTypes")];case 4:n.outdoorSiteTypes=s.sent();o=l;return[4,S("outdoorPractices")];case 5:o.outdoorPractices=s.sent();return[4,S("outdoorSites")];case 6:t=s.sent();l.outdoorSites=t;l.currentOutdoorSites=t;return[2]}}))}))};t.prototype.handleOnlineOutdoorSites=function(){var t=this;var e=[];e.push(!l.cities?R(l.api,l.language,this.init):new Response("null"));e.push(!l.districts?q(l.api,l.language,this.init):new Response("null"));e.push(!l.themes?Q(l.api,l.language,this.portals,this.init):new Response("null"));e.push(!l.outdoorSiteTypes?Re(l.api,l.language,this.init):new Response("null"));e.push(!l.outdoorPractices?qe(l.api,l.language,this.init):new Response("null"));e.push(De(l.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.init));Promise.all(__spreadArray([],e,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5];return __awaiter(t,void 0,void 0,(function(){var t,e,c;return __generator(this,(function(p){switch(p.label){case 0:l.networkError=false;if(i){l.cities=i.results}if(r){l.districts=r.results}if(n){l.themes=n.results}if(o){l.outdoorSiteTypes=o.results}if(s){l.outdoorPractices=s.results}t=[];e=0;p.label=1;case 1:if(!(e<a.results.length))return[3,4];return[4,Ve(a.results[e].id)];case 2:c=p.sent();t.push(Object.assign(Object.assign({},a.results[e]),{offline:c}));p.label=3;case 3:e++;return[3,1];case 4:l.outdoorSites=t;l.currentOutdoorSites=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,H("outdoorSites")];case 1:t=e.sent();t.filter((function(t){return t.parents&&t.parents.length===0}));if(t&&t.length>0){this.handleOfflineOutdoorSites(t)}else{l.networkError=true}return[2]}}))}))}))};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"816811f6aba3a9fb760fef3500a7f703c9270428"})};return t}());var ri='<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 ni=":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 oi=ni;var si=t("grw_search",function(){function t(t){e(this,t);this.fontFamily="Roboto"}t.prototype.onSearchChange=function(t){l.searchValue=t.target.value;if(l.mode==="treks"){l.currentTreks=p()}else if(l.mode==="touristicContents"){l.currentTouristicContents=h()}else if(l.mode==="touristicEvents"){l.currentTouristicEvents=m()}else if(l.mode==="outdoor"){l.currentOutdoorSites=v()}};t.prototype.render=function(){var t=this;return i(r,{key:"cc7959ad562b62d0c90127cb33086d75cb3393e2",style:{"--font-family":this.fontFamily}},i("span",{key:"c4d42c475bb35ebc69b02a54a5cfc0b44c06d9ab",part:"icon",class:"icon",innerHTML:ri}),i("input",{key:"f4a16de4d4e12401d9ff59f6ec73d33a2bf4a57b",part:"search-input",class:"search-input",onInput:function(e){return t.onSearchChange(e)},type:"search",placeholder:"Rechercher",value:l.searchValue}))};return t}());si.style=oi;var ai=".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 ci=ai;var li=t("grw_segmented_segment",function(){function t(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.outdoor=false;this.fontFamily="Roboto"}t.prototype.changeMode=function(t){l.searchValue="";if(t==="treks"){c.forEach((function(t){l[t.property]&&l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.treks){l.currentTreks=__spreadArray([],p(),true)}}else if(t==="touristicContents"){u.forEach((function(t){l[t.property]&&l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicContents){l.currentTouristicContents=__spreadArray([],h(),true)}}else if(t==="touristicEvents"){d.forEach((function(t){l[t.property]&&l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.touristicEvents){l.currentTouristicEvents=__spreadArray([],m(),true)}}else if(t==="outdoor"){f.forEach((function(t){l[t.property]&&l[t.property].forEach((function(t){return t.selected=false}))}));l.selectedActivitiesFilters=0;l.selectedThemesFilters=0;l.selectedLocationFilters=0;if(l.outdoorSites){l.currentOutdoorSites=__spreadArray([],v(),true)}}l.mode=t};t.prototype.render=function(){var t=this;return i(r,{key:"3aa2fd044ea41804b31d0865a4faf052d73f801f",style:{"--font-family":this.fontFamily}},i("div",{key:"396573cc6c4825bee4bae0587088c237137face9",part:"segmented-buttons-container",class:"segmented-buttons-container"},this.treks&&i("label",{part:"segment",class:"segment".concat(l.mode==="treks"?" selected-segment":""),onClick:function(){return t.changeMode("treks")}},a[l.language].home.segment.treks),this.outdoor&&i("label",{part:"segment",class:"segment".concat(l.mode==="outdoor"?" selected-segment":""),onClick:function(){return t.changeMode("outdoor")}},a[l.language].home.segment.outdoorSites),this.touristicContents&&i("label",{part:"segment",class:"segment".concat(l.mode==="touristicContents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicContents")}},a[l.language].home.segment.touristicContents),this.touristicEvents&&i("label",{part:"segment",class:"segment".concat(l.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return t.changeMode("touristicEvents")}},a[l.language].home.segment.touristicEvents)))};return t}());li.style=ci;var pi='<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 ui=":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 di=ui;var fi=t("grw_select_language",function(){function t(t){e(this,t)}t.prototype.handleSelect=function(t){l.treks=null;l.currentTreks=null;l.currentTrek=null;l.language=t.target.value};t.prototype.render=function(){var t=this;return i(r,{key:"14684efc58b9fd41402518092e184bdb74e88563"},i("span",{key:"0eb1921e34c6eb0d9812c1cc3057fe8b88f5005b",part:"select-language-icon",class:"icon",innerHTML:pi}),i("select",{key:"d02d80c7a0c848537fe18aa3bbf7c50b3872f4d5",part:"select-language-select",onInput:function(e){return t.handleSelect(e)},name:"languages",id:"language-select"},l.languages.map((function(t){return i("option",{part:"select-language-option",selected:t===l.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())}))))};return t}());fi.style=di;var hi='<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 mi='.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 vi=mi;var gi=t("grw_switch",function(){function t(t){e(this,t);this.action=undefined;this.fontFamily="Roboto";this.checked=undefined}t.prototype.render=function(){var t=this;return i(r,{key:"26bc8e910caad9dec84bfbdb4cd63eb20ce8a0a6",style:{"--font-family":this.fontFamily}},i("label",{key:"e381116a54a4f407074bed50cb0d4f4adc88e54f",class:"md3 switch"},i("input",{key:"ff3fb25aae5dc36a6753af531b1183b7be14628f",checked:this.checked,onChange:function(){return t.action()},type:"checkbox",id:"darkmode",name:"darkmode"}),i("span",{key:"f22a575d3db92816b4f5b8b6fa5351d4bc00db0c",class:"slider"},i("span",{key:"1d55821c4dabf1b7b6692b79b69a19be94616469",part:"icon",class:"icon",innerHTML:hi}))))};return t}());gi.style=vi;var wi='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-content-detail{overflow:hidden}.touristic-content-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-content-detail-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-detail-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-content-detail-container .image,.touristic-content-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-content-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-detail-container .description-teaser,.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-content-detail-container .description-container,.touristic-content-detail-container .useful-information-container,.touristic-content-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-content-detail-container .description-container a,.touristic-content-detail-container .useful-information-container a,.touristic-content-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-content-detail-container .description-title,.touristic-content-detail-container .useful-information-title,.touristic-content-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}.touristic-content-category-img{border-radius:100%;padding:2px;max-height:20px;max-width:20px}';var bi=wi;var ki=t("grw_touristic_content_detail",function(){function t(t){e(this,t);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.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,pt,ut,ke,we],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.offline=l.currentTouristicContent.offline};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(l.currentTouristicContent.attachments&&l.currentTouristicContent.attachments[0]&&l.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=l.touristicContentCategories&&l.currentTouristicContent&&l.touristicContentCategories.find((function(t){return t.id===l.currentTouristicContent.category}));var s=l.currentTouristicContent&&l.currentTouristicContent.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));return i(r,{key:"7750c701df76bba15232f1f4b0315d1f8ebb9055",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"204px":"164px"}},l.currentTouristicContent&&i("div",{part:"touristic-content-detail-container",class:"touristic-content-detail-container",ref:function(e){return t.touristicContentDetailContainerRef=e}},i("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).length>0?l.currentTouristicContent.attachments.filter((function(t){return t.type==="image"})).map((function(e){var r=[e.legend,e.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},i("span",{part:"icon",class:"icon",innerHTML:xe})),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",src:e,alt:"",loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),i("div",{part:"touristic-content-category-container",class:"touristic-content-category-container"},i("img",{part:"touristic-content-category-img",class:"touristic-content-category-img",src:n.pictogram,alt:""}),i("div",{part:"touristic-content-category-name",class:"touristic-content-category-name"},n.label)),i("div",{part:"name",class:"name"},l.currentTouristicContent.name),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},a[l.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link-container",class:"link-container",href:"".concat(l.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:""},"PDF")))),l.currentTouristicContent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:l.currentTouristicContent.description_teaser})),i("div",{part:"divider",class:"divider"}),l.currentTouristicContent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},i("div",{part:"description-title",class:"description-title"},a[l.language].description),i("div",{part:"description",class:"description",innerHTML:l.currentTouristicContent.description})),s&&s.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},a[l.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:s.join(", ")})),l.currentTouristicContent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},a[l.language].usefulInformation," : "),i("div",{part:"useful-information",innerHTML:l.currentTouristicContent.practical_info}))),(l.currentTouristicContent.contact||l.currentTouristicContent.email||l.currentTouristicContent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},a[l.language].contact," : "),l.currentTouristicContent.contact&&i("div",{part:"contact",class:"contact",innerHTML:l.currentTouristicContent.contact}),l.currentTouristicContent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},a[l.language].email," : "),i("a",{href:"mailto:"+l.currentTouristicContent.email,part:"email",class:"email",innerHTML:l.currentTouristicContent.email})),l.currentTouristicContent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},a[l.language].website," : "),i("a",{href:l.currentTouristicContent.website,part:"website",class:"website",innerHTML:l.currentTouristicContent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());ki.style=bi;var xi=t("grw_touristic_content_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContent()};t.prototype.handleTouristicContent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,N("touristicContents",this.touristicContentId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicContent(t)}else{this.handleOnlineTouristicContent()}return[2]}}))}))};t.prototype.handleOfflineTouristicContent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!l.cities)return[3,2];e=l;return[4,H("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!l.touristicContentCategories)return[3,4];i=l;return[4,H("touristicContentCategories")];case 3:i.touristicContentCategories=r.sent();r.label=4;case 4:l.currentTouristicContent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicContent=function(){var t=[];t.push(!l.cities?fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!l.touristicContentCategories?fetch("".concat(l.api,"touristiccontent_category/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[Ce(l.api,l.language,this.touristicContentId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];l.networkError=false;if(e){l.cities=e.results}if(i){l.touristicContentCategories=i.results}l.currentTouristicContent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"b53b958ea4b1bce8196a084a5147ab07cddf9a42"})};return t}());var yi=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-content-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-contents-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-contents-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var Ai=yi;var _i=t("grw_touristic_contents_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(l.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],l.currentTouristicContents.slice(0,this.step),true)}g("currentTouristicContents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.currentTouristicContents){t.touristicContentsToDisplay=__spreadArray([],l.currentTouristicContents.slice(0,t.step),true)}}));g("touristicContentsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.touristicContentsWithinBounds){t.touristicContentsToDisplay=__spreadArray([],l.touristicContentsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<l.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=l.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=l.touristicContentsWithinBounds.length?l.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"2dd604797c181e971d9fd9e8d9dddb45f67046f6",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicContentsWithinBounds&&i("div",{part:"current-touristic-contents-within-bounds-length",class:"current-touristic-contents-within-bounds-length"},"".concat(l.touristicContentsWithinBounds.length," ").concat(l.touristicContentsWithinBounds.length>1?a[l.language].home.touristicContents:a[l.language].home.touristicContent)),i("div",{key:"ed0d850dda19b44ec98888fc1d3f9479135ce59b",part:"touristic-contents-list-container",class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(e){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:t.fontFamily,key:"touristic-content-".concat(e.id),touristicContent:e,"is-large-view":t.isLargeView,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"e3d45b8d52f834c9800359c626db8867e29656b7",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());_i.style=Ai;var zi=t("grw_touristic_contents_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicContents()};t.prototype.handleTouristicContents=function(){var t="".concat(l.api,"touristiccontent/?language=").concat(l.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var e=[];e.push(!l.cities?fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!l.districts?fetch("".concat(l.api,"district/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!l.touristicContentCategories?fetch("".concat(l.api,"touristiccontent_category/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];l.networkError=false;if(e){l.cities=e.results}if(i){l.districts=i.results}if(r){l.touristicContentCategories=r.results}l.touristicContents=n.results;l.currentTouristicContents=n.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"f9f5f8cc4600c9827e17d56b25ed5fe39eac9256"})};return t}());var Li='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-touristic-event-detail{overflow:hidden}.touristic-event-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.touristic-event-detail-container .touristic-event-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-category-container .touristic-event-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-detail-container .touristic-event-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-detail-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .touristic-event-date-container{color:var(--color-on-surface);font-size:16px;line-height:28px;font-weight:400;padding:0px 24px;margin:8px 0px}.touristic-event-detail-container .image,.touristic-event-detail-container .default-poi-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.touristic-event-detail-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-detail-container .description-teaser,.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{padding:0px 24px 0px 24px}.touristic-event-detail-container .description-container,.touristic-event-detail-container .useful-information-container,.touristic-event-detail-container .contact-container{font-size:16px;line-height:24px;font-weight:400}.touristic-event-detail-container .description-container a,.touristic-event-detail-container .useful-information-container a,.touristic-event-detail-container .contact-container a{color:var(--color-primary-app)}.touristic-event-detail-container .description-title,.touristic-event-detail-container .useful-information-title,.touristic-event-detail-container .contact-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold;margin-bottom:16px}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:24px 24px 0px 24px}.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none}.downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.legend-container{position:absolute;top:16px;font-size:12px;color:#ffffff;width:100%;text-align:center}.close-fullscreen-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:40;top:16px;right:16px;color:var(--swiper-navigation-color, var(--swiper-theme-color));background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);cursor:pointer}';var Mi=Li;var Ci=t("grw_touristic_event_detail",function(){function t(t){e(this,t);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.isLargeView=false}t.prototype.componentDidLoad=function(){var t=this;this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,pt,ut,ke,we],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()};this.offline=l.currentTouristicEvent.offline};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(l.currentTouristicEvent.attachments&&l.currentTouristicEvent.attachments[0]&&l.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}else{document.exitFullscreen()}}};t.prototype.render=function(){var t=this;var e=o("".concat("","assets/default-image.svg"));var n=l.touristicEventTypes&&l.currentTouristicEvent&&l.touristicEventTypes.find((function(t){return t.id===l.currentTouristicEvent.type}));var s=l.currentTouristicEvent&&l.currentTouristicEvent.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));return i(r,{key:"3cf070c005eee9c2eda49378c33ef0fe6b00fe85",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"204px":"164px"}},l.currentTouristicEvent&&i("div",{part:"touristic-event-detail-container",class:"touristic-event-detail-container",ref:function(e){return t.touristicEventDetailContainerRef=e}},i("div",{part:"images-container",class:"images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).length>0?l.currentTouristicEvent.attachments.filter((function(t){return t.type==="image"})).map((function(e){var r=[e.legend,e.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"close-fullscreen-button",class:"close-fullscreen-button",onClick:function(){return t.handleFullscreen(true)}},i("span",{part:"icon",class:"icon",innerHTML:xe})),i("div",{part:"legend-container",class:"legend-container"},r),i("img",{part:"image",class:"image",src:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},alt:e.legend}))})):i("div",{part:"swiper-slide",class:"swiper-slide"},i("img",{part:"default-poi-img",class:"default-poi-img",src:e,loading:"lazy"}))),i("div",{style:{display:this.offline?"none":"block"},part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{style:{display:this.offline?"none":"flex"},part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}}))),i("div",{part:"touristic-event-category-container",class:"touristic-event-category-container"},n&&n.pictogram&&i("img",{part:"touristic-event-category-img",class:"touristic-event-category-img",src:n.pictogram}),n&&n.type&&i("div",{part:"touristic-event-category-name",class:"touristic-event-category-name"},n.type)),i("div",{part:"name",class:"name"},l.currentTouristicEvent.name),(l.currentTouristicEvent.begin_date||l.currentTouristicEvent.end_date)&&i("div",{part:"touristic-event-date-container",class:"touristic-event-date-container"},l.currentTouristicEvent.begin_date===l.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},a[l.language].date," : ",l.currentTouristicEvent.begin_date),l.currentTouristicEvent.begin_date&&l.currentTouristicEvent.begin_date!==l.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},a[l.language].startDate," : ",l.currentTouristicEvent.begin_date),l.currentTouristicEvent.end_date&&l.currentTouristicEvent.begin_date!==l.currentTouristicEvent.end_date&&i("div",{part:"touristic-event-date",class:"touristic-event-date"},a[l.language].endDate," : ",l.currentTouristicEvent.end_date)),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},a[l.language].download),i("div",{part:"links-container",class:"links-container"},i("a",{part:"link",class:"link",href:"".concat(l.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"PDF")))),l.currentTouristicEvent.description_teaser&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"description-teaser",class:"description-teaser",innerHTML:l.currentTouristicEvent.description_teaser})),i("div",{part:"divider",class:"divider"}),l.currentTouristicEvent.practical_info&&i("div",{part:"description-container",class:"description-container",ref:function(e){return t.descriptionRef=e}},i("div",{part:"description-title",class:"description-title"},a[l.language].description),i("div",{part:"description",class:"description",innerHTML:l.currentTouristicEvent.description})),s&&s.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},a[l.language].city," : "),i("div",{part:"cities",class:"cities",innerHTML:s.join(", ")})),l.currentTouristicEvent.practical_info&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"useful-information-container",class:"useful-information-container"},i("div",{part:"useful-information-title",class:"useful-information-title"},a[l.language].usefulInformation," : "),i("div",{part:"useful-information",class:"useful-information",innerHTML:l.currentTouristicEvent.practical_info}))),(l.currentTouristicEvent.contact||l.currentTouristicEvent.email||l.currentTouristicEvent.website)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"contact-container",class:"contact-container"},i("div",{part:"contact-title",class:"contact-title"},a[l.language].contact," : "),l.currentTouristicEvent.contact&&i("div",{part:"contact",class:"contact",innerHTML:l.currentTouristicEvent.contact}),l.currentTouristicEvent.email&&i("div",{part:"email-container",class:"email-container"},i("div",{part:"email-title",class:"email-title"},a[l.language].email," : "),i("a",{href:"mailto:"+l.currentTouristicEvent.email,part:"email",class:"email",innerHTML:l.currentTouristicEvent.email})),l.currentTouristicEvent.website&&i("div",{part:"website-container",class:"website-container"},i("div",{part:"website-title",class:"website-title"},a[l.language].website," : "),i("a",{href:l.currentTouristicEvent.website,part:"website",class:"website",innerHTML:l.currentTouristicEvent.website})))),i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());Ci.style=Mi;var Bi=t("grw_touristic_event_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvent()};t.prototype.handleTouristicEvent=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,N("touristicEvents",this.touristicEventId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTouristicEvent(t)}else{this.handleOnlineTouristicEvent()}return[2]}}))}))};t.prototype.handleOfflineTouristicEvent=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:if(!!l.cities)return[3,2];e=l;return[4,H("cities")];case 1:e.cities=r.sent();r.label=2;case 2:if(!!l.touristicEventTypes)return[3,4];i=l;return[4,H("touristicEventTypes")];case 3:i.touristicEventTypes=r.sent();r.label=4;case 4:l.currentTouristicEvent=t;return[2]}}))}))};t.prototype.handleOnlineTouristicEvent=function(){var t=[];t.push(!l.cities?fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!l.touristicEventTypes?fetch("".concat(l.api,"touristicevent_type/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],t,true),[Te(l.api,l.language,this.touristicEventId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2];l.networkError=false;if(e){l.cities=e.results}if(i){l.touristicEventTypes=i.results}l.currentTouristicEvent=r}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"3e5e5d3f401801048b1934baa60beee372fc0d7f"})};return t}());var Pi=":host{width:100%;height:100%;overflow-y:auto}grw-touristic-event-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-touristic-events-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.touristic-events-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var Fi=Pi;var Ti=t("grw_touristic_events_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(l.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],l.currentTouristicEvents.slice(0,this.step),true)}g("currentTouristicEvents",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.currentTouristicContents){t.touristicEventsToDisplay=__spreadArray([],l.currentTouristicEvents.slice(0,t.step),true)}}));g("touristicEventsWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.touristicEventsWithinBounds){t.touristicEventsToDisplay=__spreadArray([],l.touristicEventsWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<l.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=l.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=l.touristicEventsWithinBounds.length?l.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"f418c00dfc2a81c157ad55bc492d30448c2a6b59",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.touristicEventsWithinBounds&&i("div",{part:"current-touristic-events-within-bounds-length",class:"current-touristic-events-within-bounds-length"},"".concat(l.touristicEventsWithinBounds.length," ").concat(l.touristicEventsWithinBounds.length>1?a[l.language].home.touristicEvents:a[l.language].home.touristicEvent)),i("div",{key:"011626bd6469f4fa9640ac173a7b43c506921803",part:"touristic-events-list-container",class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(e){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(e.id),touristicEvent:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"f87eecb793bf4b292bbe8781c7950f4d0856e7f0",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());Ti.style=Fi;var Oi=t("grw_touristic_events_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}this.handleTouristicEvents()};t.prototype.handleTouristicEvents=function(){var t="".concat(l.api,"touristicevent/?language=").concat(l.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));t+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var e=[];e.push(!l.cities?fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!l.districts?fetch("".concat(l.api,"district/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!l.touristicEventTypes?fetch("".concat(l.api,"touristicevent_type/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[fetch(t,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];l.networkError=false;if(e){l.cities=e.results}if(i){l.districts=i.results}if(r){l.touristicEventTypes=r.results}l.touristicEvents=n.results;l.currentTouristicEvents=n.results}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.render=function(){return i(r,{key:"d3b510f028efe9fe1522ae1a300c2a4cdfeeb066"})};return t}());var Ei='<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 ji='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}:host{--swiper-navigation-size:24px;--swiper-navigation-color:var(--color-on-primary-container);--swiper-pagination-color:var(--color-primary-container);--swiper-pagination-bullet-size:12px}:host .swiper-button-prev,:host .swiper-button-next{background-color:var(--color-primary-container);padding:4px;width:32px;height:32px;border-radius:var(--border-radius, 32px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1)}:host .swiper-button-prev:hover,:host .swiper-button-next:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}grw-trek-detail{overflow:hidden}.trek-options{z-index:9;display:-ms-flexbox;display:flex;position:-webkit-sticky;position:sticky;top:0px;left:0px;width:100%;min-height:32px;padding:8px 0px;background-color:var(--color-background);overflow-x:auto;font-family:var(--font-family)}.trek-options::-webkit-scrollbar{display:none}.trek-options .trek-option{cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;margin-left:16px;font-size:22px;line-height:28px;font-weight:500;white-space:nowrap;text-decoration:none;color:var(--color-on-surface);-webkit-transition-property:color;transition-property:color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:0.3s;transition-duration:0.3s}.trek-options .trek-option:hover{color:var(--color-primary-app)}@media (hover: none){.trek-options .trek-option:not(.selected-trek-option):hover{color:inherit}}.trek-options .trek-option:last-of-type{margin-right:16px}.trek-options .selected-trek-option{color:var(--color-primary-app)}.trek-options .trek-indicator-selected-trek-option{position:absolute;bottom:8px;height:2px;background-image:-webkit-gradient(linear, left top, left bottom, from(var(--color-primary-app)), to(var(--color-primary-app)));background-image:linear-gradient(var(--color-primary-app), var(--color-primary-app));background-repeat:no-repeat;-webkit-transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;transition:transform 0.5s ease, background-size 0.5s ease 0.5s;transition:transform 0.5s ease, background-size 0.5s ease 0.5s, -webkit-transform 0.5s ease;margin-left:16px;background-position:center}.trek-detail-container{font-family:var(--font-family);color:var(--color-on-surface);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;max-height:100%;overflow-y:auto}.trek-detail-container .trek-name{color:var(--color-primary-app);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .trek-img{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.trek-detail-container .default-trek-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.trek-detail-container .sub-container{padding:24px 24px 0px 24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label .icon{display:-ms-flexbox;display:flex;width:24px;height:24px;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice .icon{display:-ms-flexbox;display:flex;background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .downloads-container .links-container a .icon{display:-ms-flexbox;display:flex}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 0px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 40px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .icon img,.gear-container .icon img{width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.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}';var Yi=ji;var Ni=1;var Si={visible:true,indicator:false,ref:"presentationOptionRef"};var Hi={visible:false,indicator:false,ref:"stepsOptionRef"};var Gi={visible:false,indicator:false,ref:"descriptionOptionRef"};var Zi={visible:false,indicator:false,ref:"poisOptionRef"};var Di={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Ii={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var Ri={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var qi={visible:false,indicator:false,ref:"accessibilityOptionRef"};var Qi={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var Vi={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var Ui={presentation:Si,steps:Hi,description:Gi,pois:Zi,recommendations:Di,sensitiveArea:Ii,informationPlaces:Ri,accessibility:qi,touristicContents:Qi,touristicEvents:Vi};var Xi=t("grw_trek_detail",function(){function t(t){e(this,t);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.parentTrekPress=n(this,"parentTrekPress",7);this.downloadConfirm=n(this,"downloadConfirm",7);this.downloadedSuccessConfirm=n(this,"downloadedSuccessConfirm",7);this.deleteConfirm=n(this,"deleteConfirm",7);this.deleteSuccessConfirm=n(this,"deleteSuccessConfirm",7);this.indicatorSelectedTrekOption={translateX:null,width:null,backgroundSize:null,ref:null};this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.labels=undefined;this.sources=undefined;this.accessibilities=undefined;this.accessibilityLevel=undefined;this.displayFullscreen=false;this.cities=undefined;this.options=undefined;this.offline=false;this.emergencyNumber=undefined;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.weather=false;this.isLargeView=false;this.defaultBackgroundLayerUrl=undefined;this.defaultBackgroundLayerAttribution=undefined;this.enableOffline=false;this.globalTilesMinZoomOffline=0;this.globalTilesMaxZoomOffline=11;this.tilesMinZoomOffline=12;this.tilesMaxZoomOffline=16;this.grwApp=false}t.prototype.componentDidUpdate=function(){this.handleObservers()};t.prototype.handleObservers=function(){var t=this;if(this.presentationRef&&!this.presentationObserver){this.presentationObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{presentation:Object.assign(Object.assign({},t.defaultOptions.presentation),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef&&!this.stepsObserver){this.stepsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.stepsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{steps:Object.assign(Object.assign({},t.defaultOptions.steps),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef&&!this.descriptionObserver){this.descriptionObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.descriptionIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{description:Object.assign(Object.assign({},t.defaultOptions.description),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef&&!this.recommendationsObserver){this.recommendationsObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{recommendations:Object.assign(Object.assign({},t.defaultOptions.recommendations),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef&&!this.parkingObserver){this.parkingObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.parkingIsInViewport.emit(i)}),{threshold:Ni});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef&&!this.sensitiveAreaObserver){this.sensitiveAreaObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.sensitiveAreaIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{sensitiveArea:Object.assign(Object.assign({},t.defaultOptions.sensitiveArea),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef&&!this.informationPlacesObserver){this.informationPlacesObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.informationPlacesIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{informationPlaces:Object.assign(Object.assign({},t.defaultOptions.informationPlaces),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef&&!this.accessibilityObserver){this.accessibilityObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.options=Object.assign(Object.assign({},t.options),{accessibility:Object.assign(Object.assign({},t.defaultOptions.accessibility),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef&&!this.poiObserver){this.poiObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.poiIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{pois:Object.assign(Object.assign({},t.defaultOptions.pois),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef&&!this.touristicContentObserver){this.touristicContentObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicContentsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicContents:Object.assign(Object.assign({},t.defaultOptions.touristicContents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef&&!this.touristicEventObserver){this.touristicEventObserver=new IntersectionObserver((function(e){var i=e[0].isIntersecting;t.touristicEventsIsInViewport.emit(i);t.options=Object.assign(Object.assign({},t.options),{touristicEvents:Object.assign(Object.assign({},t.defaultOptions.touristicEvents),{indicator:i})});t.handleIndicatorSelectedTrekOption()}),{threshold:Ni});this.touristicEventObserver.observe(this.touristicEventsRef)}};t.prototype.componentDidLoad=function(){var t=this;this.swiperImages=new ct(this.swiperImagesRef,{modules:[lt,pt,ut,ke,we],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false,loop:true});if(this.swiperImagesRef){this.swiperImagesRef.onfullscreenchange=function(){t.displayFullscreen=!t.displayFullscreen;t.displayFullscreen&&!t.offline?t.swiperImages.keyboard.enable():t.swiperImages.keyboard.disable()}}this.swiperStep=new ct(this.swiperStepRef,{modules:[ke,we,be],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}},loop:false});this.swiperPois=new ct(this.swiperPoisRef,{modules:[ke,we,be],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}},loop:false});this.swiperInformationDesks=new ct(this.swiperInformationDesksRef,{modules:[ke,we,be],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}},loop:false});this.swiperTouristicContents=new ct(this.swiperTouristicContentsRef,{modules:[ke,we,be],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}},loop:false});this.swiperTouristicEvents=new ct(this.swiperTouristicEventsRef,{modules:[ke,we,be],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}},loop:false});this.handleObservers()};t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){if(l.currentTrek){this.offline=l.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((function(t){return t.id===l.currentTrek.difficulty}));this.route=l.routes.find((function(t){return t.id===l.currentTrek.route}));this.practice=l.practices.find((function(t){return t.id===l.currentTrek.practice}));this.themes=l.themes.filter((function(t){return l.currentTrek.themes.includes(t.id)}));this.labels=l.labels.filter((function(t){return l.currentTrek.labels.includes(t.id)}));this.sources=l.sources.filter((function(t){return l.currentTrek.source.includes(t.id)}));this.accessibilities=l.accessibilities.filter((function(t){return l.currentTrek.accessibilities.includes(t.id)}));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((function(t){return l.currentTrek.accessibility_level===t.id}))}this.cities=l.currentTrek.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.currentTrek}g("currentTrek",(function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(l.currentTrek){this.offline=l.currentTrek.offline;this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=l.difficulties.find((function(t){return t.id===l.currentTrek.difficulty}));this.route=l.routes.find((function(t){return t.id===l.currentTrek.route}));this.practice=l.practices.find((function(t){return t.id===l.currentTrek.practice}));this.themes=l.themes.filter((function(t){return l.currentTrek.themes.includes(t.id)}));this.labels=l.labels.filter((function(t){return l.currentTrek.labels.includes(t.id)}));this.sources=l.sources.filter((function(t){return l.currentTrek.source.includes(t.id)}));this.accessibilities=l.accessibilities.filter((function(t){return l.currentTrek.accessibilities.includes(t.id)}));if(l.accessibilitiesLevel){this.accessibilityLevel=l.accessibilitiesLevel.find((function(t){return l.currentTrek.accessibility_level===t.id}))}this.cities=l.currentTrek.cities.map((function(t){var e;return(e=l.cities.find((function(e){return e.id===t})))===null||e===void 0?void 0:e.name}));this.hasStep=l.currentTrek.children.length>0;this.currentTrek=l.currentTrek}return[2]}))}))}));return[2]}))}))};t.prototype.disconnectedCallback=function(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect()};t.prototype.handleOptions=function(){return Object.assign(Object.assign({},Ui),{presentation:Object.assign({},Si),steps:Object.assign(Object.assign({},Hi),{visible:Boolean(l.parentTrek)}),description:Object.assign(Object.assign({},Gi),{visible:Boolean(l.currentTrek.description)}),pois:Object.assign(Object.assign({},Zi),{visible:Boolean(l.currentPois&&l.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},Di),{visible:Boolean(l.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Ii),{visible:Boolean(l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Ri),{visible:Boolean(l.currentInformationDesks&&l.currentInformationDesks.filter((function(t){return l.currentTrek.information_desks.includes(t.id)})).length>0)}),accessibility:Object.assign(Object.assign({},qi),{visible:Boolean(l.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||l.currentTrek.accessibility_level||l.currentTrek.accessibility_slope||l.currentTrek.accessibility_width||l.currentTrek.accessibility_signage||l.currentTrek.accessibility_covering||l.currentTrek.accessibility_exposure||l.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Qi),{visible:Boolean(l.trekTouristicContents&&l.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Vi),{visible:Boolean(l.trekTouristicEvents&&l.trekTouristicEvents.length>0)})})};t.prototype.handleFullscreen=function(t){if(t===void 0){t=false}if(!t){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}else{document.exitFullscreen()}};t.prototype.handleIndicatorSelectedTrekOption=function(){var t;var e=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!t&&o<n.length){if(n[o].indicator){t=n[o]}else{if(n[o].visible){e+=1;i+=this[n[o].ref].clientWidth}}o++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*e-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:t.ref}}};t.prototype.handleScrollTo=function(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})};t.prototype.getCurrentStepIndex=function(){var t=this;return l.currentTrekSteps?l.currentTrekSteps.findIndex((function(e){return e.id===t.currentTrek.id})):0};t.prototype.downloadGlobalTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r,n,o,s,a;return __generator(this,(function(c){switch(c.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=[];if(l.treks){for(n=0,o=l.treks;n<o.length;n++){s=o[n];r.push(s.departure_geom)}}a=j.latLngBounds(r.map((function(t){return[t[1],t[0]]})));return[4,D(i,a,this.globalTilesMinZoomOffline,this.globalTilesMaxZoomOffline)];case 1:c.sent();return[2]}}))}))};t.prototype.downloadTrekTiles=function(t,e){return __awaiter(this,void 0,void 0,(function(){var i,r;return __generator(this,(function(n){switch(n.label){case 0:i=Y.exports.tileLayerOffline(t,{attribution:e});r=j.latLngBounds(this.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));return[4,D(i,r,this.tilesMinZoomOffline,this.tilesMaxZoomOffline)];case 1:n.sent();return[2]}}))}))};t.prototype.downloadTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r,n,o,s,a,c,p,u,d,f,h,m,v,g,w,b,k,x;var y=this;return __generator(this,(function(A){switch(A.label){case 0:t=new AbortController;e=t.signal;i={cache:"default",signal:e};return[4,H("treks")];case 1:r=A.sent().filter((function(t){return t.offline===true}));if(!!l.treks)return[3,4];return[4,X(l.api,l.language,l.inBboxFromProviders,l.citiesFromProviders,l.districts,l.structuresFromProviders,l.themesFromProviders,l.portalsFromProviders,l.routesFromProviders,l.practicesFromProviders,l.labelsFromProviders,i)];case 2:o=A.sent();s=l;return[4,o.json()];case 3:s.treks=A.sent().results;A.label=4;case 4:n=l.treks;n=n.filter((function(t){return r.findIndex((function(e){return e.id===t.id}))===-1}));if(!!l.districts)return[3,7];return[4,q(l.api,l.language,i)];case 5:a=A.sent();c=l;return[4,a.json()];case 6:c.districts=A.sent().results;A.label=7;case 7:return[4,G("treks",n)];case 8:A.sent();return[4,G("districts",l.districts)];case 9:A.sent();return[4,this.downloadGlobalTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 10:A.sent();return[4,this.downloadTrekTiles(this.defaultBackgroundLayerUrl,this.defaultBackgroundLayerAttribution)];case 11:A.sent();return[4,Z(l.difficulties,C)];case 12:A.sent();return[4,Z(l.routes,C)];case 13:A.sent();return[4,Z(l.practices,C)];case 14:A.sent();return[4,Z(l.themes,C)];case 15:A.sent();return[4,Z(l.labels,C)];case 16:A.sent();return[4,Z(l.districts,C)];case 17:A.sent();return[4,Z(l.sources,C)];case 18:A.sent();return[4,Z(l.accessibilities,C)];case 19:A.sent();return[4,Z(l.poiTypes,C)];case 20:A.sent();return[4,Z(l.currentInformationDesks,C)];case 21:A.sent();return[4,Z(l.touristicContentCategories,C)];case 22:A.sent();return[4,Z(l.touristicEventTypes,C)];case 23:A.sent();return[4,Z(l.networks,C)];case 24:A.sent();return[4,Z(this.currentTrek,C,true,["url"])];case 25:A.sent();return[4,G("difficulties",l.difficulties)];case 26:A.sent();return[4,G("routes",l.routes)];case 27:A.sent();return[4,G("practices",l.practices.map((function(t){return Object.assign(Object.assign({},t),{selected:false})})))];case 28:A.sent();return[4,G("themes",l.themes)];case 29:A.sent();return[4,G("cities",l.cities)];case 30:A.sent();return[4,G("accessibilities",l.accessibilities)];case 31:A.sent();return[4,G("ratings",l.ratings)];case 32:A.sent();return[4,G("ratingsScale",l.ratingsScale)];case 33:A.sent();return[4,G("sensitiveAreas",l.currentSensitiveAreas)];case 34:A.sent();return[4,G("labels",l.labels)];case 35:A.sent();return[4,G("sources",l.sources)];case 36:A.sent();return[4,G("accessibilitiesLevel",l.accessibilitiesLevel)];case 37:A.sent();return[4,G("touristicContentCategories",l.touristicContentCategories)];case 38:A.sent();return[4,G("touristicEventTypes",l.touristicEventTypes)];case 39:A.sent();return[4,G("networks",l.networks)];case 40:A.sent();return[4,G("pois",l.currentPois)];case 41:A.sent();return[4,G("poiTypes",l.poiTypes)];case 42:A.sent();return[4,G("informationDesks",l.currentInformationDesks)];case 43:A.sent();return[4,G("treks",[Object.assign(Object.assign({},this.currentTrek),{offline:true,pois:l.currentPois.map((function(t){return t.id})),touristicContents:l.trekTouristicContents.map((function(t){return t.id})),touristicEvents:l.trekTouristicEvents.map((function(t){return t.id})),sensitiveAreas:l.currentSensitiveAreas?l.currentSensitiveAreas.map((function(t){return t.id})):[]})])];case 44:A.sent();return[4,Z(l.currentPois,C,true,["url"])];case 45:A.sent();return[4,Z(l.currentInformationDesks,C,true)];case 46:A.sent();return[4,Z(l.trekTouristicContents,C,true,["url"])];case 47:A.sent();l.trekTouristicContents.forEach((function(t){t.offline=true}));return[4,G("touristicContents",l.trekTouristicContents)];case 48:A.sent();return[4,Z(l.trekTouristicEvents,C,true,["url"])];case 49:A.sent();l.trekTouristicEvents.forEach((function(t){t.offline=true}));return[4,G("touristicEvents",l.trekTouristicEvents)];case 50:A.sent();if(!(this.currentTrek.children&&this.currentTrek.children.length>0))return[3,60];p=[];p.push.apply(p,this.currentTrek.children);u=[];d=[];f=[];h=[];m=[];p.forEach((function(t){u.push(J(l.api,l.language,t,i));d.push(Be(l.api,l.language,t,i));f.push(Oe(l.api,l.language,t,i));h.push(K(l.api,l.language,t,i));m.push(W(l.api,l.language,t,i))}));return[4,Promise.all(__spreadArray([],u,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 51:v=A.sent();return[4,Promise.all(__spreadArray([],d,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 52:g=A.sent();return[4,Promise.all(__spreadArray([],f,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 53:w=A.sent();return[4,Promise.all(__spreadArray([],h,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 54:b=A.sent();return[4,Promise.all(__spreadArray([],m,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 55:k=A.sent();x=0;A.label=56;case 56:if(!(x<v.length))return[3,60];v[x].offline=true;v[x].pois=b[x].results.map((function(t){return t.id}));v[x].touristicContents=g[x].results.map((function(t){return t.id}));v[x].touristicEvents=w[x].results.map((function(t){return t.id}));v[x].sensitiveAreas=k[x].results.map((function(t){return t.id}));return[4,G("treks",[v[x]])];case 57:A.sent();return[4,Z(v[x],C,true,["url"])];case 58:A.sent();A.label=59;case 59:x++;return[3,56];case 60:l.treks.find((function(t){return t.id===y.currentTrek.id})).offline=true;if(!l.currentTreks){l.currentTreks=l.treks}l.currentTreks.find((function(t){return t.id===y.currentTrek.id})).offline=true;if(this.swiperImages){this.swiperImages.slideTo(0)}this.offline=true;this.downloadedSuccessConfirm.emit();return[2]}}))}))};t.prototype.deleteTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,r;var n=this;return __generator(this,(function(o){switch(o.label){case 0:t=[];return[4,N("treks",this.currentTrek.id)];case 1:e=o.sent();this.deleteOfflineTrekProperties(e);t.push(e);if(!(this.currentTrek.children.length>0))return[3,5];i=0;o.label=2;case 2:if(!(i<this.currentTrek.children.length))return[3,5];return[4,N("treks",this.currentTrek.children[i])];case 3:r=o.sent();this.deleteOfflineTrekProperties(r);t.push(r);o.label=4;case 4:i++;return[3,2];case 5:return[4,G("treks",t)];case 6:o.sent();if(l.treks){delete l.treks.find((function(t){return t.id===n.currentTrek.id})).offline;if(!l.currentTreks){l.currentTreks=l.treks}delete l.currentTreks.find((function(t){return t.id===n.currentTrek.id})).offline}if(l.parentTrek){delete l.parentTrek.offline}if(l.currentTrekSteps){l.currentTrekSteps.forEach((function(t){delete t.offline}))}this.offline=false;this.deleteSuccessConfirm.emit();return[2]}}))}))};t.prototype.displayDownloadModal=function(){this.downloadConfirm.emit()};t.prototype.displayDeleteModal=function(){this.deleteConfirm.emit()};t.prototype.onDownloadPress=function(){this.downloadTrek()};t.prototype.onDeletePress=function(){this.deleteTrek()};t.prototype.deleteOfflineTrekProperties=function(t){delete t.descent;delete t.geometry;delete t.gpx;delete t.kml;delete t.pdf;delete t.parking_location;delete t.arrival;delete t.ambiance;delete t.access;delete t.public_transport;delete t.advice;delete t.advised_parking;delete t.gear;delete t.source;delete t.points_reference;delete t.disabled_infrastructure;delete t.accessibility_level;delete t.accessibility_slope;delete t.accessibility_width;delete t.accessibility_signage;delete t.accessibility_covering;delete t.accessibility_exposure;delete t.accessibility_advice;delete t.ratings;delete t.ratings_description;delete t.children;delete t.networks;delete t.web_links;delete t.update_datetime;delete t.information_desks;delete t.pois;delete t.touristicContents;delete t.touristicEvents;delete t.sensitiveAreas;delete t.offline};t.prototype.render=function(){var t=this;var e,n,s,c,p;var u=o("".concat("","assets/default-image.svg"));return i(r,{key:"d697ece2420dfd2317a8b56f97918475cced290d",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-background":this.colorBackground,"--detail-bottom-space-height":this.isLargeView?l.languages&&l.languages.length>1?"44px":"12px":l.languages&&l.languages.length>1?"244px":"204px"}},this.currentTrek&&i("div",{part:"trek-options",class:"trek-options"},i("a",{part:"trek-option",class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""),ref:function(e){return t.presentationOptionRef=e},onClick:function(){return t.handleScrollTo(t.presentationRef)}},a[l.language].options.presentation),this.options.steps.visible&&i("a",{part:"trek-option",class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":""),ref:function(e){return t.stepsOptionRef=e},onClick:function(){return t.handleScrollTo(t.stepsRef)}},a[l.language].options.steps),this.options.description.visible&&i("a",{part:"trek-option",class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""),ref:function(e){return t.descriptionOptionRef=e},onClick:function(){return t.handleScrollTo(t.descriptionRef)}},a[l.language].options.description),this.options.pois.visible&&i("a",{part:"trek-option",class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""),ref:function(e){return t.poisOptionRef=e},onClick:function(){return t.handleScrollTo(t.poiRef)}},a[l.language].options.pois),this.options.recommendations.visible&&i("a",{part:"trek-option",class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""),ref:function(e){return t.recommendationsOptionRef=e},onClick:function(){return t.handleScrollTo(t.recommendationRef)}},a[l.language].options.recommendations),this.options.sensitiveArea.visible&&i("a",{part:"trek-option",class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""),ref:function(e){return t.sensitiveAreaOptionRef=e},onClick:function(){return t.handleScrollTo(t.sensitiveAreaRef)}},a[l.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&i("a",{part:"trek-option",class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""),ref:function(e){return t.informationPlacesOptionRef=e},onClick:function(){return t.handleScrollTo(t.informationPlacesRef)}},a[l.language].options.informationPlaces),this.options.accessibility.visible&&i("a",{part:"trek-option",class:"accessibility trek-option".concat(this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""),ref:function(e){return t.accessibilityOptionRef=e},onClick:function(){return t.handleScrollTo(t.accessibilityRef)}},a[l.language].options.accessibility),this.options.touristicContents.visible&&i("a",{part:"trek-option",class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicContentsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicContentsRef)}},a[l.language].options.touristicContents),this.options.touristicEvents.visible&&i("a",{part:"trek-option",class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""),ref:function(e){return t.touristicEventsOptionRef=e},onClick:function(){return t.handleScrollTo(t.touristicEventsRef)}},a[l.language].options.touristicEvents),this.presentationOptionRef&&i("span",{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",{part:"trek-detail-container",class:"trek-detail-container",ref:function(e){return t.trekDetailContainerRef=e}},i("div",{part:"trek-images",class:"trek-images-container",ref:function(e){return t.presentationRef=e}},i("div",{part:"swiper-images",class:"swiper swiper-images",ref:function(e){return t.swiperImagesRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(t){return t.type==="image"})).length>0?this.currentTrek.attachments.filter((function(t){return t.type==="image"})).map((function(e){var r=[e.legend,e.author].filter(Boolean).join(" - ");return i("div",{part:"swiper-slide",class:"swiper-slide"},t.displayFullscreen&&i("div",{part:"trek-close-fullscreen-button",class:"trek-close-fullscreen-button",onClick:function(){return t.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:t.offline?e.thumbnail:e.url,loading:"lazy",onClick:function(){return t.handleFullscreen()},onerror:function(t){t.target.onerror=null;t.target.className="trek-img default-trek-img";t.target.src=u},alt:e.legend}))})):i("img",{part:"trek-img",class:"trek-img default-trek-img",src:u,loading:"lazy",alt:""})),i("div",{style:{display:this.offline?"none":"flex"}},i("div",{part:"swiper-pagination",class:"swiper-pagination",ref:function(e){return t.paginationElImagesRef=e}}),i("div",{part:"swiper-button-prev",class:"swiper-button-prev",ref:function(e){return t.prevElImagesRef=e}}),i("div",{part:"swiper-button-next",class:"swiper-button-next",ref:function(e){return t.nextElImagesRef=e}})))),i("div",{part:"trek-name",class:"trek-name"},this.currentTrek.name),this.themes.length>0&&i("div",{part:"themes-container",class:"themes-container"},this.themes.map((function(t){return i("div",{part:"theme",class:"theme"},t.label)}))),i("div",{part:"sub-container",class:"sub-container"},i("div",{part:"icons-labels-container",class:"icons-labels-container"},this.difficulty&&i("div",{part:"icon-label",class:"icon-label difficulty"},this.difficulty.pictogram&&i("img",{part:"icon",class:"icon",src:this.difficulty.pictogram,alt:""}),i("span",{part:"label",class:"label"},this.difficulty.label)),i("div",{part:"icon-label",class:"icon-label duration"},i("span",{part:"icon",class:"icon",innerHTML:dt}),i("span",{part:"label",class:"label"},A((e=this.currentTrek)===null||e===void 0?void 0:e.duration))),i("div",{part:"icon-label",class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&i("img",{part:"icon",class:"icon",src:this.route.pictogram,alt:""}),i("span",{part:"label",class:"label"},(s=this.route)===null||s===void 0?void 0:s.route)),i("div",{part:"icon-label",class:"icon-label length"},i("span",{part:"icon",class:"icon",innerHTML:ft}),i("span",{part:"label",class:"label"},_(this.currentTrek.length_2d))),this.currentTrek.ascent&&i("div",{part:"icon-label",class:"icon-label ascent"},i("span",{part:"icon",class:"icon",innerHTML:ht}),i("span",{part:"label",class:"label"},z(this.currentTrek.ascent))),this.currentTrek.descent&&i("div",{part:"icon-label",class:"icon-label descent"},i("span",{part:"icon",class:"icon",innerHTML:ht}),i("span",{part:"label",class:"label"},B(this.currentTrek.descent))),i("div",{part:"icon-label",class:"icon-label practice"},((c=this.practice)===null||c===void 0?void 0:c.pictogram)&&i("img",{part:"icon",class:"icon",src:this.practice.pictogram,alt:""}),i("span",{part:"label",class:"label"},(p=this.practice)===null||p===void 0?void 0:p.name)),i("div",{part:"icon-label",class:"icon-label networks"},this.currentTrek.networks.map((function(t){var e=l.networks.find((function(e){return e.id===t}));return i("div",{part:"network",class:"network"},i("img",{part:"icon",class:"icon",src:e.pictogram,alt:""}),i("span",{part:"label",class:"label"},e.label))}))),this.currentTrek.ratings.map((function(t){return i("div",{part:"row",class:"row"},"".concat(l.ratingsScale.find((function(e){return e.id===l.ratings.find((function(e){return e.id===t})).scale})).name," : ").concat(l.ratings.find((function(e){return e.id===t})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&i("div",{part:"row",class:"row",innerHTML:this.currentTrek.ratings_description}))),i("div",{part:"divider",class:"divider"}),i("div",{part:"downloads-container",class:"downloads-container"},i("div",{part:"download-title",class:"download-title"},a[l.language].downloads),this.enableOffline&&!this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDownloadModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ge}),i("span",{part:"label",class:"label"},"RENDRE DISPONIBLE HORS LIGNE")),this.enableOffline&&this.offline&&(!this.currentTrek.parents||this.currentTrek.parents.length===0)&&i("button",{part:"offline-button",class:"offline-button",onClick:function(){return t.displayDeleteModal()}},i("span",{part:"icon",class:"icon",innerHTML:Ze}),i("span",{part:"label",class:"label"},"SUPPRIMER DU HORS LIGNE")),i("div",{part:"links-container",class:"links-container"},i("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:" icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"GPX")),i("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"KML")),i("a",{href:"".concat(this.currentTrek.pdf).concat(l.portalsFromProviders&&l.portalsFromProviders.length===1?"?portal="+l.portalsFromProviders[0]:""),target:"_blank",rel:"noopener noreferrer"},i("span",{part:"icon",class:"icon",innerHTML:ye}),i("span",{part:"label",class:"label"},"PDF")))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description_teaser&&i("div",{part:"description-teaser",class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{part:"ambiance",class:"ambiance",innerHTML:this.currentTrek.ambiance}),l.parentTrekId&&l.parentTrek&&this.currentTrek.id!==l.parentTrekId&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"parent-trek-container",class:"parent-trek-container"},i("button",{part:"parent-trek-title",class:"parent-trek-title",onClick:function(){return t.parentTrekPress.emit(l.parentTrekId)}},i("div",null,"<"),l.parentTrek.name))),l.currentTrekSteps&&i("div",{part:"step-container",class:"step-container"},i("div",{part:"step-title",class:"step-title",ref:function(e){return t.stepsRef=e}},"".concat(l.currentTrekSteps.length," ").concat(a[l.language].steps)),i("div",{part:"swiper-step",class:"swiper swiper-step",ref:function(e){return t.swiperStepRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentTrekSteps&&l.currentTrekSteps.map((function(e){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(e.id),trek:e,"is-large-view":false,"is-step":true,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.stepSwiperScrollbar=e}}))),i("div",{part:"divider",class:"divider"}),this.currentTrek.description&&i("div",{part:"description-container",class:"description-container"},i("div",{part:"description-title",class:"description-title",ref:function(e){return t.descriptionRef=e}},a[l.language].description),i("div",{part:"description",class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{part:"departure-container",class:"departure-container"},i("div",{part:"departure-title",class:"departure-title"},a[l.language].departure," : "),i("div",{part:"departure",innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{part:"arrival-container",class:"arrival-container"},i("div",{part:"arrival-title",class:"arrival-title"},a[l.language].arrival," : "),i("div",{part:"arrival",innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&i("div",{part:"cities-container",class:"cities-container"},i("div",{part:"cities-title",class:"cities-title"},a[l.language].crossedCities," : "),i("div",{part:"cities",innerHTML:this.cities.join(", ")})),l.currentPois&&l.currentPois.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"pois-container",class:"pois-container"},i("div",{part:"pois-title",class:"pois-title",ref:function(e){return t.poiRef=e}},a[l.language].pois(l.currentPois.length)),i("div",{part:"swiper-pois",class:"swiper swiper-pois",ref:function(e){return t.swiperPoisRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.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}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.poisSwiperScrollbar=e}})))),this.weather&&this.currentTrek.departure_city&&!this.offline&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weather-container",class:"weather-container"},i("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)}))),this.currentTrek.access&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"access-container",class:"access-container"},i("div",{part:"access-title",class:"access-title"},a[l.language].roadAccessAndParking),i("div",{part:"access",class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&i("div",null,i("div",{part:"advised-parking-title",class:"advised-parking-title",ref:function(e){return t.parkingRef=e}},a[l.language].recommendedParking),i("div",{part:"advised-parking",class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"public-transport-container",class:"public-transport-container"},i("div",{part:"public-transport-title",class:"public-transport-title"},a[l.language].transport),i("div",{part:"public-transport",class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"advice-container",class:"advice-container"},i("div",{part:"advice-title",class:"advice-title",ref:function(e){return t.recommendationRef=e}},a[l.language].recommendations),this.currentTrek.advice&&i("div",{part:"current-advice-container",class:"current-advice-container"},i("span",{part:"icon",class:"icon",innerHTML:Ae}),i("div",{part:"advice",class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&i("div",{part:"gear-container",class:"gear-container"},i("span",{part:"icon",class:"icon",innerHTML:Ei}),i("div",{part:"gear",class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((function(t){return i("div",{part:"label-container",class:"label-container"},i("div",{part:"label-sub-container",class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",{part:"label-name",class:"label-name",innerHTML:t.name})),i("div",{part:"label-advice",class:"label-advice",innerHTML:t.advice}))})))),l.currentSensitiveAreas&&l.currentSensitiveAreas.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"sensitive-areas-container",class:"sensitive-areas-container"},i("div",{part:"ensitive-areas-title",class:"sensitive-areas-title",ref:function(e){return t.sensitiveAreaRef=e}},a[l.language].environmentalSensitiveAreas),i("div",{part:"sensitive-areas-description",class:"sensitive-areas-description"},a[l.language].sensitiveAreasDescription),l.currentSensitiveAreas.map((function(t){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",sensitiveArea:t})})))),l.currentInformationDesks&&l.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.id)})).length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"information-desks-container",class:"information-desks-container"},i("div",{part:"information-desks-title",class:"information-desks-title",ref:function(e){return t.informationPlacesRef=e}},a[l.language].informationPlaces),i("div",{part:"swiper-information-desks",class:"swiper swiper-information-desks",ref:function(e){return t.swiperInformationDesksRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.currentInformationDesks.filter((function(e){return t.currentTrek.information_desks.includes(e.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}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.informationDesksContentsSwiperScrollbar=e}})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"accessibilities-container",class:"accessibilities-container"},i("div",{part:"accessibilities-title",class:"accessibilities-title",ref:function(e){return t.accessibilityRef=e}},a[l.language].accessibility),this.currentTrek.disabled_infrastructure&&i("div",{part:"disabled-infrastructure",innerHTML:this.currentTrek.disabled_infrastructure}),this.accessibilities&&this.accessibilities.length>0&&i("div",{part:"accessibilities-content-container",class:"accessibilities-content-container"},this.accessibilities.map((function(t){return i("div",{part:"accessibility-content-container",class:"accessibility-content-container"},i("img",{src:t.pictogram,alt:""}),i("div",{part:"accessibility-name",innerHTML:t.name}))}))),this.emergencyNumber&&i("div",{part:"accessibility-emergency-number-container",class:"accessibility-emergency-number-container"},i("div",{part:"accessibility-emergency-number-title",class:"accessibility-emergency-number-title"},a[l.language].emergencyNumber),i("div",{part:"accessibility-emergency-number-content",class:"accessibility-emergency-number-content"},i("a",{href:"tel:".concat(this.emergencyNumber.toString())},i("span",{part:"icon",class:"icon",innerHTML:wt}),i("span",{part:"emergency-number",class:"emergency-number"},this.emergencyNumber.toString())))),this.currentTrek.accessibility_level&&i("div",{part:"accessibility-level-container",class:"accessibility-level-container"},i("div",{part:"accessibility-level-title",class:"accessibility-level-title"},a[l.language].accessibilityLevel),i("div",{part:"accessibility-level-name",innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{part:"accessibility-slope-container",class:"accessibility-slope-container"},i("div",{part:"accessibility-slope-title",class:"accessibility-slope-title"},a[l.language].accessibilitySlope),i("div",{part:"accessibility-slope",innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{part:"accessibility-width-container",class:"accessibility-width-container"},i("div",{part:"accessibility-width-title",class:"accessibility-width-title"},a[l.language].accessibilityWidth),i("div",{part:"accessibility-width",innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{part:"accessibility-signage-container",class:"accessibility-signage-container"},i("div",{part:"accessibility-signage-title",class:"accessibility-signage-title"},a[l.language].accessibilitySignage),i("div",{part:"accessibility-signage",innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{part:"accessibility-covering-container",class:"accessibility-covering-container"},i("div",{part:"accessibility-covering-title",class:"accessibility-covering-title"},a[l.language].accessibilityCovering),i("div",{part:"accessibility-covering",innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{part:"accessibility-exposure-container",class:"accessibility-exposure-container"},i("div",{part:"accessibility-exposure-title",class:"accessibility-exposure-title"},a[l.language].accessibilityExposure),i("div",{part:"accessibility-exposure",innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{part:"accessibility-advice-container",class:"accessibility-advice-container"},i("div",{part:"accessibility-advice-title",class:"accessibility-advice-title"},a[l.language].accessibilityAdvices),i("div",{part:"accessibility-advice",innerHTML:this.currentTrek.accessibility_advice})))),l.trekTouristicContents&&l.trekTouristicContents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-content-container",class:"touristic-content-container"},i("div",{part:"touristic-content-title",class:"touristic-content-title",ref:function(e){return t.touristicContentsRef=e}},a[l.language].touristicContents(l.trekTouristicContents.length)),i("div",{part:"swiper-touristic-content",class:"swiper swiper-touristic-content",ref:function(e){return t.swiperTouristicContentsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicContents.map((function(e){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:t.fontFamily,touristicContent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicContentsSwiperScrollbar=e}})))),l.trekTouristicEvents&&l.trekTouristicEvents.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"touristic-event-container",class:"touristic-event-container"},i("div",{part:"touristic-event-title",class:"touristic-event-title",ref:function(e){return t.touristicEventsRef=e}},a[l.language].touristicEvents(l.trekTouristicEvents.length)),i("div",{part:"swiper-touristic-event",class:"swiper swiper-touristic-event",ref:function(e){return t.swiperTouristicEventsRef=e}},i("div",{part:"swiper-wrapper",class:"swiper-wrapper"},l.trekTouristicEvents.map((function(e){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:t.fontFamily,touristicEvent:e,isInsideHorizontalList:true}))}))),i("div",{part:"swiper-scrollbar",class:"swiper-scrollbar",ref:function(e){return t.touristicEventsSwiperScrollbar=e}})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"weblinks-container",class:"weblinks-container"},i("div",{part:"weblinks-title",class:"weblinks-title"},a[l.language].learnMore),this.currentTrek.web_links.map((function(t){return i("a",{part:"weblink-container",class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&i("img",{src:t.category.pictogram,alt:t.category.label}),t.name)})))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",null,i("div",{part:"divider",class:"divider"}),i("div",{part:"source-container",class:"source-container"},i("div",{part:"source-title",class:"source-title"},a[l.language].sources),this.sources.map((function(t){return i("div",{part:"source-sub-container",class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram,alt:""}),i("div",null,i("div",{part:"source-name",class:"source-name",innerHTML:t.name}),i("a",{part:"source-advice",class:"source-advice",href:t.website,innerHTML:t.website})))})))),this.grwApp&&i("div",{part:"detail-bottom-space",class:"detail-bottom-space"})))};return t}());Xi.style=Yi;var Ji=t("grw_trek_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTrek()};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.handleTrek=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,N("treks",this.trekId)];case 1:t=e.sent();if(t&&t.offline){this.handleOfflineTrek(t)}else{this.handleOnlineTrek()}return[2]}}))}))};t.prototype.handleOfflineTrek=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c,p,u,d,f,h,m,v,g,w,b,k,x,y,A,_,z,L,B,P,F,T;return __generator(this,(function(O){switch(O.label){case 0:if(!(t&&t.children.length>0||l.parentTrekId))return[3,5];e=[];if(!(t.children.length>0))return[3,1];l.parentTrekId=t.id;l.parentTrek=t;e.push.apply(e,t.children);return[3,3];case 1:return[4,N("treks",l.parentTrekId)];case 2:i=O.sent();l.parentTrek=i;e.push.apply(e,i.children);O.label=3;case 3:r=[];e.forEach((function(t){r.push(N("treks",t))}));n=l;return[4,Promise.all(__spreadArray([],r,true)).then((function(t){return t}))];case 4:n.currentTrekSteps=O.sent();O.label=5;case 5:o=l;return[4,S("difficulties")];case 6:o.difficulties=O.sent();s=l;return[4,S("routes")];case 7:s.routes=O.sent();a=l;return[4,S("practices")];case 8:a.practices=O.sent();c=l;return[4,S("themes")];case 9:c.themes=O.sent();p=l;return[4,S("cities")];case 10:p.cities=O.sent();u=l;return[4,S("accessibilities")];case 11:u.accessibilities=O.sent();d=l;return[4,S("ratings")];case 12:d.ratings=O.sent();f=l;return[4,S("ratingsScale")];case 13:f.ratingsScale=O.sent();h=l;return[4,S("labels")];case 14:h.labels=O.sent();m=l;return[4,S("sources")];case 15:m.sources=O.sent();v=l;return[4,S("accessibilitiesLevel")];case 16:v.accessibilitiesLevel=O.sent();g=l;return[4,S("touristicContentCategories")];case 17:g.touristicContentCategories=O.sent();w=l;return[4,S("touristicEventTypes")];case 18:w.touristicEventTypes=O.sent();b=l;return[4,S("networks")];case 19:b.networks=O.sent();k=l;return[4,S("poiTypes")];case 20:k.poiTypes=O.sent();return[4,S("informationDesks")];case 21:x=O.sent();y=x.filter((function(e){return t.information_desks.some((function(t){return t===e.id}))}));l.currentInformationDesks=y;return[4,S("pois",["url"])];case 22:A=O.sent();_=A.filter((function(e){return t.pois.some((function(t){return t===e.id}))}));l.currentPois=_;return[4,S("touristicContents",["url"])];case 23:z=O.sent();L=z.filter((function(e){return t.touristicContents.some((function(t){return t===e.id}))}));l.trekTouristicContents=L;return[4,S("touristicEvents",["url"])];case 24:B=O.sent();P=B.filter((function(e){return t.touristicEvents.some((function(t){return t===e.id}))}));l.trekTouristicEvents=P;return[4,S("sensitiveAreas")];case 25:F=O.sent();T=F.filter((function(e){return t.sensitiveAreas.some((function(t){return t===e.id}))}));l.currentSensitiveAreas=T;return[4,M(t,C,["url"])];case 26:O.sent();l.currentTrek=t;return[2]}}))}))};t.prototype.handleOnlineTrek=function(){var t=this;var e=[];e.push(!l.difficulties?fetch("".concat(l.api,"trek_difficulty/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!l.routes?fetch("".concat(l.api,"trek_route/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));e.push(!l.practices?fetch("".concat(l.api,"trek_practice/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!l.themes?fetch("".concat(l.api,"theme/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));e.push(!l.cities?fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!l.accessibilities?fetch("".concat(l.api,"trek_accessibility/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));e.push(!l.ratings?fetch("".concat(l.api,"trek_rating/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));e.push(!l.ratingsScale?fetch("".concat(l.api,"trek_ratingscale/?language=").concat(l.language,"&fields=id,name"),this.init):new Response("null"));try{Promise.all(__spreadArray(__spreadArray([],e,true),[W(l.api,l.language,this.trekId,this.init).then((function(t){if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(l.api,"label/?language=").concat(l.language,"&fields=id,name,advice,pictogram,filter"),this.init),V(l.api,l.language,this.init),fetch("".concat(l.api,"trek_accessibility_level/?language=").concat(l.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),K(l.api,l.language,this.trekId,this.init),fetch("".concat(l.api,"poi_type/?language=").concat(l.language,"&fields=id,pictogram"),this.init),U(l.api,l.language,this.init),Be(l.api,l.language,this.trekId,this.init),fetch("".concat(l.api,"touristiccontent_category/?language=").concat(l.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),Oe(l.api,l.language,this.trekId,this.init),fetch("".concat(l.api,"touristicevent_type/?language=").concat(l.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(l.api,"trek_network/?language=").concat(l.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),J(l.api,l.language,this.trekId,this.init)],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],p=e[7],u=e[8],d=e[9],f=e[10],h=e[11],m=e[12],v=e[13],g=e[14],w=e[15],b=e[16],k=e[17],x=e[18],y=e[19],A=e[20];return __awaiter(t,void 0,void 0,(function(){var t,e,_,z;var L=this;return __generator(this,(function(M){switch(M.label){case 0:l.networkError=false;if(!(A&&A.children.length>0||l.parentTrekId))return[3,5];t=[];if(!(A.children.length>0))return[3,1];l.parentTrekId=A.id;l.parentTrek=A;t.push.apply(t,A.children);return[3,3];case 1:return[4,fetch("".concat(l.api,"trek/").concat(l.parentTrekId,"/?language=").concat(l.language,"&published=true&fields=name,children")).then((function(t){return t.json()}))];case 2:e=M.sent();l.parentTrek=e;t.push.apply(t,e.children);M.label=3;case 3:_=[];t.forEach((function(t){_.push(J(l.api,l.language,t,L.init))}));z=l;return[4,Promise.all(__spreadArray([],_,true)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))}))];case 4:z.currentTrekSteps=M.sent();M.label=5;case 5:if(i){l.difficulties=i.results}if(r){l.routes=r.results}if(n){l.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){l.themes=o.results}if(s){l.cities=s.results}if(a){l.accessibilities=a.results}if(c){l.ratings=c.results}if(p){l.ratingsScale=p.results}if(u){l.currentSensitiveAreas=u.results}if(d){l.labels=d.results}if(f){l.sources=f.results}if(h){l.accessibilitiesLevel=h.results}if(w){l.trekTouristicContents=w.results}if(b){l.touristicContentCategories=b.results}if(k){l.trekTouristicEvents=k.results}if(x){l.touristicEventTypes=x.results}if(y){l.networks=y.results}if(m){l.currentPois=m.results}if(v){l.poiTypes=v.results}if(g){l.currentInformationDesks=g.results}if(A){l.currentTrek=A}return[2]}}))}))}))}catch(t){if(!(t.code===DOMException.ABORT_ERR)){l.networkError=true}}};t.prototype.render=function(){return i(r,{key:"f91ee60e87d532eb77977fad01b0b8de644561f7"})};return t}());var Ki=":host{width:100%;height:100%;overflow-y:auto}grw-trek-card{width:100% !important;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:0px 8px 16px 8px}.list-bottom-space{height:104px}.list-large-view-bottom-space{height:52px}.current-treks-within-bounds-length{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:16px;color:var(--color-on-surface-variant);font-size:22px;line-height:28px;font-weight:400;font-family:var(--font-family)}.treks-list-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}";var Wi=Ki;var $i=t("grw_treks_list",function(){function t(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);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}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(l.currentTreks){this.treksToDisplay=__spreadArray([],l.currentTreks.slice(0,this.step),true)}g("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.currentTreks){t.treksToDisplay=__spreadArray([],l.currentTreks.slice(0,t.step),true)}}));g("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(l.treksWithinBounds){t.treksToDisplay=__spreadArray([],l.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<l.treksWithinBounds.length){this.treksToDisplay=l.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=l.treksWithinBounds.length?l.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(r,{key:"1062a53e0ca6fb2895eeb053e67b552e5db8ad6f",style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},l.treksWithinBounds&&i("div",{part:"current-treks-within-bounds-length",class:"current-treks-within-bounds-length"},"".concat(l.treksWithinBounds.length," ").concat(l.treksWithinBounds.length>1?a[l.language].treks:a[l.language].trek)),i("div",{key:"fd6be559acc6085a45937ae12ccd281b29352ab4",part:"treks-list-container",class:"treks-list-container"},this.treksToDisplay.map((function(e){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(e.id),trek:e,"is-large-view":t.isLargeView,fontFamily:t.fontFamily,"color-primary-app":t.colorPrimaryApp,"color-on-surface":t.colorOnSurface,"color-secondary-container":t.colorSecondaryContainer,"color-on-secondary-container":t.colorOnSecondaryContainer,"color-surface-container-low":t.colorSurfaceContainerLow})}))),i("div",{key:"ce16df757c304feed1de020a79bdef68c1f013e0",part:"list-bottom-space",class:!this.isLargeView?"list-bottom-space":"list-large-view-bottom-space"}))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());$i.style=Wi;var tr=t("grw_treks_provider",function(){function t(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined;this.labels=undefined}t.prototype.connectedCallback=function(){if(!l.api){l.api=this.api;l.languages=this.languages.split(",");l.language=l.languages[0]}l.portalsFromProviders=this.portals;l.inBboxFromProviders=this.inBbox;l.citiesFromProviders=this.cities;l.districtsFromProviders=this.districts;l.structuresFromProviders=this.structures;l.themesFromProviders=this.themes;l.routesFromProviders=this.routes;l.practicesFromProviders=this.practices;l.labelsFromProviders=this.labels;this.handleTreks()};t.prototype.disconnectedCallback=function(){this.controller.abort();l.networkError=false};t.prototype.handleTreks=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.handleOnlineTreks();return[2]}))}))};t.prototype.handleOfflineTreks=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,r,n,o,s,a,c;return __generator(this,(function(p){switch(p.label){case 0:e=l;return[4,this.handleOfflineProperty("difficulties")];case 1:e.difficulties=p.sent();i=l;return[4,this.handleOfflineProperty("routes")];case 2:i.routes=p.sent();r=l;return[4,this.handleOfflineProperty("practices")];case 3:r.practices=p.sent();n=l;return[4,this.handleOfflineProperty("themes")];case 4:n.themes=p.sent();o=l;return[4,this.handleOfflineProperty("cities")];case 5:o.cities=p.sent();s=l;return[4,this.handleOfflineProperty("accessibilities")];case 6:s.accessibilities=p.sent();a=l;return[4,this.handleOfflineProperty("labels")];case 7:a.labels=p.sent();c=l;return[4,this.handleOfflineProperty("districts")];case 8:c.districts=p.sent();l.durations=P;l.lengths=F;l.elevations=T;return[4,this.handleOfflineProperty("treks")];case 9:t=p.sent();this.sortTreks(t);l.treks=t;l.currentTreks=t;return[2]}}))}))};t.prototype.sortTreks=function(t){t.sort((function(t,e){return t.name.localeCompare(e.name,undefined,{numeric:true,sensitivity:"base"})}))};t.prototype.handleOfflineProperty=function(t,e){if(e===void 0){e=[]}return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:return[4,H(t)];case 1:i=r.sent();return[4,M(i,C,e)];case 2:r.sent();return[2,i]}}))}))};t.prototype.handleOnlineTreks=function(){var t=this;Promise.all([fetch("".concat(l.api,"trek_difficulty/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(l.api,"trek_route/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(l.api,"trek_practice/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(l.api,"theme/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(l.api,"city/?language=").concat(l.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(l.api,"trek_accessibility/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(l.api,"label/?language=").concat(l.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram,filter&published=true&page_size=999"),this.init),q(l.api,l.language,this.init),X(this.api,l.language,this.inBbox,this.cities,this.districts,this.structures,this.themes,this.portals,this.routes,this.practices,this.labels,this.init)]).then((function(t){t.forEach((function(t){if(t.status!==200){throw new Error("network error")}}));return Promise.all(t.map((function(t){return t.json()})))})).then((function(e){var i=e[0],r=e[1],n=e[2],o=e[3],s=e[4],a=e[5],c=e[6],p=e[7],u=e[8];return __awaiter(t,void 0,void 0,(function(){var t,e,d;return __generator(this,(function(f){switch(f.label){case 0:l.networkError=false;l.difficulties=i.results;l.routes=r.results;l.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));l.themes=o.results;l.cities=s.results;l.accessibilities=a.results;l.labels=c.results;l.districts=p.results;l.durations=P;l.lengths=F;l.elevations=T;t=[];e=0;f.label=1;case 1:if(!(e<u.results.length))return[3,4];return[4,$(u.results[e].id)];case 2:d=f.sent();t.push(Object.assign(Object.assign({},u.results[e]),{offline:d}));f.label=3;case 3:e++;return[3,1];case 4:this.sortTreks(t);l.treks=t;l.currentTreks=t;return[2]}}))}))})).catch((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:return[4,H("treks")];case 1:t=e.sent();if(t&&t.length>0){this.handleOfflineTreks(t)}else{l.networkError=true}return[2]}}))}))}))};t.prototype.render=function(){return i(r,{key:"6e38f184770da305b7060f907c943cb0f0c42c1d"})};return t}())}}}));
|
|
10
|
-
//# sourceMappingURL=p-7e28980f.system.entry.js.map
|