@geotrekce/geotrek-rando-widget 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
  3. package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
  4. package/dist/cjs/grw-app_28.cjs.entry.js +570 -83
  5. package/dist/cjs/grw-app_28.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app_28.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app_28.cjs.entry.js.map +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js.br +0 -0
  10. package/dist/cjs/loader.cjs.js.gz +0 -0
  11. package/dist/collection/assets/parking.svg +5 -0
  12. package/dist/collection/assets/parking.svg.br +0 -0
  13. package/dist/collection/assets/parking.svg.gz +0 -0
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/grw-app/grw-app.css +8 -5
  16. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  17. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  18. package/dist/collection/components/grw-app/grw-app.js +20 -1
  19. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  20. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  21. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  22. package/dist/collection/components/grw-filters/grw-filters.js +1 -1
  23. package/dist/collection/components/grw-filters/grw-filters.js.br +0 -0
  24. package/dist/collection/components/grw-filters/grw-filters.js.gz +0 -0
  25. package/dist/collection/components/grw-filters/grw-filters.js.map +1 -1
  26. package/dist/collection/components/grw-information-desk/grw-information-desk.js +3 -1
  27. package/dist/collection/components/grw-information-desk/grw-information-desk.js.br +0 -0
  28. package/dist/collection/components/grw-information-desk/grw-information-desk.js.gz +0 -0
  29. package/dist/collection/components/grw-information-desk/grw-information-desk.js.map +1 -1
  30. package/dist/collection/components/grw-map/grw-map.css +14 -11
  31. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  32. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  33. package/dist/collection/components/grw-map/grw-map.js +26 -16
  34. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  35. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  36. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  37. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css +27 -4
  38. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.br +0 -0
  39. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.css.gz +0 -0
  40. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +1 -1
  41. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.br +0 -0
  42. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.gz +0 -0
  43. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js.map +1 -1
  44. package/dist/collection/components/{grw-touristic-content → grw-touristic-content-card}/grw-touristic-content-card.css +5 -2
  45. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.br +0 -0
  46. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.css.gz +0 -0
  47. package/dist/collection/components/grw-touristic-content-card/grw-touristic-content-card.js.map +1 -0
  48. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js +1 -1
  49. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.br +0 -0
  50. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.gz +0 -0
  51. package/dist/collection/components/grw-touristic-content-detail/grw-touristic-content-detail.js.map +1 -1
  52. package/dist/collection/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.css +0 -1
  53. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.css.br +0 -0
  54. package/dist/collection/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.css.gz +0 -0
  55. package/dist/collection/components/grw-touristic-event-card/grw-touristic-event-card.js.map +1 -0
  56. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js +1 -1
  57. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.br +0 -0
  58. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.gz +0 -0
  59. package/dist/collection/components/grw-touristic-event-detail/grw-touristic-event-detail.js.map +1 -1
  60. package/dist/collection/components/grw-trek-card/grw-trek-card.js +1 -1
  61. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  62. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  63. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +169 -35
  64. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
  65. package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
  66. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +135 -44
  67. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  68. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  69. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  70. package/dist/collection/i18n/i18n.js +16 -10
  71. package/dist/collection/i18n/i18n.js.br +0 -0
  72. package/dist/collection/i18n/i18n.js.gz +0 -0
  73. package/dist/collection/i18n/i18n.js.map +1 -1
  74. package/dist/collection/store/grw-trek-provider.js +8 -4
  75. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  76. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  77. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  78. package/dist/collection/store/store.js +1 -0
  79. package/dist/collection/store/store.js.br +0 -0
  80. package/dist/collection/store/store.js.gz +0 -0
  81. package/dist/collection/store/store.js.map +1 -1
  82. package/dist/collection/types/types.js.map +1 -1
  83. package/dist/collection/utils/utils.js +4 -1
  84. package/dist/collection/utils/utils.js.br +0 -0
  85. package/dist/collection/utils/utils.js.gz +0 -0
  86. package/dist/collection/utils/utils.js.map +1 -1
  87. package/dist/esm/geotrek-rando-widget.js +1 -1
  88. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  89. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  90. package/dist/esm/grw-app_28.entry.js +570 -83
  91. package/dist/esm/grw-app_28.entry.js.br +0 -0
  92. package/dist/esm/grw-app_28.entry.js.gz +0 -0
  93. package/dist/esm/grw-app_28.entry.js.map +1 -1
  94. package/dist/esm/loader.js +1 -1
  95. package/dist/esm/loader.js.br +0 -0
  96. package/dist/esm/loader.js.gz +0 -0
  97. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  98. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  99. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  100. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  101. package/dist/esm-es5/grw-app_28.entry.js +4 -4
  102. package/dist/esm-es5/grw-app_28.entry.js.br +0 -0
  103. package/dist/esm-es5/grw-app_28.entry.js.gz +0 -0
  104. package/dist/esm-es5/grw-app_28.entry.js.map +1 -1
  105. package/dist/esm-es5/loader.js +1 -1
  106. package/dist/esm-es5/loader.js.br +0 -0
  107. package/dist/esm-es5/loader.js.gz +0 -0
  108. package/dist/esm-es5/loader.js.map +1 -1
  109. package/dist/geotrek-rando-widget/assets/parking.svg +5 -0
  110. package/dist/geotrek-rando-widget/assets/parking.svg.br +0 -0
  111. package/dist/geotrek-rando-widget/assets/parking.svg.gz +0 -0
  112. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  113. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  114. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  115. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  116. package/dist/geotrek-rando-widget/p-4c1b31d8.system.entry.js +15 -0
  117. package/dist/geotrek-rando-widget/p-4c1b31d8.system.entry.js.br +0 -0
  118. package/dist/geotrek-rando-widget/p-4c1b31d8.system.entry.js.gz +0 -0
  119. package/dist/geotrek-rando-widget/p-4c1b31d8.system.entry.js.map +1 -0
  120. package/dist/geotrek-rando-widget/{p-37932796.entry.js → p-619b9cda.entry.js} +5 -5
  121. package/dist/geotrek-rando-widget/p-619b9cda.entry.js.br +0 -0
  122. package/dist/geotrek-rando-widget/p-619b9cda.entry.js.gz +0 -0
  123. package/dist/geotrek-rando-widget/p-619b9cda.entry.js.map +1 -0
  124. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js +1 -1
  125. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.br +0 -0
  126. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.gz +0 -0
  127. package/dist/geotrek-rando-widget/p-cea4d6a2.system.js.map +1 -1
  128. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  129. package/dist/types/components/grw-map/grw-map.d.ts +1 -0
  130. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +26 -1
  131. package/dist/types/components.d.ts +4 -0
  132. package/dist/types/i18n/i18n.d.ts +5 -2
  133. package/dist/types/store/store.d.ts +3 -1
  134. package/dist/types/types/types.d.ts +21 -1
  135. package/dist/types/utils/utils.d.ts +1 -0
  136. package/package.json +2 -1
  137. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.br +0 -0
  138. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.css.gz +0 -0
  139. package/dist/collection/components/grw-touristic-content/grw-touristic-content-card.js.map +0 -1
  140. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.css.br +0 -0
  141. package/dist/collection/components/grw-touristic-event/grw-touristic-event-card.js.map +0 -1
  142. package/dist/geotrek-rando-widget/p-37932796.entry.js.br +0 -0
  143. package/dist/geotrek-rando-widget/p-37932796.entry.js.gz +0 -0
  144. package/dist/geotrek-rando-widget/p-37932796.entry.js.map +0 -1
  145. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js +0 -15
  146. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.br +0 -0
  147. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.gz +0 -0
  148. package/dist/geotrek-rando-widget/p-46c11f88.system.entry.js.map +0 -1
  149. /package/dist/collection/components/{grw-touristic-content → grw-touristic-content-card}/grw-touristic-content-card.js +0 -0
  150. /package/dist/collection/components/{grw-touristic-content → grw-touristic-content-card}/grw-touristic-content-card.js.br +0 -0
  151. /package/dist/collection/components/{grw-touristic-content → grw-touristic-content-card}/grw-touristic-content-card.js.gz +0 -0
  152. /package/dist/collection/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.js +0 -0
  153. /package/dist/collection/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.js.br +0 -0
  154. /package/dist/collection/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.js.gz +0 -0
  155. /package/dist/types/components/{grw-touristic-content → grw-touristic-content-card}/grw-touristic-content-card.d.ts +0 -0
  156. /package/dist/types/components/{grw-touristic-event → grw-touristic-event-card}/grw-touristic-event-card.d.ts +0 -0
@@ -1,15 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,i){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]};return e(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,i,r){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?i(e.value):n(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(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=t.call(e,i)}catch(l){a=[6,l];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(e,t,i){if(i||arguments.length===2)for(var r=0,n=t.length,o;r<n;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-9d93427a.system.js"],(function(e,t){"use strict";var i,r,n,o,s,a,l,c;return{setters:[function(e){i=e.g;r=e.f;n=e.r;o=e.h;s=e.H;a=e.c;l=e.e;c=e.i}],execute:function(){var p={fr:{filter:"Filtrer",practice:"Pratique",difficulty:"Difficulté",duration:"Durée",length:"Longueur",treks:"itinéraires",trek:"itinéraire",showList:"Voir la liste",showMap:"Voir la carte",showRoute:"Voir l'itinéraire",showDetails:"Voir la fiche",download:"Téléchargement",downloads:"Téléchargements",description:"Description",departure:"Départ",arrival:"Arrivée",elevationProfile:"Profil altimétrique",roadAccess:"Accès routier",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Parking conseillé",equipments:"Équipements",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalisation",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:function(e){return"Les ".concat(e," patrimoines à découvrir")},touristicContents:function(e){return"Services à proximité (".concat(e,")")},touristicEvents:function(e){return"Événements associés (".concat(e,")")},sources:"Sources",city:"Commune",crossedCities:"Communes",placeholderCrossedCities:"Sélectionner une ou plusieurs communes",home:{segment:{treks:"Itinéraires",touristicContents:"Services",touristicEvents:"Événements"},touristicContents:"Services",touristicContent:"Service",touristicEvents:"Événements",touristicEvent:"Événement"},options:{presentation:"Présentation",description:"Description",recommendations:"Recommandations",environmentalSensitiveAreas:"Zones sensibles",informationPlaces:"Lieux d'informations",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},layers:{referencePoints:"Points de référence",parking:"Parking conseillé",sensitiveArea:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",pois:"Patrimoines",steps:"Étapes",touristicContents:"À proximité",touristicEvents:"Événements"},themes:"Thèmes",placeholderThemes:"Sélectionner un ou plusieurs thèmes",placeholderPractices:"Sélectionner une ou plusieurs pratiques",routes:"Type de parcours",elevation:"Denivelé positif",activities:"Activités",districts:"Secteurs",erase:"EFFACER",ok:"OK",location:"Localisation",steps:"étapes",usefulInformation:"Informations pratiques",contact:"Contact",email:"Email",website:"Site web",category:"Catégorie",services:"Services",type:"Types",placeholderType:"Sélectionner un ou plusieurs types",centerOnMap:"Centrer sur la carte",readMore:"Lire plus",readLess:"Lire moins"},en:{filter:"Filter",practice:"Practice",difficulty:"Difficulty",duration:"Duration",length:"Length",treks:"routes",trek:"route",showList:"Show the list",showMap:"Show the map",showRoute:"Show the route",showDetails:"Show the details",download:"Download",downloads:"Downloads",description:"Description",departure:"Departure",arrival:"Arrival",elevationProfile:"Elevation profile",roadAccess:"Road acess",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking recommended",equipments:"Equipements",environmentalSensitiveAreas:"Areas of environmental sensitivity",informationPlaces:"Information places",accessibility:"Accessibility",accessibilityLevel:"Accessibility level",accessibilitySlope:"Slope",accessibilityWidth:"Width",accessibilitySignage:"Signage",accessibilityCovering:"Covering",accessibilityExposure:"Exposure",accessibilityAdvices:"Advices",pois:function(e){return"".concat(e," points of interest")},touristicContents:function(e){return"Near (".concat(e,")")},touristicEvents:function(e){return"Events (".concat(e,")")},sources:"Sources",city:"City",crossedCities:"Cities",placeholderCrossedCities:"Select one or more municipalities",home:{segment:{treks:"Routes",touristicContents:"Services",touristicEvents:"Events"},touristicContents:"Services",touristicContent:"Service",touristicEvents:"Events",touristicEvent:"Event"},options:{presentation:"Presentation",description:"Description",recommendations:"Recommendations",environmentalSensitiveAreas:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},layers:{referencePoints:"Reference points",parking:"Parking",sensitiveArea:"Sensitive areas",informationPlaces:"Information places",pois:"Points of interest",steps:"Steps",touristicContents:"Near",touristicEvents:"Events"},themes:"Themes",placeholderThemes:"Select one or more themes",placeholderPractices:"Select one or more practices",routes:"Type of course",elevation:"Positive elevation",activities:"Activities",districts:"Districts",erase:"ERASE",ok:"OK",location:"Location",usefulInformation:"Useful information",steps:"steps",contact:"Contact",email:"Email",website:"Website",category:"Category",services:"Services",type:"Types",placeholderType:"Select one or more types",centerOnMap:"Center on map",readMore:"Read more",readLess:"Read less"}};var u=function(e,t,i){var r=e.get(t);if(!r){e.set(t,[i])}else if(!r.includes(i)){r.push(i)}};var d=function(e,t){var i;return function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}if(i){clearTimeout(i)}i=setTimeout((function(){i=0;e.apply(void 0,r)}),t)}};var h=function(e){return!("isConnected"in e)||e.isConnected};var f=d((function(e){for(var t=0,i=e.keys();t<i.length;t++){var r=i[t];e.set(r,e.get(r).filter(h))}}),2e3);var m=function(){if(typeof i!=="function"){return{}}var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var r=i();if(r){u(e,t,r)}},set:function(t){var i=e.get(t);if(i){e.set(t,i.filter(r))}f(e)},reset:function(){e.forEach((function(e){return e.forEach(r)}));f(e)}}};var g=function(e){return typeof e==="function"?e():e};var v=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var i=g(e);var r=new Map(Object.entries(i!==null&&i!==void 0?i:{}));var n={dispose:[],get:[],set:[],reset:[]};var o=function(){var t;r=new Map(Object.entries((t=g(e))!==null&&t!==void 0?t:{}));n.reset.forEach((function(e){return e()}))};var s=function(){n.dispose.forEach((function(e){return e()}));o()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var l=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var c=typeof Proxy==="undefined"?{}:new Proxy(i,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,i){l(t,i);return true}});var p=function(e,t){n[e].push(t);return function(){y(n[e],t)}};var u=function(t,i){var r=p("set",(function(e,r){if(e===t){i(r)}}));var n=p("reset",(function(){return i(g(e)[t])}));return function(){r();n()}};var d=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=e.reduce((function(e,t){if(t.set){e.push(p("set",t.set))}if(t.get){e.push(p("get",t.get))}if(t.reset){e.push(p("reset",t.reset))}if(t.dispose){e.push(p("dispose",t.dispose))}return e}),[]);return function(){return i.forEach((function(e){return e()}))}};var h=function(e){var t=r.get(e);n.set.forEach((function(i){return i(e,t,t)}))};return{state:c,get:a,set:l,on:p,onChange:u,use:d,dispose:s,reset:o,forceUpdate:h}};var y=function(e,t){var i=e.indexOf(t);if(i>=0){e[i]=e[e.length-1];e.length--}};var w=function(e,t){var i=v(e,t);i.use(m());return i};var b=w({mode:null,api:null,languages:null,language:null,treks:null,currentTreks:null,treksWithinBounds:null,currentMapBounds:null,difficulties:null,routes:null,practices:null,themes:null,cities:null,durations:null,lengths:null,elevations:null,currentSensitiveAreas:null,labels:null,districts:null,sources:null,ratings:null,ratingsScale:null,accessibilities:null,accessibilitiesLevel:null,poiTypes:null,currentTrek:null,currentPois:null,currentInformationDesks:null,treksNetworkError:false,trekNetworkError:false,searchValue:null,selectedActivitiesFilters:0,selectedThemesFilters:0,selectedLocationFilters:0,selectedTrekId:null,parentTrekId:null,parentTrek:null,currentTrekSteps:null,selectedStepId:null,trekTouristicContents:null,touristicContents:null,currentTouristicContents:null,touristicContentsWithinBounds:null,touristicContentCategories:null,currentTouristicContent:null,touristicEvents:null,currentTouristicEvents:null,touristicEventsWithinBounds:null,touristicEventTypes:null,currentTouristicEvent:null,selectedTouristicContentId:null,selectedTouristicEventId:null}),_=b.state,x=b.onChange,k=b.reset;var A="grw-app{display:block;position:relative;width:var(--app-width);height:var(--app-height);overflow:hidden;max-width:100dvw;max-height:100dvh}.app-container{position:relative;background-color:var(--color-background);width:100%;height:100%;overflow:hidden}.languages-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end;margin:16px 16px 0px 0px}.header-container,.large-view-header-container{height:var(--header-height)}.header-container .arrow-back-container,.large-view-header-container .arrow-back-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:100%;margin:0px 16px}.header-container .arrow-back-container .arrow-back-icon,.large-view-header-container .arrow-back-container .arrow-back-icon{cursor:pointer;-webkit-tap-highlight-color:transparent;color:var(--color-on-surface);border:none;background-color:var(--color-background);border-radius:var(--border-radius, 50%);height:48px;width:48px;padding:0px;text-align:left}.handle-search-filters-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:0px 16px;height:64px}.handle-search-filters-container .handle-search-container{width:calc(50% + 48px);max-width:220px}.handle-search-filters-container .handle-filters-container{margin-left:16px}.header-detail{height:64px}.large-view-header-container .handle-search-filters-container{-ms-flex-pack:start;justify-content:flex-start}.init-loader-container,.loader-container,.large-view-loader-container{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:100%;background-color:var(--color-background)}.content-container{position:relative;display:-ms-flexbox;display:flex;height:calc(100% - var(--header-height))}.content-treks{height:calc(100% - var(--header-height))}.content-trek{height:100%}.app-treks-list-container,.app-trek-detail-container,.app-touristic-content-detail-container,.app-touristic-event-detail-container,.large-view-app-treks-list-container,.large-view-app-trek-detail-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-width:100%;height:100%}.app-map-container,.large-view-app-map-container{width:100%;height:100%}.map-visibility-button-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;position:absolute;bottom:24px;z-index:4}.init-loader-container,.loader-container{width:100%}.app-treks-list-container,.app-trek-detail-container{width:100%}grw-treks-list,grw-touristic-contents-list{max-height:calc(100vh - var(--header-height))}grw-trek-detail,grw-touristic-content-detail,grw-touristic-event-detail{max-height:calc(100vh - 64px)}.app-map-container{width:100%;position:absolute}.large-view-loader-container{width:50%}.large-view-app-treks-list-container,.large-view-app-trek-detail-container,.large-view-app-touristic-content-detail-container,.large-view-app-touristic-event-detail-container{width:50%}.large-view-app-map-container{position:relative;width:50%}.error-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;width:100%;margin-top:16px;font-family:var(--font-family);font-size:16px}.error-container grw-common-button{margin-top:16px}";var T=e("grw_app",function(){function e(e){n(this,e);this.largeViewSize=1024;this.handlePopStateBind=this.handlePopState.bind(this);this.showTrek=false;this.showTouristicContent=false;this.showTouristicEvent=false;this.showHomeMap=false;this.showTrekMap=false;this.showTouristicContentMap=false;this.showTouristicEventMap=false;this.showFilters=false;this.isLargeView=false;this.currentTrekId=undefined;this.currentTouristicContentId=undefined;this.currentTouristicEventId=undefined;this.appWidth="100%";this.appHeight="100vh";this.api=undefined;this.languages="fr";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.center=undefined;this.zoom=undefined;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.weather=false;this.fontFamily="Roboto";this.colorPrimaryApp="#6750a4";this.colorOnPrimary="#ffffff";this.colorSurface="#1c1b1f";this.colorOnSurface="#49454e";this.colorSurfaceVariant="#fef7ff";this.colorOnSurfaceVariant="#1c1b1f";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorBackground="#fef7ff";this.colorSurfaceContainerHigh="#ece6f0";this.colorSurfaceContainerLow="#f7f2fa";this.fabBackgroundColor="#eaddff";this.fabColor="#21005d";this.rounded=true;this.colorTrekLine="#6b0030";this.colorSensitiveArea="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.treks=true;this.touristicContents=false;this.touristicEvents=false}e.prototype.onTrekCardPress=function(e){this.currentTouristicContentId=null;this.showTouristicContent=false;_.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;_.currentTouristicEvent=null;var t=_.parentTrekId?_.parentTrekId:_.currentTrekSteps?this.currentTrekId:null;_.currentTrek=null;this.currentTrekId=e.detail;this.showTrek=true;this.showTrekMap=false;var i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());if(_.currentTrekSteps){i.searchParams.set("parenttrek",t.toString())}window.history.pushState({},"",i)};e.prototype.onParentTrekPress=function(e){_.currentTrek=null;this.currentTrekId=e.detail;this.showTrek=true;this.showTrekMap=false;var t=new URL(window.location.toString());t.searchParams.set("trek",this.currentTrekId.toString());t.searchParams.delete("parenttrek");window.history.pushState({},"",t)};e.prototype.onTouristicContentCardPress=function(e){_.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=e.detail;this.showTouristicContent=true;this.showTouristicContentMap=false;var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",t)};e.prototype.onTouristiceEventCardPress=function(e){_.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=e.detail;this.showTouristicEvent=true;this.showTouristicEventMap=false;var t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",t)};e.prototype.onWindowResize=function(){this.handleView()};e.prototype.onCenterOnMap=function(){if(!this.isLargeView){this.showTrekMap=true}};e.prototype.watchPropHandler=function(){window.dispatchEvent(new window.Event("resize"))};e.prototype.componentWillLoad=function(){if(this.treks){_.mode="treks"}else if(this.touristicContents){_.mode="touristicContents"}else if(this.touristicEvents){_.mode="touristicEvents"}var e=new URL(window.location.toString());var t=e.searchParams.get("trek");var i=e.searchParams.get("parenttrek");var r=e.searchParams.get("touristiccontent");var n=e.searchParams.get("touristicevent");if(t){window.history.replaceState({isInitialHistoryWithDetails:true},"",e);_.parentTrekId=i?Number(i):null;this.currentTrekId=Number(t);this.showTrek=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",e);this.currentTouristicContentId=Number(r);this.showTouristicContent=true}else if(n){window.history.replaceState({isInitialHistoryWithDetails:true},"",e);this.currentTouristicEventId=Number(n);this.showTouristicEvent=true}};e.prototype.componentDidLoad=function(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()};e.prototype.onDetailsClose=function(){if(this.treks){_.mode="treks"}else if(this.touristicContents){_.mode="touristicContents"}else if(this.touristicEvents){_.mode="touristicEvents"}this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false;this.showTouristicEvent=false;this.showTouristicEventMap=false;_.currentTouristicContent=null;_.currentTouristicEvent=null;_.currentTrek=null;_.currentTrekSteps=null;_.parentTrekId=null;this.currentTrekId=null;this.showTrek=false};e.prototype.handleView=function(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView};e.prototype.handleFilters=function(){this.showFilters=!this.showFilters};e.prototype.handleBackButton=function(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){this.onDetailsClose();var e=new URL(window.location.toString());e.searchParams.delete("trek");e.searchParams.delete("touristiccontent");e.searchParams.delete("touristicevent");window.history.pushState({},"",e)}else{window.history.back()}};e.prototype.handlePopState=function(){var e=new URL(window.location.toString());var t=Number(e.searchParams.get("trek"));var i=e.searchParams.get("touristiccontent");var r=e.searchParams.get("touristicevent");if(t&&this.currentTrekId!==t){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;_.currentTouristicContent=null;_.currentTouristicEvent=null;_.currentTrek=null;this.currentTrekId=t;this.showTrek=true}else if(!t&&!i&&!r){this.onDetailsClose()}};e.prototype.handleShowMap=function(){if(this.currentTrekId){this.showTrekMap=!this.showTrekMap}else if(this.showTouristicContent){this.showTouristicContentMap=!this.showTouristicContentMap}else if(this.showTouristicEvent){this.showTouristicEventMap=!this.showTouristicEventMap}else{this.showHomeMap=!this.showHomeMap}};e.prototype.getMapVisibilityIconButton=function(){var e;if(this.showTrek){e=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){e=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){e=this.showTouristicEventMap?"summarize":"map"}else{e=this.showHomeMap?"list":"map"}return e};e.prototype.getMapVisibilityLabelButton=function(){var e;if(this.showTrek){e=this.showTrekMap?p[_.language].showDetails:p[_.language].showRoute}else if(this.showTouristicContent){e=this.showTouristicContentMap?p[_.language].showDetails:p[_.language].showMap}else if(this.showTouristicEvent){e=this.showTouristicEventMap?p[_.language].showDetails:p[_.language].showMap}else{e=this.showHomeMap?p[_.language].showList:p[_.language].showMap}return e};e.prototype.reload=function(){window.location.reload()};e.prototype.disconnectedCallback=function(){k();window.removeEventListener("popstate",this.handlePopStateBind)};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp,"--color-on-primary":this.colorOnPrimary,"--color-surface":this.colorSurface,"--color-on-surface":this.colorOnSurface,"--color-surface-variant":this.colorSurfaceVariant,"--color-on-surface-variant":this.colorOnSurfaceVariant,"--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,"--color-surface-container-high":this.colorSurfaceContainerHigh,"--color-surface-container-low":this.colorSurfaceContainerLow,"--fab-background-color":this.fabBackgroundColor,"--fab-color":this.fabColor,"--app-width":this.appWidth,"--app-height":this.appHeight,"--header-height":Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1?"136px":"64px","--border-radius":this.rounded?"":"0px"}},!_.currentTreks&&!_.currentTrek&&!_.currentTouristicContent&&!_.currentTouristicEvent&&!_.currentTouristicContents&&!_.currentTouristicEvents&&o("div",{class:"init-loader-container"},o("grw-loader",{"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&_.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!_.currentTreks&&o("grw-treks-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals,routes:this.routes,practices:this.practices}),this.showTrek&&this.currentTrekId&&!_.currentTrek&&o("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals}),this.showTouristicContent&&this.currentTouristicContentId&&o("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&o("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.touristicContents&&_.mode==="touristicContents"&&!_.currentTouristicContents&&!this.showTouristicContent&&o("grw-touristic-contents-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),this.touristicEvents&&_.mode==="touristicEvents"&&!_.currentTouristicEvents&&!this.showTouristicEvent&&o("grw-touristic-events-provider",{api:this.api,languages:this.languages,"in-bbox":this.inBbox,cities:this.cities,districts:this.districts,structures:this.structures,themes:this.themes,portals:this.portals}),(_.currentTreks||_.currentTrek||_.touristicContents||_.touristicEvents||_.currentTouristicContent||_.currentTouristicEvent||_.trekNetworkError)&&o("div",{class:"app-container"},_.languages&&_.languages.length>1&&o("div",{class:"languages-container"},o("grw-select-language",null)),o("div",{class:"".concat(this.isLargeView?"large-view-header-container":"header-container").concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent?" header-detail":"")},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&o("grw-segmented-segment",{fontFamily:this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent?o("div",{class:"handle-search-filters-container"},o("div",{class:"handle-search-container"},o("grw-search",{fontFamily:this.fontFamily})),o("div",{class:"handle-filters-container"},o("grw-common-button",{fontFamily:this.fontFamily,action:function(){return e.handleFilters()},icon:"filter_list",name:p[_.language].filter}))):o("div",{class:"arrow-back-container"},o("button",{onClick:function(){return e.handleBackButton()},class:"arrow-back-icon"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),o("div",{class:"content-container ".concat(this.showTrek||this.showTouristicContent||this.showTouristicEvent?"content-trek":"content-treks")},_.trekNetworkError&&o("div",{class:"error-container"},"Une erreur est survenue.",o("grw-common-button",{icon:"refresh",name:"Recharger la page",action:function(){return e.reload()}})),o("div",{class:this.isLargeView?"large-view-app-treks-list-container":"app-treks-list-container",style:{display:this.showTrek||this.showTouristicContent||this.showTouristicEvent?"none":"flex",position:this.showTrek?"absolute":"relative"}},_.mode==="treks"&&this.treks&&o("grw-treks-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),_.mode==="touristicContents"&&this.touristicContents&&o("grw-touristic-contents-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow}),_.mode==="touristicEvents"&&this.touristicEvents&&o("grw-touristic-events-list",{"reset-store-on-disconnected":"false","is-large-view":this.isLargeView,fontFamily:this.fontFamily,"color-primary-app":this.colorPrimaryApp,"color-on-surface":this.colorOnSurface,"color-secondary-container":this.colorSecondaryContainer,"color-on-secondary-container":this.colorOnSecondaryContainer,"color-surface-container-low":this.colorSurfaceContainerLow})),this.showTrek&&!_.currentTrek||this.showTouristicContent&&!_.currentTouristicContent||this.showTouristicEvent&&!_.currentTouristicEvent||!_.currentTreks&&_.mode==="treks"||!_.touristicContents&&_.mode==="touristicContents"&&o("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},o("grw-loader",{"color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),_.currentTrek&&o("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},o("grw-trek-detail",{style:{visibility:!this.showTrekMap&&this.showTrek||this.isLargeView?"visible":"hidden",zIndex:!this.showTrekMap?"1":"0"},"reset-store-on-disconnected":"false",fontFamily: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-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,weather:this.weather,"is-large-view":this.isLargeView})),this.showTouristicContent&&o("div",{class:this.isLargeView?"large-view-app-touristic-content-detail-container":"app-touristic-content-detail-container"},o("grw-touristic-content-detail",{style:{visibility:!this.showTouristicContentMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicContentMap?"1":"0"},fontFamily: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-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),this.showTouristicEvent&&o("div",{class:this.isLargeView?"large-view-app-touristic-event-detail-container":"app-touristic-event-detail-container"},o("grw-touristic-event-detail",{style:{visibility:!this.showTouristicEventMap||this.isLargeView?"visible":"hidden",zIndex:!this.showTouristicEventMap?"1":"0"},fontFamily: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-surface-container-low":this.colorSurfaceContainerLow,"color-background":this.colorBackground,"is-large-view":this.isLargeView})),!_.trekNetworkError&&o("grw-map",{"reset-store-on-disconnected":"false",class:this.isLargeView?"large-view-app-map-container":"app-map-container",style:{visibility:this.showHomeMap&&!this.showTrek||this.showTrekMap&&this.showTrek||this.showTouristicContentMap&&this.showTouristicContent||this.showTouristicEventMap&&this.showTouristicEvent||this.isLargeView?"visible":"hidden",zIndex:this.showHomeMap||this.showTrekMap||this.showTouristicContentMap||this.showTouristicEventMap?"1":"0"},center:this.center,zoom:this.zoom,"name-layer":this.nameLayer,"url-layer":this.urlLayer,"attribution-layer":this.attributionLayer,fontFamily: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-trek-line":this.colorTrekLine,"color-sensitive-area":this.colorSensitiveArea,"color-poi-icon":this.colorPoiIcon,"is-large-view":this.isLargeView,"use-gradient":this.useGradient})),(!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent||this.showTrek&&_.currentTrek||this.showTouristicContent&&_.currentTouristicContent||this.showTouristicEvent&&_.currentTouristicEvent)&&o("div",{class:"map-visibility-button-container"},o("grw-extended-fab",{fontFamily:this.fontFamily,action:function(){return e.handleShowMap()},icon:function(){return e.getMapVisibilityIconButton()},name:function(){return e.getMapVisibilityLabelButton()},display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&o("grw-filters",{fontFamily:this.fontFamily,handleFilters:function(){return e.handleFilters()}}))};Object.defineProperty(e.prototype,"appElement",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{isLargeView:["watchPropHandler"]}},enumerable:false,configurable:true});return e}());T.style=A;var C='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.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 span{font-size:18px}';var E=e("grw_common_button",function(){function e(e){n(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily}},o("button",{onClick:function(){return e.action()},class:"common-button"},o("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},this.icon),this.name))};return e}());E.style=C;var S='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.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 span{font-size:24px;margin-right:8px;color:var(--fab-color)}';var P=e("grw_extended_fab",function(){function e(e){n(this,e);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily}},o("button",{onClick:function(){return e.action()},class:"map-visibility-button",style:{display:this.display}},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.icon()),this.name()))};return e}());P.style=S;function M(e){var t="";if(e<24){if(Math.floor(e)!==0){t+="".concat(Math.floor(e),"h")}if(e%1>0){t+="".concat(Math.round(60*(e%1)),"min")}}else{t+="".concat(e/24,"j")}return t}function O(e){return"".concat(Math.round(e/1e3),"km")}function I(e){return"".concat(e,"m")}var z=[{property:"practices",trekProperty:"practice",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"difficulties",trekProperty:"difficulty",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"durations",trekProperty:"duration",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"lengths",trekProperty:"length_2d",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"elevations",trekProperty:"ascent",trekPropertyIsArray:false,type:"interval",segment:"selectedActivitiesFilters"},{property:"routes",trekProperty:"route",trekPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"accessibilities",trekProperty:"accessibilities",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"labels",trekProperty:"labels",trekPropertyIsArray:true,type:"include",segment:"selectedActivitiesFilters"},{property:"themes",trekProperty:"themes",trekPropertyIsArray:true,type:"include",segment:"selectedThemesFilters"},{property:"cities",trekProperty:"cities",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",trekProperty:"districts",trekPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var B=[{property:"touristicContentCategories",touristicContentProperty:"category",touristicContentPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicContentProperty:"cities",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicContentProperty:"districts",touristicContentPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];var D=[{property:"touristicEventTypes",touristicEventProperty:"type",touristicEventPropertyIsArray:false,type:"include",segment:"selectedActivitiesFilters"},{property:"cities",touristicEventProperty:"cities",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"},{property:"districts",touristicEventProperty:"districts",touristicEventPropertyIsArray:true,type:"include",segment:"selectedLocationFilters"}];function F(){var e=false;var t=[];var i=function(i){var r=_[i.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(r.length>0){if(t.length>0){if(i.type==="include"){if(i.trekPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[i.trekProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return r.includes(e[i.trekProperty])})),true)}}else if(i.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var r=_[i.property].find((function(e){return e.id===t}));if(e[i.trekProperty]>=r.minValue&&e[i.trekProperty]<=r.maxValue){return{value:true}}};for(var n=0,o=r;n<o.length;n++){var s=o[n];var a=t(s);if(typeof a==="object")return a.value}return false})),true)}}else{if(!e){e=true}if(i.type==="include"){if(i.trekPropertyIsArray){t=__spreadArray([],_.treks.filter((function(e){return e[i.trekProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],_.treks.filter((function(e){return r.includes(e[i.trekProperty])})),true)}}else if(i.type==="interval"){var n;var o;var s=function(e){var t=_[i.property].find((function(t){return t.id===e}));if(isNaN(n)||t.minValue<n){n=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var a=0,l=r;a<l.length;a++){var c=l[a];s(c)}t=__spreadArray([],_.treks.filter((function(e){return e[i.trekProperty]>=n&&e[i.trekProperty]<=o})),true)}}}};for(var r=0,n=z;r<n.length;r++){var o=n[r];i(o)}var s=e?t:_.treks;return Boolean(_.searchValue)?s.filter((function(e){return e.name.toLowerCase().includes(_.searchValue.toLowerCase())})):s}function j(){var e=false;var t=[];var i=function(i){var r=_[i.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(r.length>0){if(t.length>0){if(i.type==="include"){if(i.touristicContentPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[i.touristicContentProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return r.includes(e[i.touristicContentProperty])})),true)}}else if(i.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var r=_[i.property].find((function(e){return e.id===t}));if(e[i.touristicContentProperty]>=r.minValue&&e[i.touristicContentProperty]<=r.maxValue){return{value:true}}};for(var n=0,o=r;n<o.length;n++){var s=o[n];var a=t(s);if(typeof a==="object")return a.value}return false})),true)}}else{if(!e){e=true}if(i.type==="include"){if(i.touristicContentPropertyIsArray){t=__spreadArray([],_.touristicContents.filter((function(e){return e[i.touristicContentProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],_.touristicContents.filter((function(e){return r.includes(e[i.touristicContentProperty])})),true)}}else if(i.type==="interval"){var n;var o;var s=function(e){var t=_[i.property].find((function(t){return t.id===e}));if(isNaN(n)||t.minValue<n){n=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var a=0,l=r;a<l.length;a++){var c=l[a];s(c)}t=__spreadArray([],_.touristicContents.filter((function(e){return e[i.touristicContentProperty]>=n&&e[i.touristicContentProperty]<=o})),true)}}}};for(var r=0,n=B;r<n.length;r++){var o=n[r];i(o)}var s=e?t:_.touristicContents;return Boolean(_.searchValue)?s.filter((function(e){return e.name.toLowerCase().includes(_.searchValue.toLowerCase())})):s}function N(){var e=false;var t=[];var i=function(i){var r=_[i.property].filter((function(e){return e.selected})).map((function(e){return e.id}));if(r.length>0){if(t.length>0){if(i.type==="include"){if(i.touristicEventPropertyIsArray){t=__spreadArray([],t.filter((function(e){return e[i.touristicEventProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],t.filter((function(e){return r.includes(e[i.touristicEventProperty])})),true)}}else if(i.type==="interval"){t=__spreadArray([],t.filter((function(e){var t=function(t){var r=_[i.property].find((function(e){return e.id===t}));if(e[i.touristicEventProperty]>=r.minValue&&e[i.touristicEventProperty]<=r.maxValue){return{value:true}}};for(var n=0,o=r;n<o.length;n++){var s=o[n];var a=t(s);if(typeof a==="object")return a.value}return false})),true)}}else{if(!e){e=true}if(i.type==="include"){if(i.touristicEventPropertyIsArray){t=__spreadArray([],_.touristicContents.filter((function(e){return e[i.touristicEventProperty].some((function(e){return r.includes(e)}))})),true)}else{t=__spreadArray([],_.touristicEvents.filter((function(e){return r.includes(e[i.touristicEventProperty])})),true)}}else if(i.type==="interval"){var n;var o;var s=function(e){var t=_[i.property].find((function(t){return t.id===e}));if(isNaN(n)||t.minValue<n){n=t.minValue}if(isNaN(o)||t.maxValue>o){o=t.maxValue}};for(var a=0,l=r;a<l.length;a++){var c=l[a];s(c)}t=__spreadArray([],_.touristicEvents.filter((function(e){return e[i.touristicEventProperty]>=n&&e[i.touristicEventProperty]<=o})),true)}}}};for(var r=0,n=D;r<n.length;r++){var o=n[r];i(o)}var s=e?t:_.touristicEvents;return Boolean(_.searchValue)?s.filter((function(e){return e.name.toLowerCase().includes(_.searchValue.toLowerCase())})):s}
2
- /*! For license information please see choices.min.js.LICENSE.txt */!function(){var e={282:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var r=i(883);t.addChoice=function(e){var t=e.value,i=e.label,n=e.id,o=e.groupId,s=e.disabled,a=e.elementId,l=e.customProperties,c=e.placeholder,p=e.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:t,label:i,id:n,groupId:o,disabled:s,elementId:a,customProperties:l,placeholder:c,keyCode:p}},t.filterChoices=function(e){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var r=i(883);t.addGroup=function(e){var t=e.value,i=e.id,n=e.active,o=e.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:t,id:i,active:n,disabled:o}}},464:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var r=i(883);t.addItem=function(e){var t=e.value,i=e.label,n=e.id,o=e.choiceId,s=e.groupId,a=e.customProperties,l=e.placeholder,c=e.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:t,label:i,id:n,choiceId:o,groupId:s,customProperties:a,placeholder:l,keyCode:c}},t.removeItem=function(e,t){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var r=i(883);t.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:r.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var r=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(i(996)),s=n(i(221)),a=i(282),l=i(783),c=i(464),p=i(137),u=i(520),d=i(883),h=i(789),f=i(799),m=i(655),g=n(i(744)),v=n(i(686)),y="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,w={},b=function(){function e(t,i){void 0===t&&(t="[data-choice]"),void 0===i&&(i={});var n=this;void 0===i.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=o.default.all([h.DEFAULT_CONFIG,e.defaults.options,i],{arrayMerge:function(e,t){return r([],t,!0)}});var s=(0,f.diff)(this.config,h.DEFAULT_CONFIG);s.length&&console.warn("Unknown config option(s) passed",s.join(", "));var a="string"==typeof t?document.querySelector(t):t;if(!(a instanceof HTMLInputElement||a instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=a.type===d.TEXT_TYPE,this._isSelectOneElement=a.type===d.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===d.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),i.addItemFilter&&"function"!=typeof i.addItemFilter){var l=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=l.test.bind(l)}if(this._isTextElement?this.passedElement=new u.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new u.WrappedSelect({element:a,classNames:this.config.classNames,template:function(e){return n._templates.option(e)}}),this.initialised=!1,this._store=new g.default,this._initialState=m.defaultState,this._currentState=m.defaultState,this._prevState=m.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,f.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,!this._direction){var c=window.getComputedStyle(this.passedElement.element).direction;c!==window.getComputedStyle(document.documentElement).direction&&(this._direction=c)}if(this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement){var p=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(p)}if(this.passedElement.options&&this.passedElement.options.forEach((function(e){n._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:(0,f.parseCustomProperties)(e.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:t}),void(this.initialised=!0);this.init()}return Object.defineProperty(e,"defaults",{get:function(){return Object.preventExtensions({get options(){return w},get templates(){return v.default}})},enumerable:!1,configurable:!0}),e.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var e=this.config.callbackOnInit;e&&"function"==typeof e&&e.call(this)}},e.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},e.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},e.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},e.prototype.highlightItem=function(e,t){if(void 0===t&&(t=!0),!e||!e.id)return this;var i=e.id,r=e.groupId,n=void 0===r?-1:r,o=e.value,s=void 0===o?"":o,a=e.label,l=void 0===a?"":a,p=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,c.highlightItem)(i,!0)),t&&this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:i,value:s,label:l,groupValue:p&&p.value?p.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,i=e.groupId,r=void 0===i?-1:i,n=e.value,o=void 0===n?"":n,s=e.label,a=void 0===s?"":s,l=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,c.highlightItem)(t,!1)),this.passedElement.triggerEvent(d.EVENTS.highlightItem,{id:t,value:o,label:a,groupValue:l&&l.value?l.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(i){t._removeItem(i),e&&t._triggerChange(i.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(d.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(d.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,i){var r=e?i.value:i;return t.push(r),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,i,r){var n=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===r&&(r=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof e){var o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return n._handleLoadingState(!0)})).then((function(){return o})).then((function(e){return n.setChoices(e,t,i,r)})).catch((function(e){n.config.silent||console.error(e)})).then((function(){return n._handleLoadingState(!1)})).then((function(){return n}));if(!Array.isArray(o))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o));return this.setChoices(o,t,i,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)n._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:i});else{var r=e;n._addChoice({value:r[t],label:r[i],isSelected:!!r.selected,isDisabled:!!r.disabled,placeholder:!!r.placeholder,customProperties:r.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,p.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,i=t.activeGroups,r=t.activeChoices,n=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),i.length>=1&&!this._isSearching){var o=r.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));o.length>=1&&(n=this._createChoicesFragment(o,n)),n=this._createGroupsFragment(i,r,n)}else r.length>=1&&(n=this._createChoicesFragment(r,n));if(n.childNodes&&n.childNodes.length>0){var s=this._store.activeItems,a=this._canAddItem(s,this.input.value);if(a.response)this.choiceList.append(n),this._highlightChoice();else{var l=this._getTemplate("notice",a.notice);this.choiceList.append(l)}}else{var c=void 0;l=void 0,this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,c=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,c=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(c)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,i){var r=this;return void 0===i&&(i=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var n=function(e){return t.filter((function(t){return r._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===r.config.renderSelectedChoices||!t.selected)}))}(e);if(n.length>=1){var o=r._getTemplate("choiceGroup",e);i.appendChild(o),r._createChoicesFragment(n,i,!0)}})),i},e.prototype._createChoicesFragment=function(e,t,i){var n=this;void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1);var o=this.config,s=o.renderSelectedChoices,a=o.searchResultLimit,l=o.renderChoiceLimit,c=this._isSearching?f.sortByScore:this.config.sorter,p=function(e){if("auto"!==s||n._isSelectOneElement||!e.selected){var i=n._getTemplate("choice",e,n.config.itemSelectText);t.appendChild(i)}},u=e;"auto"!==s||this._isSelectOneElement||(u=e.filter((function(e){return!e.selected})));var d=u.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),h=d.placeholderChoices,m=d.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(c);var g=u.length,v=this._isSelectOneElement?r(r([],h,!0),m,!0):m;this._isSearching?g=a:l&&l>0&&!i&&(g=l);for(var y=0;y<g;y+=1)v[y]&&p(v[y]);return t},e.prototype._createItemsFragment=function(e,t){var i=this;void 0===t&&(t=document.createDocumentFragment());var r=this.config,n=r.shouldSortItems,o=r.sorter,s=r.removeItemButton;return n&&!this._isSelectOneElement&&e.sort(o),this._isTextElement?this.passedElement.value=e.map((function(e){return e.value})).join(this.config.delimiter):this.passedElement.options=e,e.forEach((function(e){var r=i._getTemplate("item",e,s);t.appendChild(r)})),t},e.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(d.EVENTS.change,{value:e})},e.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},e.prototype._handleButtonAction=function(e,t){if(e&&t&&this.config.removeItems&&this.config.removeItemButton){var i=t.parentNode&&t.parentNode.dataset.id,r=i&&e.find((function(e){return e.id===parseInt(i,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},e.prototype._handleItemAction=function(e,t,i){var r=this;if(void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement){var n=t.dataset.id;e.forEach((function(e){e.id!==parseInt("".concat(n),10)||e.highlighted?!i&&e.highlighted&&r.unhighlightItem(e):r.highlightItem(e)})),this.input.focus()}},e.prototype._handleChoiceAction=function(e,t){if(e&&t){var i=t.dataset.id,r=i&&this._store.getChoiceById(i);if(r){var n=e[0]&&e[0].keyCode?e[0].keyCode:void 0,o=this.dropdown.isActive;r.keyCode=n,this.passedElement.triggerEvent(d.EVENTS.choice,{choice:r}),r.selected||r.disabled||this._canAddItem(e,r.value).response&&(this._addItem({value:r.value,label:r.label,choiceId:r.id,groupId:r.groupId,customProperties:r.customProperties,placeholder:r.placeholder,keyCode:r.keyCode}),this._triggerChange(r.value)),this.clearInput(),o&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},e.prototype._handleBackspace=function(e){if(this.config.removeItems&&e){var t=e[e.length-1],i=e.some((function(e){return e.highlighted}));this.config.editItems&&!i&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(i||this.highlightItem(t,!1),this.removeHighlightedItems(!0))}},e.prototype._startLoading=function(){this._store.dispatch((0,p.setIsLoading)(!0))},e.prototype._stopLoading=function(){this._store.dispatch((0,p.setIsLoading)(!1))},e.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},e.prototype._handleSearch=function(e){if(this.input.isFocussed){var t=this._store.choices,i=this.config,r=i.searchFloor,n=i.searchChoices,o=t.some((function(e){return!e.active}));if(null!=e&&e.length>=r){var s=n?this._searchChoices(e):0;this.passedElement.triggerEvent(d.EVENTS.search,{value:e,resultCount:s})}else o&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var i=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var n=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(i=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&n&&i&&(i=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&i&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(i=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:i,notice:r}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,i="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(i," "))return 0;var n=this._store.searchableChoices,o=t,l=Object.assign(this.config.fuseOptions,{keys:r([],this.config.searchFields,!0),includeMatches:!0}),c=new s.default(n,l).search(o);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(c)),c.length},e.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,r=this.input.isFocussed,n=this.dropdown.isActive,o=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[^\x00-\x1F]/.test(s),l=d.KEY_CODES.BACK_KEY,c=d.KEY_CODES.DELETE_KEY,p=d.KEY_CODES.ENTER_KEY,u=d.KEY_CODES.A_KEY,h=d.KEY_CODES.ESC_KEY,f=d.KEY_CODES.UP_KEY,m=d.KEY_CODES.DOWN_KEY,g=d.KEY_CODES.PAGE_UP_KEY,v=d.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||n||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case u:return this._onSelectKey(e,o);case p:return this._onEnterKey(e,i,n);case h:return this._onEscapeKey(n);case f:case g:case m:case v:return this._onDirectionKey(e,n);case c:case l:return this._onDeleteKey(e,i,r)}},e.prototype._onKeyUp=function(e){var t=e.target,i=e.keyCode,r=this.input.value,n=this._store.activeItems,o=this._canAddItem(n,r),s=d.KEY_CODES.BACK_KEY,l=d.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(o.notice&&r){var c=this._getTemplate("notice",o.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var p=(i===s||i===l)&&t&&!t.value,u=!this._isTextElement&&this._isSearching,h=this._canSearch&&o.response;p&&u?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):h&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var i=e.ctrlKey,r=e.metaKey;(i||r)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e,t,i){var r=e.target,n=d.KEY_CODES.ENTER_KEY,o=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var s=this.input.value;this._canAddItem(t,s).response&&(this.hideDropdown(!0),this._addItem({value:s}),this._triggerChange(s),this.clearInput())}if(o&&(this._handleButtonAction(t,r),e.preventDefault()),i){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(t[0]&&(t[0].keyCode=n),this._handleChoiceAction(t,a)),e.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e,t){var i=e.keyCode,r=e.metaKey,n=d.KEY_CODES.DOWN_KEY,o=d.KEY_CODES.PAGE_UP_KEY,s=d.KEY_CODES.PAGE_DOWN_KEY;if(t||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=i===n||i===s?1:-1,l="[data-choice-selectable]",c=void 0;if(r||i===s||i===o)c=a>0?this.dropdown.element.querySelector("".concat(l,":last-of-type")):this.dropdown.element.querySelector(l);else{var p=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=p?(0,f.getAdjacentEl)(p,l,a):this.dropdown.element.querySelector(l)}c&&((0,f.isScrolledIntoView)(c,this.choiceList.element,a)||this.choiceList.scrollToChildElement(c,a),this._highlightChoice(c)),e.preventDefault()}},e.prototype._onDeleteKey=function(e,t,i){var r=e.target;this._isSelectOneElement||r.value||!i||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(y&&this.choiceList.element.contains(t)){var i=this.choiceList.element.firstElementChild,r="ltr"===this._direction?e.offsetX>=i.offsetWidth:e.offsetX<i.offsetLeft;this._isScrollingOnIe=r}if(t!==this.input.element){var n=t.closest("[data-button],[data-item],[data-choice]");if(n instanceof HTMLElement){var o=e.shiftKey,s=this._store.activeItems,a=n.dataset;"button"in a?this._handleButtonAction(s,n):"item"in a?this._handleItemAction(s,n,o):"choice"in a&&this._handleChoiceAction(s,n)}e.preventDefault()}}},e.prototype._onMouseOver=function(e){var t=e.target;t instanceof HTMLElement&&"choice"in t.dataset&&this._highlightChoice(t)},e.prototype._onClick=function(e){var t=e.target;this.containerOuter.element.contains(t)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&t!==this.input.element&&!this.dropdown.element.contains(t)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,i=this,r=e.target;r&&this.containerOuter.element.contains(r)&&((t={})[d.TEXT_TYPE]=function(){r===i.input.element&&i.containerOuter.addFocusState()},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.addFocusState(),r===i.input.element&&i.showDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){r===i.input.element&&(i.showDropdown(!0),i.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,i=this,r=e.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var n=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[d.TEXT_TYPE]=function(){r===i.input.element&&(i.containerOuter.removeFocusState(),n&&i.unhighlightAll(),i.hideDropdown(!0))},t[d.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),(r===i.input.element||r===i.containerOuter.element&&!i._canSearch)&&i.hideDropdown(!0)},t[d.SELECT_MULTIPLE_TYPE]=function(){r===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),n&&i.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,p.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var i=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(i.length){var r=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),r?this._highlightPosition=i.indexOf(r):(r=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||(r=i[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(d.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},e.prototype._addItem=function(e){var t=e.value,i=e.label,r=void 0===i?null:i,n=e.choiceId,o=void 0===n?-1:n,s=e.groupId,a=void 0===s?-1:s,l=e.customProperties,p=void 0===l?{}:l,u=e.placeholder,h=void 0!==u&&u,f=e.keyCode,m=void 0===f?-1:f,g="string"==typeof t?t.trim():t,v=this._store.items,y=r||g,w=o||-1,b=a>=0?this._store.getGroupById(a):null,_=v?v.length+1:1;this.config.prependValue&&(g=this.config.prependValue+g.toString()),this.config.appendValue&&(g+=this.config.appendValue.toString()),this._store.dispatch((0,c.addItem)({value:g,label:y,id:_,choiceId:w,groupId:a,customProperties:p,placeholder:h,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(_),this.passedElement.triggerEvent(d.EVENTS.addItem,{id:_,value:g,label:y,customProperties:p,groupValue:b&&b.value?b.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,i=e.value,r=e.label,n=e.customProperties,o=e.choiceId,s=e.groupId,a=s&&s>=0?this._store.getGroupById(s):null;t&&o&&(this._store.dispatch((0,c.removeItem)(t,o)),this.passedElement.triggerEvent(d.EVENTS.removeItem,{id:t,value:i,label:r,customProperties:n,groupValue:a&&a.value?a.value:null}))},e.prototype._addChoice=function(e){var t=e.value,i=e.label,r=void 0===i?null:i,n=e.isSelected,o=void 0!==n&&n,s=e.isDisabled,l=void 0!==s&&s,c=e.groupId,p=void 0===c?-1:c,u=e.customProperties,d=void 0===u?{}:u,h=e.placeholder,f=void 0!==h&&h,m=e.keyCode,g=void 0===m?-1:m;if(null!=t){var v=this._store.choices,y=r||t,w=v?v.length+1:1,b="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(w);this._store.dispatch((0,a.addChoice)({id:w,groupId:p,elementId:b,value:t,label:y,disabled:l,customProperties:d,placeholder:f,keyCode:g})),o&&this._addItem({value:t,label:y,choiceId:w,customProperties:d,placeholder:f,keyCode:g})}},e.prototype._addGroup=function(e){var t=this,i=e.group,r=e.id,n=e.valueKey,o=void 0===n?"value":n,s=e.labelKey,a=void 0===s?"label":s,c=(0,f.isType)("Object",i)?i.choices:Array.from(i.getElementsByTagName("OPTION")),p=r||Math.floor((new Date).valueOf()*Math.random()),u=!!i.disabled&&i.disabled;c?(this._store.dispatch((0,l.addGroup)({value:i.label,id:p,active:!0,disabled:u})),c.forEach((function(e){var i=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[o],label:(0,f.isType)("Object",e)?e[a]:e.innerHTML,isSelected:e.selected,isDisabled:i,groupId:p,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:i.label,id:i.id,active:!1,disabled:i.disabled}))},e.prototype._getTemplate=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return(t=this._templates[e]).call.apply(t,r([this,this.config],i,!1))},e.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,f.strToEl)),this._templates=(0,o.default)(v.default,t)},e.prototype._createElements=function(){this.containerOuter=new u.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new u.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new u.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new u.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new u.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new u.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},e.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},e.prototype._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&i.parentNode&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach((function(e){return t._addGroup({group:e,id:e.id||null})}))},e.prototype._addPredefinedChoices=function(e){var t=this;this.config.shouldSort&&e.sort(this.config.sorter);var i=e.some((function(e){return e.selected})),r=e.findIndex((function(e){return void 0===e.disabled||!e.disabled}));e.forEach((function(e,n){var o=e.value,s=void 0===o?"":o,a=e.label,l=e.customProperties,c=e.placeholder;if(t._isSelectElement)if(e.choices)t._addGroup({group:e,id:e.id||null});else{var p=!(!t._isSelectOneElement||i||n!==r)||e.selected,u=e.disabled;t._addChoice({value:s,label:a,isSelected:!!p,isDisabled:!!u,placeholder:!!c,customProperties:l})}else t._addChoice({value:s,label:a,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:l})}))},e.prototype._addPredefinedItems=function(e){var t=this;e.forEach((function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})}))},e.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,f.getType)(e).toLowerCase()]()},e.prototype._findAndSelectChoiceByValue=function(e){var t=this,i=this._store.choices.find((function(i){return t.config.valueComparer(i.value,e)}));i&&!i.selected&&this._addItem({value:i.value,label:i.label,choiceId:i.id,groupId:i.groupId,customProperties:i.customProperties,placeholder:i.placeholder,keyCode:i.keyCode})},e.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var e=this.passedElement.placeholderOption;return e?e.text:null}var t=this.config,i=t.placeholder,r=t.placeholderValue,n=this.passedElement.element.dataset;if(i){if(r)return r;if(n.placeholder)return n.placeholder}return null},e}();t.default=b},613:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(799),n=i(883),o=function(){function e(e){var t=e.element,i=e.type,r=e.classNames,n=e.position;this.element=t,this.classNames=r,this.type=i,this.position=n,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e){if("number"!=typeof e)return!1;var t=!1;return"auto"===this.position?t=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(t=!0),t},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,r.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},217:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){var t=e.element,i=e.type,r=e.classNames;this.element=t,this.classNames=r,this.type=i,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=i},520:function(e,t,i){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var n=r(i(217));t.Dropdown=n.default;var o=r(i(613));t.Container=o.default;var s=r(i(11));t.Input=s.default;var a=r(i(624));t.List=a.default;var l=r(i(541));t.WrappedInput=l.default;var c=r(i(982));t.WrappedSelect=c.default},11:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(799),n=i(883),o=function(){function e(e){var t=e.element,i=e.type,r=e.classNames,n=e.preventPaste;this.element=t,this.type=i,this.classNames=r,this.preventPaste=n,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,i=e.value,r=e.placeholder;t.minWidth="".concat(r.length+1,"ch"),t.width="".concat(i.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==n.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=o},624:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(883),n=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var i=this;if(e){var r=this.element.offsetHeight,n=this.element.scrollTop+r,o=e.offsetHeight,s=e.offsetTop+o,a=t>0?this.element.scrollTop+s-n:e.offsetTop;requestAnimationFrame((function(){i._animateScroll(a,t)}))}},e.prototype._scrollDown=function(e,t,i){var r=(i-e)/t,n=r>1?r:1;this.element.scrollTop=e+n},e.prototype._scrollUp=function(e,t,i){var r=(e-i)/t,n=r>1?r:1;this.element.scrollTop=e-n},e.prototype._animateScroll=function(e,t){var i=this,n=r.SCROLLING_SPEED,o=this.element.scrollTop,s=!1;t>0?(this._scrollDown(o,n,e),o<e&&(s=!0)):(this._scrollUp(o,n,e),o>e&&(s=!0)),s&&requestAnimationFrame((function(){i._animateScroll(e,t)}))},e}();t.default=n},730:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(799),n=function(){function e(e){var t=e.element,i=e.classNames;if(this.element=t,this.classNames=i,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,r.dispatchEvent)(this.element,e,t)},e}();t.default=n},541:function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var i=t.element,r=t.classNames,n=t.delimiter,o=e.call(this,{element:i,classNames:r})||this;return o.delimiter=n,o}return n(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(o(i(730)).default);t.default=s},982:function(e,t,i){var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var i=t.element,r=t.classNames,n=t.template,o=e.call(this,{element:i,classNames:r})||this;return o.template=n,o}return n(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach((function(e){return r=e,n=t.template(r),void i.appendChild(n);var r,n})),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(o(i(730)).default);t.default=s},883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var r=i(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:r.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,r.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},978:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},948:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},359:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},285:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},533:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,i){var r=this&&this.__createBinding||(Object.create?function(e,t,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(t,i);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,r,n)}:function(e,t,i,r){void 0===r&&(r=i),e[r]=t[i]}),n=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||r(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(i(18),t),n(i(978),t),n(i(948),t),n(i(359),t),n(i(285),t),n(i(533),t),n(i(287),t),n(i(132),t),n(i(837),t),n(i(598),t),n(i(369),t),n(i(37),t),n(i(47),t),n(i(923),t),n(i(876),t)},287:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},132:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},837:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},598:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},37:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},369:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},47:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},923:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},876:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},799:function(e,t){var i;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,i){var r=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),"".concat(i,"-").concat(r)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,i){return null!=i&&(0,t.getType)(i)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,i){void 0===i&&(i=1);for(var r="".concat(i>0?"next":"previous","ElementSibling"),n=e[r];n;){if(n.matches(t))return n;n=n[r]}return n},t.isScrolledIntoView=function(e,t,i){return void 0===i&&(i=1),!!e&&(i>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},t.strToEl=(i=document.createElement("div"),function(e){var t=e.trim();i.innerHTML=t;for(var r=i.children[0];i.firstChild;)i.removeChild(i.firstChild);return r}),t.sortByAlpha=function(e,t){var i=e.value,r=e.label,n=void 0===r?i:r,o=t.value,s=t.label,a=void 0===s?o:s;return n.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},t.sortByScore=function(e,t){var i=e.score,r=void 0===i?0:i,n=t.score;return r-(void 0===n?0:n)},t.dispatchEvent=function(e,t,i){void 0===i&&(i=null);var r=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(r)},t.existsInArray=function(e,t,i){return void 0===i&&(i="value"),e.some((function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t}))},t.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},t.diff=function(e,t){var i=Object.keys(e).sort(),r=Object.keys(t).sort();return i.filter((function(e){return r.indexOf(e)<0}))},t.parseCustomProperties=function(e){if(void 0!==e)try{return JSON.parse(e)}catch(t){return e}return{}}},273:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var n=r,o={id:n.id,elementId:n.elementId,groupId:n.groupId,value:n.value,label:n.label||n.value,disabled:n.disabled||!1,selected:!1,active:!0,score:9999,customProperties:n.customProperties,placeholder:n.placeholder||!1};return i(i([],e,!0),[o],!1);case"ADD_ITEM":var s=r;return s.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var a=r;return a.choiceId&&a.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(a.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var l=r;return e.map((function(e){var t=e;return t.active=l.results.some((function(e){var i=e.item,r=e.score;return i.id===t.id&&(t.score=r,!0)})),t}));case"ACTIVATE_CHOICES":var c=r;return e.map((function(e){var t=e;return t.active=c.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var n=r;return i(i([],e,!0),[{id:n.id,value:n.value,active:n.active,disabled:n.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,t,i){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0;var n=i(791),o=r(i(52)),s=r(i(871)),a=r(i(273)),l=r(i(502)),c=i(799);t.defaultState={groups:[],items:[],choices:[],loading:!1};var p=(0,n.combineReducers)({items:o.default,groups:s.default,choices:a.default,loading:l.default});t.default=function(e,i){var r=e;if("CLEAR_ALL"===i.type)r=t.defaultState;else if("RESET_TO"===i.type)return(0,c.cloneObject)(i.state);return p(r,i)}},52:function(e,t){var i=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=[],t.default=function(e,r){switch(void 0===e&&(e=t.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var n=r;return i(i([],e,!0),[{id:n.id,choiceId:n.choiceId,groupId:n.groupId,value:n.value,label:n.label,active:!0,highlighted:!1,customProperties:n.customProperties,placeholder:n.placeholder||!1,keyCode:null}],!1).map((function(e){var t=e;return t.highlighted=!1,t}));case"REMOVE_ITEM":return e.map((function(e){var t=e;return t.id===r.id&&(t.active=!1),t}));case"HIGHLIGHT_ITEM":var o=r;return e.map((function(e){var t=e;return t.id===o.id&&(t.highlighted=o.highlighted),t}));default:return e}}},502:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,i){return void 0===e&&(e=t.defaultState),void 0===i&&(i={}),"SET_IS_LOADING"===i.type?i.isLoading:e}},744:function(e,t,i){var r=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var r,n=0,o=t.length;n<o;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(791),s=n(i(655)),a=function(){function e(){this._store=(0,o.createStore)(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return e.prototype.subscribe=function(e){this._store.subscribe(e)},e.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(e.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeItems",{get:function(){return this.items.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(e){return e.active&&e.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeChoices",{get:function(){return this.choices.filter((function(e){return!0===e.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(e){return!0!==e.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(e){return!0!==e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(e){return!0===e.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeGroups",{get:function(){var e=this.groups,t=this.choices;return e.filter((function(e){var i=!0===e.active&&!1===e.disabled,r=t.some((function(e){return!0===e.active&&!1===e.disabled}));return i&&r}),[])},enumerable:!1,configurable:!0}),e.prototype.isLoading=function(){return this.state.loading},e.prototype.getChoiceById=function(e){return this.activeChoices.find((function(t){return t.id===parseInt(e,10)}))},e.prototype.getGroupById=function(e){return this.groups.find((function(t){return t.id===e}))},e}();t.default=a},686:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i={containerOuter:function(e,t,i,r,n,o,s){var a=e.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:a});return l.dataset.type=o,t&&(l.dir=t),r&&(l.tabIndex=0),i&&(l.setAttribute("role",n?"combobox":"listbox"),n&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),s&&l.setAttribute("aria-labelledby",s),l},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var i=e.classNames,r=i.list,n=i.listSingle,o=i.listItems;return Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(t?n:o)})},placeholder:function(e,t){var i,r=e.allowHTML,n=e.classNames.placeholder;return Object.assign(document.createElement("div"),((i={className:n})[r?"innerHTML":"innerText"]=t,i))},item:function(e,t,i){var r,n,o=e.allowHTML,s=e.classNames,a=s.item,l=s.button,c=s.highlightedState,p=s.itemSelectable,u=s.placeholder,d=t.id,h=t.value,f=t.label,m=t.customProperties,g=t.active,v=t.disabled,y=t.highlighted,w=t.placeholder,b=Object.assign(document.createElement("div"),((r={className:a})[o?"innerHTML":"innerText"]=f,r));if(Object.assign(b.dataset,{item:"",id:d,value:h,customProperties:m}),g&&b.setAttribute("aria-selected","true"),v&&b.setAttribute("aria-disabled","true"),w&&b.classList.add(u),b.classList.add(y?c:p),i){v&&b.classList.remove(p),b.dataset.deletable="";var _="Remove item",x=Object.assign(document.createElement("button"),((n={type:"button",className:l})[o?"innerHTML":"innerText"]=_,n));x.setAttribute("aria-label","".concat(_,": '").concat(h,"'")),x.dataset.button="",b.appendChild(x)}return b},choiceList:function(e,t){var i=e.classNames.list,r=Object.assign(document.createElement("div"),{className:i});return t||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(e,t){var i,r=e.allowHTML,n=e.classNames,o=n.group,s=n.groupHeading,a=n.itemDisabled,l=t.id,c=t.value,p=t.disabled,u=Object.assign(document.createElement("div"),{className:"".concat(o," ").concat(p?a:"")});return u.setAttribute("role","group"),Object.assign(u.dataset,{group:"",id:l,value:c}),p&&u.setAttribute("aria-disabled","true"),u.appendChild(Object.assign(document.createElement("div"),((i={className:s})[r?"innerHTML":"innerText"]=c,i))),u},choice:function(e,t,i){var r,n=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.itemSelectable,c=o.selectedState,p=o.itemDisabled,u=o.placeholder,d=t.id,h=t.value,f=t.label,m=t.groupId,g=t.elementId,v=t.disabled,y=t.selected,w=t.placeholder,b=Object.assign(document.createElement("div"),((r={id:g})[n?"innerHTML":"innerText"]=f,r.className="".concat(s," ").concat(a),r));return y&&b.classList.add(c),w&&b.classList.add(u),b.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(b.dataset,{choice:"",id:d,value:h,selectText:i}),v?(b.classList.add(p),b.dataset.choiceDisabled="",b.setAttribute("aria-disabled","true")):(b.classList.add(l),b.dataset.choiceSelectable=""),b},input:function(e,t){var i=e.classNames,r=i.input,n=i.inputCloned,o=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(r," ").concat(n),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return o.setAttribute("role","textbox"),o.setAttribute("aria-autocomplete","list"),o.setAttribute("aria-label",t),o},dropdown:function(e){var t=e.classNames,i=t.list,r=t.listDropdown,n=document.createElement("div");return n.classList.add(i,r),n.setAttribute("aria-expanded","false"),n},notice:function(e,t,i){var r,n=e.allowHTML,o=e.classNames,s=o.item,a=o.itemChoice,l=o.noResults,c=o.noChoices;void 0===i&&(i="");var p=[s,a];return"no-choices"===i?p.push(c):"no-results"===i&&p.push(l),Object.assign(document.createElement("div"),((r={})[n?"innerHTML":"innerText"]=t,r.className=p.join(" "),r))},option:function(e){var t=e.label,i=e.value,r=e.customProperties,n=e.active,o=e.disabled,s=new Option(t,i,!1,n);return r&&(s.dataset.customProperties="".concat(r)),s.disabled=!!o,s}};t.default=i},996:function(e){var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((i=e,Array.isArray(i)?[]:{}),e,t):e;var i}function n(e,t,i){return e.concat(t).map((function(e){return r(e,i)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,i,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(i);return c===Array.isArray(e)?c?l.arrayMerge(e,i,l):function(e,t,i){var n={};return i.isMergeableObject(e)&&o(e).forEach((function(t){n[t]=r(e[t],i)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&i.isMergeableObject(t[o])?n[o]=function(e,t){if(!t.customMerge)return a;var i=t.customMerge(e);return"function"==typeof i?i:a}(o,i)(e[o],t[o],i):n[o]=r(t[o],i))})),n}(e,i,l):r(i,l)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,i){return a(e,i,t)}),{})};var l=a;e.exports=l},221:function(e,t,i){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e}function a(e){return null!=e}function l(e){return!e.trim().length}function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}i.r(t),i.d(t,{default:function(){return N}});var p=Object.prototype.hasOwnProperty;var u=function(){function e(e){var t=this;this._keys=[],this._keyMap={};var i=0;e.forEach((function(e){var r=d(e);i+=r.weight,t._keys.push(r),t._keyMap[r.id]=r,i+=r.weight})),this._keys.forEach((function(e){e.weight/=i}))}e.prototype.get=function(e){return this._keyMap[e]};e.prototype.keys=function(){return this._keys};e.prototype.toJSON=function(){return JSON.stringify(this._keys)};return e}();function d(e){var t=null,i=null,o=null,s=1,a=null;if(n(e)||r(e))o=e,t=h(e),i=f(e);else{if(!p.call(e,"name"))throw new Error("Missing name property in key");var l=e.name;if(o=l,p.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(l));t=h(l),i=f(l),a=e.getFn}return{path:t,id:i,weight:s,src:o,getFn:a}}function h(e){return r(e)?e:e.split(".")}function f(e){return r(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){var i=[],l=!1;var p=function(e,t,u){if(a(e))if(t[u]){var d=e[t[u]];if(!a(d))return;if(u===t.length-1&&(n(d)||o(d)||function(e){return!0===e||!1===e||function(e){return s(e)&&null!==e}(e)&&"[object Boolean]"==c(e)}(d)))i.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(d));else if(r(d)){l=!0;for(var h=0,f=d.length;h<f;h+=1)p(d[h],t,u+1)}else t.length&&p(d,t,u+1)}else i.push(e)};return p(e,n(t)?t.split("."):t,0),l?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var g=/[^ ]+/g;var v=function(){function e(e){var t=e===void 0?{}:e,i=t.getFn,r=i===void 0?m.getFn:i,n=t.fieldNormWeight,o=n===void 0?m.fieldNormWeight:n;this.norm=function(e,t){if(e===void 0){e=1}if(t===void 0){t=3}var i=new Map,r=Math.pow(10,t);return{get:function(t){var n=t.match(g).length;if(i.has(n))return i.get(n);var o=1/Math.pow(n,.5*e),s=parseFloat(Math.round(o*r)/r);return i.set(n,s),s},clear:function(){i.clear()}}}(o,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}e.prototype.setSources=function(e){if(e===void 0){e=[]}this.docs=e};e.prototype.setIndexRecords=function(e){if(e===void 0){e=[]}this.records=e};e.prototype.setKeys=function(e){var t=this;if(e===void 0){e=[]}this.keys=e,this._keysMap={},e.forEach((function(e,i){t._keysMap[e.id]=i}))};e.prototype.create=function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach((function(t,i){e._addString(t,i)})):this.docs.forEach((function(t,i){e._addObject(t,i)})),this.norm.clear())};e.prototype.add=function(e){var t=this.size();n(e)?this._addString(e,t):this._addObject(e,t)};e.prototype.removeAt=function(e){this.records.splice(e,1);for(var t=e,i=this.size();t<i;t+=1)this.records[t].i-=1};e.prototype.getValueForItemAtKeyId=function(e,t){return e[this._keysMap[t]]};e.prototype.size=function(){return this.records.length};e.prototype._addString=function(e,t){if(!a(e)||l(e))return;var i={v:e,i:t,n:this.norm.get(e)};this.records.push(i)};e.prototype._addObject=function(e,t){var i=this;var o={i:t,$:{}};this.keys.forEach((function(t,s){var c=t.getFn?t.getFn(e):i.getFn(e,t.path);if(a(c))if(r(c)){var p=[];var u=[{nestedArrIndex:-1,value:c}];for(;u.length;){var d=u.pop(),h=d.nestedArrIndex,f=d.value;if(a(f))if(n(f)&&!l(f)){var m={v:f,i:h,n:i.norm.get(f)};p.push(m)}else r(f)&&f.forEach((function(e,t){u.push({nestedArrIndex:t,value:e})}))}o.$[s]=p}else if(n(c)&&!l(c)){var g={v:c,n:i.norm.get(c)};o.$[s]=g}})),this.records.push(o)};e.prototype.toJSON=function(){return{keys:this.keys,records:this.records}};return e}();function y(e,t,i){var r=i===void 0?{}:i,n=r.getFn,o=n===void 0?m.getFn:n,s=r.fieldNormWeight,a=s===void 0?m.fieldNormWeight:s;var l=new v({getFn:o,fieldNormWeight:a});return l.setKeys(e.map(d)),l.setSources(t),l.create(),l}function w(e,t){var i=t===void 0?{}:t,r=i.errors,n=r===void 0?0:r,o=i.currentLocation,s=o===void 0?0:o,a=i.expectedLocation,l=a===void 0?0:a,c=i.distance,p=c===void 0?m.distance:c,u=i.ignoreLocation,d=u===void 0?m.ignoreLocation:u;var h=n/e.length;if(d)return h;var f=Math.abs(l-s);return p?h+f/p:f?1:h}var b=32;function _(e){var t={};for(var i=0,r=e.length;i<r;i+=1){var n=e.charAt(i);t[n]=(t[n]||0)|1<<r-i-1}return t}var x=function(){function e(e,t){var i=t===void 0?{}:t,r=i.location,n=r===void 0?m.location:r,o=i.threshold,s=o===void 0?m.threshold:o,a=i.distance,l=a===void 0?m.distance:a,c=i.includeMatches,p=c===void 0?m.includeMatches:c,u=i.findAllMatches,d=u===void 0?m.findAllMatches:u,h=i.minMatchCharLength,f=h===void 0?m.minMatchCharLength:h,g=i.isCaseSensitive,v=g===void 0?m.isCaseSensitive:g,y=i.ignoreLocation,w=y===void 0?m.ignoreLocation:y;var x=this;if(this.options={location:n,threshold:s,distance:l,includeMatches:p,findAllMatches:d,minMatchCharLength:f,isCaseSensitive:v,ignoreLocation:w},this.pattern=v?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;var k=function(e,t){x.chunks.push({pattern:e,alphabet:_(e),startIndex:t})},A=this.pattern.length;if(A>b){var T=0;var L=A%b,C=A-L;for(;T<C;)k(this.pattern.substr(T,b),T),T+=b;if(L){var E=A-b;k(this.pattern.substr(E),E)}}else k(this.pattern,0)}e.prototype.searchIn=function(e){var t=this.options,i=t.isCaseSensitive,r=t.includeMatches;if(i||(e=e.toLowerCase()),this.pattern===e){var n={isMatch:!0,score:0};return r&&(n.indices=[[0,e.length-1]]),n}var o=this.options,s=o.location,a=o.distance,l=o.threshold,c=o.findAllMatches,p=o.minMatchCharLength,u=o.ignoreLocation;var d=[],h=0,f=!1;this.chunks.forEach((function(t){var i=t.pattern,n=t.alphabet,o=t.startIndex;var g=function(e,t,i,r){var n=r===void 0?{}:r,o=n.location,s=o===void 0?m.location:o,a=n.distance,l=a===void 0?m.distance:a,c=n.threshold,p=c===void 0?m.threshold:c,u=n.findAllMatches,d=u===void 0?m.findAllMatches:u,h=n.minMatchCharLength,f=h===void 0?m.minMatchCharLength:h,g=n.includeMatches,v=g===void 0?m.includeMatches:g,y=n.ignoreLocation,_=y===void 0?m.ignoreLocation:y;if(t.length>b)throw new Error("Pattern length exceeds max of 32.");var x=t.length,k=e.length,A=Math.max(0,Math.min(s,k));var T=p,L=A;var C=f>1||v,E=C?Array(k):[];var S;for(;(S=e.indexOf(t,L))>-1;){var P=w(t,{currentLocation:S,expectedLocation:A,distance:l,ignoreLocation:_});if(T=Math.min(P,T),L=S+x,C){var M=0;for(;M<x;)E[S+M]=1,M+=1}}L=-1;var O=[],I=1,z=x+k;var B=1<<x-1;for(var D=0;D<x;D+=1){var F=0,j=z;for(;F<j;)w(t,{errors:D,currentLocation:A+j,expectedLocation:A,distance:l,ignoreLocation:_})<=T?F=j:z=j,j=Math.floor((z-F)/2+F);z=j;var N=Math.max(1,A-j+1),R=d?k:Math.min(A+j,k)+x,G=Array(R+2);G[R+1]=(1<<D)-1;for(var Z=R;Z>=N;Z-=1){var H=Z-1,Y=i[e.charAt(H)];if(C&&(E[H]=+!!Y),G[Z]=(G[Z+1]<<1|1)&Y,D&&(G[Z]|=(O[Z+1]|O[Z])<<1|1|O[Z+1]),G[Z]&B&&(I=w(t,{errors:D,currentLocation:H,expectedLocation:A,distance:l,ignoreLocation:_}),I<=T)){if(T=I,L=H,L<=A)break;N=Math.max(1,2*A-L)}}if(w(t,{errors:D+1,currentLocation:A,expectedLocation:A,distance:l,ignoreLocation:_})>T)break;O=G}var V={isMatch:L>=0,score:Math.max(.001,I)};if(C){var U=function(e,t){if(e===void 0){e=[]}if(t===void 0){t=m.minMatchCharLength}var i=[],r=-1,n=-1,o=0;for(var s=e.length;o<s;o+=1){var a=e[o];a&&-1===r?r=o:a||-1===r||(n=o-1,n-r+1>=t&&i.push([r,n]),r=-1)}return e[o-1]&&o-r>=t&&i.push([r,o-1]),i}(E,f);U.length?v&&(V.indices=U):V.isMatch=!1}return V}(e,i,n,{location:s+o,distance:a,threshold:l,findAllMatches:c,minMatchCharLength:p,includeMatches:r,ignoreLocation:u}),v=g.isMatch,y=g.score,_=g.indices;v&&(f=!0),h+=y,v&&_&&(d=__spreadArray(__spreadArray([],d,true),_,true))}));var g={isMatch:f,score:f?h/this.chunks.length:1};return f&&r&&(g.indices=d),g};return e}();var k=function(){function e(e){this.pattern=e}e.isMultiMatch=function(e){return A(e,this.multiRegex)};e.isSingleMatch=function(e){return A(e,this.singleRegex)};e.prototype.search=function(){};return e}();function A(e,t){var i=e.match(t);return i?i[1]:null}var T=function(e){__extends(t,e);function t(t,i){var r=i===void 0?{}:i,n=r.location,o=n===void 0?m.location:n,s=r.threshold,a=s===void 0?m.threshold:s,l=r.distance,c=l===void 0?m.distance:l,p=r.includeMatches,u=p===void 0?m.includeMatches:p,d=r.findAllMatches,h=d===void 0?m.findAllMatches:d,f=r.minMatchCharLength,g=f===void 0?m.minMatchCharLength:f,v=r.isCaseSensitive,y=v===void 0?m.isCaseSensitive:v,w=r.ignoreLocation,b=w===void 0?m.ignoreLocation:w;var _=this;_=e.call(this,t)||this,_._bitapSearch=new x(t,{location:o,threshold:a,distance:c,includeMatches:u,findAllMatches:h,minMatchCharLength:g,isCaseSensitive:y,ignoreLocation:b});return _}Object.defineProperty(t,"type",{get:function(){return"fuzzy"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){return this._bitapSearch.searchIn(e)};return t}(k);var L=function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"include"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^'"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^'(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t,i=0;var r=[],n=this.pattern.length;for(;(t=e.indexOf(this.pattern,i))>-1;)i=t+n,r.push([t,i-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}};return t}(k);var C=[function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^="(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^=(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}};return t}(k),L,function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"prefix-exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^\^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^\^(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}};return t}(k),function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"inverse-prefix-exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^!\^"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^!\^(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}};return t}(k),function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"inverse-suffix-exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^!"(.*)"\$$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^!(.*)\$$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}};return t}(k),function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"suffix-exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^"(.*)"\$$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^(.*)\$$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}};return t}(k),function(e){__extends(t,e);function t(t){return e.call(this,t)||this}Object.defineProperty(t,"type",{get:function(){return"inverse-exact"},enumerable:false,configurable:true});Object.defineProperty(t,"multiRegex",{get:function(){return/^!"(.*)"$/},enumerable:false,configurable:true});Object.defineProperty(t,"singleRegex",{get:function(){return/^!(.*)$/},enumerable:false,configurable:true});t.prototype.search=function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}};return t}(k),T],E=C.length,S=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,P=new Set([T.type,L.type]);var M=[];function O(e,t){for(var i=0,r=M.length;i<r;i+=1){var n=M[i];if(n.condition(e,t))return new n(e,t)}return new x(e,t)}var I="$and",z=function(e){return!(!e.$and&&!e.$or)},B=function(e){var t;return t={},t[I]=Object.keys(e).map((function(t){var i;return i={},i[t]=e[t],i})),t};function D(e,t,i){var o=i===void 0?{}:i,a=o.auto,l=a===void 0?!0:a;var c=function(e){var i=Object.keys(e);var o=function(e){return!!e.$path}(e);if(!o&&i.length>1&&!z(e))return c(B(e));if(function(e){return!r(e)&&s(e)&&!z(e)}(e)){var a=o?e.$path:i[0],p=o?e.$val:e[a];if(!n(p))throw new Error(function(e){return"Invalid value for key ".concat(e)}(a));var u={keyId:f(a),pattern:p};return l&&(u.searcher=O(p,t)),u}var d={children:[],operator:i[0]};return i.forEach((function(t){var i=e[t];r(i)&&i.forEach((function(e){d.children.push(c(e))}))})),d};return z(e)||(e=B(e)),c(e)}function F(e,t){var i=e.matches;t.matches=[],a(i)&&i.forEach((function(e){if(!a(e.indices)||!e.indices.length)return;var i=e.indices,r=e.value;var n={indices:i,value:r};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}))}function j(e,t){t.score=e.score}var N=function(){function e(e,t,i){if(t===void 0){t={}}this.options=__assign(__assign({},m),t),this._keyStore=new u(this.options.keys),this.setCollection(e,i)}e.prototype.setCollection=function(e,t){if(this._docs=e,t&&!(t instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=t||y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})};e.prototype.add=function(e){a(e)&&(this._docs.push(e),this._myIndex.add(e))};e.prototype.remove=function(e){if(e===void 0){e=function(){return!1}}var t=[];for(var i=0,r=this._docs.length;i<r;i+=1){var n=this._docs[i];e(n,i)&&(this.removeAt(i),i-=1,r-=1,t.push(n))}return t};e.prototype.removeAt=function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)};e.prototype.getIndex=function(){return this._myIndex};e.prototype.search=function(e,t){var i=t===void 0?{}:t,r=i.limit,s=r===void 0?-1:r;var a=this.options,l=a.includeMatches,c=a.includeScore,p=a.shouldSort,u=a.sortFn,d=a.ignoreFieldNorm;var h=n(e)?n(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(e,t){var i=t.ignoreFieldNorm,r=i===void 0?m.ignoreFieldNorm:i;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var i=e.key,n=e.norm,o=e.score;var s=i?i.weight:null;t*=Math.pow(0===o&&s?Number.EPSILON:o,(s||1)*(r?1:n))})),e.score=t}))}(h,{ignoreFieldNorm:d}),p&&h.sort(u),o(s)&&s>-1&&(h=h.slice(0,s)),function(e,t,i){var r=i===void 0?{}:i,n=r.includeMatches,o=n===void 0?m.includeMatches:n,s=r.includeScore,a=s===void 0?m.includeScore:s;var l=[];return o&&l.push(F),a&&l.push(j),e.map((function(e){var i=e.idx,r={item:t[i],refIndex:i};return l.length&&l.forEach((function(t){t(e,r)})),r}))}(h,this._docs,{includeMatches:l,includeScore:c})};e.prototype._searchStringList=function(e){var t=O(e,this.options),i=this._myIndex.records,r=[];return i.forEach((function(e){var i=e.v,n=e.i,o=e.n;if(!a(i))return;var s=t.searchIn(i),l=s.isMatch,c=s.score,p=s.indices;l&&r.push({item:i,idx:n,matches:[{score:c,value:i,norm:o,indices:p}]})})),r};e.prototype._searchLogical=function(e){var t=this;var i=D(e,this.options),r=function(e,i,n){if(!e.children){var o=e.keyId,s=e.searcher,a=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(i,o),searcher:s});return a&&a.length?[{idx:n,item:i,matches:a}]:[]}var l=[];for(var c=0,p=e.children.length;c<p;c+=1){var u=e.children[c],d=r(u,i,n);if(d.length)l.push.apply(l,d);else if(e.operator===I)return[]}return l},n=this._myIndex.records,o={},s=[];return n.forEach((function(e){var t=e.$,n=e.i;if(a(t)){var l=r(i,t,n);l.length&&(o[n]||(o[n]={idx:n,item:t,matches:[]},s.push(o[n])),l.forEach((function(e){var t;var i=e.matches;(t=o[n].matches).push.apply(t,i)})))}})),s};e.prototype._searchObjectList=function(e){var t=this;var i=O(e,this.options),r=this._myIndex,n=r.keys,o=r.records,s=[];return o.forEach((function(e){var r=e.$,o=e.i;if(!a(r))return;var l=[];n.forEach((function(e,n){l.push.apply(l,t._findMatches({key:e,value:r[n],searcher:i}))})),l.length&&s.push({idx:o,item:r,matches:l})})),s};e.prototype._findMatches=function(e){var t=e.key,i=e.value,n=e.searcher;if(!a(i))return[];var o=[];if(r(i))i.forEach((function(e){var i=e.v,r=e.i,s=e.n;if(!a(i))return;var l=n.searchIn(i),c=l.isMatch,p=l.score,u=l.indices;c&&o.push({score:p,key:t,value:i,idx:r,norm:s,indices:u})}));else{var s=i.v,l=i.n,c=n.searchIn(s),p=c.isMatch,u=c.score,d=c.indices;p&&o.push({score:u,key:t,value:s,norm:l,indices:d})}return o};return e}();N.version="6.6.2",N.createIndex=y,N.parseIndex=function(e,t){var i=t===void 0?{}:t,r=i.getFn,n=r===void 0?m.getFn:r,o=i.fieldNormWeight,s=o===void 0?m.fieldNormWeight:o;var a=e.keys,l=e.records,c=new v({getFn:n,fieldNormWeight:s});return c.setKeys(a),c.setIndexRecords(l),c},N.config=m,N.parseQuery=D,function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}M.push.apply(M,e)}(function(){function e(e,t){var i=t===void 0?{}:t,r=i.isCaseSensitive,n=r===void 0?m.isCaseSensitive:r,o=i.includeMatches,s=o===void 0?m.includeMatches:o,a=i.minMatchCharLength,l=a===void 0?m.minMatchCharLength:a,c=i.ignoreLocation,p=c===void 0?m.ignoreLocation:c,u=i.findAllMatches,d=u===void 0?m.findAllMatches:u,h=i.location,f=h===void 0?m.location:h,g=i.threshold,v=g===void 0?m.threshold:g,y=i.distance,w=y===void 0?m.distance:y;this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:l,findAllMatches:d,ignoreLocation:p,location:f,threshold:v,distance:w},this.pattern=n?e:e.toLowerCase(),this.query=function(e,t){if(t===void 0){t={}}return e.split("|").map((function(e){var i=e.trim().split(S).filter((function(e){return e&&!!e.trim()})),r=[];for(var n=0,o=i.length;n<o;n+=1){var s=i[n];var a=!1,l=-1;for(;!a&&++l<E;){var c=C[l];var p=c.isMultiMatch(s);p&&(r.push(new c(p,t)),a=!0)}if(!a)for(l=-1;++l<E;){var u=C[l];var d=u.isSingleMatch(s);if(d){r.push(new u(d,t));break}}}return r}))}(this.pattern,this.options)}e.condition=function(e,t){return t.useExtendedSearch};e.prototype.searchIn=function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var i=this.options,r=i.includeMatches,n=i.isCaseSensitive;e=n?e:e.toLowerCase();var o=0,s=[],a=0;for(var l=0,c=t.length;l<c;l+=1){var p=t[l];s.length=0,o=0;for(var u=0,d=p.length;u<d;u+=1){var h=p[u],f=h.search(e),m=f.isMatch,g=f.indices,v=f.score;if(!m){a=0,o=0,s.length=0;break}if(o+=1,a+=v,r){var y=h.constructor.type;P.has(y)?s=__spreadArray(__spreadArray([],s,true),g,true):s.push(g)}}if(o){var w={isMatch:!0,score:a/o};return r&&(w.indices=s),w}}return{isMatch:!1,score:1}};return e}())},791:function(e,t,i){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t);if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}i.r(t),i.d(t,{__DO_NOT_USE__ActionTypes:function(){return p},applyMiddleware:function(){return y},bindActionCreators:function(){return g},combineReducers:function(){return f},compose:function(){return v},createStore:function(){return d},legacy_createStore:function(){return h}});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,i){var r;if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(a(1));return i(d)(e,t)}if("function"!=typeof e)throw new Error(a(2));var n=e,o=t,s=[],c=s,h=!1;function f(){c===s&&(c=s.slice())}function m(){if(h)throw new Error(a(3));return o}function g(e){if("function"!=typeof e)throw new Error(a(4));if(h)throw new Error(a(5));var t=!0;return f(),c.push(e),function(){if(t){if(h)throw new Error(a(6));t=!1,f();var i=c.indexOf(e);c.splice(i,1),s=null}}}function v(e){if(!u(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(h)throw new Error(a(9));try{h=!0,o=n(o,e)}finally{h=!1}for(var t=s=c,i=0;i<t.length;i++)(0,t[i])();return e}function y(e){if("function"!=typeof e)throw new Error(a(10));n=e,v({type:p.REPLACE})}function w(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function i(){e.next&&e.next(m())}return i(),{unsubscribe:t(i)}}})[l]=function(){return this},e}return v({type:p.INIT}),(r={dispatch:v,subscribe:g,getState:m,replaceReducer:y})[l]=w,r}var h=d;function f(e){for(var t=Object.keys(e),i={},r=0;r<t.length;r++){var n=t[r];"function"==typeof e[n]&&(i[n]=e[n])}var o,s=Object.keys(i);try{!function(e){Object.keys(e).forEach((function(t){var i=e[t];if(void 0===i(void 0,{type:p.INIT}))throw new Error(a(12));if(void 0===i(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(i)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,n={},l=0;l<s.length;l++){var c=s[l],p=i[c],u=e[c],d=p(u,t);if(void 0===d)throw new Error(a(14));n[c]=d,r=r||d!==u}return(r=r||s.length!==Object.keys(e).length)?n:e}}function m(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if("function"==typeof e)return m(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var i={};for(var r in e){var n=e[r];"function"==typeof n&&(i[r]=m(n,t))}return i}function v(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return function(){var i=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},n={getState:i.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(n)}));return r=v.apply(void 0,o)(i.dispatch),s(s({},i),{},{dispatch:r})}}}}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,i),o.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r,n,o={};r=i(373),n=i.n(r),i(187),i(883),i(789),i(686),o.default=n(),window.Choices=o.default}();var R='*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;overflow-x:hidden}hr,label{display:block}label,p{margin-bottom:8px}label{font-size:14px;font-weight:500;cursor:pointer}p{margin-top:0}hr{margin:30px 0;border:0;border-bottom:1px solid #eaeaea;height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:12px;font-weight:400;line-height:1.2}a,a:focus,a:visited{color:#fff;text-decoration:none;font-weight:600}.form-control{display:block;width:100%;background-color:#f9f9f9;padding:12px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-bottom:24px}.h1,h1{font-size:32px}.h2,h2{font-size:24px}.h3,h3{font-size:20px}.h4,h4{font-size:18px}.h5,h5{font-size:16px}.h6,h6{font-size:14px}label+p{margin-top:-4px}.container{display:block;margin:auto;max-width:40em;padding:48px}@media (max-width:620px){.container{padding:0}}.section{background-color:#fff;padding:24px;color:#333}.section a,.section a:focus,.section a:visited{color:#00bcd4}.logo{display:block;margin-bottom:12px}.logo-img{width:100%;height:auto;display:inline-block;max-width:100%;vertical-align:top;padding:6px 0}.visible-ie{display:none}.push-bottom{margin-bottom:24px}.zero-bottom{margin-bottom:0}.zero-top{margin-top:0}.text-center{text-align:center}[data-test-hook]{margin-bottom:24px}.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.25}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{-webkit-box-shadow:0 0 0 2px #00bcd4;box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button{display:none}.choices[data-type*=select-one]::after{content:"";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]::after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0-4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;-webkit-box-sizing:border-box;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown,.choices__list[aria-expanded]{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.is-active.choices__list--dropdown,.is-active.choices__list[aria-expanded]{visibility:visible}.is-open .choices__list--dropdown,.is-open .choices__list[aria-expanded]{border-color:#b7b7b7}.is-flipped .choices__list--dropdown,.is-flipped .choices__list[aria-expanded]{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list,.choices__list[aria-expanded] .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item,[dir=rtl] .choices__list[aria-expanded] .choices__item{text-align:right}@media (min-width:640px){.choices__list--dropdown .choices__item--selectable,.choices__list[aria-expanded] .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable::after,.choices__list[aria-expanded] .choices__item--selectable::after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable::after,[dir=rtl] .choices__list[aria-expanded] .choices__item--selectable::after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted::after,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted::after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:gray}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:center;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}.choices__input::-webkit-search-cancel-button,.choices__input::-webkit-search-decoration,.choices__input::-webkit-search-results-button,.choices__input::-webkit-search-results-decoration{display:none}.choices__input::-ms-clear,.choices__input::-ms-reveal{display:none;width:0;height:0}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.filter-name{margin-left:8px;color:var(--color-on-surface);line-height:32px;letter-spacing:0px;font-size:24px;font-weight:400;font-family:var(--font-family)}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-webkit-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-moz-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input:-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::-ms-input-placeholder{opacity:0}.filter-button-container .choices__list--multiple:not(:empty)+.choices__input::placeholder{opacity:0}.filter-button-container .choices{width:100%;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 0px;font-family:var(--font-family)}.filter-button-container .choices .choices__inner{border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__inner,.filter-button-container .choices .choices__input,.filter-button-container .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,.filter-button-container .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background-color:transparent}.filter-button-container .choices .choices__list--multiple .choices__item{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container);font-size:14px;margin-right:8px;border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-tap-highlight-color:transparent;line-height:20px}.filter-button-container .choices .choices__button{--choices-button-url:url(\'data:image/svg+xml,<svg width="21" height="21" viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg"><g fill="\' + var(--color-on-secondary-container) + \'" fill-rule="evenodd"><path d="M2.592.044l18.364 18.364-2.548 2.548L.044 2.592z"/><path d="M0 18.364L18.364 0l2.548 2.548L2.548 20.912z"/></g></svg>\')\n background-image: var(--choices-button-url);color:var(--color-on-secondary-container);border-left:1px solid var(--color-outline)}.filter-button-container .choices .choices__list--dropdown,.filter-button-container .choices .choices__list[aria-expanded]{width:100%;color:var(--color-secondary-container);background-color:var(--color-on-secondary-container);border:1px solid var(--color-outline)}.filter-button-container .choices .choices__input{width:100%;font-family:var(--font-family)}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;font-weight:500;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);border:1px solid var(--color-outline);border-radius:var(--border-radius, 8px);-webkit-tap-highlight-color:transparent;line-height:20px;-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;min-width:100px;white-space:nowrap;font-family:var(--font-family)}.filter-button-container .filter-button:hover,.filter-button-container .selected-filter-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.filter-button-container .filter-button{color:var(--color-on-surface-variant);background-color:transparent}.filter-button-container .selected-filter-button{color:var(--color-on-secondary-container);background-color:var(--color-secondary-container)}.filter-button-container .selected-filter-button span{font-size:24px;margin-right:8px;color:var(--color-on-secondary-container)}.select-container{display:-ms-inline-flexbox;display:inline-flex;width:100%;z-index:4000}.select-container .choicesjs-stencil{position:relative;width:100%;height:auto;z-index:22;z-index:4000}.select-container .choicesjs-stencil .choices__inner{padding:0px}.select-container .choicesjs-stencil .choices__input{padding:0px;margin:0px;width:100% !important;min-height:44px}';var G=e("grw_filter",function(){function e(e){n(this,e);this.fontFamily="Roboto";this.filterType=undefined;this.filterName=undefined;this.filterPlaceholder="";this.filterNameProperty=undefined;this.segment=undefined}e.prototype.onResetFilter=function(){this.resetFilter()};e.prototype.handleFilter=function(e,t){var i=this;var r=__spreadArray([],_[this.filterType],true);r.find((function(e){return e.id===t.id})).selected=!r.find((function(e){return e.id===t.id})).selected;_[this.filterType]=r;_[this.segment]=0;if(_.mode==="treks"){z.filter((function(e){return e.segment===i.segment})).forEach((function(e){_[i.segment]+=_[e.property].filter((function(e){return e.selected})).length}));_.currentTreks=F()}else if(_.mode==="touristicContents"){B.filter((function(e){return e.segment===i.segment})).forEach((function(e){_[i.segment]+=_[e.property].filter((function(e){return e.selected})).length}));_.currentTouristicContents=j()}else if(_.mode==="touristicEvents"){D.filter((function(e){return e.segment===i.segment})).forEach((function(e){_[i.segment]+=_[e.property].filter((function(e){return e.selected})).length}));_.currentTouristicEvents=N()}};e.prototype.resetFilter=function(){if(this.choices){this.choices.removeActiveItems()}r(this.filterRef)};e.prototype.componentDidLoad=function(){var e=this;if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:_[this.filterType].map((function(t){return{value:t.id,label:t[e.filterNameProperty],selected:t.selected}})),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});var t=this.el.shadowRoot.querySelector(".choices");t.addEventListener("click",(function(t){t.stopPropagation();var i=e.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!i.classList.contains("is-active")){var r=e.el.shadowRoot.querySelector(".choices");r.classList.add("is-focused");r.classList.add("is-open");i.classList.add("is-active");i.setAttribute("aria-expanded","true")}}),false);t.addEventListener("change",(function(t){e.handleFilter(null,_[e.filterType].find((function(e){return e.id===t.detail.value})))}),false)}};e.prototype.render=function(){var e=this;return o(s,{ref:function(t){return e.filterRef=t},style:{"--font-family":this.fontFamily}},o("div",{class:"filter-name display-large"},this.filterName),o("div",{class:"filter-button-container"},_[this.filterType].length>9?o("select",{multiple:true,ref:function(t){return e.choicesRef=t}}):_[this.filterType].map((function(t){return o("button",{onClick:function(i){return e.handleFilter(i,t)},class:t.selected?"selected-filter-button":"filter-button"},t.selected&&o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[e.filterNameProperty])}))))};Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());G.style=R;var Z='.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{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;margin:8px 0px 0px 8px;padding:8px 16px;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary-container);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 H=e("grw_filters",function(){function e(e){n(this,e);this.resetFilter=l(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}e.prototype.handleEraseTreksFilters=function(){z.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedThemesFilters=0;_.selectedLocationFilters=0;_.currentTreks=F();this.resetFilter.emit()};e.prototype.handleOkTreksFilters=function(){this.handleFilters()};e.prototype.handleSelectedSegment=function(e){this.selectedSegment=e};e.prototype.handleSegment=function(e){if(_.mode==="treks"){return z.filter((function(t){return t.segment===e})).some((function(e){return _[e.property]&&_[e.property].length>0}))}else if(_.mode==="touristicContents"){return B.filter((function(t){return t.segment===e})).some((function(e){return _[e.property]&&_[e.property].length>0}))}else if(_.mode==="touristicEvents"){return D.filter((function(t){return t.segment===e})).some((function(e){return _[e.property]&&_[e.property].length>0}))}};e.prototype.handleEraseTouristicContentsFilters=function(){B.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedLocationFilters=0;_.currentTouristicContents=j();this.resetFilter.emit()};e.prototype.handleOkTouristicContentsFilters=function(){this.handleFilters()};e.prototype.handleEraseTouristicEventsFilters=function(){D.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedLocationFilters=0;_.currentTouristicEvents=N();this.resetFilter.emit()};e.prototype.handleOkTouristicEventsFilters=function(){this.handleFilters()};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily}},o("div",{class:"options-container"},o("div",{class:"filters-container"},_.mode==="treks"&&o("div",{class:"filters-treks-container"},o("div",{class:"filters-options-container"},_.treksWithinBounds&&o("div",{class:"current-treks-within-bounds-length"},"".concat(_.treksWithinBounds.length," ").concat(_.treksWithinBounds.length>1?p[_.language].treks:p[_.language].trek)),o("div",{class:"filters-options-buttons-container"},o("button",{class:"filter-option-button",onClick:function(){return e.handleEraseTreksFilters()}},p[_.language].erase),o("button",{class:"filter-option-button",onClick:function(){return e.handleOkTreksFilters()}},p[_.language].ok))),o("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},p[_.language].activities," ",_.selectedActivitiesFilters!==0&&"(".concat(_.selectedActivitiesFilters,")")),this.handleSegment("selectedThemesFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedThemesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedThemesFilters")}},p[_.language].themes," ",_.selectedThemesFilters!==0&&"(".concat(_.selectedThemesFilters,")")),this.handleSegment("selectedLocationFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},p[_.language].location," ",_.selectedLocationFilters!==0&&"(".concat(_.selectedLocationFilters,")"))),o("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&o("div",{key:"treks-activities-segment-container",class:"segment-container"},_["practices"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:p[_.language].placeholderPractices})),_["difficulties"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),_["durations"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),_["lengths"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),_["elevations"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),_["routes"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),_["accessibilities"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),_["labels"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&o("div",{key:"treks-themes-segment-container",class:"segment-container"},_["themes"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].themes,filterPlaceholder:p[_.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&o("div",{key:"treks-location-segment-container",class:"segment-container"},_["districts"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),_["cities"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].crossedCities,filterPlaceholder:p[_.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),_.mode==="touristicContents"&&o("div",{class:"filters-touristic-contents-container"},o("div",{class:"filters-options-container"},_.touristicContentsWithinBounds&&o("div",{class:"current-treks-within-bounds-length"},"".concat(_.touristicContentsWithinBounds.length," ").concat(_.touristicContentsWithinBounds.length>1?p[_.language].home.touristicContents:p[_.language].home.touristicContent)),o("div",{class:"filters-options-buttons-container"},o("button",{class:"filter-option-button",onClick:function(){return e.handleEraseTouristicContentsFilters()}},p[_.language].erase),o("button",{class:"filter-option-button",onClick:function(){return e.handleOkTouristicContentsFilters()}},p[_.language].ok))),o("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},p[_.language].services," ",_.selectedActivitiesFilters!==0&&"(".concat(_.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},p[_.language].location," ",_.selectedLocationFilters!==0&&"(".concat(_.selectedLocationFilters,")"))),o("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&o("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},_["touristicContentCategories"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&o("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},_["districts"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),_["cities"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].crossedCities,filterPlaceholder:p[_.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),_.mode==="touristicEvents"&&o("div",{class:"filters-touristic-events-container"},o("div",{class:"filters-options-container"},_.touristicEventsWithinBounds&&o("div",{class:"current-treks-within-bounds-length"},"".concat(_.touristicEventsWithinBounds.length," ").concat(_.touristicEventsWithinBounds.length>1?p[_.language].home.touristicEvents:p[_.language].home.touristicEvent)),o("div",{class:"filters-options-buttons-container"},o("button",{class:"filter-option-button",onClick:function(){return e.handleEraseTouristicEventsFilters()}},p[_.language].erase),o("button",{class:"filter-option-button",onClick:function(){return e.handleOkTouristicEventsFilters()}},p[_.language].ok))),o("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedActivitiesFilters")}},p[_.language].services," ",_.selectedActivitiesFilters!==0&&"(".concat(_.selectedActivitiesFilters,")")),this.handleSegment("selectedLocationFilters")&&o("label",{class:"segment".concat(this.selectedSegment==="selectedLocationFilters"?" selected-segment":""),onClick:function(){return e.handleSelectedSegment("selectedLocationFilters")}},p[_.language].location," ",_.selectedLocationFilters!==0&&"(".concat(_.selectedLocationFilters,")"))),o("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&o("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},_["touristicEventTypes"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].type,filterPlaceholder:p[_.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&o("div",{key:"touristic-events-location-segment-container",class:"segment-container"},_["districts"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),_["cities"].length>0&&o("div",{class:"filter-container"},o("grw-filter",{fontFamily:this.fontFamily,filterName:p[_.language].crossedCities,filterPlaceholder:p[_.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),o("div",{onClick:function(){return e.handleFilters()},class:"back-filters-container"})))};return e}());H.style=Z;var Y='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:var(--border-radius, 12px);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.information-desk-img{position:relative}.information-desk-img img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.information-desk-name{font-size:16px;line-height:24px;font-weight:500}.information-desk-description{font-size:14px;line-height:20px}.information-desk-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-information-desk-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}.phone-container,.mail-container,.link-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.phone-container span,.mail-container span,.link-container span{font-size:16px;margin-right:8px}.center-on-map-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:4px 8px;-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;border:none;font-size:14px;margin:12px 0px}.center-on-map-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.center-on-map-button span{font-size:18px}';var V=e("grw_information_desk",function(){function e(e){n(this,e);this.centerOnMap=l(this,"centerOnMap",7);this.displayShortDescription=true;this.showInformationDeskDescriptionButton=false;this.informationDesk=undefined}e.prototype.componentDidLoad=function(){this.showInformationDeskDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight};e.prototype.handleInformationDeskDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleCenterOnMap=function(){this.centerOnMap.emit({latitude:this.informationDesk.latitude,longitude:this.informationDesk.longitude})};e.prototype.render=function(){var e=this;return o(s,null,this.informationDesk.photo_url&&o("div",{class:"information-desk-img"},o("img",{crossorigin:"anonymous",src:this.informationDesk.photo_url,loading:"lazy"})),o("div",{class:"information-desk-sub-container"},this.informationDesk.name&&o("div",{class:"information-desk-name"},this.informationDesk.name),this.informationDesk.latitude&&this.informationDesk.longitude&&o("button",{class:"center-on-map-button",onClick:function(){return e.handleCenterOnMap()}},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"location_searching"),p[_.language].centerOnMap),(this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street)&&o("div",null,this.informationDesk.postal_code&&this.informationDesk.postal_code,this.informationDesk.municipality&&" ".concat(this.informationDesk.municipality),this.informationDesk.street&&" ".concat(this.informationDesk.street)),this.informationDesk.phone&&o("div",{class:"phone-container"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"call"),o("a",{href:"tel:".concat(this.informationDesk.phone)},this.informationDesk.phone)),this.informationDesk.email&&o("div",{class:"mail-container"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"mail"),o("a",{href:"mailto:".concat(this.informationDesk.email)},this.informationDesk.email)),this.informationDesk.website&&o("div",{class:"link-container"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"link"),o("a",{href:"".concat(this.informationDesk.website)},this.informationDesk.website)),this.informationDesk.description&&o("div",{class:"information-desk-description-container"},o("div",{class:this.displayShortDescription?"information-desk-description-short":"information-desk-description",innerHTML:this.informationDesk.description,ref:function(t){return e.descriptionRef=t}}),false)))};return e}());V.style=Y;var U=".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 W=e("grw_loader",function(){function e(e){n(this,e);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}e.prototype.render=function(){return o(s,{style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},o("span",{class:"loader"}))};return e}());W.style=U;var q=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function K(e,t,i){return i={path:t,exports:{},require:function(e,t){return X()}},e(i,i.exports),i.exports}function Q(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:true,get:function(){return e[i]}})}));return t}function X(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var J=K((function(e,t){
3
- /* @preserve
4
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
5
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
6
- */
7
- (function(e,i){i(t)})(q,(function(e){var t="1.9.4";function i(e){var t,i,r,n;for(i=1,r=arguments.length;i<r;i++){n=arguments[i];for(t in n){e[t]=n[t]}}return e}var r=Object.create||function(){function e(){}return function(t){e.prototype=t;return new e}}();function n(e,t){var i=Array.prototype.slice;if(e.bind){return e.bind.apply(e,i.call(arguments,1))}var r=i.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(i.call(arguments)):arguments)}}var o=0;function s(e){if(!("_leaflet_id"in e)){e["_leaflet_id"]=++o}return e._leaflet_id}function a(e,t,i){var r,n,o,s;s=function(){r=false;if(n){o.apply(i,n);n=false}};o=function(){if(r){n=arguments}else{e.apply(i,arguments);setTimeout(s,t);r=true}};return o}function l(e,t,i){var r=t[1],n=t[0],o=r-n;return e===r&&i?e:((e-n)%o+o)%o+n}function c(){return false}function p(e,t){if(t===false){return e}var i=Math.pow(10,t===undefined?6:t);return Math.round(e*i)/i}function u(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return u(e).split(/\s+/)}function h(e,t){if(!Object.prototype.hasOwnProperty.call(e,"options")){e.options=e.options?r(e.options):{}}for(var i in t){e.options[i]=t[i]}return e.options}function f(e,t,i){var r=[];for(var n in e){r.push(encodeURIComponent(i?n.toUpperCase():n)+"="+encodeURIComponent(e[n]))}return(!t||t.indexOf("?")===-1?"?":"&")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(e,t){return e.replace(m,(function(e,i){var r=t[i];if(r===undefined){throw new Error("No value provided for variable "+e)}else if(typeof r==="function"){r=r(t)}return r}))}var v=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function y(e,t){for(var i=0;i<e.length;i++){if(e[i]===t){return i}}return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var _=0;function x(e){var t=+new Date,i=Math.max(0,16-(t-_));_=t+i;return window.setTimeout(e,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||x;var A=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function T(e,t,i){if(i&&k===x){e.call(t)}else{return k.call(window,n(e,t))}}function C(e){if(e){A.call(window,e)}}var E={__proto__:null,extend:i,create:r,bind:n,get lastId(){return o},stamp:s,throttle:a,wrapNum:l,falseFn:c,formatNum:p,trim:u,splitWords:d,setOptions:h,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:w,requestFn:k,cancelFn:A,requestAnimFrame:T,cancelAnimFrame:C};function S(){}S.extend=function(e){var t=function(){h(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var n=t.__super__=this.prototype;var o=r(n);o.constructor=t;t.prototype=o;for(var s in this){if(Object.prototype.hasOwnProperty.call(this,s)&&s!=="prototype"&&s!=="__super__"){t[s]=this[s]}}if(e.statics){i(t,e.statics)}if(e.includes){P(e.includes);i.apply(null,[o].concat(e.includes))}i(o,e);delete o.statics;delete o.includes;if(o.options){o.options=n.options?r(n.options):{};i(o.options,e.options)}o._initHooks=[];o.callInitHooks=function(){if(this._initHooksCalled){return}if(n.callInitHooks){n.callInitHooks.call(this)}this._initHooksCalled=true;for(var e=0,t=o._initHooks.length;e<t;e++){o._initHooks[e].call(this)}};return t};S.include=function(e){var t=this.prototype.options;i(this.prototype,e);if(e.options){this.prototype.options=t;this.mergeOptions(e.options)}return this};S.mergeOptions=function(e){i(this.prototype.options,e);return this};S.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1);var i=typeof e==="function"?e:function(){this[e].apply(this,t)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function P(e){if(typeof L==="undefined"||!L||!L.Mixin){return}e=v(e)?e:[e];for(var t=0;t<e.length;t++){if(e[t]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var M={on:function(e,t,i){if(typeof e==="object"){for(var r in e){this._on(r,e[r],t)}}else{e=d(e);for(var n=0,o=e.length;n<o;n++){this._on(e[n],t,i)}}return this},off:function(e,t,i){if(!arguments.length){delete this._events}else if(typeof e==="object"){for(var r in e){this._off(r,e[r],t)}}else{e=d(e);var n=arguments.length===1;for(var o=0,s=e.length;o<s;o++){if(n){this._off(e[o])}else{this._off(e[o],t,i)}}}return this},_on:function(e,t,i,r){if(typeof t!=="function"){console.warn("wrong listener type: "+typeof t);return}if(this._listens(e,t,i)!==false){return}if(i===this){i=undefined}var n={fn:t,ctx:i};if(r){n.once=true}this._events=this._events||{};this._events[e]=this._events[e]||[];this._events[e].push(n)},_off:function(e,t,i){var r,n,o;if(!this._events){return}r=this._events[e];if(!r){return}if(arguments.length===1){if(this._firingCount){for(n=0,o=r.length;n<o;n++){r[n].fn=c}}delete this._events[e];return}if(typeof t!=="function"){console.warn("wrong listener type: "+typeof t);return}var s=this._listens(e,t,i);if(s!==false){var a=r[s];if(this._firingCount){a.fn=c;this._events[e]=r=r.slice()}r.splice(s,1)}},fire:function(e,t,r){if(!this.listens(e,r)){return this}var n=i({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,a=o.length;s<a;s++){var l=o[s];var c=l.fn;if(l.once){this.off(e,c,l.ctx)}c.call(l.ctx||this,n)}this._firingCount--}}if(r){this._propagateEvent(n)}return this},listens:function(e,t,i,r){if(typeof e!=="string"){console.warn('"string" type argument expected')}var n=t;if(typeof t!=="function"){r=!!t;n=undefined;i=undefined}var o=this._events&&this._events[e];if(o&&o.length){if(this._listens(e,n,i)!==false){return true}}if(r){for(var s in this._eventParents){if(this._eventParents[s].listens(e,t,i,r)){return true}}}return false},_listens:function(e,t,i){if(!this._events){return false}var r=this._events[e]||[];if(!t){return!!r.length}if(i===this){i=undefined}for(var n=0,o=r.length;n<o;n++){if(r[n].fn===t&&r[n].ctx===i){return n}}return false},once:function(e,t,i){if(typeof e==="object"){for(var r in e){this._on(r,e[r],t,true)}}else{e=d(e);for(var n=0,o=e.length;n<o;n++){this._on(e[n],t,i,true)}}return this},addEventParent:function(e){this._eventParents=this._eventParents||{};this._eventParents[s(e)]=e;return this},removeEventParent:function(e){if(this._eventParents){delete this._eventParents[s(e)]}return this},_propagateEvent:function(e){for(var t in this._eventParents){this._eventParents[t].fire(e.type,i({layer:e.target,propagatedFrom:e.target},e),true)}}};M.addEventListener=M.on;M.removeEventListener=M.clearAllEventListeners=M.off;M.addOneTimeEventListener=M.once;M.fireEvent=M.fire;M.hasEventListeners=M.listens;var O=S.extend(M);function I(e,t,i){this.x=i?Math.round(e):e;this.y=i?Math.round(t):t}var z=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(e){return this.clone()._add(B(e))},_add:function(e){this.x+=e.x;this.y+=e.y;return this},subtract:function(e){return this.clone()._subtract(B(e))},_subtract:function(e){this.x-=e.x;this.y-=e.y;return this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){this.x/=e;this.y/=e;return this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){this.x*=e;this.y*=e;return this},scaleBy:function(e){return new I(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new I(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=z(this.x);this.y=z(this.y);return this},distanceTo:function(e){e=B(e);var t=e.x-this.x,i=e.y-this.y;return Math.sqrt(t*t+i*i)},equals:function(e){e=B(e);return e.x===this.x&&e.y===this.y},contains:function(e){e=B(e);return Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function B(e,t,i){if(e instanceof I){return e}if(v(e)){return new I(e[0],e[1])}if(e===undefined||e===null){return e}if(typeof e==="object"&&"x"in e&&"y"in e){return new I(e.x,e.y)}return new I(e,t,i)}function D(e,t){if(!e){return}var i=t?[e,t]:e;for(var r=0,n=i.length;r<n;r++){this.extend(i[r])}}D.prototype={extend:function(e){var t,i;if(!e){return this}if(e instanceof I||typeof e[0]==="number"||"x"in e){t=i=B(e)}else{e=F(e);t=e.min;i=e.max;if(!t||!i){return this}}if(!this.min&&!this.max){this.min=t.clone();this.max=i.clone()}else{this.min.x=Math.min(t.x,this.min.x);this.max.x=Math.max(i.x,this.max.x);this.min.y=Math.min(t.y,this.min.y);this.max.y=Math.max(i.y,this.max.y)}return this},getCenter:function(e){return B((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return B(this.min.x,this.max.y)},getTopRight:function(){return B(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,i;if(typeof e[0]==="number"||e instanceof I){e=B(e)}else{e=F(e)}if(e instanceof D){t=e.min;i=e.max}else{t=i=e}return t.x>=this.min.x&&i.x<=this.max.x&&t.y>=this.min.y&&i.y<=this.max.y},intersects:function(e){e=F(e);var t=this.min,i=this.max,r=e.min,n=e.max,o=n.x>=t.x&&r.x<=i.x,s=n.y>=t.y&&r.y<=i.y;return o&&s},overlaps:function(e){e=F(e);var t=this.min,i=this.max,r=e.min,n=e.max,o=n.x>t.x&&r.x<i.x,s=n.y>t.y&&r.y<i.y;return o&&s},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,i=this.max,r=Math.abs(t.x-i.x)*e,n=Math.abs(t.y-i.y)*e;return F(B(t.x-r,t.y-n),B(i.x+r,i.y+n))},equals:function(e){if(!e){return false}e=F(e);return this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())}};function F(e,t){if(!e||e instanceof D){return e}return new D(e,t)}function j(e,t){if(!e){return}var i=t?[e,t]:e;for(var r=0,n=i.length;r<n;r++){this.extend(i[r])}}j.prototype={extend:function(e){var t=this._southWest,i=this._northEast,r,n;if(e instanceof R){r=e;n=e}else if(e instanceof j){r=e._southWest;n=e._northEast;if(!r||!n){return this}}else{return e?this.extend(G(e)||N(e)):this}if(!t&&!i){this._southWest=new R(r.lat,r.lng);this._northEast=new R(n.lat,n.lng)}else{t.lat=Math.min(r.lat,t.lat);t.lng=Math.min(r.lng,t.lng);i.lat=Math.max(n.lat,i.lat);i.lng=Math.max(n.lng,i.lng)}return this},pad:function(e){var t=this._southWest,i=this._northEast,r=Math.abs(t.lat-i.lat)*e,n=Math.abs(t.lng-i.lng)*e;return new j(new R(t.lat-r,t.lng-n),new R(i.lat+r,i.lng+n))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){if(typeof e[0]==="number"||e instanceof R||"lat"in e){e=G(e)}else{e=N(e)}var t=this._southWest,i=this._northEast,r,n;if(e instanceof j){r=e.getSouthWest();n=e.getNorthEast()}else{r=n=e}return r.lat>=t.lat&&n.lat<=i.lat&&r.lng>=t.lng&&n.lng<=i.lng},intersects:function(e){e=N(e);var t=this._southWest,i=this._northEast,r=e.getSouthWest(),n=e.getNorthEast(),o=n.lat>=t.lat&&r.lat<=i.lat,s=n.lng>=t.lng&&r.lng<=i.lng;return o&&s},overlaps:function(e){e=N(e);var t=this._southWest,i=this._northEast,r=e.getSouthWest(),n=e.getNorthEast(),o=n.lat>t.lat&&r.lat<i.lat,s=n.lng>t.lng&&r.lng<i.lng;return o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){if(!e){return false}e=N(e);return this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t)},isValid:function(){return!!(this._southWest&&this._northEast)}};function N(e,t){if(e instanceof j){return e}return new j(e,t)}function R(e,t,i){if(isNaN(e)||isNaN(t)){throw new Error("Invalid LatLng object: ("+e+", "+t+")")}this.lat=+e;this.lng=+t;if(i!==undefined){this.alt=+i}}R.prototype={equals:function(e,t){if(!e){return false}e=G(e);var i=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return i<=(t===undefined?1e-9:t)},toString:function(e){return"LatLng("+p(this.lat,e)+", "+p(this.lng,e)+")"},distanceTo:function(e){return H.distance(this,G(e))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return N([this.lat-t,this.lng-i],[this.lat+t,this.lng+i])},clone:function(){return new R(this.lat,this.lng,this.alt)}};function G(e,t,i){if(e instanceof R){return e}if(v(e)&&typeof e[0]!=="object"){if(e.length===3){return new R(e[0],e[1],e[2])}if(e.length===2){return new R(e[0],e[1])}return null}if(e===undefined||e===null){return e}if(typeof e==="object"&&"lat"in e){return new R(e.lat,"lng"in e?e.lng:e.lon,e.alt)}if(t===undefined){return null}return new R(e,t,i)}var Z={latLngToPoint:function(e,t){var i=this.projection.project(e),r=this.scale(t);return this.transformation._transform(i,r)},pointToLatLng:function(e,t){var i=this.scale(t),r=this.transformation.untransform(e,i);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite){return null}var t=this.projection.bounds,i=this.scale(e),r=this.transformation.transform(t.min,i),n=this.transformation.transform(t.max,i);return new D(r,n)},infinite:false,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,true):e.lng,i=this.wrapLat?l(e.lat,this.wrapLat,true):e.lat,r=e.alt;return new R(i,t,r)},wrapLatLngBounds:function(e){var t=e.getCenter(),i=this.wrapLatLng(t),r=t.lat-i.lat,n=t.lng-i.lng;if(r===0&&n===0){return e}var o=e.getSouthWest(),s=e.getNorthEast(),a=new R(o.lat-r,o.lng-n),l=new R(s.lat-r,s.lng-n);return new j(a,l)}};var H=i({},Z,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var i=Math.PI/180,r=e.lat*i,n=t.lat*i,o=Math.sin((t.lat-e.lat)*i/2),s=Math.sin((t.lng-e.lng)*i/2),a=o*o+Math.cos(r)*Math.cos(n)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var Y=6378137;var V={R:Y,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,i=this.MAX_LATITUDE,r=Math.max(Math.min(i,e.lat),-i),n=Math.sin(r*t);return new I(this.R*e.lng*t,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(e){var t=180/Math.PI;return new R((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=Y*Math.PI;return new D([-e,-e],[e,e])}()};function U(e,t,i,r){if(v(e)){this._a=e[0];this._b=e[1];this._c=e[2];this._d=e[3];return}this._a=e;this._b=t;this._c=i;this._d=r}U.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){t=t||1;e.x=t*(this._a*e.x+this._b);e.y=t*(this._c*e.y+this._d);return e},untransform:function(e,t){t=t||1;return new I((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};function W(e,t,i,r){return new U(e,t,i,r)}var q=i({},H,{code:"EPSG:3857",projection:V,transformation:function(){var e=.5/(Math.PI*V.R);return W(e,.5,-e,.5)}()});var K=i({},q,{code:"EPSG:900913"});function Q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function X(e,t){var i="",r,n,o,s,a,l;for(r=0,o=e.length;r<o;r++){a=e[r];for(n=0,s=a.length;n<s;n++){l=a[n];i+=(n?"L":"M")+l.x+" "+l.y}i+=t?De.svg?"z":"x":""}return i||"M0 0"}var J=document.documentElement.style;var $="ActiveXObject"in window;var ee=$&&!document.addEventListener;var te="msLaunchUri"in navigator&&!("documentMode"in document);var ie=Be("webkit");var re=Be("android");var ne=Be("android 2")||Be("android 3");var oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var se=re&&Be("Google")&&oe<537&&!("AudioNode"in window);var ae=!!window.opera;var le=!te&&Be("chrome");var ce=Be("gecko")&&!ie&&!ae&&!$;var pe=!le&&Be("safari");var ue=Be("phantom");var de="OTransition"in J;var he=navigator.platform.indexOf("Win")===0;var fe=$&&"transition"in J;var me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ne;var ge="MozPerspective"in J;var ve=!window.L_DISABLE_3D&&(fe||me||ge)&&!de&&!ue;var ye=typeof orientation!=="undefined"||Be("mobile");var we=ye&&ie;var be=ye&&me;var _e=!window.PointerEvent&&window.MSPointerEvent;var xe=!!(window.PointerEvent||_e);var ke="ontouchstart"in window||!!window.TouchEvent;var Ae=!window.L_NO_TOUCH&&(ke||xe);var Te=ye&&ae;var Le=ye&&ce;var Ce=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Ee=function(){var e=false;try{var t=Object.defineProperty({},"passive",{get:function(){e=true}});window.addEventListener("testPassiveEventSupport",c,t);window.removeEventListener("testPassiveEventSupport",c,t)}catch(i){}return e}();var Se=function(){return!!document.createElement("canvas").getContext}();var Pe=!!(document.createElementNS&&Q("svg").createSVGRect);var Me=!!Pe&&function(){var e=document.createElement("div");e.innerHTML="<svg/>";return(e.firstChild&&e.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var Oe=!Pe&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;t.style.behavior="url(#default#VML)";return t&&typeof t.adj==="object"}catch(i){return false}}();var Ie=navigator.platform.indexOf("Mac")===0;var ze=navigator.platform.indexOf("Linux")===0;function Be(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var De={ie:$,ielt9:ee,edge:te,webkit:ie,android:re,android23:ne,androidStock:se,opera:ae,chrome:le,gecko:ce,safari:pe,phantom:ue,opera12:de,win:he,ie3d:fe,webkit3d:me,gecko3d:ge,any3d:ve,mobile:ye,mobileWebkit:we,mobileWebkit3d:be,msPointer:_e,pointer:xe,touch:Ae,touchNative:ke,mobileOpera:Te,mobileGecko:Le,retina:Ce,passiveEvents:Ee,canvas:Se,svg:Pe,vml:Oe,inlineSvg:Me,mac:Ie,linux:ze};var Fe=De.msPointer?"MSPointerDown":"pointerdown";var je=De.msPointer?"MSPointerMove":"pointermove";var Ne=De.msPointer?"MSPointerUp":"pointerup";var Re=De.msPointer?"MSPointerCancel":"pointercancel";var Ge={touchstart:Fe,touchmove:je,touchend:Ne,touchcancel:Re};var Ze={touchstart:Je,touchmove:Xe,touchend:Xe,touchcancel:Xe};var He={};var Ye=false;function Ve(e,t,i){if(t==="touchstart"){Qe()}if(!Ze[t]){console.warn("wrong event specified:",t);return c}i=Ze[t].bind(this,i);e.addEventListener(Ge[t],i,false);return i}function Ue(e,t,i){if(!Ge[t]){console.warn("wrong event specified:",t);return}e.removeEventListener(Ge[t],i,false)}function We(e){He[e.pointerId]=e}function qe(e){if(He[e.pointerId]){He[e.pointerId]=e}}function Ke(e){delete He[e.pointerId]}function Qe(){if(!Ye){document.addEventListener(Fe,We,true);document.addEventListener(je,qe,true);document.addEventListener(Ne,Ke,true);document.addEventListener(Re,Ke,true);Ye=true}}function Xe(e,t){if(t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")){return}t.touches=[];for(var i in He){t.touches.push(He[i])}t.changedTouches=[t];e(t)}function Je(e,t){if(t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH){Wt(t)}Xe(e,t)}function $e(e){var t={},i,r;for(r in e){i=e[r];t[r]=i&&i.bind?i.bind(e):i}e=t;t.type="dblclick";t.detail=2;t.isTrusted=false;t._simulated=true;return t}var et=200;function tt(e,t){e.addEventListener("dblclick",t);var i=0,r;function n(e){if(e.detail!==1){r=e.detail;return}if(e.pointerType==="mouse"||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents){return}var n=Kt(e);if(n.some((function(e){return e instanceof HTMLLabelElement&&e.attributes.for}))&&!n.some((function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){return}var o=Date.now();if(o-i<=et){r++;if(r===2){t($e(e))}}else{r=1}i=o}e.addEventListener("click",n);return{dblclick:t,simDblclick:n}}function it(e,t){e.removeEventListener("dblclick",t.dblclick);e.removeEventListener("click",t.simDblclick)}var rt=bt(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var nt=bt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var ot=nt==="webkitTransition"||nt==="OTransition"?nt+"End":"transitionend";function st(e){return typeof e==="string"?document.getElementById(e):e}function at(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!i||i==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);i=r?r[t]:null}return i==="auto"?null:i}function lt(e,t,i){var r=document.createElement(e);r.className=t||"";if(i){i.appendChild(r)}return r}function ct(e){var t=e.parentNode;if(t){t.removeChild(e)}}function pt(e){while(e.firstChild){e.removeChild(e.firstChild)}}function ut(e){var t=e.parentNode;if(t&&t.lastChild!==e){t.appendChild(e)}}function dt(e){var t=e.parentNode;if(t&&t.firstChild!==e){t.insertBefore(e,t.firstChild)}}function ht(e,t){if(e.classList!==undefined){return e.classList.contains(t)}var i=vt(e);return i.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}function ft(e,t){if(e.classList!==undefined){var i=d(t);for(var r=0,n=i.length;r<n;r++){e.classList.add(i[r])}}else if(!ht(e,t)){var o=vt(e);gt(e,(o?o+" ":"")+t)}}function mt(e,t){if(e.classList!==undefined){e.classList.remove(t)}else{gt(e,u((" "+vt(e)+" ").replace(" "+t+" "," ")))}}function gt(e,t){if(e.className.baseVal===undefined){e.className=t}else{e.className.baseVal=t}}function vt(e){if(e.correspondingElement){e=e.correspondingElement}return e.className.baseVal===undefined?e.className:e.className.baseVal}function yt(e,t){if("opacity"in e.style){e.style.opacity=t}else if("filter"in e.style){wt(e,t)}}function wt(e,t){var i=false,r="DXImageTransform.Microsoft.Alpha";try{i=e.filters.item(r)}catch(n){if(t===1){return}}t=Math.round(t*100);if(i){i.Enabled=t!==100;i.Opacity=t}else{e.style.filter+=" progid:"+r+"(opacity="+t+")"}}function bt(e){var t=document.documentElement.style;for(var i=0;i<e.length;i++){if(e[i]in t){return e[i]}}return false}function _t(e,t,i){var r=t||new I(0,0);e.style[rt]=(De.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(i?" scale("+i+")":"")}function xt(e,t){e._leaflet_pos=t;if(De.any3d){_t(e,t)}else{e.style.left=t.x+"px";e.style.top=t.y+"px"}}function kt(e){return e._leaflet_pos||new I(0,0)}var At;var Tt;var Lt;if("onselectstart"in document){At=function(){Ft(window,"selectstart",Wt)};Tt=function(){Nt(window,"selectstart",Wt)}}else{var Ct=bt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);At=function(){if(Ct){var e=document.documentElement.style;Lt=e[Ct];e[Ct]="none"}};Tt=function(){if(Ct){document.documentElement.style[Ct]=Lt;Lt=undefined}}}function Et(){Ft(window,"dragstart",Wt)}function St(){Nt(window,"dragstart",Wt)}var Pt,Mt;function Ot(e){while(e.tabIndex===-1){e=e.parentNode}if(!e.style){return}It();Pt=e;Mt=e.style.outlineStyle;e.style.outlineStyle="none";Ft(window,"keydown",It)}function It(){if(!Pt){return}Pt.style.outlineStyle=Mt;Pt=undefined;Mt=undefined;Nt(window,"keydown",It)}function zt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Bt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Dt={__proto__:null,TRANSFORM:rt,TRANSITION:nt,TRANSITION_END:ot,get:st,getStyle:at,create:lt,remove:ct,empty:pt,toFront:ut,toBack:dt,hasClass:ht,addClass:ft,removeClass:mt,setClass:gt,getClass:vt,setOpacity:yt,testProp:bt,setTransform:_t,setPosition:xt,getPosition:kt,get disableTextSelection(){return At},get enableTextSelection(){return Tt},disableImageDrag:Et,enableImageDrag:St,preventOutline:Ot,restoreOutline:It,getSizedParentNode:zt,getScale:Bt};function Ft(e,t,i,r){if(t&&typeof t==="object"){for(var n in t){Zt(e,n,t[n],i)}}else{t=d(t);for(var o=0,s=t.length;o<s;o++){Zt(e,t[o],i,r)}}return this}var jt="_leaflet_events";function Nt(e,t,i,r){if(arguments.length===1){Rt(e);delete e[jt]}else if(t&&typeof t==="object"){for(var n in t){Ht(e,n,t[n],i)}}else{t=d(t);if(arguments.length===2){Rt(e,(function(e){return y(t,e)!==-1}))}else{for(var o=0,s=t.length;o<s;o++){Ht(e,t[o],i,r)}}}return this}function Rt(e,t){for(var i in e[jt]){var r=i.split(/\d/)[0];if(!t||t(r)){Ht(e,r,null,null,i)}}}var Gt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Zt(e,t,i,r){var n=t+s(i)+(r?"_"+s(r):"");if(e[jt]&&e[jt][n]){return this}var o=function(t){return i.call(r||e,t||window.event)};var a=o;if(!De.touchNative&&De.pointer&&t.indexOf("touch")===0){o=Ve(e,t,o)}else if(De.touch&&t==="dblclick"){o=tt(e,o)}else if("addEventListener"in e){if(t==="touchstart"||t==="touchmove"||t==="wheel"||t==="mousewheel"){e.addEventListener(Gt[t]||t,o,De.passiveEvents?{passive:false}:false)}else if(t==="mouseenter"||t==="mouseleave"){o=function(t){t=t||window.event;if($t(e,t)){a(t)}};e.addEventListener(Gt[t],o,false)}else{e.addEventListener(t,a,false)}}else{e.attachEvent("on"+t,o)}e[jt]=e[jt]||{};e[jt][n]=o}function Ht(e,t,i,r,n){n=n||t+s(i)+(r?"_"+s(r):"");var o=e[jt]&&e[jt][n];if(!o){return this}if(!De.touchNative&&De.pointer&&t.indexOf("touch")===0){Ue(e,t,o)}else if(De.touch&&t==="dblclick"){it(e,o)}else if("removeEventListener"in e){e.removeEventListener(Gt[t]||t,o,false)}else{e.detachEvent("on"+t,o)}e[jt][n]=null}function Yt(e){if(e.stopPropagation){e.stopPropagation()}else if(e.originalEvent){e.originalEvent._stopped=true}else{e.cancelBubble=true}return this}function Vt(e){Zt(e,"wheel",Yt);return this}function Ut(e){Ft(e,"mousedown touchstart dblclick contextmenu",Yt);e["_leaflet_disable_click"]=true;return this}function Wt(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}return this}function qt(e){Wt(e);Yt(e);return this}function Kt(e){if(e.composedPath){return e.composedPath()}var t=[];var i=e.target;while(i){t.push(i);i=i.parentNode}return t}function Qt(e,t){if(!t){return new I(e.clientX,e.clientY)}var i=Bt(t),r=i.boundingClientRect;return new I((e.clientX-r.left)/i.x-t.clientLeft,(e.clientY-r.top)/i.y-t.clientTop)}var Xt=De.linux&&De.chrome?window.devicePixelRatio:De.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Jt(e){return De.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/Xt:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function $t(e,t){var i=t.relatedTarget;if(!i){return true}try{while(i&&i!==e){i=i.parentNode}}catch(r){return false}return i!==e}var ei={__proto__:null,on:Ft,off:Nt,stopPropagation:Yt,disableScrollPropagation:Vt,disableClickPropagation:Ut,preventDefault:Wt,stop:qt,getPropagationPath:Kt,getMousePosition:Qt,getWheelDelta:Jt,isExternalTarget:$t,addListener:Ft,removeListener:Nt};var ti=O.extend({run:function(e,t,i,r){this.stop();this._el=e;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(r||.5,.2);this._startPos=kt(e);this._offset=t.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=T(this._animate,this);this._step()},_step:function(e){var t=+new Date-this._startTime,i=this._duration*1e3;if(t<i){this._runFrame(this._easeOut(t/i),e)}else{this._runFrame(1);this._complete()}},_runFrame:function(e,t){var i=this._startPos.add(this._offset.multiplyBy(e));if(t){i._round()}xt(this._el,i);this.fire("step")},_complete:function(){C(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}});var ii=O.extend({options:{crs:q,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(e,t){t=h(this,t);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(e);this._initLayout();this._onResize=n(this._onResize,this);this._initEvents();if(t.maxBounds){this.setMaxBounds(t.maxBounds)}if(t.zoom!==undefined){this._zoom=this._limitZoom(t.zoom)}if(t.center&&t.zoom!==undefined){this.setView(G(t.center),t.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=nt&&De.any3d&&!De.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Ft(this._proxy,ot,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(e,t,r){t=t===undefined?this._zoom:this._limitZoom(t);e=this._limitCenter(G(e),t,this.options.maxBounds);r=r||{};this._stop();if(this._loaded&&!r.reset&&r!==true){if(r.animate!==undefined){r.zoom=i({animate:r.animate},r.zoom);r.pan=i({animate:r.animate,duration:r.duration},r.pan)}var n=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom):this._tryAnimatedPan(e,r.pan);if(n){clearTimeout(this._sizeTimer);return this}}this._resetView(e,t,r.pan&&r.pan.noMoveStart);return this},setZoom:function(e,t){if(!this._loaded){this._zoom=e;return this}return this.setView(this.getCenter(),e,{zoom:t})},zoomIn:function(e,t){e=e||(De.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){e=e||(De.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,i){var r=this.getZoomScale(t),n=this.getSize().divideBy(2),o=e instanceof I?e:this.latLngToContainerPoint(e),s=o.subtract(n).multiplyBy(1-1/r),a=this.containerPointToLatLng(n.add(s));return this.setView(a,t,{zoom:i})},_getBoundsCenterZoom:function(e,t){t=t||{};e=e.getBounds?e.getBounds():N(e);var i=B(t.paddingTopLeft||t.padding||[0,0]),r=B(t.paddingBottomRight||t.padding||[0,0]),n=this.getBoundsZoom(e,false,i.add(r));n=typeof t.maxZoom==="number"?Math.min(t.maxZoom,n):n;if(n===Infinity){return{center:e.getCenter(),zoom:n}}var o=r.subtract(i).divideBy(2),s=this.project(e.getSouthWest(),n),a=this.project(e.getNorthEast(),n),l=this.unproject(s.add(a).divideBy(2).add(o),n);return{center:l,zoom:n}},fitBounds:function(e,t){e=N(e);if(!e.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(e,t);return this.setView(i.center,i.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){e=B(e).round();t=t||{};if(!e.x&&!e.y){return this.fire("moveend")}if(t.animate!==true&&!this.getSize().contains(e)){this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ti;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!t.noMoveStart){this.fire("movestart")}if(t.animate!==false){ft(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,i,t.duration||.25,t.easeLinearity)}else{this._rawPanBy(e);this.fire("move").fire("moveend")}return this},flyTo:function(e,t,i){i=i||{};if(i.animate===false||!De.any3d){return this.setView(e,t,i)}this._stop();var r=this.project(this.getCenter()),n=this.project(e),o=this.getSize(),s=this._zoom;e=G(e);t=t===undefined?s:t;var a=Math.max(o.x,o.y),l=a*this.getZoomScale(s,t),c=n.distanceTo(r)||1,p=1.42,u=p*p;function d(e){var t=e?-1:1,i=e?l:a,r=l*l-a*a+t*u*u*c*c,n=2*i*u*c,o=r/n,s=Math.sqrt(o*o+1)-o;var p=s<1e-9?-18:Math.log(s);return p}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return h(e)/f(e)}var g=d(0);function v(e){return a*(f(g)/f(g+p*e))}function y(e){return a*(f(g)*m(g+p*e)-h(g))/u}function w(e){return 1-Math.pow(1-e,1.5)}var b=Date.now(),_=(d(1)-g)/p,x=i.duration?1e3*i.duration:1e3*_*.8;function k(){var i=(Date.now()-b)/x,o=w(i)*_;if(i<=1){this._flyToFrame=T(k,this);this._move(this.unproject(r.add(n.subtract(r).multiplyBy(y(o)/c)),s),this.getScaleZoom(a/v(o),s),{flyTo:true})}else{this._move(e,t)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);k.call(this);return this},flyToBounds:function(e,t){var i=this._getBoundsCenterZoom(e,t);return this.flyTo(i.center,i.zoom,t)},setMaxBounds:function(e){e=N(e);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!e.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=e;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(e){var t=this.options.minZoom;this.options.minZoom=e;if(this._loaded&&t!==e){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(e)}}return this},setMaxZoom:function(e){var t=this.options.maxZoom;this.options.maxZoom=e;if(this._loaded&&t!==e){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(e)}}return this},panInsideBounds:function(e,t){this._enforcingBounds=true;var i=this.getCenter(),r=this._limitCenter(i,this._zoom,N(e));if(!i.equals(r)){this.panTo(r,t)}this._enforcingBounds=false;return this},panInside:function(e,t){t=t||{};var i=B(t.paddingTopLeft||t.padding||[0,0]),r=B(t.paddingBottomRight||t.padding||[0,0]),n=this.project(this.getCenter()),o=this.project(e),s=this.getPixelBounds(),a=F([s.min.add(i),s.max.subtract(r)]),l=a.getSize();if(!a.contains(o)){this._enforcingBounds=true;var c=o.subtract(a.getCenter());var p=a.extend(o).getSize().subtract(l);n.x+=c.x<0?-p.x:p.x;n.y+=c.y<0?-p.y:p.y;this.panTo(this.unproject(n),t);this._enforcingBounds=false}return this},invalidateSize:function(e){if(!this._loaded){return this}e=i({animate:false,pan:true},e===true?{animate:true}:e);var t=this.getSize();this._sizeChanged=true;this._lastCenter=null;var r=this.getSize(),o=t.divideBy(2).round(),s=r.divideBy(2).round(),a=o.subtract(s);if(!a.x&&!a.y){return this}if(e.animate&&e.pan){this.panBy(a)}else{if(e.pan){this._rawPanBy(a)}this.fire("move");if(e.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:t,newSize:r})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(e){e=this._locateOptions=i({timeout:1e4,watch:false},e);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var t=n(this._handleGeolocationResponse,this),r=n(this._handleGeolocationError,this);if(e.watch){this._locationWatchId=navigator.geolocation.watchPosition(t,r,e)}else{navigator.geolocation.getCurrentPosition(t,r,e)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(e){if(!this._container._leaflet_id){return}var t=e.code,i=e.message||(t===1?"permission denied":t===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:t,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(e){if(!this._container._leaflet_id){return}var t=e.coords.latitude,i=e.coords.longitude,r=new R(t,i),n=r.toBounds(e.coords.accuracy*2),o=this._locateOptions;if(o.setView){var s=this.getBoundsZoom(n);this.setView(r,o.maxZoom?Math.min(s,o.maxZoom):s)}var a={latlng:r,bounds:n,timestamp:e.timestamp};for(var l in e.coords){if(typeof e.coords[l]==="number"){a[l]=e.coords[l]}}this.fire("locationfound",a)},addHandler:function(e,t){if(!t){return this}var i=this[e]=new t(this);this._handlers.push(i);if(this.options[e]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(this._containerId!==this._container._leaflet_id){throw new Error("Map container is being reused by another instance")}try{delete this._container._leaflet_id;delete this._containerId}catch(t){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ct(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){C(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var e;for(e in this._layers){this._layers[e].remove()}for(e in this._panes){ct(this._panes[e])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(e,t){var i="leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),r=lt("div",i,t||this._mapPane);if(e){this._panes[e]=r}return r},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter.clone()}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),t=this.unproject(e.getBottomLeft()),i=this.unproject(e.getTopRight());return new j(t,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,i){e=N(e);i=B(i||[0,0]);var r=this.getZoom()||0,n=this.getMinZoom(),o=this.getMaxZoom(),s=e.getNorthWest(),a=e.getSouthEast(),l=this.getSize().subtract(i),c=F(this.project(a,r),this.project(s,r)).getSize(),p=De.any3d?this.options.zoomSnap:1,u=l.x/c.x,d=l.y/c.y,h=t?Math.max(u,d):Math.min(u,d);r=this.getScaleZoom(h,r);if(p){r=Math.round(r/(p/100))*(p/100);r=t?Math.ceil(r/p)*p:Math.floor(r/p)*p}return Math.max(n,Math.min(o,r))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(e,t){var i=this._getTopLeftPoint(e,t);return new D(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===undefined?this.getZoom():e)},getPane:function(e){return typeof e==="string"?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var i=this.options.crs;t=t===undefined?this._zoom:t;return i.scale(e)/i.scale(t)},getScaleZoom:function(e,t){var i=this.options.crs;t=t===undefined?this._zoom:t;var r=i.zoom(e*i.scale(t));return isNaN(r)?Infinity:r},project:function(e,t){t=t===undefined?this._zoom:t;return this.options.crs.latLngToPoint(G(e),t)},unproject:function(e,t){t=t===undefined?this._zoom:t;return this.options.crs.pointToLatLng(B(e),t)},layerPointToLatLng:function(e){var t=B(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){var t=this.project(G(e))._round();return t._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(G(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(N(e))},distance:function(e,t){return this.options.crs.distance(G(e),G(t))},containerPointToLayerPoint:function(e){return B(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return B(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(B(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(e)))},mouseEventToContainerPoint:function(e){return Qt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=st(e);if(!t){throw new Error("Map container not found.")}else if(t._leaflet_id){throw new Error("Map container is already initialized.")}Ft(t,"scroll",this._onScroll,this);this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&De.any3d;ft(e,"leaflet-container"+(De.touch?" leaflet-touch":"")+(De.retina?" leaflet-retina":"")+(De.ielt9?" leaflet-oldie":"")+(De.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=at(e,"position");if(t!=="absolute"&&t!=="relative"&&t!=="fixed"&&t!=="sticky"){e.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var e=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);xt(this._mapPane,new I(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){ft(e.markerPane,"leaflet-zoom-hide");ft(e.shadowPane,"leaflet-zoom-hide")}},_resetView:function(e,t,i){xt(this._mapPane,new I(0,0));var r=!this._loaded;this._loaded=true;t=this._limitZoom(t);this.fire("viewprereset");var n=this._zoom!==t;this._moveStart(n,i)._move(e,t)._moveEnd(n);this.fire("viewreset");if(r){this.fire("load")}},_moveStart:function(e,t){if(e){this.fire("zoomstart")}if(!t){this.fire("movestart")}return this},_move:function(e,t,i,r){if(t===undefined){t=this._zoom}var n=this._zoom!==t;this._zoom=t;this._lastCenter=e;this._pixelOrigin=this._getNewPixelOrigin(e);if(!r){if(n||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(e){if(e){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){C(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(e){xt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!this._enforcingBounds){this.panInsideBounds(this.options.maxBounds)}},_checkIfLoaded:function(){if(!this._loaded){throw new Error("Set map center and zoom first.")}},_initEvents:function(e){this._targets={};this._targets[s(this._container)]=this;var t=e?Nt:Ft;t(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){t(window,"resize",this._onResize,this)}if(De.any3d&&this.options.transform3DLimit){(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){C(this._resizeRequest);this._resizeRequest=T((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();if(Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(e,t){var i=[],r,n=t==="mouseout"||t==="mouseover",o=e.target||e.srcElement,a=false;while(o){r=this._targets[s(o)];if(r&&(t==="click"||t==="preclick")&&this._draggableMoved(r)){a=true;break}if(r&&r.listens(t,true)){if(n&&!$t(o,e)){break}i.push(r);if(n){break}}if(o===this._container){break}o=o.parentNode}if(!i.length&&!a&&!n&&this.listens(t,true)){i=[this]}return i},_isClickDisabled:function(e){while(e&&e!==this._container){if(e["_leaflet_disable_click"]){return true}e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!this._loaded||t["_leaflet_disable_events"]||e.type==="click"&&this._isClickDisabled(t)){return}var i=e.type;if(i==="mousedown"){Ot(t)}this._fireDOMEvent(e,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,r){if(e.type==="click"){var n=i({},e);n.type="preclick";this._fireDOMEvent(n,n.type,r)}var o=this._findEventTargets(e,t);if(r){var s=[];for(var a=0;a<r.length;a++){if(r[a].listens(t,true)){s.push(r[a])}}o=s.concat(o)}if(!o.length){return}if(t==="contextmenu"){Wt(e)}var l=o[0];var c={originalEvent:e};if(e.type!=="keypress"&&e.type!=="keydown"&&e.type!=="keyup"){var p=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=p?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e);c.layerPoint=this.containerPointToLayerPoint(c.containerPoint);c.latlng=p?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<o.length;a++){o[a].fire(t,c,true);if(c.originalEvent._stopped||o[a].options.bubblingMouseEvents===false&&y(this._mouseEvents,t)!==-1){return}}},_draggableMoved:function(e){e=e.dragging&&e.dragging.enabled()?e:this;return e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++){this._handlers[e].disable()}},whenReady:function(e,t){if(this._loaded){e.call(t||this,{target:this})}else{this.on("load",e,t)}return this},_getMapPanePos:function(){return kt(this._mapPane)||new I(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){var i=e&&t!==undefined?this._getNewPixelOrigin(e,t):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var i=this.getSize()._divideBy(2);return this.project(e,t)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,i){var r=this._getNewPixelOrigin(i,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,i){var r=this._getNewPixelOrigin(i,t);return F([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,i){if(!i){return e}var r=this.project(e,t),n=this.getSize().divideBy(2),o=new D(r.subtract(n),r.add(n)),s=this._getBoundsOffset(o,i,t);if(Math.abs(s.x)<=1&&Math.abs(s.y)<=1){return e}return this.unproject(r.add(s),t)},_limitOffset:function(e,t){if(!t){return e}var i=this.getPixelBounds(),r=new D(i.min.add(e),i.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,i){var r=F(this.project(t.getNorthEast(),i),this.project(t.getSouthWest(),i)),n=r.min.subtract(e.min),o=r.max.subtract(e.max),s=this._rebound(n.x,-o.x),a=this._rebound(n.y,-o.y);return new I(s,a)},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),i=this.getMaxZoom(),r=De.any3d?this.options.zoomSnap:1;if(r){e=Math.round(e/r)*r}return Math.max(t,Math.min(i,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mt(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(e,t){var i=this._getCenterOffset(e)._trunc();if((t&&t.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,t);return true},_createAnimProxy:function(){var e=this._proxy=lt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e);this.on("zoomanim",(function(e){var t=rt,i=this._proxy.style[t];_t(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1));if(i===this._proxy.style[t]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ct(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();_t(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){if(this._animatingZoom&&e.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold){return false}var r=this.getZoomScale(t),n=this._getCenterOffset(e)._divideBy(1-1/r);if(i.animate!==true&&!this.getSize().contains(n)){return false}T((function(){this._moveStart(true,i.noMoveStart||false)._animateZoom(e,t,true)}),this);return true},_animateZoom:function(e,t,i,r){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=e;this._animateToZoom=t;ft(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:e,zoom:t,noUpdate:r});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(n(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){mt(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ri(e,t){return new ii(e,t)}var ni=S.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;if(t){t.removeControl(this)}this.options.position=e;if(t){t.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(e){this.remove();this._map=e;var t=this._container=this.onAdd(e),i=this.getPosition(),r=e._controlCorners[i];ft(t,"leaflet-control");if(i.indexOf("bottom")!==-1){r.insertBefore(t,r.firstChild)}else{r.appendChild(t)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ct(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(e){if(this._map&&e&&e.screenX>0&&e.screenY>0){this._map.getContainer().focus()}}});var oi=function(e){return new ni(e)};ii.include({addControl:function(e){e.addTo(this);return this},removeControl:function(e){e.remove();return this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",i=this._controlContainer=lt("div",t+"control-container",this._container);function r(r,n){var o=t+r+" "+t+n;e[r+n]=lt("div",o,i)}r("top","left");r("top","right");r("bottom","left");r("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners){ct(this._controlCorners[e])}ct(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var si=ni.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(e,t,i,r){return i<r?-1:r<i?1:0}},initialize:function(e,t,i){h(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var r in e){this._addLayer(e[r],r)}for(r in t){this._addLayer(t[r],r,true)}},onAdd:function(e){this._initLayout();this._update();this._map=e;e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(e){ni.prototype.addTo.call(this,e);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(e,t){this._addLayer(e,t);return this._map?this._update():this},addOverlay:function(e,t){this._addLayer(e,t,true);return this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));if(t){this._layers.splice(this._layers.indexOf(t),1)}return this._map?this._update():this},expand:function(){ft(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);if(e<this._section.clientHeight){ft(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=e+"px"}else{mt(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){mt(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=lt("div",e),i=this.options.collapsed;t.setAttribute("aria-haspopup",true);Ut(t);Vt(t);var r=this._section=lt("section",e+"-list");if(i){this._map.on("click",this.collapse,this);Ft(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var n=this._layersLink=lt("a",e+"-toggle",t);n.href="#";n.title="Layers";n.setAttribute("role","button");Ft(n,{keydown:function(e){if(e.keyCode===13){this._expandSafely()}},click:function(e){Wt(e);this._expandSafely()}},this);if(!i){this.expand()}this._baseLayersList=lt("div",e+"-base",r);this._separator=lt("div",e+"-separator",r);this._overlaysList=lt("div",e+"-overlays",r);t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++){if(this._layers[t]&&s(this._layers[t].layer)===e){return this._layers[t]}}},_addLayer:function(e,t,i){if(this._map){e.on("add remove",this._onLayerChange,this)}this._layers.push({layer:e,name:t,overlay:i});if(this.options.sortLayers){this._layers.sort(n((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this))}if(this.options.autoZIndex&&e.setZIndex){this._lastZIndex++;e.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}pt(this._baseLayersList);pt(this._overlaysList);this._layerControlInputs=[];var e,t,i,r,n=0;for(i=0;i<this._layers.length;i++){r=this._layers[i];this._addItem(r);t=t||r.overlay;e=e||!r.overlay;n+=!r.overlay?1:0}if(this.options.hideSingleBase){e=e&&n>1;this._baseLayersList.style.display=e?"":"none"}this._separator.style.display=t&&e?"":"none";return this},_onLayerChange:function(e){if(!this._handlingClick){this._update()}var t=this._getLayer(s(e.target));var i=t.overlay?e.type==="add"?"overlayadd":"overlayremove":e.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,t)}},_createRadioElement:function(e,t){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>";var r=document.createElement("div");r.innerHTML=i;return r.firstChild},_addItem:function(e){var t=document.createElement("label"),i=this._map.hasLayer(e.layer),r;if(e.overlay){r=document.createElement("input");r.type="checkbox";r.className="leaflet-control-layers-selector";r.defaultChecked=i}else{r=this._createRadioElement("leaflet-base-layers_"+s(this),i)}this._layerControlInputs.push(r);r.layerId=s(e.layer);Ft(r,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+e.name;var o=document.createElement("span");t.appendChild(o);o.appendChild(r);o.appendChild(n);var a=e.overlay?this._overlaysList:this._baseLayersList;a.appendChild(t);this._checkDisabledLayers();return t},_onInputClick:function(){if(this._preventClick){return}var e=this._layerControlInputs,t,i;var r=[],n=[];this._handlingClick=true;for(var o=e.length-1;o>=0;o--){t=e[o];i=this._getLayer(t.layerId).layer;if(t.checked){r.push(i)}else if(!t.checked){n.push(i)}}for(o=0;o<n.length;o++){if(this._map.hasLayer(n[o])){this._map.removeLayer(n[o])}}for(o=0;o<r.length;o++){if(!this._map.hasLayer(r[o])){this._map.addLayer(r[o])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var e=this._layerControlInputs,t,i,r=this._map.getZoom();for(var n=e.length-1;n>=0;n--){t=e[n];i=this._getLayer(t.layerId).layer;t.disabled=i.options.minZoom!==undefined&&r<i.options.minZoom||i.options.maxZoom!==undefined&&r>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var e=this._section;this._preventClick=true;Ft(e,"click",Wt);this.expand();var t=this;setTimeout((function(){Nt(e,"click",Wt);t._preventClick=false}))}});var ai=function(e,t,i){return new si(e,t,i)};var li=ni.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",i=lt("div",t+" leaflet-bar"),r=this.options;this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+"-out",i,this._zoomOut);this._updateDisabled();e.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(e){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))}},_zoomOut:function(e){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))}},_createButton:function(e,t,i,r,n){var o=lt("a",i,r);o.innerHTML=e;o.href="#";o.title=t;o.setAttribute("role","button");o.setAttribute("aria-label",t);Ut(o);Ft(o,"click",qt);Ft(o,"click",n,this);Ft(o,"click",this._refocusOnMap,this);return o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";mt(this._zoomInButton,t);mt(this._zoomOutButton,t);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||e._zoom===e.getMinZoom()){ft(this._zoomOutButton,t);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||e._zoom===e.getMaxZoom()){ft(this._zoomInButton,t);this._zoomInButton.setAttribute("aria-disabled","true")}}});ii.mergeOptions({zoomControl:true});ii.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var ci=function(e){return new li(e)};var pi=ni.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(e){var t="leaflet-control-scale",i=lt("div",t),r=this.options;this._addScales(r,t+"-line",i);e.on(r.updateWhenIdle?"moveend":"move",this._update,this);e.whenReady(this._update,this);return i},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,i){if(e.metric){this._mScale=lt("div",t,i)}if(e.imperial){this._iScale=lt("div",t,i)}},_update:function(){var e=this._map,t=e.getSize().y/2;var i=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(i)},_updateScales:function(e){if(this.options.metric&&e){this._updateMetric(e)}if(this.options.imperial&&e){this._updateImperial(e)}},_updateMetric:function(e){var t=this._getRoundNum(e),i=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,i,t/e)},_updateImperial:function(e){var t=e*3.2808399,i,r,n;if(t>5280){i=t/5280;r=this._getRoundNum(i);this._updateScale(this._iScale,r+" mi",r/i)}else{n=this._getRoundNum(t);this._updateScale(this._iScale,n+" ft",n/t)}},_updateScale:function(e,t,i){e.style.width=Math.round(this.options.maxWidth*i)+"px";e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),i=e/t;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return t*i}});var ui=function(e){return new pi(e)};var di='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var hi=ni.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(De.inlineSvg?di+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e);this._attributions={}},onAdd:function(e){e.attributionControl=this;this._container=lt("div","leaflet-control-attribution");Ut(this._container);for(var t in e._layers){if(e._layers[t].getAttribution){this.addAttribution(e._layers[t].getAttribution())}}this._update();e.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){if(e.layer.getAttribution){this.addAttribution(e.layer.getAttribution());e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this)}},setPrefix:function(e){this.options.prefix=e;this._update();return this},addAttribution:function(e){if(!e){return this}if(!this._attributions[e]){this._attributions[e]=0}this._attributions[e]++;this._update();return this},removeAttribution:function(e){if(!e){return this}if(this._attributions[e]){this._attributions[e]--;this._update()}return this},_update:function(){if(!this._map){return}var e=[];for(var t in this._attributions){if(this._attributions[t]){e.push(t)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(e.length){i.push(e.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});ii.mergeOptions({attributionControl:true});ii.addInitHook((function(){if(this.options.attributionControl){(new hi).addTo(this)}}));var fi=function(e){return new hi(e)};ni.Layers=si;ni.Zoom=li;ni.Scale=pi;ni.Attribution=hi;oi.layers=ai;oi.zoom=ci;oi.scale=ui;oi.attribution=fi;var mi=S.extend({initialize:function(e){this._map=e},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(e,t){e.addHandler(t,this);return this};var gi={Events:M};var vi=De.touch?"touchstart mousedown":"mousedown";var yi=O.extend({options:{clickTolerance:3},initialize:function(e,t,i,r){h(this,r);this._element=e;this._dragStartTarget=t||e;this._preventOutline=i},enable:function(){if(this._enabled){return}Ft(this._dragStartTarget,vi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(yi._dragging===this){this.finishDrag(true)}Nt(this._dragStartTarget,vi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(e){if(!this._enabled){return}this._moved=false;if(ht(this._element,"leaflet-zoom-anim")){return}if(e.touches&&e.touches.length!==1){if(yi._dragging===this){this.finishDrag()}return}if(yi._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches){return}yi._dragging=this;if(this._preventOutline){Ot(this._element)}Et();At();if(this._moving){return}this.fire("down");var t=e.touches?e.touches[0]:e,i=zt(this._element);this._startPoint=new I(t.clientX,t.clientY);this._startPos=kt(this._element);this._parentScale=Bt(i);var r=e.type==="mousedown";Ft(document,r?"mousemove":"touchmove",this._onMove,this);Ft(document,r?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(e){if(!this._enabled){return}if(e.touches&&e.touches.length>1){this._moved=true;return}var t=e.touches&&e.touches.length===1?e.touches[0]:e,i=new I(t.clientX,t.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;Wt(e);if(!this._moved){this.fire("dragstart");this._moved=true;ft(document.body,"leaflet-dragging");this._lastTarget=e.target||e.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}ft(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=e;this._updatePosition()},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e);xt(this._element,this._newPos);this.fire("drag",e)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(e){mt(document.body,"leaflet-dragging");if(this._lastTarget){mt(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Nt(document,"mousemove touchmove",this._onMove,this);Nt(document,"mouseup touchend touchcancel",this._onUp,this);St();Tt();var t=this._moved&&this._moving;this._moving=false;yi._dragging=false;if(t){this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}}});function wi(e,t,i){var r,n=[1,4,2,8],o,s,a,l,c,p,u,d;for(o=0,p=e.length;o<p;o++){e[o]._code=Oi(e[o],t)}for(a=0;a<4;a++){u=n[a];r=[];for(o=0,p=e.length,s=p-1;o<p;s=o++){l=e[o];c=e[s];if(!(l._code&u)){if(c._code&u){d=Mi(c,l,u,t,i);d._code=Oi(d,t);r.push(d)}r.push(l)}else if(!(c._code&u)){d=Mi(c,l,u,t,i);d._code=Oi(d,t);r.push(d)}}e=r}return e}function bi(e,t){var i,r,n,o,s,a,l,c,p;if(!e||e.length===0){throw new Error("latlngs not passed")}if(!Bi(e)){console.warn("latlngs are not flat! Only the first ring will be used");e=e[0]}var u=G([0,0]);var d=N(e);var h=d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest());if(h<1700){u=_i(e)}var f=e.length;var m=[];for(i=0;i<f;i++){var g=G(e[i]);m.push(t.project(G([g.lat-u.lat,g.lng-u.lng])))}a=l=c=0;for(i=0,r=f-1;i<f;r=i++){n=m[i];o=m[r];s=n.y*o.x-o.y*n.x;l+=(n.x+o.x)*s;c+=(n.y+o.y)*s;a+=s*3}if(a===0){p=m[0]}else{p=[l/a,c/a]}var v=t.unproject(B(p));return G([v.lat+u.lat,v.lng+u.lng])}function _i(e){var t=0;var i=0;var r=0;for(var n=0;n<e.length;n++){var o=G(e[n]);t+=o.lat;i+=o.lng;r++}return G([t/r,i/r])}var xi={__proto__:null,clipPolygon:wi,polygonCenter:bi,centroid:_i};function ki(e,t){if(!t||!e.length){return e.slice()}var i=t*t;e=Ei(e,i);e=Li(e,i);return e}function Ai(e,t,i){return Math.sqrt(zi(e,t,i,true))}function Ti(e,t,i){return zi(e,t,i)}function Li(e,t){var i=e.length,r=typeof Uint8Array!==undefined+""?Uint8Array:Array,n=new r(i);n[0]=n[i-1]=1;Ci(e,n,t,0,i-1);var o,s=[];for(o=0;o<i;o++){if(n[o]){s.push(e[o])}}return s}function Ci(e,t,i,r,n){var o=0,s,a,l;for(a=r+1;a<=n-1;a++){l=zi(e[a],e[r],e[n],true);if(l>o){s=a;o=l}}if(o>i){t[s]=1;Ci(e,t,i,r,s);Ci(e,t,i,s,n)}}function Ei(e,t){var i=[e[0]];for(var r=1,n=0,o=e.length;r<o;r++){if(Ii(e[r],e[n])>t){i.push(e[r]);n=r}}if(n<o-1){i.push(e[o-1])}return i}var Si;function Pi(e,t,i,r,n){var o=r?Si:Oi(e,i),s=Oi(t,i),a,l,c;Si=s;while(true){if(!(o|s)){return[e,t]}if(o&s){return false}a=o||s;l=Mi(e,t,a,i,n);c=Oi(l,i);if(a===o){e=l;o=c}else{t=l;s=c}}}function Mi(e,t,i,r,n){var o=t.x-e.x,s=t.y-e.y,a=r.min,l=r.max,c,p;if(i&8){c=e.x+o*(l.y-e.y)/s;p=l.y}else if(i&4){c=e.x+o*(a.y-e.y)/s;p=a.y}else if(i&2){c=l.x;p=e.y+s*(l.x-e.x)/o}else if(i&1){c=a.x;p=e.y+s*(a.x-e.x)/o}return new I(c,p,n)}function Oi(e,t){var i=0;if(e.x<t.min.x){i|=1}else if(e.x>t.max.x){i|=2}if(e.y<t.min.y){i|=4}else if(e.y>t.max.y){i|=8}return i}function Ii(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}function zi(e,t,i,r){var n=t.x,o=t.y,s=i.x-n,a=i.y-o,l=s*s+a*a,c;if(l>0){c=((e.x-n)*s+(e.y-o)*a)/l;if(c>1){n=i.x;o=i.y}else if(c>0){n+=s*c;o+=a*c}}s=e.x-n;a=e.y-o;return r?s*s+a*a:new I(n,o)}function Bi(e){return!v(e[0])||typeof e[0][0]!=="object"&&typeof e[0][0]!=="undefined"}function Di(e){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Bi(e)}function Fi(e,t){var i,r,n,o,s,a,l,c;if(!e||e.length===0){throw new Error("latlngs not passed")}if(!Bi(e)){console.warn("latlngs are not flat! Only the first ring will be used");e=e[0]}var p=G([0,0]);var u=N(e);var d=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(d<1700){p=_i(e)}var h=e.length;var f=[];for(i=0;i<h;i++){var m=G(e[i]);f.push(t.project(G([m.lat-p.lat,m.lng-p.lng])))}for(i=0,r=0;i<h-1;i++){r+=f[i].distanceTo(f[i+1])/2}if(r===0){c=f[0]}else{for(i=0,o=0;i<h-1;i++){s=f[i];a=f[i+1];n=s.distanceTo(a);o+=n;if(o>r){l=(o-r)/n;c=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}}}var g=t.unproject(B(c));return G([g.lat+p.lat,g.lng+p.lng])}var ji={__proto__:null,simplify:ki,pointToSegmentDistance:Ai,closestPointOnSegment:Ti,clipSegment:Pi,_getEdgeIntersection:Mi,_getBitCode:Oi,_sqClosestPointOnSegment:zi,isFlat:Bi,_flat:Di,polylineCenter:Fi};var Ni={project:function(e){return new I(e.lng,e.lat)},unproject:function(e){return new R(e.y,e.x)},bounds:new D([-180,-90],[180,90])};var Ri={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,i=this.R,r=e.lat*t,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=o*Math.sin(r);var a=Math.tan(Math.PI/4-r/2)/Math.pow((1-s)/(1+s),o/2);r=-i*Math.log(Math.max(a,1e-10));return new I(e.lng*t*i,r)},unproject:function(e){var t=180/Math.PI,i=this.R,r=this.R_MINOR/i,n=Math.sqrt(1-r*r),o=Math.exp(-e.y/i),s=Math.PI/2-2*Math.atan(o);for(var a=0,l=.1,c;a<15&&Math.abs(l)>1e-7;a++){c=n*Math.sin(s);c=Math.pow((1-c)/(1+c),n/2);l=Math.PI/2-2*Math.atan(o*c)-s;s+=l}return new R(s*t,e.x*t/i)}};var Gi={__proto__:null,LonLat:Ni,Mercator:Ri,SphericalMercator:V};var Zi=i({},H,{code:"EPSG:3395",projection:Ri,transformation:function(){var e=.5/(Math.PI*Ri.R);return W(e,.5,-e,.5)}()});var Hi=i({},H,{code:"EPSG:4326",projection:Ni,transformation:W(1/180,1,-1/180,.5)});var Yi=i({},Z,{projection:Ni,transformation:W(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var i=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(i*i+r*r)},infinite:true});Z.Earth=H;Z.EPSG3395=Zi;Z.EPSG3857=q;Z.EPSG900913=K;Z.EPSG4326=Hi;Z.Simple=Yi;var Vi=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(e){e.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){if(e){e.removeLayer(this)}return this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){this._map._targets[s(e)]=this;return this},removeInteractiveTarget:function(e){delete this._map._targets[s(e)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(!t.hasLayer(this)){return}this._map=t;this._zoomAnimated=t._zoomAnimated;if(this.getEvents){var i=this.getEvents();t.on(i,this);this.once("remove",(function(){t.off(i,this)}),this)}this.onAdd(t);this.fire("add");t.fire("layeradd",{layer:this})}});ii.include({addLayer:function(e){if(!e._layerAdd){throw new Error("The provided object is not a Layer.")}var t=s(e);if(this._layers[t]){return this}this._layers[t]=e;e._mapToAdd=this;if(e.beforeAdd){e.beforeAdd(this)}this.whenReady(e._layerAdd,e);return this},removeLayer:function(e){var t=s(e);if(!this._layers[t]){return this}if(this._loaded){e.onRemove(this)}delete this._layers[t];if(this._loaded){this.fire("layerremove",{layer:e});e.fire("remove")}e._map=e._mapToAdd=null;return this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var i in this._layers){e.call(t,this._layers[i])}return this},_addLayers:function(e){e=e?v(e)?e:[e]:[];for(var t=0,i=e.length;t<i;t++){this.addLayer(e[t])}},_addZoomLimit:function(e){if(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom)){this._zoomBoundLayers[s(e)]=e;this._updateZoomLevels()}},_removeZoomLimit:function(e){var t=s(e);if(this._zoomBoundLayers[t]){delete this._zoomBoundLayers[t];this._updateZoomLevels()}},_updateZoomLevels:function(){var e=Infinity,t=-Infinity,i=this._getZoomSpan();for(var r in this._zoomBoundLayers){var n=this._zoomBoundLayers[r].options;e=n.minZoom===undefined?e:Math.min(e,n.minZoom);t=n.maxZoom===undefined?t:Math.max(t,n.maxZoom)}this._layersMaxZoom=t===-Infinity?undefined:t;this._layersMinZoom=e===Infinity?undefined:e;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var Ui=Vi.extend({initialize:function(e,t){h(this,t);this._layers={};var i,r;if(e){for(i=0,r=e.length;i<r;i++){this.addLayer(e[i])}}},addLayer:function(e){var t=this.getLayerId(e);this._layers[t]=e;if(this._map){this._map.addLayer(e)}return this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);if(this._map&&this._layers[t]){this._map.removeLayer(this._layers[t])}delete this._layers[t];return this},hasLayer:function(e){var t=typeof e==="number"?e:this.getLayerId(e);return t in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t=Array.prototype.slice.call(arguments,1),i,r;for(i in this._layers){r=this._layers[i];if(r[e]){r[e].apply(r,t)}}return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var i in this._layers){e.call(t,this._layers[i])}return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];this.eachLayer(e.push,e);return e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s(e)}});var Wi=function(e,t){return new Ui(e,t)};var qi=Ui.extend({addLayer:function(e){if(this.hasLayer(e)){return this}e.addEventParent(this);Ui.prototype.addLayer.call(this,e);return this.fire("layeradd",{layer:e})},removeLayer:function(e){if(!this.hasLayer(e)){return this}if(e in this._layers){e=this._layers[e]}e.removeEventParent(this);Ui.prototype.removeLayer.call(this,e);return this.fire("layerremove",{layer:e})},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new j;for(var t in this._layers){var i=this._layers[t];e.extend(i.getBounds?i.getBounds():i.getLatLng())}return e}});var Ki=function(e,t){return new qi(e,t)};var Qi=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var i=this._getIconUrl(e);if(!i){if(e==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var r=this._createImg(i,t&&t.tagName==="IMG"?t:null);this._setIconStyles(r,e);if(this.options.crossOrigin||this.options.crossOrigin===""){r.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return r},_setIconStyles:function(e,t){var i=this.options;var r=i[t+"Size"];if(typeof r==="number"){r=[r,r]}var n=B(r),o=B(t==="shadow"&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,true));e.className="leaflet-marker-"+t+" "+(i.className||"");if(o){e.style.marginLeft=-o.x+"px";e.style.marginTop=-o.y+"px"}if(n){e.style.width=n.x+"px";e.style.height=n.y+"px"}},_createImg:function(e,t){t=t||document.createElement("img");t.src=e;return t},_getIconUrl:function(e){return De.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Xi(e){return new Qi(e)}var Ji=Qi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){if(typeof Ji.imagePath!=="string"){Ji.imagePath=this._detectIconPath()}return(this.options.imagePath||Ji.imagePath)+Qi.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,i){var r=t.exec(e);return r&&r[i]};e=t(e,/^url\((['"])?(.+)\1\)$/,2);return e&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=lt("div","leaflet-default-icon-path",document.body);var t=at(e,"background-image")||at(e,"backgroundImage");document.body.removeChild(e);t=this._stripUrl(t);if(t){return t}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var $i=mi.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;if(!this._draggable){this._draggable=new yi(e,e,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();ft(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){mt(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,i=t._map,r=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,o=kt(t._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();var l=F(s.min._subtract(a).add(n),s.max._subtract(a).subtract(n));if(!l.contains(o)){var c=B((Math.max(l.max.x,o.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(r);i.panBy(c,{animate:false});this._draggable._newPos._add(c);this._draggable._startPos._add(c);xt(t._icon,this._draggable._newPos);this._onDrag(e);this._panRequest=T(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){if(this._marker.options.autoPan){C(this._panRequest);this._panRequest=T(this._adjustPan.bind(this,e))}},_onDrag:function(e){var t=this._marker,i=t._shadow,r=kt(t._icon),n=t._map.layerPointToLatLng(r);if(i){xt(i,r)}t._latlng=n;e.latlng=n;e.oldLatLng=this._oldLatLng;t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){C(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",e)}});var er=Vi.extend({options:{icon:new Ji,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t);this._latlng=G(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation;if(this._zoomAnimated){e.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(e){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){e.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;this._latlng=G(e);this.update();return this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){this.options.zIndexOffset=e;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){this.options.icon=e;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=e.icon.createIcon(this._icon),r=false;if(i!==this._icon){if(this._icon){this._removeIcon()}r=true;if(e.title){i.title=e.title}if(i.tagName==="IMG"){i.alt=e.alt||""}}ft(i,t);if(e.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(e.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ft(i,"focus",this._panOnFocus,this)}var n=e.icon.createShadow(this._shadow),o=false;if(n!==this._shadow){this._removeShadow();o=true}if(n){ft(n,t);n.alt=""}this._shadow=n;if(e.opacity<1){this._updateOpacity()}if(r){this.getPane().appendChild(this._icon)}this._initInteraction();if(n&&o){this.getPane(e.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Nt(this._icon,"focus",this._panOnFocus,this)}ct(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ct(this._shadow)}this._shadow=null},_setPos:function(e){if(this._icon){xt(this._icon,e)}if(this._shadow){xt(this._shadow,e)}this._zIndex=e.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(e){if(this._icon){this._icon.style.zIndex=this._zIndex+e}},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(!this.options.interactive){return}ft(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if($i){var e=this.options.draggable;if(this.dragging){e=this.dragging.enabled();this.dragging.disable()}this.dragging=new $i(this);if(e){this.dragging.enable()}}},setOpacity:function(e){this.options.opacity=e;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var e=this.options.opacity;if(this._icon){yt(this._icon,e)}if(this._shadow){yt(this._shadow,e)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(!e){return}var t=this.options.icon.options;var i=t.iconSize?B(t.iconSize):B(0,0);var r=t.iconAnchor?B(t.iconAnchor):B(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:i.subtract(r)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function tr(e,t){return new er(e,t)}var ir=Vi.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this);this._reset();this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(e){h(this,e);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return this},getElement:function(){return this._path},_reset:function(){this._project();this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var rr=ir.extend({options:{fill:true,radius:10},initialize:function(e,t){h(this,t);this._latlng=G(e);this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;this._latlng=G(e);this.redraw();return this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){this.options.radius=this._radius=e;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;ir.prototype.setStyle.call(this,e);this.setRadius(t);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,i=this._clickTolerance(),r=[e+i,t+i];this._pxBounds=new D(this._point.subtract(r),this._point.add(r))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nr(e,t){return new rr(e,t)}var or=rr.extend({initialize:function(e,t,r){if(typeof t==="number"){t=i({},r,{radius:t})}h(this,t);this._latlng=G(e);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(e){this._mRadius=e;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new j(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:ir.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,i=this._map,r=i.options.crs;if(r.distance===H.distance){var n=Math.PI/180,o=this._mRadius/H.R/n,s=i.project([t+o,e]),a=i.project([t-o,e]),l=s.add(a).divideBy(2),c=i.unproject(l).lat,p=Math.acos((Math.cos(o*n)-Math.sin(t*n)*Math.sin(c*n))/(Math.cos(t*n)*Math.cos(c*n)))/n;if(isNaN(p)||p===0){p=o/Math.cos(Math.PI/180*t)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(p)?0:l.x-i.project([c,e-p]).x;this._radiusY=l.y-s.y}else{var u=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function sr(e,t,i){return new or(e,t,i)}var ar=ir.extend({options:{smoothFactor:1,noClip:false},initialize:function(e,t){h(this,t);this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){this._setLatLngs(e);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){var t=Infinity,i=null,r=zi,n,o;for(var s=0,a=this._parts.length;s<a;s++){var l=this._parts[s];for(var c=1,p=l.length;c<p;c++){n=l[c-1];o=l[c];var u=r(e,n,o,true);if(u<t){t=u;i=r(e,n,o)}}}if(i){i.distance=Math.sqrt(t)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Fi(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){t=t||this._defaultShape();e=G(e);t.push(e);this._bounds.extend(e);return this.redraw()},_setLatLngs:function(e){this._bounds=new j;this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Bi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){var t=[],i=Bi(e);for(var r=0,n=e.length;r<n;r++){if(i){t[r]=G(e[r]);this._bounds.extend(t[r])}else{t[r]=this._convertLatLngs(e[r])}}return t},_project:function(){var e=new D;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,e);if(this._bounds.isValid()&&e.isValid()){this._rawPxBounds=e;this._updateBounds()}},_updateBounds:function(){var e=this._clickTolerance(),t=new I(e,e);if(!this._rawPxBounds){return}this._pxBounds=new D([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)])},_projectLatlngs:function(e,t,i){var r=e[0]instanceof R,n=e.length,o,s;if(r){s=[];for(o=0;o<n;o++){s[o]=this._map.latLngToLayerPoint(e[o]);i.extend(s[o])}t.push(s)}else{for(o=0;o<n;o++){this._projectLatlngs(e[o],t,i)}}},_clipPoints:function(){var e=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(e)){return}if(this.options.noClip){this._parts=this._rings;return}var t=this._parts,i,r,n,o,s,a,l;for(i=0,n=0,o=this._rings.length;i<o;i++){l=this._rings[i];for(r=0,s=l.length;r<s-1;r++){a=Pi(l[r],l[r+1],e,r,true);if(!a){continue}t[n]=t[n]||[];t[n].push(a[0]);if(a[1]!==l[r+1]||r===s-2){t[n].push(a[1]);n++}}}},_simplifyPoints:function(){var e=this._parts,t=this.options.smoothFactor;for(var i=0,r=e.length;i<r;i++){e[i]=ki(e[i],t)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var i,r,n,o,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e)){return false}for(i=0,o=this._parts.length;i<o;i++){a=this._parts[i];for(r=0,s=a.length,n=s-1;r<s;n=r++){if(!t&&r===0){continue}if(Ai(e,a[n],a[r])<=l){return true}}}return false}});function lr(e,t){return new ar(e,t)}ar._flat=Di;var cr=ar.extend({options:{fill:true},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return bi(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=ar.prototype._convertLatLngs.call(this,e),i=t.length;if(i>=2&&t[0]instanceof R&&t[0].equals(t[i-1])){t.pop()}return t},_setLatLngs:function(e){ar.prototype._setLatLngs.call(this,e);if(Bi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Bi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,i=new I(t,t);e=new D(e.min.subtract(i),e.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(e)){return}if(this.options.noClip){this._parts=this._rings;return}for(var r=0,n=this._rings.length,o;r<n;r++){o=wi(this._rings[r],e,true);if(o.length){this._parts.push(o)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(e){var t=false,i,r,n,o,s,a,l,c;if(!this._pxBounds||!this._pxBounds.contains(e)){return false}for(o=0,l=this._parts.length;o<l;o++){i=this._parts[o];for(s=0,c=i.length,a=c-1;s<c;a=s++){r=i[s];n=i[a];if(r.y>e.y!==n.y>e.y&&e.x<(n.x-r.x)*(e.y-r.y)/(n.y-r.y)+r.x){t=!t}}}return t||ar.prototype._containsPoint.call(this,e,true)}});function pr(e,t){return new cr(e,t)}var ur=qi.extend({initialize:function(e,t){h(this,t);this._layers={};if(e){this.addData(e)}},addData:function(e){var t=v(e)?e:e.features,i,r,n;if(t){for(i=0,r=t.length;i<r;i++){n=t[i];if(n.geometries||n.geometry||n.features||n.coordinates){this.addData(n)}}return this}var o=this.options;if(o.filter&&!o.filter(e)){return this}var s=dr(e,o);if(!s){return this}s.feature=wr(e);s.defaultOptions=s.options;this.resetStyle(s);if(o.onEachFeature){o.onEachFeature(e,s)}return this.addLayer(s)},resetStyle:function(e){if(e===undefined){return this.eachLayer(this.resetStyle,this)}e.options=i({},e.defaultOptions);this._setLayerStyle(e,this.options.style);return this},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){if(e.setStyle){if(typeof t==="function"){t=t(e.feature)}e.setStyle(t)}}});function dr(e,t){var i=e.type==="Feature"?e.geometry:e,r=i?i.coordinates:null,n=[],o=t&&t.pointToLayer,s=t&&t.coordsToLatLng||fr,a,l,c,p;if(!r&&!i){return null}switch(i.type){case"Point":a=s(r);return hr(o,e,a,t);case"MultiPoint":for(c=0,p=r.length;c<p;c++){a=s(r[c]);n.push(hr(o,e,a,t))}return new qi(n);case"LineString":case"MultiLineString":l=mr(r,i.type==="LineString"?0:1,s);return new ar(l,t);case"Polygon":case"MultiPolygon":l=mr(r,i.type==="Polygon"?1:2,s);return new cr(l,t);case"GeometryCollection":for(c=0,p=i.geometries.length;c<p;c++){var u=dr({geometry:i.geometries[c],type:"Feature",properties:e.properties},t);if(u){n.push(u)}}return new qi(n);case"FeatureCollection":for(c=0,p=i.features.length;c<p;c++){var d=dr(i.features[c],t);if(d){n.push(d)}}return new qi(n);default:throw new Error("Invalid GeoJSON object.")}}function hr(e,t,i,r){return e?e(t,i):new er(i,r&&r.markersInheritOptions&&r)}function fr(e){return new R(e[1],e[0],e[2])}function mr(e,t,i){var r=[];for(var n=0,o=e.length,s;n<o;n++){s=t?mr(e[n],t-1,i):(i||fr)(e[n]);r.push(s)}return r}function gr(e,t){e=G(e);return e.alt!==undefined?[p(e.lng,t),p(e.lat,t),p(e.alt,t)]:[p(e.lng,t),p(e.lat,t)]}function vr(e,t,i,r){var n=[];for(var o=0,s=e.length;o<s;o++){n.push(t?vr(e[o],Bi(e[o])?0:t-1,i,r):gr(e[o],r))}if(!t&&i&&n.length>0){n.push(n[0].slice())}return n}function yr(e,t){return e.feature?i({},e.feature,{geometry:t}):wr(t)}function wr(e){if(e.type==="Feature"||e.type==="FeatureCollection"){return e}return{type:"Feature",properties:{},geometry:e}}var br={toGeoJSON:function(e){return yr(this,{type:"Point",coordinates:gr(this.getLatLng(),e)})}};er.include(br);or.include(br);rr.include(br);ar.include({toGeoJSON:function(e){var t=!Bi(this._latlngs);var i=vr(this._latlngs,t?1:0,false,e);return yr(this,{type:(t?"Multi":"")+"LineString",coordinates:i})}});cr.include({toGeoJSON:function(e){var t=!Bi(this._latlngs),i=t&&!Bi(this._latlngs[0]);var r=vr(this._latlngs,i?2:t?1:0,true,e);if(!t){r=[r]}return yr(this,{type:(i?"Multi":"")+"Polygon",coordinates:r})}});Ui.include({toMultiPoint:function(e){var t=[];this.eachLayer((function(i){t.push(i.toGeoJSON(e).geometry.coordinates)}));return yr(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t==="MultiPoint"){return this.toMultiPoint(e)}var i=t==="GeometryCollection",r=[];this.eachLayer((function(t){if(t.toGeoJSON){var n=t.toGeoJSON(e);if(i){r.push(n.geometry)}else{var o=wr(n);if(o.type==="FeatureCollection"){r.push.apply(r,o.features)}else{r.push(o)}}}}));if(i){return yr(this,{geometries:r,type:"GeometryCollection"})}return{type:"FeatureCollection",features:r}}});function _r(e,t){return new ur(e,t)}var xr=_r;var kr=Vi.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,i){this._url=e;this._bounds=N(t);h(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){ft(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ct(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(e){this.options.opacity=e;if(this._image){this._updateOpacity()}return this},setStyle:function(e){if(e.opacity){this.setOpacity(e.opacity)}return this},bringToFront:function(){if(this._map){ut(this._image)}return this},bringToBack:function(){if(this._map){dt(this._image)}return this},setUrl:function(e){this._url=e;if(this._image){this._image.src=e}return this},setBounds:function(e){this._bounds=N(e);if(this._map){this._reset()}return this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){e.zoomanim=this._animateZoom}return e},setZIndex:function(e){this.options.zIndex=e;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName==="IMG";var t=this._image=e?this._url:lt("img");ft(t,"leaflet-image-layer");if(this._zoomAnimated){ft(t,"leaflet-zoom-animated")}if(this.options.className){ft(t,this.options.className)}t.onselectstart=c;t.onmousemove=c;t.onload=n(this.fire,this,"load");t.onerror=n(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){t.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(e){this._url=t.src;return}t.src=this._url;t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;_t(this._image,i,t)},_reset:function(){var e=this._image,t=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=t.getSize();xt(e,t.min);e.style.width=i.x+"px";e.style.height=i.y+"px"},_updateOpacity:function(){yt(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;if(e&&this._url!==e){this._url=e;this._image.src=e}},getCenter:function(){return this._bounds.getCenter()}});var Ar=function(e,t,i){return new kr(e,t,i)};var Tr=kr.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var e=this._url.tagName==="VIDEO";var t=this._image=e?this._url:lt("video");ft(t,"leaflet-image-layer");if(this._zoomAnimated){ft(t,"leaflet-zoom-animated")}if(this.options.className){ft(t,this.options.className)}t.onselectstart=c;t.onmousemove=c;t.onloadeddata=n(this.fire,this,"load");if(e){var i=t.getElementsByTagName("source");var r=[];for(var o=0;o<i.length;o++){r.push(i[o].src)}this._url=i.length>0?r:[t.src];return}if(!v(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")){t.style["objectFit"]="fill"}t.autoplay=!!this.options.autoplay;t.loop=!!this.options.loop;t.muted=!!this.options.muted;t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=lt("source");a.src=this._url[s];t.appendChild(a)}}});function Lr(e,t,i){return new Tr(e,t,i)}var Cr=kr.extend({_initImage:function(){var e=this._image=this._url;ft(e,"leaflet-image-layer");if(this._zoomAnimated){ft(e,"leaflet-zoom-animated")}if(this.options.className){ft(e,this.options.className)}e.onselectstart=c;e.onmousemove=c}});function Er(e,t,i){return new Cr(e,t,i)}var Sr=Vi.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(e,t){if(e&&(e instanceof R||v(e))){this._latlng=G(e);h(this,t)}else{h(this,e);this._source=t}if(this.options.content){this._content=this.options.content}},openOn:function(e){e=arguments.length?e:this._source._map;if(!e.hasLayer(this)){e.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(e){if(this._map){this.close()}else{if(arguments.length){this._source=e}else{e=this._source}this._prepareOpen();this.openOn(e._map)}return this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated;if(!this._container){this._initLayout()}if(e._fadeAnimated){yt(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(e._fadeAnimated){yt(this._container,1)}this.bringToFront();if(this.options.interactive){ft(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(e){if(e._fadeAnimated){yt(this._container,0);this._removeTimeout=setTimeout(n(ct,undefined,this._container),200)}else{ct(this._container)}if(this.options.interactive){mt(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(e){this._latlng=G(e);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(e){this._content=e;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}this._container.style.visibility="hidden";this._updateContent();this._updateLayout();this._updatePosition();this._container.style.visibility="";this._adjustPan()},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){e.zoomanim=this._animateZoom}return e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ut(this._container)}return this},bringToBack:function(){if(this._map){dt(this._container)}return this},_prepareOpen:function(e){var t=this._source;if(!t._map){return false}if(t instanceof qi){t=null;var i=this._source._layers;for(var r in i){if(i[r]._map){t=i[r];break}}if(!t){return false}this._source=t}if(!e){if(t.getCenter){e=t.getCenter()}else if(t.getLatLng){e=t.getLatLng()}else if(t.getBounds){e=t.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(e);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var e=this._contentNode;var t=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof t==="string"){e.innerHTML=t}else{while(e.hasChildNodes()){e.removeChild(e.firstChild)}e.appendChild(t)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var e=this._map.latLngToLayerPoint(this._latlng),t=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){xt(this._container,e.add(i))}else{t=t.add(e).add(i)}var r=this._containerBottom=-t.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+"px";this._container.style.left=n+"px"},_getAnchor:function(){return[0,0]}});ii.include({_initOverlay:function(e,t,i,r){var n=t;if(!(n instanceof e)){n=new e(r).setContent(t)}if(i){n.setLatLng(i)}return n}});Vi.include({_initOverlay:function(e,t,i,r){var n=i;if(n instanceof e){h(n,r);n._source=this}else{n=t&&!r?t:new e(r,this);n.setContent(i)}return n}});var Pr=Sr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(e){e=arguments.length?e:this._source._map;if(!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose){e.removeLayer(e._popup)}e._popup=this;return Sr.prototype.openOn.call(this,e)},onAdd:function(e){Sr.prototype.onAdd.call(this,e);e.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof ir)){this._source.on("preclick",Yt)}}},onRemove:function(e){Sr.prototype.onRemove.call(this,e);e.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof ir)){this._source.off("preclick",Yt)}}},getEvents:function(){var e=Sr.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){e.preclick=this.close}if(this.options.keepInView){e.moveend=this._adjustPan}return e},_initLayout:function(){var e="leaflet-popup",t=this._container=lt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=lt("div",e+"-content-wrapper",t);this._contentNode=lt("div",e+"-content",i);Ut(t);Vt(this._contentNode);Ft(t,"contextmenu",Yt);this._tipContainer=lt("div",e+"-tip-container",t);this._tip=lt("div",e+"-tip",this._tipContainer);if(this.options.closeButton){var r=this._closeButton=lt("a",e+"-close-button",t);r.setAttribute("role","button");r.setAttribute("aria-label","Close popup");r.href="#close";r.innerHTML='<span aria-hidden="true">&#215;</span>';Ft(r,"click",(function(e){Wt(e);this.close()}),this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="";t.whiteSpace="nowrap";var i=e.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);t.width=i+1+"px";t.whiteSpace="";t.height="";var r=e.offsetHeight,n=this.options.maxHeight,o="leaflet-popup-scrolled";if(n&&r>n){t.height=n+"px";ft(e,o)}else{mt(e,o)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),i=this._getAnchor();xt(this._container,t.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var e=this._map,t=parseInt(at(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+t,r=this._containerWidth,n=new I(this._containerLeft,-i-this._containerBottom);n._add(kt(this._container));var o=e.layerPointToContainerPoint(n),s=B(this.options.autoPanPadding),a=B(this.options.autoPanPaddingTopLeft||s),l=B(this.options.autoPanPaddingBottomRight||s),c=e.getSize(),p=0,u=0;if(o.x+r+l.x>c.x){p=o.x+r-c.x+l.x}if(o.x-p-a.x<0){p=o.x-a.x}if(o.y+i+l.y>c.y){u=o.y+i-c.y+l.y}if(o.y-u-a.y<0){u=o.y-a.y}if(p||u){if(this.options.keepInView){this._autopanning=true}e.fire("autopanstart").panBy([p,u])}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Mr=function(e,t){return new Pr(e,t)};ii.mergeOptions({closePopupOnClick:true});ii.include({openPopup:function(e,t,i){this._initOverlay(Pr,e,t,i).openOn(this);return this},closePopup:function(e){e=arguments.length?e:this._popup;if(e){e.close()}return this}});Vi.include({bindPopup:function(e,t){this._popup=this._initOverlay(Pr,this._popup,e,t);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(e){if(this._popup){if(!(this instanceof qi)){this._popup._source=this}if(this._popup._prepareOpen(e||this._latlng)){this._popup.openOn(this._map)}}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(e){if(this._popup){this._popup.setContent(e)}return this},getPopup:function(){return this._popup},_openPopup:function(e){if(!this._popup||!this._map){return}qt(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof ir)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(e.latlng)}return}this._popup._source=t;this.openPopup(e.latlng)},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){if(e.originalEvent.keyCode===13){this._openPopup(e)}}});var Or=Sr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(e){Sr.prototype.onAdd.call(this,e);this.setOpacity(this.options.opacity);e.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(e){Sr.prototype.onRemove.call(this,e);e.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var e=Sr.prototype.getEvents.call(this);if(!this.options.permanent){e.preclick=this.close}return e},_initLayout:function(){var e="leaflet-tooltip",t=e+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=lt("div",t);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,i,r=this._map,n=this._container,o=r.latLngToContainerPoint(r.getCenter()),s=r.layerPointToContainerPoint(e),a=this.options.direction,l=n.offsetWidth,c=n.offsetHeight,p=B(this.options.offset),u=this._getAnchor();if(a==="top"){t=l/2;i=c}else if(a==="bottom"){t=l/2;i=0}else if(a==="center"){t=l/2;i=c/2}else if(a==="right"){t=0;i=c/2}else if(a==="left"){t=l;i=c/2}else if(s.x<o.x){a="right";t=0;i=c/2}else{a="left";t=l+(p.x+u.x)*2;i=c/2}e=e.subtract(B(t,i,true)).add(p).add(u);mt(n,"leaflet-tooltip-right");mt(n,"leaflet-tooltip-left");mt(n,"leaflet-tooltip-top");mt(n,"leaflet-tooltip-bottom");ft(n,"leaflet-tooltip-"+a);xt(n,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e;if(this._container){yt(this._container,e)}},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Ir=function(e,t){return new Or(e,t)};ii.include({openTooltip:function(e,t,i){this._initOverlay(Or,e,t,i).openOn(this);return this},closeTooltip:function(e){e.close();return this}});Vi.include({bindTooltip:function(e,t){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(Or,this._tooltip,e,t);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(e){if(!e&&this._tooltipHandlersAdded){return}var t=e?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{i.add=this._addFocusListeners}}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[t](i);this._tooltipHandlersAdded=!e},openTooltip:function(e){if(this._tooltip){if(!(this instanceof qi)){this._tooltip._source=this}if(this._tooltip._prepareOpen(e)){this._tooltip.openOn(this._map);if(this.getElement){this._setAriaDescribedByOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._setAriaDescribedByOnLayer,this)}}}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){if(this._tooltip){this._tooltip.setContent(e)}return this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){if(this.getElement){this._addFocusListenersOnLayer(this)}else if(this.eachLayer){this.eachLayer(this._addFocusListenersOnLayer,this)}},_addFocusListenersOnLayer:function(e){var t=typeof e.getElement==="function"&&e.getElement();if(t){Ft(t,"focus",(function(){this._tooltip._source=e;this.openTooltip()}),this);Ft(t,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(e){var t=typeof e.getElement==="function"&&e.getElement();if(t){t.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(e){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var t=this;this._map.once("moveend",(function(){t._openOnceFlag=false;t._openTooltip(e)}));return}this._tooltip._source=e.layer||e.target;this.openTooltip(this._tooltip.options.sticky?e.latlng:undefined)},_moveTooltip:function(e){var t=e.latlng,i,r;if(this._tooltip.options.sticky&&e.originalEvent){i=this._map.mouseEventToContainerPoint(e.originalEvent);r=this._map.containerPointToLayerPoint(i);t=this._map.layerPointToLatLng(r)}this._tooltip.setLatLng(t)}});var zr=Qi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&e.tagName==="DIV"?e:document.createElement("div"),i=this.options;if(i.html instanceof Element){pt(t);t.appendChild(i.html)}else{t.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var r=B(i.bgPos);t.style.backgroundPosition=-r.x+"px "+-r.y+"px"}this._setIconStyles(t,"icon");return t},createShadow:function(){return null}});function Br(e){return new zr(e)}Qi.Default=Ji;var Dr=Vi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:De.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles();ct(this._container);e._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ut(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){dt(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(e){this.options.opacity=e;this._updateOpacity();return this},setZIndex:function(e){this.options.zIndex=e;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());if(e!==this._tileZoom){this._tileZoom=e;this._updateLevels()}this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)}e.move=this._onMove}if(this._zoomAnimated){e.zoomanim=this._animateZoom}return e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof I?e:new I(e,e)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(e){var t=this.getPane().children,i=-e(-Infinity,Infinity);for(var r=0,n=t.length,o;r<n;r++){o=t[r].style.zIndex;if(t[r]!==this._container&&o){i=e(i,+o)}}if(isFinite(i)){this.options.zIndex=i+e(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(De.ielt9){return}yt(this._container,this.options.opacity);var e=+new Date,t=false,i=false;for(var r in this._tiles){var n=this._tiles[r];if(!n.current||!n.loaded){continue}var o=Math.min(1,(e-n.loaded)/200);yt(n.el,o);if(o<1){t=true}else{if(n.active){i=true}else{this._onOpaqueTile(n)}n.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(t){C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=lt("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(e===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===e){this._levels[i].el.style.zIndex=t-Math.abs(e-i);this._onUpdateLevel(i)}else{ct(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var r=this._levels[e],n=this._map;if(!r){r=this._levels[e]={};r.el=lt("div","leaflet-tile-container leaflet-zoom-animated",this._container);r.el.style.zIndex=t;r.origin=n.project(n.unproject(n.getPixelOrigin()),e).round();r.zoom=e;this._setZoomTransform(r,n.getCenter(),n.getZoom());this._onCreateLevel(r)}this._level=r;return r},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(!this._map){return}var e,t;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles){t=this._tiles[e];t.retain=t.current}for(e in this._tiles){t=this._tiles[e];if(t.current&&!t.active){var r=t.coords;if(!this._retainParent(r.x,r.y,r.z,r.z-5)){this._retainChildren(r.x,r.y,r.z,r.z+2)}}}for(e in this._tiles){if(!this._tiles[e].retain){this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles){if(this._tiles[t].coords.z!==e){continue}this._removeTile(t)}},_removeAllTiles:function(){for(var e in this._tiles){this._removeTile(e)}},_invalidateAll:function(){for(var e in this._levels){ct(this._levels[e].el);this._onRemoveLevel(Number(e));delete this._levels[e]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(e,t,i,r){var n=Math.floor(e/2),o=Math.floor(t/2),s=i-1,a=new I(+n,+o);a.z=+s;var l=this._tileCoordsToKey(a),c=this._tiles[l];if(c&&c.active){c.retain=true;return true}else if(c&&c.loaded){c.retain=true}if(s>r){return this._retainParent(n,o,s,r)}return false},_retainChildren:function(e,t,i,r){for(var n=2*e;n<2*e+2;n++){for(var o=2*t;o<2*t+2;o++){var s=new I(n,o);s.z=i+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<r){this._retainChildren(n,o,i+1,r)}}}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,true,e.noUpdate)},_clampZoom:function(e){var t=this.options;if(undefined!==t.minNativeZoom&&e<t.minNativeZoom){return t.minNativeZoom}if(undefined!==t.maxNativeZoom&&t.maxNativeZoom<e){return t.maxNativeZoom}return e},_setView:function(e,t,i,r){var n=Math.round(t);if(this.options.maxZoom!==undefined&&n>this.options.maxZoom||this.options.minZoom!==undefined&&n<this.options.minZoom){n=undefined}else{n=this._clampZoom(n)}var o=this.options.updateWhenZooming&&n!==this._tileZoom;if(!r||o){this._tileZoom=n;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(n!==undefined){this._update(e)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var i in this._levels){this._setZoomTransform(this._levels[i],e,t)}},_setZoomTransform:function(e,t,i){var r=this._map.getZoomScale(i,e.zoom),n=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,i)).round();if(De.any3d){_t(e.el,n,r)}else{xt(e.el,n)}},_resetGrid:function(){var e=this._map,t=e.options.crs,i=this._tileSize=this.getTileSize(),r=this._tileZoom;var n=this._map.getPixelWorldBounds(this._tileZoom);if(n){this._globalTileRange=this._pxBoundsToTileRange(n)}this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/i.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/i.y)];this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/i.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(e){var t=this._map,i=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(i,this._tileZoom),n=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(r*2);return new D(n.subtract(o),n.add(o))},_update:function(e){var t=this._map;if(!t){return}var i=this._clampZoom(t.getZoom());if(e===undefined){e=t.getCenter()}if(this._tileZoom===undefined){return}var r=this._getTiledPixelBounds(e),n=this._pxBoundsToTileRange(r),o=n.getCenter(),s=[],a=this.options.keepBuffer,l=new D(n.getBottomLeft().subtract([a,-a]),n.getTopRight().add([a,-a]));if(!(isFinite(n.min.x)&&isFinite(n.min.y)&&isFinite(n.max.x)&&isFinite(n.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var c in this._tiles){var p=this._tiles[c].coords;if(p.z!==this._tileZoom||!l.contains(new I(p.x,p.y))){this._tiles[c].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(e,i);return}for(var u=n.min.y;u<=n.max.y;u++){for(var d=n.min.x;d<=n.max.x;d++){var h=new I(d,u);h.z=this._tileZoom;if(!this._isValidTile(h)){continue}var f=this._tiles[this._tileCoordsToKey(h)];if(f){f.current=true}else{s.push(h)}}}s.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(d=0;d<s.length;d++){this._addTile(s[d],m)}this._level.el.appendChild(m)}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var i=this._globalTileRange;if(!t.wrapLng&&(e.x<i.min.x||e.x>i.max.x)||!t.wrapLat&&(e.y<i.min.y||e.y>i.max.y)){return false}}if(!this.options.bounds){return true}var r=this._tileCoordsToBounds(e);return N(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,i=this.getTileSize(),r=e.scaleBy(i),n=r.add(i),o=t.unproject(r,e.z),s=t.unproject(n,e.z);return[o,s]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),i=new j(t[0],t[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),i=new I(+t[0],+t[1]);i.z=+t[2];return i},_removeTile:function(e){var t=this._tiles[e];if(!t){return}ct(t.el);delete this._tiles[e];this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)})},_initTile:function(e){ft(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px";e.style.height=t.y+"px";e.onselectstart=c;e.onmousemove=c;if(De.ielt9&&this.options.opacity<1){yt(e,this.options.opacity)}},_addTile:function(e,t){var i=this._getTilePos(e),r=this._tileCoordsToKey(e);var o=this.createTile(this._wrapCoords(e),n(this._tileReady,this,e));this._initTile(o);if(this.createTile.length<2){T(n(this._tileReady,this,e,null,o))}xt(o,i);this._tiles[r]={el:o,coords:e,current:true};t.appendChild(o);this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,i){if(t){this.fire("tileerror",{error:t,tile:i,coords:e})}var r=this._tileCoordsToKey(e);i=this._tiles[r];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){yt(i.el,0);C(this._fadeFrame);this._fadeFrame=T(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!t){ft(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:e})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(De.ielt9||!this._map._fadeAnimated){T(this._pruneTiles,this)}else{setTimeout(n(this._pruneTiles,this),250)}}},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new I(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);t.z=e.z;return t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new D(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles){if(!this._tiles[e].loaded){return false}}return true}});function Fr(e){return new Dr(e)}var jr=Dr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(e,t){this._url=e;t=h(this,t);if(t.detectRetina&&De.retina&&t.maxZoom>0){t.tileSize=Math.floor(t.tileSize/2);if(!t.zoomReverse){t.zoomOffset++;t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)}else{t.zoomOffset--;t.minZoom=Math.min(t.maxZoom,t.minZoom+1)}t.minZoom=Math.max(0,t.minZoom)}else if(!t.zoomReverse){t.maxZoom=Math.max(t.minZoom,t.maxZoom)}else{t.minZoom=Math.min(t.maxZoom,t.minZoom)}if(typeof t.subdomains==="string"){t.subdomains=t.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){if(this._url===e&&t===undefined){t=true}this._url=e;if(!t){this.redraw()}return this},createTile:function(e,t){var i=document.createElement("img");Ft(i,"load",n(this._tileOnLoad,this,t,i));Ft(i,"error",n(this._tileOnError,this,t,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.src=this.getTileUrl(e);return i},getTileUrl:function(e){var t={r:De.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;if(this.options.tms){t["y"]=r}t["-y"]=r}return g(this._url,i(t,this.options))},_tileOnLoad:function(e,t){if(De.ielt9){setTimeout(n(e,this,null,t),0)}else{e(null,t)}},_tileOnError:function(e,t,i){var r=this.options.errorTileUrl;if(r&&t.getAttribute("src")!==r){t.src=r}e(i,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,i=this.options.zoomReverse,r=this.options.zoomOffset;if(i){e=t-e}return e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles){if(this._tiles[e].coords.z!==this._tileZoom){t=this._tiles[e].el;t.onload=c;t.onerror=c;if(!t.complete){t.src=w;var i=this._tiles[e].coords;ct(t);delete this._tiles[e];this.fire("tileabort",{tile:t,coords:i})}}}},_removeTile:function(e){var t=this._tiles[e];if(!t){return}t.el.setAttribute("src",w);return Dr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,i){if(!this._map||i&&i.getAttribute("src")===w){return}return Dr.prototype._tileReady.call(this,e,t,i)}});function Nr(e,t){return new jr(e,t)}var Rr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(e,t){this._url=e;var r=i({},this.defaultWmsParams);for(var n in t){if(!(n in this.options)){r[n]=t[n]}}t=h(this,t);var o=t.detectRetina&&De.retina?2:1;var s=this.getTileSize();r.width=s.x*o;r.height=s.y*o;this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code;jr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),i=this._crs,r=F(i.project(t[0]),i.project(t[1])),n=r.min,o=r.max,s=(this._wmsVersion>=1.3&&this._crs===Hi?[n.y,n.x,o.y,o.x]:[n.x,n.y,o.x,o.y]).join(","),a=jr.prototype.getTileUrl.call(this,e);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(e,t){i(this.wmsParams,e);if(!t){this.redraw()}return this}});function Gr(e,t){return new Rr(e,t)}jr.WMS=Rr;Nr.wms=Gr;var Zr=Vi.extend({options:{padding:.1},initialize:function(e){h(this,e);s(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();ft(this._container,"leaflet-zoom-animated")}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){e.zoomanim=this._onAnimZoom}return e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var i=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,t),o=r.multiplyBy(-i).add(n).subtract(this._map._getNewPixelOrigin(e,t));if(De.any3d){_t(this._container,o,i)}else{xt(this._container,o)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var e in this._layers){this._layers[e]._reset()}},_onZoomEnd:function(){for(var e in this._layers){this._layers[e]._project()}},_updatePaths:function(){for(var e in this._layers){this._layers[e]._update()}},_update:function(){var e=this.options.padding,t=this._map.getSize(),i=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new D(i,i.add(t.multiplyBy(1+e*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Hr=Zr.extend({options:{tolerance:0},getEvents:function(){var e=Zr.prototype.getEvents.call(this);e.viewprereset=this._onViewPreReset;return e},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Zr.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Ft(e,"mousemove",this._onMouseMove,this);Ft(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Ft(e,"mouseout",this._handleMouseOut,this);e["_leaflet_disable_events"]=true;this._ctx=e.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest);delete this._ctx;ct(this._container);Nt(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var e;this._redrawBounds=null;for(var t in this._layers){e=this._layers[t];e._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Zr.prototype._update.call(this);var e=this._bounds,t=this._container,i=e.getSize(),r=De.retina?2:1;xt(t,e.min);t.width=r*i.x;t.height=r*i.y;t.style.width=i.x+"px";t.style.height=i.y+"px";if(De.retina){this._ctx.scale(2,2)}this._ctx.translate(-e.min.x,-e.min.y);this.fire("update")},_reset:function(){Zr.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(e){this._updateDashArray(e);this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=t}this._drawLast=t;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order;var i=t.next;var r=t.prev;if(i){i.prev=r}else{this._drawLast=r}if(r){r.next=i}else{this._drawFirst=i}delete e._order;delete this._layers[s(e)];this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e);e._project();e._update();this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e);this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray==="string"){var t=e.options.dashArray.split(/[, ]+/),i=[],r,n;for(n=0;n<t.length;n++){r=Number(t[n]);if(isNaN(r)){return}i.push(r)}e.options._dashArray=i}else{e.options._dashArray=e.options.dashArray}},_requestRedraw:function(e){if(!this._map){return}this._extendRedrawBounds(e);this._redrawRequest=this._redrawRequest||T(this._redraw,this)},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D;this._redrawBounds.extend(e._pxBounds.min.subtract([t,t]));this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var e,t=this._redrawBounds;this._ctx.save();if(t){var i=t.getSize();this._ctx.beginPath();this._ctx.rect(t.min.x,t.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var r=this._drawFirst;r;r=r.next){e=r.layer;if(!t||e._pxBounds&&e._pxBounds.intersects(t)){e._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(e,t){if(!this._drawing){return}var i,r,n,o,s=e._parts,a=s.length,l=this._ctx;if(!a){return}l.beginPath();for(i=0;i<a;i++){for(r=0,n=s[i].length;r<n;r++){o=s[i][r];l[r?"lineTo":"moveTo"](o.x,o.y)}if(t){l.closePath()}}this._fillStroke(l,e)},_updateCircle:function(e){if(!this._drawing||e._empty()){return}var t=e._point,i=this._ctx,r=Math.max(Math.round(e._radius),1),n=(Math.max(Math.round(e._radiusY),1)||r)/r;if(n!==1){i.save();i.scale(1,n)}i.beginPath();i.arc(t.x,t.y/n,r,0,Math.PI*2,false);if(n!==1){i.restore()}this._fillStroke(i,e)},_fillStroke:function(e,t){var i=t.options;if(i.fill){e.globalAlpha=i.fillOpacity;e.fillStyle=i.fillColor||i.color;e.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(e.setLineDash){e.setLineDash(t.options&&t.options._dashArray||[])}e.globalAlpha=i.opacity;e.lineWidth=i.weight;e.strokeStyle=i.color;e.lineCap=i.lineCap;e.lineJoin=i.lineJoin;e.stroke()}},_onClick:function(e){var t=this._map.mouseEventToLayerPoint(e),i,r;for(var n=this._drawFirst;n;n=n.next){i=n.layer;if(i.options.interactive&&i._containsPoint(t)){if(!(e.type==="click"||e.type==="preclick")||!this._map._draggableMoved(i)){r=i}}}this._fireEvent(r?[r]:false,e)},_onMouseMove:function(e){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)},_handleMouseOut:function(e){var t=this._hoveredLayer;if(t){mt(this._container,"leaflet-interactive");this._fireEvent([t],e,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(e,t){if(this._mouseHoverThrottled){return}var i,r;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(t)){r=i}}if(r!==this._hoveredLayer){this._handleMouseOut(e);if(r){ft(this._container,"leaflet-interactive");this._fireEvent([r],e,"mouseover");this._hoveredLayer=r}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,e);this._mouseHoverThrottled=true;setTimeout(n((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(e,t,i){this._map._fireDOMEvent(t,i||t.type,e)},_bringToFront:function(e){var t=e._order;if(!t){return}var i=t.next;var r=t.prev;if(i){i.prev=r}else{return}if(r){r.next=i}else if(i){this._drawFirst=i}t.prev=this._drawLast;this._drawLast.next=t;t.next=null;this._drawLast=t;this._requestRedraw(e)},_bringToBack:function(e){var t=e._order;if(!t){return}var i=t.next;var r=t.prev;if(r){r.next=i}else{return}if(i){i.prev=r}else if(r){this._drawLast=r}t.prev=null;t.next=this._drawFirst;this._drawFirst.prev=t;this._drawFirst=t;this._requestRedraw(e)}});function Yr(e){return De.canvas?new Hr(e):null}var Vr=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Ur={_initContainer:function(){this._container=lt("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Zr.prototype._update.call(this);this.fire("update")},_initPath:function(e){var t=e._container=Vr("shape");ft(t,"leaflet-vml-shape "+(this.options.className||""));t.coordsize="1 1";e._path=Vr("path");t.appendChild(e._path);this._updateStyle(e);this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t);if(e.options.interactive){e.addInteractiveTarget(t)}},_removePath:function(e){var t=e._container;ct(t);e.removeInteractiveTarget(t);delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,i=e._fill,r=e.options,n=e._container;n.stroked=!!r.stroke;n.filled=!!r.fill;if(r.stroke){if(!t){t=e._stroke=Vr("stroke")}n.appendChild(t);t.weight=r.weight+"px";t.color=r.color;t.opacity=r.opacity;if(r.dashArray){t.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," ")}else{t.dashStyle=""}t.endcap=r.lineCap.replace("butt","flat");t.joinstyle=r.lineJoin}else if(t){n.removeChild(t);e._stroke=null}if(r.fill){if(!i){i=e._fill=Vr("fill")}n.appendChild(i);i.color=r.fillColor||r.color;i.opacity=r.fillOpacity}else if(i){n.removeChild(i);e._fill=null}},_updateCircle:function(e){var t=e._point.round(),i=Math.round(e._radius),r=Math.round(e._radiusY||i);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+i+","+r+" 0,"+65535*360)},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ut(e._container)},_bringToBack:function(e){dt(e._container)}};var Wr=De.vml?Vr:Q;var qr=Zr.extend({_initContainer:function(){this._container=Wr("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Wr("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ct(this._container);Nt(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Zr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(t)){this._svgSize=t;i.setAttribute("width",t.x);i.setAttribute("height",t.y)}xt(i,e.min);i.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" "));this.fire("update")},_initPath:function(e){var t=e._path=Wr("path");if(e.options.className){ft(t,e.options.className)}if(e.options.interactive){ft(t,"leaflet-interactive")}this._updateStyle(e);this._layers[s(e)]=e},_addPath:function(e){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(e._path);e.addInteractiveTarget(e._path)},_removePath:function(e){ct(e._path);e.removeInteractiveTarget(e._path);delete this._layers[s(e)]},_updatePath:function(e){e._project();e._update()},_updateStyle:function(e){var t=e._path,i=e.options;if(!t){return}if(i.stroke){t.setAttribute("stroke",i.color);t.setAttribute("stroke-opacity",i.opacity);t.setAttribute("stroke-width",i.weight);t.setAttribute("stroke-linecap",i.lineCap);t.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){t.setAttribute("stroke-dasharray",i.dashArray)}else{t.removeAttribute("stroke-dasharray")}if(i.dashOffset){t.setAttribute("stroke-dashoffset",i.dashOffset)}else{t.removeAttribute("stroke-dashoffset")}}else{t.setAttribute("stroke","none")}if(i.fill){t.setAttribute("fill",i.fillColor||i.color);t.setAttribute("fill-opacity",i.fillOpacity);t.setAttribute("fill-rule",i.fillRule||"evenodd")}else{t.setAttribute("fill","none")}},_updatePoly:function(e,t){this._setPath(e,X(e._parts,t))},_updateCircle:function(e){var t=e._point,i=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||i,n="a"+i+","+r+" 0 1,0 ";var o=e._empty()?"M0 0":"M"+(t.x-i)+","+t.y+n+i*2+",0 "+n+-i*2+",0 ";this._setPath(e,o)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ut(e._path)},_bringToBack:function(e){dt(e._path)}});if(De.vml){qr.include(Ur)}function Kr(e){return De.svg||De.vml?new qr(e):null}ii.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;if(!t){t=this._renderer=this._createRenderer()}if(!this.hasLayer(t)){this.addLayer(t)}return t},_getPaneRenderer:function(e){if(e==="overlayPane"||e===undefined){return false}var t=this._paneRenderers[e];if(t===undefined){t=this._createRenderer({pane:e});this._paneRenderers[e]=t}return t},_createRenderer:function(e){return this.options.preferCanvas&&Yr(e)||Kr(e)}});var Qr=cr.extend({initialize:function(e,t){cr.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){e=N(e);return[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Xr(e,t){return new Qr(e,t)}qr.create=Wr;qr.pointsToPath=X;ur.geometryToLayer=dr;ur.coordsToLatLng=fr;ur.coordsToLatLngs=mr;ur.latLngToCoords=gr;ur.latLngsToCoords=vr;ur.getFeature=yr;ur.asFeature=wr;ii.mergeOptions({boxZoom:true});var Jr=mi.extend({initialize:function(e){this._map=e;this._container=e._container;this._pane=e._panes.overlayPane;this._resetStateTimeout=0;e.on("unload",this._destroy,this)},addHooks:function(){Ft(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Nt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ct(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1){return false}this._clearDeferredResetState();this._resetState();At();Et();this._startPoint=this._map.mouseEventToContainerPoint(e);Ft(document,{contextmenu:qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){if(!this._moved){this._moved=true;this._box=lt("div","leaflet-zoom-box",this._container);ft(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(e);var t=new D(this._point,this._startPoint),i=t.getSize();xt(this._box,t.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ct(this._box);mt(this._container,"leaflet-crosshair")}Tt();St();Nt(document,{contextmenu:qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if(e.which!==1&&e.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var t=new j(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})},_onKeyDown:function(e){if(e.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ii.addInitHook("addHandler","boxZoom",Jr);ii.mergeOptions({doubleClickZoom:true});var $r=mi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,i=t.getZoom(),r=t.options.zoomDelta,n=e.originalEvent.shiftKey?i-r:i+r;if(t.options.doubleClickZoom==="center"){t.setZoom(n)}else{t.setZoomAround(e.containerPoint,n)}}});ii.addInitHook("addHandler","doubleClickZoom",$r);ii.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var en=mi.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new yi(e._mapPane,e._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(e.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);e.on("zoomend",this._onZoomEnd,this);e.whenReady(this._onZoomEnd,this)}}ft(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){mt(this._map._container,"leaflet-grab");mt(this._map._container,"leaflet-touch-drag");this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;e._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=N(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}e.fire("movestart").fire("dragstart");if(e.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(t);this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){while(this._positions.length>1&&e-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var e=this._draggable._newPos.subtract(this._draggable._startPos);var t=this._offsetLimit;if(e.x<t.min.x){e.x=this._viscousLimit(e.x,t.min.x)}if(e.y<t.min.y){e.y=this._viscousLimit(e.y,t.min.y)}if(e.x>t.max.x){e.x=this._viscousLimit(e.x,t.max.x)}if(e.y>t.max.y){e.y=this._viscousLimit(e.y,t.max.y)}this._draggable._newPos=this._draggable._startPos.add(e)},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),i=this._initialWorldOffset,r=this._draggable._newPos.x,n=(r-t+i)%e+t-i,o=(r+t+i)%e-t-i,s=Math.abs(n+i)<Math.abs(o+i)?n:o;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(e){var t=this._map,i=t.options,r=!i.inertia||e.noInertia||this._times.length<2;t.fire("dragend",e);if(r){t.fire("moveend")}else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=n.multiplyBy(s/o),l=a.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),p=a.multiplyBy(c/l),u=c/(i.inertiaDeceleration*s),d=p.multiplyBy(-u/2).round();if(!d.x&&!d.y){t.fire("moveend")}else{d=t._limitOffset(d,t.options.maxBounds);T((function(){t.panBy(d,{duration:u,easeLinearity:s,noMoveStart:true,animate:true})}))}}}});ii.addInitHook("addHandler","dragging",en);ii.mergeOptions({keyboard:true,keyboardPanDelta:80});var tn=mi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e;this._setPanDelta(e.options.keyboardPanDelta);this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;if(e.tabIndex<=0){e.tabIndex="0"}Ft(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Nt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(this._focused){return}var e=document.body,t=document.documentElement,i=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus();window.scrollTo(r,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(e){var t=this._panKeys={},i=this.keyCodes,r,n;for(r=0,n=i.left.length;r<n;r++){t[i.left[r]]=[-1*e,0]}for(r=0,n=i.right.length;r<n;r++){t[i.right[r]]=[e,0]}for(r=0,n=i.down.length;r<n;r++){t[i.down[r]]=[0,e]}for(r=0,n=i.up.length;r<n;r++){t[i.up[r]]=[0,-1*e]}},_setZoomDelta:function(e){var t=this._zoomKeys={},i=this.keyCodes,r,n;for(r=0,n=i.zoomIn.length;r<n;r++){t[i.zoomIn[r]]=e}for(r=0,n=i.zoomOut.length;r<n;r++){t[i.zoomOut[r]]=-e}},_addHooks:function(){Ft(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Nt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(e.altKey||e.ctrlKey||e.metaKey){return}var t=e.keyCode,i=this._map,r;if(t in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){r=this._panKeys[t];if(e.shiftKey){r=B(r).multiplyBy(3)}if(i.options.maxBounds){r=i._limitOffset(B(r),i.options.maxBounds)}if(i.options.worldCopyJump){var n=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(r)));i.panTo(n)}else{i.panBy(r)}}}else if(t in this._zoomKeys){i.setZoom(i.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[t])}else if(t===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}qt(e)}});ii.addInitHook("addHandler","keyboard",tn);ii.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rn=mi.extend({addHooks:function(){Ft(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Nt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=Jt(e);var i=this._map.options.wheelDebounceTime;this._delta+=t;this._lastMousePos=this._map.mouseEventToContainerPoint(e);if(!this._startTime){this._startTime=+new Date}var r=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(n(this._performZoom,this),r);qt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),i=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),n=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=i?Math.ceil(n/i)*i:n,s=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0;this._startTime=null;if(!s){return}if(e.options.scrollWheelZoom==="center"){e.setZoom(t+s)}else{e.setZoomAround(this._lastMousePos,t+s)}}});ii.addInitHook("addHandler","scrollWheelZoom",rn);var nn=600;ii.mergeOptions({tapHold:De.touchNative&&De.safari&&De.mobile,tapTolerance:15});var on=mi.extend({addHooks:function(){Ft(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Nt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){clearTimeout(this._holdTimeout);if(e.touches.length!==1){return}var t=e.touches[0];this._startPos=this._newPos=new I(t.clientX,t.clientY);this._holdTimeout=setTimeout(n((function(){this._cancel();if(!this._isTapValid()){return}Ft(document,"touchend",Wt);Ft(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",t)}),this),nn);Ft(document,"touchend touchcancel contextmenu",this._cancel,this);Ft(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function e(){Nt(document,"touchend",Wt);Nt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout);Nt(document,"touchend touchcancel contextmenu",this._cancel,this);Nt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new I(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var i=new MouseEvent(e,{bubbles:true,cancelable:true,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});i._simulated=true;t.target.dispatchEvent(i)}});ii.addInitHook("addHandler","tapHold",on);ii.mergeOptions({touchZoom:De.touch,bounceAtZoomLimits:true});var sn=mi.extend({addHooks:function(){ft(this._map._container,"leaflet-touch-zoom");Ft(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,"leaflet-touch-zoom");Nt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(!e.touches||e.touches.length!==2||t._animatingZoom||this._zooming){return}var i=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2);this._startLatLng=t.containerPointToLatLng(this._centerPoint);if(t.options.touchZoom!=="center"){this._pinchStartLatLng=t.containerPointToLatLng(i.add(r)._divideBy(2))}this._startDist=i.distanceTo(r);this._startZoom=t.getZoom();this._moved=false;this._zooming=true;t._stop();Ft(document,"touchmove",this._onTouchMove,this);Ft(document,"touchend touchcancel",this._onTouchEnd,this);Wt(e)},_onTouchMove:function(e){if(!e.touches||e.touches.length!==2||!this._zooming){return}var t=this._map,i=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),o=i.distanceTo(r)/this._startDist;this._zoom=t.getScaleZoom(o,this._startZoom);if(!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)){this._zoom=t._limitZoom(this._zoom)}if(t.options.touchZoom==="center"){this._center=this._startLatLng;if(o===1){return}}else{var s=i._add(r)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0){return}this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}if(!this._moved){t._moveStart(true,false);this._moved=true}C(this._animRequest);var a=n(t._move,t,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=T(a,this,true);Wt(e)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;C(this._animRequest);Nt(document,"touchmove",this._onTouchMove,this);Nt(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});ii.addInitHook("addHandler","touchZoom",sn);ii.BoxZoom=Jr;ii.DoubleClickZoom=$r;ii.Drag=en;ii.Keyboard=tn;ii.ScrollWheelZoom=rn;ii.TapHold=on;ii.TouchZoom=sn;e.Bounds=D;e.Browser=De;e.CRS=Z;e.Canvas=Hr;e.Circle=or;e.CircleMarker=rr;e.Class=S;e.Control=ni;e.DivIcon=zr;e.DivOverlay=Sr;e.DomEvent=ei;e.DomUtil=Dt;e.Draggable=yi;e.Evented=O;e.FeatureGroup=qi;e.GeoJSON=ur;e.GridLayer=Dr;e.Handler=mi;e.Icon=Qi;e.ImageOverlay=kr;e.LatLng=R;e.LatLngBounds=j;e.Layer=Vi;e.LayerGroup=Ui;e.LineUtil=ji;e.Map=ii;e.Marker=er;e.Mixin=gi;e.Path=ir;e.Point=I;e.PolyUtil=xi;e.Polygon=cr;e.Polyline=ar;e.Popup=Pr;e.PosAnimation=ti;e.Projection=Gi;e.Rectangle=Qr;e.Renderer=Zr;e.SVG=qr;e.SVGOverlay=Cr;e.TileLayer=jr;e.Tooltip=Or;e.Transformation=U;e.Util=E;e.VideoOverlay=Tr;e.bind=n;e.bounds=F;e.canvas=Yr;e.circle=sr;e.circleMarker=nr;e.control=oi;e.divIcon=Br;e.extend=i;e.featureGroup=Ki;e.geoJSON=_r;e.geoJson=xr;e.gridLayer=Fr;e.icon=Xi;e.imageOverlay=Ar;e.latLng=G;e.latLngBounds=N;e.layerGroup=Wi;e.map=ri;e.marker=tr;e.point=B;e.polygon=pr;e.polyline=lr;e.popup=Mr;e.rectangle=Xr;e.setOptions=h;e.stamp=s;e.svg=Kr;e.svgOverlay=Er;e.tileLayer=Nr;e.tooltip=Ir;e.transformation=W;e.version=t;e.videoOverlay=Lr;var an=window.L;e.noConflict=function(){window.L=an;return this};window.L=e}))}));!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){var e=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(t,i,r,n,o){var s=i||new L.Point(0,0);if(!n)return i=s._round(),e.setTransform.apply(this,arguments);s=s.rotateFrom(n,o),t.style[L.DomUtil.TRANSFORM]="translate3d("+s.x+"px,"+s.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(t,i,r,n,o){if(!r)return e.setPosition.apply(this,arguments);t._leaflet_pos=i,L.Browser.any3d?L.DomUtil.setTransform(t,i,o,r,n):(t.style.left=i.x+"px",t.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(e){return this.rotateFrom(e,new L.Point(0,0))},rotateFrom:function(e,t){if(!e)return this;var i=Math.sin(e),r=Math.cos(e),n=t.x,o=t.y,s=this.x-n,a=this.y-o;return new L.Point(s*r-a*i+n,s*i+a*r+o)}});var t=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(t.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(t._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var e=this._getAnchor(),i=L.DomUtil.getPosition(this._container).subtract(e);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(i).add(e))}}});var i=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(e){if(i._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var t=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(t))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var e=this._map,t=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+t,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),l=L.point(this.options.autoPanPaddingBottomRight||s),c=e.getSize(),p=0,u=0;o.x+r+l.x>c.x&&(p=o.x+r-c.x+l.x),o.x-p-a.x<0&&(p=o.x-a.x),o.y+i+l.y>c.y&&(u=o.y+i-c.y+l.y),o.y-u-a.y<0&&(u=o.y-a.y),(p||u)&&(this.options.keepInView&&(this._autopanning=!0),e.fire("autopanstart").panBy([p,u]))}}});var r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(e){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var e=this._map.latLngToLayerPoint(this._latlng);e=this._map.rotatedPointToMapPanePoint(e),this._setPosition(e)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(e,t){var i=this.options,r=i[t+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),o=L.point("shadow"===t&&i.shadowAnchor||i.iconAnchor||n&&n.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(i.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px",e.style[L.DomUtil.TRANSFORM+"Origin"]=o.x+"px "+o.y+"px 0px"),n&&(e.style.width=n.x+"px",e.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(e){var t=this._marker,i=t.options.rotation||t.options.rotateWithView,r=t._shadow,n=L.DomUtil.getPosition(t._icon);!i&&r&&L.DomUtil.setPosition(r,n),t._map._rotate&&(n=t._map.mapPanePointToRotatedPoint(n));var o=t._map.layerPointToLatLng(n);t._latlng=o,e.latlng=o,e.oldLatLng=this._oldLatLng,i?t.setLatLng(o):t.fire("move",e),t.fire("drag",e)},_onDragEnd:function(e){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 e=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()),e},_setPos:function(e){this._map._rotate&&(e=this._map.rotatedPointToMapPanePoint(e));var t=this.options.rotation||0;this.options.rotateWithView&&(t+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,e,t,e,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,e,t,e,this.options.scale),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(e){this.options.rotation=e,this.update()}});var a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var e=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)),e.rotate=this._onRotate),e},_getTiledPixelBounds:function(e){return this._map._rotate?this._map._getNewPixelBounds(e,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});var l=L.extend({},L.Renderer.prototype);L.Renderer.include({getEvents:function(){return L.extend(l.getEvents.apply(this,arguments),{rotate:this._update})},onAdd:function(){l.onAdd.apply(this,arguments),L.version<="1.9.3"&&this._container.classList.add("leaflet-zoom-animated")},_updateTransform:function(e,t){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var i=this._map.getZoomScale(t,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,t,e);L.DomUtil.setTransform(this._container,r,i)},_update:function(){if(!this._map._rotate)return l._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 c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(e,t){t.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(e){return this._rotate?L.point(e).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(e){return this._rotate?L.point(e).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(e){return L.point(e).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(e){return L.point(e)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(e){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);var t=this.getPixelOrigin(),i=this.layerPointToContainerPoint(this.project(e.getNorthWest())._subtract(t)),r=this.layerPointToContainerPoint(this.project(e.getNorthEast())._subtract(t)),n=this.layerPointToContainerPoint(this.project(e.getSouthWest())._subtract(t)),o=this.layerPointToContainerPoint(this.project(e.getSouthEast())._subtract(t));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 c.getBounds.apply(this,arguments);var e=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([e.x,0]),this.containerPointToLatLng([e.x,e.y]),this.containerPointToLatLng([0,e.y])])},setBearing:function(e){if(L.Browser.any3d&&this._rotate){var t=L.Util.wrapNum(e,[0,360])*L.DomUtil.DEG_TO_RAD,i=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,i),n=r.rotateFrom(t,i);L.DomUtil.setPosition(this._rotatePane,r,t,i),this._pivot=i,this._bearing=t,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var e=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(e.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(e.shadowPane,"leaflet-zoom-hide"))},panInside:function(e,t){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);t=t||{};var i=L.point(t.paddingTopLeft||t.padding||[0,0]),r=L.point(t.paddingBottomRight||t.padding||[0,0]),n=this._container.getBoundingClientRect(),o=this.latLngToContainerPoint(e),s=L.bounds([L.point(n),L.point(n).add(this.getSize())]),a=s.getCenter(),l=L.bounds([s.min.add(i),s.max.subtract(r)]),p=l.getSize();if(!l.contains(o)){this._enforcingBounds=!0;var u=o.subtract(l.getCenter()),d=l.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),t),this._enforcingBounds=!1}return this},getBoundsZoom:function(e,t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);e=L.latLngBounds(e),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(e).getSize(),l=this.options.zoomSnap,p=s.x/a.x,u=s.y/a.y,d=t?Math.max(p,u):Math.min(p,u);return r=this.getScaleZoom(d,r),l&&(r=Math.round(r/(l/100))*(l/100),r=t?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(o,r))},_getCenterOffset:function(e){var t=c._getCenterOffset.apply(this,arguments);return this._rotate&&(t=t.rotate(this._bearing)),t},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(e,t){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var i=this.getSize()._divideBy(2);return this.project(e,t).rotate(this._bearing)._subtract(i)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(e,t){if(e=e||this.getCenter(),t=t||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var i=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(i,t),n=this.project(e,t).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&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(e){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var t=e,i=this.getSize(),r=i.multiplyBy(-t),n=i.multiplyBy(1+t);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(e){if(this._container._leaflet_id){var t=e.coords.latitude,i=e.coords.longitude,r=e.coords.heading,n=new L.LatLng(t,i),o=n.toBounds(e.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 l={latlng:n,bounds:o,timestamp:e.timestamp,heading:r};for(var c in e.coords)"number"==typeof e.coords[c]&&(l[c]=e.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(e){this._map=e,"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(e){var t=e.webkitCompassHeading||e.alpha,i=0;!e.absolute&&e.webkitCompassHeading&&(t=360-t),e.absolute||void 0===window.orientation||(i=window.orientation),this._map.setBearing(t-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(e){this._map=e,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(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming&&!this._rotating){var i=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),n=i.subtract(r);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(i.add(r)._divideBy(2))),this._startDist=i.distanceTo(r),this._startZoom=t.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=t.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,t._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&(this._zooming||this._rotating)){var t,i=this._map,r=i.mouseEventToContainerPoint(e.touches[0]),n=i.mouseEventToContainerPoint(e.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(t=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===s&&0===t.x&&0===t.y)return;var l=-i.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=i.unproject(i.project(this._pinchStartLatLng).subtract(t.rotate(l)))}this._moved||(i._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(e)}},_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(e){e.shiftKey?(e.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(e.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(e){var t=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",t);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(),e.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===e.getBearing()&&(t.style.display="none"),t},onRemove:function(e){e.off("rotate",this._restyle,this)},_handleMouseDown:function(e){L.DomEvent.stop(e),this.dragging=!0,this.dragstartX=e.pageX,this.dragstartY=e.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(e){L.DomEvent.stop(e),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(e){if(this.dragging){var t=e.clientX-this.dragstartX;this._map.setBearing(t)}},_cycleState:function(e){if(this._map){var t=this._map;t.touchRotate.enabled()||t.compassBearing.enabled()?t.compassBearing.enabled()?(t.compassBearing.disable(),t.setBearing(0),this.options.closeOnZeroBearing&&t.touchRotate.enable()):(t.touchRotate.disable(),t.compassBearing.enable()):t.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var e=this._map,t=e.getBearing();this._arrow.style.transform="rotate("+t+"deg)",t&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),e.compassBearing.enabled()?this._link.style.backgroundColor="orange":e.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===t&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(e){return new L.Control.Rotate(e)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var e="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(e),this.addControl(this.rotateControl)}}))}));K((function(e,t){
8
- /*!
9
- Copyright (c) 2016 Dominik Moritz
10
-
11
- This file is part of the leaflet locate control. It is licensed under the MIT license.
12
- You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
13
- */
14
- (function(t,i){{if(typeof i!=="undefined"&&i.L){e.exports=t(L)}else{e.exports=t(J)}}if(typeof i!=="undefined"&&i.L){i.L.Control.Locate=t(L)}})((function(e){var t=function(t,i,r){r=r.split(" ");r.forEach((function(r){e.DomUtil[t].call(this,i,r)}))};var i=function(e,i){return t("addClass",e,i)};var r=function(e,i){return t("removeClass",e,i)};var n=e.Marker.extend({initialize:function(t,i){e.Util.setOptions(this,i);this._latlng=t;this.createIcon()},createIcon:function(){var t=this.options;var i="";if(t.color!==undefined){i+="stroke:".concat(t.color,";")}if(t.weight!==undefined){i+="stroke-width:".concat(t.weight,";")}if(t.fillColor!==undefined){i+="fill:".concat(t.fillColor,";")}if(t.fillOpacity!==undefined){i+="fill-opacity:".concat(t.fillOpacity,";")}if(t.opacity!==undefined){i+="opacity:".concat(t.opacity,";")}var r=this._getIconSVG(t,i);this._locationIcon=e.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG:function(e,t){var i=e.radius;var r=e.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="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:s,w:o,h:o}},setStyle:function(t){e.Util.setOptions(this,t);this.createIcon()}});var o=n.extend({initialize:function(t,i,r){e.Util.setOptions(this,r);this._latlng=t;this._heading=i;this.createIcon()},setHeading:function(e){this._heading=e},_getIconSVG:function(e,t){var i=e.radius;var r=e.width+e.weight;var n=(i+e.depth+e.weight)*2;var o="M0,0 l".concat(e.width/2,",").concat(e.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="'+t+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});var s=e.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds:function(e){return e.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(t,i){var r=e.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",t);r.title=i.strings.title;r.href="#";r.setAttribute("role","button");var n=e.DomUtil.create(i.iconElementTag,i.icon,r);if(i.strings.text!==undefined){var o=e.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(e,t){alert(e.message)},onLocationOutsideMapBounds:function(e){e.stop();alert(e.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(t){for(var i in t){if(typeof this.options[i]==="object"){e.extend(this.options[i],t[i])}else{this.options[i]=t[i]}}this.options.followMarkerStyle=e.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=e.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=e.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd:function(t){var i=e.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=i;this._map=t;this._layer=this.options.layer||new e.LayerGroup;this._layer.addTo(t);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;e.DomEvent.on(this._link,"click",(function(t){e.DomEvent.stopPropagation(t);e.DomEvent.preventDefault(t);this._onClick()}),this).on(this._link,"dblclick",e.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return i},_onClick:function(){this._justClicked=true;var e=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){var t=this.options.clickBehavior;var i=t.outOfView;if(this._map.getBounds().contains(this._event.latlng)){i=e?t.inView:t.inViewNotFollowing}if(t[i]){i=t[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 t="ondeviceorientationabsolute"in window;if(t||"ondeviceorientation"in window){var i=this;var r=function(){e.DomEvent.on(window,t?"deviceorientationabsolute":"deviceorientation",i._onDeviceOrientation,i)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(e){if(e==="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){e.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){e.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 t=this.options.flyTo?this._map.flyTo:this._map.setView;t.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var t=this.options.flyTo?this._map.flyTo:this._map.panTo;t.bind(this._map)([this._event.latitude,this._event.longitude])}else{var t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;t.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});e.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass:function(){if(!this._event){return}var e=this._event.latlng;if(this.options.showCompass&&e&&this._compassHeading!==null){var t=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(e,this._compassHeading,t).addTo(this._layer)}else{this._compass.setLatLng(e);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(t)}}}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 t=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=e.circle(i,t,r).addTo(this._layer)}else{this._circle.setLatLng(i).setRadius(t).setStyle(r)}}var n;var o;if(this.options.metric){n=t.toFixed(0);o=this.options.strings.metersUnit}else{n=(t*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 l(){if(typeof a==="string"){return e.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(l())._popup.setLatLng(i)}if(this.options.showPopup&&a&&this._compass){this._compass.bindPopup(l())._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(t){if(!isNaN(parseFloat(t))&&isFinite(t)){t=Math.round(t);this._compassHeading=t;e.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration:function(){this._setCompassHeading()},_onDeviceOrientation:function(e){if(!this._active){return}if(e.webkitCompassHeading){this._setCompassHeading(e.webkitCompassHeading)}else if(e.absolute&&e.alpha){this._setCompassHeading(360-e.alpha)}},_onLocationError:function(e){if(e.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(e,this)},_onLocationFound:function(e){if(this._event&&this._event.latlng.lat===e.latlng.lat&&this._event.latlng.lng===e.latlng.lng&&this._event.accuracy===e.accuracy){return}if(!this._active){return}this._event=e;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(e){if(e=="requesting"){r(this._container,"active following");i(this._container,"requesting");r(this._icon,this.options.icon);i(this._icon,this.options.iconLoading)}else if(e=="active"){r(this._container,"requesting following");i(this._container,"active");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}else if(e=="following"){r(this._container,"requesting");i(this._container,"active following");r(this._icon,this.options.iconLoading);i(this._icon,this.options.icon)}},_cleanClasses:function(){e.DomUtil.removeClass(this._container,"requesting");e.DomUtil.removeClass(this._container,"active");e.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}});e.control.locate=function(t){return new e.Control.Locate(t)};return s}),window)}));var $=K((function(e,t){(function(i){var r=t&&!t.nodeType&&t;var n=e&&!e.nodeType&&e;var o=typeof q=="object"&&q;if(o.global===o||o.window===o||o.self===o){i=o}var s,a=2147483647,l=36,c=1,p=26,u=38,d=700,h=72,f=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=l-c,_=Math.floor,x=String.fromCharCode,k;function A(e){throw new RangeError(w[e])}function T(e,t){var i=e.length;var r=[];while(i--){r[i]=t(e[i])}return r}function L(e,t){var i=e.split("@");var r="";if(i.length>1){r=i[0]+"@";e=i[1]}e=e.replace(y,".");var n=e.split(".");var o=T(n,t).join(".");return r+o}function C(e){var t=[],i=0,r=e.length,n,o;while(i<r){n=e.charCodeAt(i++);if(n>=55296&&n<=56319&&i<r){o=e.charCodeAt(i++);if((o&64512)==56320){t.push(((n&1023)<<10)+(o&1023)+65536)}else{t.push(n);i--}}else{t.push(n)}}return t}function E(e){return T(e,(function(e){var t="";if(e>65535){e-=65536;t+=x(e>>>10&1023|55296);e=56320|e&1023}t+=x(e);return t})).join("")}function S(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return l}function P(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function M(e,t,i){var r=0;e=i?_(e/d):e>>1;e+=_(e/t);for(;e>b*p>>1;r+=l){e=_(e/b)}return _(r+(b+1)*e/(e+u))}function O(e){var t=[],i=e.length,r,n=0,o=f,s=h,u,d,g,v,y,w,b,x,k;u=e.lastIndexOf(m);if(u<0){u=0}for(d=0;d<u;++d){if(e.charCodeAt(d)>=128){A("not-basic")}t.push(e.charCodeAt(d))}for(g=u>0?u+1:0;g<i;){for(v=n,y=1,w=l;;w+=l){if(g>=i){A("invalid-input")}b=S(e.charCodeAt(g++));if(b>=l||b>_((a-n)/y)){A("overflow")}n+=b*y;x=w<=s?c:w>=s+p?p:w-s;if(b<x){break}k=l-x;if(y>_(a/k)){A("overflow")}y*=k}r=t.length+1;s=M(n-v,r,v==0);if(_(n/r)>a-o){A("overflow")}o+=_(n/r);n%=r;t.splice(n++,0,o)}return E(t)}function I(e){var t,i,r,n,o,s,u,d,g,v,y,w=[],b,k,T,L;e=C(e);b=e.length;t=f;i=0;o=h;for(s=0;s<b;++s){y=e[s];if(y<128){w.push(x(y))}}r=n=w.length;if(n){w.push(m)}while(r<b){for(u=a,s=0;s<b;++s){y=e[s];if(y>=t&&y<u){u=y}}k=r+1;if(u-t>_((a-i)/k)){A("overflow")}i+=(u-t)*k;t=u;for(s=0;s<b;++s){y=e[s];if(y<t&&++i>a){A("overflow")}if(y==t){for(d=i,g=l;;g+=l){v=g<=o?c:g>=o+p?p:g-o;if(d<v){break}L=d-v;T=l-v;w.push(x(P(v+L%T,0)));d=_(L/T)}w.push(x(P(d,0)));o=M(i,k,r==n);i=0;++r}}++i;++t}return w.join("")}function z(e){return L(e,(function(e){return g.test(e)?O(e.slice(4).toLowerCase()):e}))}function B(e){return L(e,(function(e){return v.test(e)?"xn--"+I(e):e}))}s={version:"1.4.1",ucs2:{decode:C,encode:E},decode:O,encode:I,toASCII:B,toUnicode:z};if(r&&n){if(e.exports==r){n.exports=s}else{for(k in s){s.hasOwnProperty(k)&&(r[k]=s[k])}}}else{i.punycode=s}})(q)}));var ee=function e(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var t={};var i=Symbol("test");var r=Object(i);if(typeof i==="string"){return false}if(Object.prototype.toString.call(i)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;t[i]=n;for(i in t){return false}if(typeof Object.keys==="function"&&Object.keys(t).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(t).length!==0){return false}var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i){return false}if(!Object.prototype.propertyIsEnumerable.call(t,i)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var s=Object.getOwnPropertyDescriptor(t,i);if(s.value!==n||s.enumerable!==true){return false}}return true};var te=typeof Symbol!=="undefined"&&Symbol;var ie=function e(){if(typeof te!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof te("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return ee()};var re={foo:{}};var ne=Object;var oe=function e(){return{__proto__:re}.foo===re.foo&&!({__proto__:null}instanceof ne)};var se="Function.prototype.bind called on incompatible ";var ae=Array.prototype.slice;var le=Object.prototype.toString;var ce="[object Function]";var pe=function e(t){var i=this;if(typeof i!=="function"||le.call(i)!==ce){throw new TypeError(se+i)}var r=ae.call(arguments,1);var n;var o=function(){if(this instanceof n){var e=i.apply(this,r.concat(ae.call(arguments)));if(Object(e)===e){return e}return this}else{return i.apply(t,r.concat(ae.call(arguments)))}};var s=Math.max(0,i.length-r.length);var a=[];for(var l=0;l<s;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(o);if(i.prototype){var c=function e(){};c.prototype=i.prototype;n.prototype=new c;c.prototype=null}return n};var ue=Function.prototype.bind||pe;var de=ue.call(Function.call,Object.prototype.hasOwnProperty);var he;var fe=SyntaxError;var me=Function;var ge=TypeError;var ve=function(e){try{return me('"use strict"; return ('+e+").constructor;")()}catch(t){}};var ye=Object.getOwnPropertyDescriptor;var we=function(){throw new ge};var be=ye?function(){try{return we}catch(e){try{return ye(arguments,"callee").get}catch(t){return we}}}():we;var _e=ie();var xe=oe();var ke=Object.getPrototypeOf||(xe?function(e){return e.__proto__}:null);var Ae={};var Te=typeof Uint8Array==="undefined"||!ke?he:ke(Uint8Array);var Le={"%AggregateError%":typeof AggregateError==="undefined"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?he:ArrayBuffer,"%ArrayIteratorPrototype%":_e&&ke?ke([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":Ae,"%AsyncGenerator%":Ae,"%AsyncGeneratorFunction%":Ae,"%AsyncIteratorPrototype%":Ae,"%Atomics%":typeof Atomics==="undefined"?he:Atomics,"%BigInt%":typeof BigInt==="undefined"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?he:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?he:FinalizationRegistry,"%Function%":me,"%GeneratorFunction%":Ae,"%Int8Array%":typeof Int8Array==="undefined"?he:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?he:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_e&&ke?ke(ke([][Symbol.iterator]())):he,"%JSON%":typeof JSON==="object"?JSON:he,"%Map%":typeof Map==="undefined"?he:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!_e||!ke?he:ke((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?he:Promise,"%Proxy%":typeof Proxy==="undefined"?he:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?he:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!_e||!ke?he:ke((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_e&&ke?ke(""[Symbol.iterator]()):he,"%Symbol%":_e?Symbol:he,"%SyntaxError%":fe,"%ThrowTypeError%":be,"%TypedArray%":Te,"%TypeError%":ge,"%Uint8Array%":typeof Uint8Array==="undefined"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?he:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?he:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?he:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?he:WeakSet};var Ce=function e(t){var i;if(t==="%AsyncFunction%"){i=ve("async function () {}")}else if(t==="%GeneratorFunction%"){i=ve("function* () {}")}else if(t==="%AsyncGeneratorFunction%"){i=ve("async function* () {}")}else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");if(r){i=r.prototype}}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");if(n&&ke){i=ke(n.prototype)}}Le[t]=i;return i};var Ee={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]};var Se=ue.call(Function.call,Array.prototype.concat);var Pe=ue.call(Function.apply,Array.prototype.splice);var Me=ue.call(Function.call,String.prototype.replace);var Oe=ue.call(Function.call,String.prototype.slice);var Ie=ue.call(Function.call,RegExp.prototype.exec);var ze=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var Be=/\\(\\)?/g;var De=function e(t){var i=Oe(t,0,1);var r=Oe(t,-1);if(i==="%"&&r!=="%"){throw new fe("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&i!=="%"){throw new fe("invalid intrinsic syntax, expected opening `%`")}var n=[];Me(t,ze,(function(e,t,i,r){n[n.length]=i?Me(r,Be,"$1"):t||e}));return n};var Fe=function e(t,i){var r=t;var n;if(de(Ee,r)){n=Ee[r];r="%"+n[0]+"%"}if(de(Le,r)){var o=Le[r];if(o===Ae){o=Ce(r)}if(typeof o==="undefined"&&!i){throw new ge("intrinsic "+t+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:o}}throw new fe("intrinsic "+t+" does not exist!")};var je=function e(t,i){if(typeof t!=="string"||t.length===0){throw new ge("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof i!=="boolean"){throw new ge('"allowMissing" argument must be a boolean')}if(Ie(/^%?[^%]*%?$/,t)===null){throw new fe("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=De(t);var n=r.length>0?r[0]:"";var o=Fe("%"+n+"%",i);var s=o.name;var a=o.value;var l=false;var c=o.alias;if(c){n=c[0];Pe(r,Se([0,1],c))}for(var p=1,u=true;p<r.length;p+=1){var d=r[p];var h=Oe(d,0,1);var f=Oe(d,-1);if((h==='"'||h==="'"||h==="`"||(f==='"'||f==="'"||f==="`"))&&h!==f){throw new fe("property names with quotes must have matching quotes")}if(d==="constructor"||!u){l=true}n+="."+d;s="%"+n+"%";if(de(Le,s)){a=Le[s]}else if(a!=null){if(!(d in a)){if(!i){throw new ge("base intrinsic for "+t+" exists, but the property is not available.")}return void he}if(ye&&p+1>=r.length){var m=ye(a,d);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[d]}}else{u=de(a,d);a=a[d]}if(u&&!l){Le[s]=a}}}return a};var Ne=K((function(e){var t=je("%Function.prototype.apply%");var i=je("%Function.prototype.call%");var r=je("%Reflect.apply%",true)||ue.call(i,t);var n=je("%Object.getOwnPropertyDescriptor%",true);var o=je("%Object.defineProperty%",true);var s=je("%Math.max%");if(o){try{o({},"a",{value:1})}catch(l){o=null}}e.exports=function e(t){var a=r(ue,i,arguments);if(n&&o){var l=n(a,"length");if(l.configurable){o(a,"length",{value:1+s(0,t.length-(arguments.length-1))})}}return a};var a=function e(){return r(ue,t,arguments)};if(o){o(e.exports,"apply",{value:a})}else{e.exports.apply=a}}));var Re=Ne(je("String.prototype.indexOf"));var Ge=function e(t,i){var r=je(t,!!i);if(typeof r==="function"&&Re(t,".prototype.")>-1){return Ne(r)}return r};var Ze={};var He=Object.freeze({__proto__:null,default:Ze});var Ye=Q(He);var Ve=typeof Map==="function"&&Map.prototype;var Ue=Object.getOwnPropertyDescriptor&&Ve?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var We=Ve&&Ue&&typeof Ue.get==="function"?Ue.get:null;var qe=Ve&&Map.prototype.forEach;var Ke=typeof Set==="function"&&Set.prototype;var Qe=Object.getOwnPropertyDescriptor&&Ke?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Xe=Ke&&Qe&&typeof Qe.get==="function"?Qe.get:null;var Je=Ke&&Set.prototype.forEach;var $e=typeof WeakMap==="function"&&WeakMap.prototype;var et=$e?WeakMap.prototype.has:null;var tt=typeof WeakSet==="function"&&WeakSet.prototype;var it=tt?WeakSet.prototype.has:null;var rt=typeof WeakRef==="function"&&WeakRef.prototype;var nt=rt?WeakRef.prototype.deref:null;var ot=Boolean.prototype.valueOf;var st=Object.prototype.toString;var at=Function.prototype.toString;var lt=String.prototype.match;var ct=String.prototype.slice;var pt=String.prototype.replace;var ut=String.prototype.toUpperCase;var dt=String.prototype.toLowerCase;var ht=RegExp.prototype.test;var ft=Array.prototype.concat;var mt=Array.prototype.join;var gt=Array.prototype.slice;var vt=Math.floor;var yt=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var wt=Object.getOwnPropertySymbols;var bt=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var _t=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var xt=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===_t?"object":"symbol")?Symbol.toStringTag:null;var kt=Object.prototype.propertyIsEnumerable;var At=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Tt(e,t){if(e===Infinity||e===-Infinity||e!==e||e&&e>-1e3&&e<1e3||ht.call(/e/,t)){return t}var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==="number"){var r=e<0?-vt(-e):vt(e);if(r!==e){var n=String(r);var o=ct.call(t,n.length+1);return pt.call(n,i,"$&_")+"."+pt.call(pt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return pt.call(t,i,"$&_")}var Lt=Ye.custom;var Ct=jt(Lt)?Lt:null;var Et=function e(t,i,r,n){var o=i||{};if(Gt(o,"quoteStyle")&&(o.quoteStyle!=="single"&&o.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Gt(o,"maxStringLength")&&(typeof o.maxStringLength==="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var s=Gt(o,"customInspect")?o.customInspect:true;if(typeof s!=="boolean"&&s!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Gt(o,"indent")&&o.indent!==null&&o.indent!=="\t"&&!(parseInt(o.indent,10)===o.indent&&o.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Gt(o,"numericSeparator")&&typeof o.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=o.numericSeparator;if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(typeof t==="boolean"){return t?"true":"false"}if(typeof t==="string"){return Xt(t,o)}if(typeof t==="number"){if(t===0){return Infinity/t>0?"0":"-0"}var l=String(t);return a?Tt(t,l):l}if(typeof t==="bigint"){var c=String(t)+"n";return a?Tt(t,c):c}var p=typeof o.depth==="undefined"?5:o.depth;if(typeof r==="undefined"){r=0}if(r>=p&&p>0&&typeof t==="object"){return Mt(t)?"[Array]":"[Object]"}var u=ri(o,r);if(typeof n==="undefined"){n=[]}else if(Yt(n,t)>=0){return"[Circular]"}function d(t,i,s){if(i){n=gt.call(n);n.push(i)}if(s){var a={depth:o.depth};if(Gt(o,"quoteStyle")){a.quoteStyle=o.quoteStyle}return e(t,a,r+1,n)}return e(t,o,r+1,n)}if(typeof t==="function"&&!It(t)){var h=Ht(t);var f=oi(t,d);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(f.length>0?" { "+mt.call(f,", ")+" }":"")}if(jt(t)){var m=_t?pt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):bt.call(t);return typeof t==="object"&&!_t?$t(m):m}if(Qt(t)){var g="<"+dt.call(String(t.nodeName));var v=t.attributes||[];for(var y=0;y<v.length;y++){g+=" "+v[y].name+"="+St(Pt(v[y].value),"double",o)}g+=">";if(t.childNodes&&t.childNodes.length){g+="..."}g+="</"+dt.call(String(t.nodeName))+">";return g}if(Mt(t)){if(t.length===0){return"[]"}var w=oi(t,d);if(u&&!ii(w)){return"["+ni(w,u)+"]"}return"[ "+mt.call(w,", ")+" ]"}if(zt(t)){var b=oi(t,d);if(!("cause"in Error.prototype)&&"cause"in t&&!kt.call(t,"cause")){return"{ ["+String(t)+"] "+mt.call(ft.call("[cause]: "+d(t.cause),b),", ")+" }"}if(b.length===0){return"["+String(t)+"]"}return"{ ["+String(t)+"] "+mt.call(b,", ")+" }"}if(typeof t==="object"&&s){if(Ct&&typeof t[Ct]==="function"&&Ye){return Ye(t,{depth:p-r})}else if(s!=="symbol"&&typeof t.inspect==="function"){return t.inspect()}}if(Vt(t)){var _=[];if(qe){qe.call(t,(function(e,i){_.push(d(i,t,true)+" => "+d(e,t))}))}return ti("Map",We.call(t),_,u)}if(qt(t)){var x=[];if(Je){Je.call(t,(function(e){x.push(d(e,t))}))}return ti("Set",Xe.call(t),x,u)}if(Ut(t)){return ei("WeakMap")}if(Kt(t)){return ei("WeakSet")}if(Wt(t)){return ei("WeakRef")}if(Dt(t)){return $t(d(Number(t)))}if(Nt(t)){return $t(d(yt.call(t)))}if(Ft(t)){return $t(ot.call(t))}if(Bt(t)){return $t(d(String(t)))}if(!Ot(t)&&!It(t)){var k=oi(t,d);var A=At?At(t)===Object.prototype:t instanceof Object||t.constructor===Object;var T=t instanceof Object?"":"null prototype";var L=!A&&xt&&Object(t)===t&&xt in t?ct.call(Zt(t),8,-1):T?"Object":"";var C=A||typeof t.constructor!=="function"?"":t.constructor.name?t.constructor.name+" ":"";var E=C+(L||T?"["+mt.call(ft.call([],L||[],T||[]),": ")+"] ":"");if(k.length===0){return E+"{}"}if(u){return E+"{"+ni(k,u)+"}"}return E+"{ "+mt.call(k,", ")+" }"}return String(t)};function St(e,t,i){var r=(i.quoteStyle||t)==="double"?'"':"'";return r+e+r}function Pt(e){return pt.call(String(e),/"/g,"&quot;")}function Mt(e){return Zt(e)==="[object Array]"&&(!xt||!(typeof e==="object"&&xt in e))}function Ot(e){return Zt(e)==="[object Date]"&&(!xt||!(typeof e==="object"&&xt in e))}function It(e){return Zt(e)==="[object RegExp]"&&(!xt||!(typeof e==="object"&&xt in e))}function zt(e){return Zt(e)==="[object Error]"&&(!xt||!(typeof e==="object"&&xt in e))}function Bt(e){return Zt(e)==="[object String]"&&(!xt||!(typeof e==="object"&&xt in e))}function Dt(e){return Zt(e)==="[object Number]"&&(!xt||!(typeof e==="object"&&xt in e))}function Ft(e){return Zt(e)==="[object Boolean]"&&(!xt||!(typeof e==="object"&&xt in e))}function jt(e){if(_t){return e&&typeof e==="object"&&e instanceof Symbol}if(typeof e==="symbol"){return true}if(!e||typeof e!=="object"||!bt){return false}try{bt.call(e);return true}catch(t){}return false}function Nt(e){if(!e||typeof e!=="object"||!yt){return false}try{yt.call(e);return true}catch(t){}return false}var Rt=Object.prototype.hasOwnProperty||function(e){return e in this};function Gt(e,t){return Rt.call(e,t)}function Zt(e){return st.call(e)}function Ht(e){if(e.name){return e.name}var t=lt.call(at.call(e),/^function\s*([\w$]+)/);if(t){return t[1]}return null}function Yt(e,t){if(e.indexOf){return e.indexOf(t)}for(var i=0,r=e.length;i<r;i++){if(e[i]===t){return i}}return-1}function Vt(e){if(!We||!e||typeof e!=="object"){return false}try{We.call(e);try{Xe.call(e)}catch(t){return true}return e instanceof Map}catch(i){}return false}function Ut(e){if(!et||!e||typeof e!=="object"){return false}try{et.call(e,et);try{it.call(e,it)}catch(t){return true}return e instanceof WeakMap}catch(i){}return false}function Wt(e){if(!nt||!e||typeof e!=="object"){return false}try{nt.call(e);return true}catch(t){}return false}function qt(e){if(!Xe||!e||typeof e!=="object"){return false}try{Xe.call(e);try{We.call(e)}catch(t){return true}return e instanceof Set}catch(i){}return false}function Kt(e){if(!it||!e||typeof e!=="object"){return false}try{it.call(e,it);try{et.call(e,et)}catch(t){return true}return e instanceof WeakSet}catch(i){}return false}function Qt(e){if(!e||typeof e!=="object"){return false}if(typeof HTMLElement!=="undefined"&&e instanceof HTMLElement){return true}return typeof e.nodeName==="string"&&typeof e.getAttribute==="function"}function Xt(e,t){if(e.length>t.maxStringLength){var i=e.length-t.maxStringLength;var r="... "+i+" more character"+(i>1?"s":"");return Xt(ct.call(e,0,t.maxStringLength),t)+r}var n=pt.call(pt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Jt);return St(n,"single",t)}function Jt(e){var t=e.charCodeAt(0);var i={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];if(i){return"\\"+i}return"\\x"+(t<16?"0":"")+ut.call(t.toString(16))}function $t(e){return"Object("+e+")"}function ei(e){return e+" { ? }"}function ti(e,t,i,r){var n=r?ni(i,r):mt.call(i,", ");return e+" ("+t+") {"+n+"}"}function ii(e){for(var t=0;t<e.length;t++){if(Yt(e[t],"\n")>=0){return false}}return true}function ri(e,t){var i;if(e.indent==="\t"){i="\t"}else if(typeof e.indent==="number"&&e.indent>0){i=mt.call(Array(e.indent+1)," ")}else{return null}return{base:i,prev:mt.call(Array(t+1),i)}}function ni(e,t){if(e.length===0){return""}var i="\n"+t.prev+t.base;return i+mt.call(e,","+i)+"\n"+t.prev}function oi(e,t){var i=Mt(e);var r=[];if(i){r.length=e.length;for(var n=0;n<e.length;n++){r[n]=Gt(e,n)?t(e[n],e):""}}var o=typeof wt==="function"?wt(e):[];var s;if(_t){s={};for(var a=0;a<o.length;a++){s["$"+o[a]]=o[a]}}for(var l in e){if(!Gt(e,l)){continue}if(i&&String(Number(l))===l&&l<e.length){continue}if(_t&&s["$"+l]instanceof Symbol){continue}else if(ht.call(/[^\w$]/,l)){r.push(t(l,e)+": "+t(e[l],e))}else{r.push(l+": "+t(e[l],e))}}if(typeof wt==="function"){for(var c=0;c<o.length;c++){if(kt.call(e,o[c])){r.push("["+t(o[c])+"]: "+t(e[o[c]],e))}}}return r}var si=je("%TypeError%");var ai=je("%WeakMap%",true);var li=je("%Map%",true);var ci=Ge("WeakMap.prototype.get",true);var pi=Ge("WeakMap.prototype.set",true);var ui=Ge("WeakMap.prototype.has",true);var di=Ge("Map.prototype.get",true);var hi=Ge("Map.prototype.set",true);var fi=Ge("Map.prototype.has",true);var mi=function(e,t){for(var i=e,r;(r=i.next)!==null;i=r){if(r.key===t){i.next=r.next;r.next=e.next;e.next=r;return r}}};var gi=function(e,t){var i=mi(e,t);return i&&i.value};var vi=function(e,t,i){var r=mi(e,t);if(r){r.value=i}else{e.next={key:t,next:e.next,value:i}}};var yi=function(e,t){return!!mi(e,t)};var wi=function e(){var t;var i;var r;var n={assert:function(e){if(!n.has(e)){throw new si("Side channel does not contain "+Et(e))}},get:function(e){if(ai&&e&&(typeof e==="object"||typeof e==="function")){if(t){return ci(t,e)}}else if(li){if(i){return di(i,e)}}else{if(r){return gi(r,e)}}},has:function(e){if(ai&&e&&(typeof e==="object"||typeof e==="function")){if(t){return ui(t,e)}}else if(li){if(i){return fi(i,e)}}else{if(r){return yi(r,e)}}return false},set:function(e,n){if(ai&&e&&(typeof e==="object"||typeof e==="function")){if(!t){t=new ai}pi(t,e,n)}else if(li){if(!i){i=new li}hi(i,e,n)}else{if(!r){r={key:{},next:null}}vi(r,e,n)}}};return n};var bi=String.prototype.replace;var _i=/%20/g;var xi={RFC1738:"RFC1738",RFC3986:"RFC3986"};var ki={default:xi.RFC3986,formatters:{RFC1738:function(e){return bi.call(e,_i,"+")},RFC3986:function(e){return String(e)}},RFC1738:xi.RFC1738,RFC3986:xi.RFC3986};var Ai=Object.prototype.hasOwnProperty;var Ti=Array.isArray;var Li=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var Ci=function e(t){while(t.length>1){var i=t.pop();var r=i.obj[i.prop];if(Ti(r)){var n=[];for(var o=0;o<r.length;++o){if(typeof r[o]!=="undefined"){n.push(r[o])}}i.obj[i.prop]=n}}};var Ei=function e(t,i){var r=i&&i.plainObjects?Object.create(null):{};for(var n=0;n<t.length;++n){if(typeof t[n]!=="undefined"){r[n]=t[n]}}return r};var Si=function e(t,i,r){if(!i){return t}if(typeof i!=="object"){if(Ti(t)){t.push(i)}else if(t&&typeof t==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!Ai.call(Object.prototype,i)){t[i]=true}}else{return[t,i]}return t}if(!t||typeof t!=="object"){return[t].concat(i)}var n=t;if(Ti(t)&&!Ti(i)){n=Ei(t,r)}if(Ti(t)&&Ti(i)){i.forEach((function(i,n){if(Ai.call(t,n)){var o=t[n];if(o&&typeof o==="object"&&i&&typeof i==="object"){t[n]=e(o,i,r)}else{t.push(i)}}else{t[n]=i}}));return t}return Object.keys(i).reduce((function(t,n){var o=i[n];if(Ai.call(t,n)){t[n]=e(t[n],o,r)}else{t[n]=o}return t}),n)};var Pi=function e(t,i){return Object.keys(i).reduce((function(e,t){e[t]=i[t];return e}),t)};var Mi=function(e,t,i){var r=e.replace(/\+/g," ");if(i==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var Oi=function e(t,i,r,n,o){if(t.length===0){return t}var s=t;if(typeof t==="symbol"){s=Symbol.prototype.toString.call(t)}else if(typeof t!=="string"){s=String(t)}if(r==="iso-8859-1"){return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<s.length;++l){var c=s.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===ki.RFC1738&&(c===40||c===41)){a+=s.charAt(l);continue}if(c<128){a=a+Li[c];continue}if(c<2048){a=a+(Li[192|c>>6]+Li[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Li[224|c>>12]+Li[128|c>>6&63]+Li[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|s.charCodeAt(l)&1023);a+=Li[240|c>>18]+Li[128|c>>12&63]+Li[128|c>>6&63]+Li[128|c&63]}return a};var Ii=function e(t){var i=[{obj:{o:t},prop:"o"}];var r=[];for(var n=0;n<i.length;++n){var o=i[n];var s=o.obj[o.prop];var a=Object.keys(s);for(var l=0;l<a.length;++l){var c=a[l];var p=s[c];if(typeof p==="object"&&p!==null&&r.indexOf(p)===-1){i.push({obj:s,prop:c});r.push(p)}}}Ci(i);return t};var zi=function e(t){return Object.prototype.toString.call(t)==="[object RegExp]"};var Bi=function e(t){if(!t||typeof t!=="object"){return false}return!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))};var Di=function e(t,i){return[].concat(t,i)};var Fi=function e(t,i){if(Ti(t)){var r=[];for(var n=0;n<t.length;n+=1){r.push(i(t[n]))}return r}return i(t)};var ji={arrayToObject:Ei,assign:Pi,combine:Di,compact:Ii,decode:Mi,encode:Oi,isBuffer:Bi,isRegExp:zi,maybeMap:Fi,merge:Si};var Ni=Object.prototype.hasOwnProperty;var Ri={brackets:function e(t){return t+"[]"},comma:"comma",indices:function e(t,i){return t+"["+i+"]"},repeat:function e(t){return t}};var Gi=Array.isArray;var Zi=Array.prototype.push;var Hi=function(e,t){Zi.apply(e,Gi(t)?t:[t])};var Yi=Date.prototype.toISOString;var Vi=ki["default"];var Ui={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:ji.encode,encodeValuesOnly:false,format:Vi,formatter:ki.formatters[Vi],indices:false,serializeDate:function e(t){return Yi.call(t)},skipNulls:false,strictNullHandling:false};var Wi=function e(t){return typeof t==="string"||typeof t==="number"||typeof t==="boolean"||typeof t==="symbol"||typeof t==="bigint"};var qi={};var Ki=function e(t,i,r,n,o,s,a,l,c,p,u,d,h,f,m,g){var v=t;var y=g;var w=0;var b=false;while((y=y.get(qi))!==void undefined&&!b){var _=y.get(t);w+=1;if(typeof _!=="undefined"){if(_===w){throw new RangeError("Cyclic object value")}else{b=true}}if(typeof y.get(qi)==="undefined"){w=0}}if(typeof l==="function"){v=l(i,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&Gi(v)){v=ji.maybeMap(v,(function(e){if(e instanceof Date){return u(e)}return e}))}if(v===null){if(o){return a&&!f?a(i,Ui.encoder,m,"key",d):i}v=""}if(Wi(v)||ji.isBuffer(v)){if(a){var x=f?i:a(i,Ui.encoder,m,"key",d);return[h(x)+"="+h(a(v,Ui.encoder,m,"value",d))]}return[h(i)+"="+h(String(v))]}var k=[];if(typeof v==="undefined"){return k}var A;if(r==="comma"&&Gi(v)){if(f&&a){v=ji.maybeMap(v,a)}A=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(Gi(l)){A=l}else{var T=Object.keys(v);A=c?T.sort(c):T}var L=n&&Gi(v)&&v.length===1?i+"[]":i;for(var C=0;C<A.length;++C){var E=A[C];var S=typeof E==="object"&&typeof E.value!=="undefined"?E.value:v[E];if(s&&S===null){continue}var P=Gi(v)?typeof r==="function"?r(L,E):L:L+(p?"."+E:"["+E+"]");g.set(t,w);var M=wi();M.set(qi,g);Hi(k,e(S,P,r,n,o,s,r==="comma"&&f&&Gi(v)?null:a,l,c,p,u,d,h,f,m,M))}return k};var Qi=function e(t){if(!t){return Ui}if(t.encoder!==null&&typeof t.encoder!=="undefined"&&typeof t.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var i=t.charset||Ui.charset;if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=ki["default"];if(typeof t.format!=="undefined"){if(!Ni.call(ki.formatters,t.format)){throw new TypeError("Unknown format option provided.")}r=t.format}var n=ki.formatters[r];var o=Ui.filter;if(typeof t.filter==="function"||Gi(t.filter)){o=t.filter}return{addQueryPrefix:typeof t.addQueryPrefix==="boolean"?t.addQueryPrefix:Ui.addQueryPrefix,allowDots:typeof t.allowDots==="undefined"?Ui.allowDots:!!t.allowDots,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:Ui.charsetSentinel,delimiter:typeof t.delimiter==="undefined"?Ui.delimiter:t.delimiter,encode:typeof t.encode==="boolean"?t.encode:Ui.encode,encoder:typeof t.encoder==="function"?t.encoder:Ui.encoder,encodeValuesOnly:typeof t.encodeValuesOnly==="boolean"?t.encodeValuesOnly:Ui.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:typeof t.serializeDate==="function"?t.serializeDate:Ui.serializeDate,skipNulls:typeof t.skipNulls==="boolean"?t.skipNulls:Ui.skipNulls,sort:typeof t.sort==="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:Ui.strictNullHandling}};var Xi=function(e,t){var i=e;var r=Qi(t);var n;var o;if(typeof r.filter==="function"){o=r.filter;i=o("",i)}else if(Gi(r.filter)){o=r.filter;n=o}var s=[];if(typeof i!=="object"||i===null){return""}var a;if(t&&t.arrayFormat in Ri){a=t.arrayFormat}else if(t&&"indices"in t){a=t.indices?"indices":"repeat"}else{a="indices"}var l=Ri[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&t&&t.commaRoundTrip;if(!n){n=Object.keys(i)}if(r.sort){n.sort(r.sort)}var p=wi();for(var u=0;u<n.length;++u){var d=n[u];if(r.skipNulls&&i[d]===null){continue}Hi(s,Ki(i[d],d,l,c,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,p))}var h=s.join(r.delimiter);var f=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){f+="utf8=%26%2310003%3B&"}else{f+="utf8=%E2%9C%93&"}}return h.length>0?f+h:""};var Ji=Object.prototype.hasOwnProperty;var $i=Array.isArray;var er={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:ji.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var tr=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))};var ir=function(e,t){if(e&&typeof e==="string"&&t.comma&&e.indexOf(",")>-1){return e.split(",")}return e};var rr="utf8=%26%2310003%3B";var nr="utf8=%E2%9C%93";var or=function e(t,i){var r={__proto__:null};var n=i.ignoreQueryPrefix?t.replace(/^\?/,""):t;var o=i.parameterLimit===Infinity?undefined:i.parameterLimit;var s=n.split(i.delimiter,o);var a=-1;var l;var c=i.charset;if(i.charsetSentinel){for(l=0;l<s.length;++l){if(s[l].indexOf("utf8=")===0){if(s[l]===nr){c="utf-8"}else if(s[l]===rr){c="iso-8859-1"}a=l;l=s.length}}}for(l=0;l<s.length;++l){if(l===a){continue}var p=s[l];var u=p.indexOf("]=");var d=u===-1?p.indexOf("="):u+1;var h,f;if(d===-1){h=i.decoder(p,er.decoder,c,"key");f=i.strictNullHandling?null:""}else{h=i.decoder(p.slice(0,d),er.decoder,c,"key");f=ji.maybeMap(ir(p.slice(d+1),i),(function(e){return i.decoder(e,er.decoder,c,"value")}))}if(f&&i.interpretNumericEntities&&c==="iso-8859-1"){f=tr(f)}if(p.indexOf("[]=")>-1){f=$i(f)?[f]:f}if(Ji.call(r,h)){r[h]=ji.combine(r[h],f)}else{r[h]=f}}return r};var sr=function(e,t,i,r){var n=r?t:ir(t,i);for(var o=e.length-1;o>=0;--o){var s;var a=e[o];if(a==="[]"&&i.parseArrays){s=[].concat(n)}else{s=i.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a;var c=parseInt(l,10);if(!i.parseArrays&&l===""){s={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(i.parseArrays&&c<=i.arrayLimit)){s=[];s[c]=n}else if(l!=="__proto__"){s[l]=n}}n=s}return n};var ar=function e(t,i,r,n){if(!t){return}var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;var s=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&s.exec(o);var c=l?o.slice(0,l.index):o;var p=[];if(c){if(!r.plainObjects&&Ji.call(Object.prototype,c)){if(!r.allowPrototypes){return}}p.push(c)}var u=0;while(r.depth>0&&(l=a.exec(o))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&Ji.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}p.push(l[1])}if(l){p.push("["+o.slice(l.index)+"]")}return sr(p,i,r,n)};var lr=function e(t){if(!t){return er}if(t.decoder!==null&&t.decoder!==undefined&&typeof t.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof t.charset!=="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var i=typeof t.charset==="undefined"?er.charset:t.charset;return{allowDots:typeof t.allowDots==="undefined"?er.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes==="boolean"?t.allowPrototypes:er.allowPrototypes,allowSparse:typeof t.allowSparse==="boolean"?t.allowSparse:er.allowSparse,arrayLimit:typeof t.arrayLimit==="number"?t.arrayLimit:er.arrayLimit,charset:i,charsetSentinel:typeof t.charsetSentinel==="boolean"?t.charsetSentinel:er.charsetSentinel,comma:typeof t.comma==="boolean"?t.comma:er.comma,decoder:typeof t.decoder==="function"?t.decoder:er.decoder,delimiter:typeof t.delimiter==="string"||ji.isRegExp(t.delimiter)?t.delimiter:er.delimiter,depth:typeof t.depth==="number"||t.depth===false?+t.depth:er.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities==="boolean"?t.interpretNumericEntities:er.interpretNumericEntities,parameterLimit:typeof t.parameterLimit==="number"?t.parameterLimit:er.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects==="boolean"?t.plainObjects:er.plainObjects,strictNullHandling:typeof t.strictNullHandling==="boolean"?t.strictNullHandling:er.strictNullHandling}};var cr=function(e,t){var i=lr(t);if(e===""||e===null||typeof e==="undefined"){return i.plainObjects?Object.create(null):{}}var r=typeof e==="string"?or(e,i):e;var n=i.plainObjects?Object.create(null):{};var o=Object.keys(r);for(var s=0;s<o.length;++s){var a=o[s];var l=ar(a,r[a],i,typeof e==="string");n=ji.merge(n,l,i)}if(i.allowSparse===true){return n}return ji.compact(n)};var pr={formats:ki,parse:cr,stringify:Xi};function ur(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null}var dr=/^([a-z0-9.+-]+:)/i,hr=/:[0-9]*$/,fr=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,mr=["<",">",'"',"`"," ","\r","\n","\t"],gr=["{","}","|","\\","^","`"].concat(mr),vr=["'"].concat(gr),yr=["%","/","?",";","#"].concat(vr),wr=["/","?","#"],br=255,_r=/^[+a-z0-9A-Z_-]{0,63}$/,xr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,kr={javascript:true,"javascript:":true},Ar={javascript:true,"javascript:":true},Tr={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function Lr(e,t,i){if(e&&typeof e==="object"&&e instanceof ur){return e}var r=new ur;r.parse(e,t,i);return r}ur.prototype.parse=function(e,t,i){if(typeof e!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof e)}var r=e.indexOf("?"),n=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(n),s=/\\/g;o[0]=o[0].replace(s,"/");e=o.join(n);var a=e;a=a.trim();if(!i&&e.split("#").length===1){var l=fr.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(t){this.query=pr.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(t){this.search="";this.query={}}return this}}var c=dr.exec(a);if(c){c=c[0];var p=c.toLowerCase();this.protocol=p;a=a.substr(c.length)}if(i||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&Ar[c])){a=a.substr(2);this.slashes=true}}if(!Ar[c]&&(u||c&&!Tr[c])){var d=-1;for(var h=0;h<wr.length;h++){var f=a.indexOf(wr[h]);if(f!==-1&&(d===-1||f<d)){d=f}}var m,g;if(d===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",d)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}d=-1;for(var h=0;h<yr.length;h++){var f=a.indexOf(yr[h]);if(f!==-1&&(d===-1||f<d)){d=f}}if(d===-1){d=a.length}this.host=a.slice(0,d);a=a.slice(d);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var y=this.hostname.split(/\./);for(var h=0,w=y.length;h<w;h++){var b=y[h];if(!b){continue}if(!b.match(_r)){var _="";for(var x=0,k=b.length;x<k;x++){if(b.charCodeAt(x)>127){_+="x"}else{_+=b[x]}}if(!_.match(_r)){var A=y.slice(0,h);var T=y.slice(h+1);var L=b.match(xr);if(L){A.push(L[1]);T.unshift(L[2])}if(T.length){a="/"+T.join(".")+a}this.hostname=A.join(".");break}}}}if(this.hostname.length>br){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=$.toASCII(this.hostname)}var C=this.port?":"+this.port:"";var E=this.hostname||"";this.host=E+C;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!kr[p]){for(var h=0,w=vr.length;h<w;h++){var S=vr[h];if(a.indexOf(S)===-1){continue}var P=encodeURIComponent(S);if(P===S){P=escape(S)}a=a.split(S).join(P)}}var M=a.indexOf("#");if(M!==-1){this.hash=a.substr(M);a=a.slice(0,M)}var O=a.indexOf("?");if(O!==-1){this.search=a.substr(O);this.query=a.substr(O+1);if(t){this.query=pr.parse(this.query)}a=a.slice(0,O)}else if(t){this.search="";this.query={}}if(a){this.pathname=a}if(Tr[p]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var C=this.pathname||"";var I=this.search||"";this.path=C+I}this.href=this.format();return this};function Cr(e){if(typeof e==="string"){e=Lr(e)}if(!(e instanceof ur)){return ur.prototype.format.call(e)}return e.format()}ur.prototype.format=function(){var e=this.auth||"";if(e){e=encodeURIComponent(e);e=e.replace(/%3A/i,":");e+="@"}var t=this.protocol||"",i=this.pathname||"",r=this.hash||"",n=false,o="";if(this.host){n=e+this.host}else if(this.hostname){n=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]");if(this.port){n+=":"+this.port}}if(this.query&&typeof this.query==="object"&&Object.keys(this.query).length){o=pr.stringify(this.query)}var s=this.search||o&&"?"+o||"";if(t&&t.substr(-1)!==":"){t+=":"}if(this.slashes||(!t||Tr[t])&&n!==false){n="//"+(n||"");if(i&&i.charAt(0)!=="/"){i="/"+i}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(s&&s.charAt(0)!=="?"){s="?"+s}i=i.replace(/[?#]/g,(function(e){return encodeURIComponent(e)}));s=s.replace("#","%23");return t+n+i+s+r};function Er(e,t){return Lr(e,false,true).resolve(t)}ur.prototype.resolve=function(e){return this.resolveObject(Lr(e,false,true)).format()};function Sr(e,t){if(!e){return t}return Lr(e,false,true).resolveObject(t)}ur.prototype.resolveObject=function(e){if(typeof e==="string"){var t=new ur;t.parse(e,false,true);e=t}var i=new ur;var r=Object.keys(this);for(var n=0;n<r.length;n++){var o=r[n];i[o]=this[o]}i.hash=e.hash;if(e.href===""){i.href=i.format();return i}if(e.slashes&&!e.protocol){var s=Object.keys(e);for(var a=0;a<s.length;a++){var l=s[a];if(l!=="protocol"){i[l]=e[l]}}if(Tr[i.protocol]&&i.hostname&&!i.pathname){i.pathname="/";i.path=i.pathname}i.href=i.format();return i}if(e.protocol&&e.protocol!==i.protocol){if(!Tr[e.protocol]){var c=Object.keys(e);for(var p=0;p<c.length;p++){var u=c[p];i[u]=e[u]}i.href=i.format();return i}i.protocol=e.protocol;if(!e.host&&!Ar[e.protocol]){var d=(e.pathname||"").split("/");while(d.length&&!(e.host=d.shift())){}if(!e.host){e.host=""}if(!e.hostname){e.hostname=""}if(d[0]!==""){d.unshift("")}if(d.length<2){d.unshift("")}i.pathname=d.join("/")}else{i.pathname=e.pathname}i.search=e.search;i.query=e.query;i.host=e.host||"";i.auth=e.auth;i.hostname=e.hostname||e.host;i.port=e.port;if(i.pathname||i.search){var h=i.pathname||"";var f=i.search||"";i.path=h+f}i.slashes=i.slashes||e.slashes;i.href=i.format();return i}var m=i.pathname&&i.pathname.charAt(0)==="/",g=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=g||m||i.host&&e.pathname,y=v,w=i.pathname&&i.pathname.split("/")||[],d=e.pathname&&e.pathname.split("/")||[],b=i.protocol&&!Tr[i.protocol];if(b){i.hostname="";i.port=null;if(i.host){if(w[0]===""){w[0]=i.host}else{w.unshift(i.host)}}i.host="";if(e.protocol){e.hostname=null;e.port=null;if(e.host){if(d[0]===""){d[0]=e.host}else{d.unshift(e.host)}}e.host=null}v=v&&(d[0]===""||w[0]==="")}if(g){i.host=e.host||e.host===""?e.host:i.host;i.hostname=e.hostname||e.hostname===""?e.hostname:i.hostname;i.search=e.search;i.query=e.query;w=d}else if(d.length){if(!w){w=[]}w.pop();w=w.concat(d);i.search=e.search;i.query=e.query}else if(e.search!=null){if(b){i.host=w.shift();i.hostname=i.host;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}i.search=e.search;i.query=e.query;if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.href=i.format();return i}if(!w.length){i.pathname=null;if(i.search){i.path="/"+i.search}else{i.path=null}i.href=i.format();return i}var x=w.slice(-1)[0];var k=(i.host||e.host||w.length>1)&&(x==="."||x==="..")||x==="";var A=0;for(var T=w.length;T>=0;T--){x=w[T];if(x==="."){w.splice(T,1)}else if(x===".."){w.splice(T,1);A++}else if(A){w.splice(T,1);A--}}if(!v&&!y){for(;A--;A){w.unshift("..")}}if(v&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")){w.unshift("")}if(k&&w.join("/").substr(-1)!=="/"){w.push("")}var L=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(b){i.hostname=L?"":w.length?w.shift():"";i.host=i.hostname;var _=i.host&&i.host.indexOf("@")>0?i.host.split("@"):false;if(_){i.auth=_.shift();i.hostname=_.shift();i.host=i.hostname}}v=v||i.host&&w.length;if(v&&!L){w.unshift("")}if(w.length>0){i.pathname=w.join("/")}else{i.pathname=null;i.path=null}if(i.pathname!==null||i.search!==null){i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")}i.auth=e.auth||i.auth;i.slashes=i.slashes||e.slashes;i.href=i.format();return i};ur.prototype.parseHost=function(){var e=this.host;var t=hr.exec(e);if(t){t=t[0];if(t!==":"){this.port=t.substr(1)}e=e.substr(0,e.length-t.length)}if(e){this.hostname=e}};var Pr=Lr;var Mr=Er;var Or=Sr;var Ir=Cr;var zr=ur;var Br={parse:Pr,resolve:Mr,resolveObject:Or,format:Ir,Url:zr};!function(e){e()}((function(){var e={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"}},i=6e4,r=60*i,n=24*r;function o(e,t){return new URL(e,e.startsWith("../")||e.startsWith("./")?t:void 0).toString()}function s(e,t){var i=g("a","",{href:e,target:"_new",download:t||"",style:"display:none;"}),r=document.body;r.appendChild(i),i.click(),r.removeChild(i)}function a(e,t,i){var r=this;return e&&function(n){var o=n.props,s=n.point,a=n.id,c=n.isMulti;if(o)for(var p=0,u=e;p<u.length;p++){var d=u[p];if(d in o){s.meta[t]=(i||l).call(r,c?o[d][c]:o[d],a);break}}}}var l=function(e,t){return parseInt("object"==typeof e?e[t]:e)},c=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.addClass(e,t)}))},p=function(e,t){return e&&t.split(" ").every((function(t){return t&&L.DomUtil.removeClass(e,t)}))},u=function(e,t,i){return(i?c:p)(e,t)},d=function(e,t,i){return t&&p(e,t)||i&&c(e,i)},h=function(e,t,i){return void 0===i&&L.DomUtil.getStyle(e,t)||e.style.setProperty(t,i)},f=function(e,t){for(var i in t)e.setAttribute(i,t[i])},m=function(e,t,i,r){return e[r?"on":"off"](t,i)},g=function(e,t,i,r){var n=L.DomUtil.create(e,t||"");return i&&f(n,i),r&&v(r,n),n},v=function(e,t){return e.appendChild(t)},y=function(e,t,i){return e.insertAdjacentElement(i,t)},w=function(e,t){return(t||document).querySelector(e)},b=function(e,t){for(var i in e)t(e[i],i)},_=function(){return Math.random().toString(36).substr(2,9)},x=L.DomEvent,k=x.on,A=x.off,T=L.Util,C=T.throttle,E=T.wrapNum,S=L.DomUtil.hasClass,P=L.Util.formatNum,M=function(e,t){return t?e<t[0]?t[0]:e>t[1]?t[1]:e:e},O=function(e,t,i){return Math.abs(e-t)>i?t+i*Math.sign(e-t):e};function I(e,t,i){if(t===void 0){t=[]}if(i===void 0){i=[]}switch(!e||typeof e){case"object":var r=i.filter((function(t){return e===t.original}))[0];if(r)return r.copy;var n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i.push({original:e,copy:n}),Object.getOwnPropertyNames(e).forEach((function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:t.includes(r)?o.value:I(o.value,t,i)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof e+"s not fully supported:",e);default:return e}}var z=Object.freeze({__proto__:null,Colors:e,addClass:c,append:v,clamp:M,cloneDeep:I,coordPropsToMeta:a,create:g,drawCanvas:function(e,t){t.classed("canvas-path",!0),e.beginPath(),e.moveTo(0,0);var i=new Path2D(t.attr("d"));e.strokeStyle=t.attr("stroke"),e.fillStyle=t.attr("fill"),e.lineWidth=1.25,e.globalCompositeOperation="source-over",e.globalAlpha=t.attr("stroke-opacity")||.3,e.stroke(i),e.globalAlpha=t.attr("fill-opacity")||.45,e.fill(i),e.globalAlpha=1,e.closePath()},each:b,formatDate:function(e){return e?"time"==e?function(e){return new Date(e).toLocaleTimeString()}:"date"==e?function(e){return new Date(e).toLocaleDateString()}:function(t){return e(t)}:function(e){return new Date(e).toLocaleString().replaceAll("/","-").replaceAll(","," ")}},formatTime:function(e){var t=Math.floor(e/n),o=Math.floor((e-t*n)/r),s=Math.floor((e-t*n-o*r)/i),a=Math.round((e-t*n-o*r-s*i)/1e3);return 60===a&&(s++,a=0),60===s&&(o++,s=0),24===o&&(t++,o=0),(t?t+"d ":"")+o.toString().padStart(2,0)+":"+s.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:S,iAvg:function(e,t,i){if(t===void 0){t=0}if(i===void 0){i=1}return(e+t*(i-1))/i},iMax:function(e,t){if(t===void 0){t=-1/0}return e>t?e:t},iMin:function(e,t){if(t===void 0){t=1/0}return e<t?e:t},iSum:function(e,t){if(t===void 0){t=0}return e+t},insert:y,off:A,on:k,parseDate:function(e,t){return new Date(Date.parse("object"==typeof e?e[t]:e))},parseNumeric:l,randomId:_,removeClass:p,replaceClass:d,resolveURL:o,round:P,saveFile:s,select:w,setAttributes:f,style:h,throttle:C,toggleClass:u,toggleEvent:m,toggleStyle:function(e,t,i,r){return h(e,t,r?i:"")},wrapDelta:O,wrapNum:E}),B={autofitBounds:!0,autohide:!1,autohideMarker:!0,almostover:!0,altitude:!0,closeBtn:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",edgeScale:{bar:!0,icon:!1,coords:!1},followMarker:!0,imperial:!1,legend:!0,handlers:["Distance","Time","Altitude","Slope","Speed","Acceleration"],hotline:"elevation",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,theme:"lightblue-theme",summary:"inline",slope:!1,speed:!1,time:!0,timeFactor:3600,timestamps:!1,trkStart:{className:"start-marker",radius:6,weight:2,color:"#fff",fillColor:"#00d800",fillOpacity:1,interactive:!1},trkEnd:{className:"end-marker",radius:6,weight:2,color:"#fff",fillColor:"#ff0606",fillOpacity:1,interactive:!1},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",yAttr:"z",yLabel:"m",zFollow:!1,zooming:!L.Browser.Mobile,margins:{top:30,right:30,bottom:30,left:40},height:.3*screen.height||200,width:.6*screen.width||600,xTicks:void 0,yTicks:void 0,decimalsX:2,decimalsY:0,forceAxisBounds:!1,interpolation:"curveLinear",yAxisMax:void 0,yAxisMin:void 0,srcFolder:(document.currentScript&&document.currentScript.src||{url:"undefined"==typeof document&&"undefined"==typeof location?Br.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href}&&("undefined"==typeof document&&"undefined"==typeof location?Br.pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("leaflet-elevation.min.js",document.baseURI).href)).split("/").slice(0,-1).join("/")+"/"};L._&&L.i18n||(L._=L.i18n=function(e,t){return e});var D=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:B,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@7.8.4/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@5.6.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.10.1/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LHOTLINE:"../libs/leaflet-hotline.min.js",__LDISTANCEM:"../libs/leaflet-distance-marker.min.js",__LEDGESCALE:"../libs/leaflet-edgescale.min.js",__LCHART:"../src/components/chart.js",__LMARKER:"../src/components/marker.js",__LSUMMARY:"../src/components/summary.js",__modulesFolder:"../src/handlers/",__btnIcon:"../images/elevation.svg",addData:function(e,t){var i=this;this.import(this.__D3).then((function(){i._modulesLoaded?(t=t!==null&&t!==void 0?t:e.on&&e,i._addData(e),i._addLayer(t),i._fireEvt("eledata_added",{data:e,layer:t,track_info:i.track_info})):i.once("modules_loaded",(function(){return i.addData(e,t)}))}))},addTo:function(e){if(this.options.detached){var t=w(this.options.elevationDiv),i=this.onAdd(e);t?v(t,i):y(e.getContainer(),i,"afterend")}else L.Control.prototype.addTo.call(this,e);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(this._layers),this._markers&&this._clearLayers(this._markers),this._circleMarkers&&this._circleMarkers.remove(),this._hotline&&this._hotline.eachLayer((function(e){return e.options.renderer.remove()})),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart:function(){var e=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(t){var i=t.fn,r=t.ctx;return e.off("elechart_updated",i,r)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers:function(e){(e=e||this._layers)&&e.eachLayer&&(e.eachLayer((function(e){return e.remove()})),e.clearLayers())},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush:function(){this._chart._brushEnabled=!0},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom:function(){this._chart._zoomEnabled=!0},fitBounds:function(e){e=e||this.getBounds(),this._map&&e.isValid()&&this._map.fitBounds(e)},getBounds:function(e){return L.latLngBounds((e||this._data).map((function(e){return e.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){h(this._container,"display","none")},initialize:function(t){t=L.setOptions(this,L.extend({},I(B),t)),this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._hotline=L.featureGroup(),this._circleMarkers=L.featureGroup(),this._markedSegments=L.polyline([]),this._start=L.circleMarker([0,0],t.trkStart||B.trkStart),this._end=L.circleMarker([0,0],t.trkEnd||B.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},t.followMarker&&(this._setMapView=C(this._setMapView,300,this)),t.legend&&(t.margins.bottom+=30),t.theme&&(t.polylineSegments.className+=" "+t.theme),!0===t.wptIcons&&(t.wptIcons=B.wptIcons),!0===t.distanceMarkers&&(t.distanceMarkers=B.distanceMarkers),t.trkStart&&this._start.addTo(this._circleMarkers),t.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(t.polylineSegments),L.extend(e,t.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import:function(e,i){switch(e){case this.__D3:i="object"!=typeof d3;break;case this.__TOGEOJSON:i="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:i="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:i="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:i="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:i="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:i="function"!=typeof L.Hotline}return!1!==i?t.import(o(e,this.options.srcFolder)):Promise.resolve()},load:function(e){var t=this;this._parseFromString(e).then((function(i){return i?t._loadLayer(i):t._loadFile(e)}))},onAdd:function(e){var t=this;this._map=e;var i=this._container=g("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+_()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((function(){t._initChart(i),t._initButton(i),t._initSummary(i),t._initMarker(e),t._initLayer(e),t._modulesLoaded=!0,t.fire("modules_loaded")})),this.fire("add"),i},onRemove:function(e){this._container=null,e.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),A(e.getContainer(),"mousewheel",this._resetDrag,this),A(e.getContainer(),"touchstart",this._resetDrag,this),A(document,"keydown",this._onKeyDown,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this),this.fire("remove")},redraw:function(){this._resizeChart()},setZFollow:function(e){this.options.zFollow=e},show:function(){h(this._container,"display","block")},_addData:function(e){var t=this;if(e){if("FeatureCollection"===e.type)return b(e.features,(function(e){return t._addData(e)}));if("Feature"===e.type){var i=e.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,e.properties);case"MultiLineString":return b(i.coordinates,(function(i,r){return t._addGeoJSONData(i,e.properties,r)}));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return e._latlngs?this._addGeoJSONData(e._latlngs,e.feature&&e.feature.properties):void 0}},_addGeoJSONData:function(e,t,i){var r=this;var n=t&&t.coordinateProperties||t;e.forEach((function(e,t){var o,s,a,l,c;e.meta=(o=e.meta)!==null&&o!==void 0?o:{time:null,ele:null},e.prev=function(e){return e?r._data[t>0?t-1:0][e]:r._data[t>0?t-1:0]},r.fire("elepoint_init",{point:e,props:n,id:t,isMulti:i}),r._addPoint((s=e.lat)!==null&&s!==void 0?s:e[1],(a=e.lng)!==null&&a!==void 0?a:e[0],(c=(l=e.alt)!==null&&l!==void 0?l:e.meta.ele)!==null&&c!==void 0?c:e[2]),r.fire("elepoint_added",{point:e,index:r._data.length-1}),r._yCoordMax<r._data[r._data.length-1][r.options.yAttr]&&(r._yCoordMax=r._data[r._data.length-1][r.options.yAttr])})),this.fire("eletrack_added",{coords:e,index:this._data.length-1})},_addPoint:function(e,t,i){var r;this.options.reverseCoords&&(r=[t,e],e=r[0],t=r[1],r),this._data.push({x:e,y:t,z:i,latlng:L.latLng(e,t,i)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer:function(e){return e&&this._layers.addLayer(e),e&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&e.on("add remove",(function(e){var t=e.target,i=e.type;return L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]()})),e},_addMarker:function(e){return e&&this._markers.addLayer(e),e},_initAlmostOverHandler:function(e,t){var i=this;return e&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((function(){e.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&e.almostOver&&e.almostOver.enabled()&&(e.almostOver.addLayer(t),e.on("almost:move",i._onMouseMoveLayer,i).on("almost:out",i._onMouseOut,i),i.once("eledata_clear",(function(){e.almostOver.removeLayer(t),e.off("almost:move",i._onMouseMoveLayer,i).off("almost:out",i._onMouseOut,i)})))})):Promise.resolve()},_initDistanceMarkers:function(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale:function(e){var t=this;return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((function(){e.edgeScaleControl=e.edgeScaleControl||L.control.edgeScale("boolean"!=typeof t.options.edgeScale?t.options.edgeScale:{}).addTo(e)})):Promise.resolve()},_initHotLine:function(e){var t=this;var i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((function(){e.eachLayer((function(e){if("Point"!=e.feature.geometry.type){var r=L.geoJson(e.toGeoJSON(),{coordsToLatLng:function(e){return L.latLng(e[0],e[1],e[2]*(t.options.altitudeFactor||1))}}),n=L.hotline(r.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(t.track_info[i+"_min"])?t.track_info[i+"_min"]:0,max:isFinite(t.track_info[i+"_max"])?t.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(t._hotline),o=e.options.style&&e.options.style.opacity||1;e.on("add remove",(function(t){var i=t.type;e.setStyle({opacity:"add"==i?0:o}),n["add"==i?"addTo":"removeFrom"](e._map),n._renderer&&n._renderer._container.parentElement.insertBefore(n._renderer._container,n._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations:function(e){var t=this;var i=this._map;i?(this._data.length&&(this._start.setLatLng(this._data[0].latlng),this._end.setLatLng(this._data[this._data.length-1].latlng)),Promise.all([this._initHotLine(e),this._initAlmostOverHandler(i,e),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((function(){t.options.polyline&&(t._layers.addLayer(e.addTo(i)),t._circleMarkers.addTo(i)),t.options.autofitBounds&&t.fitBounds(e.getBounds()),i.invalidateSize()}))):this.once("add",(function(){return t._initMapIntegrations(e)}))},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,i=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=e[r]||{};L.Canvas.include({_fillStroke:function(e,o){if(i._layers.hasLayer(o)){var s=o.options;if(s.color=n.line||n.area||r,s.stroke=!!s.color,t.call(this,e,o),s.stroke&&0!==s.weight){var a=e.globalCompositeOperation||"source-over";e.globalCompositeOperation="destination-over",e.strokeStyle=n.outline||"#FFF",e.lineWidth=1.75*s.weight,e.stroke(),e.globalCompositeOperation=a}}else t.call(this,e,o)}})},_fixTooltipSize:function(){var e=this;this.on("elechart_init",(function(){return e.once("elechart_change elechart_hover",(function(t){var i=t.data,r=t.xCoord;e._chartEnabled&&(e._chart._showDiagramIndicator(i,r),e._chart._showDiagramIndicator(i,r)),e._updateMarker(i)}))}))},_findItemForLatLng:function(e){return this._data[this._chart._findIndexForLatLng(e)]},_findItemForX:function(e){return this._data[this._chart._findIndexForXCoord(e)]},_fireEvt:function(e,t,i){this.fire&&this.fire(e,t,i),this._map&&this._map.fire(e,t,i)},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove()},_initChart:function(e){var t=this;var i=this.options,r=this._map;if(i.detached){var n=this.eleDiv,o=n.offsetWidth,s=n.offsetHeight;o>0&&(i.width=o),s>20&&(i.height=s-20)}else{var a=r.getContainer().clientWidth;i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>a&&(i.width=a-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((function(n){var o=t._chart=new(n[1]||D).Chart(i,t);t._x=t._chart._x,t._y=t._chart._y,d3.select(e).call(o.render()),o.on("reset_drag",t._hideMarker,t).on("mouse_enter",t._onMouseEnter,t).on("dragged",t._onDragEnd,t).on("mouse_move",t._onMouseMove,t).on("mouse_out",t._onMouseOut,t).on("ruler_filter",t._onRulerFilter,t).on("zoom",t._updateChart,t).on("elepath_toggle",t._onToggleChart,t).on("margins_updated",t._resizeChart,t),t.fire("elechart_init"),r.on("zoom viewreset zoomanim",t._hideMarker,t).on("resize",t._resetView,t).on("resize",t._resizeChart,t).on("rotate",t._rotateMarker,t).on("mousedown",t._resetDrag,t),k(r.getContainer(),"mousewheel",t._resetDrag,t),k(r.getContainer(),"touchstart",t._resetDrag,t),k(document,"keydown",t._onKeyDown,t),t.on("eledata_added eledata_loaded",t._updateChart,t).on("eledata_added eledata_loaded",t._updateSummary,t),t._updateChart(),t._updateSummary()}))},_initLayer:function(){var e=this;this._layers.on("layeradd layerremove",(function(t){var i=t.layer,r=t.type;var n=i.getElement&&i.getElement();u(n,e.options.polyline.className+" "+e.options.theme,"layeradd"==r),m(i,"mousemove",e._onMouseMoveLayer.bind(e),"layeradd"==r),m(i,"mouseout",e._onMouseOut.bind(e),"layeradd"==r)}))},_initMarker:function(e){var t=this;var i=e.getPane("elevationPane");i||(i=this._pane=e.createPane("elevationPane",e.getPane("norotatePane")||e.getPane("mapPane")),i.style.zIndex=625,i.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),Promise.all([this.import(this.__D3),this.import(this.__LMARKER)]).then((function(e){t._marker=new(e[1]||D).Marker(t.options,t),t.fire("elechart_marker")}))},_initButton:function(e){if(L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(k(e,"mouseover",this._expand,this),k(e,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){var t=this._button=g("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},e);k(t,"click",L.DomEvent.stop),k(t,"click",this._toggle,this),k(t,"focus",this._toggle,this),fetch(o(this.__btnIcon,this.options.srcFolder)).then((function(e){return e.ok&&e.text().then((function(e){return t.innerHTML=e}))}))}},_initSummary:function(e){var t=this;this.import(this.__LSUMMARY).then((function(i){t._summary=new(i||D).Summary({summary:t.options.summary},t),t.on("elechart_init",(function(){d3.select(e).call(t._summary.render())}))}))},_loadFile:function(e){var t=this;fetch(e).then((function(e){return e.text()})).then((function(i){t._downloadURL=e,t._parseFromString(i).then((function(e){return e&&t._loadLayer(e)}))})).catch((function(e){return console.warn(e)}))},_loadModules:function(e){var t=this;var i=(e=e.map((function(e){return"string"==typeof e&&void 0!==D[e]?D[e]:e}))).map((function(e){return"string"==typeof e&&t.import(t.__modulesFolder+e.toLowerCase()+".js")||e instanceof Promise&&e||Promise.resolve()}));return Promise.all(i).then((function(i){b(i,(function(t,i){var r;var n=t&&Object.keys(t)[0];n&&(e[i]=D[n]=(r=D[n])!==null&&r!==void 0?r:t[n])})),b(e,(function(e){return["function","object"].includes(typeof e)&&t._registerHandler(e)}))}))},_loadLayer:function(e){var t=this;var i=this.options,r=i.polyline,n=i.theme,o=i.waypoints,s=i.wptIcons,a=i.wptLabels,l=i.distanceMarkers,c=L.extend({},r);n&&(c.className+=" "+n),e.name&&(this.track_info.name=e.name);var p=L.geoJson(e,{distanceMarkers:l,style:c,pointToLayer:function(e,i){if(o){var r=e.properties,n=r.desc,l=r.name,c=r.sym;if(n=n||"",l=l||"",[!0,"dots"].includes(o)&&t._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(a)?l:""}),[!0,"markers"].includes(o)&&0!=s)return t._registerMarker({latlng:i,sym:(c!==null&&c!==void 0?c:l).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(a)&&(l||n)&&decodeURI("<b>"+l+"</b>"+(n.length>0?"<br>"+n:""))})}},onEachFeature:function(e,i){return e.geometry&&"Point"!=e.geometry.type&&t.addData(e,i)}});return this.import(this.__D3).then((function(){t._initMapIntegrations(p);var i={data:e,layer:p,name:t.track_info.name,track_info:t.track_info};t._modulesLoaded?t._fireEvt("eledata_loaded",i):t.once("modules_loaded",(function(){return t._fireEvt("eledata_loaded",i)}))})),p},_onDragEnd:function(e){var t=e.dragstart,i=e.dragend;this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown:function(e){var t=e.key;this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter:function(){this.fire("elechart_enter")},_onMouseMove:function(e){var t=e.xCoord;if(this._chartEnabled&&this._data.length){var i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer:function(e){var t=e.latlng;if(this._data.length){var i=this._findItemForLatLng(t);if(i){var r=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,r),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:r})}}},_onMouseOut:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&p(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter:function(e){var t=e.coords;this._updateMapSegments(t)},_onToggleChart:function(e){var t=this;var i=e.name,r=e.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(e){return u(e.getElement&&e.getElement(),t.options.polyline.className+" "+t.options.theme,t._chartEnabled)})),this.options[i]=r||"disabled"!=this.options[i]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString:function(e){try{return JSON.parse(e)}catch(e){}},_parseFromString:function(e){var t=this;return new Promise((function(i){return t.import(t.__TOGEOJSON).then((function(){var r;try{r=t._parseFromXMLString(e.trim())}catch(i){r=t._parseFromGeoJSONString(e.toString())}r&&(r.name=r.name||(t._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(r)}))}))},_parseFromXMLString:function(e){var t;if(0!=e.indexOf("<"))throw"Invalid XML";var i=(new DOMParser).parseFromString(e,"text/xml"),r=i.documentElement.tagName.toLowerCase(),n=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";r in toGeoJSON||(r="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");var o=toGeoJSON[r](i);return o.name=n.length>0?((t=Array.from(n).find((function(e){return"trk"==e.parentElement.tagName})))!==null&&t!==void 0?t:n[0]).textContent:"",o},_registerAreaPath:function(e){var t=this;this.on("elechart_init",(function(){return t._chart._registerAreaPath(e)}))},_registerAxisGrid:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisGrid(e)}))},_registerAxisScale:function(e){var t=this;this.on("elechart_axis",(function(){return t._chart._registerAxisScale(e)}))},_registerCheckPoint:function(e){var t=this;var i=function(){return t._chart._registerCheckPoint(e)};this.on("elechart_updated",i).once("eledata_clear",(function(){return t.off("elechart_updated",i)}))},_registerDataAttribute:function(e){var t=this;e.coordPropsToMeta&&this.on("elepoint_init",(function(i){return e.coordPropsToMeta.call(t,i)}));var i,r,n,o=e.attr||e.name,s={};this.on("elepoint_added",(function(a){var l=a.index,c=a.point;if(i=l,n=r!==null&&r!==void 0?r:t._data[i],r=t._data[i],r[o]=e.pointToAttr.call(t,c,i),i>0&&isNaN(n[o])&&(isNaN(s[o])||isNaN(r[o])?isNaN(s[o])?isNaN(r[o])||(n[o]=r[o]):n[o]=s[o]:n[o]=(s[o]+r[o])/2,e.meta&&(n[e.meta]=n[o])),!isNaN(r[o])){if(s[o]=r[o],e.deltaMax&&(r[o]=O(r[o],n[o],e.deltaMax)),e.clampRange&&(r[o]=M(r[o],e.clampRange)),isNaN(e.decimals)||(r[o]=P(r[o],e.decimals)),e.stats)for(var p in e.stats){var u=(e.statsName||o)+(""!=p?"_":"");t.track_info[u+p]=e.stats[p].call(t,r[o],t.track_info[u+p],t._data.length)}e.onPointAdded&&e.onPointAdded.call(t,r[o],i,c)}}))},_registerHandler:function(e){var t=this;if("function"==typeof e)return this._registerHandler(e.call(this));var i=e.name,r=e.attr,n=e.required,o=e.deltaMax,s=e.clampRange,l=e.decimals,c=e.meta,p=e.unit,u=e.coordinateProperties,d=e.coordPropsToMeta,h=e.pointToAttr,f=e.onPointAdded,m=e.stats,g=e.statsName,v=e.grid,y=e.scale,w=e.path,_=e.tooltip,x=e.summary;(this.options[i]||n)&&(this._registerDataAttribute({name:i,attr:r,meta:c,deltaMax:o,clampRange:s,decimals:l,coordPropsToMeta:a(u,c||i,d),pointToAttr:h,onPointAdded:f,stats:m,statsName:g}),v&&this._registerAxisGrid(L.extend({name:i},v)),"summary"!==this.options[i]&&(y&&this._registerAxisScale(L.extend({name:i,label:p},y)),w&&this._registerAreaPath(L.extend({name:i},w))),(_||e.tooltips)&&b(__spreadArray([_],e.tooltips||[],true),(function(e){return e&&t._registerTooltip(L.extend({name:i},e))})),x&&(b(x,(function(e,t){return x[t]=L.extend({unit:p},e)})),this._registerSummary(x)))},_registerMarker:function(e){var t=e.latlng,i=e.sym,r=e.content;var n=this.options.wptIcons;n.hasOwnProperty(i)||(n[i]=L.divIcon(L.extend({},n[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));var o=L.marker(t,{icon:n[i]});return r&&(o.bindPopup(r,{className:"elevation-popup",keepInView:!0}).openPopup(),o.bindTooltip(r,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(o)},_registerTooltip:function(e){var t=this;e.chart&&this.on("elechart_init",(function(){return t._chart._registerTooltip(L.extend({},e,{value:e.chart}))})),e.marker&&this.on("elechart_marker",(function(){return t._marker._registerTooltip(L.extend({},e,{value:e.marker}))}))},_registerSummary:function(e){var t=this;this.on("elechart_summary",(function(){return t._summary._registerSummary(e)}))},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker()},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart:function(){if(this._container&&"none"!=h(this._container,"display")){var e=this.options,t=e.detached?(this.eleDiv||this._container).offsetWidth:M(e._maxWidth,[0,this._map.getContainer().clientWidth-30]);t&&(e.width=t,this._chart&&this._chart._chart&&(this._chart._chart._resize(e),this._updateChart())),this._updateMapSegments()}},_toggle:function(){S(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView:function(e){if(this._map&&this.options.followMarker){var t=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(e.latlng,t<i?i:t,{animate:!0,duration:.25}):this._map.getBounds().contains(e.latlng)||this._map.setView(e.latlng,t,{animate:!0,duration:.25})}},_updateChart:function(){this._chart&&this._container&&(this.fire("elechart_axis"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"))},_updateMarker:function(e){this._marker&&this._marker.update({map:this._map,item:e,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker:function(){this._marker&&this._marker.update()},_updateMapSegments:function(e){this._markedSegments.setLatLngs(e||[]),e&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary:function(){var e=this;this._summary&&(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>",w(".download a",this._summary._container).onclick=function(t){t.preventDefault();var i={downloadLink:e.options.downloadLink,confirm:s.bind(e,e._downloadURL)};"modal"==e.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=e.options.downloadLink&&!0!==e.options.downloadLink||i.confirm(),e.fire("eletrack_download",i)}))},_width:function(){if(this._chart)return this._chart._width();var e=this.options,t=e.width,i=e.margins;return t-i.left-i.right},_height:function(){if(this._chart)return this._chart._height();var e=this.options,t=e.height,i=e.margins;return t-i.top-i.bottom}});D.Utils=z,L.control.elevation=function(e){return new D(e)}}));K((function(e,t){!function(e,i){i(t)}(q,(function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var i,r=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,s=this.options.chunkInterval,a=this.options.chunkProgress,l=e.length,c=0,p=!0;if(this._map){var u=(new Date).getTime(),d=L.bind((function(){var h=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(o&&c%200==0){var f=(new Date).getTime()-h;if(s<f)break}if((i=e[c])instanceof L.LayerGroup)p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),t||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var m=i.__parent.getAllChildMarkers(),g=m[0]===i?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(i),t||this.fire("layeradd",{layer:i})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)}),this);d()}else for(var h=this._needsClustering;c<l;c++)(i=e[c])instanceof L.LayerGroup?(p&&(e=e.slice(),p=!1),this._extractNonGroupLayers(i,e),l=e.length):i.getLatLng?this.hasLayer(i)||h.push(i):n.addLayer(i);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,o=this._nonPointGroup,s=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),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=e.slice(),l=r;for(t=0;t<l;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),l=a.length):this._unspiderfyLayer(i)}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(s&&(e=e.slice(),s=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,o=this._needsClustering.slice(),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&&e.call(t,o[r])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer((function(t){e.push(t)})),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer((function(i){L.stamp(i)===e&&(t=i)})),t},hasLayer:function(e){if(!e)return!1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return!0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return!1;return!(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds())},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,o=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var l,c=e.__parent,p=c._markers;for(this._arraySplice(p,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)t&&c._childCount<=1?(l=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,s.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,s.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(o.removeLayer(c),i||o.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e}L.FeatureGroup.prototype.fire.call(this,e,t,i)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var i,r,n=this._gridClusters,o=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);s<=t;t--){i=this._map.project(e.getLatLng(),t);var a=n[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=o[t].getNearObject(i)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,t,a,e);n[t].addObject(c,this._map.project(c._cLatLng,t)),a.__parent=c;var p=e.__parent=c;for(r=t-1;r>l._zoom;r--)p=new this._markerCluster(this,r,p),n[r].addObject(p,this._map.project(a.getLatLng(),r));return l._addChild(p),void this._removeFromGridUnclustered(a,t)}o[t].addObject(e,i)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()}))},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(e,t){var i,r=this._getExpandedVisibleBounds(),n=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,e,o,(function(o){var s,a=o._latlng,l=o._markers;for(r.contains(a)||(a=null),o._isSingleParent()&&e+1===t?(n.removeLayer(o),o._recursivelyAddChildrenToMap(null,t,r)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,t,r)),i=l.length-1;0<=i;i--)s=l[i],r.contains(s._latlng)||n.removeLayer(s)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,t),n.eachLayer((function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow()})),this._topClusterLevel._recursively(r,e,t,(function(e){e._recursivelyRestoreChildPositions(t)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,e,o,(function(e){n.removeLayer(e),e.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue((function(){r.removeLayer(e),e.clusterShow(),i._animationEnd()}))):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,i){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,t+1,i);var o=this;this._forceLayout(),e._recursivelyBecomeVisible(r,i),this._enqueue((function(){if(1===e._childCount){var s=e._markers[0];this._ignoreMove=!0,s.setLatLng(s.getLatLng()),this._ignoreMove=!1,s.clusterShow&&s.clusterShow()}else e._recursively(r,i,n,(function(e){e._recursivelyRemoveChildrenFromMap(r,n,t+1)}));o._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),o=this._zoom+1,s=r.getZoom();0<i.length&&o<n;){o++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._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,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng)},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e,t,i,r,n=this._markers,o=this._childClusters,s=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),s+=i.lat,a+=i.lng;for(e=0;e<o.length;e++)(t=o[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,s+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(s/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,i){this._recursively(e,this._group._map.getMinZoom(),i-1,(function(e){var i,r,n=e._markers;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}),(function(e){var i,r,n=e._childClusters;for(i=n.length-1;0<=i;i--)(r=n[i])._icon&&(r._setPos(t),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,i,r){this._recursively(e,r,t,(function(n){n._recursivelyAnimateChildrenIn(e,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),i),n._isSingleParent()&&i-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(e,t,i)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,(function(e){e.clusterShow()}))},_recursivelyAddChildrenToMap:function(e,t,i){this._recursively(i,this._group._map.getMinZoom()-1,t,(function(r){if(t!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var o=r._markers[n];i.contains(o._latlng)&&(e&&(o._backupLatlng=o.getLatLng(),o.setLatLng(e),o.clusterHide&&o.clusterHide()),r._group._featureGroup.addLayer(o))}}),(function(t){t._addToMap(e)}))},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,o;this._recursively(e,t-1,i-1,(function(e){for(o=e._markers.length-1;0<=o;o--)n=e._markers[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(e){for(o=e._childClusters.length-1;0<=o;o--)n=e._childClusters[o],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(e,t,i,r,n){var o,s,a=this._childClusters,l=this._zoom;if(t<=l&&(r&&r(this),n&&l===i&&n(this)),l<t||l<i)for(o=a.length-1;0<=o;o--)(s=a[o])._boundsNeedUpdate&&s._recalculateBounds(),e.intersects(s._bounds)&&s._recursively(e,t,i,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,o=n[r]=n[r]||{},s=o[i]=o[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,s.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),o=this._getCoord(t.y),s=this._grid,a=s[o]=s[o]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=l.length;i<r;i++)if(l[i]===e)return l.splice(i,1),1===r&&delete a[n],!0},eachObject:function(e,t){var i,r,n,o,s,a,l=this._grid;for(i in l)for(r in s=l[i])for(n=0,o=(a=s[r]).length;n<o;n++)e.call(t,a[n])&&(n--,o--)},getNearObject:function(e){var t,i,r,n,o,s,a,l,c=this._getCoord(e.x),p=this._getCoord(e.y),u=this._objectPoint,d=this._sqCellSize,h=null;for(t=p-1;t<=p+1;t++)if(n=this._grid[t])for(i=c-1;i<=c+1;i++)if(o=n[i])for(r=0,s=o.length;r<s;r++)a=o[r],((l=this._sqDist(u[L.Util.stamp(a)],e))<d||l<=d&&null===h)&&(d=l,h=a);return h},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,o=0,s=null,a=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(a.push(r),o<n&&(o=n,s=r));return{maxPoint:s,newPoints:a}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,o=!1,s=null,a=null,l=null,c=null,p=null,u=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(s=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(l=d).lng),(!1===o||d.lng<o)&&(o=(c=d).lng)}return p=r!==i?(u=a,s):(u=c,l),[].concat(this.buildConvexHull([u,p],e),this.buildConvexHull([p,u],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,o=this._2PI/e,s=[];for(n=Math.max(n,35),s.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*o,s[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return s},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,o=r*this._spiralFootSeparation,s=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=l.length=e;0<=i;i--)i<e&&(l[i]=new L.Point(t.x+n*Math.cos(a),t.y+n*Math.sin(a))._round()),n+=s/(a+=o/n+5e-4*i);return l},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=o.length-1;0<=t;t--)e=o[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,o,s=this._group,a=s._map,l=s._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(s._ignoreMove=!0,i=0;i<e.length;i++)o=a.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,o],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(o),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),s._ignoreMove=!1,s.fire("spiderfied",{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,o,s,a,l=this,c=this._group,p=c._map,u=c._featureGroup,d=this._latlng,h=p.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],a=p.layerPointToLatLng(t[i]),n=new L.Polyline([d,a],m),p.addLayer(n),r._spiderLeg=n,f&&(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(h);for(c._forceLayout(),c._animationStart(),i=e.length-1;0<=i;i--)a=p.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),f&&((o=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:g}));this.setOpacity(.3),c._ignoreMove=!1,setTimeout((function(){c._animationEnd(),c.fire("spiderfied",{cluster:l,markers:e})}),200)},_animationUnspiderfy:function(e){var t,i,r,n,o,s,a=this,l=this._group,c=l._map,p=l._featureGroup,u=e?c._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):c.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),h=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,s=!0,t._setPos&&(t._setPos(u),s=!1),t.clusterHide&&(t.clusterHide(),s=!1),s&&p.removeLayer(t),h&&(o=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=o,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&p.removeLayer(t),c.removeLayer(t._spiderLeg),delete t._spiderLeg);l._animationEnd(),l.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(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0})}))}));function Dr(e){return fetch("".concat(_.api,"trek/").concat(e,"/?language=").concat(_.language,"&published=true&fields=geometry"),{cache:"default"}).then((function(e){return e.json()}))}var Fr='@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-control .background{background-color:var(--ele-bg, rgba(70, 130, 180, 0.2));border-radius:5px;display:block;max-width:100%;overflow:visible;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control .area>foreignObject,.elevation-control .axis,.elevation-control .grid,.elevation-control .tooltip,.height-focus.line{pointer-events:none}.elevation-control .axis line,.elevation-control .axis path{stroke:var(--ele-axis, #2d1130);stroke-width:1;fill:none}.elevation-control .grid .tick line{stroke:var(--ele-grid, #eee);stroke-width:1px;shape-rendering:crispEdges}.elevation-control .grid path{stroke-width:0}.elevation-control .axis text,.elevation-control .legend text,.elevation-control .point text{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke fill}.elevation-control .y.axis text{text-anchor:end}.elevation-control .area{fill:var(--ele-area, #4682b4);stroke:var(--ele-stroke, #000);stroke-width:1.2;paint-order:stroke fill}.elevation-control .horizontal-drag-line{stroke:transparent;stroke-dasharray:5;stroke-width:1.1;cursor:row-resize}.elevation-control .active .horizontal-drag-line{stroke:#000}.elevation-control .horizontal-drag-label{fill:#000;stroke:#fff;stroke-width:2px;font-weight:700;paint-order:stroke}.elevation-control .ruler{color:#000;cursor:row-resize}.elevation-control .mouse-focus-line{stroke:#000;stroke-width:1}.elevation-control .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;stroke-width:1;stroke:#444}.elevation-control .mouse-focus-label-text{fill:#fff;font-size:10px}.elevation-control .brush .overlay{cursor:unset}.elevation-control .brush .selection{fill:var(--ele-brush, rgba(23, 74, 117, 0.4));stroke:none;fill-opacity:unset}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:var(--ele-sum-margin, 0 auto);text-shadow:var(--ele-sum-shadow, 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff)}.elevation-summary>span:not(:last-child):after{content:var(--ele-sum-sep, "")}.multiline-summary>span{display:block}.multiline-summary .download{float:right;font-size:1.2em;font-weight:700;margin-right:2em;margin-top:-3em}.elevation-summary .summaryvalue{font-weight:700}.elevation-toggle-icon{background-color:#fff;border-radius:5px;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);cursor:pointer;display:inline-block;height:var(--ele-toggle-size, 36px);position:var(--ele-toggle-pos, relative);right:5px;top:5px;width:var(--ele-toggle-size, 36px)}.elevation-toggle-icon:before{color:#000;content:"✖";display:var(--ele-close-btn, none);font-size:15px;font-weight:700;line-height:20px;text-align:center;width:100%}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:var(--ele-circle, var(--ele-area, #fff))}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{fill:#000;stroke:#fff;stroke-width:2px;font-size:12px;font-weight:600;paint-order:stroke}.elevation-position-icon:before,.elevation-waypoint-icon:before{background:var(--ele-marker) no-repeat center center/contain;content:"";display:inline-block;height:100%;width:100%}.elevation-polyline{stroke:var(--ele-poly, var(--ele-area, #000));-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-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;position:relative;width:100%;z-index:0}.elevation-detached .area{fill-opacity:var(--ele-alpha, 0.8)}.elevation-detached.elevation-collapsed .elevation-summary{display:block}.elevation-detached.elevation-collapsed .elevation-toggle-icon{bottom:5px;margin:auto;right:9px;top:5px}.elevation-control.elevation-collapsed>*{display:none}.elevation-control.elevation-collapsed>.elevation-toggle-icon{display:inline-block}.elevation-detached{--ele-sum-margin:12px 35px;--ele-sum-shadow:none;--ele-toggle-pos:absolute}.elevation-expanded{--ele-close-btn:inline-block;--ele-toggle-bg:none;--ele-toggle-pos:absolute;--ele-toggle-size:20px}.inline-summary{--ele-sum-sep:" — "}.elevation-waypoint-icon{--ele-marker:url(../images/elevation-pushpin.svg)}.elevation-position-icon{--ele-marker:url(../images/elevation-position.svg)}.lime-theme{--ele-bg:rgba(156,194,34,.2);--ele-axis:#566b13;--ele-area:#9cc222;--ele-grid:#ccc;--ele-brush:rgba(99,126,11,.4);--ele-poly:#566b13;--ele-line:#70ab00}.steelblue-theme{--ele-axis:#0d1821;--ele-area:#4682b4;--ele-brush:rgba(23,74,117,.4);--ele-line:#174a75}.purple-theme{--ele-bg:rgba(115,44,123,.2);--ele-area:#732c7b;--ele-brush:rgba(74,14,80,.4);--ele-line:#732c7b}.yellow-theme{--ele-area:#ff0}.red-theme{--ele-area:red}.magenta-theme{--ele-bg:hsla(0,0%,100%,.47);--ele-area:#ff005e}.lightblue-theme{--ele-area:#36c;--ele-alpha:0.45;--ele-stroke:#4682b4;--ele-circle:#fff;--ele-line:#000}.elevation-detached.lightblue-theme .area{stroke:#36c}.dist-marker{background:#fff;border:1px solid #777;border-radius:10px;color:#000;font-size:0.5rem;text-align:center}.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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 250px - var(--map-bottom-space-height))}#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}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{background-color:var(--color-primary-app);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}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-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-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,.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-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-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-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{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:32px;height:32px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.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,.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,.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-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,.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-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-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-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{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,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-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-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-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{background-color:var(--color-surface-variant)}.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-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-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-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{width:64px;height:64px}.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-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-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-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{width:48px !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{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{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,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 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:none;background-color:var(--color-background);color:var(--color-on-surface);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.1000000015px;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;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-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,.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,.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-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{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-icon,.information-desks-icon,.touristic-content-icon,.touristic-event-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img,.touristic-content-icon img,.touristic-event-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:48px;color:#ffffff}.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:24px;height:24px;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:64px !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:144px;margin:0}';var jr=e("grw_map",function(){function e(e){n(this,e);this.trekCardPress=l(this,"trekCardPress",7);this.touristicContentCardPress=l(this,"touristicContentCardPress",7);this.touristicEventCardPress=l(this,"touristicEventCardPress",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.mapIsReady=false;this.nameLayer=undefined;this.urlLayer=undefined;this.attributionLayer=undefined;this.center="1, 1";this.zoom=10;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorBackground="#fef7ff";this.colorTrekLine="#6b0030";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}e.prototype.onCenterOnMap=function(e){this.map.setView(new J.LatLng(e.detail.latitude,e.detail.longitude),17,{animate:false})};e.prototype.stepsIsInViewport=function(e){if(this.currentStepsLayer){this.handleLayerVisibility(e.detail,this.currentStepsLayer)}};e.prototype.descriptionIsInViewport=function(e){if(this.currentReferencePointsLayer){this.handleLayerVisibility(e.detail,this.currentReferencePointsLayer)}};e.prototype.parkingIsInViewport=function(e){if(this.currentParkingLayer){this.handleLayerVisibility(e.detail,this.currentParkingLayer)}};e.prototype.onInformationDesksIsInViewport=function(e){if(this.currentInformationDesksLayer){this.handleLayerVisibility(e.detail,this.currentInformationDesksLayer)}};e.prototype.sensitiveAreaIsInViewport=function(e){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(e.detail,this.currentSensitiveAreasLayer)}};e.prototype.poiIsInViewport=function(e){if(this.currentPoisLayer){this.handleLayerVisibility(e.detail,this.currentPoisLayer)}};e.prototype.touristicContentsIsInViewport=function(e){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticContentsLayer)}};e.prototype.touristicEventsIsInViewport=function(e){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(e.detail,this.currentToutisticEventsLayer)}};e.prototype.onCardTrekMouseOver=function(e){if(!_.parentTrek&&(!_.selectedTrekId||_.selectedTrekId!==e.detail)){_.selectedTrekId=e.detail;this.hideTrekLine();this.showTrekLine(e.detail);this.addSelectedCurrentTrek(e.detail)}else if(_.parentTrek){this.stepPopupIsOpen=false;_.selectedStepId=null;this.addSelectedCurrentStep(e.detail)}};e.prototype.onCardTrekMouseLeave=function(){if(!this.trekPopupIsOpen&&_.selectedTrekId){this.trekPopupIsOpen=false;_.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){_.selectedStepId=null;this.removeSelectedCurrentStep()}};e.prototype.onTouristicContentMouseOver=function(e){this.touristicContentPopupIsOpen=false;_.selectedTouristicContentId=null;this.addSelectedTouristicContent(e.detail)};e.prototype.onTouristicContentMouseLeave=function(){_.selectedTouristicContentId=null;this.removeSelectedTouristicContent()};e.prototype.onTouristicEventMouseOver=function(e){this.touristicEventPopupIsOpen=false;_.selectedTouristicEventId=null;this.addSelectedTouristicEvent(e.detail)};e.prototype.onTouristicEventMouseLeave=function(){_.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()};e.prototype.componentDidLoad=function(){var e=this;this.map=J.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});J.control.scale({metric:true,imperial:false}).addTo(this.map);J.control.locate({showPopup:false}).addTo(this.map);var t=this.nameLayer?this.nameLayer.split(","):[];var i=this.urlLayer.split(",http").map((function(e,t){return t===0?e:"http"+e}));var r=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach((function(i,n){e.tileLayer.push({key:"".concat(t[n]),value:J.tileLayer(i,{maxZoom:e.maxZoom,attribution:"".concat(r[n]&&r[n]!==""?r[n].concat(" | "):"",'Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>'),crossOrigin:true})})}));this.tileLayer[0].value.addTo(this.map);if(i.length>1){this.layersControl=J.control.layers(this.tileLayer.reduce((function(e,t){var i;return Object.assign(e,(i={},i[t.key]=t.value,i))}),{}),{},{collapsed:true}).addTo(this.map);J.Control.Contract=J.Control.extend({onAdd:function(){var t=J.DomUtil.create("div");t.className="leaflet-bar leaflet-control";var i=t.appendChild(J.DomUtil.create("a"));i.href="#";i.style.backgroundImage="var(--contract-image-src)";t.onclick=function(t){e.bounds&&e.map.fitBounds(e.bounds);t.preventDefault()};return t}});J.control.contract=function(e){return new J.Control.Contract(e)};J.control.contract({position:"topleft"}).addTo(this.map)}if(_.currentTrek){this.addTrek()}else if(_.currentTreks){this.addTreks()}else if(_.currentTouristicContent){this.addTouristicContent()}else if(_.currentTouristicEvent){this.addTouristicEvent()}else if(_.touristicContents){this.addTouristicContents()}else if(_.touristicEvents){this.addTouristicEvents()}x("currentTreks",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(_.currentTrek){e.removeTreks();e.addTrek()}else if(_.currentTreks){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvents();e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks(true)}}));x("currentTrek",(function(){if(_.currentTrek){e.removeTreks();e.addTrek()}else if(_.currentTreks){e.removeTrek();e.removeTouristicContent();e.removeTouristicEvent();e.addTreks()}}));x("currentTouristicContent",(function(){if(_.currentTouristicContent){e.removeTrek();e.removeTouristicContents();e.addTouristicContent()}else if(_.touristicContents){e.removeTouristicContent();e.addTouristicContents()}else if(_.currentTrek){e.removeTouristicContent();e.addTrek()}else if(_.currentTreks){e.removeTouristicContent();e.addTreks()}}));x("currentTouristicEvent",(function(){if(_.currentTouristicEvent){e.removeTrek();e.removeTouristicEvents();e.addTouristicEvent()}else if(_.currentTrek){e.removeTouristicEvent();e.addTrek()}else if(_.currentTreks){e.removeTouristicEvent();e.addTreks()}}));x("currentTouristicContents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(_.currentTouristicContent){e.removeTouristicContents();e.addTouristicContent()}else if(_.currentTouristicContents){e.removeTreks();e.removeTouristicEvents();e.removeTouristicContent();e.addTouristicContents(true)}}));x("currentTouristicEvents",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(_.currentTouristicEvent){e.removeTouristicEvents();e.addTouristicEvent()}else if(_.currentTouristicEvents){e.removeTreks();e.removeTouristicContents();e.removeTouristicEvent();e.addTouristicEvents(true)}}));x("mode",(function(){e.hideTrekLine();e.removeSelectedCurrentTrek();e.removeSelectedTouristicContent();e.removeSelectedTouristicEvent();if(_.mode==="treks"){if(_.treks){e.removeTouristicContents();e.removeTouristicEvents();e.addTreks(true)}}else if(_.mode==="touristicContents"){if(_.touristicContents){e.removeTreks();e.removeTouristicEvents();e.addTouristicContents(true)}}else if(_.mode==="touristicEvents"){if(_.touristicEvents){e.removeTreks();e.removeTouristicContents();e.addTouristicEvents(true)}}}))};e.prototype.handleLayerVisibility=function(e,t){if(e&&!this.map.hasLayer(t)){t.addTo(this.map)}else if(this.map.hasLayer(t)&&!this.userLayersState[t._leaflet_id]){this.map.removeLayer(t)}this.handleLayersControlEvent()};e.prototype.addTreks=function(e){var t=this;if(e===void 0){e=false}var i;_.treksWithinBounds=_.currentTreks;var r=[];var n={type:"FeatureCollection",features:[]};if(_.currentTreks){var o=function(e){r.push(e.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(i=_.practices.find((function(t){return t.id===e.practice})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=_.currentTreks;s<a.length;s++){var l=a[s];o(l)}}if(!this.treksLayer){if(r.length>0&&!_.currentMapBounds||e){this.bounds=J.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(_.currentMapBounds){this.bounds=_.currentMapBounds}}this.treksLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=J.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return t.trekCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.hideTrekLine();t.showTrekLine(e.properties.id);t.addSelectedCurrentTrek(e.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=J.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return J.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,48]})}});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(r.length>0){this.bounds=J.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n);this.treksMarkerClusterGroup.clearLayers();this.treksMarkerClusterGroup.addLayer(this.treksLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};e.prototype.removeTreks=function(){if(this.treksLayer){_.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};e.prototype.handleTreksWithinBounds=function(){var e=this;if(_.currentTreks&&!_.currentMapBounds||_.currentTreks&&_.currentMapBounds&&_.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){_.treksWithinBounds=_.currentTreks.filter((function(t){return e.map.getBounds().contains(J.latLng(t.departure_geom[1],t.departure_geom[0]))}))}};e.prototype.handleTouristicContentsWithinBounds=function(){var e=this;if(_.currentTouristicContents&&!_.currentMapBounds||_.currentTouristicContents&&_.currentMapBounds&&_.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){_.touristicContentsWithinBounds=_.currentTouristicContents.filter((function(t){return e.map.getBounds().contains(J.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.handleTouristicEventsWithinBounds=function(){var e=this;if(_.currentTouristicEvents&&!_.currentMapBounds||_.currentTouristicEvents&&_.currentMapBounds&&_.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){_.touristicEventsWithinBounds=_.currentTouristicEvents.filter((function(t){return e.map.getBounds().contains(J.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))}))}};e.prototype.addTrek=function(){var e=this;var t,i,r,n;this.trekPopupIsOpen=false;_.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();var o={type:"Feature",geometry:_.currentTrek.geometry,properties:{}};this.currentTrekLayer=J.geoJSON(o,{style:function(){return{color:"transparent"}},interactive:false}).addTo(this.map);if(_.currentTrek.parking_location){var s={type:"Feature",properties:{},geometry:{type:"Point",coordinates:_.currentTrek.parking_location}};this.currentParkingLayer=J.geoJSON(s,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})}})}if(_.currentSensitiveAreas&&_.currentSensitiveAreas.length>0){var a={type:"FeatureCollection",features:[]};for(var l=0,c=_.currentSensitiveAreas;l<c.length;l++){var u=c[l];a.features.push({type:"Feature",properties:{name:u.name},geometry:u.geometry})}this.currentSensitiveAreasLayer=J.geoJSON(a,{onEachFeature:function(e,t){t.once("mouseover",(function(){var i=J.DomUtil.create("div");i.className="sensitive-area-tooltip";var r=J.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="sensitive-area-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))},style:function(){return{color:e.colorSensitiveArea}}})}if(_.currentPois&&_.currentPois.length>0){var d={type:"FeatureCollection",features:[]};var h=function(e){d.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=_.poiTypes.find((function(t){return t.id===e.type})))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})};for(var f=0,m=_.currentPois;f<m.length;f++){var g=m[f];h(g)}this.currentPoisLayer=J.geoJSON(d,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=J.DomUtil.create("div");i.className="poi-tooltip";var r=J.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="poi-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(_.trekTouristicContents&&_.trekTouristicContents.length>0){var v={type:"FeatureCollection",features:[]};var y=function(e){v.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=_.touristicContentCategories.find((function(t){return t.id===e.category})))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})};for(var w=0,b=_.trekTouristicContents;w<b.length;w++){var x=b[w];y(x)}this.currentToutisticContentsLayer=J.geoJSON(v,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.category_pictogram?'<img crossorigin="anonymous "src='.concat(e.properties.category_pictogram," />"):"<img />",className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=J.DomUtil.create("div");i.className="touristic-content-tooltip";var r=J.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-content-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(_.touristicEvents&&_.touristicEvents.length>0){var k={type:"FeatureCollection",features:[]};var A=function(e){k.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(r=_.touristicEventTypes.find((function(t){return t.id===e.type})))===null||r===void 0?void 0:r.pictogram},geometry:e.geometry})};for(var T=0,L=_.touristicEvents;T<L.length;T++){var C=L[T];A(C)}this.currentToutisticEventsLayer=J.geoJSON(k,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.type_pictogram?'\n <img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=J.DomUtil.create("div");i.className="touristic-event-tooltip";var r=J.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="touristic-event-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(_.currentInformationDesks&&_.currentInformationDesks.length>0){var E={type:"FeatureCollection",features:[]};for(var S=0,P=_.currentInformationDesks.filter((function(e){return _.currentTrek.information_desks.includes(e.id)}));S<P.length;S++){var M=P[S];if(M.latitude&&M.longitude){E.features.push({type:"Feature",properties:{name:M.name,type_pictogram:M.type.pictogram},geometry:{type:"Point",coordinates:[Number(M.longitude),Number(M.latitude)]}})}}this.currentInformationDesksLayer=J.geoJSON(E,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.type_pictogram?'<img crossorigin="anonymous" src='.concat(e.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("mouseover",(function(){var i=J.DomUtil.create("div");i.className="information-desks-tooltip";var r=J.DomUtil.create("div");r.innerHTML=e.properties.name;r.className="information-desks-name";i.appendChild(r);t.bindTooltip(i).openTooltip()}))}})}if(_.currentTrek.points_reference){var O={type:"FeatureCollection",features:[]};O.features.push({type:"Feature",properties:{},geometry:_.currentTrek.points_reference});var I=0;this.currentReferencePointsLayer=J.geoJSON(O,{pointToLayer:function(e,t){I+=1;return J.marker(t,{icon:J.divIcon({html:I,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&_.parentTrekId&&_.parentTrek&&_.currentTrek.id===_.parentTrekId){var z={type:"FeatureCollection",features:[]};if(_.currentTrekSteps){var B=function(e){z.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.departure_geom},properties:{id:e.id,name:e.name,practice:(n=_.practices.find((function(t){return t.id===e.practice})))===null||n===void 0?void 0:n.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var D=0,F=_.currentTrekSteps;D<F.length;D++){var j=F[D];B(j)}}var N=0;this.currentStepsLayer=J.geoJSON(z,{pointToLayer:function(e,t){N+=1;return J.marker(t,{zIndexOffset:4e6,icon:J.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(N,"</div></div>"),className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:function(t,i){i.once("click",(function(){var r=J.DomUtil.create("div");r.className="trek-departure-popup";if(t.properties.imgSrc){var n=J.DomUtil.create("img");n.src=t.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=t.properties.name;o.className="trek-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return e.trekCardPress.emit(t.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){e.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}var R={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:"#elevation",theme:"custom-theme".concat(!this.useGradient?" use-theme-color":""),detached:true,height:250,wptIcons:true,wptLabels:true,collapsed:false,autohide:false,distanceMarkers:{distance:false,direction:true},hotline:this.useGradient,closeBtn:false,summary:false,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({},R)).addTo(this.map);var G=JSON.stringify({name:"".concat(_.currentTrek.name),type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:_.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(G);var Z={};if(this.currentStepsLayer){Z[p[_.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){Z[p[_.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){Z[p[_.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){Z[p[_.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){Z[p[_.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){Z[p[_.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){Z[p[_.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){Z[p[_.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(Z).forEach((function(t){e.layersControl.addOverlay(Z[t],t)}))}else{this.layersControl=J.control.layers({},Z,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=J.latLngBounds(_.currentTrek.geometry.coordinates.map((function(e){return[e[1],e[0]]})));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.addSelectedCurrentTrek=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(_.currentTreks){var o=_.currentTreks.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.departure_geom},properties:{id:o.id,name:o.name,practice:(r=_.practices.find((function(e){return e.id===o.practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();_.selectedTrekId=e;this.selectedCurrentTrekLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{zIndexOffset:4e6,icon:J.divIcon({html:e.properties.practice?'<div class="trek-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="trek-marker-container"></div>',className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=J.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.trekPopupIsOpen){_.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}));t.on("popupopen",(function(){i.trekPopupIsOpen=Boolean(_.selectedTrekId)}));t.on("popupclose",(function(){if(_.selectedTrekId){i.trekPopupIsOpen=false;_.selectedTrekId=null;i.hideTrekLine();i.removeSelectedCurrentTrek()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentTrek=function(){_.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null};e.prototype.addSelectedCurrentStep=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(_.currentTrekSteps){var o=_.currentTrekSteps.findIndex((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:_.currentTrekSteps[o].departure_geom},properties:{id:_.currentTrekSteps[o].id,name:_.currentTrekSteps[o].name,practice:(r=_.practices.find((function(e){return e.id===_.currentTrekSteps[o].practice})))===null||r===void 0?void 0:r.pictogram,imgSrc:_.currentTrekSteps[o].attachments&&_.currentTrekSteps[o].attachments.length>0&&_.currentTrekSteps[o].attachments[0].thumbnail,index:o+1}})}this.removeSelectedCurrentStep();_.selectedStepId=e;this.selectedCurrentStepLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{zIndexOffset:4e6,icon:J.divIcon({html:'<div class="step-marker-container"><div class="step-number">'.concat(e.properties.index,"</div></div>"),className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=J.DomUtil.create("div");r.className="trek-departure-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="trek-button";s.onclick=function(){return i.trekCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.stepPopupIsOpen){_.selectedTrekId=null;i.removeSelectedCurrentStep()}}));t.on("popupopen",(function(){i.stepPopupIsOpen=Boolean(_.selectedStepId)}));t.on("popupclose",(function(){if(_.selectedStepId){i.stepPopupIsOpen=false;_.selectedStepId=null;i.removeSelectedCurrentStep()}}))}}).addTo(this.map)};e.prototype.removeSelectedCurrentStep=function(){if(_.selectedStepId){_.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}};e.prototype.handleLayersControlEvent=function(){var e=this;var t=this.layersControl._layerControlInputs;t.forEach((function(t){if(e.layersControl._layers.find((function(e){return e.layer._leaflet_id===t.layerId})).overlay){t.onchange=function(i){e.userLayersState[t.layerId]=i.target.checked}}}))};e.prototype.removeTrek=function(){var e=this;if(this.layersControl){if(!this.layersControl._layers.some((function(e){return!e.overlay}))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((function(e){return e.overlay})).forEach((function(t){e.layersControl.removeLayer(t.layer)}))}}if(this.elevationControl){this.elevationControl.clear();this.map.removeControl(this.elevationControl);this.elevationControl=null}if(this.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.currentToutisticEventsLayer){this.map.removeLayer(this.currentToutisticEventsLayer);this.currentToutisticEventsLayer=null}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}};e.prototype.showTrekLine=function(e){var t=this;Dr(e).then((function(e){var i={type:"Feature",geometry:e.geometry,properties:{}};t.currentTrekLayer=J.geoJSON(i,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(t.map)}))};e.prototype.hideTrekLine=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}};e.prototype.addTouristicContent=function(){this.touristicContentPopupIsOpen=false;_.selectedTouristicContentId=null;this.removeSelectedTouristicContent();var e={type:"FeatureCollection",features:[]};if(_.currentTouristicContent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:_.currentTouristicContent.geometry.coordinates},properties:{id:_.currentTouristicContent.id,name:_.currentTouristicContent.name,practice:_.touristicContentCategories.find((function(e){return e.id===_.currentTouristicContent.category})).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=J.geoJSON(e,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous "src='.concat(e.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([_.currentTouristicContent.geometry.coordinates[1],_.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicContent=function(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}};e.prototype.addTouristicContents=function(e){var t=this;if(e===void 0){e=false}_.touristicContentsWithinBounds=_.currentTouristicContents;var i=[];var r={type:"FeatureCollection",features:[]};if(_.currentTouristicContents){var n=function(e){i.push(e.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,practice:_.touristicContentCategories.find((function(t){return t.id===e.category})).pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var o=0,s=_.currentTouristicContents;o<s.length;o++){var a=s[o];n(a)}}if(!this.toutisticContentsLayer){if(i.length>0&&!_.currentMapBounds||e){this.bounds=J.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{if(_.currentMapBounds){this.bounds=_.currentMapBounds}}this.toutisticContentsLayer=J.geoJSON(r,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.practice?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.practice," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=J.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return t.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicContent(e.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=J.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return J.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})}});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=J.latLngBounds(i.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(r);this.touristicContentsMarkerClusterGroup.clearLayers();this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicContentsWithinBoundsBind)};e.prototype.removeTouristicContents=function(){if(this.toutisticContentsLayer){_.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}};e.prototype.addTouristicEvent=function(){var e={type:"FeatureCollection",features:[]};if(_.currentTouristicEvent){e.features.push({type:"Feature",geometry:{type:"Point",coordinates:_.currentTouristicEvent.geometry.coordinates},properties:{id:_.currentTouristicEvent.id,name:_.currentTouristicEvent.name,type:_.touristicEventTypes.find((function(e){return e.id===_.currentTouristicEvent.type})).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=J.geoJSON(e,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})}});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([_.currentTouristicEvent.geometry.coordinates[1],_.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};e.prototype.removeTouristicEvent=function(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}};e.prototype.addSelectedTouristicContent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(_.touristicContents){var o=_.touristicContents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=_.touristicContentCategories.find((function(e){return e.id===o.category})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();_.selectedTouristicContentId=e;this.selectedTouristicContentLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{zIndexOffset:4e6,icon:J.divIcon({html:e.properties.category?'<div class="touristic-content-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-content-marker-container"></div>',className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=J.DomUtil.create("div");r.className="touristic-content-coordinates-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-content-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-content-button";s.onclick=function(){return i.touristicContentCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicContentPopupIsOpen){_.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}));t.on("popupopen",(function(){i.touristicContentPopupIsOpen=Boolean(_.selectedTouristicContentId)}));t.on("popupclose",(function(){if(_.selectedTouristicContentId){i.touristicContentPopupIsOpen=false;_.selectedTouristicContentId=null;i.removeSelectedTouristicContent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicContent=function(){_.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null};e.prototype.addTouristicEvents=function(e){var t=this;if(e===void 0){e=false}var i;_.touristicEventsWithinBounds=_.currentTouristicEvents;var r=[];var n={type:"FeatureCollection",features:[]};if(_.currentTouristicEvents){var o=function(e){r.push(e.geometry.coordinates);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:e.geometry.coordinates},properties:{id:e.id,name:e.name,type:(i=_.touristicEventTypes.find((function(t){return t.id===e.type})))===null||i===void 0?void 0:i.pictogram,imgSrc:e.attachments&&e.attachments.length>0&&e.attachments[0].thumbnail}})};for(var s=0,a=_.currentTouristicEvents;s<a.length;s++){var l=a[s];o(l)}}if(!this.toutisticEventsLayer){if(r.length>0&&!_.currentMapBounds||e){this.bounds=J.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{if(_.currentMapBounds){this.bounds=_.currentMapBounds}}this.toutisticEventsLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{icon:J.divIcon({html:e.properties.type?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.type," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var r=J.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return t.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);i.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(function(i){t.addSelectedTouristicEvent(e.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=J.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:function(e){return J.divIcon({html:"<div>"+e.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48,iconAnchor:[24,64]})}});this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(r.length>0){this.bounds=J.latLngBounds(r.map((function(e){return[e[1],e[0]]})))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(n);this.touristicEventsMarkerClusterGroup.clearLayers();this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer)}this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTouristicEventsWithinBoundsBind)};e.prototype.removeTouristicEvents=function(){if(this.toutisticEventsLayer){_.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}};e.prototype.addSelectedTouristicEvent=function(e,t){var i=this;var r;var n={type:"FeatureCollection",features:[]};if(_.touristicEvents){var o=_.touristicEvents.find((function(t){return t.id===e}));n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t?[t.lng,t.lat]:o.geometry.coordinates},properties:{id:o.id,name:o.name,category:(r=_.touristicEventTypes.find((function(e){return e.id===o.type})))===null||r===void 0?void 0:r.pictogram,imgSrc:o.attachments&&o.attachments.length>0&&o.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();_.selectedTouristicEventId=e;this.selectedTouristicEventLayer=J.geoJSON(n,{pointToLayer:function(e,t){return J.marker(t,{zIndexOffset:4e6,icon:J.divIcon({html:e.properties.category?'<div class="touristic-event-marker-container"><img crossorigin="anonymous" src='.concat(e.properties.category," /></div>"):'<div class="touristic-event-marker-container"></div>',className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false})},onEachFeature:function(e,t){t.once("click",(function(){var r=J.DomUtil.create("div");r.className="touristic-event-coordinates-popup";if(e.properties.imgSrc){var n=J.DomUtil.create("img");n.src=e.properties.imgSrc;n.crossOrigin="anonymous";r.appendChild(n)}var o=J.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="touristic-event-name";r.appendChild(o);var s=J.DomUtil.create("button");s.innerHTML="Afficher le détail";s.className="touristic-event-button";s.onclick=function(){return i.touristicEventCardPress.emit(e.properties.id)};r.appendChild(s);t.bindPopup(r,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));t.on("mouseout",(function(){if(!i.touristicEventPopupIsOpen){_.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}));t.on("popupopen",(function(){i.touristicEventPopupIsOpen=Boolean(_.selectedTouristicEventId)}));t.on("popupclose",(function(){if(_.selectedTouristicEventId){i.touristicEventPopupIsOpen=false;_.selectedTouristicEventId=null;i.removeSelectedTouristicEvent()}}))}}).addTo(this.map)};e.prototype.removeSelectedTouristicEvent=function(){_.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null};e.prototype.render=function(){var e=this;var t=c("".concat("","assets/layers.svg"));var i=c("".concat("","assets/contract.svg"));return o(s,{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-poi-icon":this.colorPoiIcon,"--color-trek-line":this.colorTrekLine,"--layers-image-src":"url(".concat(t,")"),"--contract-image-src":"url(".concat(i,")"),"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},o("div",{id:"map",style:{},class:_.currentTrek?"trek-map":"treks-map",ref:function(t){return e.mapRef=t}}),_.currentTrek&&o("div",null,o("div",{id:"elevation",ref:function(t){return e.elevationRef=t}}),o("div",{class:"map-bottom-space"})),!this.mapIsReady&&o("div",{class:"map-loader-container"},o("span",{class:"loader"})))};return e}());jr.style=Fr;function Nr(e){return e!==null&&typeof e==="object"&&"constructor"in e&&e.constructor===Object}function Rr(e,t){if(e===void 0){e={}}if(t===void 0){t={}}Object.keys(t).forEach((function(i){if(typeof e[i]==="undefined")e[i]=t[i];else if(Nr(t[i])&&Nr(e[i])&&Object.keys(t[i]).length>0){Rr(e[i],t[i])}}))}var Gr={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Zr(){var e=typeof document!=="undefined"?document:{};Rr(e,Gr);return e}var Hr={document:Gr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function e(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){if(typeof setTimeout==="undefined"){e();return null}return setTimeout(e,0)},cancelAnimationFrame:function(e){if(typeof setTimeout==="undefined"){return}clearTimeout(e)}};function Yr(){var e=typeof window!=="undefined"?window:{};Rr(e,Hr);return e}function Vr(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))}function Ur(e,t){if(t===void 0){t=0}return setTimeout(e,t)}function Wr(){return Date.now()}function qr(e){var t=Yr();var i;if(t.getComputedStyle){i=t.getComputedStyle(e,null)}if(!i&&e.currentStyle){i=e.currentStyle}if(!i){i=e.style}return i}function Kr(e,t){if(t===void 0){t="x"}var i=Yr();var r;var n;var o;var s=qr(e);if(i.WebKitCSSMatrix){n=s.transform||s.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")}o=new i.WebKitCSSMatrix(n==="none"?"":n)}else{o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=o.toString().split(",")}if(t==="x"){if(i.WebKitCSSMatrix)n=o.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(t==="y"){if(i.WebKitCSSMatrix)n=o.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function Qr(e){return typeof e==="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Xr(e){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return e instanceof HTMLElement}return e&&(e.nodeType===1||e.nodeType===11)}function Jr(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=Object(e[0]);var r=["__proto__","constructor","prototype"];for(var n=1;n<e.length;n+=1){var o=e[n];if(o!==undefined&&o!==null&&!Xr(o)){var s=Object.keys(Object(o)).filter((function(e){return r.indexOf(e)<0}));for(var a=0,l=s.length;a<l;a+=1){var c=s[a];var p=Object.getOwnPropertyDescriptor(o,c);if(p!==undefined&&p.enumerable){if(Qr(i[c])&&Qr(o[c])){if(o[c].__swiper__){i[c]=o[c]}else{Jr(i[c],o[c])}}else if(!Qr(i[c])&&Qr(o[c])){i[c]={};if(o[c].__swiper__){i[c]=o[c]}else{Jr(i[c],o[c])}}else{i[c]=o[c]}}}}}return i}function $r(e,t,i){e.style.setProperty(t,i)}function en(e){var t=e.swiper,i=e.targetPosition,r=e.side;var n=Yr();var o=-t.translate;var s=null;var a;var l=t.params.speed;t.wrapperEl.style.scrollSnapType="none";n.cancelAnimationFrame(t.cssModeFrameID);var c=i>o?"next":"prev";var p=function(e,t){return c==="next"&&e>=t||c==="prev"&&e<=t};var u=function(){var e;a=(new Date).getTime();if(s===null){s=a}var c=Math.max(Math.min((a-s)/l,1),0);var d=.5-Math.cos(c*Math.PI)/2;var h=o+d*(i-o);if(p(h,i)){h=i}t.wrapperEl.scrollTo((e={},e[r]=h,e));if(p(h,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((function(){var e;t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo((e={},e[r]=h,e))}));n.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=n.requestAnimationFrame(u)};u()}function tn(e,t){if(t===void 0){t=""}return __spreadArray([],e.children,true).filter((function(e){return e.matches(t)}))}function rn(e,t){var i;if(t===void 0){t=[]}var r=document.createElement(e);(i=r.classList).add.apply(i,Array.isArray(t)?t:[t]);return r}function nn(e){var t=Yr();var i=Zr();var r=e.getBoundingClientRect();var n=i.body;var o=e.clientTop||n.clientTop||0;var s=e.clientLeft||n.clientLeft||0;var a=e===t?t.scrollY:e.scrollTop;var l=e===t?t.scrollX:e.scrollLeft;return{top:r.top+a-o,left:r.left+l-s}}function on(e,t){var i=[];while(e.previousElementSibling){var r=e.previousElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function sn(e,t){var i=[];while(e.nextElementSibling){var r=e.nextElementSibling;if(t){if(r.matches(t))i.push(r)}else i.push(r);e=r}return i}function an(e,t){var i=Yr();return i.getComputedStyle(e,null).getPropertyValue(t)}function ln(e){var t=e;var i;if(t){i=0;while((t=t.previousSibling)!==null){if(t.nodeType===1)i+=1}return i}return undefined}function cn(e,t){var i=[];var r=e.parentElement;while(r){if(t){if(r.matches(t))i.push(r)}else{i.push(r)}r=r.parentElement}return i}function pn(e,t){function i(r){if(r.target!==e)return;t.call(e,r);e.removeEventListener("transitionend",i)}if(t){e.addEventListener("transitionend",i)}}function un(e,t,i){var r=Yr();if(i){return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}return e.offsetWidth}var dn;function hn(){var e=Yr();var t=Zr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function fn(){if(!dn){dn=hn()}return dn}var mn;function gn(e){var t=e===void 0?{}:e,i=t.userAgent;var r=fn();var n=Yr();var o=n.navigator.platform;var s=i||n.navigator.userAgent;var a={ios:false,android:false};var l=n.screen.width;var c=n.screen.height;var p=s.match(/(Android);?[\s\/]+([\d.]+)?/);var u=s.match(/(iPad).*OS\s([\d_]+)/);var d=s.match(/(iPod)(.*OS\s([\d_]+))?/);var h=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/);var f=o==="Win32";var m=o==="MacIntel";var g=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!u&&m&&r.touch&&g.indexOf("".concat(l,"x").concat(c))>=0){u=s.match(/(Version)\/([\d.]+)/);if(!u)u=[0,1,"13_0_0"];m=false}if(p&&!f){a.os="android";a.android=true}if(u||h||d){a.os="ios";a.ios=true}return a}function vn(e){if(e===void 0){e={}}if(!mn){mn=gn(e)}return mn}var yn;function wn(){var e=Yr();var t=false;function i(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){var r=String(e.navigator.userAgent);if(r.includes("Version/")){var n=r.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),o=n[0],s=n[1];t=o<16||o===16&&s<2}}return{isSafari:t||i(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function bn(){if(!yn){yn=wn()}return yn}function _n(e){var t=e.swiper,i=e.on,r=e.emit;var n=Yr();var o=null;var s=null;var a=function(){if(!t||t.destroyed||!t.initialized)return;r("beforeResize");r("resize")};var l=function(){if(!t||t.destroyed||!t.initialized)return;o=new ResizeObserver((function(e){s=n.requestAnimationFrame((function(){var i=t.width,r=t.height;var n=i;var o=r;e.forEach((function(e){var i=e.contentBoxSize,r=e.contentRect,s=e.target;if(s&&s!==t.el)return;n=r?r.width:(i[0]||i).inlineSize;o=r?r.height:(i[0]||i).blockSize}));if(n!==i||o!==r){a()}}))}));o.observe(t.el)};var c=function(){if(s){n.cancelAnimationFrame(s)}if(o&&o.unobserve&&t.el){o.unobserve(t.el);o=null}};var p=function(){if(!t||t.destroyed||!t.initialized)return;r("orientationchange")};i("init",(function(){if(t.params.resizeObserver&&typeof n.ResizeObserver!=="undefined"){l();return}n.addEventListener("resize",a);n.addEventListener("orientationchange",p)}));i("destroy",(function(){c();n.removeEventListener("resize",a);n.removeEventListener("orientationchange",p)}))}function xn(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=[];var s=Yr();var a=function(e,i){if(i===void 0){i={}}var r=s.MutationObserver||s.WebkitMutationObserver;var a=new r((function(e){if(t.__preventObserver__)return;if(e.length===1){n("observerUpdate",e[0]);return}var i=function t(){n("observerUpdate",e[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(i)}else{s.setTimeout(i,0)}}));a.observe(e,{attributes:typeof i.attributes==="undefined"?true:i.attributes,childList:typeof i.childList==="undefined"?true:i.childList,characterData:typeof i.characterData==="undefined"?true:i.characterData});o.push(a)};var l=function(){if(!t.params.observer)return;if(t.params.observeParents){var e=cn(t.el);for(var i=0;i<e.length;i+=1){a(e[i])}}a(t.el,{childList:t.params.observeSlideChildren});a(t.wrapperEl,{attributes:false})};var c=function(){o.forEach((function(e){e.disconnect()}));o.splice(0,o.length)};i({observer:false,observeParents:false,observeSlideChildren:false});r("init",l);r("destroy",c)}var kn={on:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;var n=i?"unshift":"push";e.split(" ").forEach((function(e){if(!r.eventsListeners[e])r.eventsListeners[e]=[];r.eventsListeners[e][n](t)}));return r},once:function(e,t,i){var r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof t!=="function")return r;function n(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}r.off(e,n);if(n.__emitterProxy){delete n.__emitterProxy}t.apply(r,i)}n.__emitterProxy=t;return r.on(e,n,i)},onAny:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(typeof e!=="function")return i;var r=t?"unshift":"push";if(i.eventsAnyListeners.indexOf(e)<0){i.eventsAnyListeners[r](e)}return i},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var i=t.eventsAnyListeners.indexOf(e);if(i>=0){t.eventsAnyListeners.splice(i,1)}return t},off:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;e.split(" ").forEach((function(e){if(typeof t==="undefined"){i.eventsListeners[e]=[]}else if(i.eventsListeners[e]){i.eventsListeners[e].forEach((function(r,n){if(r===t||r.__emitterProxy&&r.__emitterProxy===t){i.eventsListeners[e].splice(n,1)}}))}}));return i},emit:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;var r;var n;var o;if(typeof e[0]==="string"||Array.isArray(e[0])){r=e[0];n=e.slice(1,e.length);o=i}else{r=e[0].events;n=e[0].data;o=e[0].context||i}n.unshift(o);var s=Array.isArray(r)?r:r.split(" ");s.forEach((function(e){if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((function(t){t.apply(o,__spreadArray([e],n,true))}))}if(i.eventsListeners&&i.eventsListeners[e]){i.eventsListeners[e].forEach((function(e){e.apply(o,n)}))}}));return i}};function An(){var e=this;var t;var i;var r=e.el;if(typeof e.params.width!=="undefined"&&e.params.width!==null){t=e.params.width}else{t=r.clientWidth}if(typeof e.params.height!=="undefined"&&e.params.height!==null){i=e.params.height}else{i=r.clientHeight}if(t===0&&e.isHorizontal()||i===0&&e.isVertical()){return}t=t-parseInt(an(r,"padding-left")||0,10)-parseInt(an(r,"padding-right")||0,10);i=i-parseInt(an(r,"padding-top")||0,10)-parseInt(an(r,"padding-bottom")||0,10);if(Number.isNaN(t))t=0;if(Number.isNaN(i))i=0;Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i})}function Tn(){var e=this;function t(t){if(e.isHorizontal()){return t}return{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function i(e,i){return parseFloat(e.getPropertyValue(t(i))||0)}var r=e.params;var n=e.wrapperEl,o=e.slidesEl,s=e.size,a=e.rtlTranslate,l=e.wrongRTL;var c=e.virtual&&r.virtual.enabled;var p=c?e.virtual.slides.length:e.slides.length;var u=tn(o,".".concat(e.params.slideClass,", swiper-slide"));var d=c?e.virtual.slides.length:u.length;var h=[];var f=[];var m=[];var g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(e)}var v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(e)}var y=e.snapGrid.length;var w=e.slidesGrid.length;var b=r.spaceBetween;var _=-g;var x=0;var k=0;if(typeof s==="undefined"){return}if(typeof b==="string"&&b.indexOf("%")>=0){b=parseFloat(b.replace("%",""))/100*s}else if(typeof b==="string"){b=parseFloat(b)}e.virtualSize=-b;u.forEach((function(e){if(a){e.style.marginLeft=""}else{e.style.marginRight=""}e.style.marginBottom="";e.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){$r(n,"--swiper-centered-offset-before","");$r(n,"--swiper-centered-offset-after","")}var A=r.grid&&r.grid.rows>1&&e.grid;if(A){e.grid.initSlides(d)}var T;var L=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((function(e){return typeof r.breakpoints[e].slidesPerView!=="undefined"})).length>0;for(var C=0;C<d;C+=1){T=0;var E=void 0;if(u[C])E=u[C];if(A){e.grid.updateSlide(C,E,d,t)}if(u[C]&&an(E,"display")==="none")continue;if(r.slidesPerView==="auto"){if(L){u[C].style[t("width")]=""}var S=getComputedStyle(E);var P=E.style.transform;var M=E.style.webkitTransform;if(P){E.style.transform="none"}if(M){E.style.webkitTransform="none"}if(r.roundLengths){T=e.isHorizontal()?un(E,"width",true):un(E,"height",true)}else{var O=i(S,"width");var I=i(S,"padding-left");var z=i(S,"padding-right");var B=i(S,"margin-left");var D=i(S,"margin-right");var F=S.getPropertyValue("box-sizing");if(F&&F==="border-box"){T=O+B+D}else{var j=E.clientWidth,N=E.offsetWidth;T=O+I+z+B+D+(N-j)}}if(P){E.style.transform=P}if(M){E.style.webkitTransform=M}if(r.roundLengths)T=Math.floor(T)}else{T=(s-(r.slidesPerView-1)*b)/r.slidesPerView;if(r.roundLengths)T=Math.floor(T);if(u[C]){u[C].style[t("width")]="".concat(T,"px")}}if(u[C]){u[C].swiperSlideSize=T}m.push(T);if(r.centeredSlides){_=_+T/2+x/2+b;if(x===0&&C!==0)_=_-s/2-b;if(C===0)_=_-s/2-b;if(Math.abs(_)<1/1e3)_=0;if(r.roundLengths)_=Math.floor(_);if(k%r.slidesPerGroup===0)h.push(_);f.push(_)}else{if(r.roundLengths)_=Math.floor(_);if((k-Math.min(e.params.slidesPerGroupSkip,k))%e.params.slidesPerGroup===0)h.push(_);f.push(_);_=_+T+b}e.virtualSize+=T+b;x=T;k+=1}e.virtualSize=Math.max(e.virtualSize,s)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width="".concat(e.virtualSize+b,"px")}if(r.setWrapperSize){n.style[t("width")]="".concat(e.virtualSize+b,"px")}if(A){e.grid.updateWrapperSize(T,h,t)}if(!r.centeredSlides){var R=[];for(var C=0;C<h.length;C+=1){var G=h[C];if(r.roundLengths)G=Math.floor(G);if(h[C]<=e.virtualSize-s){R.push(G)}}h=R;if(Math.floor(e.virtualSize-s)-Math.floor(h[h.length-1])>1){h.push(e.virtualSize-s)}}if(c&&r.loop){var Z=m[0]+b;if(r.slidesPerGroup>1){var H=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup);var Y=Z*r.slidesPerGroup;for(var C=0;C<H;C+=1){h.push(h[h.length-1]+Y)}}for(var C=0;C<e.virtual.slidesBefore+e.virtual.slidesAfter;C+=1){if(r.slidesPerGroup===1){h.push(h[h.length-1]+Z)}f.push(f[f.length-1]+Z);e.virtualSize+=Z}}if(h.length===0)h=[0];if(b!==0){var V=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((function(e,t){if(!r.cssMode||r.loop)return true;if(t===u.length-1){return false}return true})).forEach((function(e){e.style[V]="".concat(b,"px")}))}if(r.centeredSlides&&r.centeredSlidesBounds){var U=0;m.forEach((function(e){U+=e+(b||0)}));U-=b;var W=U-s;h=h.map((function(e){if(e<=0)return-g;if(e>W)return W+v;return e}))}if(r.centerInsufficientSlides){var q=0;m.forEach((function(e){q+=e+(b||0)}));q-=b;if(q<s){var K=(s-q)/2;h.forEach((function(e,t){h[t]=e-K}));f.forEach((function(e,t){f[t]=e+K}))}}Object.assign(e,{slides:u,snapGrid:h,slidesGrid:f,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){$r(n,"--swiper-centered-offset-before","".concat(-h[0],"px"));$r(n,"--swiper-centered-offset-after","".concat(e.size/2-m[m.length-1]/2,"px"));var Q=-e.snapGrid[0];var X=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+Q}));e.slidesGrid=e.slidesGrid.map((function(e){return e+X}))}if(d!==p){e.emit("slidesLengthChange")}if(h.length!==y){if(e.params.watchOverflow)e.checkOverflow();e.emit("snapGridLengthChange")}if(f.length!==w){e.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){e.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){var J="".concat(r.containerModifierClass,"backface-hidden");var $=e.el.classList.contains(J);if(d<=r.maxBackfaceHiddenSlides){if(!$)e.el.classList.add(J)}else if($){e.el.classList.remove(J)}}}function Ln(e){var t=this;var i=[];var r=t.virtual&&t.params.virtual.enabled;var n=0;var o;if(typeof e==="number"){t.setTransition(e)}else if(e===true){t.setTransition(t.params.speed)}var s=function(e){if(r){return t.slides[t.getSlideIndexByData(e)]}return t.slides[e]};if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1){if(t.params.centeredSlides){(t.visibleSlides||[]).forEach((function(e){i.push(e)}))}else{for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){var a=t.activeIndex+o;if(a>t.slides.length&&!r)break;i.push(s(a))}}}else{i.push(s(t.activeIndex))}for(o=0;o<i.length;o+=1){if(typeof i[o]!=="undefined"){var l=i[o].offsetHeight;n=l>n?l:n}}if(n||n===0)t.wrapperEl.style.height="".concat(n,"px")}function Cn(){var e=this;var t=e.slides;var i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(var r=0;r<t.length;r+=1){t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-i-e.cssOverflowAdjustment()}}function En(e){if(e===void 0){e=this&&this.translate||0}var t=this;var i=t.params;var r=t.slides,n=t.rtlTranslate,o=t.snapGrid;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")t.updateSlidesOffset();var s=-e;if(n)s=e;r.forEach((function(e){e.classList.remove(i.slideVisibleClass)}));t.visibleSlidesIndexes=[];t.visibleSlides=[];var a=i.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*t.size}else if(typeof a==="string"){a=parseFloat(a)}for(var l=0;l<r.length;l+=1){var c=r[l];var p=c.swiperSlideOffset;if(i.cssMode&&i.centeredSlides){p-=r[0].swiperSlideOffset}var u=(s+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var d=(s-o[0]+(i.centeredSlides?t.minTranslate():0)-p)/(c.swiperSlideSize+a);var h=-(s-p);var f=h+t.slidesSizesGrid[l];var m=h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size;if(m){t.visibleSlides.push(c);t.visibleSlidesIndexes.push(l);r[l].classList.add(i.slideVisibleClass)}c.progress=n?-u:u;c.originalProgress=n?-d:d}}function Sn(e){var t=this;if(typeof e==="undefined"){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var r=t.params;var n=t.maxTranslate()-t.minTranslate();var o=t.progress,s=t.isBeginning,a=t.isEnd,l=t.progressLoop;var c=s;var p=a;if(n===0){o=0;s=true;a=true}else{o=(e-t.minTranslate())/n;var u=Math.abs(e-t.minTranslate())<1;var d=Math.abs(e-t.maxTranslate())<1;s=u||o<=0;a=d||o>=1;if(u)o=0;if(d)o=1}if(r.loop){var h=t.getSlideIndexByData(0);var f=t.getSlideIndexByData(t.slides.length-1);var m=t.slidesGrid[h];var g=t.slidesGrid[f];var v=t.slidesGrid[t.slidesGrid.length-1];var y=Math.abs(e);if(y>=m){l=(y-m)/v}else{l=(y+v-g)/v}if(l>1)l-=1}Object.assign(t,{progress:o,progressLoop:l,isBeginning:s,isEnd:a});if(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)t.updateSlidesProgress(e);if(s&&!c){t.emit("reachBeginning toEdge")}if(a&&!p){t.emit("reachEnd toEdge")}if(c&&!s||p&&!a){t.emit("fromEdge")}t.emit("progress",o)}function Pn(){var e=this;var t=e.slides,i=e.params,r=e.slidesEl,n=e.activeIndex;var o=e.virtual&&i.virtual.enabled;var s=function(e){return tn(r,".".concat(i.slideClass).concat(e,", swiper-slide").concat(e))[0]};t.forEach((function(e){e.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)}));var a;if(o){if(i.loop){var l=n-e.virtual.slidesBefore;if(l<0)l=e.virtual.slides.length+l;if(l>=e.virtual.slides.length)l-=e.virtual.slides.length;a=s('[data-swiper-slide-index="'.concat(l,'"]'))}else{a=s('[data-swiper-slide-index="'.concat(n,'"]'))}}else{a=t[n]}if(a){a.classList.add(i.slideActiveClass);var c=sn(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!c){c=t[0]}if(c){c.classList.add(i.slideNextClass)}var p=on(a,".".concat(i.slideClass,", swiper-slide"))[0];if(i.loop&&!p===0){p=t[t.length-1]}if(p){p.classList.add(i.slidePrevClass)}}e.emitSlidesClasses()}var Mn=function(e,t){if(!e||e.destroyed||!e.params)return;var i=function(){return e.isElement?"swiper-slide":".".concat(e.params.slideClass)};var r=t.closest(i());if(r){var n=r.querySelector(".".concat(e.params.lazyPreloaderClass));if(n)n.remove()}};var On=function(e,t){if(!e.slides[t])return;var i=e.slides[t].querySelector('[loading="lazy"]');if(i)i.removeAttribute("loading")};var In=function(e){if(!e||e.destroyed||!e.params)return;var t=e.params.lazyPreloadPrevNext;var i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);var r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView);var n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var o=n;var s=[o-t];s.push.apply(s,Array.from({length:t}).map((function(e,t){return o+r+t})));e.slides.forEach((function(t,i){if(s.includes(t.column))On(e,i)}));return}var a=n+r-1;if(e.params.rewind||e.params.loop){for(var l=n-t;l<=a+t;l+=1){var c=(l%i+i)%i;if(c<n||c>a)On(e,c)}}else{for(var l=Math.max(n-t,0);l<=Math.min(a+t,i-1);l+=1){if(l!==n&&(l>a||l<n)){On(e,l)}}}};function zn(e){var t=e.slidesGrid,i=e.params;var r=e.rtlTranslate?e.translate:-e.translate;var n;for(var o=0;o<t.length;o+=1){if(typeof t[o+1]!=="undefined"){if(r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2){n=o}else if(r>=t[o]&&r<t[o+1]){n=o+1}}else if(r>=t[o]){n=o}}if(i.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function Bn(e){var t=this;var i=t.rtlTranslate?t.translate:-t.translate;var r=t.snapGrid,n=t.params,o=t.activeIndex,s=t.realIndex,a=t.snapIndex;var l=e;var c;var p=function(e){var i=e-t.virtual.slidesBefore;if(i<0){i=t.virtual.slides.length+i}if(i>=t.virtual.slides.length){i-=t.virtual.slides.length}return i};if(typeof l==="undefined"){l=zn(t)}if(r.indexOf(i)>=0){c=r.indexOf(i)}else{var u=Math.min(n.slidesPerGroupSkip,l);c=u+Math.floor((l-u)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===o){if(c!==a){t.snapIndex=c;t.emit("snapIndexChange")}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=p(l)}return}var d;if(t.virtual&&n.virtual.enabled&&n.loop){d=p(l)}else if(t.slides[l]){d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{d=l}Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:d,previousIndex:o,activeIndex:l});if(t.initialized){In(t)}t.emit("activeIndexChange");t.emit("snapIndexChange");if(s!==d){t.emit("realIndexChange")}if(t.initialized||t.params.runCallbacksOnInit){t.emit("slideChange")}}function Dn(e){var t=this;var i=t.params;var r=e.closest(".".concat(i.slideClass,", swiper-slide"));var n=false;var o;if(r){for(var s=0;s<t.slides.length;s+=1){if(t.slides[s]===r){n=true;o=s;break}}}if(r&&n){t.clickedSlide=r;if(t.virtual&&t.params.virtual.enabled){t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{t.clickedIndex=o}}else{t.clickedSlide=undefined;t.clickedIndex=undefined;return}if(i.slideToClickedSlide&&t.clickedIndex!==undefined&&t.clickedIndex!==t.activeIndex){t.slideToClickedSlide()}}var Fn={updateSize:An,updateSlides:Tn,updateAutoHeight:Ln,updateSlidesOffset:Cn,updateSlidesProgress:En,updateProgress:Sn,updateSlidesClasses:Pn,updateActiveIndex:Bn,updateClickedSlide:Dn};function jn(e){if(e===void 0){e=this.isHorizontal()?"x":"y"}var t=this;var i=t.params,r=t.rtlTranslate,n=t.translate,o=t.wrapperEl;if(i.virtualTranslate){return r?-n:n}if(i.cssMode){return n}var s=Kr(o,e);s+=t.cssOverflowAdjustment();if(r)s=-s;return s||0}function Nn(e,t){var i=this;var r=i.rtlTranslate,n=i.params,o=i.wrapperEl,s=i.progress;var a=0;var l=0;var c=0;if(i.isHorizontal()){a=r?-e:e}else{l=e}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}i.previousTranslate=i.translate;i.translate=i.isHorizontal()?a:l;if(n.cssMode){o[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(i.isHorizontal()){a-=i.cssOverflowAdjustment()}else{l-=i.cssOverflowAdjustment()}o.style.transform="translate3d(".concat(a,"px, ").concat(l,"px, ").concat(c,"px)")}var p;var u=i.maxTranslate()-i.minTranslate();if(u===0){p=0}else{p=(e-i.minTranslate())/u}if(p!==s){i.updateProgress(e)}i.emit("setTranslate",i.translate,t)}function Rn(){return-this.snapGrid[0]}function Gn(){return-this.snapGrid[this.snapGrid.length-1]}function Zn(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(r===void 0){r=true}var s=this;var a=s.params,l=s.wrapperEl;if(s.animating&&a.preventInteractionOnTransition){return false}var c=s.minTranslate();var p=s.maxTranslate();var u;if(r&&e>c)u=c;else if(r&&e<p)u=p;else u=e;s.updateProgress(u);if(a.cssMode){var d=s.isHorizontal();if(t===0){l[d?"scrollLeft":"scrollTop"]=-u}else{if(!s.support.smoothScroll){en({swiper:s,targetPosition:-u,side:d?"left":"top"});return true}l.scrollTo((o={},o[d?"left":"top"]=-u,o.behavior="smooth",o))}return true}if(t===0){s.setTransition(0);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionEnd")}}else{s.setTransition(t);s.setTranslate(u);if(i){s.emit("beforeTransitionStart",t,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(i){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}var Hn={getTranslate:jn,setTranslate:Nn,minTranslate:Rn,maxTranslate:Gn,translateTo:Zn};function Yn(e,t){var i=this;if(!i.params.cssMode){i.wrapperEl.style.transitionDuration="".concat(e,"ms")}i.emit("setTransition",e,t)}function Vn(e){var t=e.swiper,i=e.runCallbacks,r=e.direction,n=e.step;var o=t.activeIndex,s=t.previousIndex;var a=r;if(!a){if(o>s)a="next";else if(o<s)a="prev";else a="reset"}t.emit("transition".concat(n));if(i&&o!==s){if(a==="reset"){t.emit("slideResetTransition".concat(n));return}t.emit("slideChangeTransition".concat(n));if(a==="next"){t.emit("slideNextTransition".concat(n))}else{t.emit("slidePrevTransition".concat(n))}}}function Un(e,t){if(e===void 0){e=true}var i=this;var r=i.params;if(r.cssMode)return;if(r.autoHeight){i.updateAutoHeight()}Vn({swiper:i,runCallbacks:e,direction:t,step:"Start"})}function Wn(e,t){if(e===void 0){e=true}var i=this;var r=i.params;i.animating=false;if(r.cssMode)return;i.setTransition(0);Vn({swiper:i,runCallbacks:e,direction:t,step:"End"})}var qn={setTransition:Yn,transitionStart:Un,transitionEnd:Wn};function Kn(e,t,i,r,n){var o;if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){e=parseInt(e,10)}var s=this;var a=e;if(a<0)a=0;var l=s.params,c=s.snapGrid,p=s.slidesGrid,u=s.previousIndex,d=s.activeIndex,h=s.rtlTranslate,f=s.wrapperEl,m=s.enabled;if(s.animating&&l.preventInteractionOnTransition||!m&&!r&&!n){return false}var g=Math.min(s.params.slidesPerGroupSkip,a);var v=g+Math.floor((a-g)/s.params.slidesPerGroup);if(v>=c.length)v=c.length-1;var y=-c[v];if(l.normalizeSlideIndex){for(var w=0;w<p.length;w+=1){var b=-Math.floor(y*100);var _=Math.floor(p[w]*100);var x=Math.floor(p[w+1]*100);if(typeof p[w+1]!=="undefined"){if(b>=_&&b<x-(x-_)/2){a=w}else if(b>=_&&b<x){a=w+1}}else if(b>=_){a=w}}}if(s.initialized&&a!==d){if(!s.allowSlideNext&&(h?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())){return false}if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()){if((d||0)!==a){return false}}}if(a!==(u||0)&&i){s.emit("beforeSlideChangeStart")}s.updateProgress(y);var k;if(a>d)k="next";else if(a<d)k="prev";else k="reset";if(h&&-y===s.translate||!h&&y===s.translate){s.updateActiveIndex(a);if(l.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(l.effect!=="slide"){s.setTranslate(y)}if(k!=="reset"){s.transitionStart(i,k);s.transitionEnd(i,k)}return false}if(l.cssMode){var A=s.isHorizontal();var T=h?y:-y;if(t===0){var L=s.virtual&&s.params.virtual.enabled;if(L){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(L&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((function(){f[A?"scrollLeft":"scrollTop"]=T}))}else{f[A?"scrollLeft":"scrollTop"]=T}if(L){requestAnimationFrame((function(){s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){en({swiper:s,targetPosition:T,side:A?"left":"top"});return true}f.scrollTo((o={},o[A?"left":"top"]=T,o.behavior="smooth",o))}return true}s.setTransition(t);s.setTranslate(y);s.updateActiveIndex(a);s.updateSlidesClasses();s.emit("beforeTransitionStart",t,r);s.transitionStart(i,k);if(t===0){s.transitionEnd(i,k)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function e(t){if(!s||s.destroyed)return;if(t.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(i,k)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function Qn(e,t,i,r){if(e===void 0){e=0}if(t===void 0){t=this.params.speed}if(i===void 0){i=true}if(typeof e==="string"){var n=parseInt(e,10);e=n}var o=this;var s=e;if(o.params.loop){if(o.virtual&&o.params.virtual.enabled){s=s+o.virtual.slidesBefore}else{s=o.getSlideIndexByData(s)}}return o.slideTo(s,t,i,r)}function Xn(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.enabled,o=r.params,s=r.animating;if(!n)return r;var a=o.slidesPerGroup;if(o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}var l=r.activeIndex<o.slidesPerGroupSkip?1:a;var c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(o.rewind&&r.isEnd){return r.slideTo(0,e,t,i)}return r.slideTo(r.activeIndex+l,e,t,i)}function Jn(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;var n=r.params,o=r.snapGrid,s=r.slidesGrid,a=r.rtlTranslate,l=r.enabled,c=r.animating;if(!l)return r;var p=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!p&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}var u=a?r.translate:-r.translate;function d(e){if(e<0)return-Math.floor(Math.abs(e));return Math.floor(e)}var h=d(u);var f=o.map((function(e){return d(e)}));var m=o[f.indexOf(h)-1];if(typeof m==="undefined"&&n.cssMode){var g;o.forEach((function(e,t){if(h>=e){g=t}}));if(typeof g!=="undefined"){m=o[g>0?g-1:g]}}var v=0;if(typeof m!=="undefined"){v=s.indexOf(m);if(v<0)v=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){v=v-r.slidesPerViewDynamic("previous",true)+1;v=Math.max(v,0)}}if(n.rewind&&r.isBeginning){var y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,i)}return r.slideTo(v,e,t,i)}function $n(e,t,i){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}var r=this;return r.slideTo(r.activeIndex,e,t,i)}function eo(e,t,i,r){if(e===void 0){e=this.params.speed}if(t===void 0){t=true}if(r===void 0){r=.5}var n=this;var o=n.activeIndex;var s=Math.min(n.params.slidesPerGroupSkip,o);var a=s+Math.floor((o-s)/n.params.slidesPerGroup);var l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){var c=n.snapGrid[a];var p=n.snapGrid[a+1];if(l-c>(p-c)*r){o+=n.params.slidesPerGroup}}else{var u=n.snapGrid[a-1];var c=n.snapGrid[a];if(l-u<=(c-u)*r){o-=n.params.slidesPerGroup}}o=Math.max(o,0);o=Math.min(o,n.slidesGrid.length-1);return n.slideTo(o,e,t,i)}function to(){var e=this;var t=e.params,i=e.slidesEl;var r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;var n=e.clickedIndex;var o;var s=e.isElement?"swiper-slide":".".concat(t.slideClass);if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(t.centeredSlides){if(n<e.loopedSlides-r/2||n>e.slides.length-e.loopedSlides+r/2){e.loopFix();n=e.getSlideIndex(tn(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);Ur((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else if(n>e.slides.length-r){e.loopFix();n=e.getSlideIndex(tn(i,"".concat(s,'[data-swiper-slide-index="').concat(o,'"]'))[0]);Ur((function(){e.slideTo(n)}))}else{e.slideTo(n)}}else{e.slideTo(n)}}var io={slideTo:Kn,slideToLoop:Qn,slideNext:Xn,slidePrev:Jn,slideReset:$n,slideToClosest:eo,slideToClickedSlide:to};function ro(e){var t=this;var i=t.params,r=t.slidesEl;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;var n=tn(r,".".concat(i.slideClass,", swiper-slide"));n.forEach((function(e,t){e.setAttribute("data-swiper-slide-index",t)}));t.loopFix({slideRealIndex:e,direction:i.centeredSlides?undefined:"next"})}function no(e){var t=e===void 0?{}:e,i=t.slideRealIndex,r=t.slideTo,n=r===void 0?true:r,o=t.direction,s=t.setTranslate,a=t.activeSlideIndex,l=t.byController,c=t.byMousewheel;var p=this;if(!p.params.loop)return;p.emit("beforeLoopFix");var u=p.slides,d=p.allowSlidePrev,h=p.allowSlideNext,f=p.slidesEl,m=p.params;p.allowSlidePrev=true;p.allowSlideNext=true;if(p.virtual&&m.virtual.enabled){if(n){if(!m.centeredSlides&&p.snapIndex===0){p.slideTo(p.virtual.slides.length,0,false,true)}else if(m.centeredSlides&&p.snapIndex<m.slidesPerView){p.slideTo(p.virtual.slides.length+p.snapIndex,0,false,true)}else if(p.snapIndex===p.snapGrid.length-1){p.slideTo(p.virtual.slidesBefore,0,false,true)}}p.allowSlidePrev=d;p.allowSlideNext=h;p.emit("loopFix");return}var g=m.slidesPerView==="auto"?p.slidesPerViewDynamic():Math.ceil(parseFloat(m.slidesPerView,10));var v=m.loopedSlides||g;if(v%m.slidesPerGroup!==0){v+=m.slidesPerGroup-v%m.slidesPerGroup}p.loopedSlides=v;var y=[];var w=[];var b=p.activeIndex;if(typeof a==="undefined"){a=p.getSlideIndex(p.slides.filter((function(e){return e.classList.contains(m.slideActiveClass)}))[0])}else{b=a}var _=o==="next"||!o;var x=o==="prev"||!o;var k=0;var A=0;if(a<v){k=Math.max(v-a,m.slidesPerGroup);for(var T=0;T<v-a;T+=1){var L=T-Math.floor(T/u.length)*u.length;y.push(u.length-L-1)}}else if(a>p.slides.length-v*2){A=Math.max(a-(p.slides.length-v*2),m.slidesPerGroup);for(var T=0;T<A;T+=1){var L=T-Math.floor(T/u.length)*u.length;w.push(L)}}if(x){y.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.prepend(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}if(_){w.forEach((function(e){p.slides[e].swiperLoopMoveDOM=true;f.append(p.slides[e]);p.slides[e].swiperLoopMoveDOM=false}))}p.recalcSlides();if(m.slidesPerView==="auto"){p.updateSlides()}if(m.watchSlidesProgress){p.updateSlidesOffset()}if(n){if(y.length>0&&x){if(typeof i==="undefined"){var C=p.slidesGrid[b];var E=p.slidesGrid[b+k];var S=E-C;if(c){p.setTranslate(p.translate-S)}else{p.slideTo(b+k,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=S}}}else{if(s){p.slideToLoop(i,0,false,true)}}}else if(w.length>0&&_){if(typeof i==="undefined"){var C=p.slidesGrid[b];var E=p.slidesGrid[b-A];var S=E-C;if(c){p.setTranslate(p.translate-S)}else{p.slideTo(b-A,0,false,true);if(s){p.touches[p.isHorizontal()?"startX":"startY"]+=S}}}else{p.slideToLoop(i,0,false,true)}}}p.allowSlidePrev=d;p.allowSlideNext=h;if(p.controller&&p.controller.control&&!l){var P={slideRealIndex:i,slideTo:false,direction:o,setTranslate:s,activeSlideIndex:a,byController:true};if(Array.isArray(p.controller.control)){p.controller.control.forEach((function(e){if(!e.destroyed&&e.params.loop)e.loopFix(P)}))}else if(p.controller.control instanceof p.constructor&&p.controller.control.params.loop){p.controller.control.loopFix(P)}}p.emit("loopFix")}function oo(){var e=this;var t=e.params,i=e.slidesEl;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();var r=[];e.slides.forEach((function(e){var t=typeof e.swiperSlideIndex==="undefined"?e.getAttribute("data-swiper-slide-index")*1:e.swiperSlideIndex;r[t]=e}));e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")}));r.forEach((function(e){i.append(e)}));e.recalcSlides();e.slideTo(e.realIndex,0)}var so={loopCreate:ro,loopFix:no,loopDestroy:oo};function ao(e){var t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;var i=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;if(t.isElement){t.__preventObserver__=true}i.style.cursor="move";i.style.cursor=e?"grabbing":"grab";if(t.isElement){requestAnimationFrame((function(){t.__preventObserver__=false}))}}function lo(){var e=this;if(e.params.watchOverflow&&e.isLocked||e.params.cssMode){return}if(e.isElement){e.__preventObserver__=true}e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(e.isElement){requestAnimationFrame((function(){e.__preventObserver__=false}))}}var co={setGrabCursor:ao,unsetGrabCursor:lo};function po(e,t){if(t===void 0){t=this}function i(t){if(!t||t===Zr()||t===Yr())return null;if(t.assignedSlot)t=t.assignedSlot;var r=t.closest(e);if(!r&&!t.getRootNode){return null}return r||i(t.getRootNode().host)}return i(t)}function uo(e){var t=this;var i=Zr();var r=Yr();var n=t.touchEventsData;n.evCache.push(e);var o=t.params,s=t.touches,a=t.enabled;if(!a)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;if(t.animating&&o.preventInteractionOnTransition){return}if(!t.animating&&o.cssMode&&o.loop){t.loopFix()}var l=e;if(l.originalEvent)l=l.originalEvent;var c=l.target;if(o.touchEventsTarget==="wrapper"){if(!t.wrapperEl.contains(c))return}if("which"in l&&l.which===3)return;if("button"in l&&l.button>0)return;if(n.isTouched&&n.isMoved)return;var p=!!o.noSwipingClass&&o.noSwipingClass!=="";var u=e.composedPath?e.composedPath():e.path;if(p&&l.target&&l.target.shadowRoot&&u){c=u[0]}var d=o.noSwipingSelector?o.noSwipingSelector:".".concat(o.noSwipingClass);var h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?po(d,c):c.closest(d))){t.allowClick=true;return}if(o.swipeHandler){if(!c.closest(o.swipeHandler))return}s.currentX=l.pageX;s.currentY=l.pageY;var f=s.currentX;var m=s.currentY;var g=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection;var v=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(g&&(f<=v||f>=r.innerWidth-v)){if(g==="prevent"){e.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});s.startX=f;s.startY=m;n.touchStartTime=Wr();t.allowClick=true;t.updateSize();t.swipeDirection=undefined;if(o.threshold>0)n.allowThresholdMove=false;var y=true;if(c.matches(n.focusableElements)){y=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==c){i.activeElement.blur()}var w=y&&t.allowTouchMove&&o.touchStartPreventDefault;if((o.touchStartForcePreventDefault||w)&&!c.isContentEditable){l.preventDefault()}if(o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode){t.freeMode.onTouchStart()}t.emit("touchStart",l)}function ho(e){var t=Zr();var i=this;var r=i.touchEventsData;var n=i.params,o=i.touches,s=i.rtlTranslate,a=i.enabled;if(!a)return;if(!n.simulateTouch&&e.pointerType==="mouse")return;var l=e;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){i.emit("touchMoveOpposite",l)}return}var c=r.evCache.findIndex((function(e){return e.pointerId===l.pointerId}));if(c>=0)r.evCache[c]=l;var p=r.evCache.length>1?r.evCache[0]:l;var u=p.pageX;var d=p.pageY;if(l.preventedByNestedSwiper){o.startX=u;o.startY=d;return}if(!i.allowTouchMove){if(!l.target.matches(r.focusableElements)){i.allowClick=false}if(r.isTouched){Object.assign(o,{startX:u,startY:d,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:u,currentY:d});r.touchStartTime=Wr()}return}if(n.touchReleaseOnEdges&&!n.loop){if(i.isVertical()){if(d<o.startY&&i.translate<=i.maxTranslate()||d>o.startY&&i.translate>=i.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<o.startX&&i.translate<=i.maxTranslate()||u>o.startX&&i.translate>=i.minTranslate()){return}}if(t.activeElement){if(l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;i.allowClick=false;return}}if(r.allowTouchCallbacks){i.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u;o.currentY=d;var h=o.currentX-o.startX;var f=o.currentY-o.startY;if(i.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(f,2))<i.params.threshold)return;if(typeof r.isScrolling==="undefined"){var m=void 0;if(i.isHorizontal()&&o.currentY===o.startY||i.isVertical()&&o.currentX===o.startX){r.isScrolling=false}else{if(h*h+f*f>=25){m=Math.atan2(Math.abs(f),Math.abs(h))*180/Math.PI;r.isScrolling=i.isHorizontal()?m>n.touchAngle:90-m>n.touchAngle}}}if(r.isScrolling){i.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(o.currentX!==o.startX||o.currentY!==o.startY){r.startMoving=true}}if(r.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}i.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}var g=i.isHorizontal()?h:f;var v=i.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;if(n.oneWayMovement){g=Math.abs(g)*(s?1:-1);v=Math.abs(v)*(s?1:-1)}o.diff=g;g*=n.touchRatio;if(s){g=-g;v=-v}var y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next";i.touchesDirection=v>0?"prev":"next";var w=i.params.loop&&!n.cssMode;if(!r.isMoved){if(w){i.loopFix({direction:i.swipeDirection})}r.startTranslate=i.getTranslate();i.setTransition(0);if(i.animating){var b=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});i.wrapperEl.dispatchEvent(b)}r.allowMomentumBounce=false;if(n.grabCursor&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(true)}i.emit("sliderFirstMove",l)}var _;if(r.isMoved&&y!==i.touchesDirection&&w&&Math.abs(g)>=1){i.loopFix({direction:i.swipeDirection,setTranslate:true});_=true}i.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=g+r.startTranslate;var x=true;var k=n.resistanceRatio;if(n.touchReleaseOnEdges){k=0}if(g>0){if(w&&!_&&r.currentTranslate>(n.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())){i.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>i.minTranslate()){x=false;if(n.resistance){r.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+r.startTranslate+g,k)}}}else if(g<0){if(w&&!_&&r.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())){i.loopFix({direction:"next",setTranslate:true,activeSlideIndex:i.slides.length-(n.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<i.maxTranslate()){x=false;if(n.resistance){r.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-r.startTranslate-g,k)}}}if(x){l.preventedByNestedSwiper=true}if(!i.allowSlideNext&&i.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&i.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!i.allowSlidePrev&&!i.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(g)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;o.startX=o.currentX;o.startY=o.currentY;r.currentTranslate=r.startTranslate;o.diff=i.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress){i.updateActiveIndex();i.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&i.freeMode){i.freeMode.onTouchMove()}i.updateProgress(r.currentTranslate);i.setTranslate(r.currentTranslate)}function fo(e){var t=this;var i=t.touchEventsData;var r=i.evCache.findIndex((function(t){return t.pointerId===e.pointerId}));if(r>=0){i.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(e.type)){var n=e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView);if(!n){return}}var o=t.params,s=t.touches,a=t.rtlTranslate,l=t.slidesGrid,c=t.enabled;if(!c)return;if(!o.simulateTouch&&e.pointerType==="mouse")return;var p=e;if(p.originalEvent)p=p.originalEvent;if(i.allowTouchCallbacks){t.emit("touchEnd",p)}i.allowTouchCallbacks=false;if(!i.isTouched){if(i.isMoved&&o.grabCursor){t.setGrabCursor(false)}i.isMoved=false;i.startMoving=false;return}if(o.grabCursor&&i.isMoved&&i.isTouched&&(t.allowSlideNext===true||t.allowSlidePrev===true)){t.setGrabCursor(false)}var u=Wr();var d=u-i.touchStartTime;if(t.allowClick){var h=p.path||p.composedPath&&p.composedPath();t.updateClickedSlide(h&&h[0]||p.target);t.emit("tap click",p);if(d<300&&u-i.lastClickTime<300){t.emit("doubleTap doubleClick",p)}}i.lastClickTime=Wr();Ur((function(){if(!t.destroyed)t.allowClick=true}));if(!i.isTouched||!i.isMoved||!t.swipeDirection||s.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=false;i.isMoved=false;i.startMoving=false;return}i.isTouched=false;i.isMoved=false;i.startMoving=false;var f;if(o.followFinger){f=a?t.translate:-t.translate}else{f=-i.currentTranslate}if(o.cssMode){return}if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}var m=0;var g=t.slidesSizesGrid[0];for(var v=0;v<l.length;v+=v<o.slidesPerGroupSkip?1:o.slidesPerGroup){var y=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(typeof l[v+y]!=="undefined"){if(f>=l[v]&&f<l[v+y]){m=v;g=l[v+y]-l[v]}}else if(f>=l[v]){m=v;g=l[l.length-1]-l[l.length-2]}}var w=null;var b=null;if(o.rewind){if(t.isBeginning){b=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1}else if(t.isEnd){w=0}}var _=(f-l[m])/g;var x=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(d>o.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}if(t.swipeDirection==="next"){if(_>=o.longSwipesRatio)t.slideTo(o.rewind&&t.isEnd?w:m+x);else t.slideTo(m)}if(t.swipeDirection==="prev"){if(_>1-o.longSwipesRatio){t.slideTo(m+x)}else if(b!==null&&_<0&&Math.abs(_)>o.longSwipesRatio){t.slideTo(b)}else{t.slideTo(m)}}}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}var k=t.navigation&&(p.target===t.navigation.nextEl||p.target===t.navigation.prevEl);if(!k){if(t.swipeDirection==="next"){t.slideTo(w!==null?w:m+x)}if(t.swipeDirection==="prev"){t.slideTo(b!==null?b:m)}}else if(p.target===t.navigation.nextEl){t.slideTo(m+x)}else{t.slideTo(m)}}}function mo(){var e=this;var t=e.params,i=e.el;if(i&&i.offsetWidth===0)return;if(t.breakpoints){e.setBreakpoint()}var r=e.allowSlideNext,n=e.allowSlidePrev,o=e.snapGrid;var s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=true;e.allowSlidePrev=true;e.updateSize();e.updateSlides();e.updateSlidesClasses();var a=s&&t.loop;if((t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a){e.slideTo(e.slides.length-1,0,false,true)}else{if(e.params.loop&&!s){e.slideToLoop(e.realIndex,0,false,true)}else{e.slideTo(e.activeIndex,0,false,true)}}if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){clearTimeout(e.autoplay.resizeTimeout);e.autoplay.resizeTimeout=setTimeout((function(){if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){e.autoplay.resume()}}),500)}e.allowSlidePrev=n;e.allowSlideNext=r;if(e.params.watchOverflow&&o!==e.snapGrid){e.checkOverflow()}}function go(e){var t=this;if(!t.enabled)return;if(!t.allowClick){if(t.params.preventClicks)e.preventDefault();if(t.params.preventClicksPropagation&&t.animating){e.stopPropagation();e.stopImmediatePropagation()}}}function vo(){var e=this;var t=e.wrapperEl,i=e.rtlTranslate,r=e.enabled;if(!r)return;e.previousTranslate=e.translate;if(e.isHorizontal()){e.translate=-t.scrollLeft}else{e.translate=-t.scrollTop}if(e.translate===0)e.translate=0;e.updateActiveIndex();e.updateSlidesClasses();var n;var o=e.maxTranslate()-e.minTranslate();if(o===0){n=0}else{n=(e.translate-e.minTranslate())/o}if(n!==e.progress){e.updateProgress(i?-e.translate:e.translate)}e.emit("setTranslate",e.translate,false)}function yo(e){var t=this;Mn(t,e.target);if(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight){return}t.update()}var wo=false;function bo(){}var _o=function(e,t){var i=Zr();var r=e.params,n=e.el,o=e.wrapperEl,s=e.device;var a=!!r.nested;var l=t==="on"?"addEventListener":"removeEventListener";var c=t;n[l]("pointerdown",e.onTouchStart,{passive:false});i[l]("pointermove",e.onTouchMove,{passive:false,capture:a});i[l]("pointerup",e.onTouchEnd,{passive:true});i[l]("pointercancel",e.onTouchEnd,{passive:true});i[l]("pointerout",e.onTouchEnd,{passive:true});i[l]("pointerleave",e.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",e.onClick,true)}if(r.cssMode){o[l]("scroll",e.onScroll)}if(r.updateOnWindowResize){e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",mo,true)}else{e[c]("observerUpdate",mo,true)}n[l]("load",e.onLoad,{capture:true})};function xo(){var e=this;var t=Zr();var i=e.params;e.onTouchStart=uo.bind(e);e.onTouchMove=ho.bind(e);e.onTouchEnd=fo.bind(e);if(i.cssMode){e.onScroll=vo.bind(e)}e.onClick=go.bind(e);e.onLoad=yo.bind(e);if(!wo){t.addEventListener("touchstart",bo);wo=true}_o(e,"on")}function ko(){var e=this;_o(e,"off")}var Ao={attachEvents:xo,detachEvents:ko};var To=function(e,t){return e.grid&&t.grid&&t.grid.rows>1};function Lo(){var e=this;var t=e.realIndex,i=e.initialized,r=e.params,n=e.el;var o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;var s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;var a=s in o?o[s]:undefined;var l=a||e.originalParams;var c=To(e,r);var p=To(e,l);var u=r.enabled;if(c&&!p){n.classList.remove("".concat(r.containerModifierClass,"grid"),"".concat(r.containerModifierClass,"grid-column"));e.emitContainerClasses()}else if(!c&&p){n.classList.add("".concat(r.containerModifierClass,"grid"));if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add("".concat(r.containerModifierClass,"grid-column"))}e.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((function(t){if(typeof l[t]==="undefined")return;var i=r[t]&&r[t].enabled;var n=l[t]&&l[t].enabled;if(i&&!n){e[t].disable()}if(!i&&n){e[t].enable()}}));var d=l.direction&&l.direction!==r.direction;var h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);if(d&&i){e.changeDirection()}Jr(e.params,l);var f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev});if(u&&!f){e.disable()}else if(!u&&f){e.enable()}e.currentBreakpoint=s;e.emit("_beforeBreakpoint",l);if(h&&i){e.loopDestroy();e.loopCreate(t);e.updateSlides()}e.emit("breakpoint",l)}function Co(e,t,i){if(t===void 0){t="window"}if(!e||t==="container"&&!i)return undefined;var r=false;var n=Yr();var o=t==="window"?n.innerHeight:i.clientHeight;var s=Object.keys(e).map((function(e){if(typeof e==="string"&&e.indexOf("@")===0){var t=parseFloat(e.substr(1));var i=o*t;return{value:i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var a=0;a<s.length;a+=1){var l=s[a],c=l.point,p=l.value;if(t==="window"){if(n.matchMedia("(min-width: ".concat(p,"px)")).matches){r=c}}else if(p<=i.clientWidth){r=c}}return r||"max"}var Eo={setBreakpoint:Lo,getBreakpoint:Co};function So(e,t){var i=[];e.forEach((function(e){if(typeof e==="object"){Object.keys(e).forEach((function(r){if(e[r]){i.push(t+r)}}))}else if(typeof e==="string"){i.push(t+e)}}));return i}function Po(){var e;var t=this;var i=t.classNames,r=t.params,n=t.rtl,o=t.el,s=t.device;var a=So(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);i.push.apply(i,a);(e=o.classList).add.apply(e,i);t.emitContainerClasses()}function Mo(){var e;var t=this;var i=t.el,r=t.classNames;(e=i.classList).remove.apply(e,r);t.emitContainerClasses()}var Oo={addClasses:Po,removeClasses:Mo};function Io(){var e=this;var t=e.isLocked,i=e.params;var r=i.slidesOffsetBefore;if(r){var n=e.slides.length-1;var o=e.slidesGrid[n]+e.slidesSizesGrid[n]+r*2;e.isLocked=e.size>o}else{e.isLocked=e.snapGrid.length===1}if(i.allowSlideNext===true){e.allowSlideNext=!e.isLocked}if(i.allowSlidePrev===true){e.allowSlidePrev=!e.isLocked}if(t&&t!==e.isLocked){e.isEnd=false}if(t!==e.isLocked){e.emit(e.isLocked?"lock":"unlock")}}var zo={checkOverflow:Io};var Bo={init:true,direction:"horizontal",oneWayMovement:false,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:false,updateOnWindowResize:true,resizeObserver:true,nested:false,createElements:false,enabled:true,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:false,userAgent:null,url:null,edgeSwipeDetection:false,edgeSwipeThreshold:20,autoHeight:false,setWrapperSize:false,virtualTranslate:false,effect:"slide",breakpoints:undefined,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:false,centeredSlides:false,centeredSlidesBounds:false,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:true,centerInsufficientSlides:false,watchOverflow:true,roundLengths:false,touchRatio:1,touchAngle:45,simulateTouch:true,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,allowTouchMove:true,threshold:5,touchMoveStopPropagation:false,touchStartPreventDefault:true,touchStartForcePreventDefault:false,touchReleaseOnEdges:false,uniqueNavElements:true,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,grabCursor:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loop:false,loopedSlides:null,loopPreventsSliding:true,rewind:false,allowSlidePrev:true,allowSlideNext:true,swipeHandler:null,noSwiping:true,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:true,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:true,_emitClasses:false};function Do(e,t){return function i(r){if(r===void 0){r={}}var n=Object.keys(r)[0];var o=r[n];if(typeof o!=="object"||o===null){Jr(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&e[n]===true){e[n]={auto:true}}if(!(n in e&&"enabled"in o)){Jr(t,r);return}if(e[n]===true){e[n]={enabled:true}}if(typeof e[n]==="object"&&!("enabled"in e[n])){e[n].enabled=true}if(!e[n])e[n]={enabled:false};Jr(t,r)}}var Fo={eventsEmitter:kn,update:Fn,translate:Hn,transition:qn,slide:io,loop:so,grabCursor:co,events:Ao,breakpoints:Eo,checkOverflow:zo,classes:Oo};var jo={};var No=function(){function e(){var t;var i=[];for(var r=0;r<arguments.length;r++){i[r]=arguments[r]}var n;var o;if(i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"){o=i[0]}else{n=i[0],o=i[1]}if(!o)o={};o=Jr({},o);if(n&&!o.el)o.el=n;var s=Zr();if(o.el&&typeof o.el==="string"&&s.querySelectorAll(o.el).length>1){var a=[];s.querySelectorAll(o.el).forEach((function(t){var i=Jr({},o,{el:t});a.push(new e(i))}));return a}var l=this;l.__swiper__=true;l.support=fn();l.device=vn({userAgent:o.userAgent});l.browser=bn();l.eventsListeners={};l.eventsAnyListeners=[];l.modules=__spreadArray([],l.__modules__,true);if(o.modules&&Array.isArray(o.modules)){(t=l.modules).push.apply(t,o.modules)}var c={};l.modules.forEach((function(e){e({params:o,swiper:l,extendParams:Do(o,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})}));var p=Jr({},Bo,c);l.params=Jr({},p,jo,o);l.originalParams=Jr({},l.params);l.passedParams=Jr({},o);if(l.params&&l.params.on){Object.keys(l.params.on).forEach((function(e){l.on(e,l.params.on[e])}))}if(l.params&&l.params.onAny){l.onAny(l.params.onAny)}Object.assign(l,{enabled:l.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return l.params.direction==="horizontal"},isVertical:function(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});l.emit("_swiper");if(l.params.init){l.init()}return l}e.prototype.getSlideIndex=function(e){var t=this,i=t.slidesEl,r=t.params;var n=tn(i,".".concat(r.slideClass,", swiper-slide"));var o=ln(n[0]);return ln(e)-o};e.prototype.getSlideIndexByData=function(e){return this.getSlideIndex(this.slides.filter((function(t){return t.getAttribute("data-swiper-slide-index")*1===e}))[0])};e.prototype.recalcSlides=function(){var e=this;var t=e.slidesEl,i=e.params;e.slides=tn(t,".".concat(i.slideClass,", swiper-slide"))};e.prototype.enable=function(){var e=this;if(e.enabled)return;e.enabled=true;if(e.params.grabCursor){e.setGrabCursor()}e.emit("enable")};e.prototype.disable=function(){var e=this;if(!e.enabled)return;e.enabled=false;if(e.params.grabCursor){e.unsetGrabCursor()}e.emit("disable")};e.prototype.setProgress=function(e,t){var i=this;e=Math.min(Math.max(e,0),1);var r=i.minTranslate();var n=i.maxTranslate();var o=(n-r)*e+r;i.translateTo(o,typeof t==="undefined"?0:t);i.updateActiveIndex();i.updateSlidesClasses()};e.prototype.emitContainerClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=e.el.className.split(" ").filter((function(t){return t.indexOf("swiper")===0||t.indexOf(e.params.containerModifierClass)===0}));e.emit("_containerClasses",t.join(" "))};e.prototype.getSlideClasses=function(e){var t=this;if(t.destroyed)return"";return e.className.split(" ").filter((function(e){return e.indexOf("swiper-slide")===0||e.indexOf(t.params.slideClass)===0})).join(" ")};e.prototype.emitSlidesClasses=function(){var e=this;if(!e.params._emitClasses||!e.el)return;var t=[];e.slides.forEach((function(i){var r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r});e.emit("_slideClass",i,r)}));e.emit("_slideClasses",t)};e.prototype.slidesPerViewDynamic=function(e,t){if(e===void 0){e="current"}if(t===void 0){t=false}var i=this;var r=i.params,n=i.slides,o=i.slidesGrid,s=i.slidesSizesGrid,a=i.size,l=i.activeIndex;var c=1;if(r.centeredSlides){var p=n[l]?n[l].swiperSlideSize:0;var u=void 0;for(var d=l+1;d<n.length;d+=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}for(var d=l-1;d>=0;d-=1){if(n[d]&&!u){p+=n[d].swiperSlideSize;c+=1;if(p>a)u=true}}}else{if(e==="current"){for(var d=l+1;d<n.length;d+=1){var h=t?o[d]+s[d]-o[l]<a:o[d]-o[l]<a;if(h){c+=1}}}else{for(var d=l-1;d>=0;d-=1){var h=o[l]-o[d]<a;if(h){c+=1}}}}return c};e.prototype.update=function(){var e=this;if(!e||e.destroyed)return;var t=e.snapGrid,i=e.params;if(i.breakpoints){e.setBreakpoint()}__spreadArray([],e.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(t){if(t.complete){Mn(e,t)}}));e.updateSize();e.updateSlides();e.updateProgress();e.updateSlidesClasses();function r(){var t=e.rtlTranslate?e.translate*-1:e.translate;var i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i);e.updateActiveIndex();e.updateSlidesClasses()}var n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode){r();if(i.autoHeight){e.updateAutoHeight()}}else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){var o=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,false,true)}else{n=e.slideTo(e.activeIndex,0,false,true)}if(!n){r()}}if(i.watchOverflow&&t!==e.snapGrid){e.checkOverflow()}e.emit("update")};e.prototype.changeDirection=function(e,t){if(t===void 0){t=true}var i=this;var r=i.params.direction;if(!e){e=r==="horizontal"?"vertical":"horizontal"}if(e===r||e!=="horizontal"&&e!=="vertical"){return i}i.el.classList.remove("".concat(i.params.containerModifierClass).concat(r));i.el.classList.add("".concat(i.params.containerModifierClass).concat(e));i.emitContainerClasses();i.params.direction=e;i.slides.forEach((function(t){if(e==="vertical"){t.style.width=""}else{t.style.height=""}}));i.emit("changeDirection");if(t)i.update();return i};e.prototype.changeLanguageDirection=function(e){var t=this;if(t.rtl&&e==="rtl"||!t.rtl&&e==="ltr")return;t.rtl=e==="rtl";t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl;if(t.rtl){t.el.classList.add("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="rtl"}else{t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl"));t.el.dir="ltr"}t.update()};e.prototype.mount=function(e){var t=this;if(t.mounted)return true;var i=e||t.params.el;if(typeof i==="string"){i=document.querySelector(i)}if(!i){return false}i.swiper=t;if(i.shadowEl){t.isElement=true}var r=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))};var n=function(){if(i&&i.shadowRoot&&i.shadowRoot.querySelector){var e=i.shadowRoot.querySelector(r());return e}return tn(i,r())[0]};var o=n();if(!o&&t.params.createElements){o=rn("div",t.params.wrapperClass);i.append(o);tn(i,".".concat(t.params.slideClass)).forEach((function(e){o.append(e)}))}Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement?i:o,mounted:true,rtl:i.dir.toLowerCase()==="rtl"||an(i,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||an(i,"direction")==="rtl"),wrongRTL:an(o,"display")==="-webkit-box"});return true};e.prototype.init=function(e){var t=this;if(t.initialized)return t;var i=t.mount(e);if(i===false)return t;t.emit("beforeInit");if(t.params.breakpoints){t.setBreakpoint()}t.addClasses();t.updateSize();t.updateSlides();if(t.params.watchOverflow){t.checkOverflow()}if(t.params.grabCursor&&t.enabled){t.setGrabCursor()}if(t.params.loop&&t.virtual&&t.params.virtual.enabled){t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,false,true)}else{t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,false,true)}if(t.params.loop){t.loopCreate()}t.attachEvents();__spreadArray([],t.el.querySelectorAll('[loading="lazy"]'),true).forEach((function(e){if(e.complete){Mn(t,e)}else{e.addEventListener("load",(function(e){Mn(t,e.target)}))}}));In(t);t.initialized=true;In(t);t.emit("init");t.emit("afterInit");return t};e.prototype.destroy=function(e,t){if(e===void 0){e=true}if(t===void 0){t=true}var i=this;var r=i.params,n=i.el,o=i.wrapperEl,s=i.slides;if(typeof i.params==="undefined"||i.destroyed){return null}i.emit("beforeDestroy");i.initialized=false;i.detachEvents();if(r.loop){i.loopDestroy()}if(t){i.removeClasses();n.removeAttribute("style");o.removeAttribute("style");if(s&&s.length){s.forEach((function(e){e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);e.removeAttribute("style");e.removeAttribute("data-swiper-slide-index")}))}}i.emit("destroy");Object.keys(i.eventsListeners).forEach((function(e){i.off(e)}));if(e!==false){i.el.swiper=null;Vr(i)}i.destroyed=true;return null};e.extendDefaults=function(e){Jr(jo,e)};Object.defineProperty(e,"extendedDefaults",{get:function(){return jo},enumerable:false,configurable:true});Object.defineProperty(e,"defaults",{get:function(){return Bo},enumerable:false,configurable:true});e.installModule=function(t){if(!e.prototype.__modules__)e.prototype.__modules__=[];var i=e.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}};e.use=function(t){if(Array.isArray(t)){t.forEach((function(t){return e.installModule(t)}));return e}e.installModule(t);return e};return e}();Object.keys(Fo).forEach((function(e){Object.keys(Fo[e]).forEach((function(t){No.prototype[t]=Fo[e][t]}))}));No.use([_n,xn]);function Ro(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=Zr();var s=Yr();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function a(e){if(!t.enabled)return;var i=t.rtlTranslate;var r=e;if(r.originalEvent)r=r.originalEvent;var a=r.keyCode||r.charCode;var l=t.params.keyboard.pageUpDown;var c=l&&a===33;var p=l&&a===34;var u=a===37;var d=a===39;var h=a===38;var f=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&d||t.isVertical()&&f||p)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||c)){return false}if(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey){return undefined}if(o.activeElement&&o.activeElement.nodeName&&(o.activeElement.nodeName.toLowerCase()==="input"||o.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||p||u||d||h||f)){var m=false;if(cn(t.el,".".concat(t.params.slideClass,", swiper-slide")).length>0&&cn(t.el,".".concat(t.params.slideActiveClass)).length===0){return undefined}var g=t.el;var v=g.clientWidth;var y=g.clientHeight;var w=s.innerWidth;var b=s.innerHeight;var _=nn(g);if(i)_.left-=g.scrollLeft;var x=[[_.left,_.top],[_.left+v,_.top],[_.left,_.top+y],[_.left+v,_.top+y]];for(var k=0;k<x.length;k+=1){var A=x[k];if(A[0]>=0&&A[0]<=w&&A[1]>=0&&A[1]<=b){if(A[0]===0&&A[1]===0)continue;m=true}}if(!m)return undefined}if(t.isHorizontal()){if(c||p||u||d){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if((p||d)&&!i||(c||u)&&i)t.slideNext();if((c||u)&&!i||(p||d)&&i)t.slidePrev()}else{if(c||p||h||f){if(r.preventDefault)r.preventDefault();else r.returnValue=false}if(p||f)t.slideNext();if(c||h)t.slidePrev()}n("keyPress",a);return undefined}function l(){if(t.keyboard.enabled)return;o.addEventListener("keydown",a);t.keyboard.enabled=true}function c(){if(!t.keyboard.enabled)return;o.removeEventListener("keydown",a);t.keyboard.enabled=false}r("init",(function(){if(t.params.keyboard.enabled){l()}}));r("destroy",(function(){if(t.keyboard.enabled){c()}}));Object.assign(t.keyboard,{enable:l,disable:c})}function Go(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o=Yr();i({mousewheel:{enabled:false,releaseOnEdges:false,invert:false,forceToAxis:false,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});t.mousewheel={enabled:false};var s;var a=Wr();var l;var c=[];function p(e){var t=10;var i=40;var r=800;var n=0;var o=0;var s=0;var a=0;if("detail"in e){o=e.detail}if("wheelDelta"in e){o=-e.wheelDelta/120}if("wheelDeltaY"in e){o=-e.wheelDeltaY/120}if("wheelDeltaX"in e){n=-e.wheelDeltaX/120}if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){n=o;o=0}s=n*t;a=o*t;if("deltaY"in e){a=e.deltaY}if("deltaX"in e){s=e.deltaX}if(e.shiftKey&&!s){s=a;a=0}if((s||a)&&e.deltaMode){if(e.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(!t.enabled)return;t.mouseEntered=true}function d(){if(!t.enabled)return;t.mouseEntered=false}function h(e){if(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&Wr()-a<t.params.mousewheel.thresholdTime){return false}if(e.delta>=6&&Wr()-a<60){return true}if(e.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();n("scroll",e.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();n("scroll",e.raw)}a=(new o.Date).getTime();return false}function f(e){var i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges){return true}return false}function m(e){var i=e;var r=true;if(!t.enabled)return;if(e.target.closest(".".concat(t.params.mousewheel.noMousewheelClass)))return;var o=t.params.mousewheel;if(t.params.cssMode){i.preventDefault()}var a=t.el;if(t.params.mousewheel.eventsTarget!=="container"){a=document.querySelector(t.params.mousewheel.eventsTarget)}var u=a&&a.contains(i.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(i.originalEvent)i=i.originalEvent;var d=0;var m=t.rtlTranslate?-1:1;var g=p(i);if(o.forceToAxis){if(t.isHorizontal()){if(Math.abs(g.pixelX)>Math.abs(g.pixelY))d=-g.pixelX*m;else return true}else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))d=-g.pixelY;else return true}else{d=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*m:-g.pixelY}if(d===0)return true;if(o.invert)d=-d;var v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();r=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(r&&t.params.nested)i.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){var y={time:Wr(),delta:Math.abs(d),direction:Math.sign(d),raw:e};if(c.length>=2){c.shift()}var w=c.length?c[c.length-1]:undefined;c.push(y);if(w){if(y.direction!==w.direction||y.delta>w.delta||y.time>w.time+150){h(y)}}else{h(y)}if(f(y)){return true}}else{var b={time:Wr(),delta:Math.abs(d),direction:Math.sign(d)};var _=l&&b.time<l.time+500&&b.delta<=l.delta&&b.direction===l.direction;if(!_){l=undefined;var x=t.getTranslate()+d*o.sensitivity;var k=t.isBeginning;var A=t.isEnd;if(x>=t.minTranslate())x=t.minTranslate();if(x<=t.maxTranslate())x=t.maxTranslate();t.setTransition(0);t.setTranslate(x);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!k&&t.isBeginning||!A&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:b.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(c.length>=15){c.shift()}var w=c.length?c[c.length-1]:undefined;var T=c[0];c.push(b);if(w&&(b.delta>w.delta||b.direction!==w.direction)){c.splice(0)}else if(c.length>=15&&b.time-T.time<500&&T.delta-b.delta>=1&&b.delta<=6){var L=d>0?.8:.2;l=b;c.splice(0);s=Ur((function(){t.slideToClosest(t.params.speed,true,undefined,L)}),0)}if(!s){s=Ur((function(){var e=.5;l=b;c.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!_)n("scroll",i);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(x===t.minTranslate()||x===t.maxTranslate())return true}}if(i.preventDefault)i.preventDefault();else i.returnValue=false;return false}function g(e){var i=t.el;if(t.params.mousewheel.eventsTarget!=="container"){i=document.querySelector(t.params.mousewheel.eventsTarget)}i[e]("mouseenter",u);i[e]("mouseleave",d);i[e]("wheel",m)}function v(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",m);return true}if(t.mousewheel.enabled)return false;g("addEventListener");t.mousewheel.enabled=true;return true}function y(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,m);return true}if(!t.mousewheel.enabled)return false;g("removeEventListener");t.mousewheel.enabled=false;return true}r("init",(function(){if(!t.params.mousewheel.enabled&&t.params.cssMode){y()}if(t.params.mousewheel.enabled)v()}));r("destroy",(function(){if(t.params.cssMode){v()}if(t.mousewheel.enabled)y()}));Object.assign(t.mousewheel,{enable:v,disable:y})}function Zo(e,t,i,r){if(e.params.createElements){Object.keys(r).forEach((function(n){if(!i[n]&&i.auto===true){var o=tn(e.el,".".concat(r[n]))[0];if(!o){o=rn("div",r[n]);o.className=r[n];e.el.append(o)}i[n]=o;t[n]=o}}))}return i}function Ho(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;i({navigation:{nextEl:null,prevEl:null,hideOnClick:false,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}});t.navigation={nextEl:null,prevEl:null};var o=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function s(e){var i;if(e&&typeof e==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e);if(i)return i}if(e){if(typeof e==="string")i=__spreadArray([],document.querySelectorAll(e),true);if(t.params.uniqueNavElements&&typeof e==="string"&&i.length>1&&t.el.querySelectorAll(e).length===1){i=t.el.querySelector(e)}}if(e&&!i)return e;return i}function a(e,i){var r=t.params.navigation;e=o(e);e.forEach((function(e){var n;if(e){(n=e.classList)[i?"add":"remove"].apply(n,r.disabledClass.split(" "));if(e.tagName==="BUTTON")e.disabled=i;if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function l(){var e=t.navigation,i=e.nextEl,r=e.prevEl;if(t.params.loop){a(r,false);a(i,false);return}a(r,t.isBeginning&&!t.params.rewind);a(i,t.isEnd&&!t.params.rewind)}function c(e){e.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();n("navigationPrev")}function p(e){e.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();n("navigationNext")}function u(){var e=t.params.navigation;t.params.navigation=Zo(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(e.nextEl||e.prevEl))return;var i=s(e.nextEl);var r=s(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:r});i=o(i);r=o(r);var n=function(i,r){var n;if(i){i.addEventListener("click",r==="next"?p:c)}if(!t.enabled&&i){(n=i.classList).add.apply(n,e.lockClass.split(" "))}};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}function d(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);var n=function(e,i){var r;e.removeEventListener("click",i==="next"?p:c);(r=e.classList).remove.apply(r,t.params.navigation.disabledClass.split(" "))};i.forEach((function(e){return n(e,"next")}));r.forEach((function(e){return n(e,"prev")}))}r("init",(function(){if(t.params.navigation.enabled===false){f()}else{u();l()}}));r("toEdge fromEdge lock unlock",(function(){l()}));r("destroy",(function(){d()}));r("enable disable",(function(){var e=t.navigation,i=e.nextEl,r=e.prevEl;i=o(i);r=o(r);__spreadArray(__spreadArray([],i,true),r,true).filter((function(e){return!!e})).forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)}))}));r("click",(function(e,i){var r=t.navigation,s=r.nextEl,a=r.prevEl;s=o(s);a=o(a);var l=i.target;if(t.params.navigation.hideOnClick&&!a.includes(l)&&!s.includes(l)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===l||t.pagination.el.contains(l)))return;var c=void 0;if(s.length){c=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(a.length){c=a[0].classList.contains(t.params.navigation.hiddenClass)}if(c===true){n("navigationShow")}else{n("navigationHide")}__spreadArray(__spreadArray([],s,true),a,true).filter((function(e){return!!e})).forEach((function(e){return e.classList.toggle(t.params.navigation.hiddenClass)}))}}));var h=function(){var e;(e=t.el.classList).remove.apply(e,t.params.navigation.navigationDisabledClass.split(" "));u();l()};var f=function(){var e;(e=t.el.classList).add.apply(e,t.params.navigation.navigationDisabledClass.split(" "));d()};Object.assign(t.navigation,{enable:h,disable:f,update:l,init:u,destroy:d})}function Yo(e){if(e===void 0){e=""}return".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function Vo(e){var t=e.swiper,i=e.extendParams,r=e.on,n=e.emit;var o="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:false,hideOnClick:false,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:false,type:"bullets",dynamicBullets:false,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}});t.pagination={el:null,bullets:[]};var s;var a=0;var l=function(e){if(!Array.isArray(e))e=[e].filter((function(e){return!!e}));return e};function c(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function p(e,i){var r=t.params.pagination.bulletActiveClass;if(!e)return;e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i));e=e["".concat(i==="prev"?"previous":"next","ElementSibling")];if(e){e.classList.add("".concat(r,"-").concat(i,"-").concat(i))}}}function u(e){var i=e.target.closest(Yo(t.params.pagination.bulletClass));if(!i){return}e.preventDefault();var r=ln(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;var n=t.getSlideIndexByData(r);var o=t.getSlideIndexByData(t.realIndex);if(n>t.slides.length-t.loopedSlides){t.loopFix({direction:n>o?"next":"prev",activeSlideIndex:n,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function d(){var e,i;var r=t.rtl;var o=t.params.pagination;if(c())return;var u=t.pagination.el;u=l(u);var d;var h;var f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var m=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){h=t.previousRealIndex||0;d=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){d=t.snapIndex;h=t.previousSnapIndex}else{h=t.previousIndex||0;d=t.activeIndex||0}if(o.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){var g=t.pagination.bullets;var v;var y;var w=void 0;if(o.dynamicBullets){s=un(g[0],t.isHorizontal()?"width":"height",true);u.forEach((function(e){e.style[t.isHorizontal()?"width":"height"]="".concat(s*(o.dynamicMainBullets+4),"px")}));if(o.dynamicMainBullets>1&&h!==undefined){a+=d-(h||0);if(a>o.dynamicMainBullets-1){a=o.dynamicMainBullets-1}else if(a<0){a=0}}v=Math.max(d-a,0);y=v+(Math.min(g.length,o.dynamicMainBullets)-1);w=(y+v)/2}g.forEach((function(e){var t;var i=__spreadArray([],["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(o.bulletActiveClass).concat(e)})),true).map((function(e){return typeof e==="string"&&e.includes(" ")?e.split(" "):e})).flat();(t=e.classList).remove.apply(t,i)}));if(u.length>1){g.forEach((function(e){var i,r;var n=ln(e);if(n===d){(i=e.classList).add.apply(i,o.bulletActiveClass.split(" "))}else if(t.isElement){e.setAttribute("part","bullet")}if(o.dynamicBullets){if(n>=v&&n<=y){(r=e.classList).add.apply(r,"".concat(o.bulletActiveClass,"-main").split(" "))}if(n===v){p(e,"prev")}if(n===y){p(e,"next")}}}))}else{var b=g[d];if(b){(e=b.classList).add.apply(e,o.bulletActiveClass.split(" "))}if(t.isElement){g.forEach((function(e,t){e.setAttribute("part",t===d?"bullet-active":"bullet")}))}if(o.dynamicBullets){var _=g[v];var x=g[y];for(var k=v;k<=y;k+=1){if(g[k]){(i=g[k].classList).add.apply(i,"".concat(o.bulletActiveClass,"-main").split(" "))}}p(_,"prev");p(x,"next")}}if(o.dynamicBullets){var A=Math.min(g.length,o.dynamicMainBullets+4);var T=(s*A-s)/2-w*s;var L=r?"right":"left";g.forEach((function(e){e.style[t.isHorizontal()?L:"top"]="".concat(T,"px")}))}}u.forEach((function(e,i){if(o.type==="fraction"){e.querySelectorAll(Yo(o.currentClass)).forEach((function(e){e.textContent=o.formatFractionCurrent(d+1)}));e.querySelectorAll(Yo(o.totalClass)).forEach((function(e){e.textContent=o.formatFractionTotal(m)}))}if(o.type==="progressbar"){var r=void 0;if(o.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}var s=(d+1)/m;var a=1;var l=1;if(r==="horizontal"){a=s}else{l=s}e.querySelectorAll(Yo(o.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(a,") scaleY(").concat(l,")");e.style.transitionDuration="".concat(t.params.speed,"ms")}))}if(o.type==="custom"&&o.renderCustom){e.innerHTML=o.renderCustom(t,d+1,m);if(i===0)n("paginationRender",e)}else{if(i===0)n("paginationRender",e);n("paginationUpdate",e)}if(t.params.watchOverflow&&t.enabled){e.classList[t.isLocked?"add":"remove"](o.lockClass)}}))}function h(){var e=t.params.pagination;if(c())return;var i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;var r=t.pagination.el;r=l(r);var o="";if(e.type==="bullets"){var s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&s>i){s=i}for(var a=0;a<s;a+=1){if(e.renderBullet){o+=e.renderBullet.call(t,a,e.bulletClass)}else{o+="<".concat(e.bulletElement," ").concat(t.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}}}if(e.type==="fraction"){if(e.renderFraction){o=e.renderFraction.call(t,e.currentClass,e.totalClass)}else{o='<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')}}if(e.type==="progressbar"){if(e.renderProgressbar){o=e.renderProgressbar.call(t,e.progressbarFillClass)}else{o='<span class="'.concat(e.progressbarFillClass,'"></span>')}}t.pagination.bullets=[];r.forEach((function(i){var r;if(e.type!=="custom"){i.innerHTML=o||""}if(e.type==="bullets"){(r=t.pagination.bullets).push.apply(r,i.querySelectorAll(Yo(e.bulletClass)))}}));if(e.type!=="custom"){n("paginationRender",r[0])}}function f(){t.params.pagination=Zo(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});var e=t.params.pagination;if(!e.el)return;var i;if(typeof e.el==="string"&&t.isElement){i=t.el.shadowRoot.querySelector(e.el)}if(!i&&typeof e.el==="string"){i=__spreadArray([],document.querySelectorAll(e.el),true)}if(!i){i=e.el}if(!i||i.length===0)return;if(t.params.uniqueNavElements&&typeof e.el==="string"&&Array.isArray(i)&&i.length>1){i=__spreadArray([],t.el.querySelectorAll(e.el),true);if(i.length>1){i=i.filter((function(e){if(cn(e,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(i)&&i.length===1)i=i[0];Object.assign(t.pagination,{el:i});i=l(i);i.forEach((function(i){if(e.type==="bullets"&&e.clickable){i.classList.add(e.clickableClass)}i.classList.add(e.modifierClass+e.type);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.type==="bullets"&&e.dynamicBullets){i.classList.add("".concat(e.modifierClass).concat(e.type,"-dynamic"));a=0;if(e.dynamicMainBullets<1){e.dynamicMainBullets=1}}if(e.type==="progressbar"&&e.progressbarOpposite){i.classList.add(e.progressbarOppositeClass)}if(e.clickable){i.addEventListener("click",u)}if(!t.enabled){i.classList.add(e.lockClass)}}))}function m(){var e=t.params.pagination;if(c())return;var i=t.pagination.el;if(i){i=l(i);i.forEach((function(i){i.classList.remove(e.hiddenClass);i.classList.remove(e.modifierClass+e.type);i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass);if(e.clickable){i.removeEventListener("click",u)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((function(t){var i;return(i=t.classList).remove.apply(i,e.bulletActiveClass.split(" "))}))}r("changeDirection",(function(){if(!t.pagination||!t.pagination.el)return;var e=t.params.pagination;var i=t.pagination.el;i=l(i);i.forEach((function(i){i.classList.remove(e.horizontalClass,e.verticalClass);i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))}));r("init",(function(){if(t.params.pagination.enabled===false){v()}else{f();h();d()}}));r("activeIndexChange",(function(){if(typeof t.snapIndex==="undefined"){d()}}));r("snapIndexChange",(function(){d()}));r("snapGridLengthChange",(function(){h();d()}));r("destroy",(function(){m()}));r("enable disable",(function(){var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)}))}}));r("lock unlock",(function(){d()}));r("click",(function(e,i){var r=i.target;var o=t.pagination.el;if(!Array.isArray(o))o=[o].filter((function(e){return!!e}));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&o&&o.length>0&&!r.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&r===t.navigation.nextEl||t.navigation.prevEl&&r===t.navigation.prevEl))return;var s=o[0].classList.contains(t.params.pagination.hiddenClass);if(s===true){n("paginationShow")}else{n("paginationHide")}o.forEach((function(e){return e.classList.toggle(t.params.pagination.hiddenClass)}))}}));var g=function(){t.el.classList.remove(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.remove(t.params.pagination.paginationDisabledClass)}))}f();h();d()};var v=function(){t.el.classList.add(t.params.pagination.paginationDisabledClass);var e=t.pagination.el;if(e){e=l(e);e.forEach((function(e){return e.classList.add(t.params.pagination.paginationDisabledClass)}))}m()};Object.assign(t.pagination,{enable:g,disable:v,render:h,update:d,init:f,destroy:m})}function Uo(e){var t=e.swiper,i=e.extendParams,r=e.emit,n=e.once;i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function o(){if(t.params.cssMode)return;var e=t.getTranslate();t.setTranslate(e);t.setTransition(0);t.touchEventsData.velocities.length=0;t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function s(){if(t.params.cssMode)return;var e=t.touchEventsData,i=t.touches;if(e.velocities.length===0){e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime})}e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:Wr()})}function a(e){var i=e.currentPos;if(t.params.cssMode)return;var o=t.params,s=t.wrapperEl,a=t.rtlTranslate,l=t.snapGrid,c=t.touchEventsData;var p=Wr();var u=p-c.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<l.length){t.slideTo(l.length-1)}else{t.slideTo(t.slides.length-1)}return}if(o.freeMode.momentum){if(c.velocities.length>1){var d=c.velocities.pop();var h=c.velocities.pop();var f=d.position-h.position;var m=d.time-h.time;t.velocity=f/m;t.velocity/=2;if(Math.abs(t.velocity)<o.freeMode.minimumVelocity){t.velocity=0}if(m>150||Wr()-d.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=o.freeMode.momentumVelocityRatio;c.velocities.length=0;var g=1e3*o.freeMode.momentumRatio;var v=t.velocity*g;var y=t.translate+v;if(a)y=-y;var w=false;var b;var _=Math.abs(t.velocity)*20*o.freeMode.momentumBounceRatio;var x=void 0;if(y<t.maxTranslate()){if(o.freeMode.momentumBounce){if(y+t.maxTranslate()<-_){y=t.maxTranslate()-_}b=t.maxTranslate();w=true;c.allowMomentumBounce=true}else{y=t.maxTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(y>t.minTranslate()){if(o.freeMode.momentumBounce){if(y-t.minTranslate()>_){y=t.minTranslate()+_}b=t.minTranslate();w=true;c.allowMomentumBounce=true}else{y=t.minTranslate()}if(o.loop&&o.centeredSlides)x=true}else if(o.freeMode.sticky){var k=void 0;for(var A=0;A<l.length;A+=1){if(l[A]>-y){k=A;break}}if(Math.abs(l[k]-y)<Math.abs(l[k-1]-y)||t.swipeDirection==="next"){y=l[k]}else{y=l[k-1]}y=-y}if(x){n("transitionEnd",(function(){t.loopFix()}))}if(t.velocity!==0){if(a){g=Math.abs((-y-t.translate)/t.velocity)}else{g=Math.abs((y-t.translate)/t.velocity)}if(o.freeMode.sticky){var T=Math.abs((a?-y:y)-t.translate);var L=t.slidesSizesGrid[t.activeIndex];if(T<L){g=o.speed}else if(T<2*L){g=o.speed*1.5}else{g=o.speed*2.5}}}else if(o.freeMode.sticky){t.slideToClosest();return}if(o.freeMode.momentumBounce&&w){t.updateProgress(b);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);t.animating=true;pn(s,(function(){if(!t||t.destroyed||!c.allowMomentumBounce)return;r("momentumBounce");t.setTransition(o.speed);setTimeout((function(){t.setTranslate(b);pn(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){r("_freeModeNoMomentumRelease");t.updateProgress(y);t.setTransition(g);t.setTranslate(y);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;pn(s,(function(){if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(y)}t.updateActiveIndex();t.updateSlidesClasses()}else if(o.freeMode.sticky){t.slideToClosest();return}else if(o.freeMode){r("_freeModeNoMomentumRelease")}if(!o.freeMode.momentum||u>=o.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:o,onTouchMove:s,onTouchEnd:a}})}var Wo='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:var(--border-radius, 12px);background-color:var(--color-surface-container-low);color:var(--color-on-surface);--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 a{color:var(--color-primary-app)}: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)}.poi-type-img-container{position:relative}.poi-type-img-container .poi-img,.poi-type-img-container .default-poi-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .poi-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.poi-type-img-container .default-poi-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.poi-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.poi-type-img-container .poi-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.poi-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.poi-name{font-size:16px;line-height:24px}.poi-description{font-size:14px;line-height:20px}.poi-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-poi-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}';var qo=e("grw_poi",function(){function e(e){n(this,e);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperPoi=new No(this.swiperPoiRef,{modules:[Ho,Vo,Ro],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperPoi.keyboard.enable()}else{e.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight};e.prototype.handlePoiDescription=function(){this.displayShortDescription=!this.displayShortDescription};e.prototype.handleFullscreen=function(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t;var i=c("".concat("","assets/default-image.svg"));return o(s,null,o("div",{class:"poi-type-img-container"},o("img",{crossorigin:"anonymous",class:"poi-type",src:"".concat((t=_.poiTypes.find((function(t){return t.id===e.poi.type})))===null||t===void 0?void 0:t.pictogram)}),o("div",{class:"swiper",ref:function(t){return e.swiperPoiRef=t}},o("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{class:"poi-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElPoiRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElPoiRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElPoiRef=t}}))),o("div",{class:"poi-sub-container"},o("div",{class:"poi-name"},this.poi.name),o("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:function(t){return e.descriptionRef=t}}),this.showPoiDescriptionButton&&o("div",{class:"handle-poi-description",onClick:function(){return e.handlePoiDescription()}},this.displayShortDescription?p[_.language].readMore:p[_.language].readLess)))};return e}());qo.style=Wo;var Ko='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host span{color:var(--color-on-primary-container);font-size:24px;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 Qo=e("grw_search",function(){function e(e){n(this,e);this.fontFamily="Roboto"}e.prototype.onSearchChange=function(e){_.searchValue=e.target.value;if(_.mode==="treks"){_.currentTreks=F()}else if(_.mode==="touristicContents"){_.currentTouristicContents=j()}else if(_.mode==="touristicEvents"){_.currentTouristicEvents=N()}};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily}},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),o("input",{onInput:function(t){return e.onSearchChange(t)},class:"search-input",type:"search",placeholder:"Rechercher",value:_.searchValue}))};return e}());Qo.style=Ko;var Xo=".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-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%}.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 Jo=e("grw_segmented_segment",function(){function e(e){n(this,e);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}e.prototype.changeMode=function(e){_.searchValue="";if(e==="treks"&&_.currentTreks){z.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedThemesFilters=0;_.selectedLocationFilters=0;_.currentTreks=F()}else if(e==="touristicContents"&&_.currentTouristicContents){B.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedLocationFilters=0;_.currentTouristicContents=j()}else if(e==="touristicEvents"&&_.currentTouristicEvents){D.forEach((function(e){_[e.property].forEach((function(e){return e.selected=false}))}));_.selectedActivitiesFilters=0;_.selectedLocationFilters=0;_.currentTouristicEvents=N()}_.mode=e};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily}},o("div",{class:"segmented-buttons-container"},this.treks&&o("label",{class:"segment".concat(_.mode==="treks"?" selected-segment":""),onClick:function(){return e.changeMode("treks")}},p[_.language].home.segment.treks),this.touristicContents&&o("label",{class:"segment".concat(_.mode==="touristicContents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicContents")}},p[_.language].home.segment.touristicContents),this.touristicEvents&&o("label",{class:"segment".concat(_.mode==="touristicEvents"?" selected-segment":""),onClick:function(){return e.changeMode("touristicEvents")}},p[_.language].home.segment.touristicEvents)))};return e}());Jo.style=Xo;var $o='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host span{font-size:18px}:host #language-select{border:none;background-color:var(--color-background)}:host #language-select:focus-visible{outline:none}';var es=e("grw_select_language",function(){function e(e){n(this,e)}e.prototype.handleSelect=function(e){_.treks=null;_.currentTreks=null;_.currentTrek=null;_.language=e.target.value};e.prototype.render=function(){var e=this;return o(s,null,o("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),o("select",{onInput:function(t){return e.handleSelect(t)},name:"languages",id:"language-select"},_.languages.map((function(e){return o("option",{selected:e===_.language,value:e.toLocaleLowerCase()},e.toLocaleUpperCase())}))))};return e}());es.style=$o;var ts=":host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.sensitive-area-title{font-size:22px;line-height:28px;padding:12px 0px;font-weight:400}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-period-container .sensitive-area-period-title,.sensitive-area-period-container .sensitive-area-practice-title,.sensitive-area-period-container .sensitive-area-contact-title,.sensitive-area-practice-container .sensitive-area-period-title,.sensitive-area-practice-container .sensitive-area-practice-title,.sensitive-area-practice-container .sensitive-area-contact-title,.sensitive-area-contact-container .sensitive-area-period-title,.sensitive-area-contact-container .sensitive-area-practice-title,.sensitive-area-contact-container .sensitive-area-contact-title{font-size:16px;line-height:24px;padding:12px 0px}.sensitive-area-period-container .sensitive-area-period-values,.sensitive-area-period-container .sensitive-area-practice-values,.sensitive-area-practice-container .sensitive-area-period-values,.sensitive-area-practice-container .sensitive-area-practice-values,.sensitive-area-contact-container .sensitive-area-period-values,.sensitive-area-contact-container .sensitive-area-practice-values{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";var is=e("grw_sensitive_area_detail",function(){function e(e){n(this,e);this.sensitiveArea=undefined}e.prototype.render=function(){var e=this;return o(s,null,o("div",{class:"sensitive-area-title"},this.sensitiveArea.name),o("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&o("div",{class:"sensitive-area-practice-container"},o("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),o("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map((function(t,i){var r=_.practices.find((function(e){return e.id===t}));if(r){return o("div",{innerHTML:"".concat(r.name.toUpperCase()).concat(i+1!==e.sensitiveArea.practices.length?" -&nbsp;":"")})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&o("div",{class:"sensitive-area-period-container"},o("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),o("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map((function(t,i){if(t){return o("div",{innerHTML:"".concat(new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()).concat(e.sensitiveArea.period.slice(i+1).find((function(e){return e}))?" -&nbsp;":"")})}})))),o("div",{class:"sensitive-area-contact-container"},o("div",{class:"sensitive-area-contact-title"},"Contact"),o("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))};return e}());is.style=ts;var rs='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-content-type-img-container{position:relative}.touristic-content-type-img-container .touristic-content-img,.touristic-content-type-img-container .default-touristic-content-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .touristic-content-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-content-type-img-container .default-touristic-content-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-content-type-img-container .touristic-content-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-content-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-content-sub-container .touristic-content-category-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-content-sub-container .touristic-content-category-container .touristic-content-category-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-content-sub-container .touristic-content-category-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-content-sub-container .touristic-content-name{font-size:16px;line-height:24px}.touristic-content-more-detail-container{padding:0px 12px 12px 12px}.touristic-content-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-content-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-content-more-detail-container .more-details-button span{font-size:18px}.touristic-content-card-container,.touristic-content-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-content-card-container .image,.touristic-content-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-content-card-container{width:100%;max-width:350px}.touristic-content-card-container .image{width:100%;max-height:200px}.touristic-content-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-content-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-content-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';var ns=e("grw_touristic_content_card",function(){function e(e){n(this,e);this.touristicContentCardPress=l(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=l(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=l(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicContentRef){this.swiperTouristicContent=new No(this.swiperTouristicContentRef,{modules:[Ho,Vo,Ro],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicContent.keyboard.enable()}else{e.swiperTouristicContent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicContentMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=c("".concat("","assets/default-image.svg"));var i=_.touristicContentCategories.find((function(t){return t.id===e.touristicContent.category}));return o(s,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},o("div",{class:this.isLargeView?"touristic-content-card-large-view-container".concat(_.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-content-card-container".concat(_.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicContentCardPress.emit(e.touristicContent.id)}}},o("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?o("div",{class:"swiper",ref:function(t){return e.swiperTouristicContentRef=t}},o("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?this.touristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{class:"touristic-content-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicContentRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicContentRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicContentRef=t}})):this.touristicContent.attachments.filter((function(e){return e.type==="image"})).length>0?o("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicContent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):o("div",null)),o("div",{class:"touristic-content-sub-container"},o("div",{class:"touristic-content-category-container"},o("img",{crossorigin:"anonymous",src:i.pictogram}),o("div",{class:"touristic-content-category-name"},i.label)),o("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&o("div",{class:"touristic-content-more-detail-container"},o("button",{class:"more-details-button",onClick:function(){return e.touristicContentCardPress.emit(e.touristicContent.id)}},"Plus de détails"))))};return e}());ns.style=rs;var os='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var ss=e("grw_touristic_content_detail",function(){function e(e){n(this,e);this.displayFullscreen=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}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperImagesRef){this.swiperImages=new No(this.swiperImagesRef,{modules:[Ho,Vo,Ro,Uo,Go],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}}};e.prototype.handleFullscreen=function(){if(_.currentTouristicContent.attachments&&_.currentTouristicContent.attachments[0]&&_.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=c("".concat("","assets/default-image.svg"));var i=_.touristicContentCategories&&_.currentTouristicContent&&_.touristicContentCategories.find((function(e){return e.id===_.currentTouristicContent.category}));var r=_.currentTouristicContent&&_.currentTouristicContent.cities.map((function(e){var t;return(t=_.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return o(s,{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?"8px":"104px"}},_.currentTouristicContent&&o("div",{class:"touristic-content-detail-container",ref:function(t){return e.touristicContentDetailContainerRef=t}},o("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},o("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},o("div",{class:"swiper-wrapper"},_.currentTouristicContent.attachments.length>0?_.currentTouristicContent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),o("div",{class:"touristic-content-category-container"},o("img",{crossorigin:"anonymous",src:i.pictogram}),o("div",{class:"touristic-content-category-name"},i.label)),o("div",{class:"name"},_.currentTouristicContent.name),o("div",{class:"divider"}),o("div",{class:"downloads-container"},o("div",{class:"download-title"},p[_.language].download),o("div",{class:"links-container"},o("a",{href:"".concat(_.currentTouristicContent.pdf),target:"_blank",rel:"noopener noreferrer"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),_.currentTouristicContent.description_teaser&&o("div",null,o("div",{class:"divider"}),o("div",{class:"description-teaser",innerHTML:_.currentTouristicContent.description_teaser})),o("div",{class:"divider"}),_.currentTouristicContent.practical_info&&o("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},o("div",{class:"description-title"},p[_.language].description),o("div",{class:"description",innerHTML:_.currentTouristicContent.description})),r&&r.length>0&&o("div",{class:"cities-container"},o("div",{class:"cities-title"},p[_.language].city," : "),o("div",{innerHTML:r.join(", ")})),_.currentTouristicContent.practical_info&&o("div",null,o("div",{class:"divider"}),o("div",{class:"useful-information-container"},o("div",{class:"useful-information-title"},p[_.language].usefulInformation," : "),o("div",{innerHTML:_.currentTouristicContent.practical_info}))),(_.currentTouristicContent.contact||_.currentTouristicContent.email||_.currentTouristicContent.website)&&o("div",null,o("div",{class:"divider"}),o("div",{class:"contact-container"},o("div",{class:"contact-title"},p[_.language].contact," : "),_.currentTouristicContent.contact&&o("div",{innerHTML:_.currentTouristicContent.contact}),_.currentTouristicContent.email&&o("div",{class:"email-container"},o("div",null,p[_.language].email," : "),o("div",{innerHTML:_.currentTouristicContent.email})),_.currentTouristicContent.website&&o("div",{class:"website-container"},o("div",null,p[_.language].website," : "),o("div",{innerHTML:_.currentTouristicContent.website})))),o("div",{class:"detail-bottom-space"})))};return e}());ss.style=os;var as=e("grw_touristic_content_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTouristicContent()};e.prototype.handleTouristicContent=function(){var e=[];e.push(!_.cities?fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!_.touristicContentCategories?fetch("".concat(_.api,"touristiccontent_category/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(_.api,"touristiccontent/").concat(this.touristicContentId,"/?language=").concat(_.language,"&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website"),this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];_.trekNetworkError=false;if(t){_.cities=t.results}if(i){_.touristicContentCategories=i.results}_.currentTouristicContent=r})).catch((function(){_.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();_.trekNetworkError=false};e.prototype.render=function(){return o(s,null)};return e}());var ls='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-content-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 cs=e("grw_touristic_contents_list",function(){function e(e){n(this,e);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;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(_.currentTouristicContents){this.touristicContentsToDisplay=__spreadArray([],_.currentTouristicContents.slice(0,this.step),true)}x("currentTouristicContents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.currentTouristicContents){e.touristicContentsToDisplay=__spreadArray([],_.currentTouristicContents.slice(0,e.step),true)}}));x("touristicContentsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.touristicContentsWithinBounds){e.touristicContentsToDisplay=__spreadArray([],_.touristicContentsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<_.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=_.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=_.touristicContentsWithinBounds.length?_.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},_.touristicContentsWithinBounds&&o("div",{class:"current-touristic-contents-within-bounds-length"},"".concat(_.touristicContentsWithinBounds.length," ").concat(_.touristicContentsWithinBounds.length>1?p[_.language].home.touristicContents:p[_.language].home.touristicContent)),o("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((function(t){return o("grw-touristic-content-card",{fontFamily:e.fontFamily,"reset-store-on-disconnected":"false",key:"touristic-content-".concat(t.id),touristicContent:t,"is-large-view":e.isLargeView,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&o("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());cs.style=ls;var ps=e("grw_touristic_contents_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTouristicContents()};e.prototype.handleTouristicContents=function(){var e="".concat(_.api,"touristiccontent/?language=").concat(_.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts&page_size=999";var t=[];t.push(!_.cities?fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!_.districts?fetch("".concat(_.api,"district/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!_.touristicContentCategories?fetch("".concat(_.api,"touristiccontent_category/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,label,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];_.trekNetworkError=false;if(t){_.cities=t.results}if(i){_.districts=i.results}if(r){_.touristicContentCategories=r.results}_.touristicContents=n.results;_.currentTouristicContents=n.results})).catch((function(){_.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();_.trekNetworkError=false};e.prototype.render=function(){return o(s,null)};return e}());var us='@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}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;--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 a{color:var(--color-primary-app)}: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)}.touristic-event-type-img-container{position:relative}.touristic-event-type-img-container .touristic-event-img,.touristic-event-type-img-container .default-touristic-event-img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .touristic-event-img{cursor:pointer;-o-object-fit:cover;object-fit:cover}.touristic-event-type-img-container .default-touristic-event-img{background-color:var(--color-primary-container);-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .img-fullscreen{max-height:none;-o-object-fit:contain;object-fit:contain}.touristic-event-type-img-container .touristic-event-type{width:24px;height:24px;padding:4px;border:2px solid #ffffff;border-radius:var(--border-radius, 50%);background-color:var(--color-on-surface);position:absolute;top:8px;left:8px;z-index:200}.touristic-event-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.touristic-event-sub-container .touristic-event-type-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:12px}.touristic-event-sub-container .touristic-event-type-container .touristic-event-type-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.touristic-event-sub-container .touristic-event-type-container img{font-size:24px;width:24px;height:24px;margin-right:8px;background-color:var(--color-primary-app)}.touristic-event-sub-container .touristic-event-name{font-size:16px;line-height:24px}.touristic-event-more-detail-container{padding:0px 12px 12px 12px}.touristic-event-more-detail-container .more-details-button{cursor:pointer;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);width:100%;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;border:none;font-size:14px;font-family:var(--font-family)}.touristic-event-more-detail-container .more-details-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-more-detail-container .more-details-button span{font-size:18px}.touristic-event-card-container,.touristic-event-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low);color:var(--color-on-surface)}.touristic-event-card-container .image,.touristic-event-card-large-view-container .image{height:100%;-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.touristic-event-container{width:100%;max-width:350px}.touristic-event-container .image{width:100%;max-height:200px}.touristic-event-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.touristic-event-card-large-view-container .image{width:250px}.is-inside-vertical-list{cursor:pointer;border:none}.selected-touristic-event-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.touristic-event-date-container{margin-top:12px}';var ds=e("grw_touristic_event_card",function(){function e(e){n(this,e);this.touristicEventCardPress=l(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=l(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=l(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}e.prototype.componentDidLoad=function(){var e=this;if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new No(this.swiperTouristicEventRef,{modules:[Ho,Vo,Ro],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;if(e.displayFullscreen){e.swiperTouristicEvent.keyboard.enable()}else{e.swiperTouristicEvent.keyboard.disable()}}}};e.prototype.handleFullscreen=function(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}};e.prototype.handleMouseOver=function(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)};e.prototype.handleMouseLeave=function(){this.cardTouristicEventMouseLeave.emit()};e.prototype.render=function(){var e=this;var t=c("".concat("","assets/default-image.svg"));var i=_.touristicEventTypes.find((function(t){return t.id===e.touristicEvent.type}));return o(s,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},o("div",{class:this.isLargeView?"touristic-event-card-large-view-container".concat(_.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""):"touristic-event-card-container".concat(_.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":"").concat(!this.isInsideHorizontalList?" is-inside-vertical-list":""),onClick:function(){if(!e.isInsideHorizontalList){e.touristicEventCardPress.emit(e.touristicEvent.id)}}},o("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?o("div",{class:"swiper",ref:function(t){return e.swiperTouristicEventRef=t}},o("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{class:"touristic-event-img".concat(e.displayFullscreen?" img-fullscreen":""),src:e.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElTouristicEventRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElTouristicEventRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElTouristicEventRef=t}})):this.touristicEvent.attachments.filter((function(e){return e.type==="image"})).length>0?o("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.touristicEvent.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}):o("div",null)),o("div",{class:"touristic-event-sub-container"},o("div",{class:"touristic-event-type-container"},o("img",{crossorigin:"anonymous",src:i.pictogram}),o("div",{class:"touristic-event-type-name"},i.type)),o("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&o("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&o("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&o("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&o("div",{class:"touristic-event-more-detail-container"},o("button",{class:"more-details-button",onClick:function(){return e.touristicEventCardPress.emit(e.touristicEvent.id)}},"Plus de détails"))))};return e}());ds.style=us;var hs='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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)}.email-container,.website-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}';var fs=e("grw_touristic_event_detail",function(){function e(e){n(this,e);this.displayFullscreen=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}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new No(this.swiperImagesRef,{modules:[Ho,Vo,Ro,Uo,Go],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()}};e.prototype.handleFullscreen=function(){if(_.currentTouristicEvent.attachments&&_.currentTouristicEvent.attachments[0]&&_.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.render=function(){var e=this;var t=c("".concat("","assets/default-image.svg"));var i=_.touristicEventTypes&&_.currentTouristicEvent&&_.touristicEventTypes.find((function(e){return e.id===_.currentTouristicEvent.type}));var r=_.currentTouristicEvent&&_.currentTouristicEvent.cities.map((function(e){var t;return(t=_.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));return o(s,{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?"8px":"104px"}},_.currentTouristicEvent&&o("div",{class:"touristic-event-detail-container",ref:function(t){return e.touristicEventDetailContainerRef=t}},o("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},o("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},o("div",{class:"swiper-wrapper"},_.currentTouristicEvent.attachments.length>0?_.currentTouristicEvent.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))})):o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),o("div",{class:"touristic-event-category-container"},o("img",{crossorigin:"anonymous",src:i.pictogram}),o("div",{class:"touristic-event-category-name"},i.type)),o("div",{class:"name"},_.currentTouristicEvent.name),(_.currentTouristicEvent.begin_date||_.currentTouristicEvent.end_date)&&o("div",{class:"touristic-event-date-container"},_.currentTouristicEvent.begin_date&&o("div",{class:"touristic-event-date"},"Date de début : ",_.currentTouristicEvent.begin_date),_.currentTouristicEvent.end_date&&o("div",{class:"touristic-event-date"},"Date de fin : ",_.currentTouristicEvent.end_date)),o("div",{class:"divider"}),o("div",{class:"downloads-container"},o("div",{class:"download-title"},p[_.language].download),o("div",{class:"links-container"},o("a",{href:"".concat(_.currentTouristicEvent.pdf),target:"_blank",rel:"noopener noreferrer"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),_.currentTouristicEvent.description_teaser&&o("div",null,o("div",{class:"divider"}),o("div",{class:"description-teaser",innerHTML:_.currentTouristicEvent.description_teaser})),o("div",{class:"divider"}),_.currentTouristicEvent.practical_info&&o("div",{class:"description-container",ref:function(t){return e.descriptionRef=t}},o("div",{class:"description-title"},p[_.language].description),o("div",{class:"description",innerHTML:_.currentTouristicEvent.description})),r&&r.length>0&&o("div",{class:"cities-container"},o("div",{class:"cities-title"},p[_.language].city," : "),o("div",{innerHTML:r.join(", ")})),_.currentTouristicEvent.practical_info&&o("div",null,o("div",{class:"divider"}),o("div",{class:"useful-information-container"},o("div",{class:"useful-information-title"},p[_.language].usefulInformation," : "),o("div",{innerHTML:_.currentTouristicEvent.practical_info}))),(_.currentTouristicEvent.contact||_.currentTouristicEvent.email||_.currentTouristicEvent.website)&&o("div",null,o("div",{class:"divider"}),o("div",{class:"contact-container"},o("div",{class:"contact-title"},p[_.language].contact," : "),_.currentTouristicEvent.contact&&o("div",{innerHTML:_.currentTouristicEvent.contact}),_.currentTouristicEvent.email&&o("div",{class:"email-container"},o("div",null,p[_.language].email," : "),o("div",{innerHTML:_.currentTouristicEvent.email})),_.currentTouristicEvent.website&&o("div",{class:"website-container"},o("div",null,p[_.language].website," : "),o("div",{innerHTML:_.currentTouristicEvent.website})))),o("div",{class:"detail-bottom-space"})))};return e}());fs.style=hs;var ms=e("grw_touristic_event_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTouristicEvent()};e.prototype.handleTouristicEvent=function(){var e=[];e.push(!_.cities?fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));e.push(!_.touristicEventTypes?fetch("".concat(_.api,"touristicevent_type/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],e,true),[fetch("".concat(_.api,"touristicevent/").concat(this.touristicEventId,"/?language=").concat(_.language,"&fields=id,name,attachments,description,description_teaser,type,geometry,cities,pdf,practical_info,contact,email,website,begin_date,end_date&published=true"),this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2];_.trekNetworkError=false;if(t){_.cities=t.results}if(i){_.touristicEventTypes=i.results}_.currentTouristicEvent=r})).catch((function(){_.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();_.trekNetworkError=false};e.prototype.render=function(){return o(s,null)};return e}());var gs='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}:host{width:100%;height:100%;overflow-y:auto;width:100%}grw-touristic-event-card{width:100% !important;margin:0px 8px 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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}.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 vs=e("grw_touristic_events_list",function(){function e(e){n(this,e);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;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(_.currentTouristicEvents){this.touristicEventsToDisplay=__spreadArray([],_.currentTouristicEvents.slice(0,this.step),true)}x("currentTouristicEvents",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.currentTouristicContents){e.touristicEventsToDisplay=__spreadArray([],_.currentTouristicEvents.slice(0,e.step),true)}}));x("touristicEventsWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.touristicEventsWithinBounds){e.touristicEventsToDisplay=__spreadArray([],_.touristicEventsWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<_.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=_.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=_.touristicEventsWithinBounds.length?_.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},_.touristicEventsWithinBounds&&o("div",{class:"current-touristic-events-within-bounds-length"},"".concat(_.touristicEventsWithinBounds.length," ").concat(_.touristicEventsWithinBounds.length>1?p[_.language].home.touristicEvents:p[_.language].home.touristicEvent)),o("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((function(t){return o("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:"touristic-event-".concat(t.id),touristicEvent:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&o("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());vs.style=gs;var ys=e("grw_touristic_events_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTouristicEvents()};e.prototype.handleTouristicEvents=function(){var e="".concat(_.api,"touristicevent/?language=").concat(_.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));e+="&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999";var t=[];t.push(!_.cities?fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!_.districts?fetch("".concat(_.api,"district/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null")),t.push(!_.touristicEventTypes?fetch("".concat(_.api,"touristicevent_type/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&published=true&fields=id,type,pictogram&page_size=999"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch(e,this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3];_.trekNetworkError=false;if(t){_.cities=t.results}if(i){_.districts=i.results}if(r){_.touristicEventTypes=r.results}_.touristicEvents=n.results;_.currentTouristicEvents=n.results})).catch((function(){_.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();_.trekNetworkError=false};e.prototype.render=function(){return o(s,null)};return e}());var ws='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:var(--font-family);border-radius:var(--border-radius, 12px);-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:var(--border-radius, 12px);border-top-right-radius:var(--border-radius, 12px)}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-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}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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-wrap:nowrap}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-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;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-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-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:24px;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.selected-trek-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-card-container{width:100%;max-width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}.trek-step-card{width:auto}';var bs=e("grw_trek_card",function(){function e(e){n(this,e);this.trekCardPress=l(this,"trekCardPress",7);this.cardTrekMouseOver=l(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=l(this,"cardTrekMouseLeave",7);this.currentTrek=undefined;this.difficulty=undefined;this.route=undefined;this.practice=undefined;this.themes=undefined;this.departureCity=undefined;this.trek=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true;this.isStep=undefined}e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:_.currentTrek;if(this.currentTrek){this.difficulty=_.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=_.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=_.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=_.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.departureCity=_.cities.find((function(t){return t.id===e.currentTrek.departure_city}))}x("currentTrek",(function(){e.currentTrek=e.trek?e.trek:_.currentTrek;if(e.currentTrek){e.difficulty=e.currentTrek.difficulty&&_.difficulties?_.difficulties.find((function(t){return t.id===e.currentTrek.difficulty})):null;e.route=e.currentTrek.route&&_.routes?_.routes.find((function(t){return t.id===e.currentTrek.route})):null;e.practice=e.currentTrek.practice&&_.practices?_.practices.find((function(t){return t.id===e.currentTrek.practice})):null;e.themes=e.currentTrek.themes&&_.themes?_.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)})):null;e.departureCity=e.currentTrek.departure_city&&_.cities?_.cities.find((function(t){return t.id===e.currentTrek.departure_city})):null}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}};e.prototype.handleMouseOver=function(){this.cardTrekMouseOver.emit(this.currentTrek.id)};e.prototype.handleMouseLeave=function(){this.cardTrekMouseLeave.emit()};e.prototype.render=function(){var e=this;var t,i,r,n,a,l,c;return o(s,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto","--color-primary-app":this.colorPrimaryApp,"--color-on-surface":this.colorOnSurface,"--color-secondary-container":this.colorSecondaryContainer,"--color-on-secondary-container":this.colorOnSecondaryContainer,"--color-surface-container-low":this.colorSurfaceContainerLow}},this.currentTrek&&o("div",{class:this.isStep?"trek-card-container trek-step-card".concat(_.selectedStepId===this.currentTrek.id?" selected-trek-card":""):this.isLargeView?"trek-card-large-view-container".concat(_.selectedTrekId===this.currentTrek.id?" selected-trek-card":""):"trek-card-container".concat(_.selectedTrekId===this.currentTrek.id?" selected-trek-card":""),onClick:function(){return e.trekCardPress.emit(e.currentTrek.id)}},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).length>0&&o("img",{crossorigin:"anonymous",class:"image",src:"".concat(this.currentTrek.attachments.filter((function(e){return e.type==="image"}))[0].thumbnail),loading:"lazy"}),o("div",{class:"sub-container"},this.departureCity&&o("div",{class:"departure"},this.departureCity.name),o("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&o("div",{class:"themes-container"},this.themes.map((function(e){return o("div",{class:"theme"},e.label)}))),o("div",{class:"icons-labels-container"},o("div",{class:"row"},o("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&o("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(r=this.difficulty)===null||r===void 0?void 0:r.label),o("div",{class:"icon-label duration"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),M(this.currentTrek.duration))),o("div",{class:"row"},o("div",{class:"icon-label length"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),O(this.currentTrek.length_2d)),o("div",{class:"icon-label ascent"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),I(this.currentTrek.ascent))),!this.isStep&&o("div",{class:"row"},o("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&o("img",{crossorigin:"anonymous",src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route),o("div",{class:"icon-label practice"},((l=this.practice)===null||l===void 0?void 0:l.pictogram)&&o("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name))))))};return e}());bs.style=ws;var _s='@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}.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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{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)}.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 .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 .name{color:var(--color-on-surface);font-size:32px;line-height:28px;font-weight:600;padding:0px 24px;margin:16px 0px}.trek-detail-container .image{cursor:pointer;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.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}.trek-detail-container .sub-container .icons-labels-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 .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label span{font-size:24px;width:24px;height:auto;margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.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 .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, 8px);padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);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 .gear-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{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 .gear-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{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 .gear-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{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 .gear-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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.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 .gear-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{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}.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:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px)}.current-advice-container span{font-size:24px;width:26px;margin-right:8px}.label-container{margin-top:12px;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 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}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;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}.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 .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{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container #weather-widget{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px}.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)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}';var xs=1;var ks={visible:true,indicator:false,ref:"presentationOptionRef"};var As={visible:false,indicator:false,ref:"stepsOptionRef"};var Ts={visible:false,indicator:false,ref:"descriptionOptionRef"};var Ls={visible:false,indicator:false,ref:"recommendationsOptionRef"};var Cs={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};var Es={visible:false,indicator:false,ref:"informationPlacesOptionRef"};var Ss={visible:false,indicator:false,ref:"poisOptionRef"};var Ps={visible:false,indicator:false,ref:"touristicContentsOptionRef"};var Ms={visible:false,indicator:false,ref:"touristicEventsOptionRef"};var Os={presentation:ks,steps:As,description:Ts,recommendations:Ls,sensitiveArea:Cs,informationPlaces:Es,pois:Ss,touristicContents:Ps,touristicEvents:Ms};var Is=e("grw_trek_detail",function(){function e(e){n(this,e);this.descriptionIsInViewport=l(this,"descriptionIsInViewport",7);this.parkingIsInViewport=l(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=l(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=l(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=l(this,"poiIsInViewport",7);this.stepsIsInViewport=l(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=l(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=l(this,"touristicEventsIsInViewport",7);this.parentTrekPress=l(this,"parentTrekPress",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.trek=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.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}e.prototype.componentDidLoad=function(){var e=this;this.swiperImages=new No(this.swiperImagesRef,{modules:[Ho,Vo,Ro,Uo,Go],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=function(){e.displayFullscreen=!e.displayFullscreen;e.displayFullscreen?e.swiperImages.keyboard.enable():e.swiperImages.keyboard.disable()};this.swiperStep=new No(this.swiperStepRef,{modules:[Uo,Go],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new No(this.swiperPoisRef,{modules:[Uo,Go],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new No(this.swiperInformationDesksRef,{modules:[Uo,Go],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new No(this.swiperTouristicContentsRef,{modules:[Uo,Go],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new No(this.swiperTouristicEventsRef,{modules:[Uo,Go],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){var t=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});t.observe(this.presentationRef)}if(this.stepsRef){var i=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.stepsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{steps:Object.assign(Object.assign({},e.defaultOptions.steps),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});i.observe(this.stepsRef)}if(this.descriptionRef){var r=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.descriptionIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{description:Object.assign(Object.assign({},e.defaultOptions.description),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});r.observe(this.descriptionRef)}if(this.recommendationRef){var n=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.options=Object.assign(Object.assign({},e.options),{recommendations:Object.assign(Object.assign({},e.defaultOptions.recommendations),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});n.observe(this.recommendationRef)}if(this.parkingRef){var o=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.parkingIsInViewport.emit(i)}),{threshold:xs});o.observe(this.parkingRef)}if(this.sensitiveAreaRef){var s=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.sensitiveAreaIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{sensitiveArea:Object.assign(Object.assign({},e.defaultOptions.sensitiveArea),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});s.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){var a=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.informationPlacesIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{informationPlaces:Object.assign(Object.assign({},e.defaultOptions.informationPlaces),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});a.observe(this.informationPlacesRef)}if(this.poiRef){var l=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.poiIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{pois:Object.assign(Object.assign({},e.defaultOptions.pois),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});l.observe(this.poiRef)}if(this.touristicContentsRef){var c=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicContentsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicContents:Object.assign(Object.assign({},e.defaultOptions.touristicContents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});c.observe(this.touristicContentsRef)}if(this.touristicEventsRef){var p=new IntersectionObserver((function(t){var i=t[0].isIntersecting;e.touristicEventsIsInViewport.emit(i);e.options=Object.assign(Object.assign({},e.options),{touristicEvents:Object.assign(Object.assign({},e.defaultOptions.touristicEvents),{indicator:i})});e.handleIndicatorSelectedTrekOption()}),{threshold:xs});p.observe(this.touristicContentsRef)}};e.prototype.connectedCallback=function(){var e=this;this.currentTrek=this.trek?this.trek:_.currentTrek;if(this.currentTrek){this.defaultOptions=this.handleOptions();this.options=Object.assign(Object.assign({},this.defaultOptions),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:true})});this.difficulty=_.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));this.route=_.routes.find((function(t){return t.id===e.currentTrek.route}));this.practice=_.practices.find((function(t){return t.id===e.currentTrek.practice}));this.themes=_.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));this.labels=_.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));this.sources=_.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));this.accessibilities=_.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(_.accessibilitiesLevel){this.accessibilityLevel=_.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}this.cities=this.currentTrek.cities.map((function(e){var t;return(t=_.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));this.hasStep=this.currentTrek.children.length>0}x("currentTrek",(function(){e.currentTrek=e.trek?e.trek:_.currentTrek;if(e.currentTrek){e.defaultOptions=e.handleOptions();e.options=Object.assign(Object.assign({},e.defaultOptions),{presentation:Object.assign(Object.assign({},e.defaultOptions.presentation),{indicator:true})});e.difficulty=_.difficulties.find((function(t){return t.id===e.currentTrek.difficulty}));e.route=_.routes.find((function(t){return t.id===e.currentTrek.route}));e.practice=_.practices.find((function(t){return t.id===e.currentTrek.practice}));e.themes=_.themes.filter((function(t){return e.currentTrek.themes.includes(t.id)}));e.labels=_.labels.filter((function(t){return e.currentTrek.labels.includes(t.id)}));e.sources=_.sources.filter((function(t){return e.currentTrek.source.includes(t.id)}));e.accessibilities=_.accessibilities.filter((function(t){return e.currentTrek.accessibilities.includes(t.id)}));if(_.accessibilitiesLevel){e.accessibilityLevel=_.accessibilitiesLevel.find((function(t){return e.currentTrek.accessibility_level===t.id}))}e.cities=e.currentTrek.cities.map((function(e){var t;return(t=_.cities.find((function(t){return t.id===e})))===null||t===void 0?void 0:t.name}));e.hasStep=e.currentTrek.children.length>0}}))};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}};e.prototype.handleOptions=function(){var e=this;return Object.assign(Object.assign({},Os),{presentation:Object.assign({},ks),steps:Object.assign(Object.assign({},As),{visible:Boolean(_.parentTrek)}),description:Object.assign(Object.assign({},Ts),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},Ls),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Cs),{visible:Boolean(_.currentSensitiveAreas&&_.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Es),{visible:Boolean(_.currentInformationDesks&&_.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0)}),pois:Object.assign(Object.assign({},Ss),{visible:Boolean(_.currentPois&&_.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},Ps),{visible:Boolean(_.trekTouristicContents&&_.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Ms),{visible:Boolean(_.touristicEvents&&_.touristicEvents.length>0)})})};e.prototype.handleFullscreen=function(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}};e.prototype.handleIndicatorSelectedTrekOption=function(){var e;var t=0;var i=0;var r=0;var n=Object.values(this.options);var o=0;while(!e&&o<n.length){if(n[o].indicator){e=n[o]}else{if(n[o].visible){t+=1;i+=this[n[o].ref].clientWidth}}o++}if(e&&this[e.ref]){r=this[e.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:"".concat(i+16*t-r/2,"px"),width:"".concat(r*2,"px"),backgroundSize:"".concat(r,"px 100%"),ref:e.ref}}};e.prototype.handleScrollTo=function(e){this.trekDetailContainerRef.scrollTo({top:e.offsetTop-64})};e.prototype.render=function(){var e=this;var t,i,r,n,a,l,c;return o(s,{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?"8px":"104px"}},this.currentTrek&&o("div",{class:"trek-options"},o("a",{ref:function(t){return e.presentationOptionRef=t},onClick:function(){return e.handleScrollTo(e.presentationRef)},class:"presentation trek-option".concat(this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":"")},p[_.language].options.presentation),this.options.steps.visible&&o("a",{ref:function(t){return e.stepsOptionRef=t},onClick:function(){return e.handleScrollTo(e.stepsRef)},class:"steps trek-option".concat(this.options.steps.indicator?" selected-trek-option":"")},p[_.language].options.steps),this.options.description.visible&&o("a",{ref:function(t){return e.descriptionOptionRef=t},onClick:function(){return e.handleScrollTo(e.descriptionRef)},class:"description trek-option".concat(this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":"")},p[_.language].options.description),this.options.recommendations.visible&&o("a",{ref:function(t){return e.recommendationsOptionRef=t},onClick:function(){return e.handleScrollTo(e.recommendationRef)},class:"recommendations trek-option".concat(this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":"")},p[_.language].options.recommendations),this.options.sensitiveArea.visible&&o("a",{ref:function(t){return e.sensitiveAreaOptionRef=t},onClick:function(){return e.handleScrollTo(e.sensitiveAreaRef)},class:"sensitive-areas trek-option".concat(this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":"")},p[_.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&o("a",{ref:function(t){return e.informationPlacesOptionRef=t},onClick:function(){return e.handleScrollTo(e.informationPlacesRef)},class:"information-places trek-option".concat(this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":"")},p[_.language].options.informationPlaces),this.options.pois.visible&&o("a",{ref:function(t){return e.poisOptionRef=t},onClick:function(){return e.handleScrollTo(e.poiRef)},class:"pois trek-option".concat(this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":"")},p[_.language].options.pois),this.options.touristicContents.visible&&o("a",{ref:function(t){return e.touristicContentsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicContentsRef)},class:"touristic-content trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":"")},p[_.language].options.touristicContents),this.options.touristicEvents.visible&&o("a",{ref:function(t){return e.touristicEventsOptionRef=t},onClick:function(){return e.handleScrollTo(e.touristicEventsRef)},class:"touristic-event trek-option".concat(this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":"")},p[_.language].options.touristicEvents),this.presentationOptionRef&&o("span",{class:"indicator-selected-trek-option",style:{transform:"translateX(".concat(this.indicatorSelectedTrekOption.translateX,")"),width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&o("div",{class:"trek-detail-container",ref:function(t){return e.trekDetailContainerRef=t}},o("div",{class:"images-container",ref:function(t){return e.presentationRef=t}},o("div",{class:"swiper swiper-images",ref:function(t){return e.swiperImagesRef=t}},o("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((function(e){return e.type==="image"})).map((function(t){return o("div",{class:"swiper-slide"},o("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:function(){return e.handleFullscreen()}}))}))),o("div",{class:"swiper-pagination",ref:function(t){return e.paginationElImagesRef=t}}),o("div",{class:"swiper-button-prev",ref:function(t){return e.prevElImagesRef=t}}),o("div",{class:"swiper-button-next",ref:function(t){return e.nextElImagesRef=t}}))),o("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&o("div",{class:"themes-container"},this.themes.map((function(e){return o("div",{class:"theme"},e.label)}))),o("div",{class:"sub-container"},o("div",{class:"icons-labels-container"},o("div",{class:"row"},o("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&o("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),o("div",{class:"icon-label duration"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),M((r=this.currentTrek)===null||r===void 0?void 0:r.duration)),o("div",{class:"icon-label route"},((n=this.route)===null||n===void 0?void 0:n.pictogram)&&o("img",{crossorigin:"anonymous",src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),o("div",{class:"row"},o("div",{class:"icon-label length"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),O(this.currentTrek.length_2d)),o("div",{class:"icon-label ascent"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),I(this.currentTrek.ascent)),o("div",{class:"icon-label practice"},((l=this.practice)===null||l===void 0?void 0:l.pictogram)&&o("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name)),this.currentTrek.ratings.map((function(e){return o("div",{class:"row"},"".concat(_.ratingsScale.find((function(t){return t.id===_.ratings.find((function(t){return t.id===e})).scale})).name," : ").concat(_.ratings.find((function(t){return t.id===e})).name))})),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&o("div",{class:"row"},this.currentTrek.ratings_description))),o("div",{class:"divider"}),o("div",{class:"downloads-container"},o("div",{class:"download-title"},p[_.language].downloads),o("div",{class:"links-container"},o("a",{href:"".concat(this.currentTrek.gpx),target:"_blank",rel:"noopener noreferrer"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),o("a",{href:"".concat(this.currentTrek.kml),target:"_blank",rel:"noopener noreferrer"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),o("a",{href:"".concat(this.currentTrek.pdf),target:"_blank",rel:"noopener noreferrer"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),o("div",{class:"divider"}),this.currentTrek.description_teaser&&o("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&o("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),_.parentTrekId&&_.parentTrek&&this.currentTrek.id!==_.parentTrekId&&o("div",null,o("div",{class:"divider"}),o("div",{class:"parent-trek-container"},o("button",{class:"parent-trek-title",onClick:function(){return e.parentTrekPress.emit(_.parentTrekId)}},o("div",null,"<"),_.parentTrek.name))),_.currentTrekSteps&&o("div",{class:"step-container"},o("div",{class:"step-title",ref:function(t){return e.stepsRef=t}},"".concat(_.currentTrekSteps.length," ").concat(p[_.language].steps)),o("div",{class:"swiper swiper-step",ref:function(t){return e.swiperStepRef=t}},o("div",{class:"swiper-wrapper"},_.currentTrekSteps&&_.currentTrekSteps.map((function(t){return o("div",{class:"swiper-slide"},o("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":false,"is-step":true,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow}))}))))),o("div",{class:"divider"}),this.currentTrek.description&&o("div",{class:"description-container"},o("div",{class:"description-title",ref:function(t){return e.descriptionRef=t}},p[_.language].description),o("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&o("div",{class:"departure-container"},o("div",{class:"departure-title"},p[_.language].departure," : "),o("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&o("div",{class:"arrival-container"},o("div",{class:"arrival-title"},p[_.language].arrival," : "),o("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&o("div",{class:"cities-container"},o("div",{class:"cities-title"},p[_.language].crossedCities," : "),o("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&o("div",{class:"weather-container"},o("iframe",{height:"150",frameborder:"0",src:"https://meteofrance.com/widget/prevision/".concat(this.currentTrek.departure_city,"0#").concat(this.colorPrimaryApp)})),this.currentTrek.access&&o("div",null,o("div",{class:"divider"}),o("div",{class:"access-container"},o("div",{class:"access-title"},p[_.language].roadAccess),o("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&o("div",null,o("div",{class:"divider"}),o("div",{class:"public-transport-container"},o("div",{class:"public-transport-title"},p[_.language].transport),o("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&o("div",null,o("div",{class:"divider"}),o("div",{class:"advice-container"},o("div",{class:"advice-title",ref:function(t){return e.recommendationRef=t}},p[_.language].recommendations),this.currentTrek.advice&&o("div",{class:"current-advice-container"},o("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),o("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((function(e){return o("div",{class:"label-container"},o("div",{class:"label-sub-container"},e.pictogram&&o("img",{crossorigin:"anonymous",src:e.pictogram}),o("div",{class:"label-name",innerHTML:e.name})),o("div",{class:"label-advice",innerHTML:e.advice}))})))),this.currentTrek.advised_parking&&o("div",null,o("div",{class:"divider"}),o("div",{class:"advised-parking-container"},o("div",{class:"advised-parking-title",ref:function(t){return e.parkingRef=t}},p[_.language].recommendedParking),o("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&o("div",null,o("div",{class:"divider"}),o("div",{class:"gear-container"},o("div",{class:"gear-title"},p[_.language].equipments),o("div",{class:"gear",innerHTML:this.currentTrek.gear}))),_.currentSensitiveAreas&&_.currentSensitiveAreas.length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"sensitive-areas-container"},o("div",{class:"sensitive-areas-title",ref:function(t){return e.sensitiveAreaRef=t}},p[_.language].environmentalSensitiveAreas),_.currentSensitiveAreas.map((function(e){return o("grw-sensitive-area-detail",{sensitiveArea:e})})))),_.currentInformationDesks&&_.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"information-desks-container"},o("div",{class:"information-desks-title",ref:function(t){return e.informationPlacesRef=t}},p[_.language].informationPlaces),o("div",{class:"swiper swiper-information-desks",ref:function(t){return e.swiperInformationDesksRef=t}},o("div",{class:"swiper-wrapper"},_.currentInformationDesks.filter((function(t){return e.currentTrek.information_desks.includes(t.id)})).map((function(e){return o("div",{class:"swiper-slide"},o("grw-information-desk",{informationDesk: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)&&o("div",null,o("div",{class:"divider"}),o("div",{class:"accessibilities-container"},o("div",{class:"accessibilities-title"},p[_.language].accessibility),this.currentTrek.disabled_infrastructure&&o("div",{innerHTML:this.currentTrek.disabled_infrastructure}),o("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(e){return o("div",{class:"accessibility-content-container"},o("img",{crossorigin:"anonymous",src:e.pictogram}),o("div",{innerHTML:e.name}))}))),this.currentTrek.accessibility_level&&o("div",{class:"accessibility-level-container"},o("div",{class:"accessibility-level-title"},p[_.language].accessibilityLevel),o("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&o("div",{class:"accessibility-slope-container"},o("div",{class:"accessibility-slope-title"},p[_.language].accessibilitySlope),o("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&o("div",{class:"accessibility-width-container"},o("div",{class:"accessibility-width-title"},p[_.language].accessibilityWidth),o("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&o("div",{class:"accessibility-signage-container"},o("div",{class:"accessibility-signage-title"},p[_.language].accessibilitySignage),o("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&o("div",{class:"accessibility-covering-container"},o("div",{class:"accessibility-covering-title"},p[_.language].accessibilityCovering),o("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&o("div",{class:"accessibility-exposure-container"},o("div",{class:"accessibility-exposure-title"},p[_.language].accessibilityExposure),o("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&o("div",{class:"accessibility-advice-container"},o("div",{class:"accessibility-advice-title"},p[_.language].accessibilityAdvices),o("div",{innerHTML:this.currentTrek.accessibility_advice})))),_.currentPois&&_.currentPois.length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"pois-container"},o("div",{class:"pois-title",ref:function(t){return e.poiRef=t}},p[_.language].pois(_.currentPois.length)),o("div",{class:"swiper swiper-pois",ref:function(t){return e.swiperPoisRef=t}},o("div",{class:"swiper-wrapper"},_.currentPois.map((function(e){return o("div",{class:"swiper-slide"},o("grw-poi",{poi:e}))})))))),_.trekTouristicContents&&_.trekTouristicContents.length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"touristic-content-container"},o("div",{class:"touristic-content-title",ref:function(t){return e.touristicContentsRef=t}},p[_.language].touristicContents(_.trekTouristicContents.length)),o("div",{class:"swiper swiper-touristic-content",ref:function(t){return e.swiperTouristicContentsRef=t}},o("div",{class:"swiper-wrapper"},_.trekTouristicContents.map((function(t){return o("div",{class:"swiper-slide"},o("grw-touristic-content-card",{fontFamily:e.fontFamily,touristicContent:t,isInsideHorizontalList:true}))})))))),_.touristicEvents&&_.touristicEvents.length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"touristic-event-container"},o("div",{class:"touristic-event-title",ref:function(t){return e.touristicEventsRef=t}},p[_.language].touristicEvents(_.touristicEvents.length)),o("div",{class:"swiper swiper-touristic-event",ref:function(t){return e.swiperTouristicEventsRef=t}},o("div",{class:"swiper-wrapper"},_.touristicEvents.map((function(t){return o("div",{class:"swiper-slide"},o("grw-touristic-event-card",{fontFamily:e.fontFamily,touristicEvent:t}))})))))),this.currentTrek.source&&this.currentTrek.source.length>0&&o("div",null,o("div",{class:"divider"}),o("div",{class:"source-container"},o("div",{class:"source-title"},p[_.language].sources),this.sources.map((function(e){return o("div",{class:"source-sub-container"},e.pictogram&&o("img",{crossorigin:"anonymous",src:e.pictogram}),o("div",null,o("div",{class:"source-name",innerHTML:e.name}),o("a",{class:"source-advice",href:e.website,innerHTML:e.website})))})))),o("div",{class:"detail-bottom-space"})))};return e}());Is.style=_s;var zs=e("grw_trek_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTrek()};e.prototype.handleTrek=function(){var e=this;var t=[];t.push(!_.difficulties?fetch("".concat(_.api,"trek_difficulty/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!_.routes?fetch("".concat(_.api,"trek_route/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init):new Response("null"));t.push(!_.practices?fetch("".concat(_.api,"trek_practice/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!_.themes?fetch("".concat(_.api,"theme/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init):new Response("null"));t.push(!_.cities?fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init):new Response("null"));t.push(!_.accessibilities?fetch("".concat(_.api,"trek_accessibility/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init):new Response("null"));t.push(!_.ratings?fetch("".concat(_.api,"trek_rating/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,scale"),this.init):new Response("null"));t.push(!_.ratings?fetch("".concat(_.api,"trek_ratingscale/?language=").concat(_.language,"&fields=id,name"),this.init):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(_.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),this.init).then((function(e){if(e.ok){return e}else{throw new Error("Sentive area error")}})).catch((function(){return new Response("null")})),fetch("".concat(_.api,"label/?language=").concat(_.language,"&fields=id,name,advice,pictogram"),this.init),fetch("".concat(_.api,"source/?language=").concat(_.language,"&fields=id,name,website,pictogram"),this.init),fetch("".concat(_.api,"trek_accessibility_level/?language=").concat(_.language,"&fields=id,name"),this.init).catch((function(){return new Response("null")})),fetch("".concat(_.api,"poi/?language=").concat(_.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(_.api,"poi_type/?language=").concat(_.language,"&fields=id,pictogram"),this.init),fetch("".concat(_.api,"informationdesk/?language=").concat(_.language,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),this.init),fetch("".concat(_.api,"touristiccontent/?language=").concat(_.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,category,geometry&page_size=999"),this.init),fetch("".concat(_.api,"touristiccontent_category/?language=").concat(_.language,"&published=true&fields=id,label,pictogram&page_size=999"),this.init),fetch("".concat(_.api,"touristicevent/?language=").concat(_.language,"&near_trek=").concat(this.trekId,"&published=true&fields=id,name,attachments,type,geometry&page_size=999"),this.init),fetch("".concat(_.api,"touristicevent_type/?language=").concat(_.language,"&published=true&fields=id,type,pictogram&page_size=999"),this.init),fetch("".concat(_.api,"trek/").concat(this.trekId,"/?language=").concat(_.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,departure_city,arrival,cities,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities,ratings,ratings_description,information_desks,children"),this.init)],false)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],p=t[8],u=t[9],d=t[10],h=t[11],f=t[12],m=t[13],g=t[14],v=t[15],y=t[16],w=t[17],b=t[18],x=t[19];return __awaiter(e,void 0,void 0,(function(){var e,t,k,A;return __generator(this,(function(T){switch(T.label){case 0:_.trekNetworkError=false;if(!(x.children.length>0||_.parentTrekId))return[3,5];e=[];if(!(x.children.length>0))return[3,1];_.parentTrekId=x.id;_.parentTrek=x;e.push.apply(e,x.children);return[3,3];case 1:return[4,fetch("".concat(_.api,"trek/").concat(_.parentTrekId,"/?language=").concat(_.language,"&published=true&fields=name,children")).then((function(e){return e.json()}))];case 2:t=T.sent();_.parentTrek=t;e.push.apply(e,t.children);T.label=3;case 3:k=[];e.forEach((function(e){k.push(fetch("".concat(_.api,"trek/").concat(e,"/?language=").concat(_.language,"&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts")))}));A=_;return[4,Promise.all(__spreadArray([],k,true)).then((function(e){return Promise.all(e.map((function(e){return e.json()})))}))];case 4:A.currentTrekSteps=T.sent();T.label=5;case 5:if(i){_.difficulties=i.results}if(r){_.routes=r.results}if(n){_.practices=n.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}))}if(o){_.themes=o.results}if(s){_.cities=s.results}if(a){_.accessibilities=a.results}if(l){_.ratings=l.results}if(c){_.ratingsScale=c.results}if(p){_.currentSensitiveAreas=p.results}_.labels=u.results;_.sources=d.results;if(h){_.accessibilitiesLevel=h.results}if(v){_.trekTouristicContents=v.results}if(y){_.touristicContentCategories=y.results}if(w){_.touristicEvents=w.results}if(b){_.touristicEventTypes=b.results}_.currentPois=f.results;_.poiTypes=m.results;_.currentInformationDesks=g.results;_.currentTrek=x;return[2]}}))}))})).catch((function(){_.trekNetworkError=true}))};e.prototype.disconnectedCallback=function(){this.controller.abort();_.trekNetworkError=false};e.prototype.render=function(){return o(s,null)};return e}());var Bs='.material-symbols{font-family:"Material Symbols Outlined"}.material-symbols-outlined{font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48}: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 8px 8px}.list-bottom-space{min-height:104px;height:104px;width:100%}.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 Ds=e("grw_treks_list",function(){function e(e){n(this,e);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.isLargeView=false;this.resetStoreOnDisconnected=true}e.prototype.connectedCallback=function(){var e=this;this.handleInfiniteScrollEvent(true);if(_.currentTreks){this.treksToDisplay=__spreadArray([],_.currentTreks.slice(0,this.step),true)}x("currentTreks",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.currentTreks){e.treksToDisplay=__spreadArray([],_.currentTreks.slice(0,e.step),true)}}));x("treksWithinBounds",(function(){e.handleInfiniteScrollEvent(true);e.element.scroll({top:0});if(_.treksWithinBounds){e.treksToDisplay=__spreadArray([],_.treksWithinBounds.slice(0,e.step),true)}}))};e.prototype.handleInfiniteScroll=function(e){if(e.composedPath()[0].scrollTop+e.composedPath()[0].scrollHeight/2>=e.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<_.treksWithinBounds.length){this.treksToDisplay=_.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=_.treksWithinBounds.length?_.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};e.prototype.handleInfiniteScrollEvent=function(e){if(e){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!e}};e.prototype.disconnectedCallback=function(){if(this.resetStoreOnDisconnected){k()}this.handleInfiniteScrollEvent(false)};e.prototype.render=function(){var e=this;return o(s,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},_.treksWithinBounds&&o("div",{class:"current-treks-within-bounds-length"},"".concat(_.treksWithinBounds.length," ").concat(_.treksWithinBounds.length>1?p[_.language].treks:p[_.language].trek)),o("div",{class:"treks-list-container"},this.treksToDisplay.map((function(t){return o("grw-trek-card",{"reset-store-on-disconnected":"false",key:"trek-".concat(t.id),trek:t,"is-large-view":e.isLargeView,fontFamily:e.fontFamily,"color-primary-app":e.colorPrimaryApp,"color-on-surface":e.colorOnSurface,"color-secondary-container":e.colorSecondaryContainer,"color-on-secondary-container":e.colorOnSecondaryContainer,"color-surface-container-low":e.colorSurfaceContainerLow})}))),!this.isLargeView&&o("div",{class:"list-bottom-space"}))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());Ds.style=Bs;var Fs=e("grw_treks_provider",function(){function e(e){n(this,e);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}e.prototype.connectedCallback=function(){if(!_.api){_.api=this.api;_.languages=this.languages.split(",");_.language=_.languages[0]}this.handleTreks()};e.prototype.disconnectedCallback=function(){this.controller.abort();_.treksNetworkError=false};e.prototype.handleTreks=function(){var e="".concat(this.api,"trek/?language=").concat(_.language,"&published=true");this.inBbox&&(e+="&in_bbox=".concat(this.inBbox));this.cities&&(e+="&cities=".concat(this.cities));this.districts&&(e+="&districts=".concat(this.districts));this.structures&&(e+="&structures=".concat(this.structures));this.themes&&(e+="&themes=".concat(this.themes));this.portals&&(e+="&portals=".concat(this.portals));this.routes&&(e+="&routes=".concat(this.routes));this.practices&&(e+="&practices=".concat(this.practices));e+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts&page_size=999";Promise.all([fetch("".concat(_.api,"trek_difficulty/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(_.api,"trek_route/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,route,pictogram"),this.init),fetch("".concat(_.api,"trek_practice/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram"),this.init),fetch("".concat(_.api,"theme/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,label,pictogram"),this.init),fetch("".concat(_.api,"city/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch("".concat(_.api,"trek_accessibility/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,pictogram&published=true&page_size=999"),this.init),fetch("".concat(_.api,"label/?language=").concat(_.language).concat(this.portals?"&portals=".concat(this.portals):"","&fields=id,name,advice,pictogram&published=true&page_size=999"),this.init),fetch("".concat(_.api,"district/?language=").concat(_.language,"&fields=id,name&published=true&page_size=999"),this.init),fetch(e,this.init)]).then((function(e){return Promise.all(e.map((function(e){return e.json()})))})).then((function(e){var t=e[0],i=e[1],r=e[2],n=e[3],o=e[4],s=e[5],a=e[6],l=e[7],c=e[8];_.treksNetworkError=false;_.difficulties=t.results;_.routes=i.results;_.practices=r.results.map((function(e){return Object.assign(Object.assign({},e),{selected:false})}));_.themes=n.results;_.cities=o.results;_.accessibilities=s.results;_.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];_.lengths=[{id:1,name:"0 - 5km",minValue:0,maxValue:5e3,selected:false},{id:2,name:"5 - 10km",minValue:5e3,maxValue:1e4,selected:false},{id:3,name:"10 - 15km",minValue:1e4,maxValue:15e3,selected:false},{id:4,name:"15 - 50km",minValue:15e3,maxValue:5e4,selected:false}];_.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];_.labels=a.results;_.districts=l.results;_.treks=c.results;_.currentTreks=c.results})).catch((function(){return _.treksNetworkError=true}))};e.prototype.render=function(){return o(s,null)};return e}())}}}));
15
- //# sourceMappingURL=p-46c11f88.system.entry.js.map