@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 +1,15 @@
1
- import{g as t,f as i,r as e,h as r,H as n,c as s,e as o,i as a}from"./p-fb5e6f55.js";const l={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:t=>`Les ${t} patrimoines à découvrir`,touristicContents:t=>`Services à proximité (${t})`,touristicEvents:t=>`Événements associés (${t})`,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:t=>`${t} points of interest`,touristicContents:t=>`Near (${t})`,touristicEvents:t=>`Events (${t})`,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"}};const c=(t,i,e)=>{const r=t.get(i);if(!r){t.set(i,[e])}else if(!r.includes(e)){r.push(e)}};const h=(t,i)=>{let e;return(...r)=>{if(e){clearTimeout(e)}e=setTimeout((()=>{e=0;t(...r)}),i)}};const u=t=>!("isConnected"in t)||t.isConnected;const f=h((t=>{for(let i of t.keys()){t.set(i,t.get(i).filter(u))}}),2e3);const p=()=>{if(typeof t!=="function"){return{}}const e=new Map;return{dispose:()=>e.clear(),get:i=>{const r=t();if(r){c(e,i,r)}},set:t=>{const r=e.get(t);if(r){e.set(t,r.filter(i))}f(e)},reset:()=>{e.forEach((t=>t.forEach(i)));f(e)}}};const d=t=>typeof t==="function"?t():t;const m=(t,i=((t,i)=>t!==i))=>{const e=d(t);let r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));const n={dispose:[],get:[],set:[],reset:[]};const s=()=>{var i;r=new Map(Object.entries((i=d(t))!==null&&i!==void 0?i:{}));n.reset.forEach((t=>t()))};const o=()=>{n.dispose.forEach((t=>t()));s()};const a=t=>{n.get.forEach((i=>i(t)));return r.get(t)};const l=(t,e)=>{const s=r.get(t);if(i(e,s,t)){r.set(t,e);n.set.forEach((i=>i(t,e,s)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(e,{get(t,i){return a(i)},ownKeys(t){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,i){return r.has(i)},set(t,i,e){l(i,e);return true}});const h=(t,i)=>{n[t].push(i);return()=>{g(n[t],i)}};const u=(i,e)=>{const r=h("set",((t,r)=>{if(t===i){e(r)}}));const n=h("reset",(()=>e(d(t)[i])));return()=>{r();n()}};const f=(...t)=>{const i=t.reduce(((t,i)=>{if(i.set){t.push(h("set",i.set))}if(i.get){t.push(h("get",i.get))}if(i.reset){t.push(h("reset",i.reset))}if(i.dispose){t.push(h("dispose",i.dispose))}return t}),[]);return()=>i.forEach((t=>t()))};const p=t=>{const i=r.get(t);n.set.forEach((e=>e(t,i,i)))};return{state:c,get:a,set:l,on:h,onChange:u,use:f,dispose:o,reset:s,forceUpdate:p}};const g=(t,i)=>{const e=t.indexOf(i);if(e>=0){t[e]=t[t.length-1];t.length--}};const v=(t,i)=>{const e=m(t,i);e.use(p());return e};const{state:w,onChange:b,reset:y}=v({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});const x="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}";const k=class{constructor(t){e(this,t);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}onTrekCardPress(t){this.currentTouristicContentId=null;this.showTouristicContent=false;w.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;w.currentTouristicEvent=null;const i=w.parentTrekId?w.parentTrekId:w.currentTrekSteps?this.currentTrekId:null;w.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;const e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());if(w.currentTrekSteps){e.searchParams.set("parenttrek",i.toString())}window.history.pushState({},"",e)}onParentTrekPress(t){w.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;const i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());i.searchParams.delete("parenttrek");window.history.pushState({},"",i)}onTouristicContentCardPress(t){w.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;this.showTouristicContent=true;this.showTouristicContentMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",i)}onTouristiceEventCardPress(t){w.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;this.showTouristicEvent=true;this.showTouristicEventMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",i)}onWindowResize(){this.handleView()}onCenterOnMap(){if(!this.isLargeView){this.showTrekMap=true}}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentWillLoad(){if(this.treks){w.mode="treks"}else if(this.touristicContents){w.mode="touristicContents"}else if(this.touristicEvents){w.mode="touristicEvents"}const t=new URL(window.location.toString());const i=t.searchParams.get("trek");const e=t.searchParams.get("parenttrek");const r=t.searchParams.get("touristiccontent");const n=t.searchParams.get("touristicevent");if(i){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);w.parentTrekId=e?Number(e):null;this.currentTrekId=Number(i);this.showTrek=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(r);this.showTouristicContent=true}else if(n){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(n);this.showTouristicEvent=true}}componentDidLoad(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()}onDetailsClose(){if(this.treks){w.mode="treks"}else if(this.touristicContents){w.mode="touristicContents"}else if(this.touristicEvents){w.mode="touristicEvents"}this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false;this.showTouristicEvent=false;this.showTouristicEventMap=false;w.currentTouristicContent=null;w.currentTouristicEvent=null;w.currentTrek=null;w.currentTrekSteps=null;w.parentTrekId=null;this.currentTrekId=null;this.showTrek=false}handleView(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){this.onDetailsClose();const t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");window.history.pushState({},"",t)}else{window.history.back()}}handlePopState(){const t=new URL(window.location.toString());const i=Number(t.searchParams.get("trek"));const e=t.searchParams.get("touristiccontent");const r=t.searchParams.get("touristicevent");if(i&&this.currentTrekId!==i){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;w.currentTouristicContent=null;w.currentTouristicEvent=null;w.currentTrek=null;this.currentTrekId=i;this.showTrek=true}else if(!i&&!e&&!r){this.onDetailsClose()}}handleShowMap(){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}}getMapVisibilityIconButton(){let t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t}getMapVisibilityLabelButton(){let t;if(this.showTrek){t=this.showTrekMap?l[w.language].showDetails:l[w.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?l[w.language].showDetails:l[w.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?l[w.language].showDetails:l[w.language].showMap}else{t=this.showHomeMap?l[w.language].showList:l[w.language].showMap}return t}reload(){window.location.reload()}disconnectedCallback(){y();window.removeEventListener("popstate",this.handlePopStateBind)}render(){return r(n,{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"}},!w.currentTreks&&!w.currentTrek&&!w.currentTouristicContent&&!w.currentTouristicEvent&&!w.currentTouristicContents&&!w.currentTouristicEvents&&r("div",{class:"init-loader-container"},r("grw-loader",{"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&w.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!w.currentTreks&&r("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&&!w.currentTrek&&r("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals}),this.showTouristicContent&&this.currentTouristicContentId&&r("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&r("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.touristicContents&&w.mode==="touristicContents"&&!w.currentTouristicContents&&!this.showTouristicContent&&r("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&&w.mode==="touristicEvents"&&!w.currentTouristicEvents&&!this.showTouristicEvent&&r("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}),(w.currentTreks||w.currentTrek||w.touristicContents||w.touristicEvents||w.currentTouristicContent||w.currentTouristicEvent||w.trekNetworkError)&&r("div",{class:"app-container"},w.languages&&w.languages.length>1&&r("div",{class:"languages-container"},r("grw-select-language",null)),r("div",{class:`${this.isLargeView?"large-view-header-container":"header-container"}${this.showTrek||this.showTouristicContent||this.showTouristicEvent?" header-detail":""}`},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&r("grw-segmented-segment",{fontFamily:this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent?r("div",{class:"handle-search-filters-container"},r("div",{class:"handle-search-container"},r("grw-search",{fontFamily:this.fontFamily})),r("div",{class:"handle-filters-container"},r("grw-common-button",{fontFamily:this.fontFamily,action:()=>this.handleFilters(),icon:"filter_list",name:l[w.language].filter}))):r("div",{class:"arrow-back-container"},r("button",{onClick:()=>this.handleBackButton(),class:"arrow-back-icon"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),r("div",{class:`content-container ${this.showTrek||this.showTouristicContent||this.showTouristicEvent?"content-trek":"content-treks"}`},w.trekNetworkError&&r("div",{class:"error-container"},"Une erreur est survenue.",r("grw-common-button",{icon:"refresh",name:"Recharger la page",action:()=>this.reload()})),r("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"}},w.mode==="treks"&&this.treks&&r("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}),w.mode==="touristicContents"&&this.touristicContents&&r("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}),w.mode==="touristicEvents"&&this.touristicEvents&&r("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&&!w.currentTrek||this.showTouristicContent&&!w.currentTouristicContent||this.showTouristicEvent&&!w.currentTouristicEvent||!w.currentTreks&&w.mode==="treks"||!w.touristicContents&&w.mode==="touristicContents"&&r("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},r("grw-loader",{"color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),w.currentTrek&&r("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},r("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&&r("div",{class:this.isLargeView?"large-view-app-touristic-content-detail-container":"app-touristic-content-detail-container"},r("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&&r("div",{class:this.isLargeView?"large-view-app-touristic-event-detail-container":"app-touristic-event-detail-container"},r("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})),!w.trekNetworkError&&r("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&&w.currentTrek||this.showTouristicContent&&w.currentTouristicContent||this.showTouristicEvent&&w.currentTouristicEvent)&&r("div",{class:"map-visibility-button-container"},r("grw-extended-fab",{fontFamily:this.fontFamily,action:()=>this.handleShowMap(),icon:()=>this.getMapVisibilityIconButton(),name:()=>this.getMapVisibilityLabelButton(),display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&r("grw-filters",{fontFamily:this.fontFamily,handleFilters:()=>this.handleFilters()}))}get appElement(){return s(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};k.style=x;const A='.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}';const _=class{constructor(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("button",{onClick:()=>this.action(),class:"common-button"},r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},this.icon),this.name))}};_.style=A;const M='.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)}';const z=class{constructor(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("button",{onClick:()=>this.action(),class:"map-visibility-button",style:{display:this.display}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.icon()),this.name()))}};z.style=M;function C(t){let i="";if(t<24){if(Math.floor(t)!==0){i+=`${Math.floor(t)}h`}if(t%1>0){i+=`${Math.round(60*(t%1))}min`}}else{i+=`${t/24}j`}return i}function E(t){return`${Math.round(t/1e3)}km`}function P(t){return`${t}m`}const O=[{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"}];const j=[{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"}];const S=[{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 T(){let t=false;let i=[];for(const r of O){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){i=[...i.filter((t=>t[r.trekProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.trekProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.trekProperty]>=e.minValue&&t[r.trekProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.trekPropertyIsArray){i=[...w.treks.filter((t=>t[r.trekProperty].some((t=>e.includes(t)))))]}else{i=[...w.treks.filter((t=>e.includes(t[r.trekProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.treks.filter((i=>i[r.trekProperty]>=t&&i[r.trekProperty]<=n))]}}}}const e=t?i:w.treks;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}function I(){let t=false;let i=[];for(const r of j){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){i=[...i.filter((t=>t[r.touristicContentProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.touristicContentProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.touristicContentProperty]>=e.minValue&&t[r.touristicContentProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){i=[...w.touristicContents.filter((t=>t[r.touristicContentProperty].some((t=>e.includes(t)))))]}else{i=[...w.touristicContents.filter((t=>e.includes(t[r.touristicContentProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.touristicContents.filter((i=>i[r.touristicContentProperty]>=t&&i[r.touristicContentProperty]<=n))]}}}}const e=t?i:w.touristicContents;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}function B(){let t=false;let i=[];for(const r of S){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){i=[...i.filter((t=>t[r.touristicEventProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.touristicEventProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.touristicEventProperty]>=e.minValue&&t[r.touristicEventProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){i=[...w.touristicContents.filter((t=>t[r.touristicEventProperty].some((t=>e.includes(t)))))]}else{i=[...w.touristicEvents.filter((t=>e.includes(t[r.touristicEventProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.touristicEvents.filter((i=>i[r.touristicEventProperty]>=t&&i[r.touristicEventProperty]<=n))]}}}}const e=t?i:w.touristicEvents;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}
2
- /*! For license information please see choices.min.js.LICENSE.txt */!function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var r=e(883);i.addChoice=function(t){var i=t.value,e=t.label,n=t.id,s=t.groupId,o=t.disabled,a=t.elementId,l=t.customProperties,c=t.placeholder,h=t.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:n,groupId:s,disabled:o,elementId:a,customProperties:l,placeholder:c,keyCode:h}},i.filterChoices=function(t){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:t}},i.activateChoices=function(t){return void 0===t&&(t=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},i.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.addGroup=void 0;var r=e(883);i.addGroup=function(t){var i=t.value,e=t.id,n=t.active,s=t.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:n,disabled:s}}},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.highlightItem=i.removeItem=i.addItem=void 0;var r=e(883);i.addItem=function(t){var i=t.value,e=t.label,n=t.id,s=t.choiceId,o=t.groupId,a=t.customProperties,l=t.placeholder,c=t.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:n,choiceId:s,groupId:o,customProperties:a,placeholder:l,keyCode:c}},i.removeItem=function(t,i){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}},i.highlightItem=function(t,i){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}}},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.setIsLoading=i.resetTo=i.clearAll=void 0;var r=e(883);i.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},i.resetTo=function(t){return{type:r.ACTION_TYPES.RESET_TO,state:t}},i.setIsLoading=function(t){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,i,e){var r=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=n(e(996)),o=n(e(221)),a=e(282),l=e(783),c=e(464),h=e(137),u=e(520),f=e(883),p=e(789),d=e(799),m=e(655),g=n(e(744)),v=n(e(686)),w="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={},y=function(){function t(i,e){void 0===i&&(i="[data-choice]"),void 0===e&&(e={});var n=this;void 0===e.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=s.default.all([p.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return r([],i,!0)}});var o=(0,d.diff)(this.config,p.DEFAULT_CONFIG);o.length&&console.warn("Unknown config option(s) passed",o.join(", "));var a="string"==typeof i?document.querySelector(i):i;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===f.TEXT_TYPE,this._isSelectOneElement=a.type===f.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===f.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var l=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.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(t){return n._templates.option(t)}}),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,d.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 h=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(h)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){n._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:(0,d.parseCustomProperties)(t.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:i}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return v.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t||!t.id)return this;var e=t.id,r=t.groupId,n=void 0===r?-1:r,s=t.value,o=void 0===s?"":s,a=t.label,l=void 0===a?"":a,h=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,c.highlightItem)(e,!0)),i&&this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:e,value:o,label:l,groupValue:h&&h.value?h.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var i=t.id,e=t.groupId,r=void 0===e?-1:e,n=t.value,s=void 0===n?"":n,o=t.label,a=void 0===o?"":o,l=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,c.highlightItem)(i,!1)),this.passedElement.triggerEvent(f.EVENTS.highlightItem,{id:i,value:s,label:a,groupValue:l&&l.value?l.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},t.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},t.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive||requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent(f.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(f.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){var r=t?e.value:e;return i.push(r),i}),[]);return this._isSelectOneElement?i[0]:i},t.prototype.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,i,e,r){var n=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="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 i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof t){var s=t(this);if("function"==typeof Promise&&s instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return n._handleLoadingState(!0)})).then((function(){return s})).then((function(t){return n.setChoices(t,i,e,r)})).catch((function(t){n.config.silent||console.error(t)})).then((function(){return n._handleLoadingState(!1)})).then((function(){return n}));if(!Array.isArray(s))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof s));return this.setChoices(s,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)n._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e});else{var r=t;n._addChoice({value:r[i],label:r[e],isSelected:!!r.selected,isDisabled:!!r.disabled,placeholder:!!r.placeholder,customProperties:r.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,h.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,i=this._isSelectElement,e=this._currentState.items!==this._prevState.items;t&&(i&&this._renderChoices(),e&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,r=i.activeChoices,n=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var s=r.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));s.length>=1&&(n=this._createChoicesFragment(s,n)),n=this._createGroupsFragment(e,r,n)}else r.length>=1&&(n=this._createChoicesFragment(r,n));if(n.childNodes&&n.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,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)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},t.prototype._createGroupsFragment=function(t,i,e){var r=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var n=function(t){return i.filter((function(i){return r._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===r.config.renderSelectedChoices||!i.selected)}))}(t);if(n.length>=1){var s=r._getTemplate("choiceGroup",t);e.appendChild(s),r._createChoicesFragment(n,e,!0)}})),e},t.prototype._createChoicesFragment=function(t,i,e){var n=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,l=s.renderChoiceLimit,c=this._isSearching?d.sortByScore:this.config.sorter,h=function(t){if("auto"!==o||n._isSelectOneElement||!t.selected){var e=n._getTemplate("choice",t,n.config.itemSelectText);i.appendChild(e)}},u=t;"auto"!==o||this._isSelectOneElement||(u=t.filter((function(t){return!t.selected})));var f=u.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),p=f.placeholderChoices,m=f.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(c);var g=u.length,v=this._isSelectOneElement?r(r([],p,!0),m,!0):m;this._isSearching?g=a:l&&l>0&&!e&&(g=l);for(var w=0;w<g;w+=1)v[w]&&h(v[w]);return i},t.prototype._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var r=this.config,n=r.shouldSortItems,s=r.sorter,o=r.removeItemButton;return n&&!this._isSelectOneElement&&t.sort(s),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var r=e._getTemplate("item",t,o);i.appendChild(r)})),i},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(f.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode&&i.parentNode.dataset.id,r=e&&t.find((function(t){return t.id===parseInt(e,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,i,e){var r=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var n=i.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(n),10)||t.highlighted?!e&&t.highlighted&&r.unhighlightItem(t):r.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,i){if(t&&i){var e=i.dataset.id,r=e&&this._store.getChoiceById(e);if(r){var n=t[0]&&t[0].keyCode?t[0].keyCode:void 0,s=this.dropdown.isActive;r.keyCode=n,this.passedElement.triggerEvent(f.EVENTS.choice,{choice:r}),r.selected||r.disabled||this._canAddItem(t,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(),s&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(i):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i&&(i.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var i=this._store.choices,e=this.config,r=e.searchFloor,n=e.searchChoices,s=i.some((function(t){return!t.active}));if(null!=t&&t.length>=r){var o=n?this._searchChoices(t):0;this.passedElement.triggerEvent(f.EVENTS.search,{value:t,resultCount:o})}else s&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,i){var e=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var n=(0,d.existsInArray)(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&n&&e&&(e=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:r}},t.prototype._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," "))return 0;var n=this._store.searchableChoices,s=i,l=Object.assign(this.config.fuseOptions,{keys:r([],this.config.searchFields,!0),includeMatches:!0}),c=new o.default(n,l).search(s);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(c)),c.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var i=t.keyCode,e=this._store.activeItems,r=this.input.isFocussed,n=this.dropdown.isActive,s=this.itemList.hasChildren(),o=String.fromCharCode(i),a=/[^\x00-\x1F]/.test(o),l=f.KEY_CODES.BACK_KEY,c=f.KEY_CODES.DELETE_KEY,h=f.KEY_CODES.ENTER_KEY,u=f.KEY_CODES.A_KEY,p=f.KEY_CODES.ESC_KEY,d=f.KEY_CODES.UP_KEY,m=f.KEY_CODES.DOWN_KEY,g=f.KEY_CODES.PAGE_UP_KEY,v=f.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||n||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=t.key.toLowerCase())),i){case u:return this._onSelectKey(t,s);case h:return this._onEnterKey(t,e,n);case p:return this._onEscapeKey(n);case d:case g:case m:case v:return this._onDirectionKey(t,n);case c:case l:return this._onDeleteKey(t,e,r)}},t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode,r=this.input.value,n=this._store.activeItems,s=this._canAddItem(n,r),o=f.KEY_CODES.BACK_KEY,l=f.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(s.notice&&r){var c=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var h=(e===o||e===l)&&i&&!i.value,u=!this._isTextElement&&this._isSearching,p=this._canSearch&&s.response;h&&u?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,r=t.metaKey;(e||r)&&i&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,i,e){var r=t.target,n=f.KEY_CODES.ENTER_KEY,s=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var o=this.input.value;this._canAddItem(i,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(s&&(this._handleButtonAction(i,r),t.preventDefault()),e){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(i[0]&&(i[0].keyCode=n),this._handleChoiceAction(i,a)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,r=t.metaKey,n=f.KEY_CODES.DOWN_KEY,s=f.KEY_CODES.PAGE_UP_KEY,o=f.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=e===n||e===o?1:-1,l="[data-choice-selectable]",c=void 0;if(r||e===o||e===s)c=a>0?this.dropdown.element.querySelector("".concat(l,":last-of-type")):this.dropdown.element.querySelector(l);else{var h=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=h?(0,d.getAdjacentEl)(h,l,a):this.dropdown.element.querySelector(l)}c&&((0,d.isScrolledIntoView)(c,this.choiceList.element,a)||this.choiceList.scrollToChildElement(c,a),this._highlightChoice(c)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,i,e){var r=t.target;this._isSelectOneElement||r.value||!e||(this._handleBackspace(i),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(w&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild,r="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=r}if(i!==this.input.element){var n=i.closest("[data-button],[data-item],[data-choice]");if(n instanceof HTMLElement){var s=t.shiftKey,o=this._store.activeItems,a=n.dataset;"button"in a?this._handleButtonAction(o,n):"item"in a?this._handleItemAction(o,n,s):"choice"in a&&this._handleChoiceAction(o,n)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},t.prototype._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var i,e=this,r=t.target;r&&this.containerOuter.element.contains(r)&&((i={})[f.TEXT_TYPE]=function(){r===e.input.element&&e.containerOuter.addFocusState()},i[f.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState(),r===e.input.element&&e.showDropdown(!0)},i[f.SELECT_MULTIPLE_TYPE]=function(){r===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var i,e=this,r=t.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var n=this._store.activeItems.some((function(t){return t.highlighted}));((i={})[f.TEXT_TYPE]=function(){r===e.input.element&&(e.containerOuter.removeFocusState(),n&&e.unhighlightAll(),e.hideDropdown(!0))},i[f.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState(),(r===e.input.element||r===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},i[f.SELECT_MULTIPLE_TYPE]=function(){r===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),n&&e.unhighlightAll())},i)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var r=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),r?this._highlightPosition=e.indexOf(r):(r=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(r=e[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(f.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},t.prototype._addItem=function(t){var i=t.value,e=t.label,r=void 0===e?null:e,n=t.choiceId,s=void 0===n?-1:n,o=t.groupId,a=void 0===o?-1:o,l=t.customProperties,h=void 0===l?{}:l,u=t.placeholder,p=void 0!==u&&u,d=t.keyCode,m=void 0===d?-1:d,g="string"==typeof i?i.trim():i,v=this._store.items,w=r||g,b=s||-1,y=a>=0?this._store.getGroupById(a):null,x=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:w,id:x,choiceId:b,groupId:a,customProperties:h,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(x),this.passedElement.triggerEvent(f.EVENTS.addItem,{id:x,value:g,label:w,customProperties:h,groupValue:y&&y.value?y.value:null,keyCode:m})},t.prototype._removeItem=function(t){var i=t.id,e=t.value,r=t.label,n=t.customProperties,s=t.choiceId,o=t.groupId,a=o&&o>=0?this._store.getGroupById(o):null;i&&s&&(this._store.dispatch((0,c.removeItem)(i,s)),this.passedElement.triggerEvent(f.EVENTS.removeItem,{id:i,value:e,label:r,customProperties:n,groupValue:a&&a.value?a.value:null}))},t.prototype._addChoice=function(t){var i=t.value,e=t.label,r=void 0===e?null:e,n=t.isSelected,s=void 0!==n&&n,o=t.isDisabled,l=void 0!==o&&o,c=t.groupId,h=void 0===c?-1:c,u=t.customProperties,f=void 0===u?{}:u,p=t.placeholder,d=void 0!==p&&p,m=t.keyCode,g=void 0===m?-1:m;if(null!=i){var v=this._store.choices,w=r||i,b=v?v.length+1:1,y="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,a.addChoice)({id:b,groupId:h,elementId:y,value:i,label:w,disabled:l,customProperties:f,placeholder:d,keyCode:g})),s&&this._addItem({value:i,label:w,choiceId:b,customProperties:f,placeholder:d,keyCode:g})}},t.prototype._addGroup=function(t){var i=this,e=t.group,r=t.id,n=t.valueKey,s=void 0===n?"value":n,o=t.labelKey,a=void 0===o?"label":o,c=(0,d.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),h=r||Math.floor((new Date).valueOf()*Math.random()),u=!!e.disabled&&e.disabled;c?(this._store.dispatch((0,l.addGroup)({value:e.label,id:h,active:!0,disabled:u})),c.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[s],label:(0,d.isType)("Object",t)?t[a]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},t.prototype._getTemplate=function(t){for(var i,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(i=this._templates[t]).call.apply(i,r([this,this.config],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,d.strToEl)),this._templates=(0,s.default)(v.default,i)},t.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})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&e.parentNode&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),r=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,n){var s=t.value,o=void 0===s?"":s,a=t.label,l=t.customProperties,c=t.placeholder;if(i._isSelectElement)if(t.choices)i._addGroup({group:t,id:t.id||null});else{var h=!(!i._isSelectOneElement||e||n!==r)||t.selected,u=t.disabled;i._addChoice({value:o,label:a,isSelected:!!h,isDisabled:!!u,placeholder:!!c,customProperties:l})}else i._addChoice({value:o,label:a,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:l})}))},t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,d.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,r=i.placeholderValue,n=this.passedElement.element.dataset;if(e){if(r)return r;if(n.placeholder)return n.placeholder}return null},t}();i.default=y},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=e(883),s=function(){function t(t){var i=t.element,e=t.type,r=t.classNames,n=t.position;this.element=i,this.classNames=r,this.type=e,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 t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(i=!0),i},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,r.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=s},217:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){var i=t.element,e=t.type,r=t.classNames;this.element=i,this.classNames=r,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();i.default=e},520:function(t,i,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var n=r(e(217));i.Dropdown=n.default;var s=r(e(613));i.Container=s.default;var o=r(e(11));i.Input=o.default;var a=r(e(624));i.List=a.default;var l=r(e(541));i.WrappedInput=l.default;var c=r(e(982));i.WrappedSelect=c.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=e(883),s=function(){function t(t){var i=t.element,e=t.type,r=t.classNames,n=t.preventPaste;this.element=i,this.type=e,this.classNames=r,this.preventPaste=n,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,r=t.placeholder;i.minWidth="".concat(r.length+1,"ch"),i.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==n.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=s},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(883),n=function(){function t(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,i){var e=this;if(t){var r=this.element.offsetHeight,n=this.element.scrollTop+r,s=t.offsetHeight,o=t.offsetTop+s,a=i>0?this.element.scrollTop+o-n:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(a,i)}))}},t.prototype._scrollDown=function(t,i,e){var r=(e-t)/i,n=r>1?r:1;this.element.scrollTop=t+n},t.prototype._scrollUp=function(t,i,e){var r=(t-e)/i,n=r>1?r:1;this.element.scrollTop=t-n},t.prototype._animateScroll=function(t,i){var e=this,n=r.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;i>0?(this._scrollDown(s,n,t),s<t&&(o=!0)):(this._scrollUp(s,n,t),s>t&&(o=!0)),o&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}();i.default=n},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,i){(0,r.dispatchEvent)(this.element,t,i)},t}();i.default=n},541:function(t,i,e){var r,n=this&&this.__extends||(r=function(t,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},r(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=function(t){function i(i){var e=i.element,r=i.classNames,n=i.delimiter,s=t.call(this,{element:e,classNames:r})||this;return s.delimiter=n,s}return n(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),i}(s(e(730)).default);i.default=o},982:function(t,i,e){var r,n=this&&this.__extends||(r=function(t,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},r(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=function(t){function i(i){var e=i.element,r=i.classNames,n=i.template,s=t.call(this,{element:e,classNames:r})||this;return s.template=n,s}return n(i,t),Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return r=t,n=i.template(r),void e.appendChild(n);var r,n})),this.appendDocFragment(e)},enumerable:!1,configurable:!0}),i.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},i}(s(e(730)).default);i.default=o},883:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0,i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},i.TEXT_TYPE="text",i.SELECT_ONE_TYPE="select-one",i.SELECT_MULTIPLE_TYPE="select-multiple",i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var r=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},i.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter: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(t){return'Press Enter to add <b>"'.concat((0,r.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},187:function(t,i,e){var r=this&&this.__createBinding||(Object.create?function(t,i,e,r){void 0===r&&(r=e);var n=Object.getOwnPropertyDescriptor(i,e);n&&!("get"in n?!i.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return i[e]}}),Object.defineProperty(t,r,n)}:function(t,i,e,r){void 0===r&&(r=e),t[r]=i[e]}),n=this&&this.__exportStar||function(t,i){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(i,e)||r(i,t,e)};Object.defineProperty(i,"__esModule",{value:!0}),n(e(18),i),n(e(978),i),n(e(948),i),n(e(359),i),n(e(285),i),n(e(533),i),n(e(287),i),n(e(132),i),n(e(837),i),n(e(598),i),n(e(369),i),n(e(37),i),n(e(47),i),n(e(923),i),n(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},799:function(t,i){var e;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(t,i){return Math.floor(Math.random()*(i-t)+t)},i.generateChars=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")},i.generateId=function(t,e){var r=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),"".concat(e,"-").concat(r)},i.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i.isType=function(t,e){return null!=e&&(0,i.getType)(e)===t},i.wrap=function(t,i){return void 0===i&&(i=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i)),i.appendChild(t)},i.getAdjacentEl=function(t,i,e){void 0===e&&(e=1);for(var r="".concat(e>0?"next":"previous","ElementSibling"),n=t[r];n;){if(n.matches(i))return n;n=n[r]}return n},i.isScrolledIntoView=function(t,i,e){return void 0===e&&(e=1),!!t&&(e>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)},i.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},i.strToEl=(e=document.createElement("div"),function(t){var i=t.trim();e.innerHTML=i;for(var r=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return r}),i.sortByAlpha=function(t,i){var e=t.value,r=t.label,n=void 0===r?e:r,s=i.value,o=i.label,a=void 0===o?s:o;return n.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(t,i){var e=t.score,r=void 0===e?0:e,n=i.score;return r-(void 0===n?0:n)},i.dispatchEvent=function(t,i,e){void 0===e&&(e=null);var r=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});return t.dispatchEvent(r)},i.existsInArray=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))},i.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},i.diff=function(t,i){var e=Object.keys(t).sort(),r=Object.keys(i).sort();return e.filter((function(t){return r.indexOf(t)<0}))},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(i){return t}return{}}},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var n=r,s={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 e(e([],t,!0),[s],!1);case"ADD_ITEM":var o=r;return o.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(o.choiceId),10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":var a=r;return a.choiceId&&a.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(a.choiceId),10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":var l=r;return t.map((function(t){var i=t;return i.active=l.results.some((function(t){var e=t.item,r=t.score;return e.id===i.id&&(i.score=r,!0)})),i}));case"ACTIVATE_CHOICES":var c=r;return t.map((function(t){var i=t;return i.active=c.active,i}));case"CLEAR_CHOICES":return i.defaultState;default:return t}}},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var n=r;return e(e([],t,!0),[{id:n.id,value:n.value,active:n.active,disabled:n.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,i,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0;var n=e(791),s=r(e(52)),o=r(e(871)),a=r(e(273)),l=r(e(502)),c=e(799);i.defaultState={groups:[],items:[],choices:[],loading:!1};var h=(0,n.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:l.default});i.default=function(t,e){var r=t;if("CLEAR_ALL"===e.type)r=i.defaultState;else if("RESET_TO"===e.type)return(0,c.cloneObject)(e.state);return h(r,e)}},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var n=r;return e(e([],t,!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(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===r.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":var s=r;return t.map((function(t){var i=t;return i.id===s.id&&(i.highlighted=s.highlighted),i}));default:return t}}},502:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(t,e){return void 0===t&&(t=i.defaultState),void 0===e&&(e={}),"SET_IS_LOADING"===e.type?e.isLoading:t}},744:function(t,i,e){var r=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=e(791),o=n(e(655)),a=function(){function t(){this._store=(0,s.createStore)(o.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,i=this.choices;return t.filter((function(t){var e=!0===t.active&&!1===t.disabled,r=i.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&r}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},t}();i.default=a},686:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e={containerOuter:function(t,i,e,r,n,s,o){var a=t.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:a});return l.dataset.type=s,i&&(l.dir=i),r&&(l.tabIndex=0),e&&(l.setAttribute("role",n?"combobox":"listbox"),n&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),o&&l.setAttribute("aria-labelledby",o),l},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,r=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(i?n:s)})},placeholder:function(t,i){var e,r=t.allowHTML,n=t.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:n})[r?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var r,n,s=t.allowHTML,o=t.classNames,a=o.item,l=o.button,c=o.highlightedState,h=o.itemSelectable,u=o.placeholder,f=i.id,p=i.value,d=i.label,m=i.customProperties,g=i.active,v=i.disabled,w=i.highlighted,b=i.placeholder,y=Object.assign(document.createElement("div"),((r={className:a})[s?"innerHTML":"innerText"]=d,r));if(Object.assign(y.dataset,{item:"",id:f,value:p,customProperties:m}),g&&y.setAttribute("aria-selected","true"),v&&y.setAttribute("aria-disabled","true"),b&&y.classList.add(u),y.classList.add(w?c:h),e){v&&y.classList.remove(h),y.dataset.deletable="";var x="Remove item",k=Object.assign(document.createElement("button"),((n={type:"button",className:l})[s?"innerHTML":"innerText"]=x,n));k.setAttribute("aria-label","".concat(x,": '").concat(p,"'")),k.dataset.button="",y.appendChild(k)}return y},choiceList:function(t,i){var e=t.classNames.list,r=Object.assign(document.createElement("div"),{className:e});return i||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(t,i){var e,r=t.allowHTML,n=t.classNames,s=n.group,o=n.groupHeading,a=n.itemDisabled,l=i.id,c=i.value,h=i.disabled,u=Object.assign(document.createElement("div"),{className:"".concat(s," ").concat(h?a:"")});return u.setAttribute("role","group"),Object.assign(u.dataset,{group:"",id:l,value:c}),h&&u.setAttribute("aria-disabled","true"),u.appendChild(Object.assign(document.createElement("div"),((e={className:o})[r?"innerHTML":"innerText"]=c,e))),u},choice:function(t,i,e){var r,n=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,l=s.itemSelectable,c=s.selectedState,h=s.itemDisabled,u=s.placeholder,f=i.id,p=i.value,d=i.label,m=i.groupId,g=i.elementId,v=i.disabled,w=i.selected,b=i.placeholder,y=Object.assign(document.createElement("div"),((r={id:g})[n?"innerHTML":"innerText"]=d,r.className="".concat(o," ").concat(a),r));return w&&y.classList.add(c),b&&y.classList.add(u),y.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(y.dataset,{choice:"",id:f,value:p,selectText:e}),v?(y.classList.add(h),y.dataset.choiceDisabled="",y.setAttribute("aria-disabled","true")):(y.classList.add(l),y.dataset.choiceSelectable=""),y},input:function(t,i){var e=t.classNames,r=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(r," ").concat(n),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",i),s},dropdown:function(t){var i=t.classNames,e=i.list,r=i.listDropdown,n=document.createElement("div");return n.classList.add(e,r),n.setAttribute("aria-expanded","false"),n},notice:function(t,i,e){var r,n=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,l=s.noResults,c=s.noChoices;void 0===e&&(e="");var h=[o,a];return"no-choices"===e?h.push(c):"no-results"===e&&h.push(l),Object.assign(document.createElement("div"),((r={})[n?"innerHTML":"innerText"]=i,r.className=h.join(" "),r))},option:function(t){var i=t.label,e=t.value,r=t.customProperties,n=t.active,s=t.disabled,o=new Option(i,e,!1,n);return r&&(o.dataset.customProperties="".concat(r)),o.disabled=!!s,o}};i.default=e},996:function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,i){return!1!==i.clone&&i.isMergeableObject(t)?a((e=t,Array.isArray(e)?[]:{}),t,i):t;var e}function n(t,i,e){return t.concat(i).map((function(t){return r(t,e)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function o(t,i){try{return i in t}catch(t){return!1}}function a(t,e,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||i,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(e);return c===Array.isArray(t)?c?l.arrayMerge(t,e,l):function(t,i,e){var n={};return e.isMergeableObject(t)&&s(t).forEach((function(i){n[i]=r(t[i],e)})),s(i).forEach((function(s){(function(t,i){return o(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))})(t,s)||(o(t,s)&&e.isMergeableObject(i[s])?n[s]=function(t,i){if(!i.customMerge)return a;var e=i.customMerge(t);return"function"==typeof e?e:a}(s,e)(t[s],i[s],e):n[s]=r(i[s],e))})),n}(t,e,l):r(e,l)}a.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return a(t,e,i)}),{})};var l=a;t.exports=l},221:function(t,i,e){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function n(t){return"string"==typeof t}function s(t){return"number"==typeof t}function o(t){return"object"==typeof t}function a(t){return null!=t}function l(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}e.r(i),e.d(i,{default:function(){return N}});const h=Object.prototype.hasOwnProperty;class u{constructor(t){this._keys=[],this._keyMap={};let i=0;t.forEach((t=>{let e=f(t);i+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,i+=e.weight})),this._keys.forEach((t=>{t.weight/=i}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function f(t){let i=null,e=null,s=null,o=1,a=null;if(n(t)||r(t))s=t,i=p(t),e=d(t);else{if(!h.call(t,"name"))throw new Error("Missing name property in key");const r=t.name;if(s=r,h.call(t,"weight")&&(o=t.weight,o<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(r));i=p(r),e=d(r),a=t.getFn}return{path:i,id:e,weight:o,src:s,getFn:a}}function p(t){return r(t)?t:t.split(".")}function d(t){return r(t)?t.join("."):t}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,i)=>t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,i){let e=[],l=!1;const h=(t,i,u)=>{if(a(t))if(i[u]){const f=t[i[u]];if(!a(f))return;if(u===i.length-1&&(n(f)||s(f)||function(t){return!0===t||!1===t||function(t){return o(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}(f)))e.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let i=t+"";return"0"==i&&1/t==-1/0?"-0":i}(t)}(f));else if(r(f)){l=!0;for(let t=0,e=f.length;t<e;t+=1)h(f[t],i,u+1)}else i.length&&h(f,i,u+1)}else e.push(t)};return h(t,n(i)?i.split("."):i,0),l?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const g=/[^ ]+/g;class v{constructor({getFn:t=m.getFn,fieldNormWeight:i=m.fieldNormWeight}={}){this.norm=function(t=1,i=3){const e=new Map,r=Math.pow(10,i);return{get(i){const n=i.match(g).length;if(e.has(n))return e.get(n);const s=1/Math.pow(n,.5*t),o=parseFloat(Math.round(s*r)/r);return e.set(n,o),o},clear(){e.clear()}}}(i,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,i)=>{this._keysMap[t.id]=i}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach(((t,i)=>{this._addString(t,i)})):this.docs.forEach(((t,i)=>{this._addObject(t,i)})),this.norm.clear())}add(t){const i=this.size();n(t)?this._addString(t,i):this._addObject(t,i)}removeAt(t){this.records.splice(t,1);for(let i=t,e=this.size();i<e;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!a(t)||l(t))return;let e={v:t,i,n:this.norm.get(t)};this.records.push(e)}_addObject(t,i){let e={i,$:{}};this.keys.forEach(((i,s)=>{let o=i.getFn?i.getFn(t):this.getFn(t,i.path);if(a(o))if(r(o)){let t=[];const i=[{nestedArrIndex:-1,value:o}];for(;i.length;){const{nestedArrIndex:e,value:s}=i.pop();if(a(s))if(n(s)&&!l(s)){let i={v:s,i:e,n:this.norm.get(s)};t.push(i)}else r(s)&&s.forEach(((t,e)=>{i.push({nestedArrIndex:e,value:t})}))}e.$[s]=t}else if(n(o)&&!l(o)){let t={v:o,n:this.norm.get(o)};e.$[s]=t}})),this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}}function w(t,i,{getFn:e=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){const n=new v({getFn:e,fieldNormWeight:r});return n.setKeys(t.map(f)),n.setSources(i),n.create(),n}function b(t,{errors:i=0,currentLocation:e=0,expectedLocation:r=0,distance:n=m.distance,ignoreLocation:s=m.ignoreLocation}={}){const o=i/t.length;if(s)return o;const a=Math.abs(r-e);return n?o+a/n:a?1:o}const y=32;function x(t){let i={};for(let e=0,r=t.length;e<r;e+=1){const n=t.charAt(e);i[n]=(i[n]||0)|1<<r-e-1}return i}class k{constructor(t,{location:i=m.location,threshold:e=m.threshold,distance:r=m.distance,includeMatches:n=m.includeMatches,findAllMatches:s=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:a=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:i,threshold:e,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(t,i)=>{this.chunks.push({pattern:t,alphabet:x(t),startIndex:i})},h=this.pattern.length;if(h>y){let t=0;const i=h%y,e=h-i;for(;t<e;)c(this.pattern.substr(t,y),t),t+=y;if(i){const t=h-y;c(this.pattern.substr(t),t)}}else c(this.pattern,0)}searchIn(t){const{isCaseSensitive:i,includeMatches:e}=this.options;if(i||(t=t.toLowerCase()),this.pattern===t){let i={isMatch:!0,score:0};return e&&(i.indices=[[0,t.length-1]]),i}const{location:r,distance:n,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:l}=this.options;let c=[],h=0,u=!1;this.chunks.forEach((({pattern:i,alphabet:f,startIndex:p})=>{const{isMatch:d,score:g,indices:v}=function(t,i,e,{location:r=m.location,distance:n=m.distance,threshold:s=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(i.length>y)throw new Error("Pattern length exceeds max of 32.");const h=i.length,u=t.length,f=Math.max(0,Math.min(r,u));let p=s,d=f;const g=a>1||l,v=g?Array(u):[];let w;for(;(w=t.indexOf(i,d))>-1;){let t=b(i,{currentLocation:w,expectedLocation:f,distance:n,ignoreLocation:c});if(p=Math.min(t,p),d=w+h,g){let t=0;for(;t<h;)v[w+t]=1,t+=1}}d=-1;let x=[],k=1,A=h+u;const _=1<<h-1;for(let m=0;m<h;m+=1){let r=0,s=A;for(;r<s;)b(i,{errors:m,currentLocation:f+s,expectedLocation:f,distance:n,ignoreLocation:c})<=p?r=s:A=s,s=Math.floor((A-r)/2+r);A=s;let a=Math.max(1,f-s+1),l=o?u:Math.min(f+s,u)+h,w=Array(l+2);w[l+1]=(1<<m)-1;for(let o=l;o>=a;o-=1){let r=o-1,s=e[t.charAt(r)];if(g&&(v[r]=+!!s),w[o]=(w[o+1]<<1|1)&s,m&&(w[o]|=(x[o+1]|x[o])<<1|1|x[o+1]),w[o]&_&&(k=b(i,{errors:m,currentLocation:r,expectedLocation:f,distance:n,ignoreLocation:c}),k<=p)){if(p=k,d=r,d<=f)break;a=Math.max(1,2*f-d)}}if(b(i,{errors:m+1,currentLocation:f,expectedLocation:f,distance:n,ignoreLocation:c})>p)break;x=w}const M={isMatch:d>=0,score:Math.max(.001,k)};if(g){const t=function(t=[],i=m.minMatchCharLength){let e=[],r=-1,n=-1,s=0;for(let o=t.length;s<o;s+=1){let o=t[s];o&&-1===r?r=s:o||-1===r||(n=s-1,n-r+1>=i&&e.push([r,n]),r=-1)}return t[s-1]&&s-r>=i&&e.push([r,s-1]),e}(v,a);t.length?l&&(M.indices=t):M.isMatch=!1}return M}(t,i,f,{location:r+p,distance:n,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:e,ignoreLocation:l});d&&(u=!0),h+=g,d&&v&&(c=[...c,...v])}));let f={isMatch:u,score:u?h/this.chunks.length:1};return u&&e&&(f.indices=c),f}}class A{constructor(t){this.pattern=t}static isMultiMatch(t){return _(t,this.multiRegex)}static isSingleMatch(t){return _(t,this.singleRegex)}search(){}}function _(t,i){const e=t.match(i);return e?e[1]:null}class M extends A{constructor(t,{location:i=m.location,threshold:e=m.threshold,distance:r=m.distance,includeMatches:n=m.includeMatches,findAllMatches:s=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:a=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(t),this._bitapSearch=new k(t,{location:i,threshold:e,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class z extends A{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i,e=0;const r=[],n=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+n,r.push([i,e-1]);const s=!!r.length;return{isMatch:s,score:s?0:1,indices:r}}}const L=[class extends A{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},z,class extends A{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=-1===t.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},M],C=L.length,E=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,P=new Set([M.type,z.type]);const O=[];function j(t,i){for(let e=0,r=O.length;e<r;e+=1){let r=O[e];if(r.condition(t,i))return new r(t,i)}return new k(t,i)}const S="$and",T=t=>!(!t.$and&&!t.$or),I=t=>({[S]:Object.keys(t).map((i=>({[i]:t[i]})))});function B(t,i,{auto:e=!0}={}){const s=t=>{let a=Object.keys(t);const l=(t=>!!t.$path)(t);if(!l&&a.length>1&&!T(t))return s(I(t));if((t=>!r(t)&&o(t)&&!T(t))(t)){const r=l?t.$path:a[0],s=l?t.$val:t[r];if(!n(s))throw new Error((t=>`Invalid value for key ${t}`)(r));const o={keyId:d(r),pattern:s};return e&&(o.searcher=j(s,i)),o}let c={children:[],operator:a[0]};return a.forEach((i=>{const e=t[i];r(e)&&e.forEach((t=>{c.children.push(s(t))}))})),c};return T(t)||(t=I(t)),s(t)}function F(t,i){const e=t.matches;i.matches=[],a(e)&&e.forEach((t=>{if(!a(t.indices)||!t.indices.length)return;const{indices:e,value:r}=t;let n={indices:e,value:r};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),i.matches.push(n)}))}function R(t,i){i.score=t.score}class N{constructor(t,i={},e){this.options={...m,...i},this._keyStore=new u(this.options.keys),this.setCollection(t,e)}setCollection(t,i){if(this._docs=t,i&&!(i instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=i||w(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){a(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const i=[];for(let e=0,r=this._docs.length;e<r;e+=1){const n=this._docs[e];t(n,e)&&(this.removeAt(e),e-=1,r-=1,i.push(n))}return i}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:e,includeScore:r,shouldSort:o,sortFn:a,ignoreFieldNorm:l}=this.options;let c=n(t)?n(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:i=m.ignoreFieldNorm}){t.forEach((t=>{let e=1;t.matches.forEach((({key:t,norm:r,score:n})=>{const s=t?t.weight:null;e*=Math.pow(0===n&&s?Number.EPSILON:n,(s||1)*(i?1:r))})),t.score=e}))}(c,{ignoreFieldNorm:l}),o&&c.sort(a),s(i)&&i>-1&&(c=c.slice(0,i)),function(t,i,{includeMatches:e=m.includeMatches,includeScore:r=m.includeScore}={}){const n=[];return e&&n.push(F),r&&n.push(R),t.map((t=>{const{idx:e}=t,r={item:i[e],refIndex:e};return n.length&&n.forEach((i=>{i(t,r)})),r}))}(c,this._docs,{includeMatches:e,includeScore:r})}_searchStringList(t){const i=j(t,this.options),{records:e}=this._myIndex,r=[];return e.forEach((({v:t,i:e,n})=>{if(!a(t))return;const{isMatch:s,score:o,indices:l}=i.searchIn(t);s&&r.push({item:t,idx:e,matches:[{score:o,value:t,norm:n,indices:l}]})})),r}_searchLogical(t){const i=B(t,this.options),e=(t,i,r)=>{if(!t.children){const{keyId:e,searcher:n}=t,s=this._findMatches({key:this._keyStore.get(e),value:this._myIndex.getValueForItemAtKeyId(i,e),searcher:n});return s&&s.length?[{idx:r,item:i,matches:s}]:[]}const n=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s],a=e(o,i,r);if(a.length)n.push(...a);else if(t.operator===S)return[]}return n},r=this._myIndex.records,n={},s=[];return r.forEach((({$:t,i:r})=>{if(a(t)){let o=e(i,t,r);o.length&&(n[r]||(n[r]={idx:r,item:t,matches:[]},s.push(n[r])),o.forEach((({matches:t})=>{n[r].matches.push(...t)})))}})),s}_searchObjectList(t){const i=j(t,this.options),{keys:e,records:r}=this._myIndex,n=[];return r.forEach((({$:t,i:r})=>{if(!a(t))return;let s=[];e.forEach(((e,r)=>{s.push(...this._findMatches({key:e,value:t[r],searcher:i}))})),s.length&&n.push({idx:r,item:t,matches:s})})),n}_findMatches({key:t,value:i,searcher:e}){if(!a(i))return[];let n=[];if(r(i))i.forEach((({v:i,i:r,n:s})=>{if(!a(i))return;const{isMatch:o,score:l,indices:c}=e.searchIn(i);o&&n.push({score:l,key:t,value:i,idx:r,norm:s,indices:c})}));else{const{v:r,n:s}=i,{isMatch:o,score:a,indices:l}=e.searchIn(r);o&&n.push({score:a,key:t,value:r,norm:s,indices:l})}return n}}N.version="6.6.2",N.createIndex=w,N.parseIndex=function(t,{getFn:i=m.getFn,fieldNormWeight:e=m.fieldNormWeight}={}){const{keys:r,records:n}=t,s=new v({getFn:i,fieldNormWeight:e});return s.setKeys(r),s.setIndexRecords(n),s},N.config=m,N.parseQuery=B,function(...t){O.push(...t)}(class{constructor(t,{isCaseSensitive:i=m.isCaseSensitive,includeMatches:e=m.includeMatches,minMatchCharLength:r=m.minMatchCharLength,ignoreLocation:n=m.ignoreLocation,findAllMatches:s=m.findAllMatches,location:o=m.location,threshold:a=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:e,minMatchCharLength:r,findAllMatches:s,ignoreLocation:n,location:o,threshold:a,distance:l},this.pattern=i?t:t.toLowerCase(),this.query=function(t,i={}){return t.split("|").map((t=>{let e=t.trim().split(E).filter((t=>t&&!!t.trim())),r=[];for(let n=0,s=e.length;n<s;n+=1){const t=e[n];let s=!1,o=-1;for(;!s&&++o<C;){const e=L[o];let n=e.isMultiMatch(t);n&&(r.push(new e(n,i)),s=!0)}if(!s)for(o=-1;++o<C;){const e=L[o];let n=e.isSingleMatch(t);if(n){r.push(new e(n,i));break}}}return r}))}(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:e,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let n=0,s=[],o=0;for(let a=0,l=i.length;a<l;a+=1){const r=i[a];s.length=0,n=0;for(let i=0,a=r.length;i<a;i+=1){const a=r[i],{isMatch:l,indices:c,score:h}=a.search(t);if(!l){o=0,n=0,s.length=0;break}if(n+=1,o+=h,e){const t=a.constructor.type;P.has(t)?s=[...s,...c]:s.push(c)}}if(n){let t={isMatch:!0,score:o/n};return e&&(t.indices=s),t}}return{isMatch:!1,score:1}}})},791:function(t,i,e){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,i,e){return(i=function(t){var i=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i);if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===r(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?s(Object(e),!0).forEach((function(i){n(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function a(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}e.r(i),e.d(i,{__DO_NOT_USE__ActionTypes:function(){return h},applyMiddleware:function(){return w},bindActionCreators:function(){return g},combineReducers:function(){return d},compose:function(){return v},createStore:function(){return f},legacy_createStore:function(){return p}});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function u(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function f(t,i,e){var r;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(a(1));return e(f)(t,i)}if("function"!=typeof t)throw new Error(a(2));var n=t,s=i,o=[],c=o,p=!1;function d(){c===o&&(c=o.slice())}function m(){if(p)throw new Error(a(3));return s}function g(t){if("function"!=typeof t)throw new Error(a(4));if(p)throw new Error(a(5));var i=!0;return d(),c.push(t),function(){if(i){if(p)throw new Error(a(6));i=!1,d();var e=c.indexOf(t);c.splice(e,1),o=null}}}function v(t){if(!u(t))throw new Error(a(7));if(void 0===t.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,s=n(s,t)}finally{p=!1}for(var i=o=c,e=0;e<i.length;e++)(0,i[e])();return t}function w(t){if("function"!=typeof t)throw new Error(a(10));n=t,v({type:h.REPLACE})}function b(){var t,i=g;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(a(11));function e(){t.next&&t.next(m())}return e(),{unsubscribe:i(e)}}})[l]=function(){return this},t}return v({type:h.INIT}),(r={dispatch:v,subscribe:g,getState:m,replaceReducer:w})[l]=b,r}var p=f;function d(t){for(var i=Object.keys(t),e={},r=0;r<i.length;r++){var n=i[r];"function"==typeof t[n]&&(e[n]=t[n])}var s,o=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:h.INIT}))throw new Error(a(12));if(void 0===e(void 0,{type:h.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(e)}catch(t){s=t}return function(t,i){if(void 0===t&&(t={}),s)throw s;for(var r=!1,n={},l=0;l<o.length;l++){var c=o[l],h=e[c],u=t[c],f=h(u,i);if(void 0===f)throw new Error(a(14));n[c]=f,r=r||f!==u}return(r=r||o.length!==Object.keys(t).length)?n:t}}function m(t,i){return function(){return i(t.apply(this,arguments))}}function g(t,i){if("function"==typeof t)return m(t,i);if("object"!=typeof t||null===t)throw new Error(a(16));var e={};for(var r in t){var n=t[r];"function"==typeof n&&(e[r]=m(n,i))}return e}function v(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return 0===i.length?function(t){return t}:1===i.length?i[0]:i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function w(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(a(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=i.map((function(t){return t(n)}));return r=v.apply(void 0,s)(e.dispatch),o(o({},e),{},{dispatch:r})}}}}},i={};function e(r){var n=i[r];if(void 0!==n)return n.exports;var s=i[r]={exports:{}};return t[r].call(s.exports,s,s.exports,e),s.exports}e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r,n,s={};r=e(373),n=e.n(r),e(187),e(883),e(789),e(686),s.default=n(),window.Choices=s.default}();const F='*{-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}';const R=class{constructor(t){e(this,t);this.fontFamily="Roboto";this.filterType=undefined;this.filterName=undefined;this.filterPlaceholder="";this.filterNameProperty=undefined;this.segment=undefined}onResetFilter(){this.resetFilter()}handleFilter(t,i){const e=[...w[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;w[this.filterType]=e;w[this.segment]=0;if(w.mode==="treks"){O.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTreks=T()}else if(w.mode==="touristicContents"){j.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTouristicContents=I()}else if(w.mode==="touristicEvents"){S.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTouristicEvents=B()}}resetFilter(){if(this.choices){this.choices.removeActiveItems()}i(this.filterRef)}componentDidLoad(){if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:w[this.filterType].map((t=>({value:t.id,label:t[this.filterNameProperty],selected:t.selected}))),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});const t=this.el.shadowRoot.querySelector(".choices");t.addEventListener("click",(t=>{t.stopPropagation();const i=this.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!i.classList.contains("is-active")){const t=this.el.shadowRoot.querySelector(".choices");t.classList.add("is-focused");t.classList.add("is-open");i.classList.add("is-active");i.setAttribute("aria-expanded","true")}}),false);t.addEventListener("change",(t=>{this.handleFilter(null,w[this.filterType].find((i=>i.id===t.detail.value)))}),false)}}render(){return r(n,{ref:t=>this.filterRef=t,style:{"--font-family":this.fontFamily}},r("div",{class:"filter-name display-large"},this.filterName),r("div",{class:"filter-button-container"},w[this.filterType].length>9?r("select",{multiple:true,ref:t=>this.choicesRef=t}):w[this.filterType].map((t=>r("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}get el(){return s(this)}};R.style=F;const N='.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)}';const D=class{constructor(t){e(this,t);this.resetFilter=o(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}handleEraseTreksFilters(){O.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=T();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(t){this.selectedSegment=t}handleSegment(t){if(w.mode==="treks"){return O.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}else if(w.mode==="touristicContents"){return j.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}else if(w.mode==="touristicEvents"){return S.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}}handleEraseTouristicContentsFilters(){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=I();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=B();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"options-container"},r("div",{class:"filters-container"},w.mode==="treks"&&r("div",{class:"filters-treks-container"},r("div",{class:"filters-options-container"},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTreksFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].activities," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},l[w.language].themes," ",w.selectedThemesFilters!==0&&`(${w.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"treks-activities-segment-container",class:"segment-container"},w["practices"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[w.language].placeholderPractices})),w["difficulties"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),w["durations"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["lengths"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["elevations"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["routes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),w["accessibilities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["labels"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&r("div",{key:"treks-themes-segment-container",class:"segment-container"},w["themes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].themes,filterPlaceholder:l[w.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"treks-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),w.mode==="touristicContents"&&r("div",{class:"filters-touristic-contents-container"},r("div",{class:"filters-options-container"},w.touristicContentsWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicContentsFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].services," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},w["touristicContentCategories"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),w.mode==="touristicEvents"&&r("div",{class:"filters-touristic-events-container"},r("div",{class:"filters-options-container"},w.touristicEventsWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicEventsFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].services," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},w["touristicEventTypes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].type,filterPlaceholder:l[w.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"touristic-events-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),r("div",{onClick:()=>this.handleFilters(),class:"back-filters-container"})))}};D.style=N;const 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}';const G=class{constructor(t){e(this,t);this.centerOnMap=o(this,"centerOnMap",7);this.displayShortDescription=true;this.showInformationDeskDescriptionButton=false;this.informationDesk=undefined}componentDidLoad(){this.showInformationDeskDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}handleInformationDeskDescription(){this.displayShortDescription=!this.displayShortDescription}handleCenterOnMap(){this.centerOnMap.emit({latitude:this.informationDesk.latitude,longitude:this.informationDesk.longitude})}render(){return r(n,null,this.informationDesk.photo_url&&r("div",{class:"information-desk-img"},r("img",{crossorigin:"anonymous",src:this.informationDesk.photo_url,loading:"lazy"})),r("div",{class:"information-desk-sub-container"},this.informationDesk.name&&r("div",{class:"information-desk-name"},this.informationDesk.name),this.informationDesk.latitude&&this.informationDesk.longitude&&r("button",{class:"center-on-map-button",onClick:()=>this.handleCenterOnMap()},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"location_searching"),l[w.language].centerOnMap),(this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street)&&r("div",null,this.informationDesk.postal_code&&this.informationDesk.postal_code,this.informationDesk.municipality&&` ${this.informationDesk.municipality}`,this.informationDesk.street&&` ${this.informationDesk.street}`),this.informationDesk.phone&&r("div",{class:"phone-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"call"),r("a",{href:`tel:${this.informationDesk.phone}`},this.informationDesk.phone)),this.informationDesk.email&&r("div",{class:"mail-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"mail"),r("a",{href:`mailto:${this.informationDesk.email}`},this.informationDesk.email)),this.informationDesk.website&&r("div",{class:"link-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"link"),r("a",{href:`${this.informationDesk.website}`},this.informationDesk.website)),this.informationDesk.description&&r("div",{class:"information-desk-description-container"},r("div",{class:this.displayShortDescription?"information-desk-description-short":"information-desk-description",innerHTML:this.informationDesk.description,ref:t=>this.descriptionRef=t}),false)))}};G.style=Y;const $=".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)}}";const Z=class{constructor(t){e(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}render(){return r(n,{style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},r("span",{class:"loader"}))}};Z.style=$;var H=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function U(t,i,e){return e={path:i,exports:{},require:function(t,i){return V()}},t(e,e.exports),e.exports}function Q(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:true,get:function(){return t[e]}})}));return i}function V(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var W=U((function(t,i){
1
+ import{g as t,f as i,r as e,h as r,H as n,c as s,e as o,i as a}from"./p-fb5e6f55.js";const l={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",roadAccessAndParking:"Accès routier et parking",transport:"Transport",recommendations:"Recommandations",recommendedParking:"Stationnement",environmentalSensitiveAreas:"Zones de sensibilité environnementale",informationPlaces:"Lieux de renseignement",accessibility:"Accessibilité",accessibilityLevel:"Niveau d'accessibilité",accessibilitySlope:"Pente",accessibilityWidth:"Largeur",accessibilitySignage:"Signalétique",accessibilityCovering:"Revêtement",accessibilityExposure:"Exposition",accessibilityAdvices:"Conseils",pois:t=>`Les ${t} patrimoines à découvrir`,touristicContents:t=>`Services à proximité (${t})`,touristicEvents:t=>`Événements à proximité (${t})`,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",accessibility:"Accessibilité"},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",sensitiveAreasDescription:"Le long de votre itinéraire, vous allez traverser des zones de sensibilité liées à la présence d’une espèce ou d’un milieu particulier. Dans ces zones, un comportement adapté permet de contribuer à leur préservation. Pour plus d’informations détaillées, des fiches spécifiques sont accessibles pour chaque zone.",emergencyNumber:"Numéro de secours",learnMore:"En savoir plus"},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",roadAccessAndParking:"Road access and parking",transport:"Transport",recommendations:"Recommendations",recommendedParking:"Parking",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:t=>`${t} points of interest`,touristicContents:t=>`Near services (${t})`,touristicEvents:t=>`Near events (${t})`,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",accessibility:"Accessibility"},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",sensitiveAreasDescription:"Along your trek, you will go through sensitive areas related to the presence of a specific species or environment. In these areas, an appropriate behaviour allows to contribute to their preservation. For detailed information, specific forms are accessible for each area.",emergencyNumber:"Emergency number",learnMore:"Learn more"}};const c=(t,i,e)=>{const r=t.get(i);if(!r){t.set(i,[e])}else if(!r.includes(e)){r.push(e)}};const h=(t,i)=>{let e;return(...r)=>{if(e){clearTimeout(e)}e=setTimeout((()=>{e=0;t(...r)}),i)}};const f=t=>!("isConnected"in t)||t.isConnected;const u=h((t=>{for(let i of t.keys()){t.set(i,t.get(i).filter(f))}}),2e3);const p=()=>{if(typeof t!=="function"){return{}}const e=new Map;return{dispose:()=>e.clear(),get:i=>{const r=t();if(r){c(e,i,r)}},set:t=>{const r=e.get(t);if(r){e.set(t,r.filter(i))}u(e)},reset:()=>{e.forEach((t=>t.forEach(i)));u(e)}}};const d=t=>typeof t==="function"?t():t;const m=(t,i=((t,i)=>t!==i))=>{const e=d(t);let r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));const n={dispose:[],get:[],set:[],reset:[]};const s=()=>{var i;r=new Map(Object.entries((i=d(t))!==null&&i!==void 0?i:{}));n.reset.forEach((t=>t()))};const o=()=>{n.dispose.forEach((t=>t()));s()};const a=t=>{n.get.forEach((i=>i(t)));return r.get(t)};const l=(t,e)=>{const s=r.get(t);if(i(e,s,t)){r.set(t,e);n.set.forEach((i=>i(t,e,s)))}};const c=typeof Proxy==="undefined"?{}:new Proxy(e,{get(t,i){return a(i)},ownKeys(t){return Array.from(r.keys())},getOwnPropertyDescriptor(){return{enumerable:true,configurable:true}},has(t,i){return r.has(i)},set(t,i,e){l(i,e);return true}});const h=(t,i)=>{n[t].push(i);return()=>{g(n[t],i)}};const f=(i,e)=>{const r=h("set",((t,r)=>{if(t===i){e(r)}}));const n=h("reset",(()=>e(d(t)[i])));return()=>{r();n()}};const u=(...t)=>{const i=t.reduce(((t,i)=>{if(i.set){t.push(h("set",i.set))}if(i.get){t.push(h("get",i.get))}if(i.reset){t.push(h("reset",i.reset))}if(i.dispose){t.push(h("dispose",i.dispose))}return t}),[]);return()=>i.forEach((t=>t()))};const p=t=>{const i=r.get(t);n.set.forEach((e=>e(t,i,i)))};return{state:c,get:a,set:l,on:h,onChange:f,use:u,dispose:o,reset:s,forceUpdate:p}};const g=(t,i)=>{const e=t.indexOf(i);if(e>=0){t[e]=t[t.length-1];t.length--}};const v=(t,i)=>{const e=m(t,i);e.use(p());return e};const{state:w,onChange:b,reset:y}=v({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,networks:null});const x="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%}.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{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{max-height:calc(100vh - 64px - 48px)}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}";const k=class{constructor(t){e(this,t);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.emergencyNumber=undefined;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}onTrekCardPress(t){this.currentTouristicContentId=null;this.showTouristicContent=false;w.currentTouristicContent=null;this.currentTouristicEventId=null;this.showTouristicEvent=false;w.currentTouristicEvent=null;const i=w.parentTrekId?w.parentTrekId:w.currentTrekSteps?this.currentTrekId:null;w.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;const e=new URL(window.location.toString());e.searchParams.set("trek",this.currentTrekId.toString());if(w.currentTrekSteps){e.searchParams.set("parenttrek",i.toString())}window.history.pushState({},"",e)}onParentTrekPress(t){w.currentTrek=null;this.currentTrekId=t.detail;this.showTrek=true;this.showTrekMap=false;const i=new URL(window.location.toString());i.searchParams.set("trek",this.currentTrekId.toString());i.searchParams.delete("parenttrek");window.history.pushState({},"",i)}onTouristicContentCardPress(t){w.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicContentId=t.detail;this.showTouristicContent=true;this.showTouristicContentMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristiccontent",this.currentTouristicContentId.toString());window.history.pushState({},"",i)}onTouristiceEventCardPress(t){w.currentTrek=null;this.currentTrekId=null;this.showTrek=false;this.currentTouristicEventId=t.detail;this.showTouristicEvent=true;this.showTouristicEventMap=false;const i=new URL(window.location.toString());i.searchParams.delete("trek");i.searchParams.set("touristicevent",this.currentTouristicEventId.toString());window.history.pushState({},"",i)}onWindowResize(){this.handleView()}onCenterOnMap(){if(!this.isLargeView){this.showTrekMap=true}}watchPropHandler(){window.dispatchEvent(new window.Event("resize"))}componentWillLoad(){if(this.treks){w.mode="treks"}else if(this.touristicContents){w.mode="touristicContents"}else if(this.touristicEvents){w.mode="touristicEvents"}const t=new URL(window.location.toString());const i=t.searchParams.get("trek");const e=t.searchParams.get("parenttrek");const r=t.searchParams.get("touristiccontent");const n=t.searchParams.get("touristicevent");if(i){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);w.parentTrekId=e?Number(e):null;this.currentTrekId=Number(i);this.showTrek=true}else if(r){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicContentId=Number(r);this.showTouristicContent=true}else if(n){window.history.replaceState({isInitialHistoryWithDetails:true},"",t);this.currentTouristicEventId=Number(n);this.showTouristicEvent=true}}componentDidLoad(){window.addEventListener("popstate",this.handlePopStateBind,false);this.handleView()}onDetailsClose(){if(this.treks){w.mode="treks"}else if(this.touristicContents){w.mode="touristicContents"}else if(this.touristicEvents){w.mode="touristicEvents"}this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicContentMap=false;this.showTouristicEvent=false;this.showTouristicEventMap=false;w.currentTouristicContent=null;w.currentTouristicEvent=null;w.currentTrek=null;w.currentTrekSteps=null;w.parentTrekId=null;this.currentTrekId=null;this.showTrek=false}handleView(){this.isLargeView=this.appElement.getBoundingClientRect().width>=this.largeViewSize;this.showHomeMap=this.isLargeView;this.showTrekMap=this.isLargeView}handleFilters(){this.showFilters=!this.showFilters}handleBackButton(){if(window.history.state&&window.history.state.isInitialHistoryWithDetails){this.onDetailsClose();const t=new URL(window.location.toString());t.searchParams.delete("trek");t.searchParams.delete("touristiccontent");t.searchParams.delete("touristicevent");window.history.pushState({},"",t)}else{window.history.back()}}handlePopState(){const t=new URL(window.location.toString());const i=Number(t.searchParams.get("trek"));const e=t.searchParams.get("touristiccontent");const r=t.searchParams.get("touristicevent");if(i&&this.currentTrekId!==i){this.currentTouristicContentId=null;this.showTouristicContent=false;this.showTouristicEvent=false;w.currentTouristicContent=null;w.currentTouristicEvent=null;w.currentTrek=null;this.currentTrekId=i;this.showTrek=true}else if(!i&&!e&&!r){this.onDetailsClose()}}handleShowMap(){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}}getMapVisibilityIconButton(){let t;if(this.showTrek){t=this.showTrekMap?"summarize":"map"}else if(this.showTouristicContent){t=this.showTouristicContentMap?"summarize":"map"}else if(this.showTouristicEvent){t=this.showTouristicEventMap?"summarize":"map"}else{t=this.showHomeMap?"list":"map"}return t}getMapVisibilityLabelButton(){let t;if(this.showTrek){t=this.showTrekMap?l[w.language].showDetails:l[w.language].showRoute}else if(this.showTouristicContent){t=this.showTouristicContentMap?l[w.language].showDetails:l[w.language].showMap}else if(this.showTouristicEvent){t=this.showTouristicEventMap?l[w.language].showDetails:l[w.language].showMap}else{t=this.showHomeMap?l[w.language].showList:l[w.language].showMap}return t}reload(){window.location.reload()}disconnectedCallback(){y();window.removeEventListener("popstate",this.handlePopStateBind)}render(){return r(n,{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,"--color-sensitive-area":this.colorSensitiveArea,"--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"}},!w.currentTreks&&!w.currentTrek&&!w.currentTouristicContent&&!w.currentTouristicEvent&&!w.currentTouristicContents&&!w.currentTouristicEvents&&r("div",{class:"init-loader-container"},r("grw-loader",{"color-primary-container":this.colorPrimaryContainer,"color-on-primary-container":this.colorOnPrimaryContainer})),this.treks&&w.mode==="treks"&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&!w.currentTreks&&r("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&&!w.currentTrek&&r("grw-trek-provider",{api:this.api,languages:this.languages,"trek-id":this.currentTrekId,portals:this.portals}),this.showTouristicContent&&this.currentTouristicContentId&&r("grw-touristic-content-provider",{api:this.api,languages:this.languages,"touristic-content-id":this.currentTouristicContentId,portals:this.portals}),this.showTouristicEvent&&this.currentTouristicEventId&&r("grw-touristic-event-provider",{api:this.api,languages:this.languages,"touristic-event-id":this.currentTouristicEventId,portals:this.portals}),this.touristicContents&&w.mode==="touristicContents"&&!w.currentTouristicContents&&!this.showTouristicContent&&r("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&&w.mode==="touristicEvents"&&!w.currentTouristicEvents&&!this.showTouristicEvent&&r("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}),(w.currentTreks||w.currentTrek||w.touristicContents||w.touristicEvents||w.currentTouristicContent||w.currentTouristicEvent||w.trekNetworkError)&&r("div",{class:"app-container"},w.languages&&w.languages.length>1&&r("div",{class:"languages-container"},r("grw-select-language",null)),r("div",{class:`${this.isLargeView?"large-view-header-container":"header-container"}${this.showTrek||this.showTouristicContent||this.showTouristicEvent?" header-detail":""}`},Number(this.treks)+Number(this.touristicContents)+Number(this.touristicEvents)>1&&!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent&&r("grw-segmented-segment",{fontFamily:this.fontFamily,treks:this.treks,touristicContents:this.touristicContents,touristicEvents:this.touristicEvents}),!this.showTrek&&!this.showTouristicContent&&!this.showTouristicEvent?r("div",{class:"handle-search-filters-container"},r("div",{class:"handle-search-container"},r("grw-search",{fontFamily:this.fontFamily})),r("div",{class:"handle-filters-container"},r("grw-common-button",{fontFamily:this.fontFamily,action:()=>this.handleFilters(),icon:"filter_list",name:l[w.language].filter}))):r("div",{class:"arrow-back-container"},r("button",{onClick:()=>this.handleBackButton(),class:"arrow-back-icon"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"arrow_back")))),r("div",{class:`content-container ${this.showTrek||this.showTouristicContent||this.showTouristicEvent?"content-trek":"content-treks"}`},w.trekNetworkError&&r("div",{class:"error-container"},"Une erreur est survenue.",r("grw-common-button",{icon:"refresh",name:"Recharger la page",action:()=>this.reload()})),r("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"}},w.mode==="treks"&&this.treks&&r("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}),w.mode==="touristicContents"&&this.touristicContents&&r("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}),w.mode==="touristicEvents"&&this.touristicEvents&&r("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&&!w.currentTrek||this.showTouristicContent&&!w.currentTouristicContent||this.showTouristicEvent&&!w.currentTouristicEvent||!w.currentTreks&&w.mode==="treks"||!w.touristicContents&&w.mode==="touristicContents"&&r("div",{class:this.isLargeView?"large-view-loader-container":"loader-container"},r("grw-loader",{"color-primary-container":this.colorSecondaryContainer,"color-on-primary-container":this.colorOnSecondaryContainer})),w.currentTrek&&r("div",{class:this.isLargeView?"large-view-app-trek-detail-container":"app-trek-detail-container"},r("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,"emergency-number":this.emergencyNumber})),this.showTouristicContent&&r("div",{class:this.isLargeView?"large-view-app-touristic-content-detail-container":"app-touristic-content-detail-container"},r("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&&r("div",{class:this.isLargeView?"large-view-app-touristic-event-detail-container":"app-touristic-event-detail-container"},r("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})),!w.trekNetworkError&&r("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&&w.currentTrek||this.showTouristicContent&&w.currentTouristicContent||this.showTouristicEvent&&w.currentTouristicEvent)&&r("div",{class:"map-visibility-button-container"},r("grw-extended-fab",{fontFamily:this.fontFamily,action:()=>this.handleShowMap(),icon:()=>this.getMapVisibilityIconButton(),name:()=>this.getMapVisibilityLabelButton(),display:this.isLargeView?"none":"flex"}))),!this.showTrek&&this.showFilters&&r("grw-filters",{fontFamily:this.fontFamily,handleFilters:()=>this.handleFilters()}))}get appElement(){return s(this)}static get watchers(){return{isLargeView:["watchPropHandler"]}}};k.style=x;const A='.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}';const _=class{constructor(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.fontFamily="Roboto"}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("button",{onClick:()=>this.action(),class:"common-button"},r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},this.icon),this.name))}};_.style=A;const M='.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)}';const z=class{constructor(t){e(this,t);this.action=undefined;this.icon=undefined;this.name=undefined;this.display=undefined;this.fontFamily="Roboto"}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("button",{onClick:()=>this.action(),class:"map-visibility-button",style:{display:this.display}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},this.icon()),this.name()))}};z.style=M;function C(t){let i="";if(t<24){if(Math.floor(t)!==0){i+=`${Math.floor(t)}h`}if(t%1>0){i+=`${Math.round(60*(t%1))}min`}}else{i+=`${t/24}j`}return i}function E(t){return`${Math.round(t/1e3)}km`}function P(t){return`+${t}m`}function O(t){return`${t}m`}const j=[{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"}];const S=[{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"}];const T=[{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 I(){let t=false;let i=[];for(const r of j){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.trekPropertyIsArray){i=[...i.filter((t=>t[r.trekProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.trekProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.trekProperty]>=e.minValue&&t[r.trekProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.trekPropertyIsArray){i=[...w.treks.filter((t=>t[r.trekProperty].some((t=>e.includes(t)))))]}else{i=[...w.treks.filter((t=>e.includes(t[r.trekProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.treks.filter((i=>i[r.trekProperty]>=t&&i[r.trekProperty]<=n))]}}}}const e=t?i:w.treks;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}function B(){let t=false;let i=[];for(const r of S){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.touristicContentPropertyIsArray){i=[...i.filter((t=>t[r.touristicContentProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.touristicContentProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.touristicContentProperty]>=e.minValue&&t[r.touristicContentProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.touristicContentPropertyIsArray){i=[...w.touristicContents.filter((t=>t[r.touristicContentProperty].some((t=>e.includes(t)))))]}else{i=[...w.touristicContents.filter((t=>e.includes(t[r.touristicContentProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.touristicContents.filter((i=>i[r.touristicContentProperty]>=t&&i[r.touristicContentProperty]<=n))]}}}}const e=t?i:w.touristicContents;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}function F(){let t=false;let i=[];for(const r of T){const e=w[r.property].filter((t=>t.selected)).map((t=>t.id));if(e.length>0){if(i.length>0){if(r.type==="include"){if(r.touristicEventPropertyIsArray){i=[...i.filter((t=>t[r.touristicEventProperty].some((t=>e.includes(t)))))]}else{i=[...i.filter((t=>e.includes(t[r.touristicEventProperty])))]}}else if(r.type==="interval"){i=[...i.filter((t=>{for(const i of e){const e=w[r.property].find((t=>t.id===i));if(t[r.touristicEventProperty]>=e.minValue&&t[r.touristicEventProperty]<=e.maxValue){return true}}return false}))]}}else{if(!t){t=true}if(r.type==="include"){if(r.touristicEventPropertyIsArray){i=[...w.touristicContents.filter((t=>t[r.touristicEventProperty].some((t=>e.includes(t)))))]}else{i=[...w.touristicEvents.filter((t=>e.includes(t[r.touristicEventProperty])))]}}else if(r.type==="interval"){let t;let n;for(const i of e){const e=w[r.property].find((t=>t.id===i));if(isNaN(t)||e.minValue<t){t=e.minValue}if(isNaN(n)||e.maxValue>n){n=e.maxValue}}i=[...w.touristicEvents.filter((i=>i[r.touristicEventProperty]>=t&&i[r.touristicEventProperty]<=n))]}}}}const e=t?i:w.touristicEvents;return Boolean(w.searchValue)?e.filter((t=>t.name.toLowerCase().includes(w.searchValue.toLowerCase()))):e}
2
+ /*! For license information please see choices.min.js.LICENSE.txt */!function(){var t={282:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.clearChoices=i.activateChoices=i.filterChoices=i.addChoice=void 0;var r=e(883);i.addChoice=function(t){var i=t.value,e=t.label,n=t.id,s=t.groupId,o=t.disabled,a=t.elementId,l=t.customProperties,c=t.placeholder,h=t.keyCode;return{type:r.ACTION_TYPES.ADD_CHOICE,value:i,label:e,id:n,groupId:s,disabled:o,elementId:a,customProperties:l,placeholder:c,keyCode:h}},i.filterChoices=function(t){return{type:r.ACTION_TYPES.FILTER_CHOICES,results:t}},i.activateChoices=function(t){return void 0===t&&(t=!0),{type:r.ACTION_TYPES.ACTIVATE_CHOICES,active:t}},i.clearChoices=function(){return{type:r.ACTION_TYPES.CLEAR_CHOICES}}},783:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.addGroup=void 0;var r=e(883);i.addGroup=function(t){var i=t.value,e=t.id,n=t.active,s=t.disabled;return{type:r.ACTION_TYPES.ADD_GROUP,value:i,id:e,active:n,disabled:s}}},464:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.highlightItem=i.removeItem=i.addItem=void 0;var r=e(883);i.addItem=function(t){var i=t.value,e=t.label,n=t.id,s=t.choiceId,o=t.groupId,a=t.customProperties,l=t.placeholder,c=t.keyCode;return{type:r.ACTION_TYPES.ADD_ITEM,value:i,label:e,id:n,choiceId:s,groupId:o,customProperties:a,placeholder:l,keyCode:c}},i.removeItem=function(t,i){return{type:r.ACTION_TYPES.REMOVE_ITEM,id:t,choiceId:i}},i.highlightItem=function(t,i){return{type:r.ACTION_TYPES.HIGHLIGHT_ITEM,id:t,highlighted:i}}},137:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.setIsLoading=i.resetTo=i.clearAll=void 0;var r=e(883);i.clearAll=function(){return{type:r.ACTION_TYPES.CLEAR_ALL}},i.resetTo=function(t){return{type:r.ACTION_TYPES.RESET_TO,state:t}},i.setIsLoading=function(t){return{type:r.ACTION_TYPES.SET_IS_LOADING,isLoading:t}}},373:function(t,i,e){var r=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=n(e(996)),o=n(e(221)),a=e(282),l=e(783),c=e(464),h=e(137),f=e(520),u=e(883),p=e(789),d=e(799),m=e(655),g=n(e(744)),v=n(e(686)),w="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={},y=function(){function t(i,e){void 0===i&&(i="[data-choice]"),void 0===e&&(e={});var n=this;void 0===e.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=s.default.all([p.DEFAULT_CONFIG,t.defaults.options,e],{arrayMerge:function(t,i){return r([],i,!0)}});var o=(0,d.diff)(this.config,p.DEFAULT_CONFIG);o.length&&console.warn("Unknown config option(s) passed",o.join(", "));var a="string"==typeof i?document.querySelector(i):i;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===u.TEXT_TYPE,this._isSelectOneElement=a.type===u.SELECT_ONE_TYPE,this._isSelectMultipleElement=a.type===u.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),e.addItemFilter&&"function"!=typeof e.addItemFilter){var l=e.addItemFilter instanceof RegExp?e.addItemFilter:new RegExp(e.addItemFilter);this.config.addItemFilter=l.test.bind(l)}if(this._isTextElement?this.passedElement=new f.WrappedInput({element:a,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new f.WrappedSelect({element:a,classNames:this.config.classNames,template:function(t){return n._templates.option(t)}}),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,d.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 h=this.passedElement.value.split(this.config.delimiter);this._presetItems=this._presetItems.concat(h)}if(this.passedElement.options&&this.passedElement.options.forEach((function(t){n._presetChoices.push({value:t.value,label:t.innerHTML,selected:!!t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:(0,d.parseCustomProperties)(t.dataset.customProperties)})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:i}),void(this.initialised=!0);this.init()}return Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return v.default}})},enumerable:!1,configurable:!0}),t.prototype.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},t.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},t.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},t.prototype.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t||!t.id)return this;var e=t.id,r=t.groupId,n=void 0===r?-1:r,s=t.value,o=void 0===s?"":s,a=t.label,l=void 0===a?"":a,h=n>=0?this._store.getGroupById(n):null;return this._store.dispatch((0,c.highlightItem)(e,!0)),i&&this.passedElement.triggerEvent(u.EVENTS.highlightItem,{id:e,value:o,label:l,groupValue:h&&h.value?h.value:null}),this},t.prototype.unhighlightItem=function(t){if(!t||!t.id)return this;var i=t.id,e=t.groupId,r=void 0===e?-1:e,n=t.value,s=void 0===n?"":n,o=t.label,a=void 0===o?"":o,l=r>=0?this._store.getGroupById(r):null;return this._store.dispatch((0,c.highlightItem)(i,!1)),this.passedElement.triggerEvent(u.EVENTS.highlightItem,{id:i,value:s,label:a,groupValue:l&&l.value?l.value:null}),this},t.prototype.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},t.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},t.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},t.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},t.prototype.showDropdown=function(t){var i=this;return this.dropdown.isActive||requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent(u.EVENTS.showDropdown,{})})),this},t.prototype.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent(u.EVENTS.hideDropdown,{})})),this):this},t.prototype.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){var r=t?e.value:e;return i.push(r),i}),[]);return this._isSelectOneElement?i[0]:i},t.prototype.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},t.prototype.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement||(Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this},t.prototype.setChoices=function(t,i,e,r){var n=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="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 i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(r&&this.clearChoices(),"function"==typeof t){var s=t(this);if("function"==typeof Promise&&s instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return n._handleLoadingState(!0)})).then((function(){return s})).then((function(t){return n.setChoices(t,i,e,r)})).catch((function(t){n.config.silent||console.error(t)})).then((function(){return n._handleLoadingState(!1)})).then((function(){return n}));if(!Array.isArray(s))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof s));return this.setChoices(s,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){if(t.choices)n._addGroup({id:t.id?parseInt("".concat(t.id),10):null,group:t,valueKey:i,labelKey:e});else{var r=t;n._addChoice({value:r[i],label:r[e],isSelected:!!r.selected,isDisabled:!!r.disabled,placeholder:!!r.placeholder,customProperties:r.customProperties})}})),this._stopLoading(),this},t.prototype.clearChoices=function(){return this._store.dispatch((0,a.clearChoices)()),this},t.prototype.clearStore=function(){return this._store.dispatch((0,h.clearAll)()),this},t.prototype.clearInput=function(){var t=!this._isSelectOneElement;return this.input.clear(t),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))),this},t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,i=this._isSelectElement,e=this._currentState.items!==this._prevState.items;t&&(i&&this._renderChoices(),e&&this._renderItems(),this._prevState=this._currentState)}},t.prototype._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,r=i.activeChoices,n=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var s=r.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));s.length>=1&&(n=this._createChoicesFragment(s,n)),n=this._createGroupsFragment(e,r,n)}else r.length>=1&&(n=this._createChoicesFragment(r,n));if(n.childNodes&&n.childNodes.length>0){var o=this._store.activeItems,a=this._canAddItem(o,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)}},t.prototype._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},t.prototype._createGroupsFragment=function(t,i,e){var r=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var n=function(t){return i.filter((function(i){return r._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===r.config.renderSelectedChoices||!i.selected)}))}(t);if(n.length>=1){var s=r._getTemplate("choiceGroup",t);e.appendChild(s),r._createChoicesFragment(n,e,!0)}})),e},t.prototype._createChoicesFragment=function(t,i,e){var n=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var s=this.config,o=s.renderSelectedChoices,a=s.searchResultLimit,l=s.renderChoiceLimit,c=this._isSearching?d.sortByScore:this.config.sorter,h=function(t){if("auto"!==o||n._isSelectOneElement||!t.selected){var e=n._getTemplate("choice",t,n.config.itemSelectText);i.appendChild(e)}},f=t;"auto"!==o||this._isSelectOneElement||(f=t.filter((function(t){return!t.selected})));var u=f.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),p=u.placeholderChoices,m=u.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(c);var g=f.length,v=this._isSelectOneElement?r(r([],p,!0),m,!0):m;this._isSearching?g=a:l&&l>0&&!e&&(g=l);for(var w=0;w<g;w+=1)v[w]&&h(v[w]);return i},t.prototype._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var r=this.config,n=r.shouldSortItems,s=r.sorter,o=r.removeItemButton;return n&&!this._isSelectOneElement&&t.sort(s),this._isTextElement?this.passedElement.value=t.map((function(t){return t.value})).join(this.config.delimiter):this.passedElement.options=t,t.forEach((function(t){var r=e._getTemplate("item",t,o);i.appendChild(r)})),i},t.prototype._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent(u.EVENTS.change,{value:t})},t.prototype._selectPlaceholderChoice=function(t){this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value)},t.prototype._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode&&i.parentNode.dataset.id,r=e&&t.find((function(t){return t.id===parseInt(e,10)}));r&&(this._removeItem(r),this._triggerChange(r.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice))}},t.prototype._handleItemAction=function(t,i,e){var r=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var n=i.dataset.id;t.forEach((function(t){t.id!==parseInt("".concat(n),10)||t.highlighted?!e&&t.highlighted&&r.unhighlightItem(t):r.highlightItem(t)})),this.input.focus()}},t.prototype._handleChoiceAction=function(t,i){if(t&&i){var e=i.dataset.id,r=e&&this._store.getChoiceById(e);if(r){var n=t[0]&&t[0].keyCode?t[0].keyCode:void 0,s=this.dropdown.isActive;r.keyCode=n,this.passedElement.triggerEvent(u.EVENTS.choice,{choice:r}),r.selected||r.disabled||this._canAddItem(t,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(),s&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},t.prototype._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},t.prototype._startLoading=function(){this._store.dispatch((0,h.setIsLoading)(!0))},t.prototype._stopLoading=function(){this._store.dispatch((0,h.setIsLoading)(!1))},t.prototype._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild(".".concat(this.config.classNames.placeholder));t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(i):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i&&(i.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},t.prototype._handleSearch=function(t){if(this.input.isFocussed){var i=this._store.choices,e=this.config,r=e.searchFloor,n=e.searchChoices,s=i.some((function(t){return!t.active}));if(null!=t&&t.length>=r){var o=n?this._searchChoices(t):0;this.passedElement.triggerEvent(u.EVENTS.search,{value:t,resultCount:o})}else s&&(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0)))}},t.prototype._canAddItem=function(t,i){var e=!0,r="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var n=(0,d.existsInArray)(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,r="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&n&&e&&(e=!1,r="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,r="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:r}},t.prototype._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i==="".concat(e," "))return 0;var n=this._store.searchableChoices,s=i,l=Object.assign(this.config.fuseOptions,{keys:r([],this.config.searchFields,!0),includeMatches:!0}),c=new o.default(n,l).search(s);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,a.filterChoices)(c)),c.length},t.prototype._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},t.prototype._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},t.prototype._onKeyDown=function(t){var i=t.keyCode,e=this._store.activeItems,r=this.input.isFocussed,n=this.dropdown.isActive,s=this.itemList.hasChildren(),o=String.fromCharCode(i),a=/[^\x00-\x1F]/.test(o),l=u.KEY_CODES.BACK_KEY,c=u.KEY_CODES.DELETE_KEY,h=u.KEY_CODES.ENTER_KEY,f=u.KEY_CODES.A_KEY,p=u.KEY_CODES.ESC_KEY,d=u.KEY_CODES.UP_KEY,m=u.KEY_CODES.DOWN_KEY,g=u.KEY_CODES.PAGE_UP_KEY,v=u.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||n||!a||(this.showDropdown(),this.input.isFocussed||(this.input.value+=t.key.toLowerCase())),i){case f:return this._onSelectKey(t,s);case h:return this._onEnterKey(t,e,n);case p:return this._onEscapeKey(n);case d:case g:case m:case v:return this._onDirectionKey(t,n);case c:case l:return this._onDeleteKey(t,e,r)}},t.prototype._onKeyUp=function(t){var i=t.target,e=t.keyCode,r=this.input.value,n=this._store.activeItems,s=this._canAddItem(n,r),o=u.KEY_CODES.BACK_KEY,l=u.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(s.notice&&r){var c=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=c.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var h=(e===o||e===l)&&i&&!i.value,f=!this._isTextElement&&this._isSearching,p=this._canSearch&&s.response;h&&f?(this._isSearching=!1,this._store.dispatch((0,a.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},t.prototype._onSelectKey=function(t,i){var e=t.ctrlKey,r=t.metaKey;(e||r)&&i&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},t.prototype._onEnterKey=function(t,i,e){var r=t.target,n=u.KEY_CODES.ENTER_KEY,s=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var o=this.input.value;this._canAddItem(i,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(s&&(this._handleButtonAction(i,r),t.preventDefault()),e){var a=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));a&&(i[0]&&(i[0].keyCode=n),this._handleChoiceAction(i,a)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},t.prototype._onEscapeKey=function(t){t&&(this.hideDropdown(!0),this.containerOuter.focus())},t.prototype._onDirectionKey=function(t,i){var e=t.keyCode,r=t.metaKey,n=u.KEY_CODES.DOWN_KEY,s=u.KEY_CODES.PAGE_UP_KEY,o=u.KEY_CODES.PAGE_DOWN_KEY;if(i||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var a=e===n||e===o?1:-1,l="[data-choice-selectable]",c=void 0;if(r||e===o||e===s)c=a>0?this.dropdown.element.querySelector("".concat(l,":last-of-type")):this.dropdown.element.querySelector(l);else{var h=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));c=h?(0,d.getAdjacentEl)(h,l,a):this.dropdown.element.querySelector(l)}c&&((0,d.isScrolledIntoView)(c,this.choiceList.element,a)||this.choiceList.scrollToChildElement(c,a),this._highlightChoice(c)),t.preventDefault()}},t.prototype._onDeleteKey=function(t,i,e){var r=t.target;this._isSelectOneElement||r.value||!e||(this._handleBackspace(i),t.preventDefault())},t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},t.prototype._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},t.prototype._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(w&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild,r="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft;this._isScrollingOnIe=r}if(i!==this.input.element){var n=i.closest("[data-button],[data-item],[data-choice]");if(n instanceof HTMLElement){var s=t.shiftKey,o=this._store.activeItems,a=n.dataset;"button"in a?this._handleButtonAction(o,n):"item"in a?this._handleItemAction(o,n,s):"choice"in a&&this._handleChoiceAction(o,n)}t.preventDefault()}}},t.prototype._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},t.prototype._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},t.prototype._onFocus=function(t){var i,e=this,r=t.target;r&&this.containerOuter.element.contains(r)&&((i={})[u.TEXT_TYPE]=function(){r===e.input.element&&e.containerOuter.addFocusState()},i[u.SELECT_ONE_TYPE]=function(){e.containerOuter.addFocusState(),r===e.input.element&&e.showDropdown(!0)},i[u.SELECT_MULTIPLE_TYPE]=function(){r===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},t.prototype._onBlur=function(t){var i,e=this,r=t.target;if(r&&this.containerOuter.element.contains(r)&&!this._isScrollingOnIe){var n=this._store.activeItems.some((function(t){return t.highlighted}));((i={})[u.TEXT_TYPE]=function(){r===e.input.element&&(e.containerOuter.removeFocusState(),n&&e.unhighlightAll(),e.hideDropdown(!0))},i[u.SELECT_ONE_TYPE]=function(){e.containerOuter.removeFocusState(),(r===e.input.element||r===e.containerOuter.element&&!e._canSearch)&&e.hideDropdown(!0)},i[u.SELECT_MULTIPLE_TYPE]=function(){r===e.input.element&&(e.containerOuter.removeFocusState(),e.hideDropdown(!0),n&&e.unhighlightAll())},i)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},t.prototype._onFormReset=function(){this._store.dispatch((0,h.resetTo)(this._initialState))},t.prototype._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var r=t;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),r?this._highlightPosition=e.indexOf(r):(r=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(r=e[0]),r.classList.add(this.config.classNames.highlightedState),r.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(u.EVENTS.highlightChoice,{el:r}),this.dropdown.isActive&&(this.input.setActiveDescendant(r.id),this.containerOuter.setActiveDescendant(r.id))}},t.prototype._addItem=function(t){var i=t.value,e=t.label,r=void 0===e?null:e,n=t.choiceId,s=void 0===n?-1:n,o=t.groupId,a=void 0===o?-1:o,l=t.customProperties,h=void 0===l?{}:l,f=t.placeholder,p=void 0!==f&&f,d=t.keyCode,m=void 0===d?-1:d,g="string"==typeof i?i.trim():i,v=this._store.items,w=r||g,b=s||-1,y=a>=0?this._store.getGroupById(a):null,x=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:w,id:x,choiceId:b,groupId:a,customProperties:h,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(x),this.passedElement.triggerEvent(u.EVENTS.addItem,{id:x,value:g,label:w,customProperties:h,groupValue:y&&y.value?y.value:null,keyCode:m})},t.prototype._removeItem=function(t){var i=t.id,e=t.value,r=t.label,n=t.customProperties,s=t.choiceId,o=t.groupId,a=o&&o>=0?this._store.getGroupById(o):null;i&&s&&(this._store.dispatch((0,c.removeItem)(i,s)),this.passedElement.triggerEvent(u.EVENTS.removeItem,{id:i,value:e,label:r,customProperties:n,groupValue:a&&a.value?a.value:null}))},t.prototype._addChoice=function(t){var i=t.value,e=t.label,r=void 0===e?null:e,n=t.isSelected,s=void 0!==n&&n,o=t.isDisabled,l=void 0!==o&&o,c=t.groupId,h=void 0===c?-1:c,f=t.customProperties,u=void 0===f?{}:f,p=t.placeholder,d=void 0!==p&&p,m=t.keyCode,g=void 0===m?-1:m;if(null!=i){var v=this._store.choices,w=r||i,b=v?v.length+1:1,y="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,a.addChoice)({id:b,groupId:h,elementId:y,value:i,label:w,disabled:l,customProperties:u,placeholder:d,keyCode:g})),s&&this._addItem({value:i,label:w,choiceId:b,customProperties:u,placeholder:d,keyCode:g})}},t.prototype._addGroup=function(t){var i=this,e=t.group,r=t.id,n=t.valueKey,s=void 0===n?"value":n,o=t.labelKey,a=void 0===o?"label":o,c=(0,d.isType)("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),h=r||Math.floor((new Date).valueOf()*Math.random()),f=!!e.disabled&&e.disabled;c?(this._store.dispatch((0,l.addGroup)({value:e.label,id:h,active:!0,disabled:f})),c.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[s],label:(0,d.isType)("Object",t)?t[a]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:h,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},t.prototype._getTemplate=function(t){for(var i,e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return(i=this._templates[t]).call.apply(i,r([this,this.config],e,!1))},t.prototype._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,d.strToEl)),this._templates=(0,s.default)(v.default,i)},t.prototype._createElements=function(){this.containerOuter=new f.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 f.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new f.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new f.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new f.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new f.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},t.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},t.prototype._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&e.parentNode&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},t.prototype._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),r=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,n){var s=t.value,o=void 0===s?"":s,a=t.label,l=t.customProperties,c=t.placeholder;if(i._isSelectElement)if(t.choices)i._addGroup({group:t,id:t.id||null});else{var h=!(!i._isSelectOneElement||e||n!==r)||t.selected,f=t.disabled;i._addChoice({value:o,label:a,isSelected:!!h,isDisabled:!!f,placeholder:!!c,customProperties:l})}else i._addChoice({value:o,label:a,isSelected:!!t.selected,isDisabled:!!t.disabled,placeholder:!!t.placeholder,customProperties:l})}))},t.prototype._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},t.prototype._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[(0,d.getType)(t).toLowerCase()]()},t.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var t=this.passedElement.placeholderOption;return t?t.text:null}var i=this.config,e=i.placeholder,r=i.placeholderValue,n=this.passedElement.element.dataset;if(e){if(r)return r;if(n.placeholder)return n.placeholder}return null},t}();i.default=y},613:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=e(883),s=function(){function t(t){var i=t.element,e=t.type,r=t.classNames,n=t.position;this.element=i,this.classNames=r,this.type=e,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 t.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},t.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: ".concat(t+1,"px)")).matches:"top"===this.position&&(i=!0),i},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},t.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},t.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},t.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},t.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===n.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},t.prototype.wrap=function(t){(0,r.wrap)(t,this.element)},t.prototype.unwrap=function(t){this.element.parentNode&&(this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element))},t.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},t.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=s},217:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e=function(){function t(t){var i=t.element,e=t.type,r=t.classNames;this.element=i,this.classNames=r,this.type=e,this.isActive=!1}return Object.defineProperty(t.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},t.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t}();i.default=e},520:function(t,i,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.WrappedSelect=i.WrappedInput=i.List=i.Input=i.Container=i.Dropdown=void 0;var n=r(e(217));i.Dropdown=n.default;var s=r(e(613));i.Container=s.default;var o=r(e(11));i.Input=o.default;var a=r(e(624));i.List=a.default;var l=r(e(541));i.WrappedInput=l.default;var c=r(e(982));i.WrappedSelect=c.default},11:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=e(883),s=function(){function t(t){var i=t.element,e=t.type,r=t.classNames,n=t.preventPaste;this.element=i,this.type=e,this.classNames=r,this.preventPaste=n,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(t.prototype,"placeholder",{set:function(t){this.element.placeholder=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return(0,r.sanitise)(this.element.value)},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),t.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},t.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},t.prototype.focus=function(){this.isFocussed||this.element.focus()},t.prototype.blur=function(){this.isFocussed&&this.element.blur()},t.prototype.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},t.prototype.setWidth=function(){var t=this.element,i=t.style,e=t.value,r=t.placeholder;i.minWidth="".concat(r.length+1,"ch"),i.width="".concat(e.length+1,"ch")},t.prototype.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},t.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},t.prototype._onInput=function(){this.type!==n.SELECT_ONE_TYPE&&this.setWidth()},t.prototype._onPaste=function(t){this.preventPaste&&t.preventDefault()},t.prototype._onFocus=function(){this.isFocussed=!0},t.prototype._onBlur=function(){this.isFocussed=!1},t}();i.default=s},624:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(883),n=function(){function t(t){var i=t.element;this.element=i,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return t.prototype.clear=function(){this.element.innerHTML=""},t.prototype.append=function(t){this.element.appendChild(t)},t.prototype.getChild=function(t){return this.element.querySelector(t)},t.prototype.hasChildren=function(){return this.element.hasChildNodes()},t.prototype.scrollToTop=function(){this.element.scrollTop=0},t.prototype.scrollToChildElement=function(t,i){var e=this;if(t){var r=this.element.offsetHeight,n=this.element.scrollTop+r,s=t.offsetHeight,o=t.offsetTop+s,a=i>0?this.element.scrollTop+o-n:t.offsetTop;requestAnimationFrame((function(){e._animateScroll(a,i)}))}},t.prototype._scrollDown=function(t,i,e){var r=(e-t)/i,n=r>1?r:1;this.element.scrollTop=t+n},t.prototype._scrollUp=function(t,i,e){var r=(t-e)/i,n=r>1?r:1;this.element.scrollTop=t-n},t.prototype._animateScroll=function(t,i){var e=this,n=r.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;i>0?(this._scrollDown(s,n,t),s<t&&(o=!0)):(this._scrollUp(s,n,t),s>t&&(o=!0)),o&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}();i.default=n},730:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0});var r=e(799),n=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(t.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.value=t},enumerable:!1,configurable:!0}),t.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},t.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},t.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},t.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},t.prototype.triggerEvent=function(t,i){(0,r.dispatchEvent)(this.element,t,i)},t}();i.default=n},541:function(t,i,e){var r,n=this&&this.__extends||(r=function(t,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},r(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=function(t){function i(i){var e=i.element,r=i.classNames,n=i.delimiter,s=t.call(this,{element:e,classNames:r})||this;return s.delimiter=n,s}return n(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this.element.value},set:function(t){this.element.setAttribute("value",t),this.element.value=t},enumerable:!1,configurable:!0}),i}(s(e(730)).default);i.default=o},982:function(t,i,e){var r,n=this&&this.__extends||(r=function(t,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},r(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var o=function(t){function i(i){var e=i.element,r=i.classNames,n=i.template,s=t.call(this,{element:e,classNames:r})||this;return s.template=n,s}return n(i,t),Object.defineProperty(i.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return r=t,n=i.template(r),void e.appendChild(n);var r,n})),this.appendDocFragment(e)},enumerable:!1,configurable:!0}),i.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},i}(s(e(730)).default);i.default=o},883:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.SCROLLING_SPEED=i.SELECT_MULTIPLE_TYPE=i.SELECT_ONE_TYPE=i.TEXT_TYPE=i.KEY_CODES=i.ACTION_TYPES=i.EVENTS=void 0,i.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},i.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},i.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},i.TEXT_TYPE="text",i.SELECT_ONE_TYPE="select-one",i.SELECT_MULTIPLE_TYPE="select-multiple",i.SCROLLING_SPEED=4},789:function(t,i,e){Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CONFIG=i.DEFAULT_CLASSNAMES=void 0;var r=e(799);i.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},i.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter: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(t){return'Press Enter to add <b>"'.concat((0,r.sanitise)(t),'"</b>')},maxItemText:function(t){return"Only ".concat(t," values can be added")},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:i.DEFAULT_CLASSNAMES}},18:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},978:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},948:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},359:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},285:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},533:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},187:function(t,i,e){var r=this&&this.__createBinding||(Object.create?function(t,i,e,r){void 0===r&&(r=e);var n=Object.getOwnPropertyDescriptor(i,e);n&&!("get"in n?!i.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return i[e]}}),Object.defineProperty(t,r,n)}:function(t,i,e,r){void 0===r&&(r=e),t[r]=i[e]}),n=this&&this.__exportStar||function(t,i){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(i,e)||r(i,t,e)};Object.defineProperty(i,"__esModule",{value:!0}),n(e(18),i),n(e(978),i),n(e(948),i),n(e(359),i),n(e(285),i),n(e(533),i),n(e(287),i),n(e(132),i),n(e(837),i),n(e(598),i),n(e(369),i),n(e(37),i),n(e(47),i),n(e(923),i),n(e(876),i)},287:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},132:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},837:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},598:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},37:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},369:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},47:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},923:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},876:function(t,i){Object.defineProperty(i,"__esModule",{value:!0})},799:function(t,i){var e;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(t,i){return Math.floor(Math.random()*(i-t)+t)},i.generateChars=function(t){return Array.from({length:t},(function(){return(0,i.getRandomNumber)(0,36).toString(36)})).join("")},i.generateId=function(t,e){var r=t.id||t.name&&"".concat(t.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),"".concat(e,"-").concat(r)},i.getType=function(t){return Object.prototype.toString.call(t).slice(8,-1)},i.isType=function(t,e){return null!=e&&(0,i.getType)(e)===t},i.wrap=function(t,i){return void 0===i&&(i=document.createElement("div")),t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i)),i.appendChild(t)},i.getAdjacentEl=function(t,i,e){void 0===e&&(e=1);for(var r="".concat(e>0?"next":"previous","ElementSibling"),n=t[r];n;){if(n.matches(i))return n;n=n[r]}return n},i.isScrolledIntoView=function(t,i,e){return void 0===e&&(e=1),!!t&&(e>0?i.scrollTop+i.offsetHeight>=t.offsetTop+t.offsetHeight:t.offsetTop>=i.scrollTop)},i.sanitise=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},i.strToEl=(e=document.createElement("div"),function(t){var i=t.trim();e.innerHTML=i;for(var r=e.children[0];e.firstChild;)e.removeChild(e.firstChild);return r}),i.sortByAlpha=function(t,i){var e=t.value,r=t.label,n=void 0===r?e:r,s=i.value,o=i.label,a=void 0===o?s:o;return n.localeCompare(a,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(t,i){var e=t.score,r=void 0===e?0:e,n=i.score;return r-(void 0===n?0:n)},i.dispatchEvent=function(t,i,e){void 0===e&&(e=null);var r=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});return t.dispatchEvent(r)},i.existsInArray=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))},i.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},i.diff=function(t,i){var e=Object.keys(t).sort(),r=Object.keys(i).sort();return e.filter((function(t){return r.indexOf(t)<0}))},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(i){return t}return{}}},273:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_CHOICE":var n=r,s={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 e(e([],t,!0),[s],!1);case"ADD_ITEM":var o=r;return o.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(o.choiceId),10)&&(i.selected=!0),i})):t;case"REMOVE_ITEM":var a=r;return a.choiceId&&a.choiceId>-1?t.map((function(t){var i=t;return i.id===parseInt("".concat(a.choiceId),10)&&(i.selected=!1),i})):t;case"FILTER_CHOICES":var l=r;return t.map((function(t){var i=t;return i.active=l.results.some((function(t){var e=t.item,r=t.score;return e.id===i.id&&(i.score=r,!0)})),i}));case"ACTIVATE_CHOICES":var c=r;return t.map((function(t){var i=t;return i.active=c.active,i}));case"CLEAR_CHOICES":return i.defaultState;default:return t}}},871:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_GROUP":var n=r;return e(e([],t,!0),[{id:n.id,value:n.value,active:n.active,disabled:n.disabled}],!1);case"CLEAR_CHOICES":return[];default:return t}}},655:function(t,i,e){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0;var n=e(791),s=r(e(52)),o=r(e(871)),a=r(e(273)),l=r(e(502)),c=e(799);i.defaultState={groups:[],items:[],choices:[],loading:!1};var h=(0,n.combineReducers)({items:s.default,groups:o.default,choices:a.default,loading:l.default});i.default=function(t,e){var r=t;if("CLEAR_ALL"===e.type)r=i.defaultState;else if("RESET_TO"===e.type)return(0,c.cloneObject)(e.state);return h(r,e)}},52:function(t,i){var e=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=[],i.default=function(t,r){switch(void 0===t&&(t=i.defaultState),void 0===r&&(r={}),r.type){case"ADD_ITEM":var n=r;return e(e([],t,!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(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var i=t;return i.id===r.id&&(i.active=!1),i}));case"HIGHLIGHT_ITEM":var s=r;return t.map((function(t){var i=t;return i.id===s.id&&(i.highlighted=s.highlighted),i}));default:return t}}},502:function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(t,e){return void 0===t&&(t=i.defaultState),void 0===e&&(e={}),"SET_IS_LOADING"===e.type?e.isLoading:t}},744:function(t,i,e){var r=this&&this.__spreadArray||function(t,i,e){if(e||2===arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(i,"__esModule",{value:!0});var s=e(791),o=n(e(655)),a=function(){function t(){this._store=(0,s.createStore)(o.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}return t.prototype.subscribe=function(t){this._store.subscribe(t)},t.prototype.dispatch=function(t){this._store.dispatch(t)},Object.defineProperty(t.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this.items.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedActiveItems",{get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choices.filter((function(t){return!0===t.active}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectableChoices",{get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderChoice",{get:function(){return r([],this.choices,!0).reverse().find((function(t){return!0===t.placeholder}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroups",{get:function(){var t=this.groups,i=this.choices;return t.filter((function(t){var e=!0===t.active&&!1===t.disabled,r=i.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&r}),[])},enumerable:!1,configurable:!0}),t.prototype.isLoading=function(){return this.state.loading},t.prototype.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},t.prototype.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},t}();i.default=a},686:function(t,i){Object.defineProperty(i,"__esModule",{value:!0});var e={containerOuter:function(t,i,e,r,n,s,o){var a=t.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:a});return l.dataset.type=s,i&&(l.dir=i),r&&(l.tabIndex=0),e&&(l.setAttribute("role",n?"combobox":"listbox"),n&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),o&&l.setAttribute("aria-labelledby",o),l},containerInner:function(t){var i=t.classNames.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.classNames,r=e.list,n=e.listSingle,s=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(i?n:s)})},placeholder:function(t,i){var e,r=t.allowHTML,n=t.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:n})[r?"innerHTML":"innerText"]=i,e))},item:function(t,i,e){var r,n,s=t.allowHTML,o=t.classNames,a=o.item,l=o.button,c=o.highlightedState,h=o.itemSelectable,f=o.placeholder,u=i.id,p=i.value,d=i.label,m=i.customProperties,g=i.active,v=i.disabled,w=i.highlighted,b=i.placeholder,y=Object.assign(document.createElement("div"),((r={className:a})[s?"innerHTML":"innerText"]=d,r));if(Object.assign(y.dataset,{item:"",id:u,value:p,customProperties:m}),g&&y.setAttribute("aria-selected","true"),v&&y.setAttribute("aria-disabled","true"),b&&y.classList.add(f),y.classList.add(w?c:h),e){v&&y.classList.remove(h),y.dataset.deletable="";var x="Remove item",k=Object.assign(document.createElement("button"),((n={type:"button",className:l})[s?"innerHTML":"innerText"]=x,n));k.setAttribute("aria-label","".concat(x,": '").concat(p,"'")),k.dataset.button="",y.appendChild(k)}return y},choiceList:function(t,i){var e=t.classNames.list,r=Object.assign(document.createElement("div"),{className:e});return i||r.setAttribute("aria-multiselectable","true"),r.setAttribute("role","listbox"),r},choiceGroup:function(t,i){var e,r=t.allowHTML,n=t.classNames,s=n.group,o=n.groupHeading,a=n.itemDisabled,l=i.id,c=i.value,h=i.disabled,f=Object.assign(document.createElement("div"),{className:"".concat(s," ").concat(h?a:"")});return f.setAttribute("role","group"),Object.assign(f.dataset,{group:"",id:l,value:c}),h&&f.setAttribute("aria-disabled","true"),f.appendChild(Object.assign(document.createElement("div"),((e={className:o})[r?"innerHTML":"innerText"]=c,e))),f},choice:function(t,i,e){var r,n=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,l=s.itemSelectable,c=s.selectedState,h=s.itemDisabled,f=s.placeholder,u=i.id,p=i.value,d=i.label,m=i.groupId,g=i.elementId,v=i.disabled,w=i.selected,b=i.placeholder,y=Object.assign(document.createElement("div"),((r={id:g})[n?"innerHTML":"innerText"]=d,r.className="".concat(o," ").concat(a),r));return w&&y.classList.add(c),b&&y.classList.add(f),y.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(y.dataset,{choice:"",id:u,value:p,selectText:e}),v?(y.classList.add(h),y.dataset.choiceDisabled="",y.setAttribute("aria-disabled","true")):(y.classList.add(l),y.dataset.choiceSelectable=""),y},input:function(t,i){var e=t.classNames,r=e.input,n=e.inputCloned,s=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(r," ").concat(n),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",i),s},dropdown:function(t){var i=t.classNames,e=i.list,r=i.listDropdown,n=document.createElement("div");return n.classList.add(e,r),n.setAttribute("aria-expanded","false"),n},notice:function(t,i,e){var r,n=t.allowHTML,s=t.classNames,o=s.item,a=s.itemChoice,l=s.noResults,c=s.noChoices;void 0===e&&(e="");var h=[o,a];return"no-choices"===e?h.push(c):"no-results"===e&&h.push(l),Object.assign(document.createElement("div"),((r={})[n?"innerHTML":"innerText"]=i,r.className=h.join(" "),r))},option:function(t){var i=t.label,e=t.value,r=t.customProperties,n=t.active,s=t.disabled,o=new Option(i,e,!1,n);return r&&(o.dataset.customProperties="".concat(r)),o.disabled=!!s,o}};i.default=e},996:function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,i){return!1!==i.clone&&i.isMergeableObject(t)?a((e=t,Array.isArray(e)?[]:{}),t,i):t;var e}function n(t,i,e){return t.concat(i).map((function(t){return r(t,e)}))}function s(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function o(t,i){try{return i in t}catch(t){return!1}}function a(t,e,l){(l=l||{}).arrayMerge=l.arrayMerge||n,l.isMergeableObject=l.isMergeableObject||i,l.cloneUnlessOtherwiseSpecified=r;var c=Array.isArray(e);return c===Array.isArray(t)?c?l.arrayMerge(t,e,l):function(t,i,e){var n={};return e.isMergeableObject(t)&&s(t).forEach((function(i){n[i]=r(t[i],e)})),s(i).forEach((function(s){(function(t,i){return o(t,i)&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))})(t,s)||(o(t,s)&&e.isMergeableObject(i[s])?n[s]=function(t,i){if(!i.customMerge)return a;var e=i.customMerge(t);return"function"==typeof e?e:a}(s,e)(t[s],i[s],e):n[s]=r(i[s],e))})),n}(t,e,l):r(e,l)}a.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return a(t,e,i)}),{})};var l=a;t.exports=l},221:function(t,i,e){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function n(t){return"string"==typeof t}function s(t){return"number"==typeof t}function o(t){return"object"==typeof t}function a(t){return null!=t}function l(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}e.r(i),e.d(i,{default:function(){return N}});const h=Object.prototype.hasOwnProperty;class f{constructor(t){this._keys=[],this._keyMap={};let i=0;t.forEach((t=>{let e=u(t);i+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,i+=e.weight})),this._keys.forEach((t=>{t.weight/=i}))}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function u(t){let i=null,e=null,s=null,o=1,a=null;if(n(t)||r(t))s=t,i=p(t),e=d(t);else{if(!h.call(t,"name"))throw new Error("Missing name property in key");const r=t.name;if(s=r,h.call(t,"weight")&&(o=t.weight,o<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(r));i=p(r),e=d(r),a=t.getFn}return{path:i,id:e,weight:o,src:s,getFn:a}}function p(t){return r(t)?t:t.split(".")}function d(t){return r(t)?t.join("."):t}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,i)=>t.score===i.score?t.idx<i.idx?-1:1:t.score<i.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,i){let e=[],l=!1;const h=(t,i,f)=>{if(a(t))if(i[f]){const u=t[i[f]];if(!a(u))return;if(f===i.length-1&&(n(u)||s(u)||function(t){return!0===t||!1===t||function(t){return o(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}(u)))e.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let i=t+"";return"0"==i&&1/t==-1/0?"-0":i}(t)}(u));else if(r(u)){l=!0;for(let t=0,e=u.length;t<e;t+=1)h(u[t],i,f+1)}else i.length&&h(u,i,f+1)}else e.push(t)};return h(t,n(i)?i.split("."):i,0),l?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const g=/[^ ]+/g;class v{constructor({getFn:t=m.getFn,fieldNormWeight:i=m.fieldNormWeight}={}){this.norm=function(t=1,i=3){const e=new Map,r=Math.pow(10,i);return{get(i){const n=i.match(g).length;if(e.has(n))return e.get(n);const s=1/Math.pow(n,.5*t),o=parseFloat(Math.round(s*r)/r);return e.set(n,o),o},clear(){e.clear()}}}(i,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach(((t,i)=>{this._keysMap[t.id]=i}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,n(this.docs[0])?this.docs.forEach(((t,i)=>{this._addString(t,i)})):this.docs.forEach(((t,i)=>{this._addObject(t,i)})),this.norm.clear())}add(t){const i=this.size();n(t)?this._addString(t,i):this._addObject(t,i)}removeAt(t){this.records.splice(t,1);for(let i=t,e=this.size();i<e;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(t,i){return t[this._keysMap[i]]}size(){return this.records.length}_addString(t,i){if(!a(t)||l(t))return;let e={v:t,i,n:this.norm.get(t)};this.records.push(e)}_addObject(t,i){let e={i,$:{}};this.keys.forEach(((i,s)=>{let o=i.getFn?i.getFn(t):this.getFn(t,i.path);if(a(o))if(r(o)){let t=[];const i=[{nestedArrIndex:-1,value:o}];for(;i.length;){const{nestedArrIndex:e,value:s}=i.pop();if(a(s))if(n(s)&&!l(s)){let i={v:s,i:e,n:this.norm.get(s)};t.push(i)}else r(s)&&s.forEach(((t,e)=>{i.push({nestedArrIndex:e,value:t})}))}e.$[s]=t}else if(n(o)&&!l(o)){let t={v:o,n:this.norm.get(o)};e.$[s]=t}})),this.records.push(e)}toJSON(){return{keys:this.keys,records:this.records}}}function w(t,i,{getFn:e=m.getFn,fieldNormWeight:r=m.fieldNormWeight}={}){const n=new v({getFn:e,fieldNormWeight:r});return n.setKeys(t.map(u)),n.setSources(i),n.create(),n}function b(t,{errors:i=0,currentLocation:e=0,expectedLocation:r=0,distance:n=m.distance,ignoreLocation:s=m.ignoreLocation}={}){const o=i/t.length;if(s)return o;const a=Math.abs(r-e);return n?o+a/n:a?1:o}const y=32;function x(t){let i={};for(let e=0,r=t.length;e<r;e+=1){const n=t.charAt(e);i[n]=(i[n]||0)|1<<r-e-1}return i}class k{constructor(t,{location:i=m.location,threshold:e=m.threshold,distance:r=m.distance,includeMatches:n=m.includeMatches,findAllMatches:s=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:a=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){if(this.options={location:i,threshold:e,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:l},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const c=(t,i)=>{this.chunks.push({pattern:t,alphabet:x(t),startIndex:i})},h=this.pattern.length;if(h>y){let t=0;const i=h%y,e=h-i;for(;t<e;)c(this.pattern.substr(t,y),t),t+=y;if(i){const t=h-y;c(this.pattern.substr(t),t)}}else c(this.pattern,0)}searchIn(t){const{isCaseSensitive:i,includeMatches:e}=this.options;if(i||(t=t.toLowerCase()),this.pattern===t){let i={isMatch:!0,score:0};return e&&(i.indices=[[0,t.length-1]]),i}const{location:r,distance:n,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:l}=this.options;let c=[],h=0,f=!1;this.chunks.forEach((({pattern:i,alphabet:u,startIndex:p})=>{const{isMatch:d,score:g,indices:v}=function(t,i,e,{location:r=m.location,distance:n=m.distance,threshold:s=m.threshold,findAllMatches:o=m.findAllMatches,minMatchCharLength:a=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:c=m.ignoreLocation}={}){if(i.length>y)throw new Error("Pattern length exceeds max of 32.");const h=i.length,f=t.length,u=Math.max(0,Math.min(r,f));let p=s,d=u;const g=a>1||l,v=g?Array(f):[];let w;for(;(w=t.indexOf(i,d))>-1;){let t=b(i,{currentLocation:w,expectedLocation:u,distance:n,ignoreLocation:c});if(p=Math.min(t,p),d=w+h,g){let t=0;for(;t<h;)v[w+t]=1,t+=1}}d=-1;let x=[],k=1,A=h+f;const _=1<<h-1;for(let m=0;m<h;m+=1){let r=0,s=A;for(;r<s;)b(i,{errors:m,currentLocation:u+s,expectedLocation:u,distance:n,ignoreLocation:c})<=p?r=s:A=s,s=Math.floor((A-r)/2+r);A=s;let a=Math.max(1,u-s+1),l=o?f:Math.min(u+s,f)+h,w=Array(l+2);w[l+1]=(1<<m)-1;for(let o=l;o>=a;o-=1){let r=o-1,s=e[t.charAt(r)];if(g&&(v[r]=+!!s),w[o]=(w[o+1]<<1|1)&s,m&&(w[o]|=(x[o+1]|x[o])<<1|1|x[o+1]),w[o]&_&&(k=b(i,{errors:m,currentLocation:r,expectedLocation:u,distance:n,ignoreLocation:c}),k<=p)){if(p=k,d=r,d<=u)break;a=Math.max(1,2*u-d)}}if(b(i,{errors:m+1,currentLocation:u,expectedLocation:u,distance:n,ignoreLocation:c})>p)break;x=w}const M={isMatch:d>=0,score:Math.max(.001,k)};if(g){const t=function(t=[],i=m.minMatchCharLength){let e=[],r=-1,n=-1,s=0;for(let o=t.length;s<o;s+=1){let o=t[s];o&&-1===r?r=s:o||-1===r||(n=s-1,n-r+1>=i&&e.push([r,n]),r=-1)}return t[s-1]&&s-r>=i&&e.push([r,s-1]),e}(v,a);t.length?l&&(M.indices=t):M.isMatch=!1}return M}(t,i,u,{location:r+p,distance:n,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:e,ignoreLocation:l});d&&(f=!0),h+=g,d&&v&&(c=[...c,...v])}));let u={isMatch:f,score:f?h/this.chunks.length:1};return f&&e&&(u.indices=c),u}}class A{constructor(t){this.pattern=t}static isMultiMatch(t){return _(t,this.multiRegex)}static isSingleMatch(t){return _(t,this.singleRegex)}search(){}}function _(t,i){const e=t.match(i);return e?e[1]:null}class M extends A{constructor(t,{location:i=m.location,threshold:e=m.threshold,distance:r=m.distance,includeMatches:n=m.includeMatches,findAllMatches:s=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,isCaseSensitive:a=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(t),this._bitapSearch=new k(t,{location:i,threshold:e,distance:r,includeMatches:n,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class z extends A{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let i,e=0;const r=[],n=this.pattern.length;for(;(i=t.indexOf(this.pattern,e))>-1;)e=i+n,r.push([i,e-1]);const s=!!r.length;return{isMatch:s,score:s?0:1,indices:r}}}const L=[class extends A{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const i=t===this.pattern;return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},z,class extends A{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const i=t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,this.pattern.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const i=!t.startsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const i=!t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const i=t.endsWith(this.pattern);return{isMatch:i,score:i?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends A{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=-1===t.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}},M],C=L.length,E=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,P=new Set([M.type,z.type]);const O=[];function j(t,i){for(let e=0,r=O.length;e<r;e+=1){let r=O[e];if(r.condition(t,i))return new r(t,i)}return new k(t,i)}const S="$and",T=t=>!(!t.$and&&!t.$or),I=t=>({[S]:Object.keys(t).map((i=>({[i]:t[i]})))});function B(t,i,{auto:e=!0}={}){const s=t=>{let a=Object.keys(t);const l=(t=>!!t.$path)(t);if(!l&&a.length>1&&!T(t))return s(I(t));if((t=>!r(t)&&o(t)&&!T(t))(t)){const r=l?t.$path:a[0],s=l?t.$val:t[r];if(!n(s))throw new Error((t=>`Invalid value for key ${t}`)(r));const o={keyId:d(r),pattern:s};return e&&(o.searcher=j(s,i)),o}let c={children:[],operator:a[0]};return a.forEach((i=>{const e=t[i];r(e)&&e.forEach((t=>{c.children.push(s(t))}))})),c};return T(t)||(t=I(t)),s(t)}function F(t,i){const e=t.matches;i.matches=[],a(e)&&e.forEach((t=>{if(!a(t.indices)||!t.indices.length)return;const{indices:e,value:r}=t;let n={indices:e,value:r};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),i.matches.push(n)}))}function R(t,i){i.score=t.score}class N{constructor(t,i={},e){this.options={...m,...i},this._keyStore=new f(this.options.keys),this.setCollection(t,e)}setCollection(t,i){if(this._docs=t,i&&!(i instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=i||w(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){a(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=(()=>!1)){const i=[];for(let e=0,r=this._docs.length;e<r;e+=1){const n=this._docs[e];t(n,e)&&(this.removeAt(e),e-=1,r-=1,i.push(n))}return i}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:i=-1}={}){const{includeMatches:e,includeScore:r,shouldSort:o,sortFn:a,ignoreFieldNorm:l}=this.options;let c=n(t)?n(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:i=m.ignoreFieldNorm}){t.forEach((t=>{let e=1;t.matches.forEach((({key:t,norm:r,score:n})=>{const s=t?t.weight:null;e*=Math.pow(0===n&&s?Number.EPSILON:n,(s||1)*(i?1:r))})),t.score=e}))}(c,{ignoreFieldNorm:l}),o&&c.sort(a),s(i)&&i>-1&&(c=c.slice(0,i)),function(t,i,{includeMatches:e=m.includeMatches,includeScore:r=m.includeScore}={}){const n=[];return e&&n.push(F),r&&n.push(R),t.map((t=>{const{idx:e}=t,r={item:i[e],refIndex:e};return n.length&&n.forEach((i=>{i(t,r)})),r}))}(c,this._docs,{includeMatches:e,includeScore:r})}_searchStringList(t){const i=j(t,this.options),{records:e}=this._myIndex,r=[];return e.forEach((({v:t,i:e,n})=>{if(!a(t))return;const{isMatch:s,score:o,indices:l}=i.searchIn(t);s&&r.push({item:t,idx:e,matches:[{score:o,value:t,norm:n,indices:l}]})})),r}_searchLogical(t){const i=B(t,this.options),e=(t,i,r)=>{if(!t.children){const{keyId:e,searcher:n}=t,s=this._findMatches({key:this._keyStore.get(e),value:this._myIndex.getValueForItemAtKeyId(i,e),searcher:n});return s&&s.length?[{idx:r,item:i,matches:s}]:[]}const n=[];for(let s=0,o=t.children.length;s<o;s+=1){const o=t.children[s],a=e(o,i,r);if(a.length)n.push(...a);else if(t.operator===S)return[]}return n},r=this._myIndex.records,n={},s=[];return r.forEach((({$:t,i:r})=>{if(a(t)){let o=e(i,t,r);o.length&&(n[r]||(n[r]={idx:r,item:t,matches:[]},s.push(n[r])),o.forEach((({matches:t})=>{n[r].matches.push(...t)})))}})),s}_searchObjectList(t){const i=j(t,this.options),{keys:e,records:r}=this._myIndex,n=[];return r.forEach((({$:t,i:r})=>{if(!a(t))return;let s=[];e.forEach(((e,r)=>{s.push(...this._findMatches({key:e,value:t[r],searcher:i}))})),s.length&&n.push({idx:r,item:t,matches:s})})),n}_findMatches({key:t,value:i,searcher:e}){if(!a(i))return[];let n=[];if(r(i))i.forEach((({v:i,i:r,n:s})=>{if(!a(i))return;const{isMatch:o,score:l,indices:c}=e.searchIn(i);o&&n.push({score:l,key:t,value:i,idx:r,norm:s,indices:c})}));else{const{v:r,n:s}=i,{isMatch:o,score:a,indices:l}=e.searchIn(r);o&&n.push({score:a,key:t,value:r,norm:s,indices:l})}return n}}N.version="6.6.2",N.createIndex=w,N.parseIndex=function(t,{getFn:i=m.getFn,fieldNormWeight:e=m.fieldNormWeight}={}){const{keys:r,records:n}=t,s=new v({getFn:i,fieldNormWeight:e});return s.setKeys(r),s.setIndexRecords(n),s},N.config=m,N.parseQuery=B,function(...t){O.push(...t)}(class{constructor(t,{isCaseSensitive:i=m.isCaseSensitive,includeMatches:e=m.includeMatches,minMatchCharLength:r=m.minMatchCharLength,ignoreLocation:n=m.ignoreLocation,findAllMatches:s=m.findAllMatches,location:o=m.location,threshold:a=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:i,includeMatches:e,minMatchCharLength:r,findAllMatches:s,ignoreLocation:n,location:o,threshold:a,distance:l},this.pattern=i?t:t.toLowerCase(),this.query=function(t,i={}){return t.split("|").map((t=>{let e=t.trim().split(E).filter((t=>t&&!!t.trim())),r=[];for(let n=0,s=e.length;n<s;n+=1){const t=e[n];let s=!1,o=-1;for(;!s&&++o<C;){const e=L[o];let n=e.isMultiMatch(t);n&&(r.push(new e(n,i)),s=!0)}if(!s)for(o=-1;++o<C;){const e=L[o];let n=e.isSingleMatch(t);if(n){r.push(new e(n,i));break}}}return r}))}(this.pattern,this.options)}static condition(t,i){return i.useExtendedSearch}searchIn(t){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:e,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let n=0,s=[],o=0;for(let a=0,l=i.length;a<l;a+=1){const r=i[a];s.length=0,n=0;for(let i=0,a=r.length;i<a;i+=1){const a=r[i],{isMatch:l,indices:c,score:h}=a.search(t);if(!l){o=0,n=0,s.length=0;break}if(n+=1,o+=h,e){const t=a.constructor.type;P.has(t)?s=[...s,...c]:s.push(c)}}if(n){let t={isMatch:!0,score:o/n};return e&&(t.indices=s),t}}return{isMatch:!1,score:1}}})},791:function(t,i,e){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,i,e){return(i=function(t){var i=function(t,i){if("object"!==r(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,i);if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===r(i)?i:String(i)}(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function s(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?s(Object(e),!0).forEach((function(i){n(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function a(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}e.r(i),e.d(i,{__DO_NOT_USE__ActionTypes:function(){return h},applyMiddleware:function(){return w},bindActionCreators:function(){return g},combineReducers:function(){return d},compose:function(){return v},createStore:function(){return u},legacy_createStore:function(){return p}});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},h={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function f(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function u(t,i,e){var r;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error(a(1));return e(u)(t,i)}if("function"!=typeof t)throw new Error(a(2));var n=t,s=i,o=[],c=o,p=!1;function d(){c===o&&(c=o.slice())}function m(){if(p)throw new Error(a(3));return s}function g(t){if("function"!=typeof t)throw new Error(a(4));if(p)throw new Error(a(5));var i=!0;return d(),c.push(t),function(){if(i){if(p)throw new Error(a(6));i=!1,d();var e=c.indexOf(t);c.splice(e,1),o=null}}}function v(t){if(!f(t))throw new Error(a(7));if(void 0===t.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,s=n(s,t)}finally{p=!1}for(var i=o=c,e=0;e<i.length;e++)(0,i[e])();return t}function w(t){if("function"!=typeof t)throw new Error(a(10));n=t,v({type:h.REPLACE})}function b(){var t,i=g;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(a(11));function e(){t.next&&t.next(m())}return e(),{unsubscribe:i(e)}}})[l]=function(){return this},t}return v({type:h.INIT}),(r={dispatch:v,subscribe:g,getState:m,replaceReducer:w})[l]=b,r}var p=u;function d(t){for(var i=Object.keys(t),e={},r=0;r<i.length;r++){var n=i[r];"function"==typeof t[n]&&(e[n]=t[n])}var s,o=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:h.INIT}))throw new Error(a(12));if(void 0===e(void 0,{type:h.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(e)}catch(t){s=t}return function(t,i){if(void 0===t&&(t={}),s)throw s;for(var r=!1,n={},l=0;l<o.length;l++){var c=o[l],h=e[c],f=t[c],u=h(f,i);if(void 0===u)throw new Error(a(14));n[c]=u,r=r||u!==f}return(r=r||o.length!==Object.keys(t).length)?n:t}}function m(t,i){return function(){return i(t.apply(this,arguments))}}function g(t,i){if("function"==typeof t)return m(t,i);if("object"!=typeof t||null===t)throw new Error(a(16));var e={};for(var r in t){var n=t[r];"function"==typeof n&&(e[r]=m(n,i))}return e}function v(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return 0===i.length?function(t){return t}:1===i.length?i[0]:i.reduce((function(t,i){return function(){return t(i.apply(void 0,arguments))}}))}function w(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return function(t){return function(){var e=t.apply(void 0,arguments),r=function(){throw new Error(a(15))},n={getState:e.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=i.map((function(t){return t(n)}));return r=v.apply(void 0,s)(e.dispatch),o(o({},e),{},{dispatch:r})}}}}},i={};function e(r){var n=i[r];if(void 0!==n)return n.exports;var s=i[r]={exports:{}};return t[r].call(s.exports,s,s.exports,e),s.exports}e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,{a:i}),i},e.d=function(t,i){for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r,n,s={};r=e(373),n=e.n(r),e(187),e(883),e(789),e(686),s.default=n(),window.Choices=s.default}();const 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}';const N=class{constructor(t){e(this,t);this.fontFamily="Roboto";this.filterType=undefined;this.filterName=undefined;this.filterPlaceholder="";this.filterNameProperty=undefined;this.segment=undefined}onResetFilter(){this.resetFilter()}handleFilter(t,i){const e=[...w[this.filterType]];e.find((t=>t.id===i.id)).selected=!e.find((t=>t.id===i.id)).selected;w[this.filterType]=e;w[this.segment]=0;if(w.mode==="treks"){j.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTreks=I()}else if(w.mode==="touristicContents"){S.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTouristicContents=B()}else if(w.mode==="touristicEvents"){T.filter((t=>t.segment===this.segment)).forEach((t=>{w[this.segment]+=w[t.property].filter((t=>t.selected)).length}));w.currentTouristicEvents=F()}}resetFilter(){if(this.choices){this.choices.removeActiveItems()}i(this.filterRef)}componentDidLoad(){if(this.choicesRef){this.choices=new Choices(this.choicesRef,{removeItemButton:true,choices:w[this.filterType].map((t=>({value:t.id,label:t[this.filterNameProperty],selected:t.selected}))),placeholder:true,placeholderValue:this.filterPlaceholder,noResultsText:"",noChoicesText:"",itemSelectText:""});const t=this.el.shadowRoot.querySelector(".choices");t.addEventListener("click",(t=>{t.stopPropagation();const i=this.el.shadowRoot.querySelector(".choices__list.choices__list--dropdown");if(!i.classList.contains("is-active")){const t=this.el.shadowRoot.querySelector(".choices");t.classList.add("is-focused");t.classList.add("is-open");i.classList.add("is-active");i.setAttribute("aria-expanded","true")}}),false);t.addEventListener("change",(t=>{this.handleFilter(null,w[this.filterType].find((i=>i.id===t.detail.value)))}),false)}}render(){return r(n,{ref:t=>this.filterRef=t,style:{"--font-family":this.fontFamily}},r("div",{class:"filter-name display-large"},this.filterName),r("div",{class:"filter-button-container"},w[this.filterType].length>9?r("select",{multiple:true,ref:t=>this.choicesRef=t}):w[this.filterType].map((t=>r("button",{onClick:i=>this.handleFilter(i,t),class:t.selected?"selected-filter-button":"filter-button"},t.selected&&r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"check"),t[this.filterNameProperty])))))}get el(){return s(this)}};N.style=R;const D='.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)}';const Y=class{constructor(t){e(this,t);this.resetFilter=o(this,"resetFilter",7);this.selectedSegment="selectedActivitiesFilters";this.handleFilters=undefined;this.fontFamily="Roboto"}handleEraseTreksFilters(){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=I();this.resetFilter.emit()}handleOkTreksFilters(){this.handleFilters()}handleSelectedSegment(t){this.selectedSegment=t}handleSegment(t){if(w.mode==="treks"){return j.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}else if(w.mode==="touristicContents"){return S.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}else if(w.mode==="touristicEvents"){return T.filter((i=>i.segment===t)).some((t=>w[t.property]&&w[t.property].length>0))}}handleEraseTouristicContentsFilters(){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=B();this.resetFilter.emit()}handleOkTouristicContentsFilters(){this.handleFilters()}handleEraseTouristicEventsFilters(){T.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=F();this.resetFilter.emit()}handleOkTouristicEventsFilters(){this.handleFilters()}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"options-container"},r("div",{class:"filters-container"},w.mode==="treks"&&r("div",{class:"filters-treks-container"},r("div",{class:"filters-options-container"},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTreksFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTreksFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].home.segment.treks," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedThemesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedThemesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedThemesFilters")},l[w.language].themes," ",w.selectedThemesFilters!==0&&`(${w.selectedThemesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"treks-activities-segment-container",class:"segment-container"},w["practices"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].practice,filterType:"practices",filterNameProperty:"name",segment:"selectedActivitiesFilters",filterPlaceholder:l[w.language].placeholderPractices})),w["difficulties"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].difficulty,filterType:"difficulties",filterNameProperty:"label",segment:"selectedActivitiesFilters"})),w["durations"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].duration,filterType:"durations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["lengths"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].length,filterType:"lengths",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["elevations"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].elevation,filterType:"elevations",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["routes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].routes,filterType:"routes",filterNameProperty:"route",segment:"selectedActivitiesFilters"})),w["accessibilities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].accessibility,filterType:"accessibilities",filterNameProperty:"name",segment:"selectedActivitiesFilters"})),w["labels"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].activities,filterType:"labels",filterNameProperty:"name",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedThemesFilters"&&r("div",{key:"treks-themes-segment-container",class:"segment-container"},w["themes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].themes,filterPlaceholder:l[w.language].placeholderThemes,filterType:"themes",filterNameProperty:"label",segment:"selectedThemesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"treks-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),w.mode==="touristicContents"&&r("div",{class:"filters-touristic-contents-container"},r("div",{class:"filters-options-container"},w.touristicContentsWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicContentsFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicContentsFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].services," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},w["touristicContentCategories"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].category,filterType:"touristicContentCategories",filterNameProperty:"label",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"touristic-contents-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"}))))),w.mode==="touristicEvents"&&r("div",{class:"filters-touristic-events-container"},r("div",{class:"filters-options-container"},w.touristicEventsWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"filters-options-buttons-container"},r("button",{class:"filter-option-button",onClick:()=>this.handleEraseTouristicEventsFilters()},l[w.language].erase),r("button",{class:"filter-option-button",onClick:()=>this.handleOkTouristicEventsFilters()},l[w.language].ok))),r("div",{class:"segmented-buttons-container"},this.handleSegment("selectedActivitiesFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedActivitiesFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedActivitiesFilters")},l[w.language].services," ",w.selectedActivitiesFilters!==0&&`(${w.selectedActivitiesFilters})`),this.handleSegment("selectedLocationFilters")&&r("label",{class:`segment${this.selectedSegment==="selectedLocationFilters"?" selected-segment":""}`,onClick:()=>this.handleSelectedSegment("selectedLocationFilters")},l[w.language].location," ",w.selectedLocationFilters!==0&&`(${w.selectedLocationFilters})`)),r("div",{class:"filters-segment-container"},this.selectedSegment==="selectedActivitiesFilters"&&r("div",{key:"touristic-contents-activities-segment-container",class:"segment-container"},w["touristicEventTypes"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].type,filterPlaceholder:l[w.language].placeholderType,filterType:"touristicEventTypes",filterNameProperty:"type",segment:"selectedActivitiesFilters"}))),this.selectedSegment==="selectedLocationFilters"&&r("div",{key:"touristic-events-location-segment-container",class:"segment-container"},w["districts"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].districts,filterType:"districts",filterNameProperty:"name",segment:"selectedLocationFilters"})),w["cities"].length>0&&r("div",{class:"filter-container"},r("grw-filter",{fontFamily:this.fontFamily,filterName:l[w.language].crossedCities,filterPlaceholder:l[w.language].placeholderCrossedCities,filterType:"cities",filterNameProperty:"name",segment:"selectedLocationFilters"})))))),r("div",{onClick:()=>this.handleFilters(),class:"back-filters-container"})))}};Y.style=D;const G='.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}';const $=class{constructor(t){e(this,t);this.centerOnMap=o(this,"centerOnMap",7);this.displayShortDescription=true;this.showInformationDeskDescriptionButton=false;this.informationDesk=undefined}componentDidLoad(){if(this.descriptionRef){this.showInformationDeskDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}}handleInformationDeskDescription(){this.displayShortDescription=!this.displayShortDescription}handleCenterOnMap(){this.centerOnMap.emit({latitude:this.informationDesk.latitude,longitude:this.informationDesk.longitude})}render(){return r(n,null,this.informationDesk.photo_url&&r("div",{class:"information-desk-img"},r("img",{crossorigin:"anonymous",src:this.informationDesk.photo_url,loading:"lazy"})),r("div",{class:"information-desk-sub-container"},this.informationDesk.name&&r("div",{class:"information-desk-name"},this.informationDesk.name),this.informationDesk.latitude&&this.informationDesk.longitude&&r("button",{class:"center-on-map-button",onClick:()=>this.handleCenterOnMap()},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"location_searching"),l[w.language].centerOnMap),(this.informationDesk.postal_code||this.informationDesk.municipality||this.informationDesk.street)&&r("div",null,this.informationDesk.postal_code&&this.informationDesk.postal_code,this.informationDesk.municipality&&` ${this.informationDesk.municipality}`,this.informationDesk.street&&` ${this.informationDesk.street}`),this.informationDesk.phone&&r("div",{class:"phone-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"call"),r("a",{href:`tel:${this.informationDesk.phone}`},this.informationDesk.phone)),this.informationDesk.email&&r("div",{class:"mail-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"mail"),r("a",{href:`mailto:${this.informationDesk.email}`},this.informationDesk.email)),this.informationDesk.website&&r("div",{class:"link-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"link"),r("a",{href:`${this.informationDesk.website}`},this.informationDesk.website)),this.informationDesk.description&&r("div",{class:"information-desk-description-container"},r("div",{class:this.displayShortDescription?"information-desk-description-short":"information-desk-description",innerHTML:this.informationDesk.description,ref:t=>this.descriptionRef=t}),false)))}};$.style=G;const Z=".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)}}";const H=class{constructor(t){e(this,t);this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e"}render(){return r(n,{style:{"--color-primary-container":this.colorPrimaryContainer,"--color-on-primary-container":this.colorOnPrimaryContainer}},r("span",{class:"loader"}))}};H.style=Z;var U=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Q(t,i,e){return e={path:i,exports:{},require:function(t,i){return W()}},t(e,e.exports),e.exports}function V(t){if(t.__esModule)return t;var i=Object.defineProperty({},"__esModule",{value:true});Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:true,get:function(){return t[e]}})}));return i}function W(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var K=Q((function(t,i){
3
3
  /* @preserve
4
4
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
5
5
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
6
6
  */
7
- (function(t,e){e(i)})(H,(function(t){var i="1.9.4";function e(t){var i,e,r,n;for(e=1,r=arguments.length;e<r;e++){n=arguments[e];for(i in n){t[i]=n[i]}}return t}var r=Object.create||function(){function t(){}return function(i){t.prototype=i;return new t}}();function n(t,i){var e=Array.prototype.slice;if(t.bind){return t.bind.apply(t,e.call(arguments,1))}var r=e.call(arguments,2);return function(){return t.apply(i,r.length?r.concat(e.call(arguments)):arguments)}}var s=0;function o(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++s}return t._leaflet_id}function a(t,i,e){var r,n,s,o;o=function(){r=false;if(n){s.apply(e,n);n=false}};s=function(){if(r){n=arguments}else{t.apply(e,arguments);setTimeout(o,i);r=true}};return s}function l(t,i,e){var r=i[1],n=i[0],s=r-n;return t===r&&e?t:((t-n)%s+s)%s+n}function c(){return false}function h(t,i){if(i===false){return t}var e=Math.pow(10,i===undefined?6:i);return Math.round(t*e)/e}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return u(t).split(/\s+/)}function p(t,i){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?r(t.options):{}}for(var e in i){t.options[e]=i[e]}return t.options}function d(t,i,e){var r=[];for(var n in t){r.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]))}return(!i||i.indexOf("?")===-1?"?":"&")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,i){return t.replace(m,(function(t,e){var r=i[e];if(r===undefined){throw new Error("No value provided for variable "+t)}else if(typeof r==="function"){r=r(i)}return r}))}var v=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function w(t,i){for(var e=0;e<t.length;e++){if(t[e]===i){return e}}return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function k(t){var i=+new Date,e=Math.max(0,16-(i-x));x=i+e;return window.setTimeout(t,e)}var A=window.requestAnimationFrame||y("RequestAnimationFrame")||k;var _=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,i,e){if(e&&A===k){t.call(i)}else{return A.call(window,n(t,i))}}function z(t){if(t){_.call(window,t)}}var C={__proto__:null,extend:e,create:r,bind:n,get lastId(){return s},stamp:o,throttle:a,wrapNum:l,falseFn:c,formatNum:h,trim:u,splitWords:f,setOptions:p,getParamString:d,template:g,isArray:v,indexOf:w,emptyImageUrl:b,requestFn:A,cancelFn:_,requestAnimFrame:M,cancelAnimFrame:z};function E(){}E.extend=function(t){var i=function(){p(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var n=i.__super__=this.prototype;var s=r(n);s.constructor=i;i.prototype=s;for(var o in this){if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"){i[o]=this[o]}}if(t.statics){e(i,t.statics)}if(t.includes){P(t.includes);e.apply(null,[s].concat(t.includes))}e(s,t);delete s.statics;delete s.includes;if(s.options){s.options=n.options?r(n.options):{};e(s.options,t.options)}s._initHooks=[];s.callInitHooks=function(){if(this._initHooksCalled){return}if(n.callInitHooks){n.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,i=s._initHooks.length;t<i;t++){s._initHooks[t].call(this)}};return i};E.include=function(t){var i=this.prototype.options;e(this.prototype,t);if(t.options){this.prototype.options=i;this.mergeOptions(t.options)}return this};E.mergeOptions=function(t){e(this.prototype.options,t);return this};E.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1);var e=typeof t==="function"?t:function(){this[t].apply(this,i)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(e);return this};function P(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=v(t)?t:[t];for(var i=0;i<t.length;i++){if(t[i]===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 O={on:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i)}}else{t=f(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e)}}return this},off:function(t,i,e){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var r in t){this._off(r,t[r],i)}}else{t=f(t);var n=arguments.length===1;for(var s=0,o=t.length;s<o;s++){if(n){this._off(t[s])}else{this._off(t[s],i,e)}}}return this},_on:function(t,i,e,r){if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,e)!==false){return}if(e===this){e=undefined}var n={fn:i,ctx:e};if(r){n.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(n)},_off:function(t,i,e){var r,n,s;if(!this._events){return}r=this._events[t];if(!r){return}if(arguments.length===1){if(this._firingCount){for(n=0,s=r.length;n<s;n++){r[n].fn=c}}delete this._events[t];return}if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}var o=this._listens(t,i,e);if(o!==false){var a=r[o];if(this._firingCount){a.fn=c;this._events[t]=r=r.slice()}r.splice(o,1)}},fire:function(t,i,r){if(!this.listens(t,r)){return this}var n=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var o=0,a=s.length;o<a;o++){var l=s[o];var c=l.fn;if(l.once){this.off(t,c,l.ctx)}c.call(l.ctx||this,n)}this._firingCount--}}if(r){this._propagateEvent(n)}return this},listens:function(t,i,e,r){if(typeof t!=="string"){console.warn('"string" type argument expected')}var n=i;if(typeof i!=="function"){r=!!i;n=undefined;e=undefined}var s=this._events&&this._events[t];if(s&&s.length){if(this._listens(t,n,e)!==false){return true}}if(r){for(var o in this._eventParents){if(this._eventParents[o].listens(t,i,e,r)){return true}}}return false},_listens:function(t,i,e){if(!this._events){return false}var r=this._events[t]||[];if(!i){return!!r.length}if(e===this){e=undefined}for(var n=0,s=r.length;n<s;n++){if(r[n].fn===i&&r[n].ctx===e){return n}}return false},once:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i,true)}}else{t=f(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[o(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[o(t)]}return this},_propagateEvent:function(t){for(var i in this._eventParents){this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),true)}}};O.addEventListener=O.on;O.removeEventListener=O.clearAllEventListeners=O.off;O.addOneTimeEventListener=O.once;O.fireEvent=O.fire;O.hasEventListeners=O.listens;var j=E.extend(O);function S(t,i,e){this.x=e?Math.round(t):t;this.y=e?Math.round(i):i}var T=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};S.prototype={clone:function(){return new S(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new S(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new S(this.x/t.x,this.y/t.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=T(this.x);this.y=T(this.y);return this},distanceTo:function(t){t=I(t);var i=t.x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){t=I(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=I(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}};function I(t,i,e){if(t instanceof S){return t}if(v(t)){return new S(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new S(t.x,t.y)}return new S(t,i,e)}function B(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}B.prototype={extend:function(t){var i,e;if(!t){return this}if(t instanceof S||typeof t[0]==="number"||"x"in t){i=e=I(t)}else{t=F(t);i=t.min;e=t.max;if(!i||!e){return this}}if(!this.min&&!this.max){this.min=i.clone();this.max=e.clone()}else{this.min.x=Math.min(i.x,this.min.x);this.max.x=Math.max(e.x,this.max.x);this.min.y=Math.min(i.y,this.min.y);this.max.y=Math.max(e.y,this.max.y)}return this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(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(t){var i,e;if(typeof t[0]==="number"||t instanceof S){t=I(t)}else{t=F(t)}if(t instanceof B){i=t.min;e=t.max}else{i=e=t}return i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=F(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>=i.x&&r.x<=e.x,o=n.y>=i.y&&r.y<=e.y;return s&&o},overlaps:function(t){t=F(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>i.x&&r.x<e.x,o=n.y>i.y&&r.y<e.y;return s&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,e=this.max,r=Math.abs(i.x-e.x)*t,n=Math.abs(i.y-e.y)*t;return F(I(i.x-r,i.y-n),I(e.x+r,e.y+n))},equals:function(t){if(!t){return false}t=F(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function F(t,i){if(!t||t instanceof B){return t}return new B(t,i)}function R(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}R.prototype={extend:function(t){var i=this._southWest,e=this._northEast,r,n;if(t instanceof D){r=t;n=t}else if(t instanceof R){r=t._southWest;n=t._northEast;if(!r||!n){return this}}else{return t?this.extend(Y(t)||N(t)):this}if(!i&&!e){this._southWest=new D(r.lat,r.lng);this._northEast=new D(n.lat,n.lng)}else{i.lat=Math.min(r.lat,i.lat);i.lng=Math.min(r.lng,i.lng);e.lat=Math.max(n.lat,e.lat);e.lng=Math.max(n.lng,e.lng)}return this},pad:function(t){var i=this._southWest,e=this._northEast,r=Math.abs(i.lat-e.lat)*t,n=Math.abs(i.lng-e.lng)*t;return new R(new D(i.lat-r,i.lng-n),new D(e.lat+r,e.lng+n))},getCenter:function(){return new D((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 D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(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(t){if(typeof t[0]==="number"||t instanceof D||"lat"in t){t=Y(t)}else{t=N(t)}var i=this._southWest,e=this._northEast,r,n;if(t instanceof R){r=t.getSouthWest();n=t.getNorthEast()}else{r=n=t}return r.lat>=i.lat&&n.lat<=e.lat&&r.lng>=i.lng&&n.lng<=e.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>=i.lat&&r.lat<=e.lat,o=n.lng>=i.lng&&r.lng<=e.lng;return s&&o},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>i.lat&&r.lat<e.lat,o=n.lng>i.lng&&r.lng<e.lng;return s&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){if(!t){return false}t=N(t);return this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)},isValid:function(){return!!(this._southWest&&this._northEast)}};function N(t,i){if(t instanceof R){return t}return new R(t,i)}function D(t,i,e){if(isNaN(t)||isNaN(i)){throw new Error("Invalid LatLng object: ("+t+", "+i+")")}this.lat=+t;this.lng=+i;if(e!==undefined){this.alt=+e}}D.prototype={equals:function(t,i){if(!t){return false}t=Y(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=(i===undefined?1e-9:i)},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return $.distance(this,Y(t))},wrap:function(){return $.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return N([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new D(this.lat,this.lng,this.alt)}};function Y(t,i,e){if(t instanceof D){return t}if(v(t)&&typeof t[0]!=="object"){if(t.length===3){return new D(t[0],t[1],t[2])}if(t.length===2){return new D(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new D(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(i===undefined){return null}return new D(t,i,e)}var G={latLngToPoint:function(t,i){var e=this.projection.project(t),r=this.scale(i);return this.transformation._transform(e,r)},pointToLatLng:function(t,i){var e=this.scale(i),r=this.transformation.untransform(t,e);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var i=this.projection.bounds,e=this.scale(t),r=this.transformation.transform(i.min,e),n=this.transformation.transform(i.max,e);return new B(r,n)},infinite:false,wrapLatLng:function(t){var i=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,e=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,r=t.alt;return new D(e,i,r)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),r=i.lat-e.lat,n=i.lng-e.lng;if(r===0&&n===0){return t}var s=t.getSouthWest(),o=t.getNorthEast(),a=new D(s.lat-r,s.lng-n),l=new D(o.lat-r,o.lng-n);return new R(a,l)}};var $=e({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,r=t.lat*e,n=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),o=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(r)*Math.cos(n)*o*o,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var Z=6378137;var H={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,r=Math.max(Math.min(e,t.lat),-e),n=Math.sin(r*i);return new S(this.R*t.lng*i,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(t){var i=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=Z*Math.PI;return new B([-t,-t],[t,t])}()};function U(t,i,e,r){if(v(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=i;this._c=e;this._d=r}U.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){i=i||1;t.x=i*(this._a*t.x+this._b);t.y=i*(this._c*t.y+this._d);return t},untransform:function(t,i){i=i||1;return new S((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Q(t,i,e,r){return new U(t,i,e,r)}var V=e({},$,{code:"EPSG:3857",projection:H,transformation:function(){var t=.5/(Math.PI*H.R);return Q(t,.5,-t,.5)}()});var W=e({},V,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function q(t,i){var e="",r,n,s,o,a,l;for(r=0,s=t.length;r<s;r++){a=t[r];for(n=0,o=a.length;n<o;n++){l=a[n];e+=(n?"L":"M")+l.x+" "+l.y}e+=i?Bt.svg?"z":"x":""}return e||"M0 0"}var J=document.documentElement.style;var X="ActiveXObject"in window;var tt=X&&!document.addEventListener;var it="msLaunchUri"in navigator&&!("documentMode"in document);var et=It("webkit");var rt=It("android");var nt=It("android 2")||It("android 3");var st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var ot=rt&&It("Google")&&st<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!it&&It("chrome");var ct=It("gecko")&&!et&&!at&&!X;var ht=!lt&&It("safari");var ut=It("phantom");var ft="OTransition"in J;var pt=navigator.platform.indexOf("Win")===0;var dt=X&&"transition"in J;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nt;var gt="MozPerspective"in J;var vt=!window.L_DISABLE_3D&&(dt||mt||gt)&&!ft&&!ut;var wt=typeof orientation!=="undefined"||It("mobile");var bt=wt&&et;var yt=wt&&mt;var xt=!window.PointerEvent&&window.MSPointerEvent;var kt=!!(window.PointerEvent||xt);var At="ontouchstart"in window||!!window.TouchEvent;var _t=!window.L_NO_TOUCH&&(At||kt);var Mt=wt&&at;var zt=wt&&ct;var Lt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Ct=function(){var t=false;try{var i=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,i);window.removeEventListener("testPassiveEventSupport",c,i)}catch(e){}return t}();var Et=function(){return!!document.createElement("canvas").getContext}();var Pt=!!(document.createElementNS&&K("svg").createSVGRect);var Ot=!!Pt&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var jt=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;i.style.behavior="url(#default#VML)";return i&&typeof i.adj==="object"}catch(e){return false}}();var St=navigator.platform.indexOf("Mac")===0;var Tt=navigator.platform.indexOf("Linux")===0;function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:X,ielt9:tt,edge:it,webkit:et,android:rt,android23:nt,androidStock:ot,opera:at,chrome:lt,gecko:ct,safari:ht,phantom:ut,opera12:ft,win:pt,ie3d:dt,webkit3d:mt,gecko3d:gt,any3d:vt,mobile:wt,mobileWebkit:bt,mobileWebkit3d:yt,msPointer:xt,pointer:kt,touch:_t,touchNative:At,mobileOpera:Mt,mobileGecko:zt,retina:Lt,passiveEvents:Ct,canvas:Et,svg:Pt,vml:jt,inlineSvg:Ot,mac:St,linux:Tt};var Ft=Bt.msPointer?"MSPointerDown":"pointerdown";var Rt=Bt.msPointer?"MSPointerMove":"pointermove";var Nt=Bt.msPointer?"MSPointerUp":"pointerup";var Dt=Bt.msPointer?"MSPointerCancel":"pointercancel";var Yt={touchstart:Ft,touchmove:Rt,touchend:Nt,touchcancel:Dt};var Gt={touchstart:Jt,touchmove:qt,touchend:qt,touchcancel:qt};var $t={};var Zt=false;function Ht(t,i,e){if(i==="touchstart"){Kt()}if(!Gt[i]){console.warn("wrong event specified:",i);return c}e=Gt[i].bind(this,e);t.addEventListener(Yt[i],e,false);return e}function Ut(t,i,e){if(!Yt[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(Yt[i],e,false)}function Qt(t){$t[t.pointerId]=t}function Vt(t){if($t[t.pointerId]){$t[t.pointerId]=t}}function Wt(t){delete $t[t.pointerId]}function Kt(){if(!Zt){document.addEventListener(Ft,Qt,true);document.addEventListener(Rt,Vt,true);document.addEventListener(Nt,Wt,true);document.addEventListener(Dt,Wt,true);Zt=true}}function qt(t,i){if(i.pointerType===(i.MSPOINTER_TYPE_MOUSE||"mouse")){return}i.touches=[];for(var e in $t){i.touches.push($t[e])}i.changedTouches=[i];t(i)}function Jt(t,i){if(i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH){Qi(i)}qt(t,i)}function Xt(t){var i={},e,r;for(r in t){e=t[r];i[r]=e&&e.bind?e.bind(t):e}t=i;i.type="dblclick";i.detail=2;i.isTrusted=false;i._simulated=true;return i}var ti=200;function ii(t,i){t.addEventListener("dblclick",i);var e=0,r;function n(t){if(t.detail!==1){r=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var n=Wi(t);if(n.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!n.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var s=Date.now();if(s-e<=ti){r++;if(r===2){i(Xt(t))}}else{r=1}e=s}t.addEventListener("click",n);return{dblclick:i,simDblclick:n}}function ei(t,i){t.removeEventListener("dblclick",i.dblclick);t.removeEventListener("click",i.simDblclick)}var ri=yi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var ni=yi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var si=ni==="webkitTransition"||ni==="OTransition"?ni+"End":"transitionend";function oi(t){return typeof t==="string"?document.getElementById(t):t}function ai(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||e==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);e=r?r[i]:null}return e==="auto"?null:e}function li(t,i,e){var r=document.createElement(t);r.className=i||"";if(e){e.appendChild(r)}return r}function ci(t){var i=t.parentNode;if(i){i.removeChild(t)}}function hi(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ui(t){var i=t.parentNode;if(i&&i.lastChild!==t){i.appendChild(t)}}function fi(t){var i=t.parentNode;if(i&&i.firstChild!==t){i.insertBefore(t,i.firstChild)}}function pi(t,i){if(t.classList!==undefined){return t.classList.contains(i)}var e=vi(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function di(t,i){if(t.classList!==undefined){var e=f(i);for(var r=0,n=e.length;r<n;r++){t.classList.add(e[r])}}else if(!pi(t,i)){var s=vi(t);gi(t,(s?s+" ":"")+i)}}function mi(t,i){if(t.classList!==undefined){t.classList.remove(i)}else{gi(t,u((" "+vi(t)+" ").replace(" "+i+" "," ")))}}function gi(t,i){if(t.className.baseVal===undefined){t.className=i}else{t.className.baseVal=i}}function vi(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function wi(t,i){if("opacity"in t.style){t.style.opacity=i}else if("filter"in t.style){bi(t,i)}}function bi(t,i){var e=false,r="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(r)}catch(n){if(i===1){return}}i=Math.round(i*100);if(e){e.Enabled=i!==100;e.Opacity=i}else{t.style.filter+=" progid:"+r+"(opacity="+i+")"}}function yi(t){var i=document.documentElement.style;for(var e=0;e<t.length;e++){if(t[e]in i){return t[e]}}return false}function xi(t,i,e){var r=i||new S(0,0);t.style[ri]=(Bt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(e?" scale("+e+")":"")}function ki(t,i){t._leaflet_pos=i;if(Bt.any3d){xi(t,i)}else{t.style.left=i.x+"px";t.style.top=i.y+"px"}}function Ai(t){return t._leaflet_pos||new S(0,0)}var _i;var Mi;var zi;if("onselectstart"in document){_i=function(){Fi(window,"selectstart",Qi)};Mi=function(){Ni(window,"selectstart",Qi)}}else{var Li=yi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);_i=function(){if(Li){var t=document.documentElement.style;zi=t[Li];t[Li]="none"}};Mi=function(){if(Li){document.documentElement.style[Li]=zi;zi=undefined}}}function Ci(){Fi(window,"dragstart",Qi)}function Ei(){Ni(window,"dragstart",Qi)}var Pi,Oi;function ji(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Si();Pi=t;Oi=t.style.outlineStyle;t.style.outlineStyle="none";Fi(window,"keydown",Si)}function Si(){if(!Pi){return}Pi.style.outlineStyle=Oi;Pi=undefined;Oi=undefined;Ni(window,"keydown",Si)}function Ti(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ii(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Bi={__proto__:null,TRANSFORM:ri,TRANSITION:ni,TRANSITION_END:si,get:oi,getStyle:ai,create:li,remove:ci,empty:hi,toFront:ui,toBack:fi,hasClass:pi,addClass:di,removeClass:mi,setClass:gi,getClass:vi,setOpacity:wi,testProp:yi,setTransform:xi,setPosition:ki,getPosition:Ai,get disableTextSelection(){return _i},get enableTextSelection(){return Mi},disableImageDrag:Ci,enableImageDrag:Ei,preventOutline:ji,restoreOutline:Si,getSizedParentNode:Ti,getScale:Ii};function Fi(t,i,e,r){if(i&&typeof i==="object"){for(var n in i){Gi(t,n,i[n],e)}}else{i=f(i);for(var s=0,o=i.length;s<o;s++){Gi(t,i[s],e,r)}}return this}var Ri="_leaflet_events";function Ni(t,i,e,r){if(arguments.length===1){Di(t);delete t[Ri]}else if(i&&typeof i==="object"){for(var n in i){$i(t,n,i[n],e)}}else{i=f(i);if(arguments.length===2){Di(t,(function(t){return w(i,t)!==-1}))}else{for(var s=0,o=i.length;s<o;s++){$i(t,i[s],e,r)}}}return this}function Di(t,i){for(var e in t[Ri]){var r=e.split(/\d/)[0];if(!i||i(r)){$i(t,r,null,null,e)}}}var Yi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Gi(t,i,e,r){var n=i+o(e)+(r?"_"+o(r):"");if(t[Ri]&&t[Ri][n]){return this}var s=function(i){return e.call(r||t,i||window.event)};var a=s;if(!Bt.touchNative&&Bt.pointer&&i.indexOf("touch")===0){s=Ht(t,i,s)}else if(Bt.touch&&i==="dblclick"){s=ii(t,s)}else if("addEventListener"in t){if(i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"){t.addEventListener(Yi[i]||i,s,Bt.passiveEvents?{passive:false}:false)}else if(i==="mouseenter"||i==="mouseleave"){s=function(i){i=i||window.event;if(Xi(t,i)){a(i)}};t.addEventListener(Yi[i],s,false)}else{t.addEventListener(i,a,false)}}else{t.attachEvent("on"+i,s)}t[Ri]=t[Ri]||{};t[Ri][n]=s}function $i(t,i,e,r,n){n=n||i+o(e)+(r?"_"+o(r):"");var s=t[Ri]&&t[Ri][n];if(!s){return this}if(!Bt.touchNative&&Bt.pointer&&i.indexOf("touch")===0){Ut(t,i,s)}else if(Bt.touch&&i==="dblclick"){ei(t,s)}else if("removeEventListener"in t){t.removeEventListener(Yi[i]||i,s,false)}else{t.detachEvent("on"+i,s)}t[Ri][n]=null}function Zi(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Hi(t){Gi(t,"wheel",Zi);return this}function Ui(t){Fi(t,"mousedown touchstart dblclick contextmenu",Zi);t["_leaflet_disable_click"]=true;return this}function Qi(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function Vi(t){Qi(t);Zi(t);return this}function Wi(t){if(t.composedPath){return t.composedPath()}var i=[];var e=t.target;while(e){i.push(e);e=e.parentNode}return i}function Ki(t,i){if(!i){return new S(t.clientX,t.clientY)}var e=Ii(i),r=e.boundingClientRect;return new S((t.clientX-r.left)/e.x-i.clientLeft,(t.clientY-r.top)/e.y-i.clientTop)}var qi=Bt.linux&&Bt.chrome?window.devicePixelRatio:Bt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ji(t){return Bt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/qi:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Xi(t,i){var e=i.relatedTarget;if(!e){return true}try{while(e&&e!==t){e=e.parentNode}}catch(r){return false}return e!==t}var te={__proto__:null,on:Fi,off:Ni,stopPropagation:Zi,disableScrollPropagation:Hi,disableClickPropagation:Ui,preventDefault:Qi,stop:Vi,getPropagationPath:Wi,getMousePosition:Ki,getWheelDelta:Ji,isExternalTarget:Xi,addListener:Fi,removeListener:Ni};var ie=j.extend({run:function(t,i,e,r){this.stop();this._el=t;this._inProgress=true;this._duration=e||.25;this._easeOutPower=1/Math.max(r||.5,.2);this._startPos=Ai(t);this._offset=i.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=M(this._animate,this);this._step()},_step:function(t){var i=+new Date-this._startTime,e=this._duration*1e3;if(i<e){this._runFrame(this._easeOut(i/e),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));if(i){e._round()}ki(this._el,e);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ee=j.extend({options:{crs:V,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(t,i){i=p(this,i);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=n(this._onResize,this);this._initEvents();if(i.maxBounds){this.setMaxBounds(i.maxBounds)}if(i.zoom!==undefined){this._zoom=this._limitZoom(i.zoom)}if(i.center&&i.zoom!==undefined){this.setView(Y(i.center),i.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ni&&Bt.any3d&&!Bt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Fi(this._proxy,si,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,i,r){i=i===undefined?this._zoom:this._limitZoom(i);t=this._limitCenter(Y(t),i,this.options.maxBounds);r=r||{};this._stop();if(this._loaded&&!r.reset&&r!==true){if(r.animate!==undefined){r.zoom=e({animate:r.animate},r.zoom);r.pan=e({animate:r.animate,duration:r.duration},r.pan)}var n=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,r.zoom):this._tryAnimatedPan(t,r.pan);if(n){clearTimeout(this._sizeTimer);return this}}this._resetView(t,i,r.pan&&r.pan.noMoveStart);return this},setZoom:function(t,i){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:i})},zoomIn:function(t,i){t=t||(Bt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){t=t||(Bt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var r=this.getZoomScale(i),n=this.getSize().divideBy(2),s=t instanceof S?t:this.latLngToContainerPoint(t),o=s.subtract(n).multiplyBy(1-1/r),a=this.containerPointToLatLng(n.add(o));return this.setView(a,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{};t=t.getBounds?t.getBounds():N(t);var e=I(i.paddingTopLeft||i.padding||[0,0]),r=I(i.paddingBottomRight||i.padding||[0,0]),n=this.getBoundsZoom(t,false,e.add(r));n=typeof i.maxZoom==="number"?Math.min(i.maxZoom,n):n;if(n===Infinity){return{center:t.getCenter(),zoom:n}}var s=r.subtract(e).divideBy(2),o=this.project(t.getSouthWest(),n),a=this.project(t.getNorthEast(),n),l=this.unproject(o.add(a).divideBy(2).add(s),n);return{center:l,zoom:n}},fitBounds:function(t,i){t=N(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){t=I(t).round();i=i||{};if(!t.x&&!t.y){return this.fire("moveend")}if(i.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ie;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!i.noMoveStart){this.fire("movestart")}if(i.animate!==false){di(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,i,e){e=e||{};if(e.animate===false||!Bt.any3d){return this.setView(t,i,e)}this._stop();var r=this.project(this.getCenter()),n=this.project(t),s=this.getSize(),o=this._zoom;t=Y(t);i=i===undefined?o:i;var a=Math.max(s.x,s.y),l=a*this.getZoomScale(o,i),c=n.distanceTo(r)||1,h=1.42,u=h*h;function f(t){var i=t?-1:1,e=t?l:a,r=l*l-a*a+i*u*u*c*c,n=2*e*u*c,s=r/n,o=Math.sqrt(s*s+1)-s;var h=o<1e-9?-18:Math.log(o);return h}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/d(t)}var g=f(0);function v(t){return a*(d(g)/d(g+h*t))}function w(t){return a*(d(g)*m(g+h*t)-p(g))/u}function b(t){return 1-Math.pow(1-t,1.5)}var y=Date.now(),x=(f(1)-g)/h,k=e.duration?1e3*e.duration:1e3*x*.8;function A(){var e=(Date.now()-y)/k,s=b(e)*x;if(e<=1){this._flyToFrame=M(A,this);this._move(this.unproject(r.add(n.subtract(r).multiplyBy(w(s)/c)),o),this.getScaleZoom(a/v(s),o),{flyTo:true})}else{this._move(t,i)._moveEnd(true)}}this._moveStart(true,e.noMoveStart);A.call(this);return this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){t=N(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var i=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var i=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,i){this._enforcingBounds=true;var e=this.getCenter(),r=this._limitCenter(e,this._zoom,N(t));if(!e.equals(r)){this.panTo(r,i)}this._enforcingBounds=false;return this},panInside:function(t,i){i=i||{};var e=I(i.paddingTopLeft||i.padding||[0,0]),r=I(i.paddingBottomRight||i.padding||[0,0]),n=this.project(this.getCenter()),s=this.project(t),o=this.getPixelBounds(),a=F([o.min.add(e),o.max.subtract(r)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=true;var c=s.subtract(a.getCenter());var h=a.extend(s).getSize().subtract(l);n.x+=c.x<0?-h.x:h.x;n.y+=c.y<0?-h.y:h.y;this.panTo(this.unproject(n),i);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=e({animate:false,pan:true},t===true?{animate:true}:t);var i=this.getSize();this._sizeChanged=true;this._lastCenter=null;var r=this.getSize(),s=i.divideBy(2).round(),o=r.divideBy(2).round(),a=s.subtract(o);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:i,newSize:r})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=e({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var i=n(this._handleGeolocationResponse,this),r=n(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(i,r,t)}else{navigator.geolocation.getCurrentPosition(i,r,t)}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(t){if(!this._container._leaflet_id){return}var i=t.code,e=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var i=t.coords.latitude,e=t.coords.longitude,r=new D(i,e),n=r.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var o=this.getBoundsZoom(n);this.setView(r,s.maxZoom?Math.min(o,s.maxZoom):o)}var a={latlng:r,bounds:n,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,i){if(!i){return this}var e=this[t]=new i(this);this._handlers.push(e);if(this.options[t]){e.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(i){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ci(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ci(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,i){var e="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=li("div",e,i||this._mapPane);if(t){this._panes[t]=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 t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),e=this.unproject(t.getTopRight());return new R(i,e)},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(t,i,e){t=N(t);e=I(e||[0,0]);var r=this.getZoom()||0,n=this.getMinZoom(),s=this.getMaxZoom(),o=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(e),c=F(this.project(a,r),this.project(o,r)).getSize(),h=Bt.any3d?this.options.zoomSnap:1,u=l.x/c.x,f=l.y/c.y,p=i?Math.max(u,f):Math.min(u,f);r=this.getScaleZoom(p,r);if(h){r=Math.round(r/(h/100))*(h/100);r=i?Math.ceil(r/h)*h:Math.floor(r/h)*h}return Math.max(n,Math.min(s,r))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new S(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new B(e,e.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;return e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;var r=e.zoom(t*e.scale(i));return isNaN(r)?Infinity:r},project:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.latLngToPoint(Y(t),i)},unproject:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.pointToLatLng(I(t),i)},layerPointToLatLng:function(t){var i=I(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(Y(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(Y(t),Y(i))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return Ki(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=oi(t);if(!i){throw new Error("Map container not found.")}else if(i._leaflet_id){throw new Error("Map container is already initialized.")}Fi(i,"scroll",this._onScroll,this);this._containerId=o(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Bt.any3d;di(t,"leaflet-container"+(Bt.touch?" leaflet-touch":"")+(Bt.retina?" leaflet-retina":"")+(Bt.ielt9?" leaflet-oldie":"")+(Bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=ai(t,"position");if(i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);ki(this._mapPane,new S(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){di(t.markerPane,"leaflet-zoom-hide");di(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,i,e){ki(this._mapPane,new S(0,0));var r=!this._loaded;this._loaded=true;i=this._limitZoom(i);this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,e)._move(t,i)._moveEnd(n);this.fire("viewreset");if(r){this.fire("load")}},_moveStart:function(t,i){if(t){this.fire("zoomstart")}if(!i){this.fire("movestart")}return this},_move:function(t,i,e,r){if(i===undefined){i=this._zoom}var n=this._zoom!==i;this._zoom=i;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!r){if(n||e&&e.pinch){this.fire("zoom",e)}this.fire("move",e)}else if(e&&e.pinch){this.fire("zoom",e)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){ki(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={};this._targets[o(this._container)]=this;var i=t?Ni:Fi;i(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){i(window,"resize",this._onResize,this)}if(Bt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,i){var e=[],r,n=i==="mouseout"||i==="mouseover",s=t.target||t.srcElement,a=false;while(s){r=this._targets[o(s)];if(r&&(i==="click"||i==="preclick")&&this._draggableMoved(r)){a=true;break}if(r&&r.listens(i,true)){if(n&&!Xi(s,t)){break}e.push(r);if(n){break}}if(s===this._container){break}s=s.parentNode}if(!e.length&&!a&&!n&&this.listens(i,true)){e=[this]}return e},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!this._loaded||i["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(i)){return}var e=t.type;if(e==="mousedown"){ji(i)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,r){if(t.type==="click"){var n=e({},t);n.type="preclick";this._fireDOMEvent(n,n.type,r)}var s=this._findEventTargets(t,i);if(r){var o=[];for(var a=0;a<r.length;a++){if(r[a].listens(i,true)){o.push(r[a])}}s=o.concat(s)}if(!s.length){return}if(i==="contextmenu"){Qi(t)}var l=s[0];var c={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var h=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);c.layerPoint=this.containerPointToLayerPoint(c.containerPoint);c.latlng=h?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<s.length;a++){s[a].fire(i,c,true);if(c.originalEvent._stopped||s[a].options.bubblingMouseEvents===false&&w(this._mouseEvents,i)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++){this._handlers[t].disable()}},whenReady:function(t,i){if(this._loaded){t.call(i||this,{target:this})}else{this.on("load",t,i)}return this},_getMapPanePos:function(){return Ai(this._mapPane)||new S(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var e=t&&i!==undefined?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return e.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return F([this.project(t.getSouthWest(),i)._subtract(r),this.project(t.getNorthWest(),i)._subtract(r),this.project(t.getSouthEast(),i)._subtract(r),this.project(t.getNorthEast(),i)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e){return t}var r=this.project(t,i),n=this.getSize().divideBy(2),s=new B(r.subtract(n),r.add(n)),o=this._getBoundsOffset(s,e,i);if(Math.abs(o.x)<=1&&Math.abs(o.y)<=1){return t}return this.unproject(r.add(o),i)},_limitOffset:function(t,i){if(!i){return t}var e=this.getPixelBounds(),r=new B(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(r,i))},_getBoundsOffset:function(t,i,e){var r=F(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),n=r.min.subtract(t.min),s=r.max.subtract(t.max),o=this._rebound(n.x,-s.x),a=this._rebound(n.y,-s.y);return new S(o,a)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),r=Bt.any3d?this.options.zoomSnap:1;if(r){t=Math.round(t/r)*r}return Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mi(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();if((i&&i.animate)!==true&&!this.getSize().contains(e)){return false}this.panBy(e,i);return true},_createAnimProxy:function(){var t=this._proxy=li("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var i=ri,e=this._proxy.style[i];xi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(e===this._proxy.style[i]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ci(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();xi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom){return true}e=e||{};if(!this._zoomAnimated||e.animate===false||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold){return false}var r=this.getZoomScale(i),n=this._getCenterOffset(t)._divideBy(1-1/r);if(e.animate!==true&&!this.getSize().contains(n)){return false}M((function(){this._moveStart(true,e.noMoveStart||false)._animateZoom(t,i,true)}),this);return true},_animateZoom:function(t,i,e,r){if(!this._mapPane){return}if(e){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=i;di(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:i,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){mi(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 re(t,i){return new ee(t,i)}var ne=E.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;if(i){i.removeControl(this)}this.options.position=t;if(i){i.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),r=t._controlCorners[e];di(i,"leaflet-control");if(e.indexOf("bottom")!==-1){r.insertBefore(i,r.firstChild)}else{r.appendChild(i)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ci(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var se=function(t){return new ne(t)};ee.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=li("div",i+"control-container",this._container);function r(r,n){var s=i+r+" "+i+n;t[r+n]=li("div",s,e)}r("top","left");r("top","right");r("bottom","left");r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ci(this._controlCorners[t])}ci(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var oe=ne.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,i,e,r){return e<r?-1:r<e?1:0}},initialize:function(t,i,e){p(this,e);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var r in t){this._addLayer(t[r],r)}for(r in i){this._addLayer(i[r],r,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++){this._layers[i].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ne.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,i){this._addLayer(t,i);return this._map?this._update():this},addOverlay:function(t,i){this._addLayer(t,i,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(o(t));if(i){this._layers.splice(this._layers.indexOf(i),1)}return this._map?this._update():this},expand:function(){di(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){di(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{mi(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){mi(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=li("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",true);Ui(i);Hi(i);var r=this._section=li("section",t+"-list");if(e){this._map.on("click",this.collapse,this);Fi(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var n=this._layersLink=li("a",t+"-toggle",i);n.href="#";n.title="Layers";n.setAttribute("role","button");Fi(n,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Qi(t);this._expandSafely()}},this);if(!e){this.expand()}this._baseLayersList=li("div",t+"-base",r);this._separator=li("div",t+"-separator",r);this._overlaysList=li("div",t+"-overlays",r);i.appendChild(r)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++){if(this._layers[i]&&o(this._layers[i].layer)===t){return this._layers[i]}}},_addLayer:function(t,i,e){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:i,overlay:e});if(this.options.sortLayers){this._layers.sort(n((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}hi(this._baseLayersList);hi(this._overlaysList);this._layerControlInputs=[];var t,i,e,r,n=0;for(e=0;e<this._layers.length;e++){r=this._layers[e];this._addItem(r);i=i||r.overlay;t=t||!r.overlay;n+=!r.overlay?1:0}if(this.options.hideSingleBase){t=t&&n>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=i&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var i=this._getLayer(o(t.target));var e=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(e){this._map.fire(e,i)}},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>";var r=document.createElement("div");r.innerHTML=e;return r.firstChild},_addItem:function(t){var i=document.createElement("label"),e=this._map.hasLayer(t.layer),r;if(t.overlay){r=document.createElement("input");r.type="checkbox";r.className="leaflet-control-layers-selector";r.defaultChecked=e}else{r=this._createRadioElement("leaflet-base-layers_"+o(this),e)}this._layerControlInputs.push(r);r.layerId=o(t.layer);Fi(r,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+t.name;var s=document.createElement("span");i.appendChild(s);s.appendChild(r);s.appendChild(n);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(i);this._checkDisabledLayers();return i},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,i,e;var r=[],n=[];this._handlingClick=true;for(var s=t.length-1;s>=0;s--){i=t[s];e=this._getLayer(i.layerId).layer;if(i.checked){r.push(e)}else if(!i.checked){n.push(e)}}for(s=0;s<n.length;s++){if(this._map.hasLayer(n[s])){this._map.removeLayer(n[s])}}for(s=0;s<r.length;s++){if(!this._map.hasLayer(r[s])){this._map.addLayer(r[s])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,i,e,r=this._map.getZoom();for(var n=t.length-1;n>=0;n--){i=t[n];e=this._getLayer(i.layerId).layer;i.disabled=e.options.minZoom!==undefined&&r<e.options.minZoom||e.options.maxZoom!==undefined&&r>e.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;Fi(t,"click",Qi);this.expand();var i=this;setTimeout((function(){Ni(t,"click",Qi);i._preventClick=false}))}});var ae=function(t,i,e){return new oe(t,i,e)};var le=ne.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(t){var i="leaflet-control-zoom",e=li("div",i+" leaflet-bar"),r=this.options;this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,i+"-in",e,this._zoomIn);this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,i+"-out",e,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return e},onRemove:function(t){t.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(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,i,e,r,n){var s=li("a",e,r);s.innerHTML=t;s.href="#";s.title=i;s.setAttribute("role","button");s.setAttribute("aria-label",i);Ui(s);Fi(s,"click",Vi);Fi(s,"click",n,this);Fi(s,"click",this._refocusOnMap,this);return s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mi(this._zoomInButton,i);mi(this._zoomOutButton,i);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){di(this._zoomOutButton,i);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){di(this._zoomInButton,i);this._zoomInButton.setAttribute("aria-disabled","true")}}});ee.mergeOptions({zoomControl:true});ee.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new le;this.addControl(this.zoomControl)}}));var ce=function(t){return new le(t)};var he=ne.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var i="leaflet-control-scale",e=li("div",i),r=this.options;this._addScales(r,i+"-line",e);t.on(r.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){if(t.metric){this._mScale=li("div",i,e)}if(t.imperial){this._iScale=li("div",i,e)}},_update:function(){var t=this._map,i=t.getSize().y/2;var e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i=t*3.2808399,e,r,n;if(i>5280){e=i/5280;r=this._getRoundNum(e);this._updateScale(this._iScale,r+" mi",r/e)}else{n=this._getRoundNum(i);this._updateScale(this._iScale,n+" ft",n/i)}},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px";t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1;return i*e}});var ue=function(t){return new he(t)};var fe='<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 pe=ne.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Bt.inlineSvg?fe+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=li("div","leaflet-control-attribution");Ui(this._container);for(var i in t._layers){if(t._layers[i].getAttribution){this.addAttribution(t._layers[i].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var i in this._attributions){if(this._attributions[i]){t.push(i)}}var e=[];if(this.options.prefix){e.push(this.options.prefix)}if(t.length){e.push(t.join(", "))}this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}});ee.mergeOptions({attributionControl:true});ee.addInitHook((function(){if(this.options.attributionControl){(new pe).addTo(this)}}));var de=function(t){return new pe(t)};ne.Layers=oe;ne.Zoom=le;ne.Scale=he;ne.Attribution=pe;se.layers=ae;se.zoom=ce;se.scale=ue;se.attribution=de;var me=E.extend({initialize:function(t){this._map=t},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}});me.addTo=function(t,i){t.addHandler(i,this);return this};var ge={Events:O};var ve=Bt.touch?"touchstart mousedown":"mousedown";var we=j.extend({options:{clickTolerance:3},initialize:function(t,i,e,r){p(this,r);this._element=t;this._dragStartTarget=i||t;this._preventOutline=e},enable:function(){if(this._enabled){return}Fi(this._dragStartTarget,ve,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(we._dragging===this){this.finishDrag(true)}Ni(this._dragStartTarget,ve,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(pi(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(we._dragging===this){this.finishDrag()}return}if(we._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}we._dragging=this;if(this._preventOutline){ji(this._element)}Ci();_i();if(this._moving){return}this.fire("down");var i=t.touches?t.touches[0]:t,e=Ti(this._element);this._startPoint=new S(i.clientX,i.clientY);this._startPos=Ai(this._element);this._parentScale=Ii(e);var r=t.type==="mousedown";Fi(document,r?"mousemove":"touchmove",this._onMove,this);Fi(document,r?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,e=new S(i.clientX,i.clientY)._subtract(this._startPoint);if(!e.x&&!e.y){return}if(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance){return}e.x/=this._parentScale.x;e.y/=this._parentScale.y;Qi(t);if(!this._moved){this.fire("dragstart");this._moved=true;di(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}di(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(e);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);ki(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){mi(document.body,"leaflet-dragging");if(this._lastTarget){mi(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Ni(document,"mousemove touchmove",this._onMove,this);Ni(document,"mouseup touchend touchcancel",this._onUp,this);Ei();Mi();var i=this._moved&&this._moving;this._moving=false;we._dragging=false;if(i){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function be(t,i,e){var r,n=[1,4,2,8],s,o,a,l,c,h,u,f;for(s=0,h=t.length;s<h;s++){t[s]._code=je(t[s],i)}for(a=0;a<4;a++){u=n[a];r=[];for(s=0,h=t.length,o=h-1;s<h;o=s++){l=t[s];c=t[o];if(!(l._code&u)){if(c._code&u){f=Oe(c,l,u,i,e);f._code=je(f,i);r.push(f)}r.push(l)}else if(!(c._code&u)){f=Oe(c,l,u,i,e);f._code=je(f,i);r.push(f)}}t=r}return t}function ye(t,i){var e,r,n,s,o,a,l,c,h;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ie(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var u=Y([0,0]);var f=N(t);var p=f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest());if(p<1700){u=xe(t)}var d=t.length;var m=[];for(e=0;e<d;e++){var g=Y(t[e]);m.push(i.project(Y([g.lat-u.lat,g.lng-u.lng])))}a=l=c=0;for(e=0,r=d-1;e<d;r=e++){n=m[e];s=m[r];o=n.y*s.x-s.y*n.x;l+=(n.x+s.x)*o;c+=(n.y+s.y)*o;a+=o*3}if(a===0){h=m[0]}else{h=[l/a,c/a]}var v=i.unproject(I(h));return Y([v.lat+u.lat,v.lng+u.lng])}function xe(t){var i=0;var e=0;var r=0;for(var n=0;n<t.length;n++){var s=Y(t[n]);i+=s.lat;e+=s.lng;r++}return Y([i/r,e/r])}var ke={__proto__:null,clipPolygon:be,polygonCenter:ye,centroid:xe};function Ae(t,i){if(!i||!t.length){return t.slice()}var e=i*i;t=Ce(t,e);t=ze(t,e);return t}function _e(t,i,e){return Math.sqrt(Te(t,i,e,true))}function Me(t,i,e){return Te(t,i,e)}function ze(t,i){var e=t.length,r=typeof Uint8Array!==undefined+""?Uint8Array:Array,n=new r(e);n[0]=n[e-1]=1;Le(t,n,i,0,e-1);var s,o=[];for(s=0;s<e;s++){if(n[s]){o.push(t[s])}}return o}function Le(t,i,e,r,n){var s=0,o,a,l;for(a=r+1;a<=n-1;a++){l=Te(t[a],t[r],t[n],true);if(l>s){o=a;s=l}}if(s>e){i[o]=1;Le(t,i,e,r,o);Le(t,i,e,o,n)}}function Ce(t,i){var e=[t[0]];for(var r=1,n=0,s=t.length;r<s;r++){if(Se(t[r],t[n])>i){e.push(t[r]);n=r}}if(n<s-1){e.push(t[s-1])}return e}var Ee;function Pe(t,i,e,r,n){var s=r?Ee:je(t,e),o=je(i,e),a,l,c;Ee=o;while(true){if(!(s|o)){return[t,i]}if(s&o){return false}a=s||o;l=Oe(t,i,a,e,n);c=je(l,e);if(a===s){t=l;s=c}else{i=l;o=c}}}function Oe(t,i,e,r,n){var s=i.x-t.x,o=i.y-t.y,a=r.min,l=r.max,c,h;if(e&8){c=t.x+s*(l.y-t.y)/o;h=l.y}else if(e&4){c=t.x+s*(a.y-t.y)/o;h=a.y}else if(e&2){c=l.x;h=t.y+o*(l.x-t.x)/s}else if(e&1){c=a.x;h=t.y+o*(a.x-t.x)/s}return new S(c,h,n)}function je(t,i){var e=0;if(t.x<i.min.x){e|=1}else if(t.x>i.max.x){e|=2}if(t.y<i.min.y){e|=4}else if(t.y>i.max.y){e|=8}return e}function Se(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}function Te(t,i,e,r){var n=i.x,s=i.y,o=e.x-n,a=e.y-s,l=o*o+a*a,c;if(l>0){c=((t.x-n)*o+(t.y-s)*a)/l;if(c>1){n=e.x;s=e.y}else if(c>0){n+=o*c;s+=a*c}}o=t.x-n;a=t.y-s;return r?o*o+a*a:new S(n,s)}function Ie(t){return!v(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Be(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Ie(t)}function Fe(t,i){var e,r,n,s,o,a,l,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ie(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var h=Y([0,0]);var u=N(t);var f=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(f<1700){h=xe(t)}var p=t.length;var d=[];for(e=0;e<p;e++){var m=Y(t[e]);d.push(i.project(Y([m.lat-h.lat,m.lng-h.lng])))}for(e=0,r=0;e<p-1;e++){r+=d[e].distanceTo(d[e+1])/2}if(r===0){c=d[0]}else{for(e=0,s=0;e<p-1;e++){o=d[e];a=d[e+1];n=o.distanceTo(a);s+=n;if(s>r){l=(s-r)/n;c=[a.x-l*(a.x-o.x),a.y-l*(a.y-o.y)];break}}}var g=i.unproject(I(c));return Y([g.lat+h.lat,g.lng+h.lng])}var Re={__proto__:null,simplify:Ae,pointToSegmentDistance:_e,closestPointOnSegment:Me,clipSegment:Pe,_getEdgeIntersection:Oe,_getBitCode:je,_sqClosestPointOnSegment:Te,isFlat:Ie,_flat:Be,polylineCenter:Fe};var Ne={project:function(t){return new S(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new B([-180,-90],[180,90])};var De={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,r=t.lat*i,n=this.R_MINOR/e,s=Math.sqrt(1-n*n),o=s*Math.sin(r);var a=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),s/2);r=-e*Math.log(Math.max(a,1e-10));return new S(t.lng*i*e,r)},unproject:function(t){var i=180/Math.PI,e=this.R,r=this.R_MINOR/e,n=Math.sqrt(1-r*r),s=Math.exp(-t.y/e),o=Math.PI/2-2*Math.atan(s);for(var a=0,l=.1,c;a<15&&Math.abs(l)>1e-7;a++){c=n*Math.sin(o);c=Math.pow((1-c)/(1+c),n/2);l=Math.PI/2-2*Math.atan(s*c)-o;o+=l}return new D(o*i,t.x*i/e)}};var Ye={__proto__:null,LonLat:Ne,Mercator:De,SphericalMercator:H};var Ge=e({},$,{code:"EPSG:3395",projection:De,transformation:function(){var t=.5/(Math.PI*De.R);return Q(t,.5,-t,.5)}()});var $e=e({},$,{code:"EPSG:4326",projection:Ne,transformation:Q(1/180,1,-1/180,.5)});var Ze=e({},G,{projection:Ne,transformation:Q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,r=i.lat-t.lat;return Math.sqrt(e*e+r*r)},infinite:true});G.Earth=$;G.EPSG3395=Ge;G.EPSG3857=V;G.EPSG900913=W;G.EPSG4326=$e;G.Simple=Ze;var He=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[o(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[o(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(!i.hasLayer(this)){return}this._map=i;this._zoomAnimated=i._zoomAnimated;if(this.getEvents){var e=this.getEvents();i.on(e,this);this.once("remove",(function(){i.off(e,this)}),this)}this.onAdd(i);this.fire("add");i.fire("layeradd",{layer:this})}});ee.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var i=o(t);if(this._layers[i]){return this}this._layers[i]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var i=o(t);if(!this._layers[i]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[i];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},_addLayers:function(t){t=t?v(t)?t:[t]:[];for(var i=0,e=t.length;i<e;i++){this.addLayer(t[i])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[o(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var i=o(t);if(this._zoomBoundLayers[i]){delete this._zoomBoundLayers[i];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,i=-Infinity,e=this._getZoomSpan();for(var r in this._zoomBoundLayers){var n=this._zoomBoundLayers[r].options;t=n.minZoom===undefined?t:Math.min(t,n.minZoom);i=n.maxZoom===undefined?i:Math.max(i,n.maxZoom)}this._layersMaxZoom=i===-Infinity?undefined:i;this._layersMinZoom=t===Infinity?undefined:t;if(e!==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 Ue=He.extend({initialize:function(t,i){p(this,i);this._layers={};var e,r;if(t){for(e=0,r=t.length;e<r;e++){this.addLayer(t[e])}}},addLayer:function(t){var i=this.getLayerId(t);this._layers[i]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[i]){this._map.removeLayer(this._layers[i])}delete this._layers[i];return this},hasLayer:function(t){var i=typeof t==="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),e,r;for(e in this._layers){r=this._layers[e];if(r[t]){r[t].apply(r,i)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}});var Qe=function(t,i){return new Ue(t,i)};var Ve=Ue.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Ue.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Ue.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}});var We=function(t,i){return new Ve(t,i)};var Ke=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var r=this._createImg(e,i&&i.tagName==="IMG"?i:null);this._setIconStyles(r,t);if(this.options.crossOrigin||this.options.crossOrigin===""){r.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return r},_setIconStyles:function(t,i){var e=this.options;var r=e[i+"Size"];if(typeof r==="number"){r=[r,r]}var n=I(r),s=I(i==="shadow"&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,true));t.className="leaflet-marker-"+i+" "+(e.className||"");if(s){t.style.marginLeft=-s.x+"px";t.style.marginTop=-s.y+"px"}if(n){t.style.width=n.x+"px";t.style.height=n.y+"px"}},_createImg:function(t,i){i=i||document.createElement("img");i.src=t;return i},_getIconUrl:function(t){return Bt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function qe(t){return new Ke(t)}var Je=Ke.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(t){if(typeof Je.imagePath!=="string"){Je.imagePath=this._detectIconPath()}return(this.options.imagePath||Je.imagePath)+Ke.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,e){var r=i.exec(t);return r&&r[e]};t=i(t,/^url\((['"])?(.+)\1\)$/,2);return t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=li("div","leaflet-default-icon-path",document.body);var i=ai(t,"background-image")||ai(t,"backgroundImage");document.body.removeChild(t);i=this._stripUrl(i);if(i){return i}var e=document.querySelector('link[href$="leaflet.css"]');if(!e){return""}return e.href.substring(0,e.href.length-"leaflet.css".length-1)}});var Xe=me.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new we(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();di(t,"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){mi(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,r=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,s=Ai(i._icon),o=e.getPixelBounds(),a=e.getPixelOrigin();var l=F(o.min._subtract(a).add(n),o.max._subtract(a).subtract(n));if(!l.contains(s)){var c=I((Math.max(l.max.x,s.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);e.panBy(c,{animate:false});this._draggable._newPos._add(c);this._draggable._startPos._add(c);ki(i._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDrag:function(t){var i=this._marker,e=i._shadow,r=Ai(i._icon),n=i._map.layerPointToLatLng(r);if(e){ki(e,r)}i._latlng=n;t.latlng=n;t.oldLatLng=this._oldLatLng;i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tr=He.extend({options:{icon:new Je,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(t,i){p(this,i);this._latlng=Y(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.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(t){var i=this._latlng;this._latlng=Y(t);this.update();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;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 t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var e=t.icon.createIcon(this._icon),r=false;if(e!==this._icon){if(this._icon){this._removeIcon()}r=true;if(t.title){e.title=t.title}if(e.tagName==="IMG"){e.alt=t.alt||""}}di(e,i);if(t.keyboard){e.tabIndex="0";e.setAttribute("role","button")}this._icon=e;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Fi(e,"focus",this._panOnFocus,this)}var n=t.icon.createShadow(this._shadow),s=false;if(n!==this._shadow){this._removeShadow();s=true}if(n){di(n,i);n.alt=""}this._shadow=n;if(t.opacity<1){this._updateOpacity()}if(r){this.getPane().appendChild(this._icon)}this._initInteraction();if(n&&s){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ni(this._icon,"focus",this._panOnFocus,this)}ci(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ci(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){ki(this._icon,t)}if(this._shadow){ki(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(!this.options.interactive){return}di(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Xe){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Xe(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){wi(this._icon,t)}if(this._shadow){wi(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var i=this.options.icon.options;var e=i.iconSize?I(i.iconSize):I(0,0);var r=i.iconAnchor?I(i.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:e.subtract(r)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ir(t,i){return new tr(t,i)}var er=He.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(t){this._renderer=t.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(t){p(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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=er.extend({options:{fill:true,radius:10},initialize:function(t,i){p(this,i);this._latlng=Y(t);this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;this._latlng=Y(t);this.redraw();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;er.prototype.setStyle.call(this,t);this.setRadius(i);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),r=[t+e,i+e];this._pxBounds=new B(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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nr(t,i){return new rr(t,i)}var sr=rr.extend({initialize:function(t,i,r){if(typeof i==="number"){i=e({},r,{radius:i})}p(this,i);this._latlng=Y(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:er.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,r=e.options.crs;if(r.distance===$.distance){var n=Math.PI/180,s=this._mRadius/$.R/n,o=e.project([i+s,t]),a=e.project([i-s,t]),l=o.add(a).divideBy(2),c=e.unproject(l).lat,h=Math.acos((Math.cos(s*n)-Math.sin(i*n)*Math.sin(c*n))/(Math.cos(i*n)*Math.cos(c*n)))/n;if(isNaN(h)||h===0){h=s/Math.cos(Math.PI/180*i)}this._point=l.subtract(e.getPixelOrigin());this._radius=isNaN(h)?0:l.x-e.project([c,t-h]).x;this._radiusY=l.y-o.y}else{var u=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng);this._radius=this._point.x-e.latLngToLayerPoint(u).x}this._updateBounds()}});function or(t,i,e){return new sr(t,i,e)}var ar=er.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,i){p(this,i);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var i=Infinity,e=null,r=Te,n,s;for(var o=0,a=this._parts.length;o<a;o++){var l=this._parts[o];for(var c=1,h=l.length;c<h;c++){n=l[c-1];s=l[c];var u=r(t,n,s,true);if(u<i){i=u;e=r(t,n,s)}}}if(e){e.distance=Math.sqrt(i)}return e},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Fe(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){i=i||this._defaultShape();t=Y(t);i.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ie(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var i=[],e=Ie(t);for(var r=0,n=t.length;r<n;r++){if(e){i[r]=Y(t[r]);this._bounds.extend(i[r])}else{i[r]=this._convertLatLngs(t[r])}}return i},_project:function(){var t=new B;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),i=new S(t,t);if(!this._rawPxBounds){return}this._pxBounds=new B([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,e){var r=t[0]instanceof D,n=t.length,s,o;if(r){o=[];for(s=0;s<n;s++){o[s]=this._map.latLngToLayerPoint(t[s]);e.extend(o[s])}i.push(o)}else{for(s=0;s<n;s++){this._projectLatlngs(t[s],i,e)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,e,r,n,s,o,a,l;for(e=0,n=0,s=this._rings.length;e<s;e++){l=this._rings[e];for(r=0,o=l.length;r<o-1;r++){a=Pe(l[r],l[r+1],t,r,true);if(!a){continue}i[n]=i[n]||[];i[n].push(a[0]);if(a[1]!==l[r+1]||r===o-2){i[n].push(a[1]);n++}}}},_simplifyPoints:function(){var t=this._parts,i=this.options.smoothFactor;for(var e=0,r=t.length;e<r;e++){t[e]=Ae(t[e],i)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,r,n,s,o,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(e=0,s=this._parts.length;e<s;e++){a=this._parts[e];for(r=0,o=a.length,n=o-1;r<o;n=r++){if(!i&&r===0){continue}if(_e(t,a[n],a[r])<=l){return true}}}return false}});function lr(t,i){return new ar(t,i)}ar._flat=Be;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 ye(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ar.prototype._convertLatLngs.call(this,t),e=i.length;if(e>=2&&i[0]instanceof D&&i[0].equals(i[e-1])){i.pop()}return i},_setLatLngs:function(t){ar.prototype._setLatLngs.call(this,t);if(Ie(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Ie(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new S(i,i);t=new B(t.min.subtract(e),t.max.add(e));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var r=0,n=this._rings.length,s;r<n;r++){s=be(this._rings[r],t,true);if(s.length){this._parts.push(s)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var i=false,e,r,n,s,o,a,l,c;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(s=0,l=this._parts.length;s<l;s++){e=this._parts[s];for(o=0,c=e.length,a=c-1;o<c;a=o++){r=e[o];n=e[a];if(r.y>t.y!==n.y>t.y&&t.x<(n.x-r.x)*(t.y-r.y)/(n.y-r.y)+r.x){i=!i}}}return i||ar.prototype._containsPoint.call(this,t,true)}});function hr(t,i){return new cr(t,i)}var ur=Ve.extend({initialize:function(t,i){p(this,i);this._layers={};if(t){this.addData(t)}},addData:function(t){var i=v(t)?t:t.features,e,r,n;if(i){for(e=0,r=i.length;e<r;e++){n=i[e];if(n.geometries||n.geometry||n.features||n.coordinates){this.addData(n)}}return this}var s=this.options;if(s.filter&&!s.filter(t)){return this}var o=fr(t,s);if(!o){return this}o.feature=br(t);o.defaultOptions=o.options;this.resetStyle(o);if(s.onEachFeature){s.onEachFeature(t,o)}return this.addLayer(o)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=e({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){if(t.setStyle){if(typeof i==="function"){i=i(t.feature)}t.setStyle(i)}}});function fr(t,i){var e=t.type==="Feature"?t.geometry:t,r=e?e.coordinates:null,n=[],s=i&&i.pointToLayer,o=i&&i.coordsToLatLng||dr,a,l,c,h;if(!r&&!e){return null}switch(e.type){case"Point":a=o(r);return pr(s,t,a,i);case"MultiPoint":for(c=0,h=r.length;c<h;c++){a=o(r[c]);n.push(pr(s,t,a,i))}return new Ve(n);case"LineString":case"MultiLineString":l=mr(r,e.type==="LineString"?0:1,o);return new ar(l,i);case"Polygon":case"MultiPolygon":l=mr(r,e.type==="Polygon"?1:2,o);return new cr(l,i);case"GeometryCollection":for(c=0,h=e.geometries.length;c<h;c++){var u=fr({geometry:e.geometries[c],type:"Feature",properties:t.properties},i);if(u){n.push(u)}}return new Ve(n);case"FeatureCollection":for(c=0,h=e.features.length;c<h;c++){var f=fr(e.features[c],i);if(f){n.push(f)}}return new Ve(n);default:throw new Error("Invalid GeoJSON object.")}}function pr(t,i,e,r){return t?t(i,e):new tr(e,r&&r.markersInheritOptions&&r)}function dr(t){return new D(t[1],t[0],t[2])}function mr(t,i,e){var r=[];for(var n=0,s=t.length,o;n<s;n++){o=i?mr(t[n],i-1,e):(e||dr)(t[n]);r.push(o)}return r}function gr(t,i){t=Y(t);return t.alt!==undefined?[h(t.lng,i),h(t.lat,i),h(t.alt,i)]:[h(t.lng,i),h(t.lat,i)]}function vr(t,i,e,r){var n=[];for(var s=0,o=t.length;s<o;s++){n.push(i?vr(t[s],Ie(t[s])?0:i-1,e,r):gr(t[s],r))}if(!i&&e&&n.length>0){n.push(n[0].slice())}return n}function wr(t,i){return t.feature?e({},t.feature,{geometry:i}):br(i)}function br(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var yr={toGeoJSON:function(t){return wr(this,{type:"Point",coordinates:gr(this.getLatLng(),t)})}};tr.include(yr);sr.include(yr);rr.include(yr);ar.include({toGeoJSON:function(t){var i=!Ie(this._latlngs);var e=vr(this._latlngs,i?1:0,false,t);return wr(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}});cr.include({toGeoJSON:function(t){var i=!Ie(this._latlngs),e=i&&!Ie(this._latlngs[0]);var r=vr(this._latlngs,e?2:i?1:0,true,t);if(!i){r=[r]}return wr(this,{type:(e?"Multi":"")+"Polygon",coordinates:r})}});Ue.include({toMultiPoint:function(t){var i=[];this.eachLayer((function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}));return wr(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint"){return this.toMultiPoint(t)}var e=i==="GeometryCollection",r=[];this.eachLayer((function(i){if(i.toGeoJSON){var n=i.toGeoJSON(t);if(e){r.push(n.geometry)}else{var s=br(n);if(s.type==="FeatureCollection"){r.push.apply(r,s.features)}else{r.push(s)}}}}));if(e){return wr(this,{geometries:r,type:"GeometryCollection"})}return{type:"FeatureCollection",features:r}}});function xr(t,i){return new ur(t,i)}var kr=xr;var Ar=He.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t;this._bounds=N(i);p(this,e)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){di(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ci(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){ui(this._image)}return this},bringToBack:function(){if(this._map){fi(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=N(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var i=this._image=t?this._url:li("img");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=c;i.onmousemove=c;i.onload=n(this.fire,this,"load");i.onerror=n(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=i.src;return}i.src=this._url;i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xi(this._image,e,i)},_reset:function(){var t=this._image,i=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();ki(t,i.min);t.style.width=e.x+"px";t.style.height=e.y+"px"},_updateOpacity:function(){wi(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 t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var _r=function(t,i,e){return new Ar(t,i,e)};var Mr=Ar.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var i=this._image=t?this._url:li("video");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=c;i.onmousemove=c;i.onloadeddata=n(this.fire,this,"load");if(t){var e=i.getElementsByTagName("source");var r=[];for(var s=0;s<e.length;s++){r.push(e[s].src)}this._url=e.length>0?r:[i.src];return}if(!v(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")){i.style["objectFit"]="fill"}i.autoplay=!!this.options.autoplay;i.loop=!!this.options.loop;i.muted=!!this.options.muted;i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var a=li("source");a.src=this._url[o];i.appendChild(a)}}});function zr(t,i,e){return new Mr(t,i,e)}var Lr=Ar.extend({_initImage:function(){var t=this._image=this._url;di(t,"leaflet-image-layer");if(this._zoomAnimated){di(t,"leaflet-zoom-animated")}if(this.options.className){di(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Cr(t,i,e){return new Lr(t,i,e)}var Er=He.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,i){if(t&&(t instanceof D||v(t))){this._latlng=Y(t);p(this,i)}else{p(this,t);this._source=i}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){wi(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){wi(this._container,1)}this.bringToFront();if(this.options.interactive){di(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){wi(this._container,0);this._removeTimeout=setTimeout(n(ci,undefined,this._container),200)}else{ci(this._container)}if(this.options.interactive){mi(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=Y(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;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 t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){ui(this._container)}return this},bringToBack:function(){if(this._map){fi(this._container)}return this},_prepareOpen:function(t){var i=this._source;if(!i._map){return false}if(i instanceof Ve){i=null;var e=this._source._layers;for(var r in e){if(e[r]._map){i=e[r];break}}if(!i){return false}this._source=i}if(!t){if(i.getCenter){t=i.getCenter()}else if(i.getLatLng){t=i.getLatLng()}else if(i.getBounds){t=i.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var i=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof i==="string"){t.innerHTML=i}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(i)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),i=I(this.options.offset),e=this._getAnchor();if(this._zoomAnimated){ki(this._container,t.add(e))}else{i=i.add(t).add(e)}var r=this._containerBottom=-i.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=r+"px";this._container.style.left=n+"px"},_getAnchor:function(){return[0,0]}});ee.include({_initOverlay:function(t,i,e,r){var n=i;if(!(n instanceof t)){n=new t(r).setContent(i)}if(e){n.setLatLng(e)}return n}});He.include({_initOverlay:function(t,i,e,r){var n=e;if(n instanceof t){p(n,r);n._source=this}else{n=i&&!r?i:new t(r,this);n.setContent(e)}return n}});var Pr=Er.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(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Er.prototype.openOn.call(this,t)},onAdd:function(t){Er.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof er)){this._source.on("preclick",Zi)}}},onRemove:function(t){Er.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof er)){this._source.off("preclick",Zi)}}},getEvents:function(){var t=Er.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",i=this._container=li("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var e=this._wrapper=li("div",t+"-content-wrapper",i);this._contentNode=li("div",t+"-content",e);Ui(i);Hi(this._contentNode);Fi(i,"contextmenu",Zi);this._tipContainer=li("div",t+"-tip-container",i);this._tip=li("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var r=this._closeButton=li("a",t+"-close-button",i);r.setAttribute("role","button");r.setAttribute("aria-label","Close popup");r.href="#close";r.innerHTML='<span aria-hidden="true">&#215;</span>';Fi(r,"click",(function(t){Qi(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="";i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth);e=Math.max(e,this.options.minWidth);i.width=e+1+"px";i.whiteSpace="";i.height="";var r=t.offsetHeight,n=this.options.maxHeight,s="leaflet-popup-scrolled";if(n&&r>n){i.height=n+"px";di(t,s)}else{mi(t,s)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();ki(this._container,i.add(e))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,i=parseInt(ai(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new S(this._containerLeft,-e-this._containerBottom);n._add(Ai(this._container));var s=t.layerPointToContainerPoint(n),o=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||o),l=I(this.options.autoPanPaddingBottomRight||o),c=t.getSize(),h=0,u=0;if(s.x+r+l.x>c.x){h=s.x+r-c.x+l.x}if(s.x-h-a.x<0){h=s.x-a.x}if(s.y+e+l.y>c.y){u=s.y+e-c.y+l.y}if(s.y-u-a.y<0){u=s.y-a.y}if(h||u){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([h,u])}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Or=function(t,i){return new Pr(t,i)};ee.mergeOptions({closePopupOnClick:true});ee.include({openPopup:function(t,i,e){this._initOverlay(Pr,t,i,e).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});He.include({bindPopup:function(t,i){this._popup=this._initOverlay(Pr,this._popup,t,i);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(t){if(this._popup){if(!(this instanceof Ve)){this._popup._source=this}if(this._popup._prepareOpen(t||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(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}Vi(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof er)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=i;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var jr=Er.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Er.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Er.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Er.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=li("div",i);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e,r=this._map,n=this._container,s=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(t),a=this.options.direction,l=n.offsetWidth,c=n.offsetHeight,h=I(this.options.offset),u=this._getAnchor();if(a==="top"){i=l/2;e=c}else if(a==="bottom"){i=l/2;e=0}else if(a==="center"){i=l/2;e=c/2}else if(a==="right"){i=0;e=c/2}else if(a==="left"){i=l;e=c/2}else if(o.x<s.x){a="right";i=0;e=c/2}else{a="left";i=l+(h.x+u.x)*2;e=c/2}t=t.subtract(I(i,e,true)).add(h).add(u);mi(n,"leaflet-tooltip-right");mi(n,"leaflet-tooltip-left");mi(n,"leaflet-tooltip-top");mi(n,"leaflet-tooltip-bottom");di(n,"leaflet-tooltip-"+a);ki(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){wi(this._container,t)}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Sr=function(t,i){return new jr(t,i)};ee.include({openTooltip:function(t,i,e){this._initOverlay(jr,t,i,e).openOn(this);return this},closeTooltip:function(t){t.close();return this}});He.include({bindTooltip:function(t,i){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(jr,this._tooltip,t,i);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(t){if(!t&&this._tooltipHandlersAdded){return}var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){e.mouseover=this._openTooltip;e.mouseout=this.closeTooltip;e.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{e.add=this._addFocusListeners}}else{e.add=this._openTooltip}if(this._tooltip.options.sticky){e.mousemove=this._moveTooltip}this[i](e);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof Ve)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){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(t){if(this._tooltip){this._tooltip.setContent(t)}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(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){Fi(i,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);Fi(i,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){i.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=false;i._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var i=t.latlng,e,r;if(this._tooltip.options.sticky&&t.originalEvent){e=this._map.mouseEventToContainerPoint(t.originalEvent);r=this._map.containerPointToLayerPoint(e);i=this._map.layerPointToLatLng(r)}this._tooltip.setLatLng(i)}});var Tr=Ke.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),e=this.options;if(e.html instanceof Element){hi(i);i.appendChild(e.html)}else{i.innerHTML=e.html!==false?e.html:""}if(e.bgPos){var r=I(e.bgPos);i.style.backgroundPosition=-r.x+"px "+-r.y+"px"}this._setIconStyles(i,"icon");return i},createShadow:function(){return null}});function Ir(t){return new Tr(t)}Ke.Default=Je;var Br=He.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Bt.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(t){p(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ci(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){ui(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){fi(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={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)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof S?t:new S(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var i=this.getPane().children,e=-t(-Infinity,Infinity);for(var r=0,n=i.length,s;r<n;r++){s=i[r].style.zIndex;if(i[r]!==this._container&&s){e=t(e,+s)}}if(isFinite(e)){this.options.zIndex=e+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Bt.ielt9){return}wi(this._container,this.options.opacity);var t=+new Date,i=false,e=false;for(var r in this._tiles){var n=this._tiles[r];if(!n.current||!n.loaded){continue}var s=Math.min(1,(t-n.loaded)/200);wi(n.el,s);if(s<1){i=true}else{if(n.active){e=true}else{this._onOpaqueTile(n)}n.active=true}}if(e&&!this._noPrune){this._pruneTiles()}if(i){z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=li("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t===undefined){return undefined}for(var e in this._levels){e=Number(e);if(this._levels[e].el.children.length||e===t){this._levels[e].el.style.zIndex=i-Math.abs(t-e);this._onUpdateLevel(e)}else{ci(this._levels[e].el);this._removeTilesAtZoom(e);this._onRemoveLevel(e);delete this._levels[e]}}var r=this._levels[t],n=this._map;if(!r){r=this._levels[t]={};r.el=li("div","leaflet-tile-container leaflet-zoom-animated",this._container);r.el.style.zIndex=i;r.origin=n.project(n.unproject(n.getPixelOrigin()),t).round();r.zoom=t;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 t,i;var e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){i=this._tiles[t];i.retain=i.current}for(t in this._tiles){i=this._tiles[t];if(i.current&&!i.active){var r=i.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(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles){if(this._tiles[i].coords.z!==t){continue}this._removeTile(i)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ci(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,i,e,r){var n=Math.floor(t/2),s=Math.floor(i/2),o=e-1,a=new S(+n,+s);a.z=+o;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(o>r){return this._retainParent(n,s,o,r)}return false},_retainChildren:function(t,i,e,r){for(var n=2*t;n<2*t+2;n++){for(var s=2*i;s<2*i+2;s++){var o=new S(n,s);o.z=e+1;var a=this._tileCoordsToKey(o),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(e+1<r){this._retainChildren(n,s,e+1,r)}}}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var i=this.options;if(undefined!==i.minNativeZoom&&t<i.minNativeZoom){return i.minNativeZoom}if(undefined!==i.maxNativeZoom&&i.maxNativeZoom<t){return i.maxNativeZoom}return t},_setView:function(t,i,e,r){var n=Math.round(i);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 s=this.options.updateWhenZooming&&n!==this._tileZoom;if(!r||s){this._tileZoom=n;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(n!==undefined){this._update(t)}if(!e){this._pruneTiles()}this._noPrune=!!e}this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels){this._setZoomTransform(this._levels[e],t,i)}},_setZoomTransform:function(t,i,e){var r=this._map.getZoomScale(e,t.zoom),n=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(i,e)).round();if(Bt.any3d){xi(t.el,n,r)}else{ki(t.el,n)}},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),r=this._tileZoom;var n=this._map.getPixelWorldBounds(this._tileZoom);if(n){this._globalTileRange=this._pxBoundsToTileRange(n)}this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],r).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],r).x/e.y)];this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],r).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],r).y/e.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),r=i.getZoomScale(e,this._tileZoom),n=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(r*2);return new B(n.subtract(s),n.add(s))},_update:function(t){var i=this._map;if(!i){return}var e=this._clampZoom(i.getZoom());if(t===undefined){t=i.getCenter()}if(this._tileZoom===undefined){return}var r=this._getTiledPixelBounds(t),n=this._pxBoundsToTileRange(r),s=n.getCenter(),o=[],a=this.options.keepBuffer,l=new B(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 h=this._tiles[c].coords;if(h.z!==this._tileZoom||!l.contains(new S(h.x,h.y))){this._tiles[c].current=false}}if(Math.abs(e-this._tileZoom)>1){this._setView(t,e);return}for(var u=n.min.y;u<=n.max.y;u++){for(var f=n.min.x;f<=n.max.x;f++){var p=new S(f,u);p.z=this._tileZoom;if(!this._isValidTile(p)){continue}var d=this._tiles[this._tileCoordsToKey(p)];if(d){d.current=true}else{o.push(p)}}}o.sort((function(t,i){return t.distanceTo(s)-i.distanceTo(s)}));if(o.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(f=0;f<o.length;f++){this._addTile(o[f],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y)){return false}}if(!this.options.bounds){return true}var r=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),r=t.scaleBy(e),n=r.add(e),s=i.unproject(r,t.z),o=i.unproject(n,t.z);return[s,o]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new R(i[0],i[1]);if(!this.options.noWrap){e=this._map.wrapLatLngBounds(e)}return e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new S(+i[0],+i[1]);e.z=+i[2];return e},_removeTile:function(t){var i=this._tiles[t];if(!i){return}ci(i.el);delete this._tiles[t];this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){di(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px";t.style.height=i.y+"px";t.onselectstart=c;t.onmousemove=c;if(Bt.ielt9&&this.options.opacity<1){wi(t,this.options.opacity)}},_addTile:function(t,i){var e=this._getTilePos(t),r=this._tileCoordsToKey(t);var s=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(s);if(this.createTile.length<2){M(n(this._tileReady,this,t,null,s))}ki(s,e);this._tiles[r]={el:s,coords:t,current:true};i.appendChild(s);this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){if(i){this.fire("tileerror",{error:i,tile:e,coords:t})}var r=this._tileCoordsToKey(t);e=this._tiles[r];if(!e){return}e.loaded=+new Date;if(this._map._fadeAnimated){wi(e.el,0);z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}else{e.active=true;this._pruneTiles()}if(!i){di(e.el,"leaflet-tile-loaded");this.fire("tileload",{tile:e.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Bt.ielt9||!this._map._fadeAnimated){M(this._pruneTiles,this)}else{setTimeout(n(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new S(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);i.z=t.z;return i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new B(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Fr(t){return new Br(t)}var Rr=Br.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,i){this._url=t;i=p(this,i);if(i.detectRetina&&Bt.retina&&i.maxZoom>0){i.tileSize=Math.floor(i.tileSize/2);if(!i.zoomReverse){i.zoomOffset++;i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)}else{i.zoomOffset--;i.minZoom=Math.min(i.maxZoom,i.minZoom+1)}i.minZoom=Math.max(0,i.minZoom)}else if(!i.zoomReverse){i.maxZoom=Math.max(i.minZoom,i.maxZoom)}else{i.minZoom=Math.min(i.maxZoom,i.minZoom)}if(typeof i.subdomains==="string"){i.subdomains=i.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){if(this._url===t&&i===undefined){i=true}this._url=t;if(!i){this.redraw()}return this},createTile:function(t,i){var e=document.createElement("img");Fi(e,"load",n(this._tileOnLoad,this,i,e));Fi(e,"error",n(this._tileOnError,this,i,e));if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){e.referrerPolicy=this.options.referrerPolicy}e.alt="";e.src=this.getTileUrl(t);return e},getTileUrl:function(t){var i={r:Bt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;if(this.options.tms){i["y"]=r}i["-y"]=r}return g(this._url,e(i,this.options))},_tileOnLoad:function(t,i){if(Bt.ielt9){setTimeout(n(t,this,null,i),0)}else{t(null,i)}},_tileOnError:function(t,i,e){var r=this.options.errorTileUrl;if(r&&i.getAttribute("src")!==r){i.src=r}t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,r=this.options.zoomOffset;if(e){t=i-t}return t+r},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){i=this._tiles[t].el;i.onload=c;i.onerror=c;if(!i.complete){i.src=b;var e=this._tiles[t].coords;ci(i);delete this._tiles[t];this.fire("tileabort",{tile:i,coords:e})}}}},_removeTile:function(t){var i=this._tiles[t];if(!i){return}i.el.setAttribute("src",b);return Br.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(!this._map||e&&e.getAttribute("src")===b){return}return Br.prototype._tileReady.call(this,t,i,e)}});function Nr(t,i){return new Rr(t,i)}var Dr=Rr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,i){this._url=t;var r=e({},this.defaultWmsParams);for(var n in i){if(!(n in this.options)){r[n]=i[n]}}i=p(this,i);var s=i.detectRetina&&Bt.retina?2:1;var o=this.getTileSize();r.width=o.x*s;r.height=o.y*s;this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code;Rr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,r=F(e.project(i[0]),e.project(i[1])),n=r.min,s=r.max,o=(this._wmsVersion>=1.3&&this._crs===$e?[n.y,n.x,s.y,s.x]:[n.x,n.y,s.x,s.y]).join(","),a=Rr.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,i){e(this.wmsParams,t);if(!i){this.redraw()}return this}});function Yr(t,i){return new Dr(t,i)}Rr.WMS=Dr;Nr.wms=Yr;var Gr=He.extend({options:{padding:.1},initialize:function(t){p(this,t);o(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();di(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,i),s=r.multiplyBy(-e).add(n).subtract(this._map._getNewPixelOrigin(t,i));if(Bt.any3d){xi(this._container,s,e)}else{ki(this._container,s)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new B(e,e.add(i.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var $r=Gr.extend({options:{tolerance:0},getEvents:function(){var t=Gr.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Gr.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Fi(t,"mousemove",this._onMouseMove,this);Fi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Fi(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;ci(this._container);Ni(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var i in this._layers){t=this._layers[i];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),r=Bt.retina?2:1;ki(i,t.min);i.width=r*e.x;i.height=r*e.y;i.style.width=e.x+"px";i.style.height=e.y+"px";if(Bt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Gr.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[o(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=i}this._drawLast=i;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order;var e=i.next;var r=i.prev;if(e){e.prev=r}else{this._drawLast=r}if(r){r.next=e}else{this._drawFirst=e}delete t._order;delete this._layers[o(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var i=t.options.dashArray.split(/[, ]+/),e=[],r,n;for(n=0;n<i.length;n++){r=Number(i[n]);if(isNaN(r)){return}e.push(r)}t.options._dashArray=e}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||M(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B;this._redrawBounds.extend(t._pxBounds.min.subtract([i,i]));this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_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 t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.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 t,i=this._redrawBounds;this._ctx.save();if(i){var e=i.getSize();this._ctx.beginPath();this._ctx.rect(i.min.x,i.min.y,e.x,e.y);this._ctx.clip()}this._drawing=true;for(var r=this._drawFirst;r;r=r.next){t=r.layer;if(!i||t._pxBounds&&t._pxBounds.intersects(i)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,i){if(!this._drawing){return}var e,r,n,s,o=t._parts,a=o.length,l=this._ctx;if(!a){return}l.beginPath();for(e=0;e<a;e++){for(r=0,n=o[e].length;r<n;r++){s=o[e][r];l[r?"lineTo":"moveTo"](s.x,s.y)}if(i){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var i=t._point,e=this._ctx,r=Math.max(Math.round(t._radius),1),n=(Math.max(Math.round(t._radiusY),1)||r)/r;if(n!==1){e.save();e.scale(1,n)}e.beginPath();e.arc(i.x,i.y/n,r,0,Math.PI*2,false);if(n!==1){e.restore()}this._fillStroke(e,t)},_fillStroke:function(t,i){var e=i.options;if(e.fill){t.globalAlpha=e.fillOpacity;t.fillStyle=e.fillColor||e.color;t.fill(e.fillRule||"evenodd")}if(e.stroke&&e.weight!==0){if(t.setLineDash){t.setLineDash(i.options&&i.options._dashArray||[])}t.globalAlpha=e.opacity;t.lineWidth=e.weight;t.strokeStyle=e.color;t.lineCap=e.lineCap;t.lineJoin=e.lineJoin;t.stroke()}},_onClick:function(t){var i=this._map.mouseEventToLayerPoint(t),e,r;for(var n=this._drawFirst;n;n=n.next){e=n.layer;if(e.options.interactive&&e._containsPoint(i)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(e)){r=e}}}this._fireEvent(r?[r]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)},_handleMouseOut:function(t){var i=this._hoveredLayer;if(i){mi(this._container,"leaflet-interactive");this._fireEvent([i],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,i){if(this._mouseHoverThrottled){return}var e,r;for(var s=this._drawFirst;s;s=s.next){e=s.layer;if(e.options.interactive&&e._containsPoint(i)){r=e}}if(r!==this._hoveredLayer){this._handleMouseOut(t);if(r){di(this._container,"leaflet-interactive");this._fireEvent([r],t,"mouseover");this._hoveredLayer=r}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(n((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(e){e.prev=r}else{return}if(r){r.next=e}else if(e){this._drawFirst=e}i.prev=this._drawLast;this._drawLast.next=i;i.next=null;this._drawLast=i;this._requestRedraw(t)},_bringToBack:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(r){r.next=e}else{return}if(e){e.prev=r}else if(r){this._drawLast=r}i.prev=null;i.next=this._drawFirst;this._drawFirst.prev=i;this._drawFirst=i;this._requestRedraw(t)}});function Zr(t){return Bt.canvas?new $r(t):null}var Hr=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Ur={_initContainer:function(){this._container=li("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Gr.prototype._update.call(this);this.fire("update")},_initPath:function(t){var i=t._container=Hr("shape");di(i,"leaflet-vml-shape "+(this.options.className||""));i.coordsize="1 1";t._path=Hr("path");i.appendChild(t._path);this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i);if(t.options.interactive){t.addInteractiveTarget(i)}},_removePath:function(t){var i=t._container;ci(i);t.removeInteractiveTarget(i);delete this._layers[o(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,r=t.options,n=t._container;n.stroked=!!r.stroke;n.filled=!!r.fill;if(r.stroke){if(!i){i=t._stroke=Hr("stroke")}n.appendChild(i);i.weight=r.weight+"px";i.color=r.color;i.opacity=r.opacity;if(r.dashArray){i.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," ")}else{i.dashStyle=""}i.endcap=r.lineCap.replace("butt","flat");i.joinstyle=r.lineJoin}else if(i){n.removeChild(i);t._stroke=null}if(r.fill){if(!e){e=t._fill=Hr("fill")}n.appendChild(e);e.color=r.fillColor||r.color;e.opacity=r.fillOpacity}else if(e){n.removeChild(e);t._fill=null}},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),r=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+r+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ui(t._container)},_bringToBack:function(t){fi(t._container)}};var Qr=Bt.vml?Hr:K;var Vr=Gr.extend({_initContainer:function(){this._container=Qr("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Qr("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ci(this._container);Ni(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;if(!this._svgSize||!this._svgSize.equals(i)){this._svgSize=i;e.setAttribute("width",i.x);e.setAttribute("height",i.y)}ki(e,t.min);e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" "));this.fire("update")},_initPath:function(t){var i=t._path=Qr("path");if(t.options.className){di(i,t.options.className)}if(t.options.interactive){di(i,"leaflet-interactive")}this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ci(t._path);t.removeInteractiveTarget(t._path);delete this._layers[o(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var i=t._path,e=t.options;if(!i){return}if(e.stroke){i.setAttribute("stroke",e.color);i.setAttribute("stroke-opacity",e.opacity);i.setAttribute("stroke-width",e.weight);i.setAttribute("stroke-linecap",e.lineCap);i.setAttribute("stroke-linejoin",e.lineJoin);if(e.dashArray){i.setAttribute("stroke-dasharray",e.dashArray)}else{i.removeAttribute("stroke-dasharray")}if(e.dashOffset){i.setAttribute("stroke-dashoffset",e.dashOffset)}else{i.removeAttribute("stroke-dashoffset")}}else{i.setAttribute("stroke","none")}if(e.fill){i.setAttribute("fill",e.fillColor||e.color);i.setAttribute("fill-opacity",e.fillOpacity);i.setAttribute("fill-rule",e.fillRule||"evenodd")}else{i.setAttribute("fill","none")}},_updatePoly:function(t,i){this._setPath(t,q(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||e,n="a"+e+","+r+" 0 1,0 ";var s=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+e*2+",0 "+n+-e*2+",0 ";this._setPath(t,s)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ui(t._path)},_bringToBack:function(t){fi(t._path)}});if(Bt.vml){Vr.include(Ur)}function Wr(t){return Bt.svg||Bt.vml?new Vr(t):null}ee.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!i){i=this._renderer=this._createRenderer()}if(!this.hasLayer(i)){this.addLayer(i)}return i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var i=this._paneRenderers[t];if(i===undefined){i=this._createRenderer({pane:t});this._paneRenderers[t]=i}return i},_createRenderer:function(t){return this.options.preferCanvas&&Zr(t)||Wr(t)}});var Kr=cr.extend({initialize:function(t,i){cr.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=N(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function qr(t,i){return new Kr(t,i)}Vr.create=Qr;Vr.pointsToPath=q;ur.geometryToLayer=fr;ur.coordsToLatLng=dr;ur.coordsToLatLngs=mr;ur.latLngToCoords=gr;ur.latLngsToCoords=vr;ur.getFeature=wr;ur.asFeature=br;ee.mergeOptions({boxZoom:true});var Jr=me.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){Fi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ni(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ci(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(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();_i();Ci();this._startPoint=this._map.mouseEventToContainerPoint(t);Fi(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=li("div","leaflet-zoom-box",this._container);di(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var i=new B(this._point,this._startPoint),e=i.getSize();ki(this._box,i.min);this._box.style.width=e.x+"px";this._box.style.height=e.y+"px"},_finish:function(){if(this._moved){ci(this._box);mi(this._container,"leaflet-crosshair")}Mi();Ei();Ni(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ee.addInitHook("addHandler","boxZoom",Jr);ee.mergeOptions({doubleClickZoom:true});var Xr=me.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),r=i.options.zoomDelta,n=t.originalEvent.shiftKey?e-r:e+r;if(i.options.doubleClickZoom==="center"){i.setZoom(n)}else{i.setZoomAround(t.containerPoint,n)}}});ee.addInitHook("addHandler","doubleClickZoom",Xr);ee.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var tn=me.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new we(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}di(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){mi(this._map._container,"leaflet-grab");mi(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 t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=N(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e);this._times.push(i);this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var i=this._offsetLimit;if(t.x<i.min.x){t.x=this._viscousLimit(t.x,i.min.x)}if(t.y<i.min.y){t.y=this._viscousLimit(t.y,i.min.y)}if(t.x>i.max.x){t.x=this._viscousLimit(t.x,i.max.x)}if(t.y>i.max.y){t.y=this._viscousLimit(t.y,i.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,r=this._draggable._newPos.x,n=(r-i+e)%t+i-e,s=(r+i+e)%t-i-e,o=Math.abs(n+e)<Math.abs(s+e)?n:s;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,e=i.options,r=!e.inertia||t.noInertia||this._times.length<2;i.fire("dragend",t);if(r){i.fire("moveend")}else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,o=e.easeLinearity,a=n.multiplyBy(o/s),l=a.distanceTo([0,0]),c=Math.min(e.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),u=c/(e.inertiaDeceleration*o),f=h.multiplyBy(-u/2).round();if(!f.x&&!f.y){i.fire("moveend")}else{f=i._limitOffset(f,i.options.maxBounds);M((function(){i.panBy(f,{duration:u,easeLinearity:o,noMoveStart:true,animate:true})}))}}}});ee.addInitHook("addHandler","dragging",tn);ee.mergeOptions({keyboard:true,keyboardPanDelta:80});var en=me.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}Fi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Ni(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 t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,r=t.scrollLeft||i.scrollLeft;this._map._container.focus();window.scrollTo(r,e)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},e=this.keyCodes,r,n;for(r=0,n=e.left.length;r<n;r++){i[e.left[r]]=[-1*t,0]}for(r=0,n=e.right.length;r<n;r++){i[e.right[r]]=[t,0]}for(r=0,n=e.down.length;r<n;r++){i[e.down[r]]=[0,t]}for(r=0,n=e.up.length;r<n;r++){i[e.up[r]]=[0,-1*t]}},_setZoomDelta:function(t){var i=this._zoomKeys={},e=this.keyCodes,r,n;for(r=0,n=e.zoomIn.length;r<n;r++){i[e.zoomIn[r]]=t}for(r=0,n=e.zoomOut.length;r<n;r++){i[e.zoomOut[r]]=-t}},_addHooks:function(){Fi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ni(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var i=t.keyCode,e=this._map,r;if(i in this._panKeys){if(!e._panAnim||!e._panAnim._inProgress){r=this._panKeys[i];if(t.shiftKey){r=I(r).multiplyBy(3)}if(e.options.maxBounds){r=e._limitOffset(I(r),e.options.maxBounds)}if(e.options.worldCopyJump){var n=e.wrapLatLng(e.unproject(e.project(e.getCenter()).add(r)));e.panTo(n)}else{e.panBy(r)}}}else if(i in this._zoomKeys){e.setZoom(e.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i])}else if(i===27&&e._popup&&e._popup.options.closeOnEscapeKey){e.closePopup()}else{return}Vi(t)}});ee.addInitHook("addHandler","keyboard",en);ee.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rn=me.extend({addHooks:function(){Fi(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ni(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Ji(t);var e=this._map.options.wheelDebounceTime;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var r=Math.max(e-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(n(this._performZoom,this),r);Vi(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),n=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,s=e?Math.ceil(n/e)*e:n,o=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0;this._startTime=null;if(!o){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(i+o)}else{t.setZoomAround(this._lastMousePos,i+o)}}});ee.addInitHook("addHandler","scrollWheelZoom",rn);var nn=600;ee.mergeOptions({tapHold:Bt.touchNative&&Bt.safari&&Bt.mobile,tapTolerance:15});var sn=me.extend({addHooks:function(){Fi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ni(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var i=t.touches[0];this._startPos=this._newPos=new S(i.clientX,i.clientY);this._holdTimeout=setTimeout(n((function(){this._cancel();if(!this._isTapValid()){return}Fi(document,"touchend",Qi);Fi(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",i)}),this),nn);Fi(document,"touchend touchcancel contextmenu",this._cancel,this);Fi(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Ni(document,"touchend",Qi);Ni(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Ni(document,"touchend touchcancel contextmenu",this._cancel,this);Ni(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new S(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var e=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});e._simulated=true;i.target.dispatchEvent(e)}});ee.addInitHook("addHandler","tapHold",sn);ee.mergeOptions({touchZoom:Bt.touch,bounceAtZoomLimits:true});var on=me.extend({addHooks:function(){di(this._map._container,"leaflet-touch-zoom");Fi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mi(this._map._container,"leaflet-touch-zoom");Ni(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming){return}var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2);this._startLatLng=i.containerPointToLatLng(this._centerPoint);if(i.options.touchZoom!=="center"){this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))}this._startDist=e.distanceTo(r);this._startZoom=i.getZoom();this._moved=false;this._zooming=true;i._stop();Fi(document,"touchmove",this._onTouchMove,this);Fi(document,"touchend touchcancel",this._onTouchEnd,this);Qi(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),s=e.distanceTo(r)/this._startDist;this._zoom=i.getScaleZoom(s,this._startZoom);if(!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)){this._zoom=i._limitZoom(this._zoom)}if(i.options.touchZoom==="center"){this._center=this._startLatLng;if(s===1){return}}else{var o=e._add(r)._divideBy(2)._subtract(this._centerPoint);if(s===1&&o.x===0&&o.y===0){return}this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}if(!this._moved){i._moveStart(true,false);this._moved=true}z(this._animRequest);var a=n(i._move,i,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=M(a,this,true);Qi(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Ni(document,"touchmove",this._onTouchMove,this);Ni(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))}}});ee.addInitHook("addHandler","touchZoom",on);ee.BoxZoom=Jr;ee.DoubleClickZoom=Xr;ee.Drag=tn;ee.Keyboard=en;ee.ScrollWheelZoom=rn;ee.TapHold=sn;ee.TouchZoom=on;t.Bounds=B;t.Browser=Bt;t.CRS=G;t.Canvas=$r;t.Circle=sr;t.CircleMarker=rr;t.Class=E;t.Control=ne;t.DivIcon=Tr;t.DivOverlay=Er;t.DomEvent=te;t.DomUtil=Bi;t.Draggable=we;t.Evented=j;t.FeatureGroup=Ve;t.GeoJSON=ur;t.GridLayer=Br;t.Handler=me;t.Icon=Ke;t.ImageOverlay=Ar;t.LatLng=D;t.LatLngBounds=R;t.Layer=He;t.LayerGroup=Ue;t.LineUtil=Re;t.Map=ee;t.Marker=tr;t.Mixin=ge;t.Path=er;t.Point=S;t.PolyUtil=ke;t.Polygon=cr;t.Polyline=ar;t.Popup=Pr;t.PosAnimation=ie;t.Projection=Ye;t.Rectangle=Kr;t.Renderer=Gr;t.SVG=Vr;t.SVGOverlay=Lr;t.TileLayer=Rr;t.Tooltip=jr;t.Transformation=U;t.Util=C;t.VideoOverlay=Mr;t.bind=n;t.bounds=F;t.canvas=Zr;t.circle=or;t.circleMarker=nr;t.control=se;t.divIcon=Ir;t.extend=e;t.featureGroup=We;t.geoJSON=xr;t.geoJson=kr;t.gridLayer=Fr;t.icon=qe;t.imageOverlay=_r;t.latLng=Y;t.latLngBounds=N;t.layerGroup=Qe;t.map=re;t.marker=ir;t.point=I;t.polygon=hr;t.polyline=lr;t.popup=Or;t.rectangle=qr;t.setOptions=p;t.stamp=o;t.svg=Wr;t.svgOverlay=Cr;t.tileLayer=Nr;t.tooltip=Sr;t.transformation=Q;t.version=i;t.videoOverlay=zr;var an=window.L;t.noConflict=function(){window.L=an;return this};window.L=t}))}));!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){const t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(i,e,r,n,s){var o=e||new L.Point(0,0);if(!n)return e=o._round(),t.setTransform.apply(this,arguments);o=o.rotateFrom(n,s),i.style[L.DomUtil.TRANSFORM]="translate3d("+o.x+"px,"+o.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(i,e,r,n,s){if(!r)return t.setPosition.apply(this,arguments);i._leaflet_pos=e,L.Browser.any3d?L.DomUtil.setTransform(i,e,s,r,n):(i.style.left=e.x+"px",i.style.top=e.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,i){if(!t)return this;var e=Math.sin(t),r=Math.cos(t),n=i.x,s=i.y,o=this.x-n,a=this.y-s;return new L.Point(o*r-a*e+n,o*e+a*r+s)}});const i=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(i.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(i._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),e=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(e).add(t))}}});const e=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(e._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var i=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(i);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(i))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new L.Point(this._containerLeft,-e-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var s=n._add(this._map._getMapPanePos()),o=L.point(this.options.autoPanPadding),a=L.point(this.options.autoPanPaddingTopLeft||o),l=L.point(this.options.autoPanPaddingBottomRight||o),c=t.getSize(),h=0,u=0;s.x+r+l.x>c.x&&(h=s.x+r-c.x+l.x),s.x-h-a.x<0&&(h=s.x-a.x),s.y+e+l.y>c.y&&(u=s.y+e-c.y+l.y),s.y-u-a.y<0&&(u=s.y-a.y),(h||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,u]))}}});const r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);i=this._map.rotatedPointToMapPanePoint(i),this._setPosition(i)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,i){var e=this.options,r=e[i+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),s=L.point("shadow"===i&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=s.x+"px "+s.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});const n=L.extend({},L.Marker.prototype);var s;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var o={_onDrag:function(t){var i=this._marker,e=i.options.rotation||i.options.rotateWithView,r=i._shadow,n=L.DomUtil.getPosition(i._icon);!e&&r&&L.DomUtil.setPosition(r,n),i._map._rotate&&(n=i._map.mapPanePointToRotatedPoint(n));var s=i._map.layerPointToLatLng(n);i._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e?i.setLatLng(s):i.fire("move",t),i.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),s._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(s=s||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:o._onDrag.bind(this.dragging),_onDragEnd:o._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var i=this.options.rotation||0;this.options.rotateWithView&&(i+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,i,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,i,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});const a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=a.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});const 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(t,i){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var e=this._map.getZoomScale(i,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,i,t);L.DomUtil.setTransform(this._container,r,e)},_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()}});const c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,i){i.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);const i=this.getPixelOrigin(),e=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(i)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(i)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(i)),s=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(i));return L.bounds([L.point(Math.min(e.x,r.x,s.x,n.x),Math.min(e.y,r.y,s.y,n.y)),L.point(Math.max(e.x,r.x,s.x,n.x),Math.max(e.y,r.y,s.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var i=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,e=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,e),n=r.rotateFrom(i,e);L.DomUtil.setPosition(this._rotatePane,r,i,e),this._pivot=e,this._bearing=i,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside(t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);i=i||{};const e=L.point(i.paddingTopLeft||i.padding||[0,0]),r=L.point(i.paddingBottomRight||i.padding||[0,0]),n=this._container.getBoundingClientRect(),s=this.latLngToContainerPoint(t),o=L.bounds([L.point(n),L.point(n).add(this.getSize())]),a=o.getCenter(),l=L.bounds([o.min.add(e),o.max.subtract(r)]),h=l.getSize();if(!l.contains(s)){this._enforcingBounds=!0;const t=s.subtract(l.getCenter()),e=l.extend(s).getSize().subtract(h);a.x+=t.x<0?-e.x:e.x,a.y+=t.y<0?-e.y:e.y,this.panTo(this.containerPointToLatLng(a),i),this._enforcingBounds=!1}return this},getBoundsZoom(t,i,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),e=L.point(e||[0,0]);let r=this.getZoom()||0;const n=this.getMinZoom(),s=this.getMaxZoom(),o=this.getSize().subtract(e),a=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,h=o.x/a.x,u=o.y/a.y,f=i?Math.max(h,u):Math.min(h,u);return r=this.getScaleZoom(f,r),l&&(r=Math.round(r/(l/100))*(l/100),r=i?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(s,r))},_getCenterOffset:function(t){var i=c._getCenterOffset.apply(this,arguments);return this._rotate&&(i=i.rotate(this._bearing)),i},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,i){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var e=this.getSize()._divideBy(2);return this.project(t,i).rotate(this._bearing)._subtract(e)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,i){if(t=t||this.getCenter(),i=i||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var e=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(e,i),n=this.project(t,i).floor(),s=this.getSize(),o=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([s.x,0]).floor(),this.containerPointToLayerPoint([0,s.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(o),n.add(o))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var i=t,e=this.getSize(),r=e.multiplyBy(-i),n=e.multiplyBy(1+i);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,e=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(i,e),s=n.toBounds(t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(s);this.setView(n,o.maxZoom?Math.min(a,o.maxZoom):a)}var l={latlng:n,bounds:s,timestamp:t.timestamp,heading:r};for(var c in t.coords)"number"==typeof t.coords[c]&&(l[c]=t.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var i=t.webkitCompassHeading||t.alpha,e=0;!t.absolute&&t.webkitCompassHeading&&(i=360-i),t.absolute||void 0===window.orientation||(e=window.orientation),this._map.setBearing(i-e)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming&&!this._rotating){var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),n=e.subtract(r);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))),this._startDist=e.distanceTo(r),this._startZoom=i.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=i.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,i._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var i,e=this._map,r=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=r.subtract(n),o=r.distanceTo(n)/this._startDist;if(this._rotating){var a=(Math.atan(s.x/s.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;s.y<0&&(a+=180),a&&e.setBearing(this._startBearing-a)}if(this._zooming)if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{if(i=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===o&&0===i.x&&0===i.y)return;var l=-e.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=e.unproject(e.project(this._pinchStartLatLng).subtract(i.rotate(l)))}this._moved||(e._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=e._move.bind(e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var i=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),e=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");e.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\")",e.style.cursor="grab",e.style.display="block",e.style.width="100%",e.style.height="100%",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",i);return r.appendChild(e),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(i.style.display="none"),i},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var i=t.clientX-this.dragstartX;this._map.setBearing(i)}},_cycleState:function(t){if(this._map){var i=this._map;i.touchRotate.enabled()||i.compassBearing.enabled()?i.compassBearing.enabled()?(i.compassBearing.disable(),i.setBearing(0),this.options.closeOnZeroBearing&&i.touchRotate.enable()):(i.touchRotate.disable(),i.compassBearing.enable()):i.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,i=t.getBearing();this._arrow.style.transform="rotate("+i+"deg)",i&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===i&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));U((function(t,i){
7
+ (function(t,e){e(i)})(U,(function(t){var i="1.9.4";function e(t){var i,e,r,n;for(e=1,r=arguments.length;e<r;e++){n=arguments[e];for(i in n){t[i]=n[i]}}return t}var r=Object.create||function(){function t(){}return function(i){t.prototype=i;return new t}}();function n(t,i){var e=Array.prototype.slice;if(t.bind){return t.bind.apply(t,e.call(arguments,1))}var r=e.call(arguments,2);return function(){return t.apply(i,r.length?r.concat(e.call(arguments)):arguments)}}var s=0;function o(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++s}return t._leaflet_id}function a(t,i,e){var r,n,s,o;o=function(){r=false;if(n){s.apply(e,n);n=false}};s=function(){if(r){n=arguments}else{t.apply(e,arguments);setTimeout(o,i);r=true}};return s}function l(t,i,e){var r=i[1],n=i[0],s=r-n;return t===r&&e?t:((t-n)%s+s)%s+n}function c(){return false}function h(t,i){if(i===false){return t}var e=Math.pow(10,i===undefined?6:i);return Math.round(t*e)/e}function f(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return f(t).split(/\s+/)}function p(t,i){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?r(t.options):{}}for(var e in i){t.options[e]=i[e]}return t.options}function d(t,i,e){var r=[];for(var n in t){r.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]))}return(!i||i.indexOf("?")===-1?"?":"&")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,i){return t.replace(m,(function(t,e){var r=i[e];if(r===undefined){throw new Error("No value provided for variable "+t)}else if(typeof r==="function"){r=r(i)}return r}))}var v=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function w(t,i){for(var e=0;e<t.length;e++){if(t[e]===i){return e}}return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function k(t){var i=+new Date,e=Math.max(0,16-(i-x));x=i+e;return window.setTimeout(t,e)}var A=window.requestAnimationFrame||y("RequestAnimationFrame")||k;var _=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function M(t,i,e){if(e&&A===k){t.call(i)}else{return A.call(window,n(t,i))}}function z(t){if(t){_.call(window,t)}}var C={__proto__:null,extend:e,create:r,bind:n,get lastId(){return s},stamp:o,throttle:a,wrapNum:l,falseFn:c,formatNum:h,trim:f,splitWords:u,setOptions:p,getParamString:d,template:g,isArray:v,indexOf:w,emptyImageUrl:b,requestFn:A,cancelFn:_,requestAnimFrame:M,cancelAnimFrame:z};function E(){}E.extend=function(t){var i=function(){p(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var n=i.__super__=this.prototype;var s=r(n);s.constructor=i;i.prototype=s;for(var o in this){if(Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"){i[o]=this[o]}}if(t.statics){e(i,t.statics)}if(t.includes){P(t.includes);e.apply(null,[s].concat(t.includes))}e(s,t);delete s.statics;delete s.includes;if(s.options){s.options=n.options?r(n.options):{};e(s.options,t.options)}s._initHooks=[];s.callInitHooks=function(){if(this._initHooksCalled){return}if(n.callInitHooks){n.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,i=s._initHooks.length;t<i;t++){s._initHooks[t].call(this)}};return i};E.include=function(t){var i=this.prototype.options;e(this.prototype,t);if(t.options){this.prototype.options=i;this.mergeOptions(t.options)}return this};E.mergeOptions=function(t){e(this.prototype.options,t);return this};E.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1);var e=typeof t==="function"?t:function(){this[t].apply(this,i)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(e);return this};function P(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=v(t)?t:[t];for(var i=0;i<t.length;i++){if(t[i]===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 O={on:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i)}}else{t=u(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e)}}return this},off:function(t,i,e){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var r in t){this._off(r,t[r],i)}}else{t=u(t);var n=arguments.length===1;for(var s=0,o=t.length;s<o;s++){if(n){this._off(t[s])}else{this._off(t[s],i,e)}}}return this},_on:function(t,i,e,r){if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}if(this._listens(t,i,e)!==false){return}if(e===this){e=undefined}var n={fn:i,ctx:e};if(r){n.once=true}this._events=this._events||{};this._events[t]=this._events[t]||[];this._events[t].push(n)},_off:function(t,i,e){var r,n,s;if(!this._events){return}r=this._events[t];if(!r){return}if(arguments.length===1){if(this._firingCount){for(n=0,s=r.length;n<s;n++){r[n].fn=c}}delete this._events[t];return}if(typeof i!=="function"){console.warn("wrong listener type: "+typeof i);return}var o=this._listens(t,i,e);if(o!==false){var a=r[o];if(this._firingCount){a.fn=c;this._events[t]=r=r.slice()}r.splice(o,1)}},fire:function(t,i,r){if(!this.listens(t,r)){return this}var n=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var o=0,a=s.length;o<a;o++){var l=s[o];var c=l.fn;if(l.once){this.off(t,c,l.ctx)}c.call(l.ctx||this,n)}this._firingCount--}}if(r){this._propagateEvent(n)}return this},listens:function(t,i,e,r){if(typeof t!=="string"){console.warn('"string" type argument expected')}var n=i;if(typeof i!=="function"){r=!!i;n=undefined;e=undefined}var s=this._events&&this._events[t];if(s&&s.length){if(this._listens(t,n,e)!==false){return true}}if(r){for(var o in this._eventParents){if(this._eventParents[o].listens(t,i,e,r)){return true}}}return false},_listens:function(t,i,e){if(!this._events){return false}var r=this._events[t]||[];if(!i){return!!r.length}if(e===this){e=undefined}for(var n=0,s=r.length;n<s;n++){if(r[n].fn===i&&r[n].ctx===e){return n}}return false},once:function(t,i,e){if(typeof t==="object"){for(var r in t){this._on(r,t[r],i,true)}}else{t=u(t);for(var n=0,s=t.length;n<s;n++){this._on(t[n],i,e,true)}}return this},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[o(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[o(t)]}return this},_propagateEvent:function(t){for(var i in this._eventParents){this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),true)}}};O.addEventListener=O.on;O.removeEventListener=O.clearAllEventListeners=O.off;O.addOneTimeEventListener=O.once;O.fireEvent=O.fire;O.hasEventListeners=O.listens;var j=E.extend(O);function S(t,i,e){this.x=e?Math.round(t):t;this.y=e?Math.round(i):i}var T=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};S.prototype={clone:function(){return new S(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new S(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new S(this.x/t.x,this.y/t.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=T(this.x);this.y=T(this.y);return this},distanceTo:function(t){t=I(t);var i=t.x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){t=I(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=I(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}};function I(t,i,e){if(t instanceof S){return t}if(v(t)){return new S(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new S(t.x,t.y)}return new S(t,i,e)}function B(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}B.prototype={extend:function(t){var i,e;if(!t){return this}if(t instanceof S||typeof t[0]==="number"||"x"in t){i=e=I(t)}else{t=F(t);i=t.min;e=t.max;if(!i||!e){return this}}if(!this.min&&!this.max){this.min=i.clone();this.max=e.clone()}else{this.min.x=Math.min(i.x,this.min.x);this.max.x=Math.max(e.x,this.max.x);this.min.y=Math.min(i.y,this.min.y);this.max.y=Math.max(e.y,this.max.y)}return this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(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(t){var i,e;if(typeof t[0]==="number"||t instanceof S){t=I(t)}else{t=F(t)}if(t instanceof B){i=t.min;e=t.max}else{i=e=t}return i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=F(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>=i.x&&r.x<=e.x,o=n.y>=i.y&&r.y<=e.y;return s&&o},overlaps:function(t){t=F(t);var i=this.min,e=this.max,r=t.min,n=t.max,s=n.x>i.x&&r.x<e.x,o=n.y>i.y&&r.y<e.y;return s&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var i=this.min,e=this.max,r=Math.abs(i.x-e.x)*t,n=Math.abs(i.y-e.y)*t;return F(I(i.x-r,i.y-n),I(e.x+r,e.y+n))},equals:function(t){if(!t){return false}t=F(t);return this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())}};function F(t,i){if(!t||t instanceof B){return t}return new B(t,i)}function R(t,i){if(!t){return}var e=i?[t,i]:t;for(var r=0,n=e.length;r<n;r++){this.extend(e[r])}}R.prototype={extend:function(t){var i=this._southWest,e=this._northEast,r,n;if(t instanceof D){r=t;n=t}else if(t instanceof R){r=t._southWest;n=t._northEast;if(!r||!n){return this}}else{return t?this.extend(Y(t)||N(t)):this}if(!i&&!e){this._southWest=new D(r.lat,r.lng);this._northEast=new D(n.lat,n.lng)}else{i.lat=Math.min(r.lat,i.lat);i.lng=Math.min(r.lng,i.lng);e.lat=Math.max(n.lat,e.lat);e.lng=Math.max(n.lng,e.lng)}return this},pad:function(t){var i=this._southWest,e=this._northEast,r=Math.abs(i.lat-e.lat)*t,n=Math.abs(i.lng-e.lng)*t;return new R(new D(i.lat-r,i.lng-n),new D(e.lat+r,e.lng+n))},getCenter:function(){return new D((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 D(this.getNorth(),this.getWest())},getSouthEast:function(){return new D(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(t){if(typeof t[0]==="number"||t instanceof D||"lat"in t){t=Y(t)}else{t=N(t)}var i=this._southWest,e=this._northEast,r,n;if(t instanceof R){r=t.getSouthWest();n=t.getNorthEast()}else{r=n=t}return r.lat>=i.lat&&n.lat<=e.lat&&r.lng>=i.lng&&n.lng<=e.lng},intersects:function(t){t=N(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>=i.lat&&r.lat<=e.lat,o=n.lng>=i.lng&&r.lng<=e.lng;return s&&o},overlaps:function(t){t=N(t);var i=this._southWest,e=this._northEast,r=t.getSouthWest(),n=t.getNorthEast(),s=n.lat>i.lat&&r.lat<e.lat,o=n.lng>i.lng&&r.lng<e.lng;return s&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){if(!t){return false}t=N(t);return this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i)},isValid:function(){return!!(this._southWest&&this._northEast)}};function N(t,i){if(t instanceof R){return t}return new R(t,i)}function D(t,i,e){if(isNaN(t)||isNaN(i)){throw new Error("Invalid LatLng object: ("+t+", "+i+")")}this.lat=+t;this.lng=+i;if(e!==undefined){this.alt=+e}}D.prototype={equals:function(t,i){if(!t){return false}t=Y(t);var e=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return e<=(i===undefined?1e-9:i)},toString:function(t){return"LatLng("+h(this.lat,t)+", "+h(this.lng,t)+")"},distanceTo:function(t){return $.distance(this,Y(t))},wrap:function(){return $.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,e=i/Math.cos(Math.PI/180*this.lat);return N([this.lat-i,this.lng-e],[this.lat+i,this.lng+e])},clone:function(){return new D(this.lat,this.lng,this.alt)}};function Y(t,i,e){if(t instanceof D){return t}if(v(t)&&typeof t[0]!=="object"){if(t.length===3){return new D(t[0],t[1],t[2])}if(t.length===2){return new D(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new D(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(i===undefined){return null}return new D(t,i,e)}var G={latLngToPoint:function(t,i){var e=this.projection.project(t),r=this.scale(i);return this.transformation._transform(e,r)},pointToLatLng:function(t,i){var e=this.scale(i),r=this.transformation.untransform(t,e);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var i=this.projection.bounds,e=this.scale(t),r=this.transformation.transform(i.min,e),n=this.transformation.transform(i.max,e);return new B(r,n)},infinite:false,wrapLatLng:function(t){var i=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,e=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,r=t.alt;return new D(e,i,r)},wrapLatLngBounds:function(t){var i=t.getCenter(),e=this.wrapLatLng(i),r=i.lat-e.lat,n=i.lng-e.lng;if(r===0&&n===0){return t}var s=t.getSouthWest(),o=t.getNorthEast(),a=new D(s.lat-r,s.lng-n),l=new D(o.lat-r,o.lng-n);return new R(a,l)}};var $=e({},G,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var e=Math.PI/180,r=t.lat*e,n=i.lat*e,s=Math.sin((i.lat-t.lat)*e/2),o=Math.sin((i.lng-t.lng)*e/2),a=s*s+Math.cos(r)*Math.cos(n)*o*o,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var Z=6378137;var H={R:Z,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,e=this.MAX_LATITUDE,r=Math.max(Math.min(e,t.lat),-e),n=Math.sin(r*i);return new S(this.R*t.lng*i,this.R*Math.log((1+n)/(1-n))/2)},unproject:function(t){var i=180/Math.PI;return new D((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:function(){var t=Z*Math.PI;return new B([-t,-t],[t,t])}()};function U(t,i,e,r){if(v(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=i;this._c=e;this._d=r}U.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){i=i||1;t.x=i*(this._a*t.x+this._b);t.y=i*(this._c*t.y+this._d);return t},untransform:function(t,i){i=i||1;return new S((t.x/i-this._b)/this._a,(t.y/i-this._d)/this._c)}};function Q(t,i,e,r){return new U(t,i,e,r)}var V=e({},$,{code:"EPSG:3857",projection:H,transformation:function(){var t=.5/(Math.PI*H.R);return Q(t,.5,-t,.5)}()});var W=e({},V,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,i){var e="",r,n,s,o,a,l;for(r=0,s=t.length;r<s;r++){a=t[r];for(n=0,o=a.length;n<o;n++){l=a[n];e+=(n?"L":"M")+l.x+" "+l.y}e+=i?Bt.svg?"z":"x":""}return e||"M0 0"}var q=document.documentElement.style;var X="ActiveXObject"in window;var tt=X&&!document.addEventListener;var it="msLaunchUri"in navigator&&!("documentMode"in document);var et=It("webkit");var rt=It("android");var nt=It("android 2")||It("android 3");var st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var ot=rt&&It("Google")&&st<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!it&&It("chrome");var ct=It("gecko")&&!et&&!at&&!X;var ht=!lt&&It("safari");var ft=It("phantom");var ut="OTransition"in q;var pt=navigator.platform.indexOf("Win")===0;var dt=X&&"transition"in q;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!nt;var gt="MozPerspective"in q;var vt=!window.L_DISABLE_3D&&(dt||mt||gt)&&!ut&&!ft;var wt=typeof orientation!=="undefined"||It("mobile");var bt=wt&&et;var yt=wt&&mt;var xt=!window.PointerEvent&&window.MSPointerEvent;var kt=!!(window.PointerEvent||xt);var At="ontouchstart"in window||!!window.TouchEvent;var _t=!window.L_NO_TOUCH&&(At||kt);var Mt=wt&&at;var zt=wt&&ct;var Lt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Ct=function(){var t=false;try{var i=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,i);window.removeEventListener("testPassiveEventSupport",c,i)}catch(e){}return t}();var Et=function(){return!!document.createElement("canvas").getContext}();var Pt=!!(document.createElementNS&&K("svg").createSVGRect);var Ot=!!Pt&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var jt=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;i.style.behavior="url(#default#VML)";return i&&typeof i.adj==="object"}catch(e){return false}}();var St=navigator.platform.indexOf("Mac")===0;var Tt=navigator.platform.indexOf("Linux")===0;function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:X,ielt9:tt,edge:it,webkit:et,android:rt,android23:nt,androidStock:ot,opera:at,chrome:lt,gecko:ct,safari:ht,phantom:ft,opera12:ut,win:pt,ie3d:dt,webkit3d:mt,gecko3d:gt,any3d:vt,mobile:wt,mobileWebkit:bt,mobileWebkit3d:yt,msPointer:xt,pointer:kt,touch:_t,touchNative:At,mobileOpera:Mt,mobileGecko:zt,retina:Lt,passiveEvents:Ct,canvas:Et,svg:Pt,vml:jt,inlineSvg:Ot,mac:St,linux:Tt};var Ft=Bt.msPointer?"MSPointerDown":"pointerdown";var Rt=Bt.msPointer?"MSPointerMove":"pointermove";var Nt=Bt.msPointer?"MSPointerUp":"pointerup";var Dt=Bt.msPointer?"MSPointerCancel":"pointercancel";var Yt={touchstart:Ft,touchmove:Rt,touchend:Nt,touchcancel:Dt};var Gt={touchstart:qt,touchmove:Jt,touchend:Jt,touchcancel:Jt};var $t={};var Zt=false;function Ht(t,i,e){if(i==="touchstart"){Kt()}if(!Gt[i]){console.warn("wrong event specified:",i);return c}e=Gt[i].bind(this,e);t.addEventListener(Yt[i],e,false);return e}function Ut(t,i,e){if(!Yt[i]){console.warn("wrong event specified:",i);return}t.removeEventListener(Yt[i],e,false)}function Qt(t){$t[t.pointerId]=t}function Vt(t){if($t[t.pointerId]){$t[t.pointerId]=t}}function Wt(t){delete $t[t.pointerId]}function Kt(){if(!Zt){document.addEventListener(Ft,Qt,true);document.addEventListener(Rt,Vt,true);document.addEventListener(Nt,Wt,true);document.addEventListener(Dt,Wt,true);Zt=true}}function Jt(t,i){if(i.pointerType===(i.MSPOINTER_TYPE_MOUSE||"mouse")){return}i.touches=[];for(var e in $t){i.touches.push($t[e])}i.changedTouches=[i];t(i)}function qt(t,i){if(i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH){Qi(i)}Jt(t,i)}function Xt(t){var i={},e,r;for(r in t){e=t[r];i[r]=e&&e.bind?e.bind(t):e}t=i;i.type="dblclick";i.detail=2;i.isTrusted=false;i._simulated=true;return i}var ti=200;function ii(t,i){t.addEventListener("dblclick",i);var e=0,r;function n(t){if(t.detail!==1){r=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var n=Wi(t);if(n.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))&&!n.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){return}var s=Date.now();if(s-e<=ti){r++;if(r===2){i(Xt(t))}}else{r=1}e=s}t.addEventListener("click",n);return{dblclick:i,simDblclick:n}}function ei(t,i){t.removeEventListener("dblclick",i.dblclick);t.removeEventListener("click",i.simDblclick)}var ri=yi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var ni=yi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var si=ni==="webkitTransition"||ni==="OTransition"?ni+"End":"transitionend";function oi(t){return typeof t==="string"?document.getElementById(t):t}function ai(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||e==="auto")&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);e=r?r[i]:null}return e==="auto"?null:e}function li(t,i,e){var r=document.createElement(t);r.className=i||"";if(e){e.appendChild(r)}return r}function ci(t){var i=t.parentNode;if(i){i.removeChild(t)}}function hi(t){while(t.firstChild){t.removeChild(t.firstChild)}}function fi(t){var i=t.parentNode;if(i&&i.lastChild!==t){i.appendChild(t)}}function ui(t){var i=t.parentNode;if(i&&i.firstChild!==t){i.insertBefore(t,i.firstChild)}}function pi(t,i){if(t.classList!==undefined){return t.classList.contains(i)}var e=vi(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function di(t,i){if(t.classList!==undefined){var e=u(i);for(var r=0,n=e.length;r<n;r++){t.classList.add(e[r])}}else if(!pi(t,i)){var s=vi(t);gi(t,(s?s+" ":"")+i)}}function mi(t,i){if(t.classList!==undefined){t.classList.remove(i)}else{gi(t,f((" "+vi(t)+" ").replace(" "+i+" "," ")))}}function gi(t,i){if(t.className.baseVal===undefined){t.className=i}else{t.className.baseVal=i}}function vi(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function wi(t,i){if("opacity"in t.style){t.style.opacity=i}else if("filter"in t.style){bi(t,i)}}function bi(t,i){var e=false,r="DXImageTransform.Microsoft.Alpha";try{e=t.filters.item(r)}catch(n){if(i===1){return}}i=Math.round(i*100);if(e){e.Enabled=i!==100;e.Opacity=i}else{t.style.filter+=" progid:"+r+"(opacity="+i+")"}}function yi(t){var i=document.documentElement.style;for(var e=0;e<t.length;e++){if(t[e]in i){return t[e]}}return false}function xi(t,i,e){var r=i||new S(0,0);t.style[ri]=(Bt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(e?" scale("+e+")":"")}function ki(t,i){t._leaflet_pos=i;if(Bt.any3d){xi(t,i)}else{t.style.left=i.x+"px";t.style.top=i.y+"px"}}function Ai(t){return t._leaflet_pos||new S(0,0)}var _i;var Mi;var zi;if("onselectstart"in document){_i=function(){Fi(window,"selectstart",Qi)};Mi=function(){Ni(window,"selectstart",Qi)}}else{var Li=yi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);_i=function(){if(Li){var t=document.documentElement.style;zi=t[Li];t[Li]="none"}};Mi=function(){if(Li){document.documentElement.style[Li]=zi;zi=undefined}}}function Ci(){Fi(window,"dragstart",Qi)}function Ei(){Ni(window,"dragstart",Qi)}var Pi,Oi;function ji(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Si();Pi=t;Oi=t.style.outlineStyle;t.style.outlineStyle="none";Fi(window,"keydown",Si)}function Si(){if(!Pi){return}Pi.style.outlineStyle=Oi;Pi=undefined;Oi=undefined;Ni(window,"keydown",Si)}function Ti(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ii(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Bi={__proto__:null,TRANSFORM:ri,TRANSITION:ni,TRANSITION_END:si,get:oi,getStyle:ai,create:li,remove:ci,empty:hi,toFront:fi,toBack:ui,hasClass:pi,addClass:di,removeClass:mi,setClass:gi,getClass:vi,setOpacity:wi,testProp:yi,setTransform:xi,setPosition:ki,getPosition:Ai,get disableTextSelection(){return _i},get enableTextSelection(){return Mi},disableImageDrag:Ci,enableImageDrag:Ei,preventOutline:ji,restoreOutline:Si,getSizedParentNode:Ti,getScale:Ii};function Fi(t,i,e,r){if(i&&typeof i==="object"){for(var n in i){Gi(t,n,i[n],e)}}else{i=u(i);for(var s=0,o=i.length;s<o;s++){Gi(t,i[s],e,r)}}return this}var Ri="_leaflet_events";function Ni(t,i,e,r){if(arguments.length===1){Di(t);delete t[Ri]}else if(i&&typeof i==="object"){for(var n in i){$i(t,n,i[n],e)}}else{i=u(i);if(arguments.length===2){Di(t,(function(t){return w(i,t)!==-1}))}else{for(var s=0,o=i.length;s<o;s++){$i(t,i[s],e,r)}}}return this}function Di(t,i){for(var e in t[Ri]){var r=e.split(/\d/)[0];if(!i||i(r)){$i(t,r,null,null,e)}}}var Yi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Gi(t,i,e,r){var n=i+o(e)+(r?"_"+o(r):"");if(t[Ri]&&t[Ri][n]){return this}var s=function(i){return e.call(r||t,i||window.event)};var a=s;if(!Bt.touchNative&&Bt.pointer&&i.indexOf("touch")===0){s=Ht(t,i,s)}else if(Bt.touch&&i==="dblclick"){s=ii(t,s)}else if("addEventListener"in t){if(i==="touchstart"||i==="touchmove"||i==="wheel"||i==="mousewheel"){t.addEventListener(Yi[i]||i,s,Bt.passiveEvents?{passive:false}:false)}else if(i==="mouseenter"||i==="mouseleave"){s=function(i){i=i||window.event;if(Xi(t,i)){a(i)}};t.addEventListener(Yi[i],s,false)}else{t.addEventListener(i,a,false)}}else{t.attachEvent("on"+i,s)}t[Ri]=t[Ri]||{};t[Ri][n]=s}function $i(t,i,e,r,n){n=n||i+o(e)+(r?"_"+o(r):"");var s=t[Ri]&&t[Ri][n];if(!s){return this}if(!Bt.touchNative&&Bt.pointer&&i.indexOf("touch")===0){Ut(t,i,s)}else if(Bt.touch&&i==="dblclick"){ei(t,s)}else if("removeEventListener"in t){t.removeEventListener(Yi[i]||i,s,false)}else{t.detachEvent("on"+i,s)}t[Ri][n]=null}function Zi(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function Hi(t){Gi(t,"wheel",Zi);return this}function Ui(t){Fi(t,"mousedown touchstart dblclick contextmenu",Zi);t["_leaflet_disable_click"]=true;return this}function Qi(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function Vi(t){Qi(t);Zi(t);return this}function Wi(t){if(t.composedPath){return t.composedPath()}var i=[];var e=t.target;while(e){i.push(e);e=e.parentNode}return i}function Ki(t,i){if(!i){return new S(t.clientX,t.clientY)}var e=Ii(i),r=e.boundingClientRect;return new S((t.clientX-r.left)/e.x-i.clientLeft,(t.clientY-r.top)/e.y-i.clientTop)}var Ji=Bt.linux&&Bt.chrome?window.devicePixelRatio:Bt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function qi(t){return Bt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ji:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Xi(t,i){var e=i.relatedTarget;if(!e){return true}try{while(e&&e!==t){e=e.parentNode}}catch(r){return false}return e!==t}var te={__proto__:null,on:Fi,off:Ni,stopPropagation:Zi,disableScrollPropagation:Hi,disableClickPropagation:Ui,preventDefault:Qi,stop:Vi,getPropagationPath:Wi,getMousePosition:Ki,getWheelDelta:qi,isExternalTarget:Xi,addListener:Fi,removeListener:Ni};var ie=j.extend({run:function(t,i,e,r){this.stop();this._el=t;this._inProgress=true;this._duration=e||.25;this._easeOutPower=1/Math.max(r||.5,.2);this._startPos=Ai(t);this._offset=i.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=M(this._animate,this);this._step()},_step:function(t){var i=+new Date-this._startTime,e=this._duration*1e3;if(i<e){this._runFrame(this._easeOut(i/e),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,i){var e=this._startPos.add(this._offset.multiplyBy(t));if(i){e._round()}ki(this._el,e);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var ee=j.extend({options:{crs:V,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(t,i){i=p(this,i);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=n(this._onResize,this);this._initEvents();if(i.maxBounds){this.setMaxBounds(i.maxBounds)}if(i.zoom!==undefined){this._zoom=this._limitZoom(i.zoom)}if(i.center&&i.zoom!==undefined){this.setView(Y(i.center),i.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ni&&Bt.any3d&&!Bt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Fi(this._proxy,si,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,i,r){i=i===undefined?this._zoom:this._limitZoom(i);t=this._limitCenter(Y(t),i,this.options.maxBounds);r=r||{};this._stop();if(this._loaded&&!r.reset&&r!==true){if(r.animate!==undefined){r.zoom=e({animate:r.animate},r.zoom);r.pan=e({animate:r.animate,duration:r.duration},r.pan)}var n=this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,r.zoom):this._tryAnimatedPan(t,r.pan);if(n){clearTimeout(this._sizeTimer);return this}}this._resetView(t,i,r.pan&&r.pan.noMoveStart);return this},setZoom:function(t,i){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:i})},zoomIn:function(t,i){t=t||(Bt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,i)},zoomOut:function(t,i){t=t||(Bt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,i)},setZoomAround:function(t,i,e){var r=this.getZoomScale(i),n=this.getSize().divideBy(2),s=t instanceof S?t:this.latLngToContainerPoint(t),o=s.subtract(n).multiplyBy(1-1/r),a=this.containerPointToLatLng(n.add(o));return this.setView(a,i,{zoom:e})},_getBoundsCenterZoom:function(t,i){i=i||{};t=t.getBounds?t.getBounds():N(t);var e=I(i.paddingTopLeft||i.padding||[0,0]),r=I(i.paddingBottomRight||i.padding||[0,0]),n=this.getBoundsZoom(t,false,e.add(r));n=typeof i.maxZoom==="number"?Math.min(i.maxZoom,n):n;if(n===Infinity){return{center:t.getCenter(),zoom:n}}var s=r.subtract(e).divideBy(2),o=this.project(t.getSouthWest(),n),a=this.project(t.getNorthEast(),n),l=this.unproject(o.add(a).divideBy(2).add(s),n);return{center:l,zoom:n}},fitBounds:function(t,i){t=N(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var e=this._getBoundsCenterZoom(t,i);return this.setView(e.center,e.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){t=I(t).round();i=i||{};if(!t.x&&!t.y){return this.fire("moveend")}if(i.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new ie;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!i.noMoveStart){this.fire("movestart")}if(i.animate!==false){di(this._mapPane,"leaflet-pan-anim");var e=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,e,i.duration||.25,i.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,i,e){e=e||{};if(e.animate===false||!Bt.any3d){return this.setView(t,i,e)}this._stop();var r=this.project(this.getCenter()),n=this.project(t),s=this.getSize(),o=this._zoom;t=Y(t);i=i===undefined?o:i;var a=Math.max(s.x,s.y),l=a*this.getZoomScale(o,i),c=n.distanceTo(r)||1,h=1.42,f=h*h;function u(t){var i=t?-1:1,e=t?l:a,r=l*l-a*a+i*f*f*c*c,n=2*e*f*c,s=r/n,o=Math.sqrt(s*s+1)-s;var h=o<1e-9?-18:Math.log(o);return h}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function d(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/d(t)}var g=u(0);function v(t){return a*(d(g)/d(g+h*t))}function w(t){return a*(d(g)*m(g+h*t)-p(g))/f}function b(t){return 1-Math.pow(1-t,1.5)}var y=Date.now(),x=(u(1)-g)/h,k=e.duration?1e3*e.duration:1e3*x*.8;function A(){var e=(Date.now()-y)/k,s=b(e)*x;if(e<=1){this._flyToFrame=M(A,this);this._move(this.unproject(r.add(n.subtract(r).multiplyBy(w(s)/c)),o),this.getScaleZoom(a/v(s),o),{flyTo:true})}else{this._move(t,i)._moveEnd(true)}}this._moveStart(true,e.noMoveStart);A.call(this);return this},flyToBounds:function(t,i){var e=this._getBoundsCenterZoom(t,i);return this.flyTo(e.center,e.zoom,i)},setMaxBounds:function(t){t=N(t);if(this.listens("moveend",this._panInsideMaxBounds)){this.off("moveend",this._panInsideMaxBounds)}if(!t.isValid()){this.options.maxBounds=null;return this}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var i=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var i=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&i!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,i){this._enforcingBounds=true;var e=this.getCenter(),r=this._limitCenter(e,this._zoom,N(t));if(!e.equals(r)){this.panTo(r,i)}this._enforcingBounds=false;return this},panInside:function(t,i){i=i||{};var e=I(i.paddingTopLeft||i.padding||[0,0]),r=I(i.paddingBottomRight||i.padding||[0,0]),n=this.project(this.getCenter()),s=this.project(t),o=this.getPixelBounds(),a=F([o.min.add(e),o.max.subtract(r)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=true;var c=s.subtract(a.getCenter());var h=a.extend(s).getSize().subtract(l);n.x+=c.x<0?-h.x:h.x;n.y+=c.y<0?-h.y:h.y;this.panTo(this.unproject(n),i);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=e({animate:false,pan:true},t===true?{animate:true}:t);var i=this.getSize();this._sizeChanged=true;this._lastCenter=null;var r=this.getSize(),s=i.divideBy(2).round(),o=r.divideBy(2).round(),a=s.subtract(o);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:i,newSize:r})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=e({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var i=n(this._handleGeolocationResponse,this),r=n(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(i,r,t)}else{navigator.geolocation.getCurrentPosition(i,r,t)}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(t){if(!this._container._leaflet_id){return}var i=t.code,e=t.message||(i===1?"permission denied":i===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var i=t.coords.latitude,e=t.coords.longitude,r=new D(i,e),n=r.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var o=this.getBoundsZoom(n);this.setView(r,s.maxZoom?Math.min(o,s.maxZoom):o)}var a={latlng:r,bounds:n,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,i){if(!i){return this}var e=this[t]=new i(this);this._handlers.push(e);if(this.options[t]){e.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(i){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ci(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ci(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,i){var e="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),r=li("div",e,i||this._mapPane);if(t){this._panes[t]=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 t=this.getPixelBounds(),i=this.unproject(t.getBottomLeft()),e=this.unproject(t.getTopRight());return new R(i,e)},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(t,i,e){t=N(t);e=I(e||[0,0]);var r=this.getZoom()||0,n=this.getMinZoom(),s=this.getMaxZoom(),o=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(e),c=F(this.project(a,r),this.project(o,r)).getSize(),h=Bt.any3d?this.options.zoomSnap:1,f=l.x/c.x,u=l.y/c.y,p=i?Math.max(f,u):Math.min(f,u);r=this.getScaleZoom(p,r);if(h){r=Math.round(r/(h/100))*(h/100);r=i?Math.ceil(r/h)*h:Math.floor(r/h)*h}return Math.max(n,Math.min(s,r))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new S(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new B(e,e.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;return e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=i===undefined?this._zoom:i;var r=e.zoom(t*e.scale(i));return isNaN(r)?Infinity:r},project:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.latLngToPoint(Y(t),i)},unproject:function(t,i){i=i===undefined?this._zoom:i;return this.options.crs.pointToLatLng(I(t),i)},layerPointToLatLng:function(t){var i=I(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){var i=this.project(Y(t))._round();return i._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(N(t))},distance:function(t,i){return this.options.crs.distance(Y(t),Y(i))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return Ki(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=oi(t);if(!i){throw new Error("Map container not found.")}else if(i._leaflet_id){throw new Error("Map container is already initialized.")}Fi(i,"scroll",this._onScroll,this);this._containerId=o(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Bt.any3d;di(t,"leaflet-container"+(Bt.touch?" leaflet-touch":"")+(Bt.retina?" leaflet-retina":"")+(Bt.ielt9?" leaflet-oldie":"")+(Bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=ai(t,"position");if(i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);ki(this._mapPane,new S(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){di(t.markerPane,"leaflet-zoom-hide");di(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,i,e){ki(this._mapPane,new S(0,0));var r=!this._loaded;this._loaded=true;i=this._limitZoom(i);this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,e)._move(t,i)._moveEnd(n);this.fire("viewreset");if(r){this.fire("load")}},_moveStart:function(t,i){if(t){this.fire("zoomstart")}if(!i){this.fire("movestart")}return this},_move:function(t,i,e,r){if(i===undefined){i=this._zoom}var n=this._zoom!==i;this._zoom=i;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!r){if(n||e&&e.pinch){this.fire("zoom",e)}this.fire("move",e)}else if(e&&e.pinch){this.fire("zoom",e)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){ki(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={};this._targets[o(this._container)]=this;var i=t?Ni:Fi;i(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){i(window,"resize",this._onResize,this)}if(Bt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,i){var e=[],r,n=i==="mouseout"||i==="mouseover",s=t.target||t.srcElement,a=false;while(s){r=this._targets[o(s)];if(r&&(i==="click"||i==="preclick")&&this._draggableMoved(r)){a=true;break}if(r&&r.listens(i,true)){if(n&&!Xi(s,t)){break}e.push(r);if(n){break}}if(s===this._container){break}s=s.parentNode}if(!e.length&&!a&&!n&&this.listens(i,true)){e=[this]}return e},_isClickDisabled:function(t){while(t&&t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!this._loaded||i["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(i)){return}var e=t.type;if(e==="mousedown"){ji(i)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,r){if(t.type==="click"){var n=e({},t);n.type="preclick";this._fireDOMEvent(n,n.type,r)}var s=this._findEventTargets(t,i);if(r){var o=[];for(var a=0;a<r.length;a++){if(r[a].listens(i,true)){o.push(r[a])}}s=o.concat(s)}if(!s.length){return}if(i==="contextmenu"){Qi(t)}var l=s[0];var c={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var h=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=h?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);c.layerPoint=this.containerPointToLayerPoint(c.containerPoint);c.latlng=h?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(a=0;a<s.length;a++){s[a].fire(i,c,true);if(c.originalEvent._stopped||s[a].options.bubblingMouseEvents===false&&w(this._mouseEvents,i)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++){this._handlers[t].disable()}},whenReady:function(t,i){if(this._loaded){t.call(i||this,{target:this})}else{this.on("load",t,i)}return this},_getMapPanePos:function(){return Ai(this._mapPane)||new S(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){var e=t&&i!==undefined?this._getNewPixelOrigin(t,i):this.getPixelOrigin();return e.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var e=this.getSize()._divideBy(2);return this.project(t,i)._subtract(e)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return this.project(t,i)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,i,e){var r=this._getNewPixelOrigin(e,i);return F([this.project(t.getSouthWest(),i)._subtract(r),this.project(t.getNorthWest(),i)._subtract(r),this.project(t.getSouthEast(),i)._subtract(r),this.project(t.getNorthEast(),i)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,e){if(!e){return t}var r=this.project(t,i),n=this.getSize().divideBy(2),s=new B(r.subtract(n),r.add(n)),o=this._getBoundsOffset(s,e,i);if(Math.abs(o.x)<=1&&Math.abs(o.y)<=1){return t}return this.unproject(r.add(o),i)},_limitOffset:function(t,i){if(!i){return t}var e=this.getPixelBounds(),r=new B(e.min.add(t),e.max.add(t));return t.add(this._getBoundsOffset(r,i))},_getBoundsOffset:function(t,i,e){var r=F(this.project(i.getNorthEast(),e),this.project(i.getSouthWest(),e)),n=r.min.subtract(t.min),s=r.max.subtract(t.max),o=this._rebound(n.x,-s.x),a=this._rebound(n.y,-s.y);return new S(o,a)},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),r=Bt.any3d?this.options.zoomSnap:1;if(r){t=Math.round(t/r)*r}return Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mi(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();if((i&&i.animate)!==true&&!this.getSize().contains(e)){return false}this.panBy(e,i);return true},_createAnimProxy:function(){var t=this._proxy=li("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var i=ri,e=this._proxy.style[i];xi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(e===this._proxy.style[i]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ci(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();xi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom){return true}e=e||{};if(!this._zoomAnimated||e.animate===false||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold){return false}var r=this.getZoomScale(i),n=this._getCenterOffset(t)._divideBy(1-1/r);if(e.animate!==true&&!this.getSize().contains(n)){return false}M((function(){this._moveStart(true,e.noMoveStart||false)._animateZoom(t,i,true)}),this);return true},_animateZoom:function(t,i,e,r){if(!this._mapPane){return}if(e){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=i;di(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:i,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){mi(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 re(t,i){return new ee(t,i)}var ne=E.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;if(i){i.removeControl(this)}this.options.position=t;if(i){i.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),r=t._controlCorners[e];di(i,"leaflet-control");if(e.indexOf("bottom")!==-1){r.insertBefore(i,r.firstChild)}else{r.appendChild(i)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ci(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var se=function(t){return new ne(t)};ee.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",e=this._controlContainer=li("div",i+"control-container",this._container);function r(r,n){var s=i+r+" "+i+n;t[r+n]=li("div",s,e)}r("top","left");r("top","right");r("bottom","left");r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ci(this._controlCorners[t])}ci(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var oe=ne.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,i,e,r){return e<r?-1:r<e?1:0}},initialize:function(t,i,e){p(this,e);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;this._preventClick=false;for(var r in t){this._addLayer(t[r],r)}for(r in i){this._addLayer(i[r],r,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++){this._layers[i].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ne.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,i){this._addLayer(t,i);return this._map?this._update():this},addOverlay:function(t,i){this._addLayer(t,i,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(o(t));if(i){this._layers.splice(this._layers.indexOf(i),1)}return this._map?this._update():this},expand:function(){di(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){di(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{mi(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){mi(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=li("div",t),e=this.options.collapsed;i.setAttribute("aria-haspopup",true);Ui(i);Hi(i);var r=this._section=li("section",t+"-list");if(e){this._map.on("click",this.collapse,this);Fi(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)}var n=this._layersLink=li("a",t+"-toggle",i);n.href="#";n.title="Layers";n.setAttribute("role","button");Fi(n,{keydown:function(t){if(t.keyCode===13){this._expandSafely()}},click:function(t){Qi(t);this._expandSafely()}},this);if(!e){this.expand()}this._baseLayersList=li("div",t+"-base",r);this._separator=li("div",t+"-separator",r);this._overlaysList=li("div",t+"-overlays",r);i.appendChild(r)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++){if(this._layers[i]&&o(this._layers[i].layer)===t){return this._layers[i]}}},_addLayer:function(t,i,e){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:i,overlay:e});if(this.options.sortLayers){this._layers.sort(n((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}hi(this._baseLayersList);hi(this._overlaysList);this._layerControlInputs=[];var t,i,e,r,n=0;for(e=0;e<this._layers.length;e++){r=this._layers[e];this._addItem(r);i=i||r.overlay;t=t||!r.overlay;n+=!r.overlay?1:0}if(this.options.hideSingleBase){t=t&&n>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=i&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var i=this._getLayer(o(t.target));var e=i.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(e){this._map.fire(e,i)}},_createRadioElement:function(t,i){var e='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>";var r=document.createElement("div");r.innerHTML=e;return r.firstChild},_addItem:function(t){var i=document.createElement("label"),e=this._map.hasLayer(t.layer),r;if(t.overlay){r=document.createElement("input");r.type="checkbox";r.className="leaflet-control-layers-selector";r.defaultChecked=e}else{r=this._createRadioElement("leaflet-base-layers_"+o(this),e)}this._layerControlInputs.push(r);r.layerId=o(t.layer);Fi(r,"click",this._onInputClick,this);var n=document.createElement("span");n.innerHTML=" "+t.name;var s=document.createElement("span");i.appendChild(s);s.appendChild(r);s.appendChild(n);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(i);this._checkDisabledLayers();return i},_onInputClick:function(){if(this._preventClick){return}var t=this._layerControlInputs,i,e;var r=[],n=[];this._handlingClick=true;for(var s=t.length-1;s>=0;s--){i=t[s];e=this._getLayer(i.layerId).layer;if(i.checked){r.push(e)}else if(!i.checked){n.push(e)}}for(s=0;s<n.length;s++){if(this._map.hasLayer(n[s])){this._map.removeLayer(n[s])}}for(s=0;s<r.length;s++){if(!this._map.hasLayer(r[s])){this._map.addLayer(r[s])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,i,e,r=this._map.getZoom();for(var n=t.length-1;n>=0;n--){i=t[n];e=this._getLayer(i.layerId).layer;i.disabled=e.options.minZoom!==undefined&&r<e.options.minZoom||e.options.maxZoom!==undefined&&r>e.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expandSafely:function(){var t=this._section;this._preventClick=true;Fi(t,"click",Qi);this.expand();var i=this;setTimeout((function(){Ni(t,"click",Qi);i._preventClick=false}))}});var ae=function(t,i,e){return new oe(t,i,e)};var le=ne.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(t){var i="leaflet-control-zoom",e=li("div",i+" leaflet-bar"),r=this.options;this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,i+"-in",e,this._zoomIn);this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,i+"-out",e,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return e},onRemove:function(t){t.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(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,i,e,r,n){var s=li("a",e,r);s.innerHTML=t;s.href="#";s.title=i;s.setAttribute("role","button");s.setAttribute("aria-label",i);Ui(s);Fi(s,"click",Vi);Fi(s,"click",n,this);Fi(s,"click",this._refocusOnMap,this);return s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";mi(this._zoomInButton,i);mi(this._zoomOutButton,i);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){di(this._zoomOutButton,i);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){di(this._zoomInButton,i);this._zoomInButton.setAttribute("aria-disabled","true")}}});ee.mergeOptions({zoomControl:true});ee.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new le;this.addControl(this.zoomControl)}}));var ce=function(t){return new le(t)};var he=ne.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var i="leaflet-control-scale",e=li("div",i),r=this.options;this._addScales(r,i+"-line",e);t.on(r.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){if(t.metric){this._mScale=li("div",i,e)}if(t.imperial){this._iScale=li("div",i,e)}},_update:function(){var t=this._map,i=t.getSize().y/2;var e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i=t*3.2808399,e,r,n;if(i>5280){e=i/5280;r=this._getRoundNum(e);this._updateScale(this._iScale,r+" mi",r/e)}else{n=this._getRoundNum(i);this._updateScale(this._iScale,n+" ft",n/i)}},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px";t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1;return i*e}});var fe=function(t){return new he(t)};var ue='<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 pe=ne.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Bt.inlineSvg?ue+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=li("div","leaflet-control-attribution");Ui(this._container);for(var i in t._layers){if(t._layers[i].getAttribution){this.addAttribution(t._layers[i].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var i in this._attributions){if(this._attributions[i]){t.push(i)}}var e=[];if(this.options.prefix){e.push(this.options.prefix)}if(t.length){e.push(t.join(", "))}this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}});ee.mergeOptions({attributionControl:true});ee.addInitHook((function(){if(this.options.attributionControl){(new pe).addTo(this)}}));var de=function(t){return new pe(t)};ne.Layers=oe;ne.Zoom=le;ne.Scale=he;ne.Attribution=pe;se.layers=ae;se.zoom=ce;se.scale=fe;se.attribution=de;var me=E.extend({initialize:function(t){this._map=t},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}});me.addTo=function(t,i){t.addHandler(i,this);return this};var ge={Events:O};var ve=Bt.touch?"touchstart mousedown":"mousedown";var we=j.extend({options:{clickTolerance:3},initialize:function(t,i,e,r){p(this,r);this._element=t;this._dragStartTarget=i||t;this._preventOutline=e},enable:function(){if(this._enabled){return}Fi(this._dragStartTarget,ve,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(we._dragging===this){this.finishDrag(true)}Ni(this._dragStartTarget,ve,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(pi(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(we._dragging===this){this.finishDrag()}return}if(we._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}we._dragging=this;if(this._preventOutline){ji(this._element)}Ci();_i();if(this._moving){return}this.fire("down");var i=t.touches?t.touches[0]:t,e=Ti(this._element);this._startPoint=new S(i.clientX,i.clientY);this._startPos=Ai(this._element);this._parentScale=Ii(e);var r=t.type==="mousedown";Fi(document,r?"mousemove":"touchmove",this._onMove,this);Fi(document,r?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var i=t.touches&&t.touches.length===1?t.touches[0]:t,e=new S(i.clientX,i.clientY)._subtract(this._startPoint);if(!e.x&&!e.y){return}if(Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance){return}e.x/=this._parentScale.x;e.y/=this._parentScale.y;Qi(t);if(!this._moved){this.fire("dragstart");this._moved=true;di(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}di(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(e);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);ki(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){mi(document.body,"leaflet-dragging");if(this._lastTarget){mi(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Ni(document,"mousemove touchmove",this._onMove,this);Ni(document,"mouseup touchend touchcancel",this._onUp,this);Ei();Mi();var i=this._moved&&this._moving;this._moving=false;we._dragging=false;if(i){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}}});function be(t,i,e){var r,n=[1,4,2,8],s,o,a,l,c,h,f,u;for(s=0,h=t.length;s<h;s++){t[s]._code=je(t[s],i)}for(a=0;a<4;a++){f=n[a];r=[];for(s=0,h=t.length,o=h-1;s<h;o=s++){l=t[s];c=t[o];if(!(l._code&f)){if(c._code&f){u=Oe(c,l,f,i,e);u._code=je(u,i);r.push(u)}r.push(l)}else if(!(c._code&f)){u=Oe(c,l,f,i,e);u._code=je(u,i);r.push(u)}}t=r}return t}function ye(t,i){var e,r,n,s,o,a,l,c,h;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ie(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var f=Y([0,0]);var u=N(t);var p=u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest());if(p<1700){f=xe(t)}var d=t.length;var m=[];for(e=0;e<d;e++){var g=Y(t[e]);m.push(i.project(Y([g.lat-f.lat,g.lng-f.lng])))}a=l=c=0;for(e=0,r=d-1;e<d;r=e++){n=m[e];s=m[r];o=n.y*s.x-s.y*n.x;l+=(n.x+s.x)*o;c+=(n.y+s.y)*o;a+=o*3}if(a===0){h=m[0]}else{h=[l/a,c/a]}var v=i.unproject(I(h));return Y([v.lat+f.lat,v.lng+f.lng])}function xe(t){var i=0;var e=0;var r=0;for(var n=0;n<t.length;n++){var s=Y(t[n]);i+=s.lat;e+=s.lng;r++}return Y([i/r,e/r])}var ke={__proto__:null,clipPolygon:be,polygonCenter:ye,centroid:xe};function Ae(t,i){if(!i||!t.length){return t.slice()}var e=i*i;t=Ce(t,e);t=ze(t,e);return t}function _e(t,i,e){return Math.sqrt(Te(t,i,e,true))}function Me(t,i,e){return Te(t,i,e)}function ze(t,i){var e=t.length,r=typeof Uint8Array!==undefined+""?Uint8Array:Array,n=new r(e);n[0]=n[e-1]=1;Le(t,n,i,0,e-1);var s,o=[];for(s=0;s<e;s++){if(n[s]){o.push(t[s])}}return o}function Le(t,i,e,r,n){var s=0,o,a,l;for(a=r+1;a<=n-1;a++){l=Te(t[a],t[r],t[n],true);if(l>s){o=a;s=l}}if(s>e){i[o]=1;Le(t,i,e,r,o);Le(t,i,e,o,n)}}function Ce(t,i){var e=[t[0]];for(var r=1,n=0,s=t.length;r<s;r++){if(Se(t[r],t[n])>i){e.push(t[r]);n=r}}if(n<s-1){e.push(t[s-1])}return e}var Ee;function Pe(t,i,e,r,n){var s=r?Ee:je(t,e),o=je(i,e),a,l,c;Ee=o;while(true){if(!(s|o)){return[t,i]}if(s&o){return false}a=s||o;l=Oe(t,i,a,e,n);c=je(l,e);if(a===s){t=l;s=c}else{i=l;o=c}}}function Oe(t,i,e,r,n){var s=i.x-t.x,o=i.y-t.y,a=r.min,l=r.max,c,h;if(e&8){c=t.x+s*(l.y-t.y)/o;h=l.y}else if(e&4){c=t.x+s*(a.y-t.y)/o;h=a.y}else if(e&2){c=l.x;h=t.y+o*(l.x-t.x)/s}else if(e&1){c=a.x;h=t.y+o*(a.x-t.x)/s}return new S(c,h,n)}function je(t,i){var e=0;if(t.x<i.min.x){e|=1}else if(t.x>i.max.x){e|=2}if(t.y<i.min.y){e|=4}else if(t.y>i.max.y){e|=8}return e}function Se(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}function Te(t,i,e,r){var n=i.x,s=i.y,o=e.x-n,a=e.y-s,l=o*o+a*a,c;if(l>0){c=((t.x-n)*o+(t.y-s)*a)/l;if(c>1){n=e.x;s=e.y}else if(c>0){n+=o*c;s+=a*c}}o=t.x-n;a=t.y-s;return r?o*o+a*a:new S(n,s)}function Ie(t){return!v(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Be(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Ie(t)}function Fe(t,i){var e,r,n,s,o,a,l,c;if(!t||t.length===0){throw new Error("latlngs not passed")}if(!Ie(t)){console.warn("latlngs are not flat! Only the first ring will be used");t=t[0]}var h=Y([0,0]);var f=N(t);var u=f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest());if(u<1700){h=xe(t)}var p=t.length;var d=[];for(e=0;e<p;e++){var m=Y(t[e]);d.push(i.project(Y([m.lat-h.lat,m.lng-h.lng])))}for(e=0,r=0;e<p-1;e++){r+=d[e].distanceTo(d[e+1])/2}if(r===0){c=d[0]}else{for(e=0,s=0;e<p-1;e++){o=d[e];a=d[e+1];n=o.distanceTo(a);s+=n;if(s>r){l=(s-r)/n;c=[a.x-l*(a.x-o.x),a.y-l*(a.y-o.y)];break}}}var g=i.unproject(I(c));return Y([g.lat+h.lat,g.lng+h.lng])}var Re={__proto__:null,simplify:Ae,pointToSegmentDistance:_e,closestPointOnSegment:Me,clipSegment:Pe,_getEdgeIntersection:Oe,_getBitCode:je,_sqClosestPointOnSegment:Te,isFlat:Ie,_flat:Be,polylineCenter:Fe};var Ne={project:function(t){return new S(t.lng,t.lat)},unproject:function(t){return new D(t.y,t.x)},bounds:new B([-180,-90],[180,90])};var De={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,e=this.R,r=t.lat*i,n=this.R_MINOR/e,s=Math.sqrt(1-n*n),o=s*Math.sin(r);var a=Math.tan(Math.PI/4-r/2)/Math.pow((1-o)/(1+o),s/2);r=-e*Math.log(Math.max(a,1e-10));return new S(t.lng*i*e,r)},unproject:function(t){var i=180/Math.PI,e=this.R,r=this.R_MINOR/e,n=Math.sqrt(1-r*r),s=Math.exp(-t.y/e),o=Math.PI/2-2*Math.atan(s);for(var a=0,l=.1,c;a<15&&Math.abs(l)>1e-7;a++){c=n*Math.sin(o);c=Math.pow((1-c)/(1+c),n/2);l=Math.PI/2-2*Math.atan(s*c)-o;o+=l}return new D(o*i,t.x*i/e)}};var Ye={__proto__:null,LonLat:Ne,Mercator:De,SphericalMercator:H};var Ge=e({},$,{code:"EPSG:3395",projection:De,transformation:function(){var t=.5/(Math.PI*De.R);return Q(t,.5,-t,.5)}()});var $e=e({},$,{code:"EPSG:4326",projection:Ne,transformation:Q(1/180,1,-1/180,.5)});var Ze=e({},G,{projection:Ne,transformation:Q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,r=i.lat-t.lat;return Math.sqrt(e*e+r*r)},infinite:true});G.Earth=$;G.EPSG3395=Ge;G.EPSG3857=V;G.EPSG900913=W;G.EPSG4326=$e;G.Simple=Ze;var He=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[o(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[o(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(!i.hasLayer(this)){return}this._map=i;this._zoomAnimated=i._zoomAnimated;if(this.getEvents){var e=this.getEvents();i.on(e,this);this.once("remove",(function(){i.off(e,this)}),this)}this.onAdd(i);this.fire("add");i.fire("layeradd",{layer:this})}});ee.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var i=o(t);if(this._layers[i]){return this}this._layers[i]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var i=o(t);if(!this._layers[i]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[i];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},_addLayers:function(t){t=t?v(t)?t:[t]:[];for(var i=0,e=t.length;i<e;i++){this.addLayer(t[i])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[o(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var i=o(t);if(this._zoomBoundLayers[i]){delete this._zoomBoundLayers[i];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,i=-Infinity,e=this._getZoomSpan();for(var r in this._zoomBoundLayers){var n=this._zoomBoundLayers[r].options;t=n.minZoom===undefined?t:Math.min(t,n.minZoom);i=n.maxZoom===undefined?i:Math.max(i,n.maxZoom)}this._layersMaxZoom=i===-Infinity?undefined:i;this._layersMinZoom=t===Infinity?undefined:t;if(e!==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 Ue=He.extend({initialize:function(t,i){p(this,i);this._layers={};var e,r;if(t){for(e=0,r=t.length;e<r;e++){this.addLayer(t[e])}}},addLayer:function(t){var i=this.getLayerId(t);this._layers[i]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[i]){this._map.removeLayer(this._layers[i])}delete this._layers[i];return this},hasLayer:function(t){var i=typeof t==="number"?t:this.getLayerId(t);return i in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i=Array.prototype.slice.call(arguments,1),e,r;for(e in this._layers){r=this._layers[e];if(r[t]){r[t].apply(r,i)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var e in this._layers){t.call(i,this._layers[e])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}});var Qe=function(t,i){return new Ue(t,i)};var Ve=Ue.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);Ue.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);Ue.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new R;for(var i in this._layers){var e=this._layers[i];t.extend(e.getBounds?e.getBounds():e.getLatLng())}return t}});var We=function(t,i){return new Ve(t,i)};var Ke=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var e=this._getIconUrl(t);if(!e){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var r=this._createImg(e,i&&i.tagName==="IMG"?i:null);this._setIconStyles(r,t);if(this.options.crossOrigin||this.options.crossOrigin===""){r.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return r},_setIconStyles:function(t,i){var e=this.options;var r=e[i+"Size"];if(typeof r==="number"){r=[r,r]}var n=I(r),s=I(i==="shadow"&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,true));t.className="leaflet-marker-"+i+" "+(e.className||"");if(s){t.style.marginLeft=-s.x+"px";t.style.marginTop=-s.y+"px"}if(n){t.style.width=n.x+"px";t.style.height=n.y+"px"}},_createImg:function(t,i){i=i||document.createElement("img");i.src=t;return i},_getIconUrl:function(t){return Bt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Je(t){return new Ke(t)}var qe=Ke.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(t){if(typeof qe.imagePath!=="string"){qe.imagePath=this._detectIconPath()}return(this.options.imagePath||qe.imagePath)+Ke.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,e){var r=i.exec(t);return r&&r[e]};t=i(t,/^url\((['"])?(.+)\1\)$/,2);return t&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=li("div","leaflet-default-icon-path",document.body);var i=ai(t,"background-image")||ai(t,"backgroundImage");document.body.removeChild(t);i=this._stripUrl(i);if(i){return i}var e=document.querySelector('link[href$="leaflet.css"]');if(!e){return""}return e.href.substring(0,e.href.length-"leaflet.css".length-1)}});var Xe=me.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new we(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();di(t,"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){mi(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,e=i._map,r=this._marker.options.autoPanSpeed,n=this._marker.options.autoPanPadding,s=Ai(i._icon),o=e.getPixelBounds(),a=e.getPixelOrigin();var l=F(o.min._subtract(a).add(n),o.max._subtract(a).subtract(n));if(!l.contains(s)){var c=I((Math.max(l.max.x,s.x)-l.max.x)/(o.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(o.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(o.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(o.min.y-l.min.y)).multiplyBy(r);e.panBy(c,{animate:false});this._draggable._newPos._add(c);this._draggable._startPos._add(c);ki(i._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng();this._marker.closePopup&&this._marker.closePopup();this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=M(this._adjustPan.bind(this,t))}},_onDrag:function(t){var i=this._marker,e=i._shadow,r=Ai(i._icon),n=i._map.layerPointToLatLng(r);if(e){ki(e,r)}i._latlng=n;t.latlng=n;t.oldLatLng=this._oldLatLng;i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var tr=He.extend({options:{icon:new qe,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(t,i){p(this,i);this._latlng=Y(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.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(t){var i=this._latlng;this._latlng=Y(t);this.update();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;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 t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var e=t.icon.createIcon(this._icon),r=false;if(e!==this._icon){if(this._icon){this._removeIcon()}r=true;if(t.title){e.title=t.title}if(e.tagName==="IMG"){e.alt=t.alt||""}}di(e,i);if(t.keyboard){e.tabIndex="0";e.setAttribute("role","button")}this._icon=e;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Fi(e,"focus",this._panOnFocus,this)}var n=t.icon.createShadow(this._shadow),s=false;if(n!==this._shadow){this._removeShadow();s=true}if(n){di(n,i);n.alt=""}this._shadow=n;if(t.opacity<1){this._updateOpacity()}if(r){this.getPane().appendChild(this._icon)}this._initInteraction();if(n&&s){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ni(this._icon,"focus",this._panOnFocus,this)}ci(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ci(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){ki(this._icon,t)}if(this._shadow){ki(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(!this.options.interactive){return}di(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Xe){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Xe(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){wi(this._icon,t)}if(this._shadow){wi(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var i=this.options.icon.options;var e=i.iconSize?I(i.iconSize):I(0,0);var r=i.iconAnchor?I(i.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:e.subtract(r)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ir(t,i){return new tr(t,i)}var er=He.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(t){this._renderer=t.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(t){p(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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=er.extend({options:{fill:true,radius:10},initialize:function(t,i){p(this,i);this._latlng=Y(t);this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;this._latlng=Y(t);this.redraw();return this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;er.prototype.setStyle.call(this,t);this.setRadius(i);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,e=this._clickTolerance(),r=[t+e,i+e];this._pxBounds=new B(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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function nr(t,i){return new rr(t,i)}var sr=rr.extend({initialize:function(t,i,r){if(typeof i==="number"){i=e({},r,{radius:i})}p(this,i);this._latlng=Y(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new R(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:er.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,e=this._map,r=e.options.crs;if(r.distance===$.distance){var n=Math.PI/180,s=this._mRadius/$.R/n,o=e.project([i+s,t]),a=e.project([i-s,t]),l=o.add(a).divideBy(2),c=e.unproject(l).lat,h=Math.acos((Math.cos(s*n)-Math.sin(i*n)*Math.sin(c*n))/(Math.cos(i*n)*Math.cos(c*n)))/n;if(isNaN(h)||h===0){h=s/Math.cos(Math.PI/180*i)}this._point=l.subtract(e.getPixelOrigin());this._radius=isNaN(h)?0:l.x-e.project([c,t-h]).x;this._radiusY=l.y-o.y}else{var f=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=e.latLngToLayerPoint(this._latlng);this._radius=this._point.x-e.latLngToLayerPoint(f).x}this._updateBounds()}});function or(t,i,e){return new sr(t,i,e)}var ar=er.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,i){p(this,i);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var i=Infinity,e=null,r=Te,n,s;for(var o=0,a=this._parts.length;o<a;o++){var l=this._parts[o];for(var c=1,h=l.length;c<h;c++){n=l[c-1];s=l[c];var f=r(t,n,s,true);if(f<i){i=f;e=r(t,n,s)}}}if(e){e.distance=Math.sqrt(i)}return e},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}return Fe(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){i=i||this._defaultShape();t=Y(t);i.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ie(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var i=[],e=Ie(t);for(var r=0,n=t.length;r<n;r++){if(e){i[r]=Y(t[r]);this._bounds.extend(i[r])}else{i[r]=this._convertLatLngs(t[r])}}return i},_project:function(){var t=new B;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),i=new S(t,t);if(!this._rawPxBounds){return}this._pxBounds=new B([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)])},_projectLatlngs:function(t,i,e){var r=t[0]instanceof D,n=t.length,s,o;if(r){o=[];for(s=0;s<n;s++){o[s]=this._map.latLngToLayerPoint(t[s]);e.extend(o[s])}i.push(o)}else{for(s=0;s<n;s++){this._projectLatlngs(t[s],i,e)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var i=this._parts,e,r,n,s,o,a,l;for(e=0,n=0,s=this._rings.length;e<s;e++){l=this._rings[e];for(r=0,o=l.length;r<o-1;r++){a=Pe(l[r],l[r+1],t,r,true);if(!a){continue}i[n]=i[n]||[];i[n].push(a[0]);if(a[1]!==l[r+1]||r===o-2){i[n].push(a[1]);n++}}}},_simplifyPoints:function(){var t=this._parts,i=this.options.smoothFactor;for(var e=0,r=t.length;e<r;e++){t[e]=Ae(t[e],i)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var e,r,n,s,o,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(e=0,s=this._parts.length;e<s;e++){a=this._parts[e];for(r=0,o=a.length,n=o-1;r<o;n=r++){if(!i&&r===0){continue}if(_e(t,a[n],a[r])<=l){return true}}}return false}});function lr(t,i){return new ar(t,i)}ar._flat=Be;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 ye(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=ar.prototype._convertLatLngs.call(this,t),e=i.length;if(e>=2&&i[0]instanceof D&&i[0].equals(i[e-1])){i.pop()}return i},_setLatLngs:function(t){ar.prototype._setLatLngs.call(this,t);if(Ie(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Ie(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new S(i,i);t=new B(t.min.subtract(e),t.max.add(e));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var r=0,n=this._rings.length,s;r<n;r++){s=be(this._rings[r],t,true);if(s.length){this._parts.push(s)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var i=false,e,r,n,s,o,a,l,c;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(s=0,l=this._parts.length;s<l;s++){e=this._parts[s];for(o=0,c=e.length,a=c-1;o<c;a=o++){r=e[o];n=e[a];if(r.y>t.y!==n.y>t.y&&t.x<(n.x-r.x)*(t.y-r.y)/(n.y-r.y)+r.x){i=!i}}}return i||ar.prototype._containsPoint.call(this,t,true)}});function hr(t,i){return new cr(t,i)}var fr=Ve.extend({initialize:function(t,i){p(this,i);this._layers={};if(t){this.addData(t)}},addData:function(t){var i=v(t)?t:t.features,e,r,n;if(i){for(e=0,r=i.length;e<r;e++){n=i[e];if(n.geometries||n.geometry||n.features||n.coordinates){this.addData(n)}}return this}var s=this.options;if(s.filter&&!s.filter(t)){return this}var o=ur(t,s);if(!o){return this}o.feature=br(t);o.defaultOptions=o.options;this.resetStyle(o);if(s.onEachFeature){s.onEachFeature(t,o)}return this.addLayer(o)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=e({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){if(t.setStyle){if(typeof i==="function"){i=i(t.feature)}t.setStyle(i)}}});function ur(t,i){var e=t.type==="Feature"?t.geometry:t,r=e?e.coordinates:null,n=[],s=i&&i.pointToLayer,o=i&&i.coordsToLatLng||dr,a,l,c,h;if(!r&&!e){return null}switch(e.type){case"Point":a=o(r);return pr(s,t,a,i);case"MultiPoint":for(c=0,h=r.length;c<h;c++){a=o(r[c]);n.push(pr(s,t,a,i))}return new Ve(n);case"LineString":case"MultiLineString":l=mr(r,e.type==="LineString"?0:1,o);return new ar(l,i);case"Polygon":case"MultiPolygon":l=mr(r,e.type==="Polygon"?1:2,o);return new cr(l,i);case"GeometryCollection":for(c=0,h=e.geometries.length;c<h;c++){var f=ur({geometry:e.geometries[c],type:"Feature",properties:t.properties},i);if(f){n.push(f)}}return new Ve(n);case"FeatureCollection":for(c=0,h=e.features.length;c<h;c++){var u=ur(e.features[c],i);if(u){n.push(u)}}return new Ve(n);default:throw new Error("Invalid GeoJSON object.")}}function pr(t,i,e,r){return t?t(i,e):new tr(e,r&&r.markersInheritOptions&&r)}function dr(t){return new D(t[1],t[0],t[2])}function mr(t,i,e){var r=[];for(var n=0,s=t.length,o;n<s;n++){o=i?mr(t[n],i-1,e):(e||dr)(t[n]);r.push(o)}return r}function gr(t,i){t=Y(t);return t.alt!==undefined?[h(t.lng,i),h(t.lat,i),h(t.alt,i)]:[h(t.lng,i),h(t.lat,i)]}function vr(t,i,e,r){var n=[];for(var s=0,o=t.length;s<o;s++){n.push(i?vr(t[s],Ie(t[s])?0:i-1,e,r):gr(t[s],r))}if(!i&&e&&n.length>0){n.push(n[0].slice())}return n}function wr(t,i){return t.feature?e({},t.feature,{geometry:i}):br(i)}function br(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var yr={toGeoJSON:function(t){return wr(this,{type:"Point",coordinates:gr(this.getLatLng(),t)})}};tr.include(yr);sr.include(yr);rr.include(yr);ar.include({toGeoJSON:function(t){var i=!Ie(this._latlngs);var e=vr(this._latlngs,i?1:0,false,t);return wr(this,{type:(i?"Multi":"")+"LineString",coordinates:e})}});cr.include({toGeoJSON:function(t){var i=!Ie(this._latlngs),e=i&&!Ie(this._latlngs[0]);var r=vr(this._latlngs,e?2:i?1:0,true,t);if(!i){r=[r]}return wr(this,{type:(e?"Multi":"")+"Polygon",coordinates:r})}});Ue.include({toMultiPoint:function(t){var i=[];this.eachLayer((function(e){i.push(e.toGeoJSON(t).geometry.coordinates)}));return wr(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(i==="MultiPoint"){return this.toMultiPoint(t)}var e=i==="GeometryCollection",r=[];this.eachLayer((function(i){if(i.toGeoJSON){var n=i.toGeoJSON(t);if(e){r.push(n.geometry)}else{var s=br(n);if(s.type==="FeatureCollection"){r.push.apply(r,s.features)}else{r.push(s)}}}}));if(e){return wr(this,{geometries:r,type:"GeometryCollection"})}return{type:"FeatureCollection",features:r}}});function xr(t,i){return new fr(t,i)}var kr=xr;var Ar=He.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,e){this._url=t;this._bounds=N(i);p(this,e)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){di(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ci(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){fi(this._image)}return this},bringToBack:function(){if(this._map){ui(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=N(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var i=this._image=t?this._url:li("img");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=c;i.onmousemove=c;i.onload=n(this.fire,this,"load");i.onerror=n(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=i.src;return}i.src=this._url;i.alt=this.options.alt},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),e=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xi(this._image,e,i)},_reset:function(){var t=this._image,i=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),e=i.getSize();ki(t,i.min);t.style.width=e.x+"px";t.style.height=e.y+"px"},_updateOpacity:function(){wi(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 t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var _r=function(t,i,e){return new Ar(t,i,e)};var Mr=Ar.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var i=this._image=t?this._url:li("video");di(i,"leaflet-image-layer");if(this._zoomAnimated){di(i,"leaflet-zoom-animated")}if(this.options.className){di(i,this.options.className)}i.onselectstart=c;i.onmousemove=c;i.onloadeddata=n(this.fire,this,"load");if(t){var e=i.getElementsByTagName("source");var r=[];for(var s=0;s<e.length;s++){r.push(e[s].src)}this._url=e.length>0?r:[i.src];return}if(!v(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")){i.style["objectFit"]="fill"}i.autoplay=!!this.options.autoplay;i.loop=!!this.options.loop;i.muted=!!this.options.muted;i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var a=li("source");a.src=this._url[o];i.appendChild(a)}}});function zr(t,i,e){return new Mr(t,i,e)}var Lr=Ar.extend({_initImage:function(){var t=this._image=this._url;di(t,"leaflet-image-layer");if(this._zoomAnimated){di(t,"leaflet-zoom-animated")}if(this.options.className){di(t,this.options.className)}t.onselectstart=c;t.onmousemove=c}});function Cr(t,i,e){return new Lr(t,i,e)}var Er=He.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined,content:""},initialize:function(t,i){if(t&&(t instanceof D||v(t))){this._latlng=Y(t);p(this,i)}else{p(this,t);this._source=i}if(this.options.content){this._content=this.options.content}},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){wi(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){wi(this._container,1)}this.bringToFront();if(this.options.interactive){di(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){wi(this._container,0);this._removeTimeout=setTimeout(n(ci,undefined,this._container),200)}else{ci(this._container)}if(this.options.interactive){mi(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=Y(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;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 t={zoom:this._updatePosition,viewreset:this._updatePosition};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){fi(this._container)}return this},bringToBack:function(){if(this._map){ui(this._container)}return this},_prepareOpen:function(t){var i=this._source;if(!i._map){return false}if(i instanceof Ve){i=null;var e=this._source._layers;for(var r in e){if(e[r]._map){i=e[r];break}}if(!i){return false}this._source=i}if(!t){if(i.getCenter){t=i.getCenter()}else if(i.getLatLng){t=i.getLatLng()}else if(i.getBounds){t=i.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var i=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof i==="string"){t.innerHTML=i}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(i)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),i=I(this.options.offset),e=this._getAnchor();if(this._zoomAnimated){ki(this._container,t.add(e))}else{i=i.add(t).add(e)}var r=this._containerBottom=-i.y,n=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=r+"px";this._container.style.left=n+"px"},_getAnchor:function(){return[0,0]}});ee.include({_initOverlay:function(t,i,e,r){var n=i;if(!(n instanceof t)){n=new t(r).setContent(i)}if(e){n.setLatLng(e)}return n}});He.include({_initOverlay:function(t,i,e,r){var n=e;if(n instanceof t){p(n,r);n._source=this}else{n=i&&!r?i:new t(r,this);n.setContent(e)}return n}});var Pr=Er.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(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Er.prototype.openOn.call(this,t)},onAdd:function(t){Er.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof er)){this._source.on("preclick",Zi)}}},onRemove:function(t){Er.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof er)){this._source.off("preclick",Zi)}}},getEvents:function(){var t=Er.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",i=this._container=li("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var e=this._wrapper=li("div",t+"-content-wrapper",i);this._contentNode=li("div",t+"-content",e);Ui(i);Hi(this._contentNode);Fi(i,"contextmenu",Zi);this._tipContainer=li("div",t+"-tip-container",i);this._tip=li("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var r=this._closeButton=li("a",t+"-close-button",i);r.setAttribute("role","button");r.setAttribute("aria-label","Close popup");r.href="#close";r.innerHTML='<span aria-hidden="true">&#215;</span>';Fi(r,"click",(function(t){Qi(t);this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="";i.whiteSpace="nowrap";var e=t.offsetWidth;e=Math.min(e,this.options.maxWidth);e=Math.max(e,this.options.minWidth);i.width=e+1+"px";i.whiteSpace="";i.height="";var r=t.offsetHeight,n=this.options.maxHeight,s="leaflet-popup-scrolled";if(n&&r>n){i.height=n+"px";di(t,s)}else{mi(t,s)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();ki(this._container,i.add(e))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}if(this._autopanning){this._autopanning=false;return}var t=this._map,i=parseInt(ai(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new S(this._containerLeft,-e-this._containerBottom);n._add(Ai(this._container));var s=t.layerPointToContainerPoint(n),o=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||o),l=I(this.options.autoPanPaddingBottomRight||o),c=t.getSize(),h=0,f=0;if(s.x+r+l.x>c.x){h=s.x+r-c.x+l.x}if(s.x-h-a.x<0){h=s.x-a.x}if(s.y+e+l.y>c.y){f=s.y+e-c.y+l.y}if(s.y-f-a.y<0){f=s.y-a.y}if(h||f){if(this.options.keepInView){this._autopanning=true}t.fire("autopanstart").panBy([h,f])}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Or=function(t,i){return new Pr(t,i)};ee.mergeOptions({closePopupOnClick:true});ee.include({openPopup:function(t,i,e){this._initOverlay(Pr,t,i,e).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});He.include({bindPopup:function(t,i){this._popup=this._initOverlay(Pr,this._popup,t,i);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(t){if(this._popup){if(!(this instanceof Ve)){this._popup._source=this}if(this._popup._prepareOpen(t||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(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}Vi(t);var i=t.layer||t.target;if(this._popup._source===i&&!(i instanceof er)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=i;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var jr=Er.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Er.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Er.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Er.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",i=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=li("div",i);this._container.setAttribute("role","tooltip");this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,e,r=this._map,n=this._container,s=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(t),a=this.options.direction,l=n.offsetWidth,c=n.offsetHeight,h=I(this.options.offset),f=this._getAnchor();if(a==="top"){i=l/2;e=c}else if(a==="bottom"){i=l/2;e=0}else if(a==="center"){i=l/2;e=c/2}else if(a==="right"){i=0;e=c/2}else if(a==="left"){i=l;e=c/2}else if(o.x<s.x){a="right";i=0;e=c/2}else{a="left";i=l+(h.x+f.x)*2;e=c/2}t=t.subtract(I(i,e,true)).add(h).add(f);mi(n,"leaflet-tooltip-right");mi(n,"leaflet-tooltip-left");mi(n,"leaflet-tooltip-top");mi(n,"leaflet-tooltip-bottom");di(n,"leaflet-tooltip-"+a);ki(n,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){wi(this._container,t)}},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Sr=function(t,i){return new jr(t,i)};ee.include({openTooltip:function(t,i,e){this._initOverlay(jr,t,i,e).openOn(this);return this},closeTooltip:function(t){t.close();return this}});He.include({bindTooltip:function(t,i){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(jr,this._tooltip,t,i);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(t){if(!t&&this._tooltipHandlersAdded){return}var i=t?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){e.mouseover=this._openTooltip;e.mouseout=this.closeTooltip;e.click=this._openTooltip;if(this._map){this._addFocusListeners()}else{e.add=this._addFocusListeners}}else{e.add=this._openTooltip}if(this._tooltip.options.sticky){e.mousemove=this._moveTooltip}this[i](e);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip){if(!(this instanceof Ve)){this._tooltip._source=this}if(this._tooltip._prepareOpen(t)){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(t){if(this._tooltip){this._tooltip.setContent(t)}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(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){Fi(i,"focus",(function(){this._tooltip._source=t;this.openTooltip()}),this);Fi(i,"blur",this.closeTooltip,this)}},_setAriaDescribedByOnLayer:function(t){var i=typeof t.getElement==="function"&&t.getElement();if(i){i.setAttribute("aria-describedby",this._tooltip._container.id)}},_openTooltip:function(t){if(!this._tooltip||!this._map){return}if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=true;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=false;i._openTooltip(t)}));return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var i=t.latlng,e,r;if(this._tooltip.options.sticky&&t.originalEvent){e=this._map.mouseEventToContainerPoint(t.originalEvent);r=this._map.containerPointToLayerPoint(e);i=this._map.layerPointToLatLng(r)}this._tooltip.setLatLng(i)}});var Tr=Ke.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&t.tagName==="DIV"?t:document.createElement("div"),e=this.options;if(e.html instanceof Element){hi(i);i.appendChild(e.html)}else{i.innerHTML=e.html!==false?e.html:""}if(e.bgPos){var r=I(e.bgPos);i.style.backgroundPosition=-r.x+"px "+-r.y+"px"}this._setIconStyles(i,"icon");return i},createShadow:function(){return null}});function Ir(t){return new Tr(t)}Ke.Default=qe;var Br=He.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Bt.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(t){p(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ci(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){fi(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){ui(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(t!==this._tileZoom){this._tileZoom=t;this._updateLevels()}this._update()}return this},getEvents:function(){var t={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)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof S?t:new S(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var i=this.getPane().children,e=-t(-Infinity,Infinity);for(var r=0,n=i.length,s;r<n;r++){s=i[r].style.zIndex;if(i[r]!==this._container&&s){e=t(e,+s)}}if(isFinite(e)){this.options.zIndex=e+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Bt.ielt9){return}wi(this._container,this.options.opacity);var t=+new Date,i=false,e=false;for(var r in this._tiles){var n=this._tiles[r];if(!n.current||!n.loaded){continue}var s=Math.min(1,(t-n.loaded)/200);wi(n.el,s);if(s<1){i=true}else{if(n.active){e=true}else{this._onOpaqueTile(n)}n.active=true}}if(e&&!this._noPrune){this._pruneTiles()}if(i){z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}},_onOpaqueTile:c,_initContainer:function(){if(this._container){return}this._container=li("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(t===undefined){return undefined}for(var e in this._levels){e=Number(e);if(this._levels[e].el.children.length||e===t){this._levels[e].el.style.zIndex=i-Math.abs(t-e);this._onUpdateLevel(e)}else{ci(this._levels[e].el);this._removeTilesAtZoom(e);this._onRemoveLevel(e);delete this._levels[e]}}var r=this._levels[t],n=this._map;if(!r){r=this._levels[t]={};r.el=li("div","leaflet-tile-container leaflet-zoom-animated",this._container);r.el.style.zIndex=i;r.origin=n.project(n.unproject(n.getPixelOrigin()),t).round();r.zoom=t;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 t,i;var e=this._map.getZoom();if(e>this.options.maxZoom||e<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){i=this._tiles[t];i.retain=i.current}for(t in this._tiles){i=this._tiles[t];if(i.current&&!i.active){var r=i.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(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles){if(this._tiles[i].coords.z!==t){continue}this._removeTile(i)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ci(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,i,e,r){var n=Math.floor(t/2),s=Math.floor(i/2),o=e-1,a=new S(+n,+s);a.z=+o;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(o>r){return this._retainParent(n,s,o,r)}return false},_retainChildren:function(t,i,e,r){for(var n=2*t;n<2*t+2;n++){for(var s=2*i;s<2*i+2;s++){var o=new S(n,s);o.z=e+1;var a=this._tileCoordsToKey(o),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(e+1<r){this._retainChildren(n,s,e+1,r)}}}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var i=this.options;if(undefined!==i.minNativeZoom&&t<i.minNativeZoom){return i.minNativeZoom}if(undefined!==i.maxNativeZoom&&i.maxNativeZoom<t){return i.maxNativeZoom}return t},_setView:function(t,i,e,r){var n=Math.round(i);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 s=this.options.updateWhenZooming&&n!==this._tileZoom;if(!r||s){this._tileZoom=n;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(n!==undefined){this._update(t)}if(!e){this._pruneTiles()}this._noPrune=!!e}this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var e in this._levels){this._setZoomTransform(this._levels[e],t,i)}},_setZoomTransform:function(t,i,e){var r=this._map.getZoomScale(e,t.zoom),n=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(i,e)).round();if(Bt.any3d){xi(t.el,n,r)}else{ki(t.el,n)}},_resetGrid:function(){var t=this._map,i=t.options.crs,e=this._tileSize=this.getTileSize(),r=this._tileZoom;var n=this._map.getPixelWorldBounds(this._tileZoom);if(n){this._globalTileRange=this._pxBoundsToTileRange(n)}this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],r).x/e.x),Math.ceil(t.project([0,i.wrapLng[1]],r).x/e.y)];this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],r).y/e.x),Math.ceil(t.project([i.wrapLat[1],0],r).y/e.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var i=this._map,e=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),r=i.getZoomScale(e,this._tileZoom),n=i.project(t,this._tileZoom).floor(),s=i.getSize().divideBy(r*2);return new B(n.subtract(s),n.add(s))},_update:function(t){var i=this._map;if(!i){return}var e=this._clampZoom(i.getZoom());if(t===undefined){t=i.getCenter()}if(this._tileZoom===undefined){return}var r=this._getTiledPixelBounds(t),n=this._pxBoundsToTileRange(r),s=n.getCenter(),o=[],a=this.options.keepBuffer,l=new B(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 h=this._tiles[c].coords;if(h.z!==this._tileZoom||!l.contains(new S(h.x,h.y))){this._tiles[c].current=false}}if(Math.abs(e-this._tileZoom)>1){this._setView(t,e);return}for(var f=n.min.y;f<=n.max.y;f++){for(var u=n.min.x;u<=n.max.x;u++){var p=new S(u,f);p.z=this._tileZoom;if(!this._isValidTile(p)){continue}var d=this._tiles[this._tileCoordsToKey(p)];if(d){d.current=true}else{o.push(p)}}}o.sort((function(t,i){return t.distanceTo(s)-i.distanceTo(s)}));if(o.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(u=0;u<o.length;u++){this._addTile(o[u],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var e=this._globalTileRange;if(!i.wrapLng&&(t.x<e.min.x||t.x>e.max.x)||!i.wrapLat&&(t.y<e.min.y||t.y>e.max.y)){return false}}if(!this.options.bounds){return true}var r=this._tileCoordsToBounds(t);return N(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),r=t.scaleBy(e),n=r.add(e),s=i.unproject(r,t.z),o=i.unproject(n,t.z);return[s,o]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new R(i[0],i[1]);if(!this.options.noWrap){e=this._map.wrapLatLngBounds(e)}return e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new S(+i[0],+i[1]);e.z=+i[2];return e},_removeTile:function(t){var i=this._tiles[t];if(!i){return}ci(i.el);delete this._tiles[t];this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){di(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px";t.style.height=i.y+"px";t.onselectstart=c;t.onmousemove=c;if(Bt.ielt9&&this.options.opacity<1){wi(t,this.options.opacity)}},_addTile:function(t,i){var e=this._getTilePos(t),r=this._tileCoordsToKey(t);var s=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(s);if(this.createTile.length<2){M(n(this._tileReady,this,t,null,s))}ki(s,e);this._tiles[r]={el:s,coords:t,current:true};i.appendChild(s);this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,e){if(i){this.fire("tileerror",{error:i,tile:e,coords:t})}var r=this._tileCoordsToKey(t);e=this._tiles[r];if(!e){return}e.loaded=+new Date;if(this._map._fadeAnimated){wi(e.el,0);z(this._fadeFrame);this._fadeFrame=M(this._updateOpacity,this)}else{e.active=true;this._pruneTiles()}if(!i){di(e.el,"leaflet-tile-loaded");this.fire("tileload",{tile:e.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Bt.ielt9||!this._map._fadeAnimated){M(this._pruneTiles,this)}else{setTimeout(n(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new S(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);i.z=t.z;return i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new B(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function Fr(t){return new Br(t)}var Rr=Br.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,i){this._url=t;i=p(this,i);if(i.detectRetina&&Bt.retina&&i.maxZoom>0){i.tileSize=Math.floor(i.tileSize/2);if(!i.zoomReverse){i.zoomOffset++;i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)}else{i.zoomOffset--;i.minZoom=Math.min(i.maxZoom,i.minZoom+1)}i.minZoom=Math.max(0,i.minZoom)}else if(!i.zoomReverse){i.maxZoom=Math.max(i.minZoom,i.maxZoom)}else{i.minZoom=Math.min(i.maxZoom,i.minZoom)}if(typeof i.subdomains==="string"){i.subdomains=i.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){if(this._url===t&&i===undefined){i=true}this._url=t;if(!i){this.redraw()}return this},createTile:function(t,i){var e=document.createElement("img");Fi(e,"load",n(this._tileOnLoad,this,i,e));Fi(e,"error",n(this._tileOnError,this,i,e));if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){e.referrerPolicy=this.options.referrerPolicy}e.alt="";e.src=this.getTileUrl(t);return e},getTileUrl:function(t){var i={r:Bt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;if(this.options.tms){i["y"]=r}i["-y"]=r}return g(this._url,e(i,this.options))},_tileOnLoad:function(t,i){if(Bt.ielt9){setTimeout(n(t,this,null,i),0)}else{t(null,i)}},_tileOnError:function(t,i,e){var r=this.options.errorTileUrl;if(r&&i.getAttribute("src")!==r){i.src=r}t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,r=this.options.zoomOffset;if(e){t=i-t}return t+r},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){i=this._tiles[t].el;i.onload=c;i.onerror=c;if(!i.complete){i.src=b;var e=this._tiles[t].coords;ci(i);delete this._tiles[t];this.fire("tileabort",{tile:i,coords:e})}}}},_removeTile:function(t){var i=this._tiles[t];if(!i){return}i.el.setAttribute("src",b);return Br.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(!this._map||e&&e.getAttribute("src")===b){return}return Br.prototype._tileReady.call(this,t,i,e)}});function Nr(t,i){return new Rr(t,i)}var Dr=Rr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,i){this._url=t;var r=e({},this.defaultWmsParams);for(var n in i){if(!(n in this.options)){r[n]=i[n]}}i=p(this,i);var s=i.detectRetina&&Bt.retina?2:1;var o=this.getTileSize();r.width=o.x*s;r.height=o.y*s;this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code;Rr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,r=F(e.project(i[0]),e.project(i[1])),n=r.min,s=r.max,o=(this._wmsVersion>=1.3&&this._crs===$e?[n.y,n.x,s.y,s.x]:[n.x,n.y,s.x,s.y]).join(","),a=Rr.prototype.getTileUrl.call(this,t);return a+d(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,i){e(this.wmsParams,t);if(!i){this.redraw()}return this}});function Yr(t,i){return new Dr(t,i)}Rr.WMS=Dr;Nr.wms=Yr;var Gr=He.extend({options:{padding:.1},initialize:function(t){p(this,t);o(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();di(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),n=this._map.project(this._center,i),s=r.multiplyBy(-e).add(n).subtract(this._map._getNewPixelOrigin(t,i));if(Bt.any3d){xi(this._container,s,e)}else{ki(this._container,s)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new B(e,e.add(i.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var $r=Gr.extend({options:{tolerance:0},getEvents:function(){var t=Gr.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Gr.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Fi(t,"mousemove",this._onMouseMove,this);Fi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Fi(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;ci(this._container);Ni(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var i in this._layers){t=this._layers[i];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),r=Bt.retina?2:1;ki(i,t.min);i.width=r*e.x;i.height=r*e.y;i.style.width=e.x+"px";i.style.height=e.y+"px";if(Bt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Gr.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[o(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=i}this._drawLast=i;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order;var e=i.next;var r=i.prev;if(e){e.prev=r}else{this._drawLast=r}if(r){r.next=e}else{this._drawFirst=e}delete t._order;delete this._layers[o(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var i=t.options.dashArray.split(/[, ]+/),e=[],r,n;for(n=0;n<i.length;n++){r=Number(i[n]);if(isNaN(r)){return}e.push(r)}t.options._dashArray=e}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||M(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B;this._redrawBounds.extend(t._pxBounds.min.subtract([i,i]));this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_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 t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.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 t,i=this._redrawBounds;this._ctx.save();if(i){var e=i.getSize();this._ctx.beginPath();this._ctx.rect(i.min.x,i.min.y,e.x,e.y);this._ctx.clip()}this._drawing=true;for(var r=this._drawFirst;r;r=r.next){t=r.layer;if(!i||t._pxBounds&&t._pxBounds.intersects(i)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,i){if(!this._drawing){return}var e,r,n,s,o=t._parts,a=o.length,l=this._ctx;if(!a){return}l.beginPath();for(e=0;e<a;e++){for(r=0,n=o[e].length;r<n;r++){s=o[e][r];l[r?"lineTo":"moveTo"](s.x,s.y)}if(i){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var i=t._point,e=this._ctx,r=Math.max(Math.round(t._radius),1),n=(Math.max(Math.round(t._radiusY),1)||r)/r;if(n!==1){e.save();e.scale(1,n)}e.beginPath();e.arc(i.x,i.y/n,r,0,Math.PI*2,false);if(n!==1){e.restore()}this._fillStroke(e,t)},_fillStroke:function(t,i){var e=i.options;if(e.fill){t.globalAlpha=e.fillOpacity;t.fillStyle=e.fillColor||e.color;t.fill(e.fillRule||"evenodd")}if(e.stroke&&e.weight!==0){if(t.setLineDash){t.setLineDash(i.options&&i.options._dashArray||[])}t.globalAlpha=e.opacity;t.lineWidth=e.weight;t.strokeStyle=e.color;t.lineCap=e.lineCap;t.lineJoin=e.lineJoin;t.stroke()}},_onClick:function(t){var i=this._map.mouseEventToLayerPoint(t),e,r;for(var n=this._drawFirst;n;n=n.next){e=n.layer;if(e.options.interactive&&e._containsPoint(i)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(e)){r=e}}}this._fireEvent(r?[r]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)},_handleMouseOut:function(t){var i=this._hoveredLayer;if(i){mi(this._container,"leaflet-interactive");this._fireEvent([i],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,i){if(this._mouseHoverThrottled){return}var e,r;for(var s=this._drawFirst;s;s=s.next){e=s.layer;if(e.options.interactive&&e._containsPoint(i)){r=e}}if(r!==this._hoveredLayer){this._handleMouseOut(t);if(r){di(this._container,"leaflet-interactive");this._fireEvent([r],t,"mouseover");this._hoveredLayer=r}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(n((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,i,e){this._map._fireDOMEvent(i,e||i.type,t)},_bringToFront:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(e){e.prev=r}else{return}if(r){r.next=e}else if(e){this._drawFirst=e}i.prev=this._drawLast;this._drawLast.next=i;i.next=null;this._drawLast=i;this._requestRedraw(t)},_bringToBack:function(t){var i=t._order;if(!i){return}var e=i.next;var r=i.prev;if(r){r.next=e}else{return}if(e){e.prev=r}else if(r){this._drawLast=r}i.prev=null;i.next=this._drawFirst;this._drawFirst.prev=i;this._drawFirst=i;this._requestRedraw(t)}});function Zr(t){return Bt.canvas?new $r(t):null}var Hr=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}();var Ur={_initContainer:function(){this._container=li("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Gr.prototype._update.call(this);this.fire("update")},_initPath:function(t){var i=t._container=Hr("shape");di(i,"leaflet-vml-shape "+(this.options.className||""));i.coordsize="1 1";t._path=Hr("path");i.appendChild(t._path);this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i);if(t.options.interactive){t.addInteractiveTarget(i)}},_removePath:function(t){var i=t._container;ci(i);t.removeInteractiveTarget(i);delete this._layers[o(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,r=t.options,n=t._container;n.stroked=!!r.stroke;n.filled=!!r.fill;if(r.stroke){if(!i){i=t._stroke=Hr("stroke")}n.appendChild(i);i.weight=r.weight+"px";i.color=r.color;i.opacity=r.opacity;if(r.dashArray){i.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," ")}else{i.dashStyle=""}i.endcap=r.lineCap.replace("butt","flat");i.joinstyle=r.lineJoin}else if(i){n.removeChild(i);t._stroke=null}if(r.fill){if(!e){e=t._fill=Hr("fill")}n.appendChild(e);e.color=r.fillColor||r.color;e.opacity=r.fillOpacity}else if(e){n.removeChild(e);t._fill=null}},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),r=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+r+" 0,"+65535*360)},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){fi(t._container)},_bringToBack:function(t){ui(t._container)}};var Qr=Bt.vml?Hr:K;var Vr=Gr.extend({_initContainer:function(){this._container=Qr("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Qr("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ci(this._container);Ni(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gr.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;if(!this._svgSize||!this._svgSize.equals(i)){this._svgSize=i;e.setAttribute("width",i.x);e.setAttribute("height",i.y)}ki(e,t.min);e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" "));this.fire("update")},_initPath:function(t){var i=t._path=Qr("path");if(t.options.className){di(i,t.options.className)}if(t.options.interactive){di(i,"leaflet-interactive")}this._updateStyle(t);this._layers[o(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ci(t._path);t.removeInteractiveTarget(t._path);delete this._layers[o(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var i=t._path,e=t.options;if(!i){return}if(e.stroke){i.setAttribute("stroke",e.color);i.setAttribute("stroke-opacity",e.opacity);i.setAttribute("stroke-width",e.weight);i.setAttribute("stroke-linecap",e.lineCap);i.setAttribute("stroke-linejoin",e.lineJoin);if(e.dashArray){i.setAttribute("stroke-dasharray",e.dashArray)}else{i.removeAttribute("stroke-dasharray")}if(e.dashOffset){i.setAttribute("stroke-dashoffset",e.dashOffset)}else{i.removeAttribute("stroke-dashoffset")}}else{i.setAttribute("stroke","none")}if(e.fill){i.setAttribute("fill",e.fillColor||e.color);i.setAttribute("fill-opacity",e.fillOpacity);i.setAttribute("fill-rule",e.fillRule||"evenodd")}else{i.setAttribute("fill","none")}},_updatePoly:function(t,i){this._setPath(t,J(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),r=Math.max(Math.round(t._radiusY),1)||e,n="a"+e+","+r+" 0 1,0 ";var s=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+e*2+",0 "+n+-e*2+",0 ";this._setPath(t,s)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){fi(t._path)},_bringToBack:function(t){ui(t._path)}});if(Bt.vml){Vr.include(Ur)}function Wr(t){return Bt.svg||Bt.vml?new Vr(t):null}ee.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!i){i=this._renderer=this._createRenderer()}if(!this.hasLayer(i)){this.addLayer(i)}return i},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var i=this._paneRenderers[t];if(i===undefined){i=this._createRenderer({pane:t});this._paneRenderers[t]=i}return i},_createRenderer:function(t){return this.options.preferCanvas&&Zr(t)||Wr(t)}});var Kr=cr.extend({initialize:function(t,i){cr.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=N(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Jr(t,i){return new Kr(t,i)}Vr.create=Qr;Vr.pointsToPath=J;fr.geometryToLayer=ur;fr.coordsToLatLng=dr;fr.coordsToLatLngs=mr;fr.latLngToCoords=gr;fr.latLngsToCoords=vr;fr.getFeature=wr;fr.asFeature=br;ee.mergeOptions({boxZoom:true});var qr=me.extend({initialize:function(t){this._map=t;this._container=t._container;this._pane=t._panes.overlayPane;this._resetStateTimeout=0;t.on("unload",this._destroy,this)},addHooks:function(){Fi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ni(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ci(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(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();_i();Ci();this._startPoint=this._map.mouseEventToContainerPoint(t);Fi(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=li("div","leaflet-zoom-box",this._container);di(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var i=new B(this._point,this._startPoint),e=i.getSize();ki(this._box,i.min);this._box.style.width=e.x+"px";this._box.style.height=e.y+"px"},_finish:function(){if(this._moved){ci(this._box);mi(this._container,"leaflet-crosshair")}Mi();Ei();Ni(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var i=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});ee.addInitHook("addHandler","boxZoom",qr);ee.mergeOptions({doubleClickZoom:true});var Xr=me.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),r=i.options.zoomDelta,n=t.originalEvent.shiftKey?e-r:e+r;if(i.options.doubleClickZoom==="center"){i.setZoom(n)}else{i.setZoomAround(t.containerPoint,n)}}});ee.addInitHook("addHandler","doubleClickZoom",Xr);ee.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var tn=me.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new we(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}di(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){mi(this._map._container,"leaflet-grab");mi(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 t=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=N(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e);this._times.push(i);this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var i=this._offsetLimit;if(t.x<i.min.x){t.x=this._viscousLimit(t.x,i.min.x)}if(t.y<i.min.y){t.y=this._viscousLimit(t.y,i.min.y)}if(t.x>i.max.x){t.x=this._viscousLimit(t.x,i.max.x)}if(t.y>i.max.y){t.y=this._viscousLimit(t.y,i.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,r=this._draggable._newPos.x,n=(r-i+e)%t+i-e,s=(r+i+e)%t-i-e,o=Math.abs(n+e)<Math.abs(s+e)?n:s;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,e=i.options,r=!e.inertia||t.noInertia||this._times.length<2;i.fire("dragend",t);if(r){i.fire("moveend")}else{this._prunePositions(+new Date);var n=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,o=e.easeLinearity,a=n.multiplyBy(o/s),l=a.distanceTo([0,0]),c=Math.min(e.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),f=c/(e.inertiaDeceleration*o),u=h.multiplyBy(-f/2).round();if(!u.x&&!u.y){i.fire("moveend")}else{u=i._limitOffset(u,i.options.maxBounds);M((function(){i.panBy(u,{duration:f,easeLinearity:o,noMoveStart:true,animate:true})}))}}}});ee.addInitHook("addHandler","dragging",tn);ee.mergeOptions({keyboard:true,keyboardPanDelta:80});var en=me.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t;this._setPanDelta(t.options.keyboardPanDelta);this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;if(t.tabIndex<=0){t.tabIndex="0"}Fi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this);this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks();Ni(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 t=document.body,i=document.documentElement,e=t.scrollTop||i.scrollTop,r=t.scrollLeft||i.scrollLeft;this._map._container.focus();window.scrollTo(r,e)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var i=this._panKeys={},e=this.keyCodes,r,n;for(r=0,n=e.left.length;r<n;r++){i[e.left[r]]=[-1*t,0]}for(r=0,n=e.right.length;r<n;r++){i[e.right[r]]=[t,0]}for(r=0,n=e.down.length;r<n;r++){i[e.down[r]]=[0,t]}for(r=0,n=e.up.length;r<n;r++){i[e.up[r]]=[0,-1*t]}},_setZoomDelta:function(t){var i=this._zoomKeys={},e=this.keyCodes,r,n;for(r=0,n=e.zoomIn.length;r<n;r++){i[e.zoomIn[r]]=t}for(r=0,n=e.zoomOut.length;r<n;r++){i[e.zoomOut[r]]=-t}},_addHooks:function(){Fi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ni(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var i=t.keyCode,e=this._map,r;if(i in this._panKeys){if(!e._panAnim||!e._panAnim._inProgress){r=this._panKeys[i];if(t.shiftKey){r=I(r).multiplyBy(3)}if(e.options.maxBounds){r=e._limitOffset(I(r),e.options.maxBounds)}if(e.options.worldCopyJump){var n=e.wrapLatLng(e.unproject(e.project(e.getCenter()).add(r)));e.panTo(n)}else{e.panBy(r)}}}else if(i in this._zoomKeys){e.setZoom(e.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i])}else if(i===27&&e._popup&&e._popup.options.closeOnEscapeKey){e.closePopup()}else{return}Vi(t)}});ee.addInitHook("addHandler","keyboard",en);ee.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rn=me.extend({addHooks:function(){Fi(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ni(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=qi(t);var e=this._map.options.wheelDebounceTime;this._delta+=i;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var r=Math.max(e-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(n(this._performZoom,this),r);Vi(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),e=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),n=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,s=e?Math.ceil(n/e)*e:n,o=t._limitZoom(i+(this._delta>0?s:-s))-i;this._delta=0;this._startTime=null;if(!o){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(i+o)}else{t.setZoomAround(this._lastMousePos,i+o)}}});ee.addInitHook("addHandler","scrollWheelZoom",rn);var nn=600;ee.mergeOptions({tapHold:Bt.touchNative&&Bt.safari&&Bt.mobile,tapTolerance:15});var sn=me.extend({addHooks:function(){Fi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ni(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var i=t.touches[0];this._startPos=this._newPos=new S(i.clientX,i.clientY);this._holdTimeout=setTimeout(n((function(){this._cancel();if(!this._isTapValid()){return}Fi(document,"touchend",Qi);Fi(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",i)}),this),nn);Fi(document,"touchend touchcancel contextmenu",this._cancel,this);Fi(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Ni(document,"touchend",Qi);Ni(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Ni(document,"touchend touchcancel contextmenu",this._cancel,this);Ni(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new S(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var e=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});e._simulated=true;i.target.dispatchEvent(e)}});ee.addInitHook("addHandler","tapHold",sn);ee.mergeOptions({touchZoom:Bt.touch,bounceAtZoomLimits:true});var on=me.extend({addHooks:function(){di(this._map._container,"leaflet-touch-zoom");Fi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mi(this._map._container,"leaflet-touch-zoom");Ni(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(!t.touches||t.touches.length!==2||i._animatingZoom||this._zooming){return}var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2);this._startLatLng=i.containerPointToLatLng(this._centerPoint);if(i.options.touchZoom!=="center"){this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))}this._startDist=e.distanceTo(r);this._startZoom=i.getZoom();this._moved=false;this._zooming=true;i._stop();Fi(document,"touchmove",this._onTouchMove,this);Fi(document,"touchend touchcancel",this._onTouchEnd,this);Qi(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var i=this._map,e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),s=e.distanceTo(r)/this._startDist;this._zoom=i.getScaleZoom(s,this._startZoom);if(!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&s<1||this._zoom>i.getMaxZoom()&&s>1)){this._zoom=i._limitZoom(this._zoom)}if(i.options.touchZoom==="center"){this._center=this._startLatLng;if(s===1){return}}else{var o=e._add(r)._divideBy(2)._subtract(this._centerPoint);if(s===1&&o.x===0&&o.y===0){return}this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}if(!this._moved){i._moveStart(true,false);this._moved=true}z(this._animRequest);var a=n(i._move,i,this._center,this._zoom,{pinch:true,round:false},undefined);this._animRequest=M(a,this,true);Qi(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Ni(document,"touchmove",this._onTouchMove,this);Ni(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))}}});ee.addInitHook("addHandler","touchZoom",on);ee.BoxZoom=qr;ee.DoubleClickZoom=Xr;ee.Drag=tn;ee.Keyboard=en;ee.ScrollWheelZoom=rn;ee.TapHold=sn;ee.TouchZoom=on;t.Bounds=B;t.Browser=Bt;t.CRS=G;t.Canvas=$r;t.Circle=sr;t.CircleMarker=rr;t.Class=E;t.Control=ne;t.DivIcon=Tr;t.DivOverlay=Er;t.DomEvent=te;t.DomUtil=Bi;t.Draggable=we;t.Evented=j;t.FeatureGroup=Ve;t.GeoJSON=fr;t.GridLayer=Br;t.Handler=me;t.Icon=Ke;t.ImageOverlay=Ar;t.LatLng=D;t.LatLngBounds=R;t.Layer=He;t.LayerGroup=Ue;t.LineUtil=Re;t.Map=ee;t.Marker=tr;t.Mixin=ge;t.Path=er;t.Point=S;t.PolyUtil=ke;t.Polygon=cr;t.Polyline=ar;t.Popup=Pr;t.PosAnimation=ie;t.Projection=Ye;t.Rectangle=Kr;t.Renderer=Gr;t.SVG=Vr;t.SVGOverlay=Lr;t.TileLayer=Rr;t.Tooltip=jr;t.Transformation=U;t.Util=C;t.VideoOverlay=Mr;t.bind=n;t.bounds=F;t.canvas=Zr;t.circle=or;t.circleMarker=nr;t.control=se;t.divIcon=Ir;t.extend=e;t.featureGroup=We;t.geoJSON=xr;t.geoJson=kr;t.gridLayer=Fr;t.icon=Je;t.imageOverlay=_r;t.latLng=Y;t.latLngBounds=N;t.layerGroup=Qe;t.map=re;t.marker=ir;t.point=I;t.polygon=hr;t.polyline=lr;t.popup=Or;t.rectangle=Jr;t.setOptions=p;t.stamp=o;t.svg=Wr;t.svgOverlay=Cr;t.tileLayer=Nr;t.tooltip=Sr;t.transformation=Q;t.version=i;t.videoOverlay=zr;var an=window.L;t.noConflict=function(){window.L=an;return this};window.L=t}))}));!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){const t=L.extend({},L.DomUtil);L.extend(L.DomUtil,{setTransform:function(i,e,r,n,s){var o=e||new L.Point(0,0);if(!n)return e=o._round(),t.setTransform.apply(this,arguments);o=o.rotateFrom(n,s),i.style[L.DomUtil.TRANSFORM]="translate3d("+o.x+"px,"+o.y+"px,0)"+(r?" scale("+r+")":"")+" rotate("+n+"rad)"},setPosition:function(i,e,r,n,s){if(!r)return t.setPosition.apply(this,arguments);i._leaflet_pos=e,L.Browser.any3d?L.DomUtil.setTransform(i,e,s,r,n):(i.style.left=e.x+"px",i.style.top=e.y+"px")},DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI}),L.Draggable.include({}),L.extend(L.Point.prototype,{rotate:function(t){return this.rotateFrom(t,new L.Point(0,0))},rotateFrom:function(t,i){if(!t)return this;var e=Math.sin(t),r=Math.cos(t),n=i.x,s=i.y,o=this.x-n,a=this.y-s;return new L.Point(o*r-a*e+n,o*e+a*r+s)}});const i=L.extend({},L.DivOverlay.prototype);L.DivOverlay.include({getEvents:function(){return L.extend(i.getEvents.apply(this,arguments),{rotate:this._updatePosition})},_updatePosition:function(){if(this._map&&(i._updatePosition.apply(this,arguments),this._map&&this._map._rotate&&this._zoomAnimated)){var t=this._getAnchor(),e=L.DomUtil.getPosition(this._container).subtract(t);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(e).add(t))}}});const e=L.extend({},L.Popup.prototype);L.Popup.include({_animateZoom:function(t){if(e._animateZoom.apply(this,arguments),this._map&&this._map._rotate){var i=this._getAnchor(),r=L.DomUtil.getPosition(this._container).subtract(i);L.DomUtil.setPosition(this._container,this._map.rotatedPointToMapPanePoint(r).add(i))}},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress))if(this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(L.DomUtil.getStyle(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,r=this._containerWidth,n=new L.Point(this._containerLeft,-e-this._containerBottom);n._add(L.DomUtil.getPosition(this._container));var s=n._add(this._map._getMapPanePos()),o=L.point(this.options.autoPanPadding),a=L.point(this.options.autoPanPaddingTopLeft||o),l=L.point(this.options.autoPanPaddingBottomRight||o),c=t.getSize(),h=0,f=0;s.x+r+l.x>c.x&&(h=s.x+r-c.x+l.x),s.x-h-a.x<0&&(h=s.x-a.x),s.y+e+l.y>c.y&&(f=s.y+e-c.y+l.y),s.y-f-a.y<0&&(f=s.y-a.y),(h||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([h,f]))}}});const r=L.extend({},L.Tooltip.prototype);L.Tooltip.include({_animateZoom:function(t){if(!this._map._rotate)return r._animateZoom.apply(this,arguments);var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);i=this._map.rotatedPointToMapPanePoint(i),this._setPosition(i)},_updatePosition:function(){if(!this._map._rotate)return r._updatePosition.apply(this,arguments);var t=this._map.latLngToLayerPoint(this._latlng);t=this._map.rotatedPointToMapPanePoint(t),this._setPosition(t)}}),L.extend({},L.Icon.prototype),L.Icon.include({_setIconStyles:function(t,i){var e=this.options,r=e[i+"Size"];"number"==typeof r&&(r=[r,r]);var n=L.point(r),s=L.point("shadow"===i&&e.shadowAnchor||e.iconAnchor||n&&n.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(e.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px",t.style[L.DomUtil.TRANSFORM+"Origin"]=s.x+"px "+s.y+"px 0px"),n&&(t.style.width=n.x+"px",t.style.height=n.y+"px")}});const n=L.extend({},L.Marker.prototype);var s;L.Marker.mergeOptions({rotation:0,rotateWithView:!1,scale:void 0});var o={_onDrag:function(t){var i=this._marker,e=i.options.rotation||i.options.rotateWithView,r=i._shadow,n=L.DomUtil.getPosition(i._icon);!e&&r&&L.DomUtil.setPosition(r,n),i._map._rotate&&(n=i._map.mapPanePointToRotatedPoint(n));var s=i._map.layerPointToLatLng(n);i._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e?i.setLatLng(s):i.fire("move",t),i.fire("drag",t)},_onDragEnd:function(t){this._marker._map._rotate&&this._marker.update(),s._onDragEnd.apply(this,arguments)}};L.Marker.include({getEvents:function(){return L.extend(n.getEvents.apply(this,arguments),{rotate:this.update})},_initInteraction:function(){var t=n._initInteraction.apply(this,arguments);return this.dragging&&this.dragging.enabled()&&this._map&&this._map._rotate&&(s=s||Object.getPrototypeOf(this.dragging),this.dragging.disable(),Object.assign(this.dragging,{_onDrag:o._onDrag.bind(this.dragging),_onDragEnd:o._onDragEnd.bind(this.dragging)}),this.dragging.enable()),t},_setPos:function(t){this._map._rotate&&(t=this._map.rotatedPointToMapPanePoint(t));var i=this.options.rotation||0;this.options.rotateWithView&&(i+=this._map._bearing),this._icon&&L.DomUtil.setPosition(this._icon,t,i,t,this.options.scale),this._shadow&&L.DomUtil.setPosition(this._shadow,t,i,t,this.options.scale),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},setRotation:function(t){this.options.rotation=t,this.update()}});const a=L.extend({},L.GridLayer.prototype);L.GridLayer.include({getEvents:function(){var t=a.getEvents.apply(this,arguments);return this._map._rotate&&!this.options.updateWhenIdle&&(this._onRotate||(this._onRotate=L.Util.throttle(this._onMoveEnd,this.options.updateInterval,this)),t.rotate=this._onRotate),t},_getTiledPixelBounds:function(t){return this._map._rotate?this._map._getNewPixelBounds(t,this._tileZoom):a._getTiledPixelBounds.apply(this,arguments)}});const 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(t,i){if(!this._map._rotate)return l._updateTransform.apply(this,arguments);var e=this._map.getZoomScale(i,this._zoom),r=this._map._latLngToNewLayerPoint(this._topLeft,i,t);L.DomUtil.setTransform(this._container,r,e)},_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()}});const c=L.extend({},L.Map.prototype);L.Map.mergeOptions({rotate:!1,bearing:0}),L.Map.include({initialize:function(t,i){i.rotate&&(this._rotate=!0,this._bearing=0),c.initialize.apply(this,arguments),this.options.rotate&&this.setBearing(this.options.bearing)},containerPointToLayerPoint:function(t){return this._rotate?L.point(t).subtract(this._getMapPanePos()).rotateFrom(-this._bearing,this._getRotatePanePos()).subtract(this._getRotatePanePos()):c.containerPointToLayerPoint.apply(this,arguments)},layerPointToContainerPoint:function(t){return this._rotate?L.point(t).add(this._getRotatePanePos()).rotateFrom(this._bearing,this._getRotatePanePos()).add(this._getMapPanePos()):c.layerPointToContainerPoint.apply(this,arguments)},rotatedPointToMapPanePoint:function(t){return L.point(t).rotate(this._bearing)._add(this._getRotatePanePos())},mapPanePointToRotatedPoint:function(t){return L.point(t)._subtract(this._getRotatePanePos()).rotate(-this._bearing)},mapBoundsToContainerBounds:function(t){if(!this._rotate&&c.mapBoundsToContainerBounds)return c.mapBoundsToContainerBounds.apply(this,arguments);const i=this.getPixelOrigin(),e=this.layerPointToContainerPoint(this.project(t.getNorthWest())._subtract(i)),r=this.layerPointToContainerPoint(this.project(t.getNorthEast())._subtract(i)),n=this.layerPointToContainerPoint(this.project(t.getSouthWest())._subtract(i)),s=this.layerPointToContainerPoint(this.project(t.getSouthEast())._subtract(i));return L.bounds([L.point(Math.min(e.x,r.x,s.x,n.x),Math.min(e.y,r.y,s.y,n.y)),L.point(Math.max(e.x,r.x,s.x,n.x),Math.max(e.y,r.y,s.y,n.y))])},getBounds:function(){if(!this._rotate)return c.getBounds.apply(this,arguments);var t=this.getSize();return new L.LatLngBounds([this.containerPointToLatLng([0,0]),this.containerPointToLatLng([t.x,0]),this.containerPointToLatLng([t.x,t.y]),this.containerPointToLatLng([0,t.y])])},setBearing:function(t){if(L.Browser.any3d&&this._rotate){var i=L.Util.wrapNum(t,[0,360])*L.DomUtil.DEG_TO_RAD,e=this._getPixelCenter(),r=this._getRotatePanePos().rotateFrom(-this._bearing,e),n=r.rotateFrom(i,e);L.DomUtil.setPosition(this._rotatePane,r,i,e),this._pivot=e,this._bearing=i,this._rotatePanePos=n,this.fire("rotate")}},getBearing:function(){return this._bearing*L.DomUtil.RAD_TO_DEG},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),L.DomUtil.setPosition(this._mapPane,new L.Point(0,0)),this._rotate?(this._rotatePane=this.createPane("rotatePane",this._mapPane),this._norotatePane=this.createPane("norotatePane",this._mapPane),this.createPane("tilePane",this._rotatePane),this.createPane("overlayPane",this._rotatePane),this.createPane("shadowPane",this._norotatePane),this.createPane("markerPane",this._norotatePane),this.createPane("tooltipPane",this._norotatePane),this.createPane("popupPane",this._norotatePane)):(this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane")),this.options.markerZoomAnimation||(L.DomUtil.addClass(t.markerPane,"leaflet-zoom-hide"),L.DomUtil.addClass(t.shadowPane,"leaflet-zoom-hide"))},panInside(t,i){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.panInside.apply(this,arguments);i=i||{};const e=L.point(i.paddingTopLeft||i.padding||[0,0]),r=L.point(i.paddingBottomRight||i.padding||[0,0]),n=this._container.getBoundingClientRect(),s=this.latLngToContainerPoint(t),o=L.bounds([L.point(n),L.point(n).add(this.getSize())]),a=o.getCenter(),l=L.bounds([o.min.add(e),o.max.subtract(r)]),h=l.getSize();if(!l.contains(s)){this._enforcingBounds=!0;const t=s.subtract(l.getCenter()),e=l.extend(s).getSize().subtract(h);a.x+=t.x<0?-e.x:e.x,a.y+=t.y<0?-e.y:e.y,this.panTo(this.containerPointToLatLng(a),i),this._enforcingBounds=!1}return this},getBoundsZoom(t,i,e){if(!this._rotate||Math.abs(this._bearing).toFixed(1)<.1)return c.getBoundsZoom.apply(this,arguments);t=L.latLngBounds(t),e=L.point(e||[0,0]);let r=this.getZoom()||0;const n=this.getMinZoom(),s=this.getMaxZoom(),o=this.getSize().subtract(e),a=this.mapBoundsToContainerBounds(t).getSize(),l=this.options.zoomSnap,h=o.x/a.x,f=o.y/a.y,u=i?Math.max(h,f):Math.min(h,f);return r=this.getScaleZoom(u,r),l&&(r=Math.round(r/(l/100))*(l/100),r=i?Math.ceil(r/l)*l:Math.floor(r/l)*l),Math.max(n,Math.min(s,r))},_getCenterOffset:function(t){var i=c._getCenterOffset.apply(this,arguments);return this._rotate&&(i=i.rotate(this._bearing)),i},_getRotatePanePos:function(){return this._rotatePanePos||new L.Point(0,0)},_getNewPixelOrigin:function(t,i){if(!this._rotate)return c._getNewPixelOrigin.apply(this,arguments);var e=this.getSize()._divideBy(2);return this.project(t,i).rotate(this._bearing)._subtract(e)._add(this._getMapPanePos())._add(this._getRotatePanePos()).rotate(-this._bearing)._round()},_getNewPixelBounds:function(t,i){if(t=t||this.getCenter(),i=i||this.getZoom(),!this._rotate&&c._getNewPixelBounds)return c._getNewPixelBounds.apply(this,arguments);var e=this._animatingZoom?Math.max(this._animateToZoom,this.getZoom()):this.getZoom(),r=this.getZoomScale(e,i),n=this.project(t,i).floor(),s=this.getSize(),o=new L.Bounds([this.containerPointToLayerPoint([0,0]).floor(),this.containerPointToLayerPoint([s.x,0]).floor(),this.containerPointToLayerPoint([0,s.y]).floor(),this.containerPointToLayerPoint([s.x,s.y]).floor()]).getSize().divideBy(2*r);return new L.Bounds(n.subtract(o),n.add(o))},_getPixelCenter:function(){return!this._rotate&&c._getPixelCenter?c._getPixelCenter.apply(this,arguments):this.getSize()._divideBy(2)._subtract(this._getMapPanePos())},_getPaddedPixelBounds:function(t){if(!this._rotate&&c._getPaddedPixelBounds)return c._getPaddedPixelBounds.apply(this,arguments);var i=t,e=this.getSize(),r=e.multiplyBy(-i),n=e.multiplyBy(1+i);return new L.Bounds([this.containerPointToLayerPoint([r.x,r.y]).floor(),this.containerPointToLayerPoint([r.x,n.y]).floor(),this.containerPointToLayerPoint([n.x,r.y]).floor(),this.containerPointToLayerPoint([n.x,n.y]).floor()])},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=t.coords.latitude,e=t.coords.longitude,r=t.coords.heading,n=new L.LatLng(i,e),s=n.toBounds(t.coords.accuracy),o=this._locateOptions;if(o.setView){var a=this.getBoundsZoom(s);this.setView(n,o.maxZoom?Math.min(a,o.maxZoom):a)}var l={latlng:n,bounds:s,timestamp:t.timestamp,heading:r};for(var c in t.coords)"number"==typeof t.coords[c]&&(l[c]=t.coords[c]);this.fire("locationfound",l)}}}),L.Map.CompassBearing=L.Handler.extend({initialize:function(t){this._map=t,"ondeviceorientationabsolute"in window?this.__deviceOrientationEvent="deviceorientationabsolute":"ondeviceorientation"in window&&(this.__deviceOrientationEvent="deviceorientation"),this._throttled=L.Util.throttle(this._onDeviceOrientation,100,this)},addHooks:function(){this._map._rotate&&this.__deviceOrientationEvent?L.DomEvent.on(window,this.__deviceOrientationEvent,this._throttled,this):this.disable()},removeHooks:function(){this._map._rotate&&this.__deviceOrientationEvent&&L.DomEvent.off(window,this.__deviceOrientationEvent,this._throttled,this)},_onDeviceOrientation:function(t){var i=t.webkitCompassHeading||t.alpha,e=0;!t.absolute&&t.webkitCompassHeading&&(i=360-i),t.absolute||void 0===window.orientation||(e=window.orientation),this._map.setBearing(i-e)}}),L.Map.addInitHook("addHandler","compassBearing",L.Map.CompassBearing),L.Map.mergeOptions({trackContainerMutation:!1}),L.Map.ContainerMutation=L.Handler.extend({addHooks:function(){this._observer||(this._observer=new MutationObserver(L.Util.bind(this._map.invalidateSize,this._map))),this._observer.observe(this._map.getContainer(),{childList:!1,attributes:!0,characterData:!1,subtree:!1,attributeFilter:["style"]})},removeHooks:function(){this._observer.disconnect()}}),L.Map.addInitHook("addHandler","trackContainerMutation",L.Map.ContainerMutation),L.Map.mergeOptions({bounceAtZoomLimits:!0}),L.Map.TouchGestures=L.Handler.extend({initialize:function(t){this._map=t,this.rotate=!!this._map.options.touchRotate,this.zoom=!!this._map.options.touchZoom},addHooks:function(){L.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){L.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming&&!this._rotating){var e=i.mouseEventToContainerPoint(t.touches[0]),r=i.mouseEventToContainerPoint(t.touches[1]),n=e.subtract(r);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),this.zoom?("center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(r)._divideBy(2))),this._startDist=e.distanceTo(r),this._startZoom=i.getZoom(),this._zooming=!0):this._zooming=!1,this.rotate?(this._startTheta=Math.atan(n.x/n.y),this._startBearing=i.getBearing(),n.y<0&&(this._startBearing+=180),this._rotating=!0):this._rotating=!1,this._moved=!1,i._stop(),L.DomEvent.on(document,"touchmove",this._onTouchMove,this).on(document,"touchend touchcancel",this._onTouchEnd,this),L.DomEvent.preventDefault(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&(this._zooming||this._rotating)){var i,e=this._map,r=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=r.subtract(n),o=r.distanceTo(n)/this._startDist;if(this._rotating){var a=(Math.atan(s.x/s.y)-this._startTheta)*L.DomUtil.RAD_TO_DEG;s.y<0&&(a+=180),a&&e.setBearing(this._startBearing-a)}if(this._zooming)if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{if(i=r._add(n)._divideBy(2)._subtract(this._centerPoint),1===o&&0===i.x&&0===i.y)return;var l=-e.getBearing()*L.DomUtil.DEG_TO_RAD;this._center=e.unproject(e.project(this._pinchStartLatLng).subtract(i.rotate(l)))}this._moved||(e._moveStart(!0,!1),this._moved=!0),L.Util.cancelAnimFrame(this._animRequest);var c=e._move.bind(e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=L.Util.requestAnimFrame(c,this,!0),L.DomEvent.preventDefault(t)}},_onTouchEnd:function(){this._moved&&(this._zooming||this._rotating)?(this._zooming=!1,this._rotating=!1,L.Util.cancelAnimFrame(this._animRequest),L.DomEvent.off(document,"touchmove",this._onTouchMove,this).off(document,"touchend touchcancel",this._onTouchEnd,this),this.zoom&&(this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom)))):this._zooming=!1}}),L.Map.addInitHook("addHandler","touchGestures",L.Map.TouchGestures),L.Map.mergeOptions({touchRotate:!1}),L.Map.TouchRotate=L.Handler.extend({addHooks:function(){this._map.touchGestures.enable(),this._map.touchGestures.rotate=!0},removeHooks:function(){this._map.touchGestures.rotate=!1}}),L.Map.addInitHook("addHandler","touchRotate",L.Map.TouchRotate),L.Map.mergeOptions({shiftKeyRotate:!0}),L.Map.ShiftKeyRotate=L.Handler.extend({addHooks:function(){L.DomEvent.on(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!0},removeHooks:function(){L.DomEvent.off(this._map._container,"wheel",this._handleShiftScroll,this),this._map.shiftKeyRotate.rotate=!1},_handleShiftScroll:function(t){t.shiftKey?(t.preventDefault(),this._map.scrollWheelZoom.disable(),this._map.setBearing(this._map._bearing*L.DomUtil.RAD_TO_DEG+5*Math.sign(t.deltaY))):this._map.scrollWheelZoom.enable()}}),L.Map.addInitHook("addHandler","shiftKeyRotate",L.Map.ShiftKeyRotate),L.Map.addInitHook((function(){this.scrollWheelZoom.enabled()&&this.shiftKeyRotate.enabled()&&(this.scrollWheelZoom.disable(),this.scrollWheelZoom.enable())})),L.Map.mergeOptions({touchZoom:L.Browser.touch,bounceAtZoomLimits:!1}),L.Map.TouchZoom=L.Handler.extend({addHooks:function(){L.DomUtil.addClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.enable(),this._map.touchGestures.zoom=!0},removeHooks:function(){L.DomUtil.removeClass(this._map._container,"leaflet-touch-zoom"),this._map.touchGestures.zoom=!1}}),L.Map.addInitHook("addHandler","touchZoom",L.Map.TouchZoom),L.Control.Rotate=L.Control.extend({options:{position:"topleft",closeOnZeroBearing:!0},onAdd:function(t){var i=this._container=L.DomUtil.create("div","leaflet-control-rotate leaflet-bar"),e=this._arrow=L.DomUtil.create("span","leaflet-control-rotate-arrow");e.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\")",e.style.cursor="grab",e.style.display="block",e.style.width="100%",e.style.height="100%",e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="50%";var r=this._link=L.DomUtil.create("a","leaflet-control-rotate-toggle",i);return r.appendChild(e),r.href="#",r.title="Rotate map",L.DomEvent.on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"mousedown",this._handleMouseDown,this).on(r,"click",L.DomEvent.stop).on(r,"click",this._cycleState,this).on(r,"click",this._refocusOnMap,this),L.Browser.any3d||L.DomUtil.addClass(r,"leaflet-disabled"),this._restyle(),t.on("rotate",this._restyle,this),this._follow=!1,this._canFollow=!1,this.options.closeOnZeroBearing&&0===t.getBearing()&&(i.style.display="none"),i},onRemove:function(t){t.off("rotate",this._restyle,this)},_handleMouseDown:function(t){L.DomEvent.stop(t),this.dragging=!0,this.dragstartX=t.pageX,this.dragstartY=t.pageY,L.DomEvent.on(document,"mousemove",this._handleMouseDrag,this).on(document,"mouseup",this._handleMouseUp,this)},_handleMouseUp:function(t){L.DomEvent.stop(t),this.dragging=!1,L.DomEvent.off(document,"mousemove",this._handleMouseDrag,this).off(document,"mouseup",this._handleMouseUp,this)},_handleMouseDrag:function(t){if(this.dragging){var i=t.clientX-this.dragstartX;this._map.setBearing(i)}},_cycleState:function(t){if(this._map){var i=this._map;i.touchRotate.enabled()||i.compassBearing.enabled()?i.compassBearing.enabled()?(i.compassBearing.disable(),i.setBearing(0),this.options.closeOnZeroBearing&&i.touchRotate.enable()):(i.touchRotate.disable(),i.compassBearing.enable()):i.touchRotate.enable(),this._restyle()}},_restyle:function(){if(this._map.options.rotate){var t=this._map,i=t.getBearing();this._arrow.style.transform="rotate("+i+"deg)",i&&this.options.closeOnZeroBearing&&(this._container.style.display="block"),t.compassBearing.enabled()?this._link.style.backgroundColor="orange":t.touchRotate.enabled()?this._link.style.backgroundColor=null:(this._link.style.backgroundColor="grey",0===i&&this.options.closeOnZeroBearing&&(this._container.style.display="none"))}else L.DomUtil.addClass(this._link,"leaflet-disabled")}}),L.control.rotate=function(t){return new L.Control.Rotate(t)},L.Map.mergeOptions({rotateControl:!0}),L.Map.addInitHook((function(){if(this.options.rotateControl){var t="object"==typeof this.options.rotateControl?this.options.rotateControl:{};this.rotateControl=L.control.rotate(t),this.addControl(this.rotateControl)}}))}));Q((function(t,i){
8
8
  /*!
9
9
  Copyright (c) 2016 Dominik Moritz
10
10
 
11
11
  This file is part of the leaflet locate control. It is licensed under the MIT license.
12
12
  You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
13
13
  */
14
- (function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(W)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[i].call(this,e,r)}))};const e=(t,e)=>i("addClass",t,e);const r=(t,e)=>i("removeClass",t,e);const n=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const r=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const r=t.weight;const n=e+r;const s=n*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${n} -${n} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=n.extend({initialize(i,e,r){t.Util.setOptions(this,r);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const r=t.width+t.weight;const n=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}" version="1.1" viewBox="-${r/2} 0 ${r} ${n}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});const o=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:s,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(i,e){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);r.title=e.strings.title;r.href="#";r.setAttribute("role","button");const n=t.DomUtil.create(e.iconElementTag,e.icon,r);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",r);i.textContent=e.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(e.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError(t,i){alert(t.message)},onLocationOutsideMapBounds(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(e,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){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){const i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const r=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,r).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(r)}}let r;let n;if(this.options.metric){r=i.toFixed(0);n=this.options.strings.metersUnit}else{r=(i*3.2808399).toFixed(0);n=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:n})}else if(typeof s==="function"){return s({distance:r,unit:n})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){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(){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(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){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(t){if(t=="requesting"){r(this._container,"active following");e(this._container,"requesting");r(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");e(this._container,"active");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");e(this._container,"active following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));var K=U((function(t,i){(function(e){var r=i&&!i.nodeType&&i;var n=t&&!t.nodeType&&t;var s=typeof H=="object"&&H;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,l=36,c=1,h=26,u=38,f=700,p=72,d=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-c,x=Math.floor,k=String.fromCharCode,A;function _(t){throw new RangeError(b[t])}function M(t,i){var e=t.length;var r=[];while(e--){r[e]=i(t[e])}return r}function z(t,i){var e=t.split("@");var r="";if(e.length>1){r=e[0]+"@";t=e[1]}t=t.replace(w,".");var n=t.split(".");var s=M(n,i).join(".");return r+s}function L(t){var i=[],e=0,r=t.length,n,s;while(e<r){n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((n&1023)<<10)+(s&1023)+65536)}else{i.push(n);e--}}else{i.push(n)}}return i}function C(t){return M(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function E(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function P(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function O(t,i,e){var r=0;t=e?x(t/f):t>>1;t+=x(t/i);for(;t>y*h>>1;r+=l){t=x(t/y)}return x(r+(y+1)*t/(t+u))}function j(t){var i=[],e=t.length,r,n=0,s=d,o=p,u,f,g,v,w,b,y,k,A;u=t.lastIndexOf(m);if(u<0){u=0}for(f=0;f<u;++f){if(t.charCodeAt(f)>=128){_("not-basic")}i.push(t.charCodeAt(f))}for(g=u>0?u+1:0;g<e;){for(v=n,w=1,b=l;;b+=l){if(g>=e){_("invalid-input")}y=E(t.charCodeAt(g++));if(y>=l||y>x((a-n)/w)){_("overflow")}n+=y*w;k=b<=o?c:b>=o+h?h:b-o;if(y<k){break}A=l-k;if(w>x(a/A)){_("overflow")}w*=A}r=i.length+1;o=O(n-v,r,v==0);if(x(n/r)>a-s){_("overflow")}s+=x(n/r);n%=r;i.splice(n++,0,s)}return C(i)}function S(t){var i,e,r,n,s,o,u,f,g,v,w,b=[],y,A,M,z;t=L(t);y=t.length;i=d;e=0;s=p;for(o=0;o<y;++o){w=t[o];if(w<128){b.push(k(w))}}r=n=b.length;if(n){b.push(m)}while(r<y){for(u=a,o=0;o<y;++o){w=t[o];if(w>=i&&w<u){u=w}}A=r+1;if(u-i>x((a-e)/A)){_("overflow")}e+=(u-i)*A;i=u;for(o=0;o<y;++o){w=t[o];if(w<i&&++e>a){_("overflow")}if(w==i){for(f=e,g=l;;g+=l){v=g<=s?c:g>=s+h?h:g-s;if(f<v){break}z=f-v;M=l-v;b.push(k(P(v+z%M,0)));f=x(z/M)}b.push(k(P(f,0)));s=O(e,A,r==n);e=0;++r}}++e;++i}return b.join("")}function T(t){return z(t,(function(t){return g.test(t)?j(t.slice(4).toLowerCase()):t}))}function I(t){return z(t,(function(t){return v.test(t)?"xn--"+S(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:C},decode:j,encode:S,toASCII:I,toUnicode:T};if(r&&n){if(t.exports==r){n.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(r[A]=o[A])}}}else{e.punycode=o}})(H)}));var q=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var r=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;i[e]=n;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==n||o.enumerable!==true){return false}}return true};var J=typeof Symbol!=="undefined"&&Symbol;var X=function t(){if(typeof J!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof J("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return q()};var tt={foo:{}};var it=Object;var et=function t(){return{__proto__:tt}.foo===tt.foo&&!({__proto__:null}instanceof it)};var rt="Function.prototype.bind called on incompatible ";var nt=Array.prototype.slice;var st=Object.prototype.toString;var ot="[object Function]";var at=function t(i){var e=this;if(typeof e!=="function"||st.call(e)!==ot){throw new TypeError(rt+e)}var r=nt.call(arguments,1);var n;var s=function(){if(this instanceof n){var t=e.apply(this,r.concat(nt.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,r.concat(nt.call(arguments)))}};var o=Math.max(0,e.length-r.length);var a=[];for(var l=0;l<o;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var c=function t(){};c.prototype=e.prototype;n.prototype=new c;c.prototype=null}return n};var lt=Function.prototype.bind||at;var ct=lt.call(Function.call,Object.prototype.hasOwnProperty);var ht;var ut=SyntaxError;var ft=Function;var pt=TypeError;var dt=function(t){try{return ft('"use strict"; return ('+t+").constructor;")()}catch(i){}};var mt=Object.getOwnPropertyDescriptor;var gt=function(){throw new pt};var vt=mt?function(){try{return gt}catch(t){try{return mt(arguments,"callee").get}catch(i){return gt}}}():gt;var wt=X();var bt=et();var yt=Object.getPrototypeOf||(bt?function(t){return t.__proto__}:null);var xt={};var kt=typeof Uint8Array==="undefined"||!yt?ht:yt(Uint8Array);var At={"%AggregateError%":typeof AggregateError==="undefined"?ht:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?ht:ArrayBuffer,"%ArrayIteratorPrototype%":wt&&yt?yt([][Symbol.iterator]()):ht,"%AsyncFromSyncIteratorPrototype%":ht,"%AsyncFunction%":xt,"%AsyncGenerator%":xt,"%AsyncGeneratorFunction%":xt,"%AsyncIteratorPrototype%":xt,"%Atomics%":typeof Atomics==="undefined"?ht:Atomics,"%BigInt%":typeof BigInt==="undefined"?ht:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?ht:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?ht:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?ht:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?ht:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?ht:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?ht:FinalizationRegistry,"%Function%":ft,"%GeneratorFunction%":xt,"%Int8Array%":typeof Int8Array==="undefined"?ht:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?ht:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?ht:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":wt&&yt?yt(yt([][Symbol.iterator]())):ht,"%JSON%":typeof JSON==="object"?JSON:ht,"%Map%":typeof Map==="undefined"?ht:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!wt||!yt?ht:yt((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?ht:Promise,"%Proxy%":typeof Proxy==="undefined"?ht:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?ht:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?ht:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!wt||!yt?ht:yt((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?ht:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":wt&&yt?yt(""[Symbol.iterator]()):ht,"%Symbol%":wt?Symbol:ht,"%SyntaxError%":ut,"%ThrowTypeError%":vt,"%TypedArray%":kt,"%TypeError%":pt,"%Uint8Array%":typeof Uint8Array==="undefined"?ht:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?ht:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?ht:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?ht:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?ht:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?ht:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?ht:WeakSet};var _t=function t(i){var e;if(i==="%AsyncFunction%"){e=dt("async function () {}")}else if(i==="%GeneratorFunction%"){e=dt("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=dt("async function* () {}")}else if(i==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");if(r){e=r.prototype}}else if(i==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");if(n&&yt){e=yt(n.prototype)}}At[i]=e;return e};var Mt={"%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 zt=lt.call(Function.call,Array.prototype.concat);var Lt=lt.call(Function.apply,Array.prototype.splice);var Ct=lt.call(Function.call,String.prototype.replace);var Et=lt.call(Function.call,String.prototype.slice);var Pt=lt.call(Function.call,RegExp.prototype.exec);var Ot=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var jt=/\\(\\)?/g;var St=function t(i){var e=Et(i,0,1);var r=Et(i,-1);if(e==="%"&&r!=="%"){throw new ut("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&e!=="%"){throw new ut("invalid intrinsic syntax, expected opening `%`")}var n=[];Ct(i,Ot,(function(t,i,e,r){n[n.length]=e?Ct(r,jt,"$1"):i||t}));return n};var Tt=function t(i,e){var r=i;var n;if(ct(Mt,r)){n=Mt[r];r="%"+n[0]+"%"}if(ct(At,r)){var s=At[r];if(s===xt){s=_t(r)}if(typeof s==="undefined"&&!e){throw new pt("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new ut("intrinsic "+i+" does not exist!")};var It=function t(i,e){if(typeof i!=="string"||i.length===0){throw new pt("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new pt('"allowMissing" argument must be a boolean')}if(Pt(/^%?[^%]*%?$/,i)===null){throw new ut("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=St(i);var n=r.length>0?r[0]:"";var s=Tt("%"+n+"%",e);var o=s.name;var a=s.value;var l=false;var c=s.alias;if(c){n=c[0];Lt(r,zt([0,1],c))}for(var h=1,u=true;h<r.length;h+=1){var f=r[h];var p=Et(f,0,1);var d=Et(f,-1);if((p==='"'||p==="'"||p==="`"||(d==='"'||d==="'"||d==="`"))&&p!==d){throw new ut("property names with quotes must have matching quotes")}if(f==="constructor"||!u){l=true}n+="."+f;o="%"+n+"%";if(ct(At,o)){a=At[o]}else if(a!=null){if(!(f in a)){if(!e){throw new pt("base intrinsic for "+i+" exists, but the property is not available.")}return void ht}if(mt&&h+1>=r.length){var m=mt(a,f);u=!!m;if(u&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[f]}}else{u=ct(a,f);a=a[f]}if(u&&!l){At[o]=a}}}return a};var Bt=U((function(t){var i=It("%Function.prototype.apply%");var e=It("%Function.prototype.call%");var r=It("%Reflect.apply%",true)||lt.call(e,i);var n=It("%Object.getOwnPropertyDescriptor%",true);var s=It("%Object.defineProperty%",true);var o=It("%Math.max%");if(s){try{s({},"a",{value:1})}catch(l){s=null}}t.exports=function t(i){var a=r(lt,e,arguments);if(n&&s){var l=n(a,"length");if(l.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return r(lt,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var Ft=Bt(It("String.prototype.indexOf"));var Rt=function t(i,e){var r=It(i,!!e);if(typeof r==="function"&&Ft(i,".prototype.")>-1){return Bt(r)}return r};const Nt={};const Dt=Object.freeze({__proto__:null,default:Nt});const Yt=Q(Dt);var Gt=typeof Map==="function"&&Map.prototype;var $t=Object.getOwnPropertyDescriptor&&Gt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var Zt=Gt&&$t&&typeof $t.get==="function"?$t.get:null;var Ht=Gt&&Map.prototype.forEach;var Ut=typeof Set==="function"&&Set.prototype;var Qt=Object.getOwnPropertyDescriptor&&Ut?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Vt=Ut&&Qt&&typeof Qt.get==="function"?Qt.get:null;var Wt=Ut&&Set.prototype.forEach;var Kt=typeof WeakMap==="function"&&WeakMap.prototype;var qt=Kt?WeakMap.prototype.has:null;var Jt=typeof WeakSet==="function"&&WeakSet.prototype;var Xt=Jt?WeakSet.prototype.has:null;var ti=typeof WeakRef==="function"&&WeakRef.prototype;var ii=ti?WeakRef.prototype.deref:null;var ei=Boolean.prototype.valueOf;var ri=Object.prototype.toString;var ni=Function.prototype.toString;var si=String.prototype.match;var oi=String.prototype.slice;var ai=String.prototype.replace;var li=String.prototype.toUpperCase;var ci=String.prototype.toLowerCase;var hi=RegExp.prototype.test;var ui=Array.prototype.concat;var fi=Array.prototype.join;var pi=Array.prototype.slice;var di=Math.floor;var mi=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var gi=Object.getOwnPropertySymbols;var vi=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var wi=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var bi=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===wi?"object":"symbol")?Symbol.toStringTag:null;var yi=Object.prototype.propertyIsEnumerable;var xi=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ki(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||hi.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var r=t<0?-di(-t):di(t);if(r!==t){var n=String(r);var s=oi.call(i,n.length+1);return ai.call(n,e,"$&_")+"."+ai.call(ai.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ai.call(i,e,"$&_")}var Ai=Yt.custom;var _i=Ii(Ai)?Ai:null;var Mi=function t(i,e,r,n){var s=e||{};if(Ri(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Ri(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=Ri(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Ri(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Ri(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Vi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var l=String(i);return a?ki(i,l):l}if(typeof i==="bigint"){var c=String(i)+"n";return a?ki(i,c):c}var h=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=h&&h>0&&typeof i==="object"){return Ci(i)?"[Array]":"[Object]"}var u=te(s,r);if(typeof n==="undefined"){n=[]}else if(Yi(n,i)>=0){return"[Circular]"}function f(i,e,o){if(e){n=pi.call(n);n.push(e)}if(o){var a={depth:s.depth};if(Ri(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,r+1,n)}return t(i,s,r+1,n)}if(typeof i==="function"&&!Pi(i)){var p=Di(i);var d=ee(i,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(d.length>0?" { "+fi.call(d,", ")+" }":"")}if(Ii(i)){var m=wi?ai.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):vi.call(i);return typeof i==="object"&&!wi?Ki(m):m}if(Qi(i)){var g="<"+ci.call(String(i.nodeName));var v=i.attributes||[];for(var w=0;w<v.length;w++){g+=" "+v[w].name+"="+zi(Li(v[w].value),"double",s)}g+=">";if(i.childNodes&&i.childNodes.length){g+="..."}g+="</"+ci.call(String(i.nodeName))+">";return g}if(Ci(i)){if(i.length===0){return"[]"}var b=ee(i,f);if(u&&!Xi(b)){return"["+ie(b,u)+"]"}return"[ "+fi.call(b,", ")+" ]"}if(Oi(i)){var y=ee(i,f);if(!("cause"in Error.prototype)&&"cause"in i&&!yi.call(i,"cause")){return"{ ["+String(i)+"] "+fi.call(ui.call("[cause]: "+f(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+fi.call(y,", ")+" }"}if(typeof i==="object"&&o){if(_i&&typeof i[_i]==="function"&&Yt){return Yt(i,{depth:h-r})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if(Gi(i)){var x=[];if(Ht){Ht.call(i,(function(t,e){x.push(f(e,i,true)+" => "+f(t,i))}))}return Ji("Map",Zt.call(i),x,u)}if(Hi(i)){var k=[];if(Wt){Wt.call(i,(function(t){k.push(f(t,i))}))}return Ji("Set",Vt.call(i),k,u)}if($i(i)){return qi("WeakMap")}if(Ui(i)){return qi("WeakSet")}if(Zi(i)){return qi("WeakRef")}if(Si(i)){return Ki(f(Number(i)))}if(Bi(i)){return Ki(f(mi.call(i)))}if(Ti(i)){return Ki(ei.call(i))}if(ji(i)){return Ki(f(String(i)))}if(!Ei(i)&&!Pi(i)){var A=ee(i,f);var _=xi?xi(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!_&&bi&&Object(i)===i&&bi in i?oi.call(Ni(i),8,-1):M?"Object":"";var L=_||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var C=L+(z||M?"["+fi.call(ui.call([],z||[],M||[]),": ")+"] ":"");if(A.length===0){return C+"{}"}if(u){return C+"{"+ie(A,u)+"}"}return C+"{ "+fi.call(A,", ")+" }"}return String(i)};function zi(t,i,e){var r=(e.quoteStyle||i)==="double"?'"':"'";return r+t+r}function Li(t){return ai.call(String(t),/"/g,"&quot;")}function Ci(t){return Ni(t)==="[object Array]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ei(t){return Ni(t)==="[object Date]"&&(!bi||!(typeof t==="object"&&bi in t))}function Pi(t){return Ni(t)==="[object RegExp]"&&(!bi||!(typeof t==="object"&&bi in t))}function Oi(t){return Ni(t)==="[object Error]"&&(!bi||!(typeof t==="object"&&bi in t))}function ji(t){return Ni(t)==="[object String]"&&(!bi||!(typeof t==="object"&&bi in t))}function Si(t){return Ni(t)==="[object Number]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ti(t){return Ni(t)==="[object Boolean]"&&(!bi||!(typeof t==="object"&&bi in t))}function Ii(t){if(wi){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!vi){return false}try{vi.call(t);return true}catch(i){}return false}function Bi(t){if(!t||typeof t!=="object"||!mi){return false}try{mi.call(t);return true}catch(i){}return false}var Fi=Object.prototype.hasOwnProperty||function(t){return t in this};function Ri(t,i){return Fi.call(t,i)}function Ni(t){return ri.call(t)}function Di(t){if(t.name){return t.name}var i=si.call(ni.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function Yi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}return-1}function Gi(t){if(!Zt||!t||typeof t!=="object"){return false}try{Zt.call(t);try{Vt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function $i(t){if(!qt||!t||typeof t!=="object"){return false}try{qt.call(t,qt);try{Xt.call(t,Xt)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function Zi(t){if(!ii||!t||typeof t!=="object"){return false}try{ii.call(t);return true}catch(i){}return false}function Hi(t){if(!Vt||!t||typeof t!=="object"){return false}try{Vt.call(t);try{Zt.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Ui(t){if(!Xt||!t||typeof t!=="object"){return false}try{Xt.call(t,Xt);try{qt.call(t,qt)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function Qi(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function Vi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var r="... "+e+" more character"+(e>1?"s":"");return Vi(oi.call(t,0,i.maxStringLength),i)+r}var n=ai.call(ai.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wi);return zi(n,"single",i)}function Wi(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+li.call(i.toString(16))}function Ki(t){return"Object("+t+")"}function qi(t){return t+" { ? }"}function Ji(t,i,e,r){var n=r?ie(e,r):fi.call(e,", ");return t+" ("+i+") {"+n+"}"}function Xi(t){for(var i=0;i<t.length;i++){if(Yi(t[i],"\n")>=0){return false}}return true}function te(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=fi.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:fi.call(Array(i+1),e)}}function ie(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+fi.call(t,","+e)+"\n"+i.prev}function ee(t,i){var e=Ci(t);var r=[];if(e){r.length=t.length;for(var n=0;n<t.length;n++){r[n]=Ri(t,n)?i(t[n],t):""}}var s=typeof gi==="function"?gi(t):[];var o;if(wi){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var l in t){if(!Ri(t,l)){continue}if(e&&String(Number(l))===l&&l<t.length){continue}if(wi&&o["$"+l]instanceof Symbol){continue}else if(hi.call(/[^\w$]/,l)){r.push(i(l,t)+": "+i(t[l],t))}else{r.push(l+": "+i(t[l],t))}}if(typeof gi==="function"){for(var c=0;c<s.length;c++){if(yi.call(t,s[c])){r.push("["+i(s[c])+"]: "+i(t[s[c]],t))}}}return r}var re=It("%TypeError%");var ne=It("%WeakMap%",true);var se=It("%Map%",true);var oe=Rt("WeakMap.prototype.get",true);var ae=Rt("WeakMap.prototype.set",true);var le=Rt("WeakMap.prototype.has",true);var ce=Rt("Map.prototype.get",true);var he=Rt("Map.prototype.set",true);var ue=Rt("Map.prototype.has",true);var fe=function(t,i){for(var e=t,r;(r=e.next)!==null;e=r){if(r.key===i){e.next=r.next;r.next=t.next;t.next=r;return r}}};var pe=function(t,i){var e=fe(t,i);return e&&e.value};var de=function(t,i,e){var r=fe(t,i);if(r){r.value=e}else{t.next={key:i,next:t.next,value:e}}};var me=function(t,i){return!!fe(t,i)};var ge=function t(){var i;var e;var r;var n={assert:function(t){if(!n.has(t)){throw new re("Side channel does not contain "+Mi(t))}},get:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return oe(i,t)}}else if(se){if(e){return ce(e,t)}}else{if(r){return pe(r,t)}}},has:function(t){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(i){return le(i,t)}}else if(se){if(e){return ue(e,t)}}else{if(r){return me(r,t)}}return false},set:function(t,n){if(ne&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new ne}ae(i,t,n)}else if(se){if(!e){e=new se}he(e,t,n)}else{if(!r){r={key:{},next:null}}de(r,t,n)}}};return n};var ve=String.prototype.replace;var we=/%20/g;var be={RFC1738:"RFC1738",RFC3986:"RFC3986"};var ye={default:be.RFC3986,formatters:{RFC1738:function(t){return ve.call(t,we,"+")},RFC3986:function(t){return String(t)}},RFC1738:be.RFC1738,RFC3986:be.RFC3986};var xe=Object.prototype.hasOwnProperty;var ke=Array.isArray;var Ae=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var _e=function t(i){while(i.length>1){var e=i.pop();var r=e.obj[e.prop];if(ke(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}e.obj[e.prop]=n}}};var Me=function t(i,e){var r=e&&e.plainObjects?Object.create(null):{};for(var n=0;n<i.length;++n){if(typeof i[n]!=="undefined"){r[n]=i[n]}}return r};var ze=function t(i,e,r){if(!e){return i}if(typeof e!=="object"){if(ke(i)){i.push(e)}else if(i&&typeof i==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!xe.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var n=i;if(ke(i)&&!ke(e)){n=Me(i,r)}if(ke(i)&&ke(e)){e.forEach((function(e,n){if(xe.call(i,n)){var s=i[n];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[n]=t(s,e,r)}else{i.push(e)}}else{i[n]=e}}));return i}return Object.keys(e).reduce((function(i,n){var s=e[n];if(xe.call(i,n)){i[n]=t(i[n],s,r)}else{i[n]=s}return i}),n)};var Le=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var Ce=function(t,i,e){var r=t.replace(/\+/g," ");if(e==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var Ee=function t(i,e,r,n,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(r==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===ye.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+Ae[c];continue}if(c<2048){a=a+(Ae[192|c>>6]+Ae[128|c&63]);continue}if(c<55296||c>=57344){a=a+(Ae[224|c>>12]+Ae[128|c>>6&63]+Ae[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|o.charCodeAt(l)&1023);a+=Ae[240|c>>18]+Ae[128|c>>12&63]+Ae[128|c>>6&63]+Ae[128|c&63]}return a};var Pe=function t(i){var e=[{obj:{o:i},prop:"o"}];var r=[];for(var n=0;n<e.length;++n){var s=e[n];var o=s.obj[s.prop];var a=Object.keys(o);for(var l=0;l<a.length;++l){var c=a[l];var h=o[c];if(typeof h==="object"&&h!==null&&r.indexOf(h)===-1){e.push({obj:o,prop:c});r.push(h)}}}_e(e);return i};var Oe=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var je=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var Se=function t(i,e){return[].concat(i,e)};var Te=function t(i,e){if(ke(i)){var r=[];for(var n=0;n<i.length;n+=1){r.push(e(i[n]))}return r}return e(i)};var Ie={arrayToObject:Me,assign:Le,combine:Se,compact:Pe,decode:Ce,encode:Ee,isBuffer:je,isRegExp:Oe,maybeMap:Te,merge:ze};var Be=Object.prototype.hasOwnProperty;var Fe={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var Re=Array.isArray;var Ne=Array.prototype.push;var De=function(t,i){Ne.apply(t,Re(i)?i:[i])};var Ye=Date.prototype.toISOString;var Ge=ye["default"];var $e={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:Ie.encode,encodeValuesOnly:false,format:Ge,formatter:ye.formatters[Ge],indices:false,serializeDate:function t(i){return Ye.call(i)},skipNulls:false,strictNullHandling:false};var Ze=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var He={};var Ue=function t(i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g){var v=i;var w=g;var b=0;var y=false;while((w=w.get(He))!==void undefined&&!y){var x=w.get(i);b+=1;if(typeof x!=="undefined"){if(x===b){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof w.get(He)==="undefined"){b=0}}if(typeof l==="function"){v=l(e,v)}else if(v instanceof Date){v=u(v)}else if(r==="comma"&&Re(v)){v=Ie.maybeMap(v,(function(t){if(t instanceof Date){return u(t)}return t}))}if(v===null){if(s){return a&&!d?a(e,$e.encoder,m,"key",f):e}v=""}if(Ze(v)||Ie.isBuffer(v)){if(a){var k=d?e:a(e,$e.encoder,m,"key",f);return[p(k)+"="+p(a(v,$e.encoder,m,"value",f))]}return[p(e)+"="+p(String(v))]}var A=[];if(typeof v==="undefined"){return A}var _;if(r==="comma"&&Re(v)){if(d&&a){v=Ie.maybeMap(v,a)}_=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(Re(l)){_=l}else{var M=Object.keys(v);_=c?M.sort(c):M}var z=n&&Re(v)&&v.length===1?e+"[]":e;for(var L=0;L<_.length;++L){var C=_[L];var E=typeof C==="object"&&typeof C.value!=="undefined"?C.value:v[C];if(o&&E===null){continue}var P=Re(v)?typeof r==="function"?r(z,C):z:z+(h?"."+C:"["+C+"]");g.set(i,b);var O=ge();O.set(He,g);De(A,t(E,P,r,n,s,o,r==="comma"&&d&&Re(v)?null:a,l,c,h,u,f,p,d,m,O))}return A};var Qe=function t(i){if(!i){return $e}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||$e.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=ye["default"];if(typeof i.format!=="undefined"){if(!Be.call(ye.formatters,i.format)){throw new TypeError("Unknown format option provided.")}r=i.format}var n=ye.formatters[r];var s=$e.filter;if(typeof i.filter==="function"||Re(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:$e.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?$e.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:$e.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?$e.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:$e.encode,encoder:typeof i.encoder==="function"?i.encoder:$e.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:$e.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:$e.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:$e.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:$e.strictNullHandling}};var Ve=function(t,i){var e=t;var r=Qe(i);var n;var s;if(typeof r.filter==="function"){s=r.filter;e=s("",e)}else if(Re(r.filter)){s=r.filter;n=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in Fe){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var l=Fe[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&i&&i.commaRoundTrip;if(!n){n=Object.keys(e)}if(r.sort){n.sort(r.sort)}var h=ge();for(var u=0;u<n.length;++u){var f=n[u];if(r.skipNulls&&e[f]===null){continue}De(o,Ue(e[f],f,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,h))}var p=o.join(r.delimiter);var d=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){d+="utf8=%26%2310003%3B&"}else{d+="utf8=%E2%9C%93&"}}return p.length>0?d+p:""};var We=Object.prototype.hasOwnProperty;var Ke=Array.isArray;var qe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:Ie.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Je=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var Xe=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var tr="utf8=%26%2310003%3B";var ir="utf8=%E2%9C%93";var er=function t(i,e){var r={__proto__:null};var n=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=n.split(e.delimiter,s);var a=-1;var l;var c=e.charset;if(e.charsetSentinel){for(l=0;l<o.length;++l){if(o[l].indexOf("utf8=")===0){if(o[l]===ir){c="utf-8"}else if(o[l]===tr){c="iso-8859-1"}a=l;l=o.length}}}for(l=0;l<o.length;++l){if(l===a){continue}var h=o[l];var u=h.indexOf("]=");var f=u===-1?h.indexOf("="):u+1;var p,d;if(f===-1){p=e.decoder(h,qe.decoder,c,"key");d=e.strictNullHandling?null:""}else{p=e.decoder(h.slice(0,f),qe.decoder,c,"key");d=Ie.maybeMap(Xe(h.slice(f+1),e),(function(t){return e.decoder(t,qe.decoder,c,"value")}))}if(d&&e.interpretNumericEntities&&c==="iso-8859-1"){d=Je(d)}if(h.indexOf("[]=")>-1){d=Ke(d)?[d]:d}if(We.call(r,p)){r[p]=Ie.combine(r[p],d)}else{r[p]=d}}return r};var rr=function(t,i,e,r){var n=r?i:Xe(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(n)}else{o=e.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(!e.parseArrays&&l===""){o={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(e.parseArrays&&c<=e.arrayLimit)){o=[];o[c]=n}else if(l!=="__proto__"){o[l]=n}}n=o}return n};var nr=function t(i,e,r,n){if(!i){return}var s=r.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&o.exec(s);var c=l?s.slice(0,l.index):s;var h=[];if(c){if(!r.plainObjects&&We.call(Object.prototype,c)){if(!r.allowPrototypes){return}}h.push(c)}var u=0;while(r.depth>0&&(l=a.exec(s))!==null&&u<r.depth){u+=1;if(!r.plainObjects&&We.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}h.push(l[1])}if(l){h.push("["+s.slice(l.index)+"]")}return rr(h,e,r,n)};var sr=function t(i){if(!i){return qe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?qe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?qe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:qe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:qe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:qe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:qe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:qe.comma,decoder:typeof i.decoder==="function"?i.decoder:qe.decoder,delimiter:typeof i.delimiter==="string"||Ie.isRegExp(i.delimiter)?i.delimiter:qe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:qe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:qe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:qe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:qe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:qe.strictNullHandling}};var or=function(t,i){var e=sr(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var r=typeof t==="string"?er(t,e):t;var n=e.plainObjects?Object.create(null):{};var s=Object.keys(r);for(var o=0;o<s.length;++o){var a=s[o];var l=nr(a,r[a],e,typeof t==="string");n=Ie.merge(n,l,e)}if(e.allowSparse===true){return n}return Ie.compact(n)};var ar={formats:ye,parse:or,stringify:Ve};function lr(){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 cr=/^([a-z0-9.+-]+:)/i,hr=/:[0-9]*$/,ur=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,fr=["<",">",'"',"`"," ","\r","\n","\t"],pr=["{","}","|","\\","^","`"].concat(fr),dr=["'"].concat(pr),mr=["%","/","?",";","#"].concat(dr),gr=["/","?","#"],vr=255,wr=/^[+a-z0-9A-Z_-]{0,63}$/,br=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,yr={javascript:true,"javascript:":true},xr={javascript:true,"javascript:":true},kr={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function Ar(t,i,e){if(t&&typeof t==="object"&&t instanceof lr){return t}var r=new lr;r.parse(t,i,e);return r}lr.prototype.parse=function(t,i,e){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),n=r!==-1&&r<t.indexOf("#")?"?":"#",s=t.split(n),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(n);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var l=ur.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(i){this.query=ar.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var c=cr.exec(a);if(c){c=c[0];var h=c.toLowerCase();this.protocol=h;a=a.substr(c.length)}if(e||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var u=a.substr(0,2)==="//";if(u&&!(c&&xr[c])){a=a.substr(2);this.slashes=true}}if(!xr[c]&&(u||c&&!kr[c])){var f=-1;for(var p=0;p<gr.length;p++){var d=a.indexOf(gr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}var m,g;if(f===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",f)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}f=-1;for(var p=0;p<mr.length;p++){var d=a.indexOf(mr[p]);if(d!==-1&&(f===-1||d<f)){f=d}}if(f===-1){f=a.length}this.host=a.slice(0,f);a=a.slice(f);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var w=this.hostname.split(/\./);for(var p=0,b=w.length;p<b;p++){var y=w[p];if(!y){continue}if(!y.match(wr)){var x="";for(var k=0,A=y.length;k<A;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(wr)){var _=w.slice(0,p);var M=w.slice(p+1);var z=y.match(br);if(z){_.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=_.join(".");break}}}}if(this.hostname.length>vr){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=K.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var C=this.hostname||"";this.host=C+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!yr[h]){for(var p=0,b=dr.length;p<b;p++){var E=dr[p];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var O=a.indexOf("#");if(O!==-1){this.hash=a.substr(O);a=a.slice(0,O)}var j=a.indexOf("?");if(j!==-1){this.search=a.substr(j);this.query=a.substr(j+1);if(i){this.query=ar.parse(this.query)}a=a.slice(0,j)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(kr[h]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var S=this.search||"";this.path=L+S}this.href=this.format();return this};function _r(t){if(typeof t==="string"){t=Ar(t)}if(!(t instanceof lr)){return lr.prototype.format.call(t)}return t.format()}lr.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",r=this.hash||"",n=false,s="";if(this.host){n=t+this.host}else if(this.hostname){n=t+(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){s=ar.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||kr[i])&&n!==false){n="//"+(n||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+n+e+o+r};function Mr(t,i){return Ar(t,false,true).resolve(i)}lr.prototype.resolve=function(t){return this.resolveObject(Ar(t,false,true)).format()};function zr(t,i){if(!t){return i}return Ar(t,false,true).resolveObject(i)}lr.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new lr;i.parse(t,false,true);t=i}var e=new lr;var r=Object.keys(this);for(var n=0;n<r.length;n++){var s=r[n];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var l=o[a];if(l!=="protocol"){e[l]=t[l]}}if(kr[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!kr[t.protocol]){var c=Object.keys(t);for(var h=0;h<c.length;h++){var u=c[h];e[u]=t[u]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!xr[t.protocol]){var f=(t.pathname||"").split("/");while(f.length&&!(t.host=f.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(f[0]!==""){f.unshift("")}if(f.length<2){f.unshift("")}e.pathname=f.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var p=e.pathname||"";var d=e.search||"";e.path=p+d}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var m=e.pathname&&e.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||e.host&&t.pathname,w=v,b=e.pathname&&e.pathname.split("/")||[],f=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!kr[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(b[0]===""){b[0]=e.host}else{b.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(f[0]===""){f[0]=t.host}else{f.unshift(t.host)}}t.host=null}v=v&&(f[0]===""||b[0]==="")}if(g){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;b=f}else if(f.length){if(!b){b=[]}b.pop();b=b.concat(f);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=b.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!b.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=b.slice(-1)[0];var A=(e.host||t.host||b.length>1)&&(k==="."||k==="..")||k==="";var _=0;for(var M=b.length;M>=0;M--){k=b[M];if(k==="."){b.splice(M,1)}else if(k===".."){b.splice(M,1);_++}else if(_){b.splice(M,1);_--}}if(!v&&!w){for(;_--;_){b.unshift("..")}}if(v&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")){b.unshift("")}if(A&&b.join("/").substr(-1)!=="/"){b.push("")}var z=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(y){e.hostname=z?"":b.length?b.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}v=v||e.host&&b.length;if(v&&!z){b.unshift("")}if(b.length>0){e.pathname=b.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};lr.prototype.parseHost=function(){var t=this.host;var i=hr.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var Lr=Ar;var Cr=Mr;var Er=zr;var Pr=_r;var Or=lr;var jr={parse:Lr,resolve:Cr,resolveObject:Er,format:Pr,Url:Or};!function(t){t()}((function(){const t={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,e=60*i,r=24*e;function n(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=m("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),r=document.body;r.appendChild(e),e.click(),r.removeChild(e)}function o(t,i,e){return t&&(({props:r,point:n,id:s,isMulti:o})=>{if(r)for(const l of t)if(l in r){n.meta[i]=(e||a).call(this,o?r[l][o]:r[l],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),c=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),h=(t,i,e)=>(e?l:c)(t,i),u=(t,i,e)=>i&&c(t,i)||e&&l(t,e),f=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),p=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},d=(t,i,e,r)=>t[r?"on":"off"](i,e),m=(t,i,e,r)=>{let n=L.DomUtil.create(t,i||"");return e&&p(n,e),r&&g(r,n),n},g=(t,i)=>t.appendChild(i),v=(t,i,e)=>t.insertAdjacentElement(e,i),w=(t,i)=>(i||document).querySelector(t),b=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:A,wrapNum:_}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,C=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,E=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function P(t,i=[],e=[]){switch(!t||typeof t){case"object":const r=e.filter((i=>t===i.original))[0];if(r)return r.copy;const n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:n}),Object.getOwnPropertyNames(t).forEach((function(r){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(r)?s.value:P(s.value,i,e)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:C,cloneDeep:P,coordPropsToMeta:o,create:m,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:b,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let n=Math.floor(t/r),s=Math.floor((t-n*r)/e),o=Math.floor((t-n*r-s*e)/i),a=Math.round((t-n*r-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:v,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:c,replaceClass:u,resolveURL:n,round:z,saveFile:s,select:w,setAttributes:p,style:f,throttle:A,toggleClass:h,toggleEvent:d,toggleStyle:(t,i,e,r)=>f(t,i,r?e:""),wrapDelta:E,wrapNum:_}),j={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?jr.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?jr.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=(t,i)=>t);const S=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:j,__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(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=w(this.options.elevationDiv),e=this.onAdd(t);i?g(i,e):v(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){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((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){f(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},P(j),i)),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],i.trkStart||j.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||j.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=A(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=j.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=j.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){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?__sc_import_geotrek_rando_widget(n(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(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(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){f(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return b(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return b(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,i,e){let r=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:r,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),r=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),n=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:n}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let 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(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){u(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){u(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=t[r]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=n.line||n.area||r,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=n.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((r=>{let n=this._chart=new(r[1]||S).Chart(i,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(n.render()),n.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();h(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),d(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),d(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.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((t=>{this._marker=new(t[1]||S).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||S).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==S[t]?S[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{b(i,((i,e)=>{let r=i&&Object.keys(i)[0];r&&(t[e]=S[r]=S[r]??i[r])})),b(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:r,wptIcons:n,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let l=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(r){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(r)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(r)&&0!=n)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(l);const i={data:t,layer:l,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),l},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>h(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let n=toGeoJSON[e](i);return n.name=r.length>0?(Array.from(r).find((t=>"trk"==t.parentElement.tagName))??r[0]).textContent:"",n},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,r,n=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,r=e??this._data[i],e=this._data[i],e[n]=t.pointToAttr.call(this,a,i),i>0&&isNaN(r[n])&&(isNaN(s[n])||isNaN(e[n])?isNaN(s[n])?isNaN(e[n])||(r[n]=e[n]):r[n]=s[n]:r[n]=(s[n]+e[n])/2,t.meta&&(r[t.meta]=r[n])),!isNaN(e[n])){if(s[n]=e[n],t.deltaMax&&(e[n]=E(e[n],r[n],t.deltaMax)),t.clampRange&&(e[n]=C(e[n],t.clampRange)),isNaN(t.decimals)||(e[n]=z(e[n],t.decimals)),t.stats)for(const i in t.stats){let r=(t.statsName||n)+(""!=i?"_":"");this.track_info[r+i]=t.stats[i].call(this,e[n],this.track_info[r+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[n],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:r,deltaMax:n,clampRange:s,decimals:a,meta:l,unit:c,coordinateProperties:h,coordPropsToMeta:u,pointToAttr:f,onPointAdded:p,stats:d,statsName:m,grid:g,scale:v,path:w,tooltip:y,summary:x}=t;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:e,meta:l,deltaMax:n,clampRange:s,decimals:a,coordPropsToMeta:o(h,l||i,u),pointToAttr:f,onPointAdded:p,stats:d,statsName:m}),g&&this._registerAxisGrid(L.extend({name:i},g)),"summary"!==this.options[i]&&(v&&this._registerAxisScale(L.extend({name:i,label:c},v)),w&&this._registerAreaPath(L.extend({name:i},w))),(y||t.tooltips)&&b([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(b(x,((t,i)=>x[i]=L.extend({unit:c},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:r}=this.options;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let n=L.marker(t,{icon:r[i]});return e&&(n.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),n.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(n)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=f(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:C(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){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(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){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=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});S.Utils=O,L.control.elevation=t=>new S(t)}));U((function(t,i){!function(t,e){e(i)}(H,(function(t){var i=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var i=t,e=this._zoom;if(t.__parent)for(;i.__parent._zoom>=e;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,i):this._animationAddLayerNonAnimated(t,i)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,i){if(!L.Util.isArray(t))return this.addLayer(t);var e,r=this._featureGroup,n=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,h=!0;if(this._map){var u=(new Date).getTime(),f=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var d=(new Date).getTime()-p;if(o<d)break}if((e=t[c])instanceof L.LayerGroup)h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length;else if(e.getLatLng){if(!this.hasLayer(e)&&(this._addLayer(e,this._maxZoom),i||this.fire("layeradd",{layer:e}),e.__parent&&2===e.__parent.getChildCount())){var m=e.__parent.getAllChildMarkers(),g=m[0]===e?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(e),i||this.fire("layeradd",{layer:e})}a&&a(c,l,(new Date).getTime()-u),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(f,this.options.chunkDelay)}),this);f()}else for(var p=this._needsClustering;c<l;c++)(e=t[c])instanceof L.LayerGroup?(h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length):e.getLatLng?this.hasLayer(e)||p.push(e):n.addLayer(e);return this},removeLayers:function(t){var i,e,r=t.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):(this._arraySplice(this._needsClustering,e),s.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(i=0;i<l;i++)(e=a[i])instanceof L.LayerGroup?(this._extractNonGroupLayers(e,a),l=a.length):this._unspiderfyLayer(e)}for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):e.__parent?(this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e}),n.hasLayer(e)&&(n.removeLayer(e),e.clusterShow&&e.clusterShow())):(s.removeLayer(e),this.fire("layerremove",{layer:e}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var i=this._needsClustering.length-1;0<=i;i--)t.extend(this._needsClustering[i].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,i){var e,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(e=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){e=!1;break}e&&t.call(i,s[r])}this._nonPointGroup.eachLayer(t,i)},getLayers:function(){var t=[];return this.eachLayer((function(i){t.push(i)})),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer((function(e){L.stamp(e)===t&&(i=e)})),i},hasLayer:function(t){if(!t)return!1;var i,e=this._needsClustering;for(i=e.length-1;0<=i;i--)if(e[i]===t)return!0;for(i=(e=this._needsRemoving).length-1;0<=i;i--)if(e[i].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,i){var e=this._map;"function"!=typeof i&&(i=function(){});var r=function(){!e.hasLayer(t)&&!e.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),e.hasLayer(t)?i():t.__parent._icon&&(this.once("spiderfied",i,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?i():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var i,e,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,i=0,e=this._needsRemoving.length;i<e;i++)(r=this._needsRemoving[i]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(i=0,e=this._needsRemoving.length;i<e;i++)r=this._needsRemoving[i],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(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var i=t;i&&!i._icon;)i=i.__parent;return i||null},_arraySplice:function(t,i){for(var e=t.length-1;0<=e;e--)if(t[e]===i)return t.splice(e,1),!0},_removeFromGridUnclustered:function(t,i){for(var e=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=i&&r[i].removeObject(t,e.project(t.getLatLng(),i));i--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var i=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),i&&t.target.openPopup()}},_moveChild:function(t,i,e){t._latlng=i,this.removeLayer(t),t._latlng=e,this.addLayer(t)},_childMarkerDragEnd:function(t){var i=t.target.__dragStart;delete t.target.__dragStart,i&&this._moveChild(t.target,i,t.target._latlng)},_removeLayer:function(t,i,e){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,h=c._markers;for(this._arraySplice(h,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)i&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,o.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),e||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},fire:function(t,i,e){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,i,e)},listens:function(t,i){return L.FeatureGroup.prototype.listens.call(this,t,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,i)},_defaultIconCreateFunction:function(t){var i=t.getChildCount(),e=" marker-cluster-";return e+=i<10?"small":i<100?"medium":"large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,i=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(i||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var i=t.layer,e=i;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===e._childClusters.length;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||e||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),i=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,r=e;"function"!=typeof e&&(r=function(){return e}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;i<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,i-1)},_addLayer:function(t,i){var e,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=i;i--){e=this._map.project(t.getLatLng(),i);var a=n[i].getNearObject(e);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[i].getNearObject(e)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,i,a,t);n[i].addObject(c,this._map.project(c._cLatLng,i)),a.__parent=c;var h=t.__parent=c;for(r=i-1;r>l._zoom;r--)h=new this._markerCluster(this,r,h),n[r].addObject(h,this._map.project(a.getLatLng(),r));return l._addChild(h),void this._removeFromGridUnclustered(a,i)}s[i].addObject(t,e)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var i=this._maxLat;return void 0!==i&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,i){if(i===t)this._featureGroup.addLayer(t);else if(2===i._childCount){i._addToMap();var e=i.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else i._updateIcon()},_extractNonGroupLayers:function(t,i){var e,r=t.getLayers(),n=0;for(i=i||[];n<r.length;n++)(e=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(e,i):i.push(e);return i},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,i){this._animationAddLayerNonAnimated(t,i)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,i){var e,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var o,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===i?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,i,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,i,r)),e=l.length-1;0<=e;e--)o=l[e],r.contains(o._latlng)||n.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,i),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,i,(function(t){t._recursivelyRestoreChildPositions(i)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,i){this._animationZoomOutSingle(this._topClusterLevel,t-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,i){var e=this,r=this._featureGroup;r.addLayer(t),i!==t&&(2<i._childCount?(i._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(i.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),e._animationEnd()}))):(this._forceLayout(),e._animationStart(),e._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,i,e){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,i+1,e);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,e),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,e,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,i+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,i,e,r){L.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,e&&this._addChild(e),r&&this._addChild(r)},getAllChildMarkers:function(t,i){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t,i);for(var r=this._markers.length-1;0<=r;r--)i&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var i,e=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<e.length&&s<n;){s++;var a=[];for(i=0;i<e.length;i++)a=a.concat(e[i]._childClusters);e=a}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(i||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(i||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,i,e,r,n=this._markers,s=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)e=n[t]._latlng,this._bounds.extend(e),o+=e.lat,a+=e.lng;for(t=0;t<s.length;t++)(i=s[t])._boundsNeedUpdate&&i._recalculateBounds(),this._bounds.extend(i._bounds),e=i._wLatLng,r=i._childCount,o+=e.lat*r,a+=e.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,i,e){this._recursively(t,this._group._map.getMinZoom(),e-1,(function(t){var e,r,n=t._markers;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}),(function(t){var e,r,n=t._childClusters;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,e,r){this._recursively(t,r,i,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,i,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,i){this._recursively(t,this._group._map.getMinZoom(),i,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,i,e){this._recursively(e,this._group._map.getMinZoom()-1,i,(function(r){if(i!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];e.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(i){i._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var i=this._markers.length-1;0<=i;i--){var e=this._markers[i];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,i,e,r){var n,s;this._recursively(t,i-1,e-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,i,e,r,n){var s,o,a=this._childClusters,l=this._zoom;if(i<=l&&(r&&r(this),n&&l===e&&n(this)),l<i||l<e)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,i,e,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,i){var e=this._getCoord(i.x),r=this._getCoord(i.y),n=this._grid,s=n[r]=n[r]||{},o=s[e]=s[e]||[],a=L.Util.stamp(t);this._objectPoint[a]=i,o.push(t)},updateObject:function(t,i){this.removeObject(t),this.addObject(t,i)},removeObject:function(t,i){var e,r,n=this._getCoord(i.x),s=this._getCoord(i.y),o=this._grid,a=o[s]=o[s]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],e=0,r=l.length;e<r;e++)if(l[e]===t)return l.splice(e,1),1===r&&delete a[n],!0},eachObject:function(t,i){var e,r,n,s,o,a,l=this._grid;for(e in l)for(r in o=l[e])for(n=0,s=(a=o[r]).length;n<s;n++)t.call(i,a[n])&&(n--,s--)},getNearObject:function(t){var i,e,r,n,s,o,a,l,c=this._getCoord(t.x),h=this._getCoord(t.y),u=this._objectPoint,f=this._sqCellSize,p=null;for(i=h-1;i<=h+1;i++)if(n=this._grid[i])for(e=c-1;e<=c+1;e++)if(s=n[e])for(r=0,o=s.length;r<o;r++)a=s[r],((l=this._sqDist(u[L.Util.stamp(a)],t))<f||l<=f&&null===p)&&(f=l,p=a);return p},_getCoord:function(t){var i=Math.floor(t/this._cellSize);return isFinite(i)?i:t},_sqDist:function(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}},L.QuickHull={getDistant:function(t,i){var e=i[1].lat-i[0].lat;return(i[0].lng-i[1].lng)*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},findMostDistantPointFromBaseLine:function(t,i){var e,r,n,s=0,o=null,a=[];for(e=i.length-1;0<=e;e--)r=i[e],0<(n=this.getDistant(r,t))&&(a.push(r),s<n&&(s=n,o=r));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,i){var e=[],r=this.findMostDistantPointFromBaseLine(t,i);return r.maxPoint?e=(e=e.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var i,e=!1,r=!1,n=!1,s=!1,o=null,a=null,l=null,c=null,h=null,u=null;for(i=t.length-1;0<=i;i--){var f=t[i];(!1===e||f.lat>e)&&(e=(o=f).lat),(!1===r||f.lat<r)&&(r=(a=f).lat),(!1===n||f.lng>n)&&(n=(l=f).lng),(!1===s||f.lng<s)&&(s=(c=f).lng)}return h=r!==e?(u=a,o):(u=c,l),[].concat(this.buildConvexHull([u,h],t),this.buildConvexHull([h,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,i,e=this.getAllChildMarkers(),r=[];for(i=e.length-1;0<=i;i--)t=e[i].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,i=this.getAllChildMarkers(null,!0),e=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(i.length,e):i.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(i.length,e):(e.y+=10,this._generatePointsCircle(i.length,e)),this._animationSpiderfy(i,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,i){var e,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,o=[];for(n=Math.max(n,35),o.length=t,e=0;e<t;e++)r=this._circleStartAngle+e*s,o[e]=new L.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,i){var e,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(e=l.length=t;0<=e;e--)e<t&&(l[e]=new L.Point(i.x+n*Math.cos(a),i.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*e);return l},_noanimationUnspiderfy:function(){var t,i,e=this._group,r=e._map,n=e._featureGroup,s=this.getAllChildMarkers(null,!0);for(e._ignoreMove=!0,this.setOpacity(1),i=s.length-1;0<=i;i--)t=s[i],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);e.fire("unspiderfied",{cluster:this,markers:s}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,i){var e,r,n,s,o=this._group,a=o._map,l=o._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,e=0;e<t.length;e++)s=a.layerPointToLatLng(i[e]),r=t[e],n=new L.Polyline([this._latlng,s],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var e,r,n,s,o,a,l=this,c=this._group,h=c._map,u=c._featureGroup,f=this._latlng,p=h.latLngToLayerPoint(f),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,e=0;e<t.length;e++)r=t[e],a=h.layerPointToLatLng(i[e]),n=new L.Polyline([f,a],m),h.addLayer(n),r._spiderLeg=n,d&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),u.addLayer(r),r._setPos&&r._setPos(p);for(c._forceLayout(),c._animationStart(),e=t.length-1;0<=e;e--)a=h.layerPointToLatLng(i[e]),(r=t[e])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),d&&((s=(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:t})}),200)},_animationUnspiderfy:function(t){var i,e,r,n,s,o,a=this,l=this._group,c=l._map,h=l._featureGroup,u=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),f=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),e=f.length-1;0<=e;e--)(i=f[e])._preSpiderfyLatlng&&(i.closePopup(),i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng,o=!0,i._setPos&&(i._setPos(u),o=!1),i.clusterHide&&(i.clusterHide(),o=!1),o&&h.removeLayer(i),p&&(s=(n=(r=i._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&t++;for(e=f.length-1;0<=e;e--)(i=f[e])._spiderLeg&&(i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),1<t&&h.removeLayer(i),c.removeLayer(i._spiderLeg),delete i._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:f})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var i,e;for(i in t)for(e=t[i].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),L.Marker.include({refreshIconOptions:function(t,i){var e=this.options.icon;return L.setOptions(e,t),this.setIcon(e),i&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=i,t.MarkerCluster=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));function Sr(t){return fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=geometry`,{cache:"default"}).then((t=>t.json()))}const Tr='@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}';const Ir=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.touristicEventCardPress=o(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}onCenterOnMap(t){this.map.setView(new W.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}}onCardTrekMouseOver(t){if(!w.parentTrek&&(!w.selectedTrekId||w.selectedTrekId!==t.detail)){w.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(w.parentTrek){this.stepPopupIsOpen=false;w.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){w.selectedStepId=null;this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}componentDidLoad(){this.map=W.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});W.control.scale({metric:true,imperial:false}).addTo(this.map);W.control.locate({showPopup:false}).addTo(this.map);const t=this.nameLayer?this.nameLayer.split(","):[];const i=this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t));const e=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach(((i,r)=>{this.tileLayer.push({key:`${t[r]}`,value:W.tileLayer(i,{maxZoom:this.maxZoom,attribution:`${e[r]&&e[r]!==""?e[r].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=W.control.layers(this.tileLayer.reduce(((t,i)=>Object.assign(t,{[i.key]:i.value})),{}),{},{collapsed:true}).addTo(this.map);W.Control.Contract=W.Control.extend({onAdd:()=>{const t=W.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const i=t.appendChild(W.DomUtil.create("a"));i.href="#";i.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};return t}});W.control.contract=t=>new W.Control.Contract(t);W.control.contract({position:"topleft"}).addTo(this.map)}if(w.currentTrek){this.addTrek()}else if(w.currentTreks){this.addTreks()}else if(w.currentTouristicContent){this.addTouristicContent()}else if(w.currentTouristicEvent){this.addTouristicEvent()}else if(w.touristicContents){this.addTouristicContents()}else if(w.touristicEvents){this.addTouristicEvents()}b("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));b("currentTrek",(()=>{if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContent",(()=>{if(w.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(w.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(w.currentTrek){this.removeTouristicContent();this.addTrek()}else if(w.currentTreks){this.removeTouristicContent();this.addTreks()}}));b("currentTouristicEvent",(()=>{if(w.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(w.currentTreks){this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(w.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeTouristicContent();this.addTouristicContents(true)}}));b("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvent();this.addTouristicEvents(true)}}));b("mode",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.mode==="treks"){if(w.treks){this.removeTouristicContents();this.removeTouristicEvents();this.addTreks(true)}}else if(w.mode==="touristicContents"){if(w.touristicContents){this.removeTreks();this.removeTouristicEvents();this.addTouristicContents(true)}}else if(w.mode==="touristicEvents"){if(w.touristicEvents){this.removeTreks();this.removeTouristicContents();this.addTouristicEvents(true)}}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(t=false){var i;w.treksWithinBounds=w.currentTreks;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTreks){for(const t of w.currentTreks){e.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=w.practices.find((i=>i.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.treksLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.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(e.length>0){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);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)}removeTreks(){if(this.treksLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(w.currentTreks&&!w.currentMapBounds||w.currentTreks&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.treksWithinBounds=w.currentTreks.filter((t=>this.map.getBounds().contains(W.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(w.currentTouristicContents&&!w.currentMapBounds||w.currentTouristicContents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicContentsWithinBounds=w.currentTouristicContents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(w.currentTouristicEvents&&!w.currentMapBounds||w.currentTouristicEvents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicEventsWithinBounds=w.currentTouristicEvents.filter((t=>this.map.getBounds().contains(W.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}addTrek(){var t,i,e,r;this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const n={type:"Feature",geometry:w.currentTrek.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(n,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(w.currentTrek.parking_location){const t={type:"Feature",properties:{},geometry:{type:"Point",coordinates:w.currentTrek.parking_location}};this.currentParkingLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false,interactive:false})})}if(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=W.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="sensitive-area-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="sensitive-area-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(w.currentPois&&w.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of w.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=w.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=W.geoJSON(i,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="poi-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="poi-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.trekTouristicContents&&w.trekTouristicContents.length>0){const t={type:"FeatureCollection",features:[]};for(const e of w.trekTouristicContents){t.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=w.touristicContentCategories.find((t=>t.id===e.category)))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})}this.currentToutisticContentsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.category_pictogram?`<img crossorigin="anonymous "src=${t.properties.category_pictogram} />`:`<img />`,className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.touristicEvents&&w.touristicEvents.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.touristicEvents){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=w.touristicEventTypes.find((t=>t.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticEventsLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`\n <img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentInformationDesks&&w.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentInformationDesks.filter((t=>w.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=W.DomUtil.create("div");e.className="information-desks-tooltip";const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="information-desks-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:w.currentTrek.points_reference});let i=0;this.currentReferencePointsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{icon:W.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&w.parentTrekId&&w.parentTrek&&w.currentTrek.id===w.parentTrekId){const t={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){for(const i of w.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(r=w.practices.find((t=>t.id===i.practice)))===null||r===void 0?void 0:r.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}let i=0;this.currentStepsLayer=W.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return W.marker(e,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${i}</div></div>`,className:"step-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false})},onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}const s={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!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=W.control.elevation(Object.assign({},s)).addTo(this.map);const o=JSON.stringify({name:`${w.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:w.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(o);const a={};if(this.currentStepsLayer){a[l[w.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){a[l[w.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){a[l[w.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){a[l[w.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){a[l[w.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){a[l[w.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){a[l[w.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){a[l[w.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(a).forEach((t=>{this.layersControl.addOverlay(a[t],t)}))}else{this.layersControl=W.control.layers({},a,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=W.latLngBounds(w.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}addSelectedCurrentTrek(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTreks){const n=w.currentTreks.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(e=w.practices.find((t=>t.id===n.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();w.selectedTrekId=t;this.selectedCurrentTrekLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.trekPopupIsOpen){w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));i.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(w.selectedTrekId)}));i.on("popupclose",(()=>{if(w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){w.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){const n=w.currentTrekSteps.findIndex((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:w.currentTrekSteps[n].departure_geom},properties:{id:w.currentTrekSteps[n].id,name:w.currentTrekSteps[n].name,practice:(e=w.practices.find((t=>t.id===w.currentTrekSteps[n].practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:w.currentTrekSteps[n].attachments&&w.currentTrekSteps[n].attachments.length>0&&w.currentTrekSteps[n].attachments[0].thumbnail,index:n+1}})}this.removeSelectedCurrentStep();w.selectedStepId=t;this.selectedCurrentStepLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:`<div class="step-marker-container"><div class="step-number">${t.properties.index}</div></div>`,className:"selected-step-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.stepPopupIsOpen){w.selectedTrekId=null;this.removeSelectedCurrentStep()}}));i.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(w.selectedStepId)}));i.on("popupclose",(()=>{if(w.selectedStepId){this.stepPopupIsOpen=false;w.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(w.selectedStepId){w.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((i=>i.layer._leaflet_id===t.layerId)).overlay){t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}}))}removeTrek(){if(this.layersControl){if(!this.layersControl._layers.some((t=>!t.overlay))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((t=>t.overlay)).forEach((t=>{this.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}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}showTrekLine(t){Sr(t).then((t=>{const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=W.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}))}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}addTouristicContent(){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(w.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicContent.geometry.coordinates},properties:{id:w.currentTouristicContent.id,name:w.currentTouristicContent.name,practice:w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous "src=${t.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([w.currentTouristicContent.geometry.coordinates[1],w.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}addTouristicContents(t=false){w.touristicContentsWithinBounds=w.currentTouristicContents;const i=[];const e={type:"FeatureCollection",features:[]};if(w.currentTouristicContents){for(const t of w.currentTouristicContents){i.push(t.geometry.coordinates);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:w.touristicContentCategories.find((i=>i.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(i.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticContentsLayer=W.geoJSON(e,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.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=W.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(e);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)}removeTouristicContents(){if(this.toutisticContentsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(w.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicEvent.geometry.coordinates},properties:{id:w.currentTouristicEvent.id,name:w.currentTouristicEvent.name,type:w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type)).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=W.geoJSON(t,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.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([w.currentTouristicEvent.geometry.coordinates[1],w.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}addSelectedTouristicContent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicContents){const n=w.touristicContents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicContentCategories.find((t=>t.id===n.category)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();w.selectedTouristicContentId=t;this.selectedTouristicContentLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"selected-touristic-content-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));i.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(w.selectedTouristicContentId)}));i.on("popupclose",(()=>{if(w.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){w.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}addTouristicEvents(t=false){var i;w.touristicEventsWithinBounds=w.currentTouristicEvents;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTouristicEvents){for(const t of w.currentTouristicEvents){e.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=w.touristicEventTypes.find((i=>i.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticEventsLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticEventsLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{icon:W.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32,iconAnchor:[16,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicEvent(t.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=W.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>W.divIcon({html:"<div>"+t.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(e.length>0){this.bounds=W.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(r);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)}removeTouristicEvents(){if(this.toutisticEventsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}addSelectedTouristicEvent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicEvents){const n=w.touristicEvents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicEventTypes.find((t=>t.id===n.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();w.selectedTouristicEventId=t;this.selectedTouristicEventLayer=W.geoJSON(r,{pointToLayer:(t,i)=>W.marker(i,{zIndexOffset:4e6,icon:W.divIcon({html:t.properties.category?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"selected-touristic-event-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=W.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=W.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=W.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=W.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));i.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(w.selectedTouristicEventId)}));i.on("popupclose",(()=>{if(w.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){w.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}render(){const t=a(`${""}assets/layers.svg`);const i=a(`${""}assets/contract.svg`);return r(n,{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(${t})`,"--contract-image-src":`url(${i})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},r("div",{id:"map",style:{},class:w.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),w.currentTrek&&r("div",null,r("div",{id:"elevation",ref:t=>this.elevationRef=t}),r("div",{class:"map-bottom-space"})),!this.mapIsReady&&r("div",{class:"map-loader-container"},r("span",{class:"loader"})))}};Ir.style=Tr;function Br(t){return t!==null&&typeof t==="object"&&"constructor"in t&&t.constructor===Object}function Fr(t={},i={}){Object.keys(i).forEach((e=>{if(typeof t[e]==="undefined")t[e]=i[e];else if(Br(i[e])&&Br(t[e])&&Object.keys(i[e]).length>0){Fr(t[e],i[e])}}))}const Rr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Nr(){const t=typeof document!=="undefined"?document:{};Fr(t,Rr);return t}const Dr={document:Rr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function t(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){if(typeof setTimeout==="undefined"){t();return null}return setTimeout(t,0)},cancelAnimationFrame(t){if(typeof setTimeout==="undefined"){return}clearTimeout(t)}};function Yr(){const t=typeof window!=="undefined"?window:{};Fr(t,Dr);return t}function Gr(t){const i=t;Object.keys(i).forEach((t=>{try{i[t]=null}catch(e){}try{delete i[t]}catch(e){}}))}function $r(t,i=0){return setTimeout(t,i)}function Zr(){return Date.now()}function Hr(t){const i=Yr();let e;if(i.getComputedStyle){e=i.getComputedStyle(t,null)}if(!e&&t.currentStyle){e=t.currentStyle}if(!e){e=t.style}return e}function Ur(t,i="x"){const e=Yr();let r;let n;let s;const o=Hr(t);if(e.WebKitCSSMatrix){n=o.transform||o.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((t=>t.replace(",","."))).join(", ")}s=new e.WebKitCSSMatrix(n==="none"?"":n)}else{s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=s.toString().split(",")}if(i==="x"){if(e.WebKitCSSMatrix)n=s.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(i==="y"){if(e.WebKitCSSMatrix)n=s.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function Qr(t){return typeof t==="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Vr(t){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return t instanceof HTMLElement}return t&&(t.nodeType===1||t.nodeType===11)}function Wr(...t){const i=Object(t[0]);const e=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const n=t[r];if(n!==undefined&&n!==null&&!Vr(n)){const t=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=t.length;e<r;e+=1){const r=t[e];const s=Object.getOwnPropertyDescriptor(n,r);if(s!==undefined&&s.enumerable){if(Qr(i[r])&&Qr(n[r])){if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else if(!Qr(i[r])&&Qr(n[r])){i[r]={};if(n[r].__swiper__){i[r]=n[r]}else{Wr(i[r],n[r])}}else{i[r]=n[r]}}}}}return i}function Kr(t,i,e){t.style.setProperty(i,e)}function qr({swiper:t,targetPosition:i,side:e}){const r=Yr();const n=-t.translate;let s=null;let o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none";r.cancelAnimationFrame(t.cssModeFrameID);const l=i>n?"next":"prev";const c=(t,i)=>l==="next"&&t>=i||l==="prev"&&t<=i;const h=()=>{o=(new Date).getTime();if(s===null){s=o}const l=Math.max(Math.min((o-s)/a,1),0);const u=.5-Math.cos(l*Math.PI)/2;let f=n+u*(i-n);if(c(f,i)){f=i}t.wrapperEl.scrollTo({[e]:f});if(c(f,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((()=>{t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo({[e]:f})}));r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(h)};h()}function Jr(t,i=""){return[...t.children].filter((t=>t.matches(i)))}function Xr(t,i=[]){const e=document.createElement(t);e.classList.add(...Array.isArray(i)?i:[i]);return e}function tn(t){const i=Yr();const e=Nr();const r=t.getBoundingClientRect();const n=e.body;const s=t.clientTop||n.clientTop||0;const o=t.clientLeft||n.clientLeft||0;const a=t===i?i.scrollY:t.scrollTop;const l=t===i?i.scrollX:t.scrollLeft;return{top:r.top+a-s,left:r.left+l-o}}function en(t,i){const e=[];while(t.previousElementSibling){const r=t.previousElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function rn(t,i){const e=[];while(t.nextElementSibling){const r=t.nextElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function nn(t,i){const e=Yr();return e.getComputedStyle(t,null).getPropertyValue(i)}function sn(t){let i=t;let e;if(i){e=0;while((i=i.previousSibling)!==null){if(i.nodeType===1)e+=1}return e}return undefined}function on(t,i){const e=[];let r=t.parentElement;while(r){if(i){if(r.matches(i))e.push(r)}else{e.push(r)}r=r.parentElement}return e}function an(t,i){function e(r){if(r.target!==t)return;i.call(t,r);t.removeEventListener("transitionend",e)}if(i){t.addEventListener("transitionend",e)}}function ln(t,i,e){const r=Yr();if(e){return t[i==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-left":"margin-bottom"))}return t.offsetWidth}let cn;function hn(){const t=Yr();const i=Nr();return{smoothScroll:i.documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)}}function un(){if(!cn){cn=hn()}return cn}let fn;function pn({userAgent:t}={}){const i=un();const e=Yr();const r=e.navigator.platform;const n=t||e.navigator.userAgent;const s={ios:false,android:false};const o=e.screen.width;const a=e.screen.height;const l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/);const u=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const f=r==="Win32";let p=r==="MacIntel";const d=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!c&&p&&i.touch&&d.indexOf(`${o}x${a}`)>=0){c=n.match(/(Version)\/([\d.]+)/);if(!c)c=[0,1,"13_0_0"];p=false}if(l&&!f){s.os="android";s.android=true}if(c||u||h){s.os="ios";s.ios=true}return s}function dn(t={}){if(!fn){fn=pn(t)}return fn}let mn;function gn(){const t=Yr();let i=false;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,r]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));i=t<16||t===16&&r<2}}return{isSafari:i||e(),needPerspectiveFix:i,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function vn(){if(!mn){mn=gn()}return mn}function wn({swiper:t,on:i,emit:e}){const r=Yr();let n=null;let s=null;const o=()=>{if(!t||t.destroyed||!t.initialized)return;e("beforeResize");e("resize")};const a=()=>{if(!t||t.destroyed||!t.initialized)return;n=new ResizeObserver((i=>{s=r.requestAnimationFrame((()=>{const{width:e,height:r}=t;let n=e;let s=r;i.forEach((({contentBoxSize:i,contentRect:e,target:r})=>{if(r&&r!==t.el)return;n=e?e.width:(i[0]||i).inlineSize;s=e?e.height:(i[0]||i).blockSize}));if(n!==e||s!==r){o()}}))}));n.observe(t.el)};const l=()=>{if(s){r.cancelAnimationFrame(s)}if(n&&n.unobserve&&t.el){n.unobserve(t.el);n=null}};const c=()=>{if(!t||t.destroyed||!t.initialized)return;e("orientationchange")};i("init",(()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver!=="undefined"){a();return}r.addEventListener("resize",o);r.addEventListener("orientationchange",c)}));i("destroy",(()=>{l();r.removeEventListener("resize",o);r.removeEventListener("orientationchange",c)}))}function bn({swiper:t,extendParams:i,on:e,emit:r}){const n=[];const s=Yr();const o=(i,e={})=>{const o=s.MutationObserver||s.WebkitMutationObserver;const a=new o((i=>{if(t.__preventObserver__)return;if(i.length===1){r("observerUpdate",i[0]);return}const e=function t(){r("observerUpdate",i[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(e)}else{s.setTimeout(e,0)}}));a.observe(i,{attributes:typeof e.attributes==="undefined"?true:e.attributes,childList:typeof e.childList==="undefined"?true:e.childList,characterData:typeof e.characterData==="undefined"?true:e.characterData});n.push(a)};const a=()=>{if(!t.params.observer)return;if(t.params.observeParents){const i=on(t.el);for(let t=0;t<i.length;t+=1){o(i[t])}}o(t.el,{childList:t.params.observeSlideChildren});o(t.wrapperEl,{attributes:false})};const l=()=>{n.forEach((t=>{t.disconnect()}));n.splice(0,n.length)};i({observer:false,observeParents:false,observeSlideChildren:false});e("init",a);e("destroy",l)}const yn={on(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;const n=e?"unshift":"push";t.split(" ").forEach((t=>{if(!r.eventsListeners[t])r.eventsListeners[t]=[];r.eventsListeners[t][n](i)}));return r},once(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;function n(...e){r.off(t,n);if(n.__emitterProxy){delete n.__emitterProxy}i.apply(r,e)}n.__emitterProxy=i;return r.on(t,n,e)},onAny(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(typeof t!=="function")return e;const r=i?"unshift":"push";if(e.eventsAnyListeners.indexOf(t)<0){e.eventsAnyListeners[r](t)}return e},offAny(t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsAnyListeners)return i;const e=i.eventsAnyListeners.indexOf(t);if(e>=0){i.eventsAnyListeners.splice(e,1)}return i},off(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;t.split(" ").forEach((t=>{if(typeof i==="undefined"){e.eventsListeners[t]=[]}else if(e.eventsListeners[t]){e.eventsListeners[t].forEach(((r,n)=>{if(r===i||r.__emitterProxy&&r.__emitterProxy===i){e.eventsListeners[t].splice(n,1)}}))}}));return e},emit(...t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;let e;let r;let n;if(typeof t[0]==="string"||Array.isArray(t[0])){e=t[0];r=t.slice(1,t.length);n=i}else{e=t[0].events;r=t[0].data;n=t[0].context||i}r.unshift(n);const s=Array.isArray(e)?e:e.split(" ");s.forEach((t=>{if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((i=>{i.apply(n,[t,...r])}))}if(i.eventsListeners&&i.eventsListeners[t]){i.eventsListeners[t].forEach((t=>{t.apply(n,r)}))}}));return i}};function xn(){const t=this;let i;let e;const r=t.el;if(typeof t.params.width!=="undefined"&&t.params.width!==null){i=t.params.width}else{i=r.clientWidth}if(typeof t.params.height!=="undefined"&&t.params.height!==null){e=t.params.height}else{e=r.clientHeight}if(i===0&&t.isHorizontal()||e===0&&t.isVertical()){return}i=i-parseInt(nn(r,"padding-left")||0,10)-parseInt(nn(r,"padding-right")||0,10);e=e-parseInt(nn(r,"padding-top")||0,10)-parseInt(nn(r,"padding-bottom")||0,10);if(Number.isNaN(i))i=0;if(Number.isNaN(e))e=0;Object.assign(t,{width:i,height:e,size:t.isHorizontal()?i:e})}function kn(){const t=this;function i(i){if(t.isHorizontal()){return i}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"}[i]}function e(t,e){return parseFloat(t.getPropertyValue(i(e))||0)}const r=t.params;const{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t;const c=t.virtual&&r.virtual.enabled;const h=c?t.virtual.slides.length:t.slides.length;const u=Jr(s,`.${t.params.slideClass}, swiper-slide`);const f=c?t.virtual.slides.length:u.length;let p=[];const d=[];const m=[];let g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(t)}let v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(t)}const w=t.snapGrid.length;const b=t.slidesGrid.length;let y=r.spaceBetween;let x=-g;let k=0;let A=0;if(typeof o==="undefined"){return}if(typeof y==="string"&&y.indexOf("%")>=0){y=parseFloat(y.replace("%",""))/100*o}else if(typeof y==="string"){y=parseFloat(y)}t.virtualSize=-y;u.forEach((t=>{if(a){t.style.marginLeft=""}else{t.style.marginRight=""}t.style.marginBottom="";t.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){Kr(n,"--swiper-centered-offset-before","");Kr(n,"--swiper-centered-offset-after","")}const _=r.grid&&r.grid.rows>1&&t.grid;if(_){t.grid.initSlides(f)}let M;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>typeof r.breakpoints[t].slidesPerView!=="undefined")).length>0;for(let L=0;L<f;L+=1){M=0;let n;if(u[L])n=u[L];if(_){t.grid.updateSlide(L,n,f,i)}if(u[L]&&nn(n,"display")==="none")continue;if(r.slidesPerView==="auto"){if(z){u[L].style[i("width")]=``}const s=getComputedStyle(n);const o=n.style.transform;const a=n.style.webkitTransform;if(o){n.style.transform="none"}if(a){n.style.webkitTransform="none"}if(r.roundLengths){M=t.isHorizontal()?ln(n,"width",true):ln(n,"height",true)}else{const t=e(s,"width");const i=e(s,"padding-left");const r=e(s,"padding-right");const o=e(s,"margin-left");const a=e(s,"margin-right");const l=s.getPropertyValue("box-sizing");if(l&&l==="border-box"){M=t+o+a}else{const{clientWidth:e,offsetWidth:s}=n;M=t+i+r+o+a+(s-e)}}if(o){n.style.transform=o}if(a){n.style.webkitTransform=a}if(r.roundLengths)M=Math.floor(M)}else{M=(o-(r.slidesPerView-1)*y)/r.slidesPerView;if(r.roundLengths)M=Math.floor(M);if(u[L]){u[L].style[i("width")]=`${M}px`}}if(u[L]){u[L].swiperSlideSize=M}m.push(M);if(r.centeredSlides){x=x+M/2+k/2+y;if(k===0&&L!==0)x=x-o/2-y;if(L===0)x=x-o/2-y;if(Math.abs(x)<1/1e3)x=0;if(r.roundLengths)x=Math.floor(x);if(A%r.slidesPerGroup===0)p.push(x);d.push(x)}else{if(r.roundLengths)x=Math.floor(x);if((A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0)p.push(x);d.push(x);x=x+M+y}t.virtualSize+=M+y;k=M;A+=1}t.virtualSize=Math.max(t.virtualSize,o)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width=`${t.virtualSize+y}px`}if(r.setWrapperSize){n.style[i("width")]=`${t.virtualSize+y}px`}if(_){t.grid.updateWrapperSize(M,p,i)}if(!r.centeredSlides){const i=[];for(let e=0;e<p.length;e+=1){let n=p[e];if(r.roundLengths)n=Math.floor(n);if(p[e]<=t.virtualSize-o){i.push(n)}}p=i;if(Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1){p.push(t.virtualSize-o)}}if(c&&r.loop){const i=m[0]+y;if(r.slidesPerGroup>1){const e=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup);const n=i*r.slidesPerGroup;for(let t=0;t<e;t+=1){p.push(p[p.length-1]+n)}}for(let e=0;e<t.virtual.slidesBefore+t.virtual.slidesAfter;e+=1){if(r.slidesPerGroup===1){p.push(p[p.length-1]+i)}d.push(d[d.length-1]+i);t.virtualSize+=i}}if(p.length===0)p=[0];if(y!==0){const e=t.isHorizontal()&&a?"marginLeft":i("marginRight");u.filter(((t,i)=>{if(!r.cssMode||r.loop)return true;if(i===u.length-1){return false}return true})).forEach((t=>{t.style[e]=`${y}px`}))}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;const i=t-o;p=p.map((t=>{if(t<=0)return-g;if(t>i)return i+v;return t}))}if(r.centerInsufficientSlides){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;if(t<o){const i=(o-t)/2;p.forEach(((t,e)=>{p[e]=t-i}));d.forEach(((t,e)=>{d[e]=t+i}))}}Object.assign(t,{slides:u,snapGrid:p,slidesGrid:d,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Kr(n,"--swiper-centered-offset-before",`${-p[0]}px`);Kr(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const i=-t.snapGrid[0];const e=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+i));t.slidesGrid=t.slidesGrid.map((t=>t+e))}if(f!==h){t.emit("slidesLengthChange")}if(p.length!==w){if(t.params.watchOverflow)t.checkOverflow();t.emit("snapGridLengthChange")}if(d.length!==b){t.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){t.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const i=`${r.containerModifierClass}backface-hidden`;const e=t.el.classList.contains(i);if(f<=r.maxBackfaceHiddenSlides){if(!e)t.el.classList.add(i)}else if(e){t.el.classList.remove(i)}}}function An(t){const i=this;const e=[];const r=i.virtual&&i.params.virtual.enabled;let n=0;let s;if(typeof t==="number"){i.setTransition(t)}else if(t===true){i.setTransition(i.params.speed)}const o=t=>{if(r){return i.slides[i.getSlideIndexByData(t)]}return i.slides[t]};if(i.params.slidesPerView!=="auto"&&i.params.slidesPerView>1){if(i.params.centeredSlides){(i.visibleSlides||[]).forEach((t=>{e.push(t)}))}else{for(s=0;s<Math.ceil(i.params.slidesPerView);s+=1){const t=i.activeIndex+s;if(t>i.slides.length&&!r)break;e.push(o(t))}}}else{e.push(o(i.activeIndex))}for(s=0;s<e.length;s+=1){if(typeof e[s]!=="undefined"){const t=e[s].offsetHeight;n=t>n?t:n}}if(n||n===0)i.wrapperEl.style.height=`${n}px`}function _n(){const t=this;const i=t.slides;const e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<i.length;r+=1){i[r].swiperSlideOffset=(t.isHorizontal()?i[r].offsetLeft:i[r].offsetTop)-e-t.cssOverflowAdjustment()}}function Mn(t=this&&this.translate||0){const i=this;const e=i.params;const{slides:r,rtlTranslate:n,snapGrid:s}=i;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")i.updateSlidesOffset();let o=-t;if(n)o=t;r.forEach((t=>{t.classList.remove(e.slideVisibleClass)}));i.visibleSlidesIndexes=[];i.visibleSlides=[];let a=e.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*i.size}else if(typeof a==="string"){a=parseFloat(a)}for(let l=0;l<r.length;l+=1){const t=r[l];let c=t.swiperSlideOffset;if(e.cssMode&&e.centeredSlides){c-=r[0].swiperSlideOffset}const h=(o+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const u=(o-s[0]+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const f=-(o-c);const p=f+i.slidesSizesGrid[l];const d=f>=0&&f<i.size-1||p>1&&p<=i.size||f<=0&&p>=i.size;if(d){i.visibleSlides.push(t);i.visibleSlidesIndexes.push(l);r[l].classList.add(e.slideVisibleClass)}t.progress=n?-h:h;t.originalProgress=n?-u:u}}function zn(t){const i=this;if(typeof t==="undefined"){const e=i.rtlTranslate?-1:1;t=i&&i.translate&&i.translate*e||0}const e=i.params;const r=i.maxTranslate()-i.minTranslate();let{progress:n,isBeginning:s,isEnd:o,progressLoop:a}=i;const l=s;const c=o;if(r===0){n=0;s=true;o=true}else{n=(t-i.minTranslate())/r;const e=Math.abs(t-i.minTranslate())<1;const a=Math.abs(t-i.maxTranslate())<1;s=e||n<=0;o=a||n>=1;if(e)n=0;if(a)n=1}if(e.loop){const e=i.getSlideIndexByData(0);const r=i.getSlideIndexByData(i.slides.length-1);const n=i.slidesGrid[e];const s=i.slidesGrid[r];const o=i.slidesGrid[i.slidesGrid.length-1];const l=Math.abs(t);if(l>=n){a=(l-n)/o}else{a=(l+o-s)/o}if(a>1)a-=1}Object.assign(i,{progress:n,progressLoop:a,isBeginning:s,isEnd:o});if(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)i.updateSlidesProgress(t);if(s&&!l){i.emit("reachBeginning toEdge")}if(o&&!c){i.emit("reachEnd toEdge")}if(l&&!s||c&&!o){i.emit("fromEdge")}i.emit("progress",n)}function Ln(){const t=this;const{slides:i,params:e,slidesEl:r,activeIndex:n}=t;const s=t.virtual&&e.virtual.enabled;const o=t=>Jr(r,`.${e.slideClass}${t}, swiper-slide${t}`)[0];i.forEach((t=>{t.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}));let a;if(s){if(e.loop){let i=n-t.virtual.slidesBefore;if(i<0)i=t.virtual.slides.length+i;if(i>=t.virtual.slides.length)i-=t.virtual.slides.length;a=o(`[data-swiper-slide-index="${i}"]`)}else{a=o(`[data-swiper-slide-index="${n}"]`)}}else{a=i[n]}if(a){a.classList.add(e.slideActiveClass);let t=rn(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!t){t=i[0]}if(t){t.classList.add(e.slideNextClass)}let r=en(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!r===0){r=i[i.length-1]}if(r){r.classList.add(e.slidePrevClass)}}t.emitSlidesClasses()}const Cn=(t,i)=>{if(!t||t.destroyed||!t.params)return;const e=()=>t.isElement?`swiper-slide`:`.${t.params.slideClass}`;const r=i.closest(e());if(r){const i=r.querySelector(`.${t.params.lazyPreloaderClass}`);if(i)i.remove()}};const En=(t,i)=>{if(!t.slides[i])return;const e=t.slides[i].querySelector('[loading="lazy"]');if(e)e.removeAttribute("loading")};const Pn=t=>{if(!t||t.destroyed||!t.params)return;let i=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!i||i<0)return;i=Math.min(i,e);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView);const n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const e=n;const s=[e-i];s.push(...Array.from({length:i}).map(((t,i)=>e+r+i)));t.slides.forEach(((i,e)=>{if(s.includes(i.column))En(t,e)}));return}const s=n+r-1;if(t.params.rewind||t.params.loop){for(let r=n-i;r<=s+i;r+=1){const i=(r%e+e)%e;if(i<n||i>s)En(t,i)}}else{for(let r=Math.max(n-i,0);r<=Math.min(s+i,e-1);r+=1){if(r!==n&&(r>s||r<n)){En(t,r)}}}};function On(t){const{slidesGrid:i,params:e}=t;const r=t.rtlTranslate?t.translate:-t.translate;let n;for(let s=0;s<i.length;s+=1){if(typeof i[s+1]!=="undefined"){if(r>=i[s]&&r<i[s+1]-(i[s+1]-i[s])/2){n=s}else if(r>=i[s]&&r<i[s+1]){n=s+1}}else if(r>=i[s]){n=s}}if(e.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function jn(t){const i=this;const e=i.rtlTranslate?i.translate:-i.translate;const{snapGrid:r,params:n,activeIndex:s,realIndex:o,snapIndex:a}=i;let l=t;let c;const h=t=>{let e=t-i.virtual.slidesBefore;if(e<0){e=i.virtual.slides.length+e}if(e>=i.virtual.slides.length){e-=i.virtual.slides.length}return e};if(typeof l==="undefined"){l=On(i)}if(r.indexOf(e)>=0){c=r.indexOf(e)}else{const t=Math.min(n.slidesPerGroupSkip,l);c=t+Math.floor((l-t)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===s){if(c!==a){i.snapIndex=c;i.emit("snapIndexChange")}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=h(l)}return}let u;if(i.virtual&&n.virtual.enabled&&n.loop){u=h(l)}else if(i.slides[l]){u=parseInt(i.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{u=l}Object.assign(i,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:u,previousIndex:s,activeIndex:l});if(i.initialized){Pn(i)}i.emit("activeIndexChange");i.emit("snapIndexChange");if(o!==u){i.emit("realIndexChange")}if(i.initialized||i.params.runCallbacksOnInit){i.emit("slideChange")}}function Sn(t){const i=this;const e=i.params;const r=t.closest(`.${e.slideClass}, swiper-slide`);let n=false;let s;if(r){for(let t=0;t<i.slides.length;t+=1){if(i.slides[t]===r){n=true;s=t;break}}}if(r&&n){i.clickedSlide=r;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=s}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(e.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}const Tn={updateSize:xn,updateSlides:kn,updateAutoHeight:An,updateSlidesOffset:_n,updateSlidesProgress:Mn,updateProgress:zn,updateSlidesClasses:Ln,updateActiveIndex:jn,updateClickedSlide:Sn};function In(t=(this.isHorizontal()?"x":"y")){const i=this;const{params:e,rtlTranslate:r,translate:n,wrapperEl:s}=i;if(e.virtualTranslate){return r?-n:n}if(e.cssMode){return n}let o=Ur(s,t);o+=i.cssOverflowAdjustment();if(r)o=-o;return o||0}function Bn(t,i){const e=this;const{rtlTranslate:r,params:n,wrapperEl:s,progress:o}=e;let a=0;let l=0;const c=0;if(e.isHorizontal()){a=r?-t:t}else{l=t}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}e.previousTranslate=e.translate;e.translate=e.isHorizontal()?a:l;if(n.cssMode){s[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(e.isHorizontal()){a-=e.cssOverflowAdjustment()}else{l-=e.cssOverflowAdjustment()}s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`}let h;const u=e.maxTranslate()-e.minTranslate();if(u===0){h=0}else{h=(t-e.minTranslate())/u}if(h!==o){e.updateProgress(t)}e.emit("setTranslate",e.translate,i)}function Fn(){return-this.snapGrid[0]}function Rn(){return-this.snapGrid[this.snapGrid.length-1]}function Nn(t=0,i=this.params.speed,e=true,r=true,n){const s=this;const{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition){return false}const l=s.minTranslate();const c=s.maxTranslate();let h;if(r&&t>l)h=l;else if(r&&t<c)h=c;else h=t;s.updateProgress(h);if(o.cssMode){const t=s.isHorizontal();if(i===0){a[t?"scrollLeft":"scrollTop"]=-h}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:-h,side:t?"left":"top"});return true}a.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return true}if(i===0){s.setTransition(0);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionEnd")}}else{s.setTransition(i);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(e){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}const Dn={getTranslate:In,setTranslate:Bn,minTranslate:Fn,maxTranslate:Rn,translateTo:Nn};function Yn(t,i){const e=this;if(!e.params.cssMode){e.wrapperEl.style.transitionDuration=`${t}ms`}e.emit("setTransition",t,i)}function Gn({swiper:t,runCallbacks:i,direction:e,step:r}){const{activeIndex:n,previousIndex:s}=t;let o=e;if(!o){if(n>s)o="next";else if(n<s)o="prev";else o="reset"}t.emit(`transition${r}`);if(i&&n!==s){if(o==="reset"){t.emit(`slideResetTransition${r}`);return}t.emit(`slideChangeTransition${r}`);if(o==="next"){t.emit(`slideNextTransition${r}`)}else{t.emit(`slidePrevTransition${r}`)}}}function $n(t=true,i){const e=this;const{params:r}=e;if(r.cssMode)return;if(r.autoHeight){e.updateAutoHeight()}Gn({swiper:e,runCallbacks:t,direction:i,step:"Start"})}function Zn(t=true,i){const e=this;const{params:r}=e;e.animating=false;if(r.cssMode)return;e.setTransition(0);Gn({swiper:e,runCallbacks:t,direction:i,step:"End"})}const Hn={setTransition:Yn,transitionStart:$n,transitionEnd:Zn};function Un(t=0,i=this.params.speed,e=true,r,n){if(typeof t==="string"){t=parseInt(t,10)}const s=this;let o=t;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:u,rtlTranslate:f,wrapperEl:p,enabled:d}=s;if(s.animating&&a.preventInteractionOnTransition||!d&&!r&&!n){return false}const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);if(g>=l.length)g=l.length-1;const v=-l[g];if(a.normalizeSlideIndex){for(let t=0;t<c.length;t+=1){const i=-Math.floor(v*100);const e=Math.floor(c[t]*100);const r=Math.floor(c[t+1]*100);if(typeof c[t+1]!=="undefined"){if(i>=e&&i<r-(r-e)/2){o=t}else if(i>=e&&i<r){o=t+1}}else if(i>=e){o=t}}}if(s.initialized&&o!==u){if(!s.allowSlideNext&&(f?v>s.translate&&v>s.minTranslate():v<s.translate&&v<s.minTranslate())){return false}if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()){if((u||0)!==o){return false}}}if(o!==(h||0)&&e){s.emit("beforeSlideChangeStart")}s.updateProgress(v);let w;if(o>u)w="next";else if(o<u)w="prev";else w="reset";if(f&&-v===s.translate||!f&&v===s.translate){s.updateActiveIndex(o);if(a.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(a.effect!=="slide"){s.setTranslate(v)}if(w!=="reset"){s.transitionStart(e,w);s.transitionEnd(e,w)}return false}if(a.cssMode){const t=s.isHorizontal();const e=f?v:-v;if(i===0){const i=s.virtual&&s.params.virtual.enabled;if(i){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(i&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=e}))}else{p[t?"scrollLeft":"scrollTop"]=e}if(i){requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:e,side:t?"left":"top"});return true}p.scrollTo({[t?"left":"top"]:e,behavior:"smooth"})}return true}s.setTransition(i);s.setTranslate(v);s.updateActiveIndex(o);s.updateSlidesClasses();s.emit("beforeTransitionStart",i,r);s.transitionStart(e,w);if(i===0){s.transitionEnd(e,w)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(e,w)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function Qn(t=0,i=this.params.speed,e=true,r){if(typeof t==="string"){const i=parseInt(t,10);t=i}const n=this;let s=t;if(n.params.loop){if(n.virtual&&n.params.virtual.enabled){s=s+n.virtual.slidesBefore}else{s=n.getSlideIndexByData(s)}}return n.slideTo(s,i,e,r)}function Vn(t=this.params.speed,i=true,e){const r=this;const{enabled:n,params:s,animating:o}=r;if(!n)return r;let a=s.slidesPerGroup;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}const l=r.activeIndex<s.slidesPerGroupSkip?1:a;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(s.rewind&&r.isEnd){return r.slideTo(0,t,i,e)}return r.slideTo(r.activeIndex+l,t,i,e)}function Wn(t=this.params.speed,i=true,e){const r=this;const{params:n,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const h=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!h&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function f(t){if(t<0)return-Math.floor(Math.abs(t));return Math.floor(t)}const p=f(u);const d=s.map((t=>f(t)));let m=s[d.indexOf(p)-1];if(typeof m==="undefined"&&n.cssMode){let t;s.forEach(((i,e)=>{if(p>=i){t=e}}));if(typeof t!=="undefined"){m=s[t>0?t-1:t]}}let g=0;if(typeof m!=="undefined"){g=o.indexOf(m);if(g<0)g=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){g=g-r.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(n.rewind&&r.isBeginning){const n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,t,i,e)}return r.slideTo(g,t,i,e)}function Kn(t=this.params.speed,i=true,e){const r=this;return r.slideTo(r.activeIndex,t,i,e)}function qn(t=this.params.speed,i=true,e,r=.5){const n=this;let s=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,s);const a=o+Math.floor((s-o)/n.params.slidesPerGroup);const l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];const i=n.snapGrid[a+1];if(l-t>(i-t)*r){s+=n.params.slidesPerGroup}}else{const t=n.snapGrid[a-1];const i=n.snapGrid[a];if(l-t<=(i-t)*r){s-=n.params.slidesPerGroup}}s=Math.max(s,0);s=Math.min(s,n.slidesGrid.length-1);return n.slideTo(s,t,i,e)}function Jn(){const t=this;const{params:i,slidesEl:e}=t;const r=i.slidesPerView==="auto"?t.slidesPerViewDynamic():i.slidesPerView;let n=t.clickedIndex;let s;const o=t.isElement?`swiper-slide`:`.${i.slideClass}`;if(i.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(i.centeredSlides){if(n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else if(n>t.slides.length-r){t.loopFix();n=t.getSlideIndex(Jr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);$r((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else{t.slideTo(n)}}const Xn={slideTo:Un,slideToLoop:Qn,slideNext:Vn,slidePrev:Wn,slideReset:Kn,slideToClosest:qn,slideToClickedSlide:Jn};function ts(t){const i=this;const{params:e,slidesEl:r}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;const n=Jr(r,`.${e.slideClass}, swiper-slide`);n.forEach(((t,i)=>{t.setAttribute("data-swiper-slide-index",i)}));i.loopFix({slideRealIndex:t,direction:e.centeredSlides?undefined:"next"})}function is({slideRealIndex:t,slideTo:i=true,direction:e,setTranslate:r,activeSlideIndex:n,byController:s,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:h,slidesEl:u,params:f}=a;a.allowSlidePrev=true;a.allowSlideNext=true;if(a.virtual&&f.virtual.enabled){if(i){if(!f.centeredSlides&&a.snapIndex===0){a.slideTo(a.virtual.slides.length,0,false,true)}else if(f.centeredSlides&&a.snapIndex<f.slidesPerView){a.slideTo(a.virtual.slides.length+a.snapIndex,0,false,true)}else if(a.snapIndex===a.snapGrid.length-1){a.slideTo(a.virtual.slidesBefore,0,false,true)}}a.allowSlidePrev=c;a.allowSlideNext=h;a.emit("loopFix");return}const p=f.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let d=f.loopedSlides||p;if(d%f.slidesPerGroup!==0){d+=f.slidesPerGroup-d%f.slidesPerGroup}a.loopedSlides=d;const m=[];const g=[];let v=a.activeIndex;if(typeof n==="undefined"){n=a.getSlideIndex(a.slides.filter((t=>t.classList.contains(f.slideActiveClass)))[0])}else{v=n}const w=e==="next"||!e;const b=e==="prev"||!e;let y=0;let x=0;if(n<d){y=Math.max(d-n,f.slidesPerGroup);for(let t=0;t<d-n;t+=1){const i=t-Math.floor(t/l.length)*l.length;m.push(l.length-i-1)}}else if(n>a.slides.length-d*2){x=Math.max(n-(a.slides.length-d*2),f.slidesPerGroup);for(let t=0;t<x;t+=1){const i=t-Math.floor(t/l.length)*l.length;g.push(i)}}if(b){m.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.prepend(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}if(w){g.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;u.append(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}a.recalcSlides();if(f.slidesPerView==="auto"){a.updateSlides()}if(f.watchSlidesProgress){a.updateSlidesOffset()}if(i){if(m.length>0&&b){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v+y];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v+y,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{if(r){a.slideToLoop(t,0,false,true)}}}else if(g.length>0&&w){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v-x];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v-x,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{a.slideToLoop(t,0,false,true)}}}a.allowSlidePrev=c;a.allowSlideNext=h;if(a.controller&&a.controller.control&&!s){const i={slideRealIndex:t,slideTo:false,direction:e,setTranslate:r,activeSlideIndex:n,byController:true};if(Array.isArray(a.controller.control)){a.controller.control.forEach((t=>{if(!t.destroyed&&t.params.loop)t.loopFix(i)}))}else if(a.controller.control instanceof a.constructor&&a.controller.control.params.loop){a.controller.control.loopFix(i)}}a.emit("loopFix")}function es(){const t=this;const{params:i,slidesEl:e}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach((t=>{const i=typeof t.swiperSlideIndex==="undefined"?t.getAttribute("data-swiper-slide-index")*1:t.swiperSlideIndex;r[i]=t}));t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")}));r.forEach((t=>{e.append(t)}));t.recalcSlides();t.slideTo(t.realIndex,0)}const rs={loopCreate:ts,loopFix:is,loopDestroy:es};function ns(t){const i=this;if(!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||i.params.cssMode)return;const e=i.params.touchEventsTarget==="container"?i.el:i.wrapperEl;if(i.isElement){i.__preventObserver__=true}e.style.cursor="move";e.style.cursor=t?"grabbing":"grab";if(i.isElement){requestAnimationFrame((()=>{i.__preventObserver__=false}))}}function ss(){const t=this;if(t.params.watchOverflow&&t.isLocked||t.params.cssMode){return}if(t.isElement){t.__preventObserver__=true}t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(t.isElement){requestAnimationFrame((()=>{t.__preventObserver__=false}))}}const os={setGrabCursor:ns,unsetGrabCursor:ss};function as(t,i=this){function e(i){if(!i||i===Nr()||i===Yr())return null;if(i.assignedSlot)i=i.assignedSlot;const r=i.closest(t);if(!r&&!i.getRootNode){return null}return r||e(i.getRootNode().host)}return e(i)}function ls(t){const i=this;const e=Nr();const r=Yr();const n=i.touchEventsData;n.evCache.push(t);const{params:s,touches:o,enabled:a}=i;if(!a)return;if(!s.simulateTouch&&t.pointerType==="mouse")return;if(i.animating&&s.preventInteractionOnTransition){return}if(!i.animating&&s.cssMode&&s.loop){i.loopFix()}let l=t;if(l.originalEvent)l=l.originalEvent;let c=l.target;if(s.touchEventsTarget==="wrapper"){if(!i.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;const h=!!s.noSwipingClass&&s.noSwipingClass!=="";const u=t.composedPath?t.composedPath():t.path;if(h&&l.target&&l.target.shadowRoot&&u){c=u[0]}const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?as(f,c):c.closest(f))){i.allowClick=true;return}if(s.swipeHandler){if(!c.closest(s.swipeHandler))return}o.currentX=l.pageX;o.currentY=l.pageY;const d=o.currentX;const m=o.currentY;const g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection;const v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(d<=v||d>=r.innerWidth-v)){if(g==="prevent"){t.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=d;o.startY=m;n.touchStartTime=Zr();i.allowClick=true;i.updateSize();i.swipeDirection=undefined;if(s.threshold>0)n.allowThresholdMove=false;let w=true;if(c.matches(n.focusableElements)){w=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c){e.activeElement.blur()}const b=w&&i.allowTouchMove&&s.touchStartPreventDefault;if((s.touchStartForcePreventDefault||b)&&!c.isContentEditable){l.preventDefault()}if(s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.animating&&!s.cssMode){i.freeMode.onTouchStart()}i.emit("touchStart",l)}function cs(t){const i=Nr();const e=this;const r=e.touchEventsData;const{params:n,touches:s,rtlTranslate:o,enabled:a}=e;if(!a)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){e.emit("touchMoveOpposite",l)}return}const c=r.evCache.findIndex((t=>t.pointerId===l.pointerId));if(c>=0)r.evCache[c]=l;const h=r.evCache.length>1?r.evCache[0]:l;const u=h.pageX;const f=h.pageY;if(l.preventedByNestedSwiper){s.startX=u;s.startY=f;return}if(!e.allowTouchMove){if(!l.target.matches(r.focusableElements)){e.allowClick=false}if(r.isTouched){Object.assign(s,{startX:u,startY:f,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:u,currentY:f});r.touchStartTime=Zr()}return}if(n.touchReleaseOnEdges&&!n.loop){if(e.isVertical()){if(f<s.startY&&e.translate<=e.maxTranslate()||f>s.startY&&e.translate>=e.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(u<s.startX&&e.translate<=e.maxTranslate()||u>s.startX&&e.translate>=e.minTranslate()){return}}if(i.activeElement){if(l.target===i.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;e.allowClick=false;return}}if(r.allowTouchCallbacks){e.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;s.currentX=u;s.currentY=f;const p=s.currentX-s.startX;const d=s.currentY-s.startY;if(e.params.threshold&&Math.sqrt(p**2+d**2)<e.params.threshold)return;if(typeof r.isScrolling==="undefined"){let t;if(e.isHorizontal()&&s.currentY===s.startY||e.isVertical()&&s.currentX===s.startX){r.isScrolling=false}else{if(p*p+d*d>=25){t=Math.atan2(Math.abs(d),Math.abs(p))*180/Math.PI;r.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle}}}if(r.isScrolling){e.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(s.currentX!==s.startX||s.currentY!==s.startY){r.startMoving=true}}if(r.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}e.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}let m=e.isHorizontal()?p:d;let g=e.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;if(n.oneWayMovement){m=Math.abs(m)*(o?1:-1);g=Math.abs(g)*(o?1:-1)}s.diff=m;m*=n.touchRatio;if(o){m=-m;g=-g}const v=e.touchesDirection;e.swipeDirection=m>0?"prev":"next";e.touchesDirection=g>0?"prev":"next";const w=e.params.loop&&!n.cssMode;if(!r.isMoved){if(w){e.loopFix({direction:e.swipeDirection})}r.startTranslate=e.getTranslate();e.setTransition(0);if(e.animating){const t=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});e.wrapperEl.dispatchEvent(t)}r.allowMomentumBounce=false;if(n.grabCursor&&(e.allowSlideNext===true||e.allowSlidePrev===true)){e.setGrabCursor(true)}e.emit("sliderFirstMove",l)}let b;if(r.isMoved&&v!==e.touchesDirection&&w&&Math.abs(m)>=1){e.loopFix({direction:e.swipeDirection,setTranslate:true});b=true}e.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=m+r.startTranslate;let y=true;let x=n.resistanceRatio;if(n.touchReleaseOnEdges){x=0}if(m>0){if(w&&!b&&r.currentTranslate>(n.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())){e.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>e.minTranslate()){y=false;if(n.resistance){r.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+r.startTranslate+m)**x}}}else if(m<0){if(w&&!b&&r.currentTranslate<(n.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())){e.loopFix({direction:"next",setTranslate:true,activeSlideIndex:e.slides.length-(n.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<e.maxTranslate()){y=false;if(n.resistance){r.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-r.startTranslate-m)**x}}}if(y){l.preventedByNestedSwiper=true}if(!e.allowSlideNext&&e.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&e.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&!e.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(m)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;s.startX=s.currentX;s.startY=s.currentY;r.currentTranslate=r.startTranslate;s.diff=e.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&e.freeMode||n.watchSlidesProgress){e.updateActiveIndex();e.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&e.freeMode){e.freeMode.onTouchMove()}e.updateProgress(r.currentTranslate);e.setTranslate(r.currentTranslate)}function hs(t){const i=this;const e=i.touchEventsData;const r=e.evCache.findIndex((i=>i.pointerId===t.pointerId));if(r>=0){e.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(t.type)){const e=t.type==="pointercancel"&&(i.browser.isSafari||i.browser.isWebView);if(!e){return}}const{params:n,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=i;if(!l)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent)c=c.originalEvent;if(e.allowTouchCallbacks){i.emit("touchEnd",c)}e.allowTouchCallbacks=false;if(!e.isTouched){if(e.isMoved&&n.grabCursor){i.setGrabCursor(false)}e.isMoved=false;e.startMoving=false;return}if(n.grabCursor&&e.isMoved&&e.isTouched&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(false)}const h=Zr();const u=h-e.touchStartTime;if(i.allowClick){const t=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(t&&t[0]||c.target);i.emit("tap click",c);if(u<300&&h-e.lastClickTime<300){i.emit("doubleTap doubleClick",c)}}e.lastClickTime=Zr();$r((()=>{if(!i.destroyed)i.allowClick=true}));if(!e.isTouched||!e.isMoved||!i.swipeDirection||s.diff===0||e.currentTranslate===e.startTranslate){e.isTouched=false;e.isMoved=false;e.startMoving=false;return}e.isTouched=false;e.isMoved=false;e.startMoving=false;let f;if(n.followFinger){f=o?i.translate:-i.translate}else{f=-e.currentTranslate}if(n.cssMode){return}if(n.freeMode&&n.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:f});return}let p=0;let d=i.slidesSizesGrid[0];for(let b=0;b<a.length;b+=b<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=b<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof a[b+t]!=="undefined"){if(f>=a[b]&&f<a[b+t]){p=b;d=a[b+t]-a[b]}}else if(f>=a[b]){p=b;d=a[a.length-1]-a[a.length-2]}}let m=null;let g=null;if(n.rewind){if(i.isBeginning){g=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1}else if(i.isEnd){m=0}}const v=(f-a[p])/d;const w=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes){i.slideTo(i.activeIndex);return}if(i.swipeDirection==="next"){if(v>=n.longSwipesRatio)i.slideTo(n.rewind&&i.isEnd?m:p+w);else i.slideTo(p)}if(i.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){i.slideTo(p+w)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){i.slideTo(g)}else{i.slideTo(p)}}}else{if(!n.shortSwipes){i.slideTo(i.activeIndex);return}const t=i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl);if(!t){if(i.swipeDirection==="next"){i.slideTo(m!==null?m:p+w)}if(i.swipeDirection==="prev"){i.slideTo(g!==null?g:p)}}else if(c.target===i.navigation.nextEl){i.slideTo(p+w)}else{i.slideTo(p)}}}function us(){const t=this;const{params:i,el:e}=t;if(e&&e.offsetWidth===0)return;if(i.breakpoints){t.setBreakpoint()}const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=t;const o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=true;t.allowSlidePrev=true;t.updateSize();t.updateSlides();t.updateSlidesClasses();const a=o&&i.loop;if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){t.slideTo(t.slides.length-1,0,false,true)}else{if(t.params.loop&&!o){t.slideToLoop(t.realIndex,0,false,true)}else{t.slideTo(t.activeIndex,0,false,true)}}if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){clearTimeout(t.autoplay.resizeTimeout);t.autoplay.resizeTimeout=setTimeout((()=>{if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){t.autoplay.resume()}}),500)}t.allowSlidePrev=n;t.allowSlideNext=r;if(t.params.watchOverflow&&s!==t.snapGrid){t.checkOverflow()}}function fs(t){const i=this;if(!i.enabled)return;if(!i.allowClick){if(i.params.preventClicks)t.preventDefault();if(i.params.preventClicksPropagation&&i.animating){t.stopPropagation();t.stopImmediatePropagation()}}}function ps(){const t=this;const{wrapperEl:i,rtlTranslate:e,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate;if(t.isHorizontal()){t.translate=-i.scrollLeft}else{t.translate=-i.scrollTop}if(t.translate===0)t.translate=0;t.updateActiveIndex();t.updateSlidesClasses();let n;const s=t.maxTranslate()-t.minTranslate();if(s===0){n=0}else{n=(t.translate-t.minTranslate())/s}if(n!==t.progress){t.updateProgress(e?-t.translate:t.translate)}t.emit("setTranslate",t.translate,false)}function ds(t){const i=this;Cn(i,t.target);if(i.params.cssMode||i.params.slidesPerView!=="auto"&&!i.params.autoHeight){return}i.update()}let ms=false;function gs(){}const vs=(t,i)=>{const e=Nr();const{params:r,el:n,wrapperEl:s,device:o}=t;const a=!!r.nested;const l=i==="on"?"addEventListener":"removeEventListener";const c=i;n[l]("pointerdown",t.onTouchStart,{passive:false});e[l]("pointermove",t.onTouchMove,{passive:false,capture:a});e[l]("pointerup",t.onTouchEnd,{passive:true});e[l]("pointercancel",t.onTouchEnd,{passive:true});e[l]("pointerout",t.onTouchEnd,{passive:true});e[l]("pointerleave",t.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",t.onClick,true)}if(r.cssMode){s[l]("scroll",t.onScroll)}if(r.updateOnWindowResize){t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",us,true)}else{t[c]("observerUpdate",us,true)}n[l]("load",t.onLoad,{capture:true})};function ws(){const t=this;const i=Nr();const{params:e}=t;t.onTouchStart=ls.bind(t);t.onTouchMove=cs.bind(t);t.onTouchEnd=hs.bind(t);if(e.cssMode){t.onScroll=ps.bind(t)}t.onClick=fs.bind(t);t.onLoad=ds.bind(t);if(!ms){i.addEventListener("touchstart",gs);ms=true}vs(t,"on")}function bs(){const t=this;vs(t,"off")}const ys={attachEvents:ws,detachEvents:bs};const xs=(t,i)=>t.grid&&i.grid&&i.grid.rows>1;function ks(){const t=this;const{realIndex:i,initialized:e,params:r,el:n}=t;const s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=o in s?s[o]:undefined;const l=a||t.originalParams;const c=xs(t,r);const h=xs(t,l);const u=r.enabled;if(c&&!h){n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`);t.emitContainerClasses()}else if(!c&&h){n.classList.add(`${r.containerModifierClass}grid`);if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add(`${r.containerModifierClass}grid-column`)}t.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((i=>{if(typeof l[i]==="undefined")return;const e=r[i]&&r[i].enabled;const n=l[i]&&l[i].enabled;if(e&&!n){t[i].disable()}if(!e&&n){t[i].enable()}}));const f=l.direction&&l.direction!==r.direction;const p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);if(f&&e){t.changeDirection()}Wr(t.params,l);const d=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev});if(u&&!d){t.disable()}else if(!u&&d){t.enable()}t.currentBreakpoint=o;t.emit("_beforeBreakpoint",l);if(p&&e){t.loopDestroy();t.loopCreate(i);t.updateSlides()}t.emit("breakpoint",l)}function As(t,i="window",e){if(!t||i==="container"&&!e)return undefined;let r=false;const n=Yr();const s=i==="window"?n.innerHeight:e.clientHeight;const o=Object.keys(t).map((t=>{if(typeof t==="string"&&t.indexOf("@")===0){const i=parseFloat(t.substr(1));const e=s*i;return{value:e,point:t}}return{value:t,point:t}}));o.sort(((t,i)=>parseInt(t.value,10)-parseInt(i.value,10)));for(let a=0;a<o.length;a+=1){const{point:t,value:s}=o[a];if(i==="window"){if(n.matchMedia(`(min-width: ${s}px)`).matches){r=t}}else if(s<=e.clientWidth){r=t}}return r||"max"}const _s={setBreakpoint:ks,getBreakpoint:As};function Ms(t,i){const e=[];t.forEach((t=>{if(typeof t==="object"){Object.keys(t).forEach((r=>{if(t[r]){e.push(i+r)}}))}else if(typeof t==="string"){e.push(i+t)}}));return e}function zs(){const t=this;const{classNames:i,params:e,rtl:r,el:n,device:s}=t;const o=Ms(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:r},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);i.push(...o);n.classList.add(...i);t.emitContainerClasses()}function Ls(){const t=this;const{el:i,classNames:e}=t;i.classList.remove(...e);t.emitContainerClasses()}const Cs={addClasses:zs,removeClasses:Ls};function Es(){const t=this;const{isLocked:i,params:e}=t;const{slidesOffsetBefore:r}=e;if(r){const i=t.slides.length-1;const e=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>e}else{t.isLocked=t.snapGrid.length===1}if(e.allowSlideNext===true){t.allowSlideNext=!t.isLocked}if(e.allowSlidePrev===true){t.allowSlidePrev=!t.isLocked}if(i&&i!==t.isLocked){t.isEnd=false}if(i!==t.isLocked){t.emit(t.isLocked?"lock":"unlock")}}const Ps={checkOverflow:Es};const Os={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 js(t,i){return function e(r={}){const n=Object.keys(r)[0];const s=r[n];if(typeof s!=="object"||s===null){Wr(i,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===true){t[n]={auto:true}}if(!(n in t&&"enabled"in s)){Wr(i,r);return}if(t[n]===true){t[n]={enabled:true}}if(typeof t[n]==="object"&&!("enabled"in t[n])){t[n].enabled=true}if(!t[n])t[n]={enabled:false};Wr(i,r)}}const Ss={eventsEmitter:yn,update:Tn,translate:Dn,transition:Hn,slide:Xn,loop:rs,grabCursor:os,events:ys,breakpoints:_s,checkOverflow:Ps,classes:Cs};const Ts={};class Is{constructor(...t){let i;let e;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"){e=t[0]}else{[i,e]=t}if(!e)e={};e=Wr({},e);if(i&&!e.el)e.el=i;const r=Nr();if(e.el&&typeof e.el==="string"&&r.querySelectorAll(e.el).length>1){const t=[];r.querySelectorAll(e.el).forEach((i=>{const r=Wr({},e,{el:i});t.push(new Is(r))}));return t}const n=this;n.__swiper__=true;n.support=un();n.device=dn({userAgent:e.userAgent});n.browser=vn();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(e.modules&&Array.isArray(e.modules)){n.modules.push(...e.modules)}const s={};n.modules.forEach((t=>{t({params:e,swiper:n,extendParams:js(e,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=Wr({},Os,s);n.params=Wr({},o,Ts,e);n.originalParams=Wr({},n.params);n.passedParams=Wr({},e);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}getSlideIndex(t){const{slidesEl:i,params:e}=this;const r=Jr(i,`.${e.slideClass}, swiper-slide`);const n=sn(r[0]);return sn(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter((i=>i.getAttribute("data-swiper-slide-index")*1===t))[0])}recalcSlides(){const t=this;const{slidesEl:i,params:e}=t;t.slides=Jr(i,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;if(t.enabled)return;t.enabled=true;if(t.params.grabCursor){t.setGrabCursor()}t.emit("enable")}disable(){const t=this;if(!t.enabled)return;t.enabled=false;if(t.params.grabCursor){t.unsetGrabCursor()}t.emit("disable")}setProgress(t,i){const e=this;t=Math.min(Math.max(t,0),1);const r=e.minTranslate();const n=e.maxTranslate();const s=(n-r)*t+r;e.translateTo(s,typeof i==="undefined"?0:i);e.updateActiveIndex();e.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter((i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0));t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;if(i.destroyed)return"";return t.className.split(" ").filter((t=>t.indexOf("swiper-slide")===0||t.indexOf(i.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach((e=>{const r=t.getSlideClasses(e);i.push({slideEl:e,classNames:r});t.emit("_slideClass",e,r)}));t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=false){const e=this;const{params:r,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:l}=e;let c=1;if(r.centeredSlides){let t=n[l]?n[l].swiperSlideSize:0;let i;for(let e=l+1;e<n.length;e+=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}for(let e=l-1;e>=0;e-=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}}else{if(t==="current"){for(let t=l+1;t<n.length;t+=1){const e=i?s[t]+o[t]-s[l]<a:s[t]-s[l]<a;if(e){c+=1}}}else{for(let t=l-1;t>=0;t-=1){const i=s[l]-s[t]<a;if(i){c+=1}}}}return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:e}=t;if(e.breakpoints){t.setBreakpoint()}[...t.el.querySelectorAll('[loading="lazy"]')].forEach((i=>{if(i.complete){Cn(t,i)}}));t.updateSize();t.updateSlides();t.updateProgress();t.updateSlidesClasses();function r(){const i=t.rtlTranslate?t.translate*-1:t.translate;const e=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(e);t.updateActiveIndex();t.updateSlidesClasses()}let n;if(e.freeMode&&e.freeMode.enabled&&!e.cssMode){r();if(e.autoHeight){t.updateAutoHeight()}}else{if((e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!e.centeredSlides){const i=t.virtual&&e.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(i.length-1,0,false,true)}else{n=t.slideTo(t.activeIndex,0,false,true)}if(!n){r()}}if(e.watchOverflow&&i!==t.snapGrid){t.checkOverflow()}t.emit("update")}changeDirection(t,i=true){const e=this;const r=e.params.direction;if(!t){t=r==="horizontal"?"vertical":"horizontal"}if(t===r||t!=="horizontal"&&t!=="vertical"){return e}e.el.classList.remove(`${e.params.containerModifierClass}${r}`);e.el.classList.add(`${e.params.containerModifierClass}${t}`);e.emitContainerClasses();e.params.direction=t;e.slides.forEach((i=>{if(t==="vertical"){i.style.width=""}else{i.style.height=""}}));e.emit("changeDirection");if(i)e.update();return e}changeLanguageDirection(t){const i=this;if(i.rtl&&t==="rtl"||!i.rtl&&t==="ltr")return;i.rtl=t==="rtl";i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl;if(i.rtl){i.el.classList.add(`${i.params.containerModifierClass}rtl`);i.el.dir="rtl"}else{i.el.classList.remove(`${i.params.containerModifierClass}rtl`);i.el.dir="ltr"}i.update()}mount(t){const i=this;if(i.mounted)return true;let e=t||i.params.el;if(typeof e==="string"){e=document.querySelector(e)}if(!e){return false}e.swiper=i;if(e.shadowEl){i.isElement=true}const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;const n=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=e.shadowRoot.querySelector(r());return t}return Jr(e,r())[0]};let s=n();if(!s&&i.params.createElements){s=Xr("div",i.params.wrapperClass);e.append(s);Jr(e,`.${i.params.slideClass}`).forEach((t=>{s.append(t)}))}Object.assign(i,{el:e,wrapperEl:s,slidesEl:i.isElement?e:s,mounted:true,rtl:e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||nn(e,"direction")==="rtl"),wrongRTL:nn(s,"display")==="-webkit-box"});return true}init(t){const i=this;if(i.initialized)return i;const e=i.mount(t);if(e===false)return i;i.emit("beforeInit");if(i.params.breakpoints){i.setBreakpoint()}i.addClasses();i.updateSize();i.updateSlides();if(i.params.watchOverflow){i.checkOverflow()}if(i.params.grabCursor&&i.enabled){i.setGrabCursor()}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,false,true)}else{i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,false,true)}if(i.params.loop){i.loopCreate()}i.attachEvents();[...i.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{if(t.complete){Cn(i,t)}else{t.addEventListener("load",(t=>{Cn(i,t.target)}))}}));Pn(i);i.initialized=true;Pn(i);i.emit("init");i.emit("afterInit");return i}destroy(t=true,i=true){const e=this;const{params:r,el:n,wrapperEl:s,slides:o}=e;if(typeof e.params==="undefined"||e.destroyed){return null}e.emit("beforeDestroy");e.initialized=false;e.detachEvents();if(r.loop){e.loopDestroy()}if(i){e.removeClasses();n.removeAttribute("style");s.removeAttribute("style");if(o&&o.length){o.forEach((t=>{t.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);t.removeAttribute("style");t.removeAttribute("data-swiper-slide-index")}))}}e.emit("destroy");Object.keys(e.eventsListeners).forEach((t=>{e.off(t)}));if(t!==false){e.el.swiper=null;Gr(e)}e.destroyed=true;return null}static extendDefaults(t){Wr(Ts,t)}static get extendedDefaults(){return Ts}static get defaults(){return Os}static installModule(t){if(!Is.prototype.__modules__)Is.prototype.__modules__=[];const i=Is.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}}static use(t){if(Array.isArray(t)){t.forEach((t=>Is.installModule(t)));return Is}Is.installModule(t);return Is}}Object.keys(Ss).forEach((t=>{Object.keys(Ss[t]).forEach((i=>{Is.prototype[i]=Ss[t][i]}))}));Is.use([wn,bn]);function Bs({swiper:t,extendParams:i,on:e,emit:r}){const n=Nr();const s=Yr();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function o(i){if(!t.enabled)return;const{rtlTranslate:e}=t;let o=i;if(o.originalEvent)o=o.originalEvent;const a=o.keyCode||o.charCode;const l=t.params.keyboard.pageUpDown;const c=l&&a===33;const h=l&&a===34;const u=a===37;const f=a===39;const p=a===38;const d=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&d||h)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c)){return false}if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey){return undefined}if(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||h||u||f||p||d)){let i=false;if(on(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&on(t.el,`.${t.params.slideActiveClass}`).length===0){return undefined}const r=t.el;const n=r.clientWidth;const o=r.clientHeight;const a=s.innerWidth;const l=s.innerHeight;const c=tn(r);if(e)c.left-=r.scrollLeft;const h=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+o],[c.left+n,c.top+o]];for(let t=0;t<h.length;t+=1){const e=h[t];if(e[0]>=0&&e[0]<=a&&e[1]>=0&&e[1]<=l){if(e[0]===0&&e[1]===0)continue;i=true}}if(!i)return undefined}if(t.isHorizontal()){if(c||h||u||f){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if((h||f)&&!e||(c||u)&&e)t.slideNext();if((c||u)&&!e||(h||f)&&e)t.slidePrev()}else{if(c||h||p||d){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if(h||d)t.slideNext();if(c||p)t.slidePrev()}r("keyPress",a);return undefined}function a(){if(t.keyboard.enabled)return;n.addEventListener("keydown",o);t.keyboard.enabled=true}function l(){if(!t.keyboard.enabled)return;n.removeEventListener("keydown",o);t.keyboard.enabled=false}e("init",(()=>{if(t.params.keyboard.enabled){a()}}));e("destroy",(()=>{if(t.keyboard.enabled){l()}}));Object.assign(t.keyboard,{enable:a,disable:l})}function Fs({swiper:t,extendParams:i,on:e,emit:r}){const n=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};let s;let o=Zr();let a;const l=[];function c(t){const i=10;const e=40;const r=800;let n=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}o=n*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=r;a*=r}}if(o&&!n){n=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:n,spinY:s,pixelX:o,pixelY:a}}function h(){if(!t.enabled)return;t.mouseEntered=true}function u(){if(!t.enabled)return;t.mouseEntered=false}function f(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&Zr()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&Zr()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",i.raw)}o=(new n.Date).getTime();return false}function p(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function d(i){let e=i;let n=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let h=t.el;if(t.params.mousewheel.eventsTarget!=="container"){h=document.querySelector(t.params.mousewheel.eventsTarget)}const u=h&&h.contains(e.target);if(!t.mouseEntered&&!u&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let d=0;const m=t.rtlTranslate?-1:1;const g=c(e);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;let v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();n=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(n&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:Zr(),delta:Math.abs(d),direction:Math.sign(d),raw:i};if(l.length>=2){l.shift()}const e=l.length?l[l.length-1]:undefined;l.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){f(t)}}else{f(t)}if(p(t)){return true}}else{const i={time:Zr(),delta:Math.abs(d),direction:Math.sign(d)};const n=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!n){a=undefined;let c=t.getTranslate()+d*o.sensitivity;const h=t.isBeginning;const u=t.isEnd;if(c>=t.minTranslate())c=t.minTranslate();if(c<=t.maxTranslate())c=t.maxTranslate();t.setTransition(0);t.setTranslate(c);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!h&&t.isBeginning||!u&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}const e=l.length?l[l.length-1]:undefined;const r=l[0];l.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){l.splice(0)}else if(l.length>=15&&i.time-r.time<500&&r.delta-i.delta>=1&&i.delta<=6){const e=d>0?.8:.2;a=i;l.splice(0);s=$r((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=$r((()=>{const e=.5;a=i;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!n)r("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(c===t.minTranslate()||c===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function m(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",h);e[i]("mouseleave",u);e[i]("wheel",d)}function g(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",d);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function v(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,d);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){v()}if(t.params.mousewheel.enabled)g()}));e("destroy",(()=>{if(t.params.cssMode){g()}if(t.mousewheel.enabled)v()}));Object.assign(t.mousewheel,{enable:g,disable:v})}function Rs(t,i,e,r){if(t.params.createElements){Object.keys(r).forEach((n=>{if(!e[n]&&e.auto===true){let s=Jr(t.el,`.${r[n]}`)[0];if(!s){s=Xr("div",r[n]);s.className=r[n];t.el.append(s)}e[n]=s;i[n]=s}}))}return e}function Ns({swiper:t,extendParams:i,on:e,emit:r}){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};const n=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function s(i){let e;if(i&&typeof i==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i);if(e)return e}if(i){if(typeof i==="string")e=[...document.querySelectorAll(i)];if(t.params.uniqueNavElements&&typeof i==="string"&&e.length>1&&t.el.querySelectorAll(i).length===1){e=t.el.querySelector(i)}}if(i&&!e)return i;return e}function o(i,e){const r=t.params.navigation;i=n(i);i.forEach((i=>{if(i){i.classList[e?"add":"remove"](...r.disabledClass.split(" "));if(i.tagName==="BUTTON")i.disabled=e;if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function a(){const{nextEl:i,prevEl:e}=t.navigation;if(t.params.loop){o(e,false);o(i,false);return}o(e,t.isBeginning&&!t.params.rewind);o(i,t.isEnd&&!t.params.rewind)}function l(i){i.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();r("navigationPrev")}function c(i){i.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();r("navigationNext")}function h(){const i=t.params.navigation;t.params.navigation=Rs(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(i.nextEl||i.prevEl))return;let e=s(i.nextEl);let r=s(i.prevEl);Object.assign(t.navigation,{nextEl:e,prevEl:r});e=n(e);r=n(r);const o=(e,r)=>{if(e){e.addEventListener("click",r==="next"?c:l)}if(!t.enabled&&e){e.classList.add(...i.lockClass.split(" "))}};e.forEach((t=>o(t,"next")));r.forEach((t=>o(t,"prev")))}function u(){let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);const r=(i,e)=>{i.removeEventListener("click",e==="next"?c:l);i.classList.remove(...t.params.navigation.disabledClass.split(" "))};i.forEach((t=>r(t,"next")));e.forEach((t=>r(t,"prev")))}e("init",(()=>{if(t.params.navigation.enabled===false){p()}else{h();a()}}));e("toEdge fromEdge lock unlock",(()=>{a()}));e("destroy",(()=>{u()}));e("enable disable",(()=>{let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);[...i,...e].filter((t=>!!t)).forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)))}));e("click",((i,e)=>{let{nextEl:s,prevEl:o}=t.navigation;s=n(s);o=n(o);const a=e.target;if(t.params.navigation.hideOnClick&&!o.includes(a)&&!s.includes(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let i;if(s.length){i=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(o.length){i=o[0].classList.contains(t.params.navigation.hiddenClass)}if(i===true){r("navigationShow")}else{r("navigationHide")}[...s,...o].filter((t=>!!t)).forEach((i=>i.classList.toggle(t.params.navigation.hiddenClass)))}}));const f=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" "));h();a()};const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" "));u()};Object.assign(t.navigation,{enable:f,disable:p,update:a,init:h,destroy:u})}function Ds(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ys({swiper:t,extendParams:i,on:e,emit:r}){const n="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:t=>t,formatFractionTotal:t=>t,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}});t.pagination={el:null,bullets:[]};let s;let o=0;const a=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(i,e){const{bulletActiveClass:r}=t.params.pagination;if(!i)return;i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}`);i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}-${e}`)}}}function h(i){const e=i.target.closest(Ds(t.params.pagination.bulletClass));if(!e){return}i.preventDefault();const r=sn(e)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const i=t.getSlideIndexByData(r);const e=t.getSlideIndexByData(t.realIndex);if(i>t.slides.length-t.loopedSlides){t.loopFix({direction:i>e?"next":"prev",activeSlideIndex:i,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function u(){const i=t.rtl;const e=t.params.pagination;if(l())return;let n=t.pagination.el;n=a(n);let h;let u;const f=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;const p=t.params.loop?Math.ceil(f/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){u=t.previousRealIndex||0;h=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){h=t.snapIndex;u=t.previousSnapIndex}else{u=t.previousIndex||0;h=t.activeIndex||0}if(e.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let a;let l;let f;if(e.dynamicBullets){s=ln(r[0],t.isHorizontal()?"width":"height",true);n.forEach((i=>{i.style[t.isHorizontal()?"width":"height"]=`${s*(e.dynamicMainBullets+4)}px`}));if(e.dynamicMainBullets>1&&u!==undefined){o+=h-(u||0);if(o>e.dynamicMainBullets-1){o=e.dynamicMainBullets-1}else if(o<0){o=0}}a=Math.max(h-o,0);l=a+(Math.min(r.length,e.dynamicMainBullets)-1);f=(l+a)/2}r.forEach((t=>{const i=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${e.bulletActiveClass}${t}`))].map((t=>typeof t==="string"&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...i)}));if(n.length>1){r.forEach((i=>{const r=sn(i);if(r===h){i.classList.add(...e.bulletActiveClass.split(" "))}else if(t.isElement){i.setAttribute("part","bullet")}if(e.dynamicBullets){if(r>=a&&r<=l){i.classList.add(...`${e.bulletActiveClass}-main`.split(" "))}if(r===a){c(i,"prev")}if(r===l){c(i,"next")}}}))}else{const i=r[h];if(i){i.classList.add(...e.bulletActiveClass.split(" "))}if(t.isElement){r.forEach(((t,i)=>{t.setAttribute("part",i===h?"bullet-active":"bullet")}))}if(e.dynamicBullets){const t=r[a];const i=r[l];for(let n=a;n<=l;n+=1){if(r[n]){r[n].classList.add(...`${e.bulletActiveClass}-main`.split(" "))}}c(t,"prev");c(i,"next")}}if(e.dynamicBullets){const n=Math.min(r.length,e.dynamicMainBullets+4);const o=(s*n-s)/2-f*s;const a=i?"right":"left";r.forEach((i=>{i.style[t.isHorizontal()?a:"top"]=`${o}px`}))}}n.forEach(((i,n)=>{if(e.type==="fraction"){i.querySelectorAll(Ds(e.currentClass)).forEach((t=>{t.textContent=e.formatFractionCurrent(h+1)}));i.querySelectorAll(Ds(e.totalClass)).forEach((t=>{t.textContent=e.formatFractionTotal(p)}))}if(e.type==="progressbar"){let r;if(e.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}const n=(h+1)/p;let s=1;let o=1;if(r==="horizontal"){s=n}else{o=n}i.querySelectorAll(Ds(e.progressbarFillClass)).forEach((i=>{i.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`;i.style.transitionDuration=`${t.params.speed}ms`}))}if(e.type==="custom"&&e.renderCustom){i.innerHTML=e.renderCustom(t,h+1,p);if(n===0)r("paginationRender",i)}else{if(n===0)r("paginationRender",i);r("paginationUpdate",i)}if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](e.lockClass)}}))}function f(){const i=t.params.pagination;if(l())return;const e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let n=t.pagination.el;n=a(n);let s="";if(i.type==="bullets"){let r=t.params.loop?Math.ceil(e/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&r>e){r=e}for(let e=0;e<r;e+=1){if(i.renderBullet){s+=i.renderBullet.call(t,e,i.bulletClass)}else{s+=`<${i.bulletElement} ${t.isElement?'part="bullet"':""} class="${i.bulletClass}"></${i.bulletElement}>`}}}if(i.type==="fraction"){if(i.renderFraction){s=i.renderFraction.call(t,i.currentClass,i.totalClass)}else{s=`<span class="${i.currentClass}"></span>`+" / "+`<span class="${i.totalClass}"></span>`}}if(i.type==="progressbar"){if(i.renderProgressbar){s=i.renderProgressbar.call(t,i.progressbarFillClass)}else{s=`<span class="${i.progressbarFillClass}"></span>`}}t.pagination.bullets=[];n.forEach((e=>{if(i.type!=="custom"){e.innerHTML=s||""}if(i.type==="bullets"){t.pagination.bullets.push(...e.querySelectorAll(Ds(i.bulletClass)))}}));if(i.type!=="custom"){r("paginationRender",n[0])}}function p(){t.params.pagination=Rs(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const i=t.params.pagination;if(!i.el)return;let e;if(typeof i.el==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i.el)}if(!e&&typeof i.el==="string"){e=[...document.querySelectorAll(i.el)]}if(!e){e=i.el}if(!e||e.length===0)return;if(t.params.uniqueNavElements&&typeof i.el==="string"&&Array.isArray(e)&&e.length>1){e=[...t.el.querySelectorAll(i.el)];if(e.length>1){e=e.filter((i=>{if(on(i,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(e)&&e.length===1)e=e[0];Object.assign(t.pagination,{el:e});e=a(e);e.forEach((e=>{if(i.type==="bullets"&&i.clickable){e.classList.add(i.clickableClass)}e.classList.add(i.modifierClass+i.type);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.type==="bullets"&&i.dynamicBullets){e.classList.add(`${i.modifierClass}${i.type}-dynamic`);o=0;if(i.dynamicMainBullets<1){i.dynamicMainBullets=1}}if(i.type==="progressbar"&&i.progressbarOpposite){e.classList.add(i.progressbarOppositeClass)}if(i.clickable){e.addEventListener("click",h)}if(!t.enabled){e.classList.add(i.lockClass)}}))}function d(){const i=t.params.pagination;if(l())return;let e=t.pagination.el;if(e){e=a(e);e.forEach((e=>{e.classList.remove(i.hiddenClass);e.classList.remove(i.modifierClass+i.type);e.classList.remove(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.clickable){e.removeEventListener("click",h)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((t=>t.classList.remove(...i.bulletActiveClass.split(" "))))}e("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const i=t.params.pagination;let{el:e}=t.pagination;e=a(e);e.forEach((e=>{e.classList.remove(i.horizontalClass,i.verticalClass);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass)}))}));e("init",(()=>{if(t.params.pagination.enabled===false){g()}else{p();f();u()}}));e("activeIndexChange",(()=>{if(typeof t.snapIndex==="undefined"){u()}}));e("snapIndexChange",(()=>{u()}));e("snapGridLengthChange",(()=>{f();u()}));e("destroy",(()=>{d()}));e("enable disable",(()=>{let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}}));e("lock unlock",(()=>{u()}));e("click",((i,e)=>{const n=e.target;let{el:s}=t.pagination;if(!Array.isArray(s))s=[s].filter((t=>!!t));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const i=s[0].classList.contains(t.params.pagination.hiddenClass);if(i===true){r("paginationShow")}else{r("paginationHide")}s.forEach((i=>i.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.remove(t.params.pagination.paginationDisabledClass)))}p();f();u()};const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.add(t.params.pagination.paginationDisabledClass)))}d()};Object.assign(t.pagination,{enable:m,disable:g,render:f,update:u,init:p,destroy:d})}function Gs({swiper:t,extendParams:i,emit:e,once:r}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function n(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);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;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:Zr()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:n,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:l}=t;const c=Zr();const h=c-l.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(n.freeMode.momentum){if(l.velocities.length>1){const i=l.velocities.pop();const e=l.velocities.pop();const r=i.position-e.position;const s=i.time-e.time;t.velocity=r/s;t.velocity/=2;if(Math.abs(t.velocity)<n.freeMode.minimumVelocity){t.velocity=0}if(s>150||Zr()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=n.freeMode.momentumVelocityRatio;l.velocities.length=0;let i=1e3*n.freeMode.momentumRatio;const c=t.velocity*i;let h=t.translate+c;if(o)h=-h;let u=false;let f;const p=Math.abs(t.velocity)*20*n.freeMode.momentumBounceRatio;let d;if(h<t.maxTranslate()){if(n.freeMode.momentumBounce){if(h+t.maxTranslate()<-p){h=t.maxTranslate()-p}f=t.maxTranslate();u=true;l.allowMomentumBounce=true}else{h=t.maxTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(h>t.minTranslate()){if(n.freeMode.momentumBounce){if(h-t.minTranslate()>p){h=t.minTranslate()+p}f=t.minTranslate();u=true;l.allowMomentumBounce=true}else{h=t.minTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(n.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-h){i=t;break}}if(Math.abs(a[i]-h)<Math.abs(a[i-1]-h)||t.swipeDirection==="next"){h=a[i]}else{h=a[i-1]}h=-h}if(d){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-h-t.translate)/t.velocity)}else{i=Math.abs((h-t.translate)/t.velocity)}if(n.freeMode.sticky){const e=Math.abs((o?-h:h)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(e<r){i=n.speed}else if(e<2*r){i=n.speed*1.5}else{i=n.speed*2.5}}}else if(n.freeMode.sticky){t.slideToClosest();return}if(n.freeMode.momentumBounce&&u){t.updateProgress(f);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);t.animating=true;an(s,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;e("momentumBounce");t.setTransition(n.speed);setTimeout((()=>{t.setTranslate(f);an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(h);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;an(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(h)}t.updateActiveIndex();t.updateSlidesClasses()}else if(n.freeMode.sticky){t.slideToClosest();return}else if(n.freeMode){e("_freeModeNoMomentumRelease")}if(!n.freeMode.momentum||h>=n.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:n,onTouchMove:s,onTouchEnd:o}})}const $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-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}';const Zs=class{constructor(t){e(this,t);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}componentDidLoad(){this.swiperPoi=new Is(this.swiperPoiRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperPoi.keyboard.enable()}else{this.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}handlePoiDescription(){this.displayShortDescription=!this.displayShortDescription}handleFullscreen(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}}render(){var t;const i=a(`${""}assets/default-image.svg`);return r(n,null,r("div",{class:"poi-type-img-container"},r("img",{crossorigin:"anonymous",class:"poi-type",src:`${(t=w.poiTypes.find((t=>t.id===this.poi.type)))===null||t===void 0?void 0:t.pictogram}`}),r("div",{class:"swiper",ref:t=>this.swiperPoiRef=t},r("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`poi-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElPoiRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElPoiRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElPoiRef=t}))),r("div",{class:"poi-sub-container"},r("div",{class:"poi-name"},this.poi.name),r("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:t=>this.descriptionRef=t}),this.showPoiDescriptionButton&&r("div",{class:"handle-poi-description",onClick:()=>this.handlePoiDescription()},this.displayShortDescription?l[w.language].readMore:l[w.language].readLess)))}};Zs.style=$s;const Hs='.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}';const Us=class{constructor(t){e(this,t);this.fontFamily="Roboto"}onSearchChange(t){w.searchValue=t.target.value;if(w.mode==="treks"){w.currentTreks=T()}else if(w.mode==="touristicContents"){w.currentTouristicContents=I()}else if(w.mode==="touristicEvents"){w.currentTouristicEvents=B()}}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),r("input",{onInput:t=>this.onSearchChange(t),class:"search-input",type:"search",placeholder:"Rechercher",value:w.searchValue}))}};Us.style=Hs;const Qs=".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)}";const Vs=class{constructor(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}changeMode(t){w.searchValue="";if(t==="treks"&&w.currentTreks){O.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=T()}else if(t==="touristicContents"&&w.currentTouristicContents){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=I()}else if(t==="touristicEvents"&&w.currentTouristicEvents){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=B()}w.mode=t}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"segmented-buttons-container"},this.treks&&r("label",{class:`segment${w.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},l[w.language].home.segment.treks),this.touristicContents&&r("label",{class:`segment${w.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},l[w.language].home.segment.touristicContents),this.touristicEvents&&r("label",{class:`segment${w.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},l[w.language].home.segment.touristicEvents)))}};Vs.style=Qs;const Ws='.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}';const Ks=class{constructor(t){e(this,t)}handleSelect(t){w.treks=null;w.currentTreks=null;w.currentTrek=null;w.language=t.target.value}render(){return r(n,null,r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),r("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},w.languages.map((t=>r("option",{selected:t===w.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};Ks.style=Ws;const qs=":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}";const Js=class{constructor(t){e(this,t);this.sensitiveArea=undefined}render(){return r(n,null,r("div",{class:"sensitive-area-title"},this.sensitiveArea.name),r("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&r("div",{class:"sensitive-area-practice-container"},r("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés :"),r("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map(((t,i)=>{const e=w.practices.find((i=>i.id===t));if(e){return r("div",{innerHTML:`${e.name.toUpperCase()}${i+1!==this.sensitiveArea.practices.length?" -&nbsp;":""}`})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&r("div",{class:"sensitive-area-period-container"},r("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),r("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map(((t,i)=>{if(t){return r("div",{innerHTML:`${new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()}${this.sensitiveArea.period.slice(i+1).find((t=>t))?" -&nbsp;":""}`})}})))),r("div",{class:"sensitive-area-contact-container"},r("div",{class:"sensitive-area-contact-title"},"Contact"),r("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))}};Js.style=qs;const Xs='@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)}';const to=class{constructor(t){e(this,t);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=o(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=o(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Is(this.swiperTouristicContentRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicContent.keyboard.enable()}else{this.swiperTouristicContent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)}handleMouseLeave(){this.cardTouristicContentMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories.find((t=>t.id===this.touristicContent.category));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-content-card-large-view-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-content-card-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicContentCardPress.emit(this.touristicContent.id)}}},r("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicContentRef=t},r("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?this.touristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-content-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicContentRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicContentRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicContentRef=t})):this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicContent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-content-sub-container"},r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&r("div",{class:"touristic-content-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicContentCardPress.emit(this.touristicContent.id)},"Plus de détails"))))}};to.style=Xs;const io='@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}';const eo=class{constructor(t){e(this,t);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}componentDidLoad(){if(this.swiperImagesRef){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}handleFullscreen(){if(w.currentTouristicContent.attachments&&w.currentTouristicContent.attachments[0]&&w.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories&&w.currentTouristicContent&&w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category));const e=w.currentTouristicContent&&w.currentTouristicContent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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"}},w.currentTouristicContent&&r("div",{class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicContent.attachments.length>0?w.currentTouristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"name"},w.currentTouristicContent.name),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicContent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicContent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicContent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicContent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicContent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicContent.practical_info}))),(w.currentTouristicContent.contact||w.currentTouristicContent.email||w.currentTouristicContent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicContent.contact&&r("div",{innerHTML:w.currentTouristicContent.contact}),w.currentTouristicContent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicContent.email})),w.currentTouristicContent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicContent.website})))),r("div",{class:"detail-bottom-space"})))}};eo.style=io;const ro=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContent()}handleTouristicContent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristiccontent/${this.touristicContentId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicContentCategories=i.results}w.currentTouristicContent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const no='.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}';const so=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}b("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}}));b("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...w.touristicContentsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<w.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=w.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=w.touristicContentsWithinBounds.length?w.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicContentsWithinBounds&&r("div",{class:"current-touristic-contents-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>r("grw-touristic-content-card",{fontFamily:this.fontFamily,"reset-store-on-disconnected":"false",key:`touristic-content-${t.id}`,touristicContent:t,"is-large-view":this.isLargeView,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};so.style=no;const oo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${w.api}touristiccontent/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts&page_size=999`;const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicContentCategories=e.results}w.touristicContents=r.results;w.currentTouristicContents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const ao='@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}';const lo=class{constructor(t){e(this,t);this.touristicEventCardPress=o(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=o(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=o(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Is(this.swiperTouristicEventRef,{modules:[Ns,Ys,Bs],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicEvent.keyboard.enable()}else{this.swiperTouristicEvent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)}handleMouseLeave(){this.cardTouristicEventMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes.find((t=>t.id===this.touristicEvent.type));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-event-card-large-view-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-event-card-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicEventCardPress.emit(this.touristicEvent.id)}}},r("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicEventRef=t},r("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-event-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicEventRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicEventRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicEventRef=t})):this.touristicEvent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicEvent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-event-sub-container"},r("div",{class:"touristic-event-type-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-type-name"},i.type)),r("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&r("div",{class:"touristic-event-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicEventCardPress.emit(this.touristicEvent.id)},"Plus de détails"))))}};lo.style=ao;const co='@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}';const ho=class{constructor(t){e(this,t);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}componentDidLoad(){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}handleFullscreen(){if(w.currentTouristicEvent.attachments&&w.currentTouristicEvent.attachments[0]&&w.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes&&w.currentTouristicEvent&&w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type));const e=w.currentTouristicEvent&&w.currentTouristicEvent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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"}},w.currentTouristicEvent&&r("div",{class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicEvent.attachments.length>0?w.currentTouristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-event-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-category-name"},i.type)),r("div",{class:"name"},w.currentTouristicEvent.name),(w.currentTouristicEvent.begin_date||w.currentTouristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},w.currentTouristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",w.currentTouristicEvent.end_date)),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicEvent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicEvent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicEvent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicEvent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicEvent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicEvent.practical_info}))),(w.currentTouristicEvent.contact||w.currentTouristicEvent.email||w.currentTouristicEvent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicEvent.contact&&r("div",{innerHTML:w.currentTouristicEvent.contact}),w.currentTouristicEvent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicEvent.email})),w.currentTouristicEvent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicEvent.website})))),r("div",{class:"detail-bottom-space"})))}};ho.style=co;const uo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvent()}handleTouristicEvent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristicevent/${this.touristicEventId}/?language=${w.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)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicEventTypes=i.results}w.currentTouristicEvent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const fo='.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}';const po=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicEvents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}b("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}}));b("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...w.touristicEventsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<w.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=w.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=w.touristicEventsWithinBounds.length?w.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicEventsWithinBounds&&r("div",{class:"current-touristic-events-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>r("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:`touristic-event-${t.id}`,touristicEvent:t,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};po.style=fo;const mo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${w.api}touristicevent/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999`;const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicEventTypes=e.results}w.touristicEvents=r.results;w.currentTouristicEvents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const go='.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}';const vo=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.cardTrekMouseOver=o(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=o(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}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.departureCity=w.cities.find((t=>t.id===this.currentTrek.departure_city))}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=this.currentTrek.difficulty&&w.difficulties?w.difficulties.find((t=>t.id===this.currentTrek.difficulty)):null;this.route=this.currentTrek.route&&w.routes?w.routes.find((t=>t.id===this.currentTrek.route)):null;this.practice=this.currentTrek.practice&&w.practices?w.practices.find((t=>t.id===this.currentTrek.practice)):null;this.themes=this.currentTrek.themes&&w.themes?w.themes.filter((t=>this.currentTrek.themes.includes(t.id))):null;this.departureCity=this.currentTrek.departure_city&&w.cities?w.cities.find((t=>t.id===this.currentTrek.departure_city)):null}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleMouseOver(){this.cardTrekMouseOver.emit(this.currentTrek.id)}handleMouseLeave(){this.cardTrekMouseLeave.emit()}render(){var t,i,e,s,o,a,l;return r(n,{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&&r("div",{class:this.isStep?`trek-card-container trek-step-card${w.selectedStepId===this.currentTrek.id?" selected-trek-card":""}`:this.isLargeView?`trek-card-large-view-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`:`trek-card-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`,onClick:()=>this.trekCardPress.emit(this.currentTrek.id)},this.currentTrek.attachments.filter((t=>t.type==="image")).length>0&&r("img",{crossorigin:"anonymous",class:"image",src:`${this.currentTrek.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}),r("div",{class:"sub-container"},this.departureCity&&r("div",{class:"departure"},this.departureCity.name),r("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C(this.currentTrek.duration))),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent))),!this.isStep&&r("div",{class:"row"},r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(l=this.practice)===null||l===void 0?void 0:l.name))))))}};vo.style=go;const 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{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}';const bo=1;const yo={visible:true,indicator:false,ref:"presentationOptionRef"};const xo={visible:false,indicator:false,ref:"stepsOptionRef"};const ko={visible:false,indicator:false,ref:"descriptionOptionRef"};const Ao={visible:false,indicator:false,ref:"recommendationsOptionRef"};const _o={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Mo={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const zo={visible:false,indicator:false,ref:"poisOptionRef"};const Lo={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Co={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const Eo={presentation:yo,steps:xo,description:ko,recommendations:Ao,sensitiveArea:_o,informationPlaces:Mo,pois:zo,touristicContents:Lo,touristicEvents:Co};const Po=class{constructor(t){e(this,t);this.descriptionIsInViewport=o(this,"descriptionIsInViewport",7);this.parkingIsInViewport=o(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=o(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=o(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=o(this,"poiIsInViewport",7);this.stepsIsInViewport=o(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=o(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=o(this,"touristicEventsIsInViewport",7);this.parentTrekPress=o(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}componentDidLoad(){this.swiperImages=new Is(this.swiperImagesRef,{modules:[Ns,Ys,Bs,Gs,Fs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperStep=new Is(this.swiperStepRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Is(this.swiperPoisRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Is(this.swiperInformationDesksRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Is(this.swiperTouristicContentsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Is(this.swiperTouristicEventsRef,{modules:[Gs,Fs],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.presentationRef)}if(this.stepsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.stepsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.stepsRef)}if(this.descriptionRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.descriptionIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.descriptionRef)}if(this.recommendationRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.recommendationRef)}if(this.parkingRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.parkingIsInViewport.emit(i)}),{threshold:bo});t.observe(this.parkingRef)}if(this.sensitiveAreaRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.informationPlacesRef)}if(this.poiRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.poiIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.poiRef)}if(this.touristicContentsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}if(this.touristicEventsRef){const t=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:bo});t.observe(this.touristicContentsRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:w.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=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.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=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleOptions(){return Object.assign(Object.assign({},Eo),{presentation:Object.assign({},yo),steps:Object.assign(Object.assign({},xo),{visible:Boolean(w.parentTrek)}),description:Object.assign(Object.assign({},ko),{visible:Boolean(this.currentTrek.description)}),recommendations:Object.assign(Object.assign({},Ao),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},_o),{visible:Boolean(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Mo),{visible:Boolean(w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),pois:Object.assign(Object.assign({},zo),{visible:Boolean(w.currentPois&&w.currentPois.length>0)}),touristicContents:Object.assign(Object.assign({},Lo),{visible:Boolean(w.trekTouristicContents&&w.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Co),{visible:Boolean(w.touristicEvents&&w.touristicEvents.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t;let i=0;let e=0;let r=0;const n=Object.values(this.options);let s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){i+=1;e+=this[n[s].ref].clientWidth}}s++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${e+16*i-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:t.ref}}}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}render(){var t,i,e,s,o,a,c;return r(n,{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&&r("div",{class:"trek-options"},r("a",{ref:t=>this.presentationOptionRef=t,onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`},l[w.language].options.presentation),this.options.steps.visible&&r("a",{ref:t=>this.stepsOptionRef=t,onClick:()=>this.handleScrollTo(this.stepsRef),class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`},l[w.language].options.steps),this.options.description.visible&&r("a",{ref:t=>this.descriptionOptionRef=t,onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`},l[w.language].options.description),this.options.recommendations.visible&&r("a",{ref:t=>this.recommendationsOptionRef=t,onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`},l[w.language].options.recommendations),this.options.sensitiveArea.visible&&r("a",{ref:t=>this.sensitiveAreaOptionRef=t,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`},l[w.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&r("a",{ref:t=>this.informationPlacesOptionRef=t,onClick:()=>this.handleScrollTo(this.informationPlacesRef),class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`},l[w.language].options.informationPlaces),this.options.pois.visible&&r("a",{ref:t=>this.poisOptionRef=t,onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`},l[w.language].options.pois),this.options.touristicContents.visible&&r("a",{ref:t=>this.touristicContentsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicContentsRef),class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicContents),this.options.touristicEvents.visible&&r("a",{ref:t=>this.touristicEventsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicEventsRef),class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicEvents),this.presentationOptionRef&&r("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&r("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"sub-container"},r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C((e=this.currentTrek)===null||e===void 0?void 0:e.duration)),r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route)),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent)),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name)),this.currentTrek.ratings.map((t=>r("div",{class:"row"},`${w.ratingsScale.find((i=>i.id===w.ratings.find((i=>i.id===t)).scale)).name} : ${w.ratings.find((i=>i.id===t)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&r("div",{class:"row"},this.currentTrek.ratings_description))),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].downloads),r("div",{class:"links-container"},r("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),r("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),r("a",{href:`${this.currentTrek.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),r("div",{class:"divider"}),this.currentTrek.description_teaser&&r("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&r("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),w.parentTrekId&&w.parentTrek&&this.currentTrek.id!==w.parentTrekId&&r("div",null,r("div",{class:"divider"}),r("div",{class:"parent-trek-container"},r("button",{class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(w.parentTrekId)},r("div",null,"<"),w.parentTrek.name))),w.currentTrekSteps&&r("div",{class:"step-container"},r("div",{class:"step-title",ref:t=>this.stepsRef=t},`${w.currentTrekSteps.length} ${l[w.language].steps}`),r("div",{class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},r("div",{class:"swiper-wrapper"},w.currentTrekSteps&&w.currentTrekSteps.map((t=>r("div",{class:"swiper-slide"},r("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"is-large-view":false,"is-step":true,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}))))))),r("div",{class:"divider"}),this.currentTrek.description&&r("div",{class:"description-container"},r("div",{class:"description-title",ref:t=>this.descriptionRef=t},l[w.language].description),r("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&r("div",{class:"departure-container"},r("div",{class:"departure-title"},l[w.language].departure," : "),r("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&r("div",{class:"arrival-container"},r("div",{class:"arrival-title"},l[w.language].arrival," : "),r("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].crossedCities," : "),r("div",{innerHTML:this.cities.join(", ")})),this.weather&&this.currentTrek.departure_city&&r("div",{class:"weather-container"},r("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`})),this.currentTrek.access&&r("div",null,r("div",{class:"divider"}),r("div",{class:"access-container"},r("div",{class:"access-title"},l[w.language].roadAccess),r("div",{class:"access",innerHTML:this.currentTrek.access}))),this.currentTrek.public_transport&&r("div",null,r("div",{class:"divider"}),r("div",{class:"public-transport-container"},r("div",{class:"public-transport-title"},l[w.language].transport),r("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.labels.length>0)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advice-container"},r("div",{class:"advice-title",ref:t=>this.recommendationRef=t},l[w.language].recommendations),this.currentTrek.advice&&r("div",{class:"current-advice-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),r("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.labels.map((t=>r("div",{class:"label-container"},r("div",{class:"label-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{class:"label-name",innerHTML:t.name})),r("div",{class:"label-advice",innerHTML:t.advice})))))),this.currentTrek.advised_parking&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advised-parking-container"},r("div",{class:"advised-parking-title",ref:t=>this.parkingRef=t},l[w.language].recommendedParking),r("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking}))),this.currentTrek.gear&&r("div",null,r("div",{class:"divider"}),r("div",{class:"gear-container"},r("div",{class:"gear-title"},l[w.language].equipments),r("div",{class:"gear",innerHTML:this.currentTrek.gear}))),w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"sensitive-areas-container"},r("div",{class:"sensitive-areas-title",ref:t=>this.sensitiveAreaRef=t},l[w.language].environmentalSensitiveAreas),w.currentSensitiveAreas.map((t=>r("grw-sensitive-area-detail",{sensitiveArea:t}))))),w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"information-desks-container"},r("div",{class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[w.language].informationPlaces),r("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},r("div",{class:"swiper-wrapper"},w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>r("div",{class:"swiper-slide"},r("grw-information-desk",{informationDesk:t})))))))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"accessibilities-container"},r("div",{class:"accessibilities-title"},l[w.language].accessibility),this.currentTrek.disabled_infrastructure&&r("div",{innerHTML:this.currentTrek.disabled_infrastructure}),r("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>r("div",{class:"accessibility-content-container"},r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{innerHTML:t.name}))))),this.currentTrek.accessibility_level&&r("div",{class:"accessibility-level-container"},r("div",{class:"accessibility-level-title"},l[w.language].accessibilityLevel),r("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&r("div",{class:"accessibility-slope-container"},r("div",{class:"accessibility-slope-title"},l[w.language].accessibilitySlope),r("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&r("div",{class:"accessibility-width-container"},r("div",{class:"accessibility-width-title"},l[w.language].accessibilityWidth),r("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&r("div",{class:"accessibility-signage-container"},r("div",{class:"accessibility-signage-title"},l[w.language].accessibilitySignage),r("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&r("div",{class:"accessibility-covering-container"},r("div",{class:"accessibility-covering-title"},l[w.language].accessibilityCovering),r("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&r("div",{class:"accessibility-exposure-container"},r("div",{class:"accessibility-exposure-title"},l[w.language].accessibilityExposure),r("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&r("div",{class:"accessibility-advice-container"},r("div",{class:"accessibility-advice-title"},l[w.language].accessibilityAdvices),r("div",{innerHTML:this.currentTrek.accessibility_advice})))),w.currentPois&&w.currentPois.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"pois-container"},r("div",{class:"pois-title",ref:t=>this.poiRef=t},l[w.language].pois(w.currentPois.length)),r("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},r("div",{class:"swiper-wrapper"},w.currentPois.map((t=>r("div",{class:"swiper-slide"},r("grw-poi",{poi:t})))))))),w.trekTouristicContents&&w.trekTouristicContents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-content-container"},r("div",{class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[w.language].touristicContents(w.trekTouristicContents.length)),r("div",{class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},r("div",{class:"swiper-wrapper"},w.trekTouristicContents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-content-card",{fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true})))))))),w.touristicEvents&&w.touristicEvents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-event-container"},r("div",{class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[w.language].touristicEvents(w.touristicEvents.length)),r("div",{class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},r("div",{class:"swiper-wrapper"},w.touristicEvents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-event-card",{fontFamily:this.fontFamily,touristicEvent:t})))))))),this.currentTrek.source&&this.currentTrek.source.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"source-container"},r("div",{class:"source-title"},l[w.language].sources),this.sources.map((t=>r("div",{class:"source-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",null,r("div",{class:"source-name",innerHTML:t.name}),r("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),r("div",{class:"detail-bottom-space"})))}};Po.style=wo;const Oo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!w.difficulties?fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.routes?fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!w.practices?fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.themes?fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.accessibilities?fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_rating/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_ratingscale/?language=${w.language}&fields=id,name`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${w.language}&published=true&trek=${this.trekId}&fields=id,geometry,name,description,contact,info_url,period,practices`,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${w.api}label/?language=${w.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${w.api}source/?language=${w.language}&fields=id,name,website,pictogram`,this.init),fetch(`${w.api}trek_accessibility_level/?language=${w.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${w.api}poi/?language=${w.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}poi_type/?language=${w.language}&fields=id,pictogram`,this.init),fetch(`${w.api}informationdesk/?language=${w.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${w.api}touristiccontent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`,this.init),fetch(`${w.api}touristiccontent_category/?language=${w.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${w.api}touristicevent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}touristicevent_type/?language=${w.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${w.api}trek/${this.trekId}/?language=${w.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)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,i,e,r,n,s,o,a,l,c,h,u,f,p,d,m,g,v,b,y])=>{w.trekNetworkError=false;if(y.children.length>0||w.parentTrekId){const t=[];if(y.children.length>0){w.parentTrekId=y.id;w.parentTrek=y;t.push(...y.children)}else{const i=await fetch(`${w.api}trek/${w.parentTrekId}/?language=${w.language}&published=true&fields=name,children`).then((t=>t.json()));w.parentTrek=i;t.push(...i.children)}const i=[];t.forEach((t=>{i.push(fetch(`${w.api}trek/${t}/?language=${w.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`))}));w.currentTrekSteps=await Promise.all([...i]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){w.difficulties=t.results}if(i){w.routes=i.results}if(e){w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){w.themes=r.results}if(n){w.cities=n.results}if(s){w.accessibilities=s.results}if(o){w.ratings=o.results}if(a){w.ratingsScale=a.results}if(l){w.currentSensitiveAreas=l.results}w.labels=c.results;w.sources=h.results;if(u){w.accessibilitiesLevel=u.results}if(m){w.trekTouristicContents=m.results}if(g){w.touristicContentCategories=g.results}if(v){w.touristicEvents=v.results}if(b){w.touristicEventTypes=b.results}w.currentPois=f.results;w.poiTypes=p.results;w.currentInformationDesks=d.results;w.currentTrek=y})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const jo='.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}';const So=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}b("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}}));b("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.treksWithinBounds){this.treksToDisplay=[...w.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<w.treksWithinBounds.length){this.treksToDisplay=w.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=w.treksWithinBounds.length?w.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"treks-list-container"},this.treksToDisplay.map((t=>r("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};So.style=jo;const To=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();w.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&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(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}label/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r,n,s,o,a,l])=>{w.treksNetworkError=false;w.difficulties=t.results;w.routes=i.results;w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));w.themes=r.results;w.cities=n.results;w.accessibilities=s.results;w.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}];w.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}];w.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];w.labels=o.results;w.districts=a.results;w.treks=l.results;w.currentTreks=l.results})).catch((()=>w.treksNetworkError=true))}render(){return r(n,null)}};export{k as grw_app,_ as grw_common_button,z as grw_extended_fab,R as grw_filter,D as grw_filters,G as grw_information_desk,Z as grw_loader,Ir as grw_map,Zs as grw_poi,Us as grw_search,Vs as grw_segmented_segment,Ks as grw_select_language,Js as grw_sensitive_area_detail,to as grw_touristic_content_card,eo as grw_touristic_content_detail,ro as grw_touristic_content_provider,so as grw_touristic_contents_list,oo as grw_touristic_contents_provider,lo as grw_touristic_event_card,ho as grw_touristic_event_detail,uo as grw_touristic_event_provider,po as grw_touristic_events_list,mo as grw_touristic_events_provider,vo as grw_trek_card,Po as grw_trek_detail,Oo as grw_trek_provider,So as grw_treks_list,To as grw_treks_provider};
15
- //# sourceMappingURL=p-37932796.entry.js.map
14
+ (function(i,e){{if(typeof e!=="undefined"&&e.L){t.exports=i(L)}else{t.exports=i(K)}}if(typeof e!=="undefined"&&e.L){e.L.Control.Locate=i(L)}})((function(t){const i=(i,e,r)=>{r=r.split(" ");r.forEach((function(r){t.DomUtil[i].call(this,e,r)}))};const e=(t,e)=>i("addClass",t,e);const r=(t,e)=>i("removeClass",t,e);const n=t.Marker.extend({initialize(i,e){t.Util.setOptions(this,e);this._latlng=i;this.createIcon()},createIcon(){const i=this.options;let e="";if(i.color!==undefined){e+=`stroke:${i.color};`}if(i.weight!==undefined){e+=`stroke-width:${i.weight};`}if(i.fillColor!==undefined){e+=`fill:${i.fillColor};`}if(i.fillOpacity!==undefined){e+=`fill-opacity:${i.fillOpacity};`}if(i.opacity!==undefined){e+=`opacity:${i.opacity};`}const r=this._getIconSVG(i,e);this._locationIcon=t.divIcon({className:r.className,html:r.svg,iconSize:[r.w,r.h]});this.setIcon(this._locationIcon)},_getIconSVG(t,i){const e=t.radius;const r=t.weight;const n=e+r;const s=n*2;const o=`<svg xmlns="http://www.w3.org/2000/svg" width="${s}" height="${s}" version="1.1" viewBox="-${n} -${n} ${s} ${s}">`+'<circle r="'+e+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-location",svg:o,w:s,h:s}},setStyle(i){t.Util.setOptions(this,i);this.createIcon()}});const s=n.extend({initialize(i,e,r){t.Util.setOptions(this,r);this._latlng=i;this._heading=e;this.createIcon()},setHeading(t){this._heading=t},_getIconSVG(t,i){const e=t.radius;const r=t.width+t.weight;const n=(e+t.depth+t.weight)*2;const s=`M0,0 l${t.width/2},${t.depth} l-${r},0 z`;const o=`transform: rotate(${this._heading}deg)`;const a=`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${n}" version="1.1" viewBox="-${r/2} 0 ${r} ${n}" style="${o}">`+'<path d="'+s+'" style="'+i+'" />'+"</svg>";return{className:"leaflet-control-locate-heading",svg:a,w:r,h:n}}});const o=t.Control.extend({options:{position:"topleft",layer:undefined,setView:"untilPanOrZoom",keepCurrentZoomLevel:false,initialZoomLevel:false,getLocationBounds(t){return t.bounds},flyTo:false,clickBehavior:{inView:"stop",outOfView:"setView",inViewNotFollowing:"inView"},returnToPrevBounds:false,cacheLocation:true,drawCircle:true,drawMarker:true,showCompass:true,markerClass:n,compassClass:s,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(i,e){const r=t.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",i);r.title=e.strings.title;r.href="#";r.setAttribute("role","button");const n=t.DomUtil.create(e.iconElementTag,e.icon,r);if(e.strings.text!==undefined){const i=t.DomUtil.create(e.textElementTag,"leaflet-locate-text",r);i.textContent=e.strings.text;r.classList.add("leaflet-locate-text-active");r.parentNode.style.display="flex";if(e.icon.length>0){n.classList.add("leaflet-locate-icon")}}return{link:r,icon:n}},onLocationError(t,i){alert(t.message)},onLocationOutsideMapBounds(t){t.stop();alert(t.options.strings.outsideMapBoundsMsg)},showPopup:true,strings:{title:"Show me where I am",metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{maxZoom:Infinity,watch:true,setView:false}},initialize(i){for(const e in i){if(typeof this.options[e]==="object"){t.extend(this.options[e],i[e])}else{this.options[e]=i[e]}}this.options.followMarkerStyle=t.extend({},this.options.markerStyle,this.options.followMarkerStyle);this.options.followCircleStyle=t.extend({},this.options.circleStyle,this.options.followCircleStyle);this.options.followCompassStyle=t.extend({},this.options.compassStyle,this.options.followCompassStyle)},onAdd(i){const e=t.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control");this._container=e;this._map=i;this._layer=this.options.layer||new t.LayerGroup;this._layer.addTo(i);this._event=undefined;this._compassHeading=null;this._prevBounds=null;const r=this.options.createButtonCallback(e,this.options);this._link=r.link;this._icon=r.icon;t.DomEvent.on(this._link,"click",(function(i){t.DomEvent.stopPropagation(i);t.DomEvent.preventDefault(i);this._onClick()}),this).on(this._link,"dblclick",t.DomEvent.stopPropagation);this._resetVariables();this._map.on("unload",this._unload,this);return e},_onClick(){this._justClicked=true;const t=this._isFollowing();this._userPanned=false;this._userZoomed=false;if(this._active&&!this._event){this.stop()}else if(this._active){const i=this.options.clickBehavior;let e=i.outOfView;if(this._map.getBounds().contains(this._event.latlng)){e=t?i.inView:i.inViewNotFollowing}if(i[e]){e=i[e]}switch(e){case"setView":this.setView();break;case"stop":this.stop();if(this.options.returnToPrevBounds){const t=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;t.bind(this._map)(this._prevBounds)}break}}else{if(this.options.returnToPrevBounds){this._prevBounds=this._map.getBounds()}this.start()}this._updateContainerStyle()},start(){this._activate();if(this._event){this._drawMarker(this._map);if(this.options.setView){this.setView()}}this._updateContainerStyle()},stop(){this._deactivate();this._cleanClasses();this._resetVariables();this._removeMarker()},stopFollowing(){this._userPanned=true;this._updateContainerStyle();this._drawMarker()},_activate(){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){const i="ondeviceorientationabsolute"in window;if(i||"ondeviceorientation"in window){const e=this;const r=function(){t.DomEvent.on(window,i?"deviceorientationabsolute":"deviceorientation",e._onDeviceOrientation,e)};if(DeviceOrientationEvent&&typeof DeviceOrientationEvent.requestPermission==="function"){DeviceOrientationEvent.requestPermission().then((function(t){if(t==="granted"){r()}}))}else{r()}}}},_deactivate(){if(!this._active||!this._map){return}this._map.stopLocate();this._map.fire("locatedeactivate",this);this._active=false;if(!this.options.cacheLocation){this._event=undefined}this._map.off("locationfound",this._onLocationFound,this);this._map.off("locationerror",this._onLocationError,this);this._map.off("dragstart",this._onDrag,this);this._map.off("zoomstart",this._onZoom,this);this._map.off("zoomend",this._onZoomEnd,this);if(this.options.showCompass){this._compassHeading=null;if("ondeviceorientationabsolute"in window){t.DomEvent.off(window,"deviceorientationabsolute",this._onDeviceOrientation,this)}else if("ondeviceorientation"in window){t.DomEvent.off(window,"deviceorientation",this._onDeviceOrientation,this)}}},setView(){this._drawMarker();if(this._isOutsideMapBounds()){this._event=undefined;this.options.onLocationOutsideMapBounds(this)}else{if(this._justClicked&&this.options.initialZoomLevel!==false){var i=this.options.flyTo?this._map.flyTo:this._map.setView;i.bind(this._map)([this._event.latitude,this._event.longitude],this.options.initialZoomLevel)}else if(this.options.keepCurrentZoomLevel){var i=this.options.flyTo?this._map.flyTo:this._map.panTo;i.bind(this._map)([this._event.latitude,this._event.longitude])}else{var i=this.options.flyTo?this._map.flyToBounds:this._map.fitBounds;this._ignoreEvent=true;i.bind(this._map)(this.options.getLocationBounds(this._event),{padding:this.options.circlePadding,maxZoom:this.options.initialZoomLevel||this.options.locateOptions.maxZoom});t.Util.requestAnimFrame((function(){this._ignoreEvent=false}),this)}}},_drawCompass(){if(!this._event){return}const t=this._event.latlng;if(this.options.showCompass&&t&&this._compassHeading!==null){const i=this._isFollowing()?this.options.followCompassStyle:this.options.compassStyle;if(!this._compass){this._compass=new this.options.compassClass(t,this._compassHeading,i).addTo(this._layer)}else{this._compass.setLatLng(t);this._compass.setHeading(this._compassHeading);if(this._compass.setStyle){this._compass.setStyle(i)}}}if(this._compass&&(!this.options.showCompass||this._compassHeading===null)){this._compass.removeFrom(this._layer);this._compass=null}},_drawMarker(){if(this._event.accuracy===undefined){this._event.accuracy=0}const i=this._event.accuracy;const e=this._event.latlng;if(this.options.drawCircle){const r=this._isFollowing()?this.options.followCircleStyle:this.options.circleStyle;if(!this._circle){this._circle=t.circle(e,i,r).addTo(this._layer)}else{this._circle.setLatLng(e).setRadius(i).setStyle(r)}}let r;let n;if(this.options.metric){r=i.toFixed(0);n=this.options.strings.metersUnit}else{r=(i*3.2808399).toFixed(0);n=this.options.strings.feetUnit}if(this.options.drawMarker){const t=this._isFollowing()?this.options.followMarkerStyle:this.options.markerStyle;if(!this._marker){this._marker=new this.options.markerClass(e,t).addTo(this._layer)}else{this._marker.setLatLng(e);if(this._marker.setStyle){this._marker.setStyle(t)}}}this._drawCompass();const s=this.options.strings.popup;function o(){if(typeof s==="string"){return t.Util.template(s,{distance:r,unit:n})}else if(typeof s==="function"){return s({distance:r,unit:n})}else{return s}}if(this.options.showPopup&&s&&this._marker){this._marker.bindPopup(o())._popup.setLatLng(e)}if(this.options.showPopup&&s&&this._compass){this._compass.bindPopup(o())._popup.setLatLng(e)}},_removeMarker(){this._layer.clearLayers();this._marker=undefined;this._circle=undefined},_unload(){this.stop();this._map.off("unload",this._unload,this)},_setCompassHeading(i){if(!isNaN(parseFloat(i))&&isFinite(i)){i=Math.round(i);this._compassHeading=i;t.Util.requestAnimFrame(this._drawCompass,this)}else{this._compassHeading=null}},_onCompassNeedsCalibration(){this._setCompassHeading()},_onDeviceOrientation(t){if(!this._active){return}if(t.webkitCompassHeading){this._setCompassHeading(t.webkitCompassHeading)}else if(t.absolute&&t.alpha){this._setCompassHeading(360-t.alpha)}},_onLocationError(t){if(t.code==3&&this.options.locateOptions.watch){return}this.stop();this.options.onLocationError(t,this)},_onLocationFound(t){if(this._event&&this._event.latlng.lat===t.latlng.lat&&this._event.latlng.lng===t.latlng.lng&&this._event.accuracy===t.accuracy){return}if(!this._active){return}this._event=t;this._drawMarker();this._updateContainerStyle();switch(this.options.setView){case"once":if(this._justClicked){this.setView()}break;case"untilPan":if(!this._userPanned){this.setView()}break;case"untilPanOrZoom":if(!this._userPanned&&!this._userZoomed){this.setView()}break;case"always":this.setView();break}this._justClicked=false},_onDrag(){if(this._event&&!this._ignoreEvent){this._userPanned=true;this._updateContainerStyle();this._drawMarker()}},_onZoom(){if(this._event&&!this._ignoreEvent){this._userZoomed=true;this._updateContainerStyle();this._drawMarker()}},_onZoomEnd(){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(){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(){if(this._event===undefined){return false}return this._map.options.maxBounds&&!this._map.options.maxBounds.contains(this._event.latlng)},_updateContainerStyle(){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(t){if(t=="requesting"){r(this._container,"active following");e(this._container,"requesting");r(this._icon,this.options.icon);e(this._icon,this.options.iconLoading)}else if(t=="active"){r(this._container,"requesting following");e(this._container,"active");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}else if(t=="following"){r(this._container,"requesting");e(this._container,"active following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)}},_cleanClasses(){t.DomUtil.removeClass(this._container,"requesting");t.DomUtil.removeClass(this._container,"active");t.DomUtil.removeClass(this._container,"following");r(this._icon,this.options.iconLoading);e(this._icon,this.options.icon)},_resetVariables(){this._active=false;this._justClicked=false;this._userPanned=false;this._userZoomed=false}});t.control.locate=i=>new t.Control.Locate(i);return o}),window)}));Q((function(t,i){(function(i,e){{t.exports=i(K)}if(typeof e!=="undefined"&&e.L){i(e.L)}})((function(t){t.locales={};t.locale=null;t.registerLocale=function i(e,r){t.locales[e]=t.Util.extend({},t.locales[e],r)};t.setLocale=function i(e){t.locale=e};return t.i18n=t._=function i(e,r){if(t.locale&&t.locales[t.locale]&&typeof t.locales[t.locale][e]!=="undefined"){e=t.locales[t.locale][e]}try{e=t.Util.template(e,r)}catch(n){}return e}}),window)}));var J=Q((function(t,i){(function(e){var r=i&&!i.nodeType&&i;var n=t&&!t.nodeType&&t;var s=typeof U=="object"&&U;if(s.global===s||s.window===s||s.self===s){e=s}var o,a=2147483647,l=36,c=1,h=26,f=38,u=700,p=72,d=128,m="-",g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=l-c,x=Math.floor,k=String.fromCharCode,A;function _(t){throw new RangeError(b[t])}function M(t,i){var e=t.length;var r=[];while(e--){r[e]=i(t[e])}return r}function z(t,i){var e=t.split("@");var r="";if(e.length>1){r=e[0]+"@";t=e[1]}t=t.replace(w,".");var n=t.split(".");var s=M(n,i).join(".");return r+s}function L(t){var i=[],e=0,r=t.length,n,s;while(e<r){n=t.charCodeAt(e++);if(n>=55296&&n<=56319&&e<r){s=t.charCodeAt(e++);if((s&64512)==56320){i.push(((n&1023)<<10)+(s&1023)+65536)}else{i.push(n);e--}}else{i.push(n)}}return i}function C(t){return M(t,(function(t){var i="";if(t>65535){t-=65536;i+=k(t>>>10&1023|55296);t=56320|t&1023}i+=k(t);return i})).join("")}function E(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return l}function P(t,i){return t+22+75*(t<26)-((i!=0)<<5)}function O(t,i,e){var r=0;t=e?x(t/u):t>>1;t+=x(t/i);for(;t>y*h>>1;r+=l){t=x(t/y)}return x(r+(y+1)*t/(t+f))}function j(t){var i=[],e=t.length,r,n=0,s=d,o=p,f,u,g,v,w,b,y,k,A;f=t.lastIndexOf(m);if(f<0){f=0}for(u=0;u<f;++u){if(t.charCodeAt(u)>=128){_("not-basic")}i.push(t.charCodeAt(u))}for(g=f>0?f+1:0;g<e;){for(v=n,w=1,b=l;;b+=l){if(g>=e){_("invalid-input")}y=E(t.charCodeAt(g++));if(y>=l||y>x((a-n)/w)){_("overflow")}n+=y*w;k=b<=o?c:b>=o+h?h:b-o;if(y<k){break}A=l-k;if(w>x(a/A)){_("overflow")}w*=A}r=i.length+1;o=O(n-v,r,v==0);if(x(n/r)>a-s){_("overflow")}s+=x(n/r);n%=r;i.splice(n++,0,s)}return C(i)}function S(t){var i,e,r,n,s,o,f,u,g,v,w,b=[],y,A,M,z;t=L(t);y=t.length;i=d;e=0;s=p;for(o=0;o<y;++o){w=t[o];if(w<128){b.push(k(w))}}r=n=b.length;if(n){b.push(m)}while(r<y){for(f=a,o=0;o<y;++o){w=t[o];if(w>=i&&w<f){f=w}}A=r+1;if(f-i>x((a-e)/A)){_("overflow")}e+=(f-i)*A;i=f;for(o=0;o<y;++o){w=t[o];if(w<i&&++e>a){_("overflow")}if(w==i){for(u=e,g=l;;g+=l){v=g<=s?c:g>=s+h?h:g-s;if(u<v){break}z=u-v;M=l-v;b.push(k(P(v+z%M,0)));u=x(z/M)}b.push(k(P(u,0)));s=O(e,A,r==n);e=0;++r}}++e;++i}return b.join("")}function T(t){return z(t,(function(t){return g.test(t)?j(t.slice(4).toLowerCase()):t}))}function I(t){return z(t,(function(t){return v.test(t)?"xn--"+S(t):t}))}o={version:"1.4.1",ucs2:{decode:L,encode:C},decode:j,encode:S,toASCII:I,toUnicode:T};if(r&&n){if(t.exports==r){n.exports=o}else{for(A in o){o.hasOwnProperty(A)&&(r[A]=o[A])}}}else{e.punycode=o}})(U)}));var q=function t(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function"){return false}if(typeof Symbol.iterator==="symbol"){return true}var i={};var e=Symbol("test");var r=Object(e);if(typeof e==="string"){return false}if(Object.prototype.toString.call(e)!=="[object Symbol]"){return false}if(Object.prototype.toString.call(r)!=="[object Symbol]"){return false}var n=42;i[e]=n;for(e in i){return false}if(typeof Object.keys==="function"&&Object.keys(i).length!==0){return false}if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(i).length!==0){return false}var s=Object.getOwnPropertySymbols(i);if(s.length!==1||s[0]!==e){return false}if(!Object.prototype.propertyIsEnumerable.call(i,e)){return false}if(typeof Object.getOwnPropertyDescriptor==="function"){var o=Object.getOwnPropertyDescriptor(i,e);if(o.value!==n||o.enumerable!==true){return false}}return true};var X=typeof Symbol!=="undefined"&&Symbol;var tt=function t(){if(typeof X!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof X("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return q()};var it={foo:{}};var et=Object;var rt=function t(){return{__proto__:it}.foo===it.foo&&!({__proto__:null}instanceof et)};var nt="Function.prototype.bind called on incompatible ";var st=Array.prototype.slice;var ot=Object.prototype.toString;var at="[object Function]";var lt=function t(i){var e=this;if(typeof e!=="function"||ot.call(e)!==at){throw new TypeError(nt+e)}var r=st.call(arguments,1);var n;var s=function(){if(this instanceof n){var t=e.apply(this,r.concat(st.call(arguments)));if(Object(t)===t){return t}return this}else{return e.apply(i,r.concat(st.call(arguments)))}};var o=Math.max(0,e.length-r.length);var a=[];for(var l=0;l<o;l++){a.push("$"+l)}n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s);if(e.prototype){var c=function t(){};c.prototype=e.prototype;n.prototype=new c;c.prototype=null}return n};var ct=Function.prototype.bind||lt;var ht=ct.call(Function.call,Object.prototype.hasOwnProperty);var ft;var ut=SyntaxError;var pt=Function;var dt=TypeError;var mt=function(t){try{return pt('"use strict"; return ('+t+").constructor;")()}catch(i){}};var gt=Object.getOwnPropertyDescriptor;var vt=function(){throw new dt};var wt=gt?function(){try{return vt}catch(t){try{return gt(arguments,"callee").get}catch(i){return vt}}}():vt;var bt=tt();var yt=rt();var xt=Object.getPrototypeOf||(yt?function(t){return t.__proto__}:null);var kt={};var At=typeof Uint8Array==="undefined"||!xt?ft:xt(Uint8Array);var _t={"%AggregateError%":typeof AggregateError==="undefined"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":bt&&xt?xt([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":kt,"%AsyncGenerator%":kt,"%AsyncGeneratorFunction%":kt,"%AsyncIteratorPrototype%":kt,"%Atomics%":typeof Atomics==="undefined"?ft:Atomics,"%BigInt%":typeof BigInt==="undefined"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array==="undefined"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array==="undefined"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView==="undefined"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array==="undefined"?ft:Float32Array,"%Float64Array%":typeof Float64Array==="undefined"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry==="undefined"?ft:FinalizationRegistry,"%Function%":pt,"%GeneratorFunction%":kt,"%Int8Array%":typeof Int8Array==="undefined"?ft:Int8Array,"%Int16Array%":typeof Int16Array==="undefined"?ft:Int16Array,"%Int32Array%":typeof Int32Array==="undefined"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bt&&xt?xt(xt([][Symbol.iterator]())):ft,"%JSON%":typeof JSON==="object"?JSON:ft,"%Map%":typeof Map==="undefined"?ft:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!bt||!xt?ft:xt((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?ft:Promise,"%Proxy%":typeof Proxy==="undefined"?ft:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect==="undefined"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set==="undefined"?ft:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!bt||!xt?ft:xt((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bt&&xt?xt(""[Symbol.iterator]()):ft,"%Symbol%":bt?Symbol:ft,"%SyntaxError%":ut,"%ThrowTypeError%":wt,"%TypedArray%":At,"%TypeError%":dt,"%Uint8Array%":typeof Uint8Array==="undefined"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array==="undefined"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array==="undefined"?ft:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap==="undefined"?ft:WeakMap,"%WeakRef%":typeof WeakRef==="undefined"?ft:WeakRef,"%WeakSet%":typeof WeakSet==="undefined"?ft:WeakSet};var Mt=function t(i){var e;if(i==="%AsyncFunction%"){e=mt("async function () {}")}else if(i==="%GeneratorFunction%"){e=mt("function* () {}")}else if(i==="%AsyncGeneratorFunction%"){e=mt("async function* () {}")}else if(i==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");if(r){e=r.prototype}}else if(i==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");if(n&&xt){e=xt(n.prototype)}}_t[i]=e;return e};var zt={"%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 Lt=ct.call(Function.call,Array.prototype.concat);var Ct=ct.call(Function.apply,Array.prototype.splice);var Et=ct.call(Function.call,String.prototype.replace);var Pt=ct.call(Function.call,String.prototype.slice);var Ot=ct.call(Function.call,RegExp.prototype.exec);var jt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var St=/\\(\\)?/g;var Tt=function t(i){var e=Pt(i,0,1);var r=Pt(i,-1);if(e==="%"&&r!=="%"){throw new ut("invalid intrinsic syntax, expected closing `%`")}else if(r==="%"&&e!=="%"){throw new ut("invalid intrinsic syntax, expected opening `%`")}var n=[];Et(i,jt,(function(t,i,e,r){n[n.length]=e?Et(r,St,"$1"):i||t}));return n};var It=function t(i,e){var r=i;var n;if(ht(zt,r)){n=zt[r];r="%"+n[0]+"%"}if(ht(_t,r)){var s=_t[r];if(s===kt){s=Mt(r)}if(typeof s==="undefined"&&!e){throw new dt("intrinsic "+i+" exists, but is not available. Please file an issue!")}return{alias:n,name:r,value:s}}throw new ut("intrinsic "+i+" does not exist!")};var Bt=function t(i,e){if(typeof i!=="string"||i.length===0){throw new dt("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof e!=="boolean"){throw new dt('"allowMissing" argument must be a boolean')}if(Ot(/^%?[^%]*%?$/,i)===null){throw new ut("`%` may not be present anywhere but at the beginning and end of the intrinsic name")}var r=Tt(i);var n=r.length>0?r[0]:"";var s=It("%"+n+"%",e);var o=s.name;var a=s.value;var l=false;var c=s.alias;if(c){n=c[0];Ct(r,Lt([0,1],c))}for(var h=1,f=true;h<r.length;h+=1){var u=r[h];var p=Pt(u,0,1);var d=Pt(u,-1);if((p==='"'||p==="'"||p==="`"||(d==='"'||d==="'"||d==="`"))&&p!==d){throw new ut("property names with quotes must have matching quotes")}if(u==="constructor"||!f){l=true}n+="."+u;o="%"+n+"%";if(ht(_t,o)){a=_t[o]}else if(a!=null){if(!(u in a)){if(!e){throw new dt("base intrinsic for "+i+" exists, but the property is not available.")}return void ft}if(gt&&h+1>=r.length){var m=gt(a,u);f=!!m;if(f&&"get"in m&&!("originalValue"in m.get)){a=m.get}else{a=a[u]}}else{f=ht(a,u);a=a[u]}if(f&&!l){_t[o]=a}}}return a};var Ft=Q((function(t){var i=Bt("%Function.prototype.apply%");var e=Bt("%Function.prototype.call%");var r=Bt("%Reflect.apply%",true)||ct.call(e,i);var n=Bt("%Object.getOwnPropertyDescriptor%",true);var s=Bt("%Object.defineProperty%",true);var o=Bt("%Math.max%");if(s){try{s({},"a",{value:1})}catch(l){s=null}}t.exports=function t(i){var a=r(ct,e,arguments);if(n&&s){var l=n(a,"length");if(l.configurable){s(a,"length",{value:1+o(0,i.length-(arguments.length-1))})}}return a};var a=function t(){return r(ct,i,arguments)};if(s){s(t.exports,"apply",{value:a})}else{t.exports.apply=a}}));var Rt=Ft(Bt("String.prototype.indexOf"));var Nt=function t(i,e){var r=Bt(i,!!e);if(typeof r==="function"&&Rt(i,".prototype.")>-1){return Ft(r)}return r};const Dt={};const Yt=Object.freeze({__proto__:null,default:Dt});const Gt=V(Yt);var $t=typeof Map==="function"&&Map.prototype;var Zt=Object.getOwnPropertyDescriptor&&$t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null;var Ht=$t&&Zt&&typeof Zt.get==="function"?Zt.get:null;var Ut=$t&&Map.prototype.forEach;var Qt=typeof Set==="function"&&Set.prototype;var Vt=Object.getOwnPropertyDescriptor&&Qt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null;var Wt=Qt&&Vt&&typeof Vt.get==="function"?Vt.get:null;var Kt=Qt&&Set.prototype.forEach;var Jt=typeof WeakMap==="function"&&WeakMap.prototype;var qt=Jt?WeakMap.prototype.has:null;var Xt=typeof WeakSet==="function"&&WeakSet.prototype;var ti=Xt?WeakSet.prototype.has:null;var ii=typeof WeakRef==="function"&&WeakRef.prototype;var ei=ii?WeakRef.prototype.deref:null;var ri=Boolean.prototype.valueOf;var ni=Object.prototype.toString;var si=Function.prototype.toString;var oi=String.prototype.match;var ai=String.prototype.slice;var li=String.prototype.replace;var ci=String.prototype.toUpperCase;var hi=String.prototype.toLowerCase;var fi=RegExp.prototype.test;var ui=Array.prototype.concat;var pi=Array.prototype.join;var di=Array.prototype.slice;var mi=Math.floor;var gi=typeof BigInt==="function"?BigInt.prototype.valueOf:null;var vi=Object.getOwnPropertySymbols;var wi=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?Symbol.prototype.toString:null;var bi=typeof Symbol==="function"&&typeof Symbol.iterator==="object";var yi=typeof Symbol==="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===bi?"object":"symbol")?Symbol.toStringTag:null;var xi=Object.prototype.propertyIsEnumerable;var ki=(typeof Reflect==="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Ai(t,i){if(t===Infinity||t===-Infinity||t!==t||t&&t>-1e3&&t<1e3||fi.call(/e/,i)){return i}var e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t==="number"){var r=t<0?-mi(-t):mi(t);if(r!==t){var n=String(r);var s=ai.call(i,n.length+1);return li.call(n,e,"$&_")+"."+li.call(li.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return li.call(i,e,"$&_")}var _i=Gt.custom;var Mi=Bi(_i)?_i:null;var zi=function t(i,e,r,n){var s=e||{};if(Ni(s,"quoteStyle")&&(s.quoteStyle!=="single"&&s.quoteStyle!=="double")){throw new TypeError('option "quoteStyle" must be "single" or "double"')}if(Ni(s,"maxStringLength")&&(typeof s.maxStringLength==="number"?s.maxStringLength<0&&s.maxStringLength!==Infinity:s.maxStringLength!==null)){throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`')}var o=Ni(s,"customInspect")?s.customInspect:true;if(typeof o!=="boolean"&&o!=="symbol"){throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`")}if(Ni(s,"indent")&&s.indent!==null&&s.indent!=="\t"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0)){throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`')}if(Ni(s,"numericSeparator")&&typeof s.numericSeparator!=="boolean"){throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`')}var a=s.numericSeparator;if(typeof i==="undefined"){return"undefined"}if(i===null){return"null"}if(typeof i==="boolean"){return i?"true":"false"}if(typeof i==="string"){return Wi(i,s)}if(typeof i==="number"){if(i===0){return Infinity/i>0?"0":"-0"}var l=String(i);return a?Ai(i,l):l}if(typeof i==="bigint"){var c=String(i)+"n";return a?Ai(i,c):c}var h=typeof s.depth==="undefined"?5:s.depth;if(typeof r==="undefined"){r=0}if(r>=h&&h>0&&typeof i==="object"){return Ei(i)?"[Array]":"[Object]"}var f=ie(s,r);if(typeof n==="undefined"){n=[]}else if(Gi(n,i)>=0){return"[Circular]"}function u(i,e,o){if(e){n=di.call(n);n.push(e)}if(o){var a={depth:s.depth};if(Ni(s,"quoteStyle")){a.quoteStyle=s.quoteStyle}return t(i,a,r+1,n)}return t(i,s,r+1,n)}if(typeof i==="function"&&!Oi(i)){var p=Yi(i);var d=re(i,u);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(d.length>0?" { "+pi.call(d,", ")+" }":"")}if(Bi(i)){var m=bi?li.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):wi.call(i);return typeof i==="object"&&!bi?Ji(m):m}if(Vi(i)){var g="<"+hi.call(String(i.nodeName));var v=i.attributes||[];for(var w=0;w<v.length;w++){g+=" "+v[w].name+"="+Li(Ci(v[w].value),"double",s)}g+=">";if(i.childNodes&&i.childNodes.length){g+="..."}g+="</"+hi.call(String(i.nodeName))+">";return g}if(Ei(i)){if(i.length===0){return"[]"}var b=re(i,u);if(f&&!te(b)){return"["+ee(b,f)+"]"}return"[ "+pi.call(b,", ")+" ]"}if(ji(i)){var y=re(i,u);if(!("cause"in Error.prototype)&&"cause"in i&&!xi.call(i,"cause")){return"{ ["+String(i)+"] "+pi.call(ui.call("[cause]: "+u(i.cause),y),", ")+" }"}if(y.length===0){return"["+String(i)+"]"}return"{ ["+String(i)+"] "+pi.call(y,", ")+" }"}if(typeof i==="object"&&o){if(Mi&&typeof i[Mi]==="function"&&Gt){return Gt(i,{depth:h-r})}else if(o!=="symbol"&&typeof i.inspect==="function"){return i.inspect()}}if($i(i)){var x=[];if(Ut){Ut.call(i,(function(t,e){x.push(u(e,i,true)+" => "+u(t,i))}))}return Xi("Map",Ht.call(i),x,f)}if(Ui(i)){var k=[];if(Kt){Kt.call(i,(function(t){k.push(u(t,i))}))}return Xi("Set",Wt.call(i),k,f)}if(Zi(i)){return qi("WeakMap")}if(Qi(i)){return qi("WeakSet")}if(Hi(i)){return qi("WeakRef")}if(Ti(i)){return Ji(u(Number(i)))}if(Fi(i)){return Ji(u(gi.call(i)))}if(Ii(i)){return Ji(ri.call(i))}if(Si(i)){return Ji(u(String(i)))}if(!Pi(i)&&!Oi(i)){var A=re(i,u);var _=ki?ki(i)===Object.prototype:i instanceof Object||i.constructor===Object;var M=i instanceof Object?"":"null prototype";var z=!_&&yi&&Object(i)===i&&yi in i?ai.call(Di(i),8,-1):M?"Object":"";var L=_||typeof i.constructor!=="function"?"":i.constructor.name?i.constructor.name+" ":"";var C=L+(z||M?"["+pi.call(ui.call([],z||[],M||[]),": ")+"] ":"");if(A.length===0){return C+"{}"}if(f){return C+"{"+ee(A,f)+"}"}return C+"{ "+pi.call(A,", ")+" }"}return String(i)};function Li(t,i,e){var r=(e.quoteStyle||i)==="double"?'"':"'";return r+t+r}function Ci(t){return li.call(String(t),/"/g,"&quot;")}function Ei(t){return Di(t)==="[object Array]"&&(!yi||!(typeof t==="object"&&yi in t))}function Pi(t){return Di(t)==="[object Date]"&&(!yi||!(typeof t==="object"&&yi in t))}function Oi(t){return Di(t)==="[object RegExp]"&&(!yi||!(typeof t==="object"&&yi in t))}function ji(t){return Di(t)==="[object Error]"&&(!yi||!(typeof t==="object"&&yi in t))}function Si(t){return Di(t)==="[object String]"&&(!yi||!(typeof t==="object"&&yi in t))}function Ti(t){return Di(t)==="[object Number]"&&(!yi||!(typeof t==="object"&&yi in t))}function Ii(t){return Di(t)==="[object Boolean]"&&(!yi||!(typeof t==="object"&&yi in t))}function Bi(t){if(bi){return t&&typeof t==="object"&&t instanceof Symbol}if(typeof t==="symbol"){return true}if(!t||typeof t!=="object"||!wi){return false}try{wi.call(t);return true}catch(i){}return false}function Fi(t){if(!t||typeof t!=="object"||!gi){return false}try{gi.call(t);return true}catch(i){}return false}var Ri=Object.prototype.hasOwnProperty||function(t){return t in this};function Ni(t,i){return Ri.call(t,i)}function Di(t){return ni.call(t)}function Yi(t){if(t.name){return t.name}var i=oi.call(si.call(t),/^function\s*([\w$]+)/);if(i){return i[1]}return null}function Gi(t,i){if(t.indexOf){return t.indexOf(i)}for(var e=0,r=t.length;e<r;e++){if(t[e]===i){return e}}return-1}function $i(t){if(!Ht||!t||typeof t!=="object"){return false}try{Ht.call(t);try{Wt.call(t)}catch(i){return true}return t instanceof Map}catch(e){}return false}function Zi(t){if(!qt||!t||typeof t!=="object"){return false}try{qt.call(t,qt);try{ti.call(t,ti)}catch(i){return true}return t instanceof WeakMap}catch(e){}return false}function Hi(t){if(!ei||!t||typeof t!=="object"){return false}try{ei.call(t);return true}catch(i){}return false}function Ui(t){if(!Wt||!t||typeof t!=="object"){return false}try{Wt.call(t);try{Ht.call(t)}catch(i){return true}return t instanceof Set}catch(e){}return false}function Qi(t){if(!ti||!t||typeof t!=="object"){return false}try{ti.call(t,ti);try{qt.call(t,qt)}catch(i){return true}return t instanceof WeakSet}catch(e){}return false}function Vi(t){if(!t||typeof t!=="object"){return false}if(typeof HTMLElement!=="undefined"&&t instanceof HTMLElement){return true}return typeof t.nodeName==="string"&&typeof t.getAttribute==="function"}function Wi(t,i){if(t.length>i.maxStringLength){var e=t.length-i.maxStringLength;var r="... "+e+" more character"+(e>1?"s":"");return Wi(ai.call(t,0,i.maxStringLength),i)+r}var n=li.call(li.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ki);return Li(n,"single",i)}function Ki(t){var i=t.charCodeAt(0);var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[i];if(e){return"\\"+e}return"\\x"+(i<16?"0":"")+ci.call(i.toString(16))}function Ji(t){return"Object("+t+")"}function qi(t){return t+" { ? }"}function Xi(t,i,e,r){var n=r?ee(e,r):pi.call(e,", ");return t+" ("+i+") {"+n+"}"}function te(t){for(var i=0;i<t.length;i++){if(Gi(t[i],"\n")>=0){return false}}return true}function ie(t,i){var e;if(t.indent==="\t"){e="\t"}else if(typeof t.indent==="number"&&t.indent>0){e=pi.call(Array(t.indent+1)," ")}else{return null}return{base:e,prev:pi.call(Array(i+1),e)}}function ee(t,i){if(t.length===0){return""}var e="\n"+i.prev+i.base;return e+pi.call(t,","+e)+"\n"+i.prev}function re(t,i){var e=Ei(t);var r=[];if(e){r.length=t.length;for(var n=0;n<t.length;n++){r[n]=Ni(t,n)?i(t[n],t):""}}var s=typeof vi==="function"?vi(t):[];var o;if(bi){o={};for(var a=0;a<s.length;a++){o["$"+s[a]]=s[a]}}for(var l in t){if(!Ni(t,l)){continue}if(e&&String(Number(l))===l&&l<t.length){continue}if(bi&&o["$"+l]instanceof Symbol){continue}else if(fi.call(/[^\w$]/,l)){r.push(i(l,t)+": "+i(t[l],t))}else{r.push(l+": "+i(t[l],t))}}if(typeof vi==="function"){for(var c=0;c<s.length;c++){if(xi.call(t,s[c])){r.push("["+i(s[c])+"]: "+i(t[s[c]],t))}}}return r}var ne=Bt("%TypeError%");var se=Bt("%WeakMap%",true);var oe=Bt("%Map%",true);var ae=Nt("WeakMap.prototype.get",true);var le=Nt("WeakMap.prototype.set",true);var ce=Nt("WeakMap.prototype.has",true);var he=Nt("Map.prototype.get",true);var fe=Nt("Map.prototype.set",true);var ue=Nt("Map.prototype.has",true);var pe=function(t,i){for(var e=t,r;(r=e.next)!==null;e=r){if(r.key===i){e.next=r.next;r.next=t.next;t.next=r;return r}}};var de=function(t,i){var e=pe(t,i);return e&&e.value};var me=function(t,i,e){var r=pe(t,i);if(r){r.value=e}else{t.next={key:i,next:t.next,value:e}}};var ge=function(t,i){return!!pe(t,i)};var ve=function t(){var i;var e;var r;var n={assert:function(t){if(!n.has(t)){throw new ne("Side channel does not contain "+zi(t))}},get:function(t){if(se&&t&&(typeof t==="object"||typeof t==="function")){if(i){return ae(i,t)}}else if(oe){if(e){return he(e,t)}}else{if(r){return de(r,t)}}},has:function(t){if(se&&t&&(typeof t==="object"||typeof t==="function")){if(i){return ce(i,t)}}else if(oe){if(e){return ue(e,t)}}else{if(r){return ge(r,t)}}return false},set:function(t,n){if(se&&t&&(typeof t==="object"||typeof t==="function")){if(!i){i=new se}le(i,t,n)}else if(oe){if(!e){e=new oe}fe(e,t,n)}else{if(!r){r={key:{},next:null}}me(r,t,n)}}};return n};var we=String.prototype.replace;var be=/%20/g;var ye={RFC1738:"RFC1738",RFC3986:"RFC3986"};var xe={default:ye.RFC3986,formatters:{RFC1738:function(t){return we.call(t,be,"+")},RFC3986:function(t){return String(t)}},RFC1738:ye.RFC1738,RFC3986:ye.RFC3986};var ke=Object.prototype.hasOwnProperty;var Ae=Array.isArray;var _e=function(){var t=[];for(var i=0;i<256;++i){t.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase())}return t}();var Me=function t(i){while(i.length>1){var e=i.pop();var r=e.obj[e.prop];if(Ae(r)){var n=[];for(var s=0;s<r.length;++s){if(typeof r[s]!=="undefined"){n.push(r[s])}}e.obj[e.prop]=n}}};var ze=function t(i,e){var r=e&&e.plainObjects?Object.create(null):{};for(var n=0;n<i.length;++n){if(typeof i[n]!=="undefined"){r[n]=i[n]}}return r};var Le=function t(i,e,r){if(!e){return i}if(typeof e!=="object"){if(Ae(i)){i.push(e)}else if(i&&typeof i==="object"){if(r&&(r.plainObjects||r.allowPrototypes)||!ke.call(Object.prototype,e)){i[e]=true}}else{return[i,e]}return i}if(!i||typeof i!=="object"){return[i].concat(e)}var n=i;if(Ae(i)&&!Ae(e)){n=ze(i,r)}if(Ae(i)&&Ae(e)){e.forEach((function(e,n){if(ke.call(i,n)){var s=i[n];if(s&&typeof s==="object"&&e&&typeof e==="object"){i[n]=t(s,e,r)}else{i.push(e)}}else{i[n]=e}}));return i}return Object.keys(e).reduce((function(i,n){var s=e[n];if(ke.call(i,n)){i[n]=t(i[n],s,r)}else{i[n]=s}return i}),n)};var Ce=function t(i,e){return Object.keys(e).reduce((function(t,i){t[i]=e[i];return t}),i)};var Ee=function(t,i,e){var r=t.replace(/\+/g," ");if(e==="iso-8859-1"){return r.replace(/%[0-9a-f]{2}/gi,unescape)}try{return decodeURIComponent(r)}catch(n){return r}};var Pe=function t(i,e,r,n,s){if(i.length===0){return i}var o=i;if(typeof i==="symbol"){o=Symbol.prototype.toString.call(i)}else if(typeof i!=="string"){o=String(i)}if(r==="iso-8859-1"){return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}))}var a="";for(var l=0;l<o.length;++l){var c=o.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||s===xe.RFC1738&&(c===40||c===41)){a+=o.charAt(l);continue}if(c<128){a=a+_e[c];continue}if(c<2048){a=a+(_e[192|c>>6]+_e[128|c&63]);continue}if(c<55296||c>=57344){a=a+(_e[224|c>>12]+_e[128|c>>6&63]+_e[128|c&63]);continue}l+=1;c=65536+((c&1023)<<10|o.charCodeAt(l)&1023);a+=_e[240|c>>18]+_e[128|c>>12&63]+_e[128|c>>6&63]+_e[128|c&63]}return a};var Oe=function t(i){var e=[{obj:{o:i},prop:"o"}];var r=[];for(var n=0;n<e.length;++n){var s=e[n];var o=s.obj[s.prop];var a=Object.keys(o);for(var l=0;l<a.length;++l){var c=a[l];var h=o[c];if(typeof h==="object"&&h!==null&&r.indexOf(h)===-1){e.push({obj:o,prop:c});r.push(h)}}}Me(e);return i};var je=function t(i){return Object.prototype.toString.call(i)==="[object RegExp]"};var Se=function t(i){if(!i||typeof i!=="object"){return false}return!!(i.constructor&&i.constructor.isBuffer&&i.constructor.isBuffer(i))};var Te=function t(i,e){return[].concat(i,e)};var Ie=function t(i,e){if(Ae(i)){var r=[];for(var n=0;n<i.length;n+=1){r.push(e(i[n]))}return r}return e(i)};var Be={arrayToObject:ze,assign:Ce,combine:Te,compact:Oe,decode:Ee,encode:Pe,isBuffer:Se,isRegExp:je,maybeMap:Ie,merge:Le};var Fe=Object.prototype.hasOwnProperty;var Re={brackets:function t(i){return i+"[]"},comma:"comma",indices:function t(i,e){return i+"["+e+"]"},repeat:function t(i){return i}};var Ne=Array.isArray;var De=Array.prototype.push;var Ye=function(t,i){De.apply(t,Ne(i)?i:[i])};var Ge=Date.prototype.toISOString;var $e=xe["default"];var Ze={addQueryPrefix:false,allowDots:false,charset:"utf-8",charsetSentinel:false,delimiter:"&",encode:true,encoder:Be.encode,encodeValuesOnly:false,format:$e,formatter:xe.formatters[$e],indices:false,serializeDate:function t(i){return Ge.call(i)},skipNulls:false,strictNullHandling:false};var He=function t(i){return typeof i==="string"||typeof i==="number"||typeof i==="boolean"||typeof i==="symbol"||typeof i==="bigint"};var Ue={};var Qe=function t(i,e,r,n,s,o,a,l,c,h,f,u,p,d,m,g){var v=i;var w=g;var b=0;var y=false;while((w=w.get(Ue))!==void undefined&&!y){var x=w.get(i);b+=1;if(typeof x!=="undefined"){if(x===b){throw new RangeError("Cyclic object value")}else{y=true}}if(typeof w.get(Ue)==="undefined"){b=0}}if(typeof l==="function"){v=l(e,v)}else if(v instanceof Date){v=f(v)}else if(r==="comma"&&Ne(v)){v=Be.maybeMap(v,(function(t){if(t instanceof Date){return f(t)}return t}))}if(v===null){if(s){return a&&!d?a(e,Ze.encoder,m,"key",u):e}v=""}if(He(v)||Be.isBuffer(v)){if(a){var k=d?e:a(e,Ze.encoder,m,"key",u);return[p(k)+"="+p(a(v,Ze.encoder,m,"value",u))]}return[p(e)+"="+p(String(v))]}var A=[];if(typeof v==="undefined"){return A}var _;if(r==="comma"&&Ne(v)){if(d&&a){v=Be.maybeMap(v,a)}_=[{value:v.length>0?v.join(",")||null:void undefined}]}else if(Ne(l)){_=l}else{var M=Object.keys(v);_=c?M.sort(c):M}var z=n&&Ne(v)&&v.length===1?e+"[]":e;for(var L=0;L<_.length;++L){var C=_[L];var E=typeof C==="object"&&typeof C.value!=="undefined"?C.value:v[C];if(o&&E===null){continue}var P=Ne(v)?typeof r==="function"?r(z,C):z:z+(h?"."+C:"["+C+"]");g.set(i,b);var O=ve();O.set(Ue,g);Ye(A,t(E,P,r,n,s,o,r==="comma"&&d&&Ne(v)?null:a,l,c,h,f,u,p,d,m,O))}return A};var Ve=function t(i){if(!i){return Ze}if(i.encoder!==null&&typeof i.encoder!=="undefined"&&typeof i.encoder!=="function"){throw new TypeError("Encoder has to be a function.")}var e=i.charset||Ze.charset;if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var r=xe["default"];if(typeof i.format!=="undefined"){if(!Fe.call(xe.formatters,i.format)){throw new TypeError("Unknown format option provided.")}r=i.format}var n=xe.formatters[r];var s=Ze.filter;if(typeof i.filter==="function"||Ne(i.filter)){s=i.filter}return{addQueryPrefix:typeof i.addQueryPrefix==="boolean"?i.addQueryPrefix:Ze.addQueryPrefix,allowDots:typeof i.allowDots==="undefined"?Ze.allowDots:!!i.allowDots,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:Ze.charsetSentinel,delimiter:typeof i.delimiter==="undefined"?Ze.delimiter:i.delimiter,encode:typeof i.encode==="boolean"?i.encode:Ze.encode,encoder:typeof i.encoder==="function"?i.encoder:Ze.encoder,encodeValuesOnly:typeof i.encodeValuesOnly==="boolean"?i.encodeValuesOnly:Ze.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:typeof i.serializeDate==="function"?i.serializeDate:Ze.serializeDate,skipNulls:typeof i.skipNulls==="boolean"?i.skipNulls:Ze.skipNulls,sort:typeof i.sort==="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:Ze.strictNullHandling}};var We=function(t,i){var e=t;var r=Ve(i);var n;var s;if(typeof r.filter==="function"){s=r.filter;e=s("",e)}else if(Ne(r.filter)){s=r.filter;n=s}var o=[];if(typeof e!=="object"||e===null){return""}var a;if(i&&i.arrayFormat in Re){a=i.arrayFormat}else if(i&&"indices"in i){a=i.indices?"indices":"repeat"}else{a="indices"}var l=Re[a];if(i&&"commaRoundTrip"in i&&typeof i.commaRoundTrip!=="boolean"){throw new TypeError("`commaRoundTrip` must be a boolean, or absent")}var c=l==="comma"&&i&&i.commaRoundTrip;if(!n){n=Object.keys(e)}if(r.sort){n.sort(r.sort)}var h=ve();for(var f=0;f<n.length;++f){var u=n[f];if(r.skipNulls&&e[u]===null){continue}Ye(o,Qe(e[u],u,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,h))}var p=o.join(r.delimiter);var d=r.addQueryPrefix===true?"?":"";if(r.charsetSentinel){if(r.charset==="iso-8859-1"){d+="utf8=%26%2310003%3B&"}else{d+="utf8=%E2%9C%93&"}}return p.length>0?d+p:""};var Ke=Object.prototype.hasOwnProperty;var Je=Array.isArray;var qe={allowDots:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decoder:Be.decode,delimiter:"&",depth:5,ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictNullHandling:false};var Xe=function(t){return t.replace(/&#(\d+);/g,(function(t,i){return String.fromCharCode(parseInt(i,10))}))};var tr=function(t,i){if(t&&typeof t==="string"&&i.comma&&t.indexOf(",")>-1){return t.split(",")}return t};var ir="utf8=%26%2310003%3B";var er="utf8=%E2%9C%93";var rr=function t(i,e){var r={__proto__:null};var n=e.ignoreQueryPrefix?i.replace(/^\?/,""):i;var s=e.parameterLimit===Infinity?undefined:e.parameterLimit;var o=n.split(e.delimiter,s);var a=-1;var l;var c=e.charset;if(e.charsetSentinel){for(l=0;l<o.length;++l){if(o[l].indexOf("utf8=")===0){if(o[l]===er){c="utf-8"}else if(o[l]===ir){c="iso-8859-1"}a=l;l=o.length}}}for(l=0;l<o.length;++l){if(l===a){continue}var h=o[l];var f=h.indexOf("]=");var u=f===-1?h.indexOf("="):f+1;var p,d;if(u===-1){p=e.decoder(h,qe.decoder,c,"key");d=e.strictNullHandling?null:""}else{p=e.decoder(h.slice(0,u),qe.decoder,c,"key");d=Be.maybeMap(tr(h.slice(u+1),e),(function(t){return e.decoder(t,qe.decoder,c,"value")}))}if(d&&e.interpretNumericEntities&&c==="iso-8859-1"){d=Xe(d)}if(h.indexOf("[]=")>-1){d=Je(d)?[d]:d}if(Ke.call(r,p)){r[p]=Be.combine(r[p],d)}else{r[p]=d}}return r};var nr=function(t,i,e,r){var n=r?i:tr(i,e);for(var s=t.length-1;s>=0;--s){var o;var a=t[s];if(a==="[]"&&e.parseArrays){o=[].concat(n)}else{o=e.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(!e.parseArrays&&l===""){o={0:n}}else if(!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&(e.parseArrays&&c<=e.arrayLimit)){o=[];o[c]=n}else if(l!=="__proto__"){o[l]=n}}n=o}return n};var sr=function t(i,e,r,n){if(!i){return}var s=r.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i;var o=/(\[[^[\]]*])/;var a=/(\[[^[\]]*])/g;var l=r.depth>0&&o.exec(s);var c=l?s.slice(0,l.index):s;var h=[];if(c){if(!r.plainObjects&&Ke.call(Object.prototype,c)){if(!r.allowPrototypes){return}}h.push(c)}var f=0;while(r.depth>0&&(l=a.exec(s))!==null&&f<r.depth){f+=1;if(!r.plainObjects&&Ke.call(Object.prototype,l[1].slice(1,-1))){if(!r.allowPrototypes){return}}h.push(l[1])}if(l){h.push("["+s.slice(l.index)+"]")}return nr(h,e,r,n)};var or=function t(i){if(!i){return qe}if(i.decoder!==null&&i.decoder!==undefined&&typeof i.decoder!=="function"){throw new TypeError("Decoder has to be a function.")}if(typeof i.charset!=="undefined"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1"){throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined")}var e=typeof i.charset==="undefined"?qe.charset:i.charset;return{allowDots:typeof i.allowDots==="undefined"?qe.allowDots:!!i.allowDots,allowPrototypes:typeof i.allowPrototypes==="boolean"?i.allowPrototypes:qe.allowPrototypes,allowSparse:typeof i.allowSparse==="boolean"?i.allowSparse:qe.allowSparse,arrayLimit:typeof i.arrayLimit==="number"?i.arrayLimit:qe.arrayLimit,charset:e,charsetSentinel:typeof i.charsetSentinel==="boolean"?i.charsetSentinel:qe.charsetSentinel,comma:typeof i.comma==="boolean"?i.comma:qe.comma,decoder:typeof i.decoder==="function"?i.decoder:qe.decoder,delimiter:typeof i.delimiter==="string"||Be.isRegExp(i.delimiter)?i.delimiter:qe.delimiter,depth:typeof i.depth==="number"||i.depth===false?+i.depth:qe.depth,ignoreQueryPrefix:i.ignoreQueryPrefix===true,interpretNumericEntities:typeof i.interpretNumericEntities==="boolean"?i.interpretNumericEntities:qe.interpretNumericEntities,parameterLimit:typeof i.parameterLimit==="number"?i.parameterLimit:qe.parameterLimit,parseArrays:i.parseArrays!==false,plainObjects:typeof i.plainObjects==="boolean"?i.plainObjects:qe.plainObjects,strictNullHandling:typeof i.strictNullHandling==="boolean"?i.strictNullHandling:qe.strictNullHandling}};var ar=function(t,i){var e=or(i);if(t===""||t===null||typeof t==="undefined"){return e.plainObjects?Object.create(null):{}}var r=typeof t==="string"?rr(t,e):t;var n=e.plainObjects?Object.create(null):{};var s=Object.keys(r);for(var o=0;o<s.length;++o){var a=s[o];var l=sr(a,r[a],e,typeof t==="string");n=Be.merge(n,l,e)}if(e.allowSparse===true){return n}return Be.compact(n)};var lr={formats:xe,parse:ar,stringify:We};function cr(){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 hr=/^([a-z0-9.+-]+:)/i,fr=/:[0-9]*$/,ur=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,pr=["<",">",'"',"`"," ","\r","\n","\t"],dr=["{","}","|","\\","^","`"].concat(pr),mr=["'"].concat(dr),gr=["%","/","?",";","#"].concat(mr),vr=["/","?","#"],wr=255,br=/^[+a-z0-9A-Z_-]{0,63}$/,yr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xr={javascript:true,"javascript:":true},kr={javascript:true,"javascript:":true},Ar={http:true,https:true,ftp:true,gopher:true,file:true,"http:":true,"https:":true,"ftp:":true,"gopher:":true,"file:":true};function _r(t,i,e){if(t&&typeof t==="object"&&t instanceof cr){return t}var r=new cr;r.parse(t,i,e);return r}cr.prototype.parse=function(t,i,e){if(typeof t!=="string"){throw new TypeError("Parameter 'url' must be a string, not "+typeof t)}var r=t.indexOf("?"),n=r!==-1&&r<t.indexOf("#")?"?":"#",s=t.split(n),o=/\\/g;s[0]=s[0].replace(o,"/");t=s.join(n);var a=t;a=a.trim();if(!e&&t.split("#").length===1){var l=ur.exec(a);if(l){this.path=a;this.href=a;this.pathname=l[1];if(l[2]){this.search=l[2];if(i){this.query=lr.parse(this.search.substr(1))}else{this.query=this.search.substr(1)}}else if(i){this.search="";this.query={}}return this}}var c=hr.exec(a);if(c){c=c[0];var h=c.toLowerCase();this.protocol=h;a=a.substr(c.length)}if(e||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";if(f&&!(c&&kr[c])){a=a.substr(2);this.slashes=true}}if(!kr[c]&&(f||c&&!Ar[c])){var u=-1;for(var p=0;p<vr.length;p++){var d=a.indexOf(vr[p]);if(d!==-1&&(u===-1||d<u)){u=d}}var m,g;if(u===-1){g=a.lastIndexOf("@")}else{g=a.lastIndexOf("@",u)}if(g!==-1){m=a.slice(0,g);a=a.slice(g+1);this.auth=decodeURIComponent(m)}u=-1;for(var p=0;p<gr.length;p++){var d=a.indexOf(gr[p]);if(d!==-1&&(u===-1||d<u)){u=d}}if(u===-1){u=a.length}this.host=a.slice(0,u);a=a.slice(u);this.parseHost();this.hostname=this.hostname||"";var v=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!v){var w=this.hostname.split(/\./);for(var p=0,b=w.length;p<b;p++){var y=w[p];if(!y){continue}if(!y.match(br)){var x="";for(var k=0,A=y.length;k<A;k++){if(y.charCodeAt(k)>127){x+="x"}else{x+=y[k]}}if(!x.match(br)){var _=w.slice(0,p);var M=w.slice(p+1);var z=y.match(yr);if(z){_.push(z[1]);M.unshift(z[2])}if(M.length){a="/"+M.join(".")+a}this.hostname=_.join(".");break}}}}if(this.hostname.length>wr){this.hostname=""}else{this.hostname=this.hostname.toLowerCase()}if(!v){this.hostname=J.toASCII(this.hostname)}var L=this.port?":"+this.port:"";var C=this.hostname||"";this.host=C+L;this.href+=this.host;if(v){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(a[0]!=="/"){a="/"+a}}}if(!xr[h]){for(var p=0,b=mr.length;p<b;p++){var E=mr[p];if(a.indexOf(E)===-1){continue}var P=encodeURIComponent(E);if(P===E){P=escape(E)}a=a.split(E).join(P)}}var O=a.indexOf("#");if(O!==-1){this.hash=a.substr(O);a=a.slice(0,O)}var j=a.indexOf("?");if(j!==-1){this.search=a.substr(j);this.query=a.substr(j+1);if(i){this.query=lr.parse(this.query)}a=a.slice(0,j)}else if(i){this.search="";this.query={}}if(a){this.pathname=a}if(Ar[h]&&this.hostname&&!this.pathname){this.pathname="/"}if(this.pathname||this.search){var L=this.pathname||"";var S=this.search||"";this.path=L+S}this.href=this.format();return this};function Mr(t){if(typeof t==="string"){t=_r(t)}if(!(t instanceof cr)){return cr.prototype.format.call(t)}return t.format()}cr.prototype.format=function(){var t=this.auth||"";if(t){t=encodeURIComponent(t);t=t.replace(/%3A/i,":");t+="@"}var i=this.protocol||"",e=this.pathname||"",r=this.hash||"",n=false,s="";if(this.host){n=t+this.host}else if(this.hostname){n=t+(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){s=lr.stringify(this.query)}var o=this.search||s&&"?"+s||"";if(i&&i.substr(-1)!==":"){i+=":"}if(this.slashes||(!i||Ar[i])&&n!==false){n="//"+(n||"");if(e&&e.charAt(0)!=="/"){e="/"+e}}else if(!n){n=""}if(r&&r.charAt(0)!=="#"){r="#"+r}if(o&&o.charAt(0)!=="?"){o="?"+o}e=e.replace(/[?#]/g,(function(t){return encodeURIComponent(t)}));o=o.replace("#","%23");return i+n+e+o+r};function zr(t,i){return _r(t,false,true).resolve(i)}cr.prototype.resolve=function(t){return this.resolveObject(_r(t,false,true)).format()};function Lr(t,i){if(!t){return i}return _r(t,false,true).resolveObject(i)}cr.prototype.resolveObject=function(t){if(typeof t==="string"){var i=new cr;i.parse(t,false,true);t=i}var e=new cr;var r=Object.keys(this);for(var n=0;n<r.length;n++){var s=r[n];e[s]=this[s]}e.hash=t.hash;if(t.href===""){e.href=e.format();return e}if(t.slashes&&!t.protocol){var o=Object.keys(t);for(var a=0;a<o.length;a++){var l=o[a];if(l!=="protocol"){e[l]=t[l]}}if(Ar[e.protocol]&&e.hostname&&!e.pathname){e.pathname="/";e.path=e.pathname}e.href=e.format();return e}if(t.protocol&&t.protocol!==e.protocol){if(!Ar[t.protocol]){var c=Object.keys(t);for(var h=0;h<c.length;h++){var f=c[h];e[f]=t[f]}e.href=e.format();return e}e.protocol=t.protocol;if(!t.host&&!kr[t.protocol]){var u=(t.pathname||"").split("/");while(u.length&&!(t.host=u.shift())){}if(!t.host){t.host=""}if(!t.hostname){t.hostname=""}if(u[0]!==""){u.unshift("")}if(u.length<2){u.unshift("")}e.pathname=u.join("/")}else{e.pathname=t.pathname}e.search=t.search;e.query=t.query;e.host=t.host||"";e.auth=t.auth;e.hostname=t.hostname||t.host;e.port=t.port;if(e.pathname||e.search){var p=e.pathname||"";var d=e.search||"";e.path=p+d}e.slashes=e.slashes||t.slashes;e.href=e.format();return e}var m=e.pathname&&e.pathname.charAt(0)==="/",g=t.host||t.pathname&&t.pathname.charAt(0)==="/",v=g||m||e.host&&t.pathname,w=v,b=e.pathname&&e.pathname.split("/")||[],u=t.pathname&&t.pathname.split("/")||[],y=e.protocol&&!Ar[e.protocol];if(y){e.hostname="";e.port=null;if(e.host){if(b[0]===""){b[0]=e.host}else{b.unshift(e.host)}}e.host="";if(t.protocol){t.hostname=null;t.port=null;if(t.host){if(u[0]===""){u[0]=t.host}else{u.unshift(t.host)}}t.host=null}v=v&&(u[0]===""||b[0]==="")}if(g){e.host=t.host||t.host===""?t.host:e.host;e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname;e.search=t.search;e.query=t.query;b=u}else if(u.length){if(!b){b=[]}b.pop();b=b.concat(u);e.search=t.search;e.query=t.query}else if(t.search!=null){if(y){e.host=b.shift();e.hostname=e.host;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}e.search=t.search;e.query=t.query;if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.href=e.format();return e}if(!b.length){e.pathname=null;if(e.search){e.path="/"+e.search}else{e.path=null}e.href=e.format();return e}var k=b.slice(-1)[0];var A=(e.host||t.host||b.length>1)&&(k==="."||k==="..")||k==="";var _=0;for(var M=b.length;M>=0;M--){k=b[M];if(k==="."){b.splice(M,1)}else if(k===".."){b.splice(M,1);_++}else if(_){b.splice(M,1);_--}}if(!v&&!w){for(;_--;_){b.unshift("..")}}if(v&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")){b.unshift("")}if(A&&b.join("/").substr(-1)!=="/"){b.push("")}var z=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(y){e.hostname=z?"":b.length?b.shift():"";e.host=e.hostname;var x=e.host&&e.host.indexOf("@")>0?e.host.split("@"):false;if(x){e.auth=x.shift();e.hostname=x.shift();e.host=e.hostname}}v=v||e.host&&b.length;if(v&&!z){b.unshift("")}if(b.length>0){e.pathname=b.join("/")}else{e.pathname=null;e.path=null}if(e.pathname!==null||e.search!==null){e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")}e.auth=t.auth||e.auth;e.slashes=e.slashes||t.slashes;e.href=e.format();return e};cr.prototype.parseHost=function(){var t=this.host;var i=fr.exec(t);if(i){i=i[0];if(i!==":"){this.port=i.substr(1)}t=t.substr(0,t.length-i.length)}if(t){this.hostname=t}};var Cr=_r;var Er=zr;var Pr=Lr;var Or=Mr;var jr=cr;var Sr={parse:Cr,resolve:Er,resolveObject:Pr,format:Or,Url:jr};!function(t){t()}((function(){const t={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,e=60*i,r=24*e;function n(t,i){return new URL(t,t.startsWith("../")||t.startsWith("./")?i:void 0).toString()}function s(t,i){let e=m("a","",{href:t,target:"_new",download:i||"",style:"display:none;"}),r=document.body;r.appendChild(e),e.click(),r.removeChild(e)}function o(t,i,e){return t&&(({props:r,point:n,id:s,isMulti:o})=>{if(r)for(const l of t)if(l in r){n.meta[i]=(e||a).call(this,o?r[l][o]:r[l],s);break}})}const a=(t,i)=>parseInt("object"==typeof t?t[i]:t),l=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.addClass(t,i))),c=(t,i)=>t&&i.split(" ").every((i=>i&&L.DomUtil.removeClass(t,i))),h=(t,i,e)=>(e?l:c)(t,i),f=(t,i,e)=>i&&c(t,i)||e&&l(t,e),u=(t,i,e)=>void 0===e&&L.DomUtil.getStyle(t,i)||t.style.setProperty(i,e),p=(t,i)=>{for(let e in i)t.setAttribute(e,i[e])},d=(t,i,e,r)=>t[r?"on":"off"](i,e),m=(t,i,e,r)=>{let n=L.DomUtil.create(t,i||"");return e&&p(n,e),r&&g(r,n),n},g=(t,i)=>t.appendChild(i),v=(t,i,e)=>t.insertAdjacentElement(e,i),w=(t,i)=>(i||document).querySelector(t),b=(t,i)=>{for(let e in t)i(t[e],e)},y=()=>Math.random().toString(36).substr(2,9),{on:x,off:k}=L.DomEvent,{throttle:A,wrapNum:_}=L.Util,{hasClass:M}=L.DomUtil,z=L.Util.formatNum,C=(t,i)=>i?t<i[0]?i[0]:t>i[1]?i[1]:t:t,E=(t,i,e)=>Math.abs(t-i)>e?i+e*Math.sign(t-i):t;function P(t,i=[],e=[]){switch(!t||typeof t){case"object":const r=e.filter((i=>t===i.original))[0];if(r)return r.copy;const n=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return e.push({original:t,copy:n}),Object.getOwnPropertyNames(t).forEach((function(r){const s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get||s.set?s:{writable:s.writable,configurable:s.configurable,enumerable:s.enumerable,value:i.includes(r)?s.value:P(s.value,i,e)})})),n;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var O=Object.freeze({__proto__:null,Colors:t,addClass:l,append:g,clamp:C,cloneDeep:P,coordPropsToMeta:o,create:m,drawCanvas:function(t,i){i.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let e=new Path2D(i.attr("d"));t.strokeStyle=i.attr("stroke"),t.fillStyle=i.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=i.attr("stroke-opacity")||.3,t.stroke(e),t.globalAlpha=i.attr("fill-opacity")||.45,t.fill(e),t.globalAlpha=1,t.closePath()},each:b,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():i=>t(i):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let n=Math.floor(t/r),s=Math.floor((t-n*r)/e),o=Math.floor((t-n*r-s*e)/i),a=Math.round((t-n*r-s*e-o*i)/1e3);return 60===a&&(o++,a=0),60===o&&(s++,o=0),24===s&&(n++,s=0),(n?n+"d ":"")+s.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+a.toString().padStart(2,0)+'"'},hasClass:M,iAvg:(t,i=0,e=1)=>(t+i*(e-1))/e,iMax:(t,i=-1/0)=>t>i?t:i,iMin:(t,i=1/0)=>t<i?t:i,iSum:(t,i=0)=>t+i,insert:v,off:k,on:x,parseDate:(t,i)=>new Date(Date.parse("object"==typeof t?t[i]:t)),parseNumeric:a,randomId:y,removeClass:c,replaceClass:f,resolveURL:n,round:z,saveFile:s,select:w,setAttributes:p,style:u,throttle:A,toggleClass:h,toggleEvent:d,toggleStyle:(t,i,e,r)=>u(t,i,r?e:""),wrapDelta:E,wrapNum:_}),j={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?Sr.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?Sr.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=(t,i)=>t);const S=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:j,__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(t,i){this.import(this.__D3).then((()=>{this._modulesLoaded?(i=i??(t.on&&t),this._addData(t),this._addLayer(i),this._fireEvt("eledata_added",{data:t,layer:i,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,i)))}))},addTo(t){if(this.options.detached){let i=w(this.options.elevationDiv),e=this.onAdd(t);i?g(i,e):v(t.getContainer(),e,"afterend")}else L.Control.prototype.addTo.call(this,t);return this},clear(){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((t=>t.options.renderer.remove())),this._hotline&&this._clearLayers(this._hotline),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart()},_clearChart(){this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((({fn:t,ctx:i})=>this.off("elechart_updated",t,i))),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear())},_clearLayers(t){(t=t||this._layers)&&t.eachLayer&&(t.eachLayer((t=>t.remove())),t.clearLayers())},disableBrush(){this._chart._brushEnabled=!1,this._resetDrag()},enableBrush(){this._chart._brushEnabled=!0},disableZoom(){this._chart._zoomEnabled=!1,this._chart._resetZoom()},enableZoom(){this._chart._zoomEnabled=!0},fitBounds(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t)},getBounds(t){return L.latLngBounds((t||this._data).map((t=>t.latlng)))},getZFollow(){return this.options.zFollow},hide(){u(this._container,"display","none")},initialize(i){i=L.setOptions(this,L.extend({},P(j),i)),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],i.trkStart||j.trkStart),this._end=L.circleMarker([0,0],i.trkEnd||j.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},i.followMarker&&(this._setMapView=A(this._setMapView,300,this)),i.legend&&(i.margins.bottom+=30),i.theme&&(i.polylineSegments.className+=" "+i.theme),!0===i.wptIcons&&(i.wptIcons=j.wptIcons),!0===i.distanceMarkers&&(i.distanceMarkers=j.distanceMarkers),i.trkStart&&this._start.addTo(this._circleMarkers),i.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(i.polylineSegments),L.extend(t,i.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize()},import(t,i){switch(t){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?__sc_import_geotrek_rando_widget(n(t,this.options.srcFolder)):Promise.resolve()},load(t){this._parseFromString(t).then((i=>i?this._loadLayer(i):this._loadFile(t)))},onAdd(t){this._map=t;let i=this._container=m("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+y()}:{});return this.eleDiv||(this.eleDiv=i),this._loadModules(this.options.handlers).then((()=>{this._initChart(i),this._initButton(i),this._initSummary(i),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded")})),this.fire("add"),i},onRemove(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),k(t.getContainer(),"mousewheel",this._resetDrag,this),k(t.getContainer(),"touchstart",this._resetDrag,this),k(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(){this._resizeChart()},setZFollow(t){this.options.zFollow=t},show(){u(this._container,"display","block")},_addData(t){if(t){if("FeatureCollection"===t.type)return b(t.features,(t=>this._addData(t)));if("Feature"===t.type){let i=t.geometry;if(i)switch(i.type){case"LineString":return this._addGeoJSONData(i.coordinates,t.properties);case"MultiLineString":return b(i.coordinates,((i,e)=>this._addGeoJSONData(i,t.properties,e)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+i.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,i,e){let r=i&&i.coordinateProperties||i;t.forEach(((t,i)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[i>0?i-1:0][t]:this._data[i>0?i-1:0],this.fire("elepoint_init",{point:t,props:r,id:i,isMulti:e}),this._addPoint(t.lat??t[1],t.lng??t[0],t.alt??t.meta.ele??t[2]),this.fire("elepoint_added",{point:t,index:this._data.length-1}),this._yCoordMax<this._data[this._data.length-1][this.options.yAttr]&&(this._yCoordMax=this._data[this._data.length-1][this.options.yAttr])})),this.fire("eletrack_added",{coords:t,index:this._data.length-1})},_addPoint(t,i,e){this.options.reverseCoords&&([t,i]=[i,t]),this._data.push({x:t,y:i,z:e,latlng:L.latLng(t,i,e)}),this.fire("eledata_updated",{index:this._data.length-1})},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:i})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[i+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,i){return t&&this.options.almostOver&&!L.Browser.mobile?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LALMOSTOVER)]).then((()=>{t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(i),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(i),t.off("almost:move",this._onMouseMoveLayer,this).off("almost:out",this._onMouseOut,this)})))})):Promise.resolve()},_initDistanceMarkers(){return this.options.distanceMarkers?Promise.all([this.import(this.__LGEOMUTIL),this.import(this.__LDISTANCEM)]):Promise.resolve()},_initEdgeScale(t){return this.options.edgeScale?Promise.all([this.import(this.__LEDGESCALE)]).then((()=>{t.edgeScaleControl=t.edgeScaleControl||L.control.edgeScale("boolean"!=typeof this.options.edgeScale?this.options.edgeScale:{}).addTo(t)})):Promise.resolve()},_initHotLine(t){let i="string"==typeof this.options.hotline?this.options.hotline:"elevation";return this.options.hotline?this.import(this.__LHOTLINE).then((()=>{t.eachLayer((t=>{if("Point"!=t.feature.geometry.type){let e=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),r=L.hotline(e.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[i+"_min"])?this.track_info[i+"_min"]:0,max:isFinite(this.track_info[i+"_max"])?this.track_info[i+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),n=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:i})=>{t.setStyle({opacity:"add"==i?0:n}),r["add"==i?"addTo":"removeFrom"](t._map),r._renderer&&r._renderer._container.parentElement.insertBefore(r._renderer._container,r._renderer._container.parentElement.firstChild)}))}}))})):Promise.resolve()},_initMapIntegrations(t){let 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(t),this._initAlmostOverHandler(i,t),this._initDistanceMarkers(),this._initEdgeScale(i)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(i)),this._circleMarkers.addTo(i)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),i.invalidateSize()}))):this.once("add",(()=>this._initMapIntegrations(t)))},_collapse(){f(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize()},_expand(){f(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize()},_fixCanvasPaths(){let i=L.Canvas.prototype._fillStroke,e=this,r=this.options.theme.split(" ")[0].replace("-theme",""),n=t[r]||{};L.Canvas.include({_fillStroke(t,s){if(e._layers.hasLayer(s)){let e=s.options;if(e.color=n.line||n.area||r,e.stroke=!!e.color,i.call(this,t,s),e.stroke&&0!==e.weight){let i=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=n.outline||"#FFF",t.lineWidth=1.75*e.weight,t.stroke(),t.globalCompositeOperation=i}}else i.call(this,t,s)}})},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:i})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,i),this._chart._showDiagramIndicator(t,i)),this._updateMarker(t)}))))},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,i,e){this.fire&&this.fire(t,i,e),this._map&&this._map.fire(t,i,e)},_hideMarker(){this.options.autohideMarker&&this._marker.remove()},_initChart(t){let i=this.options,e=this._map;if(i.detached){let{offsetWidth:t,offsetHeight:e}=this.eleDiv;t>0&&(i.width=t),e>20&&(i.height=e-20)}else{let{clientWidth:t}=e.getContainer();i._maxWidth=i._maxWidth>i.width?i._maxWidth:i.width,this._container.style.maxWidth=i._maxWidth+"px",i._maxWidth>t&&(i.width=t-30)}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((r=>{let n=this._chart=new(r[1]||S).Chart(i,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(n.render()),n.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._onMouseEnter,this).on("dragged",this._onDragEnd,this).on("mouse_move",this._onMouseMove,this).on("mouse_out",this._onMouseOut,this).on("ruler_filter",this._onRulerFilter,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._onToggleChart,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_init"),e.on("zoom viewreset zoomanim",this._hideMarker,this).on("resize",this._resetView,this).on("resize",this._resizeChart,this).on("rotate",this._rotateMarker,this).on("mousedown",this._resetDrag,this),x(e.getContainer(),"mousewheel",this._resetDrag,this),x(e.getContainer(),"touchstart",this._resetDrag,this),x(document,"keydown",this._onKeyDown,this),this.on("eledata_added eledata_loaded",this._updateChart,this).on("eledata_added eledata_loaded",this._updateSummary,this),this._updateChart(),this._updateSummary()}))},_initLayer(){this._layers.on("layeradd layerremove",(({layer:t,type:i})=>{let e=t.getElement&&t.getElement();h(e,this.options.polyline.className+" "+this.options.theme,"layeradd"==i),d(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==i),d(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==i)}))},_initMarker(t){let i=t.getPane("elevationPane");i||(i=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.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((t=>{this._marker=new(t[1]||S).Marker(this.options,this),this.fire("elechart_marker")}))},_initButton(t){if(L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),this.options.collapsed?this._collapse():this._expand(),this.options.autohide&&(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let i=this._button=m("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);x(i,"click",L.DomEvent.stop),x(i,"click",this._toggle,this),x(i,"focus",this._toggle,this),fetch(n(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>i.innerHTML=t))))}},_initSummary(t){this.import(this.__LSUMMARY).then((i=>{this._summary=new(i||S).Summary({summary:this.options.summary},this),this.on("elechart_init",(()=>{d3.select(t).call(this._summary.render())}))}))},_loadFile(t){fetch(t).then((t=>t.text())).then((i=>{this._downloadURL=t,this._parseFromString(i).then((t=>t&&this._loadLayer(t)))})).catch((t=>console.warn(t)))},_loadModules(t){let i=(t=t.map((t=>"string"==typeof t&&void 0!==S[t]?S[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(i).then((i=>{b(i,((i,e)=>{let r=i&&Object.keys(i)[0];r&&(t[e]=S[r]=S[r]??i[r])})),b(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)))}))},_loadLayer(t){let{polyline:i,theme:e,waypoints:r,wptIcons:n,wptLabels:s,distanceMarkers:o}=this.options,a=L.extend({},i);e&&(a.className+=" "+e),t.name&&(this.track_info.name=t.name);let l=L.geoJson(t,{distanceMarkers:o,style:a,pointToLayer:(t,i)=>{if(r){let{desc:e,name:o,sym:a}=t.properties;if(e=e||"",o=o||"",[!0,"dots"].includes(r)&&this._registerCheckPoint({latlng:i,label:[!0,"dots"].includes(s)?o:""}),[!0,"markers"].includes(r)&&0!=n)return this._registerMarker({latlng:i,sym:(a??o).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(s)&&(o||e)&&decodeURI("<b>"+o+"</b>"+(e.length>0?"<br>"+e:""))})}},onEachFeature:(t,i)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,i)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(l);const i={data:t,layer:l,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",i):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",i)))})),l},_onDragEnd({dragstart:t,dragend:i}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,i.latlng])),this.fire("elechart_dragged")},_onKeyDown({key:t}){this.options.detached||"Escape"!==t||this._collapse()},_onMouseEnter(){this.fire("elechart_enter")},_onMouseMove({xCoord:t}){if(this._chartEnabled&&this._data.length){let i=this._findItemForX(t);i&&(this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this._setMapView(i),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:i,xCoord:t}),this.fire("elechart_hover",{data:i,xCoord:t}))}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let i=this._findItemForLatLng(t);if(i){let t=i.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(i,t),this._updateMarker(i),this.fire("elechart_change",{data:i,xCoord:t})}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave")},_onRulerFilter({coords:t}){this._updateMapSegments(t)},_onToggleChart({name:t,enabled:i}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>h(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=i||"disabled"!=this.options[t]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove())},_parseFromGeoJSONString(t){try{return JSON.parse(t)}catch(t){}},_parseFromString(t){return new Promise((i=>this.import(this.__TOGEOJSON).then((()=>{let e;try{e=this._parseFromXMLString(t.trim())}catch(i){e=this._parseFromGeoJSONString(t.toString())}e&&(e.name=e.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),i(e)}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw"Invalid XML";let i=(new DOMParser).parseFromString(t,"text/xml"),e=i.documentElement.tagName.toLowerCase(),r=i.getElementsByTagName("name");if(i.getElementsByTagName("parsererror").length)throw"Invalid XML";e in toGeoJSON||(e="TrainingCenterDatabase"==i.documentElement.tagName?"tcx":"gpx");let n=toGeoJSON[e](i);return n.name=r.length>0?(Array.from(r).find((t=>"trk"==t.parentElement.tagName))??r[0]).textContent:"",n},_registerAreaPath(t){this.on("elechart_init",(()=>this._chart._registerAreaPath(t)))},_registerAxisGrid(t){this.on("elechart_axis",(()=>this._chart._registerAxisGrid(t)))},_registerAxisScale(t){this.on("elechart_axis",(()=>this._chart._registerAxisScale(t)))},_registerCheckPoint(t){const i=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",i).once("eledata_clear",(()=>this.off("elechart_updated",i)))},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(i=>t.coordPropsToMeta.call(this,i)));let i,e,r,n=t.attr||t.name,s={};this.on("elepoint_added",(({index:o,point:a})=>{if(i=o,r=e??this._data[i],e=this._data[i],e[n]=t.pointToAttr.call(this,a,i),i>0&&isNaN(r[n])&&(isNaN(s[n])||isNaN(e[n])?isNaN(s[n])?isNaN(e[n])||(r[n]=e[n]):r[n]=s[n]:r[n]=(s[n]+e[n])/2,t.meta&&(r[t.meta]=r[n])),!isNaN(e[n])){if(s[n]=e[n],t.deltaMax&&(e[n]=E(e[n],r[n],t.deltaMax)),t.clampRange&&(e[n]=C(e[n],t.clampRange)),isNaN(t.decimals)||(e[n]=z(e[n],t.decimals)),t.stats)for(const i in t.stats){let r=(t.statsName||n)+(""!=i?"_":"");this.track_info[r+i]=t.stats[i].call(this,e[n],this.track_info[r+i],this._data.length)}t.onPointAdded&&t.onPointAdded.call(this,e[n],i,a)}}))},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:i,attr:e,required:r,deltaMax:n,clampRange:s,decimals:a,meta:l,unit:c,coordinateProperties:h,coordPropsToMeta:f,pointToAttr:u,onPointAdded:p,stats:d,statsName:m,grid:g,scale:v,path:w,tooltip:y,summary:x}=t;(this.options[i]||r)&&(this._registerDataAttribute({name:i,attr:e,meta:l,deltaMax:n,clampRange:s,decimals:a,coordPropsToMeta:o(h,l||i,f),pointToAttr:u,onPointAdded:p,stats:d,statsName:m}),g&&this._registerAxisGrid(L.extend({name:i},g)),"summary"!==this.options[i]&&(v&&this._registerAxisScale(L.extend({name:i,label:c},v)),w&&this._registerAreaPath(L.extend({name:i},w))),(y||t.tooltips)&&b([y,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:i},t)))),x&&(b(x,((t,i)=>x[i]=L.extend({unit:c},t))),this._registerSummary(x)))},_registerMarker({latlng:t,sym:i,content:e}){let{wptIcons:r}=this.options;r.hasOwnProperty(i)||(r[i]=L.divIcon(L.extend({},r[""].options,{html:'<i class="elevation-waypoint-icon '+i+'"></i>'})));let n=L.marker(t,{icon:r[i]});return e&&(n.bindPopup(e,{className:"elevation-popup",keepInView:!0}).openPopup(),n.bindTooltip(e,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(n)},_registerTooltip(t){t.chart&&this.on("elechart_init",(()=>this._chart._registerTooltip(L.extend({},t,{value:t.chart})))),t.marker&&this.on("elechart_marker",(()=>this._marker._registerTooltip(L.extend({},t,{value:t.marker}))))},_registerSummary(t){this.on("elechart_summary",(()=>this._summary._registerSummary(t)))},_resetDrag(){this._chart._resetDrag(),this._hideMarker()},_resetView(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds())},_resizeChart(){if(this._container&&"none"!=u(this._container,"display")){let t=this.options,i=t.detached?(this.eleDiv||this._container).offsetWidth:C(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);i&&(t.width=i,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments()}},_toggle(){M(this._container,"elevation-expanded")?this._collapse():this._expand()},_setMapView(t){if(this._map&&this.options.followMarker){let i=this._map.getZoom(),e=this.options.zFollow;"number"==typeof e?this._map.setView(t.latlng,i<e?e:i,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,i,{animate:!0,duration:.25})}},_updateChart(){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(t){this._marker&&this._marker.update({map:this._map,item:t,yCoordMax:this._yCoordMax||0,options:this.options})},_rotateMarker(){this._marker&&this._marker.update()},_updateMapSegments(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map)},_updateSummary(){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=t=>{t.preventDefault();let i={downloadLink:this.options.downloadLink,confirm:s.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:i})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||i.confirm(),this.fire("eletrack_download",i)}))},_width(){if(this._chart)return this._chart._width();const{width:t,margins:i}=this.options;return t-i.left-i.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:i}=this.options;return t-i.top-i.bottom}});S.Utils=O,L.control.elevation=t=>new S(t)}));Q((function(t,i){!function(t,e){e(i)}(U,(function(t){var i=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var i=t,e=this._zoom;if(t.__parent)for(;i.__parent._zoom>=e;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,i):this._animationAddLayerNonAnimated(t,i)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):(t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t})):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t})),this)},addLayers:function(t,i){if(!L.Util.isArray(t))return this.addLayer(t);var e,r=this._featureGroup,n=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,a=this.options.chunkProgress,l=t.length,c=0,h=!0;if(this._map){var f=(new Date).getTime(),u=L.bind((function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<l;c++){if(s&&c%200==0){var d=(new Date).getTime()-p;if(o<d)break}if((e=t[c])instanceof L.LayerGroup)h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length;else if(e.getLatLng){if(!this.hasLayer(e)&&(this._addLayer(e,this._maxZoom),i||this.fire("layeradd",{layer:e}),e.__parent&&2===e.__parent.getChildCount())){var m=e.__parent.getAllChildMarkers(),g=m[0]===e?m[1]:m[0];r.removeLayer(g)}}else n.addLayer(e),i||this.fire("layeradd",{layer:e})}a&&a(c,l,(new Date).getTime()-f),c===l?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(u,this.options.chunkDelay)}),this);u()}else for(var p=this._needsClustering;c<l;c++)(e=t[c])instanceof L.LayerGroup?(h&&(t=t.slice(),h=!1),this._extractNonGroupLayers(e,t),l=t.length):e.getLatLng?this.hasLayer(e)||p.push(e):n.addLayer(e);return this},removeLayers:function(t){var i,e,r=t.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):(this._arraySplice(this._needsClustering,e),s.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),l=r;for(i=0;i<l;i++)(e=a[i])instanceof L.LayerGroup?(this._extractNonGroupLayers(e,a),l=a.length):this._unspiderfyLayer(e)}for(i=0;i<r;i++)(e=t[i])instanceof L.LayerGroup?(o&&(t=t.slice(),o=!1),this._extractNonGroupLayers(e,t),r=t.length):e.__parent?(this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e}),n.hasLayer(e)&&(n.removeLayer(e),e.clusterShow&&e.clusterShow())):(s.removeLayer(e),this.fire("layerremove",{layer:e}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer((function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent}),this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var i=this._needsClustering.length-1;0<=i;i--)t.extend(this._needsClustering[i].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,i){var e,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(e=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){e=!1;break}e&&t.call(i,s[r])}this._nonPointGroup.eachLayer(t,i)},getLayers:function(){var t=[];return this.eachLayer((function(i){t.push(i)})),t},getLayer:function(t){var i=null;return t=parseInt(t,10),this.eachLayer((function(e){L.stamp(e)===t&&(i=e)})),i},hasLayer:function(t){if(!t)return!1;var i,e=this._needsClustering;for(i=e.length-1;0<=i;i--)if(e[i]===t)return!0;for(i=(e=this._needsRemoving).length-1;0<=i;i--)if(e[i].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,i){var e=this._map;"function"!=typeof i&&(i=function(){});var r=function(){!e.hasLayer(t)&&!e.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),e.hasLayer(t)?i():t.__parent._icon&&(this.once("spiderfied",i,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?i():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),t.__parent.zoomToBounds())},onAdd:function(t){var i,e,r;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,i=0,e=this._needsRemoving.length;i<e;i++)(r=this._needsRemoving[i]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(i=0,e=this._needsRemoving.length;i<e;i++)r=this._needsRemoving[i],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(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var i=t;i&&!i._icon;)i=i.__parent;return i||null},_arraySplice:function(t,i){for(var e=t.length-1;0<=e;e--)if(t[e]===i)return t.splice(e,1),!0},_removeFromGridUnclustered:function(t,i){for(var e=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=i&&r[i].removeObject(t,e.project(t.getLatLng(),i));i--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var i=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),i&&t.target.openPopup()}},_moveChild:function(t,i,e){t._latlng=i,this.removeLayer(t),t._latlng=e,this.addLayer(t)},_childMarkerDragEnd:function(t){var i=t.target.__dragStart;delete t.target.__dragStart,i&&this._moveChild(t.target,i,t.target._latlng)},_removeLayer:function(t,i,e){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(t,this._maxZoom);var l,c=t.__parent,h=c._markers;for(this._arraySplice(h,t);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<a));)i&&c._childCount<=1?(l=c._markers[0]===t?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),n[c._zoom].addObject(l,o.project(l.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(l),l.__parent=c.__parent,c._icon&&(s.removeLayer(c),e||s.addLayer(l))):c._iconNeedsUpdate=!0,c=c.__parent;delete t.__parent},_isOrIsParent:function(t,i){for(;i;){if(t===i)return!0;i=i.parentNode}return!1},fire:function(t,i,e){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,i,e)},listens:function(t,i){return L.FeatureGroup.prototype.listens.call(this,t,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,i)},_defaultIconCreateFunction:function(t){var i=t.getChildCount(),e=" marker-cluster-";return e+=i<10?"small":i<100?"medium":"large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+e,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,i=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(i||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var i=t.layer,e=i;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===e._childClusters.length;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(t||e||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),i=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,r=e;"function"!=typeof e&&(r=function(){return e}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;i<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,i-1)},_addLayer:function(t,i){var e,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);o<=i;i--){e=this._map.project(t.getLatLng(),i);var a=n[i].getNearObject(e);if(a)return a._addChild(t),void(t.__parent=a);if(a=s[i].getNearObject(e)){var l=a.__parent;l&&this._removeLayer(a,!1);var c=new this._markerCluster(this,i,a,t);n[i].addObject(c,this._map.project(c._cLatLng,i)),a.__parent=c;var h=t.__parent=c;for(r=i-1;r>l._zoom;r--)h=new this._markerCluster(this,r,h),n[r].addObject(h,this._map.project(a.getLatLng(),r));return l._addChild(h),void this._removeFromGridUnclustered(a,i)}s[i].addObject(t,e)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}))},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var i=this._maxLat;return void 0!==i&&(t.getNorth()>=i&&(t._northEast.lat=1/0),t.getSouth()<=-i&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,i){if(i===t)this._featureGroup.addLayer(t);else if(2===i._childCount){i._addToMap();var e=i.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else i._updateIcon()},_extractNonGroupLayers:function(t,i){var e,r=t.getLayers(),n=0;for(i=i||[];n<r.length;n++)(e=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(e,i):i.push(e);return i},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,i){this._animationAddLayerNonAnimated(t,i)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,i){var e,r=this._getExpandedVisibleBounds(),n=this._featureGroup,s=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(r,t,s,(function(s){var o,a=s._latlng,l=s._markers;for(r.contains(a)||(a=null),s._isSingleParent()&&t+1===i?(n.removeLayer(s),s._recursivelyAddChildrenToMap(null,i,r)):(s.clusterHide(),s._recursivelyAddChildrenToMap(a,i,r)),e=l.length-1;0<=e;e--)o=l[e],r.contains(o._latlng)||n.removeLayer(o)})),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(r,i),n.eachLayer((function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()})),this._topClusterLevel._recursively(r,t,i,(function(t){t._recursivelyRestoreChildPositions(i)})),this._ignoreMove=!1,this._enqueue((function(){this._topClusterLevel._recursively(r,t,s,(function(t){n.removeLayer(t),t.clusterShow()})),this._animationEnd()}))},_animationZoomOut:function(t,i){this._animationZoomOutSingle(this._topClusterLevel,t-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,i){var e=this,r=this._featureGroup;r.addLayer(t),i!==t&&(2<i._childCount?(i._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(i.getLatLng())),t.clusterHide(),this._enqueue((function(){r.removeLayer(t),t.clusterShow(),e._animationEnd()}))):(this._forceLayout(),e._animationStart(),e._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,i,e){var r=this._getExpandedVisibleBounds(),n=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(r,n,i+1,e);var s=this;this._forceLayout(),t._recursivelyBecomeVisible(r,e),this._enqueue((function(){if(1===t._childCount){var o=t._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else t._recursively(r,e,n,(function(t){t._recursivelyRemoveChildrenFromMap(r,n,i+1)}));s._animationEnd()}))},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var e=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,i,e,r){L.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,e&&this._addChild(e),r&&this._addChild(r)},getAllChildMarkers:function(t,i){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t,i);for(var r=this._markers.length-1;0<=r;r--)i&&this._markers[r].__dragStart||t.push(this._markers[r]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var i,e=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<e.length&&s<n;){s++;var a=[];for(i=0;i<e.length;i++)a=a.concat(e[i]._childClusters);e=a}s<n?this._group._map.setView(this._latlng,s):n<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(i||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(i||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,i,e,r,n=this._markers,s=this._childClusters,o=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<n.length;t++)e=n[t]._latlng,this._bounds.extend(e),o+=e.lat,a+=e.lng;for(t=0;t<s.length;t++)(i=s[t])._boundsNeedUpdate&&i._recalculateBounds(),this._bounds.extend(i._bounds),e=i._wLatLng,r=i._childCount,o+=e.lat*r,a+=e.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,i,e){this._recursively(t,this._group._map.getMinZoom(),e-1,(function(t){var e,r,n=t._markers;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}),(function(t){var e,r,n=t._childClusters;for(e=n.length-1;0<=e;e--)(r=n[e])._icon&&(r._setPos(i),r.clusterHide())}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,e,r){this._recursively(t,r,i,(function(n){n._recursivelyAnimateChildrenIn(t,n._group._map.latLngToLayerPoint(n.getLatLng()).round(),e),n._isSingleParent()&&e-1===r?(n.clusterShow(),n._recursivelyRemoveChildrenFromMap(t,i,e)):n.clusterHide(),n._addToMap()}))},_recursivelyBecomeVisible:function(t,i){this._recursively(t,this._group._map.getMinZoom(),i,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,i,e){this._recursively(e,this._group._map.getMinZoom()-1,i,(function(r){if(i!==r._zoom)for(var n=r._markers.length-1;0<=n;n--){var s=r._markers[n];e.contains(s._latlng)&&(t&&(s._backupLatlng=s.getLatLng(),s.setLatLng(t),s.clusterHide&&s.clusterHide()),r._group._featureGroup.addLayer(s))}}),(function(i){i._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var i=this._markers.length-1;0<=i;i--){var e=this._markers[i];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(t-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,i,e,r){var n,s;this._recursively(t,i-1,e-1,(function(t){for(s=t._markers.length-1;0<=s;s--)n=t._markers[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}),(function(t){for(s=t._childClusters.length-1;0<=s;s--)n=t._childClusters[s],r&&r.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())}))},_recursively:function(t,i,e,r,n){var s,o,a=this._childClusters,l=this._zoom;if(i<=l&&(r&&r(this),n&&l===e&&n(this)),l<i||l<e)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),t.intersects(o._bounds)&&o._recursively(t,i,e,r,n)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,i){var e=this._getCoord(i.x),r=this._getCoord(i.y),n=this._grid,s=n[r]=n[r]||{},o=s[e]=s[e]||[],a=L.Util.stamp(t);this._objectPoint[a]=i,o.push(t)},updateObject:function(t,i){this.removeObject(t),this.addObject(t,i)},removeObject:function(t,i){var e,r,n=this._getCoord(i.x),s=this._getCoord(i.y),o=this._grid,a=o[s]=o[s]||{},l=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(t)],e=0,r=l.length;e<r;e++)if(l[e]===t)return l.splice(e,1),1===r&&delete a[n],!0},eachObject:function(t,i){var e,r,n,s,o,a,l=this._grid;for(e in l)for(r in o=l[e])for(n=0,s=(a=o[r]).length;n<s;n++)t.call(i,a[n])&&(n--,s--)},getNearObject:function(t){var i,e,r,n,s,o,a,l,c=this._getCoord(t.x),h=this._getCoord(t.y),f=this._objectPoint,u=this._sqCellSize,p=null;for(i=h-1;i<=h+1;i++)if(n=this._grid[i])for(e=c-1;e<=c+1;e++)if(s=n[e])for(r=0,o=s.length;r<o;r++)a=s[r],((l=this._sqDist(f[L.Util.stamp(a)],t))<u||l<=u&&null===p)&&(u=l,p=a);return p},_getCoord:function(t){var i=Math.floor(t/this._cellSize);return isFinite(i)?i:t},_sqDist:function(t,i){var e=i.x-t.x,r=i.y-t.y;return e*e+r*r}},L.QuickHull={getDistant:function(t,i){var e=i[1].lat-i[0].lat;return(i[0].lng-i[1].lng)*(t.lat-i[0].lat)+e*(t.lng-i[0].lng)},findMostDistantPointFromBaseLine:function(t,i){var e,r,n,s=0,o=null,a=[];for(e=i.length-1;0<=e;e--)r=i[e],0<(n=this.getDistant(r,t))&&(a.push(r),s<n&&(s=n,o=r));return{maxPoint:o,newPoints:a}},buildConvexHull:function(t,i){var e=[],r=this.findMostDistantPointFromBaseLine(t,i);return r.maxPoint?e=(e=e.concat(this.buildConvexHull([t[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,t[1]],r.newPoints)):[t[0]]},getConvexHull:function(t){var i,e=!1,r=!1,n=!1,s=!1,o=null,a=null,l=null,c=null,h=null,f=null;for(i=t.length-1;0<=i;i--){var u=t[i];(!1===e||u.lat>e)&&(e=(o=u).lat),(!1===r||u.lat<r)&&(r=(a=u).lat),(!1===n||u.lng>n)&&(n=(l=u).lng),(!1===s||u.lng<s)&&(s=(c=u).lng)}return h=r!==e?(f=a,o):(f=c,l),[].concat(this.buildConvexHull([f,h],t),this.buildConvexHull([h,f],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,i,e=this.getAllChildMarkers(),r=[];for(i=e.length-1;0<=i;i--)t=e[i].getLatLng(),r.push(t);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,i=this.getAllChildMarkers(null,!0),e=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),t=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(i.length,e):i.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(i.length,e):(e.y+=10,this._generatePointsCircle(i.length,e)),this._animationSpiderfy(i,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,i){var e,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,o=[];for(n=Math.max(n,35),o.length=t,e=0;e<t;e++)r=this._circleStartAngle+e*s,o[e]=new L.Point(i.x+n*Math.cos(r),i.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(t,i){var e,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,l=[];for(e=l.length=t;0<=e;e--)e<t&&(l[e]=new L.Point(i.x+n*Math.cos(a),i.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*e);return l},_noanimationUnspiderfy:function(){var t,i,e=this._group,r=e._map,n=e._featureGroup,s=this.getAllChildMarkers(null,!0);for(e._ignoreMove=!0,this.setOpacity(1),i=s.length-1;0<=i;i--)t=s[i],n.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(r.removeLayer(t._spiderLeg),delete t._spiderLeg);e.fire("unspiderfied",{cluster:this,markers:s}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,i){var e,r,n,s,o=this._group,a=o._map,l=o._featureGroup,c=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,e=0;e<t.length;e++)s=a.layerPointToLatLng(i[e]),r=t[e],n=new L.Polyline([this._latlng,s],c),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),l.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,i){var e,r,n,s,o,a,l=this,c=this._group,h=c._map,f=c._featureGroup,u=this._latlng,p=h.latLngToLayerPoint(u),d=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),d?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,c._ignoreMove=!0,e=0;e<t.length;e++)r=t[e],a=h.layerPointToLatLng(i[e]),n=new L.Polyline([u,a],m),h.addLayer(n),r._spiderLeg=n,d&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),f.addLayer(r),r._setPos&&r._setPos(p);for(c._forceLayout(),c._animationStart(),e=t.length-1;0<=e;e--)a=h.layerPointToLatLng(i[e]),(r=t[e])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),d&&((s=(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:t})}),200)},_animationUnspiderfy:function(t){var i,e,r,n,s,o,a=this,l=this._group,c=l._map,h=l._featureGroup,f=t?c._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):c.latLngToLayerPoint(this._latlng),u=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(l._ignoreMove=!0,l._animationStart(),this.setOpacity(1),e=u.length-1;0<=e;e--)(i=u[e])._preSpiderfyLatlng&&(i.closePopup(),i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng,o=!0,i._setPos&&(i._setPos(f),o=!1),i.clusterHide&&(i.clusterHide(),o=!1),o&&h.removeLayer(i),p&&(s=(n=(r=i._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));l._ignoreMove=!1,setTimeout((function(){var t=0;for(e=u.length-1;0<=e;e--)(i=u[e])._spiderLeg&&t++;for(e=u.length-1;0<=e;e--)(i=u[e])._spiderLeg&&(i.clusterShow&&i.clusterShow(),i.setZIndexOffset&&i.setZIndexOffset(0),1<t&&h.removeLayer(i),c.removeLayer(i._spiderLeg),delete i._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:u})}),200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var i,e;for(i in t)for(e=t[i].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(t){var i,e;for(i in t)e=t[i],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),L.Marker.include({refreshIconOptions:function(t,i){var e=this.options.icon;return L.setOptions(e,t),this.setIcon(e),i&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=i,t.MarkerCluster=e,Object.defineProperty(t,"__esModule",{value:!0})}))}));function Tr(t){return fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=geometry`,{cache:"default"}).then((t=>t.json()))}const Ir='@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,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-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 img{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width: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}';const Br=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.touristicEventCardPress=o(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="#4974a5";this.colorPoiIcon="#974c6e";this.useGradient=false;this.resetStoreOnDisconnected=true;this.isLargeView=false}onCenterOnMap(t){this.map.setView(new K.LatLng(t.detail.latitude,t.detail.longitude),17,{animate:false})}stepsIsInViewport(t){if(this.currentStepsLayer){this.handleLayerVisibility(t.detail,this.currentStepsLayer)}}descriptionIsInViewport(t){if(this.currentReferencePointsLayer){this.handleLayerVisibility(t.detail,this.currentReferencePointsLayer)}}parkingIsInViewport(t){if(this.currentParkingLayer){this.handleLayerVisibility(t.detail,this.currentParkingLayer)}}onInformationDesksIsInViewport(t){if(this.currentInformationDesksLayer){this.handleLayerVisibility(t.detail,this.currentInformationDesksLayer)}}sensitiveAreaIsInViewport(t){if(this.currentSensitiveAreasLayer){this.handleLayerVisibility(t.detail,this.currentSensitiveAreasLayer)}}poiIsInViewport(t){if(this.currentPoisLayer){this.handleLayerVisibility(t.detail,this.currentPoisLayer)}}touristicContentsIsInViewport(t){if(this.currentToutisticContentsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticContentsLayer)}}touristicEventsIsInViewport(t){if(this.currentToutisticEventsLayer){this.handleLayerVisibility(t.detail,this.currentToutisticEventsLayer)}}onCardTrekMouseOver(t){if(!w.parentTrek&&(!w.selectedTrekId||w.selectedTrekId!==t.detail)){w.selectedTrekId=t.detail;this.hideTrekLine();this.showTrekLine(t.detail);this.addSelectedCurrentTrek(t.detail)}else if(w.parentTrek){this.stepPopupIsOpen=false;w.selectedStepId=null;this.addSelectedCurrentStep(t.detail)}}onCardTrekMouseLeave(){if(!this.trekPopupIsOpen&&w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}else if(this.currentStepsLayer){w.selectedStepId=null;this.removeSelectedCurrentStep()}}onTouristicContentMouseOver(t){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.addSelectedTouristicContent(t.detail)}onTouristicContentMouseLeave(){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}onTouristicEventMouseOver(t){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.addSelectedTouristicEvent(t.detail)}onTouristicEventMouseLeave(){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}componentDidLoad(){this.map=K.map(this.mapRef,{center:this.center.split(",").map(Number),zoom:this.zoom});K.control.scale({metric:true,imperial:false}).addTo(this.map);K.control.locate({showPopup:false}).addTo(this.map);const t=this.nameLayer?this.nameLayer.split(","):[];const i=this.urlLayer.split(",http").map(((t,i)=>i===0?t:"http"+t));const e=this.attributionLayer?this.attributionLayer.split(","):[];i.forEach(((i,r)=>{this.tileLayer.push({key:`${t[r]}`,value:K.tileLayer(i,{maxZoom:this.maxZoom,attribution:`${e[r]&&e[r]!==""?e[r].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=K.control.layers(this.tileLayer.reduce(((t,i)=>Object.assign(t,{[i.key]:i.value})),{}),{},{collapsed:true}).addTo(this.map);K.Control.Contract=K.Control.extend({onAdd:()=>{const t=K.DomUtil.create("div");t.className="leaflet-bar leaflet-control";const i=t.appendChild(K.DomUtil.create("a"));i.href="#";i.style.backgroundImage=`var(--contract-image-src)`;t.onclick=t=>{this.bounds&&this.map.fitBounds(this.bounds);t.preventDefault()};return t}});K.control.contract=t=>new K.Control.Contract(t);K.control.contract({position:"topleft"}).addTo(this.map)}if(w.currentTrek){this.addTrek()}else if(w.currentTreks){this.addTreks()}else if(w.currentTouristicContent){this.addTouristicContent()}else if(w.currentTouristicEvent){this.addTouristicEvent()}else if(w.touristicContents){this.addTouristicContents()}else if(w.touristicEvents){this.addTouristicEvents()}b("currentTreks",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvents();this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks(true)}}));b("currentTrek",(()=>{if(w.currentTrek){this.removeTreks();this.addTrek()}else if(w.currentTreks){this.removeTrek();this.removeTouristicContent();this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContent",(()=>{if(w.currentTouristicContent){this.removeTrek();this.removeTouristicContents();this.addTouristicContent()}else if(w.touristicContents){this.removeTouristicContent();this.addTouristicContents()}else if(w.currentTrek){this.removeTouristicContent();this.addTrek()}else if(w.currentTreks){this.removeTouristicContent();this.addTreks()}}));b("currentTouristicEvent",(()=>{if(w.currentTouristicEvent){this.removeTrek();this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTrek){this.removeTouristicEvent();this.addTrek()}else if(w.currentTreks){this.removeTouristicEvent();this.addTreks()}}));b("currentTouristicContents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicContent){this.removeTouristicContents();this.addTouristicContent()}else if(w.currentTouristicContents){this.removeTreks();this.removeTouristicEvents();this.removeTouristicContent();this.addTouristicContents(true)}}));b("currentTouristicEvents",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.currentTouristicEvent){this.removeTouristicEvents();this.addTouristicEvent()}else if(w.currentTouristicEvents){this.removeTreks();this.removeTouristicContents();this.removeTouristicEvent();this.addTouristicEvents(true)}}));b("mode",(()=>{this.hideTrekLine();this.removeSelectedCurrentTrek();this.removeSelectedTouristicContent();this.removeSelectedTouristicEvent();if(w.mode==="treks"){if(w.treks){this.removeTouristicContents();this.removeTouristicEvents();this.addTreks(true)}}else if(w.mode==="touristicContents"){if(w.touristicContents){this.removeTreks();this.removeTouristicEvents();this.addTouristicContents(true)}}else if(w.mode==="touristicEvents"){if(w.touristicEvents){this.removeTreks();this.removeTouristicContents();this.addTouristicEvents(true)}}}))}handleLayerVisibility(t,i){if(t&&!this.map.hasLayer(i)){i.addTo(this.map)}else if(this.map.hasLayer(i)&&!this.userLayersState[i._leaflet_id]){this.map.removeLayer(i)}this.handleLayersControlEvent()}addTreks(t=false){var i;w.treksWithinBounds=w.currentTreks;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTreks){for(const t of w.currentTreks){e.push(t.departure_geom);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(i=w.practices.find((i=>i.id===t.practice)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.treksLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=K.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.treksLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"trek-marker",iconSize:32,iconAnchor:[16,32]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.hideTrekLine();this.showTrekLine(t.properties.id);this.addSelectedCurrentTrek(t.properties.id,i.latlng)}))}});this.treksMarkerClusterGroup=K.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>K.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"treks-marker-cluster-group-icon",iconSize:48})});this.treksMarkerClusterGroup.addLayer(this.treksLayer);this.map.addLayer(this.treksMarkerClusterGroup)}else{if(e.length>0){this.bounds=K.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(r);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)}removeTreks(){if(this.treksLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.treksMarkerClusterGroup);this.treksLayer=null;this.treksMarkerClusterGroup=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}}handleTreksWithinBounds(){if(w.currentTreks&&!w.currentMapBounds||w.currentTreks&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.treksWithinBounds=w.currentTreks.filter((t=>this.map.getBounds().contains(K.latLng(t.departure_geom[1],t.departure_geom[0]))))}}handleTouristicContentsWithinBounds(){if(w.currentTouristicContents&&!w.currentMapBounds||w.currentTouristicContents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicContentsWithinBounds=w.currentTouristicContents.filter((t=>this.map.getBounds().contains(K.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}handleTouristicEventsWithinBounds(){if(w.currentTouristicEvents&&!w.currentMapBounds||w.currentTouristicEvents&&w.currentMapBounds&&w.currentMapBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){w.touristicEventsWithinBounds=w.currentTouristicEvents.filter((t=>this.map.getBounds().contains(K.latLng(t.geometry.coordinates[1],t.geometry.coordinates[0]))))}}addTrek(){var t,i,e,r;this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek();const n={type:"Feature",geometry:w.currentTrek.geometry,properties:{}};this.currentTrekLayer=K.geoJSON(n,{style:()=>({color:"transparent"}),interactive:false}).addTo(this.map);if(w.currentTrek.parking_location){const t=a(`${""}assets/parking.svg`);const i={type:"Feature",properties:{name:w.currentTrek.advised_parking},geometry:{type:"Point",coordinates:w.currentTrek.parking_location}};this.currentParkingLayer=K.geoJSON(i,{pointToLayer:(i,e)=>K.marker(e,{icon:K.divIcon({html:`<img crossorigin="anonymous" src=${t} />`,className:"parking-icon",iconSize:48,iconAnchor:[24,48]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="parking-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="parking-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentSensitiveAreas){t.features.push({type:"Feature",properties:{name:i.name},geometry:i.geometry})}this.currentSensitiveAreasLayer=K.geoJSON(t,{onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="sensitive-area-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="sensitive-area-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))},style:()=>({color:this.colorSensitiveArea})})}if(w.currentPois&&w.currentPois.length>0){const i={type:"FeatureCollection",features:[]};for(const e of w.currentPois){i.features.push({type:"Feature",properties:{name:e.name,type_pictogram:(t=w.poiTypes.find((t=>t.id===e.type)))===null||t===void 0?void 0:t.pictogram},geometry:e.geometry})}this.currentPoisLayer=K.geoJSON(i,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"poi-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="poi-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="poi-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.trekTouristicContents&&w.trekTouristicContents.length>0){const t={type:"FeatureCollection",features:[]};for(const e of w.trekTouristicContents){t.features.push({type:"Feature",properties:{name:e.name,category_pictogram:(i=w.touristicContentCategories.find((t=>t.id===e.category)))===null||i===void 0?void 0:i.pictogram},geometry:e.geometry})}this.currentToutisticContentsLayer=K.geoJSON(t,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.category_pictogram?`<img crossorigin="anonymous "src=${t.properties.category_pictogram} />`:`<img />`,className:"touristic-content-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="touristic-content-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.touristicEvents&&w.touristicEvents.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.touristicEvents){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:(e=w.touristicEventTypes.find((t=>t.id===i.type)))===null||e===void 0?void 0:e.pictogram},geometry:i.geometry})}this.currentToutisticEventsLayer=K.geoJSON(t,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.type_pictogram?`\n <img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"touristic-event-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="touristic-event-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentInformationDesks&&w.currentInformationDesks.length>0){const t={type:"FeatureCollection",features:[]};for(const i of w.currentInformationDesks.filter((t=>w.currentTrek.information_desks.includes(t.id)))){if(i.latitude&&i.longitude){t.features.push({type:"Feature",properties:{name:i.name,type_pictogram:i.type.pictogram},geometry:{type:"Point",coordinates:[Number(i.longitude),Number(i.latitude)]}})}}this.currentInformationDesksLayer=K.geoJSON(t,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.type_pictogram?`<img crossorigin="anonymous" src=${t.properties.type_pictogram} />`:`<img />`,className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("mouseover",(()=>{const e=K.DomUtil.create("div");e.className="information-desks-tooltip";const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="information-desks-name";e.appendChild(r);i.bindTooltip(e).openTooltip()}))}})}if(w.currentTrek.points_reference){const t={type:"FeatureCollection",features:[]};t.features.push({type:"Feature",properties:{},geometry:w.currentTrek.points_reference});let i=0;this.currentReferencePointsLayer=K.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return K.marker(e,{icon:K.divIcon({html:i,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}})}if(!this.currentStepsLayer&&w.parentTrekId&&w.parentTrek&&w.currentTrek.id===w.parentTrekId){const t={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){for(const i of w.currentTrekSteps){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:i.departure_geom},properties:{id:i.id,name:i.name,practice:(r=w.practices.find((t=>t.id===i.practice)))===null||r===void 0?void 0:r.pictogram,imgSrc:i.attachments&&i.attachments.length>0&&i.attachments[0].thumbnail}})}}let i=0;this.currentStepsLayer=K.geoJSON(t,{pointToLayer:(t,e)=>{i+=1;return K.marker(e,{zIndexOffset:4e6,icon:K.divIcon({html:`<div class="step-marker-container"><div class="step-number">${i}</div></div>`,className:"step-marker",iconSize:32}),autoPanOnFocus:false})},onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedCurrentStep(t.properties.id,i.latlng)}))}})}let s={"y: ":"","x: ":""};K.registerLocale("fr",s);K.setLocale("fr");const o={srcFolder:"https://unpkg.com/@raruto/leaflet-elevation/src/",elevationDiv:`#elevation`,theme:`custom-theme${!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=K.control.elevation(Object.assign({},o)).addTo(this.map);const c=JSON.stringify({name:`${w.currentTrek.name}`,type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"LineString",coordinates:w.currentTrek.geometry.coordinates},properties:null}]});this.elevationControl.load(c);const h={};if(this.currentStepsLayer){h[l[w.language].layers.steps]=this.currentStepsLayer}if(this.currentReferencePointsLayer){h[l[w.language].layers.referencePoints]=this.currentReferencePointsLayer}if(this.currentParkingLayer){h[l[w.language].layers.parking]=this.currentParkingLayer}if(this.currentSensitiveAreasLayer){h[l[w.language].layers.sensitiveArea]=this.currentSensitiveAreasLayer}if(this.currentInformationDesksLayer){h[l[w.language].layers.informationPlaces]=this.currentInformationDesksLayer}if(this.currentPoisLayer){h[l[w.language].layers.pois]=this.currentPoisLayer}if(this.currentToutisticContentsLayer){h[l[w.language].layers.touristicContents]=this.currentToutisticContentsLayer}if(this.currentToutisticEventsLayer){h[l[w.language].layers.touristicEvents]=this.currentToutisticEventsLayer}if(this.layersControl){Object.keys(h).forEach((t=>{this.layersControl.addOverlay(h[t],t)}))}else{this.layersControl=K.control.layers({},h,{collapsed:true}).addTo(this.map)}this.handleLayersControlEvent();this.bounds=K.latLngBounds(w.currentTrek.geometry.coordinates.map((t=>[t[1],t[0]])));this.bounds&&this.map.fitBounds(this.bounds);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}addSelectedCurrentTrek(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTreks){const n=w.currentTreks.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.departure_geom},properties:{id:n.id,name:n.name,practice:(e=w.practices.find((t=>t.id===n.practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedCurrentTrek();w.selectedTrekId=t;this.selectedCurrentTrekLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{zIndexOffset:4e6,icon:K.divIcon({html:t.properties.practice?`<div class="trek-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="trek-marker-container"></div>`,className:"selected-trek-marker",iconSize:64,iconAnchor:[32,64]}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.trekPopupIsOpen){w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}));i.on("popupopen",(()=>{this.trekPopupIsOpen=Boolean(w.selectedTrekId)}));i.on("popupclose",(()=>{if(w.selectedTrekId){this.trekPopupIsOpen=false;w.selectedTrekId=null;this.hideTrekLine();this.removeSelectedCurrentTrek()}}))}}).addTo(this.map)}removeSelectedCurrentTrek(){w.selectedTrekId=null;this.selectedCurrentTrekLayer&&this.map.removeLayer(this.selectedCurrentTrekLayer);this.selectedCurrentTrekLayer=null}addSelectedCurrentStep(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.currentTrekSteps){const n=w.currentTrekSteps.findIndex((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:w.currentTrekSteps[n].departure_geom},properties:{id:w.currentTrekSteps[n].id,name:w.currentTrekSteps[n].name,practice:(e=w.practices.find((t=>t.id===w.currentTrekSteps[n].practice)))===null||e===void 0?void 0:e.pictogram,imgSrc:w.currentTrekSteps[n].attachments&&w.currentTrekSteps[n].attachments.length>0&&w.currentTrekSteps[n].attachments[0].thumbnail,index:n+1}})}this.removeSelectedCurrentStep();w.selectedStepId=t;this.selectedCurrentStepLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{zIndexOffset:4e6,icon:K.divIcon({html:`<div class="step-marker-container"><div class="step-number">${t.properties.index}</div></div>`,className:"selected-step-marker",iconSize:64}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="trek-departure-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="trek-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="trek-button";n.onclick=()=>this.trekCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.stepPopupIsOpen){w.selectedTrekId=null;this.removeSelectedCurrentStep()}}));i.on("popupopen",(()=>{this.stepPopupIsOpen=Boolean(w.selectedStepId)}));i.on("popupclose",(()=>{if(w.selectedStepId){this.stepPopupIsOpen=false;w.selectedStepId=null;this.removeSelectedCurrentStep()}}))}}).addTo(this.map)}removeSelectedCurrentStep(){if(w.selectedStepId){w.selectedStepId=null;this.selectedCurrentStepLayer&&this.map.removeLayer(this.selectedCurrentStepLayer);this.selectedCurrentStepLayer=null}}handleLayersControlEvent(){const t=this.layersControl._layerControlInputs;t.forEach((t=>{if(this.layersControl._layers.find((i=>i.layer._leaflet_id===t.layerId)).overlay){t.onchange=i=>{this.userLayersState[t.layerId]=i.target.checked}}}))}removeTrek(){if(this.layersControl){if(!this.layersControl._layers.some((t=>!t.overlay))){this.map.removeControl(this.layersControl);this.layersControl=null}else{this.layersControl._layers.filter((t=>t.overlay)).forEach((t=>{this.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}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}showTrekLine(t){Tr(t).then((t=>{const i={type:"Feature",geometry:t.geometry,properties:{}};this.currentTrekLayer=K.geoJSON(i,{style:()=>({color:this.colorTrekLine}),interactive:false}).addTo(this.map)}))}hideTrekLine(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}}addTouristicContent(){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent();const t={type:"FeatureCollection",features:[]};if(w.currentTouristicContent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicContent.geometry.coordinates},properties:{id:w.currentTouristicContent.id,name:w.currentTouristicContent.name,practice:w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category)).pictogram}})}if(!this.currentToutisticContentLayer){this.currentToutisticContentLayer=K.geoJSON(t,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous "src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticContentLayer)}this.map.setView([w.currentTouristicContent.geometry.coordinates[1],w.currentTouristicContent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicContent(){if(this.currentToutisticContentLayer){this.map.removeLayer(this.currentToutisticContentLayer);this.currentToutisticContentLayer=null}}addTouristicContents(t=false){w.touristicContentsWithinBounds=w.currentTouristicContents;const i=[];const e={type:"FeatureCollection",features:[]};if(w.currentTouristicContents){for(const t of w.currentTouristicContents){i.push(t.geometry.coordinates);e.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,practice:w.touristicContentCategories.find((i=>i.id===t.category)).pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticContentsLayer){if(i.length>0&&!w.currentMapBounds||t){this.bounds=K.latLngBounds(i.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticContentsLayer=K.geoJSON(e,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.practice?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.practice} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"touristic-content-marker",iconSize:32}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicContent(t.properties.id,i.latlng)}))}});this.touristicContentsMarkerClusterGroup=K.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>K.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-content-marker-cluster-group-icon",iconSize:48})});this.touristicContentsMarkerClusterGroup.addLayer(this.toutisticContentsLayer);this.map.addLayer(this.touristicContentsMarkerClusterGroup)}else{if(i.length>0){this.bounds=K.latLngBounds(i.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticContentsLayer.clearLayers();this.toutisticContentsLayer.addData(e);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)}removeTouristicContents(){if(this.toutisticContentsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicContentsMarkerClusterGroup);this.toutisticContentsLayer=null;this.touristicContentsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicContentsWithinBoundsBind)}}addTouristicEvent(){const t={type:"FeatureCollection",features:[]};if(w.currentTouristicEvent){t.features.push({type:"Feature",geometry:{type:"Point",coordinates:w.currentTouristicEvent.geometry.coordinates},properties:{id:w.currentTouristicEvent.id,name:w.currentTouristicEvent.name,type:w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type)).pictogram}})}if(!this.currentToutisticEventLayer){this.currentToutisticEventLayer=K.geoJSON(t,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32}),autoPanOnFocus:false})});this.map.addLayer(this.currentToutisticEventLayer)}this.map.setView([w.currentTouristicEvent.geometry.coordinates[1],w.currentTouristicEvent.geometry.coordinates[0]],this.maxZoom);!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)}removeTouristicEvent(){if(this.currentToutisticEventLayer){this.map.removeLayer(this.currentToutisticEventLayer);this.currentToutisticEventLayer=null}}addSelectedTouristicContent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicContents){const n=w.touristicContents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicContentCategories.find((t=>t.id===n.category)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicContent();w.selectedTouristicContentId=t;this.selectedTouristicContentLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{zIndexOffset:4e6,icon:K.divIcon({html:t.properties.category?`<div class="touristic-content-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-content-marker-container"></div>`,className:"selected-touristic-content-marker",iconSize:64}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="touristic-content-coordinates-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-content-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-content-button";n.onclick=()=>this.touristicContentCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicContentPopupIsOpen){w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}));i.on("popupopen",(()=>{this.touristicContentPopupIsOpen=Boolean(w.selectedTouristicContentId)}));i.on("popupclose",(()=>{if(w.selectedTouristicContentId){this.touristicContentPopupIsOpen=false;w.selectedTouristicContentId=null;this.removeSelectedTouristicContent()}}))}}).addTo(this.map)}removeSelectedTouristicContent(){w.selectedTouristicContentId=null;this.selectedTouristicContentLayer&&this.map.removeLayer(this.selectedTouristicContentLayer);this.selectedTouristicContentLayer=null}addTouristicEvents(t=false){var i;w.touristicEventsWithinBounds=w.currentTouristicEvents;const e=[];const r={type:"FeatureCollection",features:[]};if(w.currentTouristicEvents){for(const t of w.currentTouristicEvents){e.push(t.geometry.coordinates);r.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.geometry.coordinates},properties:{id:t.id,name:t.name,type:(i=w.touristicEventTypes.find((i=>i.id===t.type)))===null||i===void 0?void 0:i.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})}}if(!this.toutisticEventsLayer){if(e.length>0&&!w.currentMapBounds||t){this.bounds=K.latLngBounds(e.map((t=>[t[1],t[0]])))}else{if(w.currentMapBounds){this.bounds=w.currentMapBounds}}this.toutisticEventsLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{icon:K.divIcon({html:t.properties.type?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.type} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"touristic-event-marker",iconSize:32}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseover",(i=>{this.addSelectedTouristicEvent(t.properties.id,i.latlng)}))}});this.touristicEventsMarkerClusterGroup=K.markerClusterGroup({showCoverageOnHover:false,removeOutsideVisibleBounds:false,iconCreateFunction:t=>K.divIcon({html:"<div>"+t.getChildCount()+"</div>",className:"touristic-event-marker-cluster-group-icon",iconSize:48})});this.touristicEventsMarkerClusterGroup.addLayer(this.toutisticEventsLayer);this.map.addLayer(this.touristicEventsMarkerClusterGroup)}else{if(e.length>0){this.bounds=K.latLngBounds(e.map((t=>[t[1],t[0]])))}else{this.map.fire("moveend")}this.toutisticEventsLayer.clearLayers();this.toutisticEventsLayer.addData(r);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)}removeTouristicEvents(){if(this.toutisticEventsLayer){w.currentMapBounds=this.map.getBounds();this.map.removeLayer(this.touristicEventsMarkerClusterGroup);this.toutisticEventsLayer=null;this.touristicEventsMarkerClusterGroup=null;this.map.off("moveend",this.handleTouristicEventsWithinBoundsBind)}}addSelectedTouristicEvent(t,i){var e;const r={type:"FeatureCollection",features:[]};if(w.touristicEvents){const n=w.touristicEvents.find((i=>i.id===t));r.features.push({type:"Feature",geometry:{type:"Point",coordinates:i?[i.lng,i.lat]:n.geometry.coordinates},properties:{id:n.id,name:n.name,category:(e=w.touristicEventTypes.find((t=>t.id===n.type)))===null||e===void 0?void 0:e.pictogram,imgSrc:n.attachments&&n.attachments.length>0&&n.attachments[0].thumbnail}})}this.removeSelectedTouristicEvent();w.selectedTouristicEventId=t;this.selectedTouristicEventLayer=K.geoJSON(r,{pointToLayer:(t,i)=>K.marker(i,{zIndexOffset:4e6,icon:K.divIcon({html:t.properties.category?`<div class="touristic-event-marker-container"><img crossorigin="anonymous" src=${t.properties.category} /></div>`:`<div class="touristic-event-marker-container"></div>`,className:"selected-touristic-event-marker",iconSize:64}),autoPanOnFocus:false}),onEachFeature:(t,i)=>{i.once("click",(()=>{const e=K.DomUtil.create("div");e.className="touristic-event-coordinates-popup";if(t.properties.imgSrc){const i=K.DomUtil.create("img");i.src=t.properties.imgSrc;i.crossOrigin="anonymous";e.appendChild(i)}const r=K.DomUtil.create("div");r.innerHTML=t.properties.name;r.className="touristic-event-name";e.appendChild(r);const n=K.DomUtil.create("button");n.innerHTML="Afficher le détail";n.className="touristic-event-button";n.onclick=()=>this.touristicEventCardPress.emit(t.properties.id);e.appendChild(n);i.bindPopup(e,{interactive:true,autoPan:false,closeButton:false}).openPopup()}));i.on("mouseout",(()=>{if(!this.touristicEventPopupIsOpen){w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}));i.on("popupopen",(()=>{this.touristicEventPopupIsOpen=Boolean(w.selectedTouristicEventId)}));i.on("popupclose",(()=>{if(w.selectedTouristicEventId){this.touristicEventPopupIsOpen=false;w.selectedTouristicEventId=null;this.removeSelectedTouristicEvent()}}))}}).addTo(this.map)}removeSelectedTouristicEvent(){w.selectedTouristicEventId=null;this.selectedTouristicEventLayer&&this.map.removeLayer(this.selectedTouristicEventLayer);this.selectedTouristicEventLayer=null}render(){const t=a(`${""}assets/layers.svg`);const i=a(`${""}assets/contract.svg`);return r(n,{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(${t})`,"--contract-image-src":`url(${i})`,"--map-bottom-space-height":this.isLargeView?"0px":"70px"}},r("div",{id:"map",style:{},class:w.currentTrek?"trek-map":"treks-map",ref:t=>this.mapRef=t}),w.currentTrek&&r("div",null,r("div",{id:"elevation",ref:t=>this.elevationRef=t}),r("div",{class:"map-bottom-space"})),!this.mapIsReady&&r("div",{class:"map-loader-container"},r("span",{class:"loader"})))}};Br.style=Ir;function Fr(t){return t!==null&&typeof t==="object"&&"constructor"in t&&t.constructor===Object}function Rr(t={},i={}){Object.keys(i).forEach((e=>{if(typeof t[e]==="undefined")t[e]=i[e];else if(Fr(i[e])&&Fr(t[e])&&Object.keys(i[e]).length>0){Rr(t[e],i[e])}}))}const Nr={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Dr(){const t=typeof document!=="undefined"?document:{};Rr(t,Nr);return t}const Yr={document:Nr,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function t(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){if(typeof setTimeout==="undefined"){t();return null}return setTimeout(t,0)},cancelAnimationFrame(t){if(typeof setTimeout==="undefined"){return}clearTimeout(t)}};function Gr(){const t=typeof window!=="undefined"?window:{};Rr(t,Yr);return t}function $r(t){const i=t;Object.keys(i).forEach((t=>{try{i[t]=null}catch(e){}try{delete i[t]}catch(e){}}))}function Zr(t,i=0){return setTimeout(t,i)}function Hr(){return Date.now()}function Ur(t){const i=Gr();let e;if(i.getComputedStyle){e=i.getComputedStyle(t,null)}if(!e&&t.currentStyle){e=t.currentStyle}if(!e){e=t.style}return e}function Qr(t,i="x"){const e=Gr();let r;let n;let s;const o=Ur(t);if(e.WebKitCSSMatrix){n=o.transform||o.webkitTransform;if(n.split(",").length>6){n=n.split(", ").map((t=>t.replace(",","."))).join(", ")}s=new e.WebKitCSSMatrix(n==="none"?"":n)}else{s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,");r=s.toString().split(",")}if(i==="x"){if(e.WebKitCSSMatrix)n=s.m41;else if(r.length===16)n=parseFloat(r[12]);else n=parseFloat(r[4])}if(i==="y"){if(e.WebKitCSSMatrix)n=s.m42;else if(r.length===16)n=parseFloat(r[13]);else n=parseFloat(r[5])}return n||0}function Vr(t){return typeof t==="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function Wr(t){if(typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"){return t instanceof HTMLElement}return t&&(t.nodeType===1||t.nodeType===11)}function Kr(...t){const i=Object(t[0]);const e=["__proto__","constructor","prototype"];for(let r=1;r<t.length;r+=1){const n=t[r];if(n!==undefined&&n!==null&&!Wr(n)){const t=Object.keys(Object(n)).filter((t=>e.indexOf(t)<0));for(let e=0,r=t.length;e<r;e+=1){const r=t[e];const s=Object.getOwnPropertyDescriptor(n,r);if(s!==undefined&&s.enumerable){if(Vr(i[r])&&Vr(n[r])){if(n[r].__swiper__){i[r]=n[r]}else{Kr(i[r],n[r])}}else if(!Vr(i[r])&&Vr(n[r])){i[r]={};if(n[r].__swiper__){i[r]=n[r]}else{Kr(i[r],n[r])}}else{i[r]=n[r]}}}}}return i}function Jr(t,i,e){t.style.setProperty(i,e)}function qr({swiper:t,targetPosition:i,side:e}){const r=Gr();const n=-t.translate;let s=null;let o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none";r.cancelAnimationFrame(t.cssModeFrameID);const l=i>n?"next":"prev";const c=(t,i)=>l==="next"&&t>=i||l==="prev"&&t<=i;const h=()=>{o=(new Date).getTime();if(s===null){s=o}const l=Math.max(Math.min((o-s)/a,1),0);const f=.5-Math.cos(l*Math.PI)/2;let u=n+f*(i-n);if(c(u,i)){u=i}t.wrapperEl.scrollTo({[e]:u});if(c(u,i)){t.wrapperEl.style.overflow="hidden";t.wrapperEl.style.scrollSnapType="";setTimeout((()=>{t.wrapperEl.style.overflow="";t.wrapperEl.scrollTo({[e]:u})}));r.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=r.requestAnimationFrame(h)};h()}function Xr(t,i=""){return[...t.children].filter((t=>t.matches(i)))}function tn(t,i=[]){const e=document.createElement(t);e.classList.add(...Array.isArray(i)?i:[i]);return e}function en(t){const i=Gr();const e=Dr();const r=t.getBoundingClientRect();const n=e.body;const s=t.clientTop||n.clientTop||0;const o=t.clientLeft||n.clientLeft||0;const a=t===i?i.scrollY:t.scrollTop;const l=t===i?i.scrollX:t.scrollLeft;return{top:r.top+a-s,left:r.left+l-o}}function rn(t,i){const e=[];while(t.previousElementSibling){const r=t.previousElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function nn(t,i){const e=[];while(t.nextElementSibling){const r=t.nextElementSibling;if(i){if(r.matches(i))e.push(r)}else e.push(r);t=r}return e}function sn(t,i){const e=Gr();return e.getComputedStyle(t,null).getPropertyValue(i)}function on(t){let i=t;let e;if(i){e=0;while((i=i.previousSibling)!==null){if(i.nodeType===1)e+=1}return e}return undefined}function an(t,i){const e=[];let r=t.parentElement;while(r){if(i){if(r.matches(i))e.push(r)}else{e.push(r)}r=r.parentElement}return e}function ln(t,i){function e(r){if(r.target!==t)return;i.call(t,r);t.removeEventListener("transitionend",e)}if(i){t.addEventListener("transitionend",e)}}function cn(t,i,e){const r=Gr();if(e){return t[i==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(i==="width"?"margin-left":"margin-bottom"))}return t.offsetWidth}let hn;function fn(){const t=Gr();const i=Dr();return{smoothScroll:i.documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)}}function un(){if(!hn){hn=fn()}return hn}let pn;function dn({userAgent:t}={}){const i=un();const e=Gr();const r=e.navigator.platform;const n=t||e.navigator.userAgent;const s={ios:false,android:false};const o=e.screen.width;const a=e.screen.height;const l=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const h=n.match(/(iPod)(.*OS\s([\d_]+))?/);const f=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);const u=r==="Win32";let p=r==="MacIntel";const d=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];if(!c&&p&&i.touch&&d.indexOf(`${o}x${a}`)>=0){c=n.match(/(Version)\/([\d.]+)/);if(!c)c=[0,1,"13_0_0"];p=false}if(l&&!u){s.os="android";s.android=true}if(c||f||h){s.os="ios";s.ios=true}return s}function mn(t={}){if(!pn){pn=dn(t)}return pn}let gn;function vn(){const t=Gr();let i=false;function e(){const i=t.navigator.userAgent.toLowerCase();return i.indexOf("safari")>=0&&i.indexOf("chrome")<0&&i.indexOf("android")<0}if(e()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,r]=e.split("Version/")[1].split(" ")[0].split(".").map((t=>Number(t)));i=t<16||t===16&&r<2}}return{isSafari:i||e(),needPerspectiveFix:i,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function wn(){if(!gn){gn=vn()}return gn}function bn({swiper:t,on:i,emit:e}){const r=Gr();let n=null;let s=null;const o=()=>{if(!t||t.destroyed||!t.initialized)return;e("beforeResize");e("resize")};const a=()=>{if(!t||t.destroyed||!t.initialized)return;n=new ResizeObserver((i=>{s=r.requestAnimationFrame((()=>{const{width:e,height:r}=t;let n=e;let s=r;i.forEach((({contentBoxSize:i,contentRect:e,target:r})=>{if(r&&r!==t.el)return;n=e?e.width:(i[0]||i).inlineSize;s=e?e.height:(i[0]||i).blockSize}));if(n!==e||s!==r){o()}}))}));n.observe(t.el)};const l=()=>{if(s){r.cancelAnimationFrame(s)}if(n&&n.unobserve&&t.el){n.unobserve(t.el);n=null}};const c=()=>{if(!t||t.destroyed||!t.initialized)return;e("orientationchange")};i("init",(()=>{if(t.params.resizeObserver&&typeof r.ResizeObserver!=="undefined"){a();return}r.addEventListener("resize",o);r.addEventListener("orientationchange",c)}));i("destroy",(()=>{l();r.removeEventListener("resize",o);r.removeEventListener("orientationchange",c)}))}function yn({swiper:t,extendParams:i,on:e,emit:r}){const n=[];const s=Gr();const o=(i,e={})=>{const o=s.MutationObserver||s.WebkitMutationObserver;const a=new o((i=>{if(t.__preventObserver__)return;if(i.length===1){r("observerUpdate",i[0]);return}const e=function t(){r("observerUpdate",i[0])};if(s.requestAnimationFrame){s.requestAnimationFrame(e)}else{s.setTimeout(e,0)}}));a.observe(i,{attributes:typeof e.attributes==="undefined"?true:e.attributes,childList:typeof e.childList==="undefined"?true:e.childList,characterData:typeof e.characterData==="undefined"?true:e.characterData});n.push(a)};const a=()=>{if(!t.params.observer)return;if(t.params.observeParents){const i=an(t.el);for(let t=0;t<i.length;t+=1){o(i[t])}}o(t.el,{childList:t.params.observeSlideChildren});o(t.wrapperEl,{attributes:false})};const l=()=>{n.forEach((t=>{t.disconnect()}));n.splice(0,n.length)};i({observer:false,observeParents:false,observeSlideChildren:false});e("init",a);e("destroy",l)}const xn={on(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;const n=e?"unshift":"push";t.split(" ").forEach((t=>{if(!r.eventsListeners[t])r.eventsListeners[t]=[];r.eventsListeners[t][n](i)}));return r},once(t,i,e){const r=this;if(!r.eventsListeners||r.destroyed)return r;if(typeof i!=="function")return r;function n(...e){r.off(t,n);if(n.__emitterProxy){delete n.__emitterProxy}i.apply(r,e)}n.__emitterProxy=i;return r.on(t,n,e)},onAny(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(typeof t!=="function")return e;const r=i?"unshift":"push";if(e.eventsAnyListeners.indexOf(t)<0){e.eventsAnyListeners[r](t)}return e},offAny(t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsAnyListeners)return i;const e=i.eventsAnyListeners.indexOf(t);if(e>=0){i.eventsAnyListeners.splice(e,1)}return i},off(t,i){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;t.split(" ").forEach((t=>{if(typeof i==="undefined"){e.eventsListeners[t]=[]}else if(e.eventsListeners[t]){e.eventsListeners[t].forEach(((r,n)=>{if(r===i||r.__emitterProxy&&r.__emitterProxy===i){e.eventsListeners[t].splice(n,1)}}))}}));return e},emit(...t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if(!i.eventsListeners)return i;let e;let r;let n;if(typeof t[0]==="string"||Array.isArray(t[0])){e=t[0];r=t.slice(1,t.length);n=i}else{e=t[0].events;r=t[0].data;n=t[0].context||i}r.unshift(n);const s=Array.isArray(e)?e:e.split(" ");s.forEach((t=>{if(i.eventsAnyListeners&&i.eventsAnyListeners.length){i.eventsAnyListeners.forEach((i=>{i.apply(n,[t,...r])}))}if(i.eventsListeners&&i.eventsListeners[t]){i.eventsListeners[t].forEach((t=>{t.apply(n,r)}))}}));return i}};function kn(){const t=this;let i;let e;const r=t.el;if(typeof t.params.width!=="undefined"&&t.params.width!==null){i=t.params.width}else{i=r.clientWidth}if(typeof t.params.height!=="undefined"&&t.params.height!==null){e=t.params.height}else{e=r.clientHeight}if(i===0&&t.isHorizontal()||e===0&&t.isVertical()){return}i=i-parseInt(sn(r,"padding-left")||0,10)-parseInt(sn(r,"padding-right")||0,10);e=e-parseInt(sn(r,"padding-top")||0,10)-parseInt(sn(r,"padding-bottom")||0,10);if(Number.isNaN(i))i=0;if(Number.isNaN(e))e=0;Object.assign(t,{width:i,height:e,size:t.isHorizontal()?i:e})}function An(){const t=this;function i(i){if(t.isHorizontal()){return i}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"}[i]}function e(t,e){return parseFloat(t.getPropertyValue(i(e))||0)}const r=t.params;const{wrapperEl:n,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t;const c=t.virtual&&r.virtual.enabled;const h=c?t.virtual.slides.length:t.slides.length;const f=Xr(s,`.${t.params.slideClass}, swiper-slide`);const u=c?t.virtual.slides.length:f.length;let p=[];const d=[];const m=[];let g=r.slidesOffsetBefore;if(typeof g==="function"){g=r.slidesOffsetBefore.call(t)}let v=r.slidesOffsetAfter;if(typeof v==="function"){v=r.slidesOffsetAfter.call(t)}const w=t.snapGrid.length;const b=t.slidesGrid.length;let y=r.spaceBetween;let x=-g;let k=0;let A=0;if(typeof o==="undefined"){return}if(typeof y==="string"&&y.indexOf("%")>=0){y=parseFloat(y.replace("%",""))/100*o}else if(typeof y==="string"){y=parseFloat(y)}t.virtualSize=-y;f.forEach((t=>{if(a){t.style.marginLeft=""}else{t.style.marginRight=""}t.style.marginBottom="";t.style.marginTop=""}));if(r.centeredSlides&&r.cssMode){Jr(n,"--swiper-centered-offset-before","");Jr(n,"--swiper-centered-offset-after","")}const _=r.grid&&r.grid.rows>1&&t.grid;if(_){t.grid.initSlides(u)}let M;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>typeof r.breakpoints[t].slidesPerView!=="undefined")).length>0;for(let L=0;L<u;L+=1){M=0;let n;if(f[L])n=f[L];if(_){t.grid.updateSlide(L,n,u,i)}if(f[L]&&sn(n,"display")==="none")continue;if(r.slidesPerView==="auto"){if(z){f[L].style[i("width")]=``}const s=getComputedStyle(n);const o=n.style.transform;const a=n.style.webkitTransform;if(o){n.style.transform="none"}if(a){n.style.webkitTransform="none"}if(r.roundLengths){M=t.isHorizontal()?cn(n,"width",true):cn(n,"height",true)}else{const t=e(s,"width");const i=e(s,"padding-left");const r=e(s,"padding-right");const o=e(s,"margin-left");const a=e(s,"margin-right");const l=s.getPropertyValue("box-sizing");if(l&&l==="border-box"){M=t+o+a}else{const{clientWidth:e,offsetWidth:s}=n;M=t+i+r+o+a+(s-e)}}if(o){n.style.transform=o}if(a){n.style.webkitTransform=a}if(r.roundLengths)M=Math.floor(M)}else{M=(o-(r.slidesPerView-1)*y)/r.slidesPerView;if(r.roundLengths)M=Math.floor(M);if(f[L]){f[L].style[i("width")]=`${M}px`}}if(f[L]){f[L].swiperSlideSize=M}m.push(M);if(r.centeredSlides){x=x+M/2+k/2+y;if(k===0&&L!==0)x=x-o/2-y;if(L===0)x=x-o/2-y;if(Math.abs(x)<1/1e3)x=0;if(r.roundLengths)x=Math.floor(x);if(A%r.slidesPerGroup===0)p.push(x);d.push(x)}else{if(r.roundLengths)x=Math.floor(x);if((A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0)p.push(x);d.push(x);x=x+M+y}t.virtualSize+=M+y;k=M;A+=1}t.virtualSize=Math.max(t.virtualSize,o)+v;if(a&&l&&(r.effect==="slide"||r.effect==="coverflow")){n.style.width=`${t.virtualSize+y}px`}if(r.setWrapperSize){n.style[i("width")]=`${t.virtualSize+y}px`}if(_){t.grid.updateWrapperSize(M,p,i)}if(!r.centeredSlides){const i=[];for(let e=0;e<p.length;e+=1){let n=p[e];if(r.roundLengths)n=Math.floor(n);if(p[e]<=t.virtualSize-o){i.push(n)}}p=i;if(Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1){p.push(t.virtualSize-o)}}if(c&&r.loop){const i=m[0]+y;if(r.slidesPerGroup>1){const e=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/r.slidesPerGroup);const n=i*r.slidesPerGroup;for(let t=0;t<e;t+=1){p.push(p[p.length-1]+n)}}for(let e=0;e<t.virtual.slidesBefore+t.virtual.slidesAfter;e+=1){if(r.slidesPerGroup===1){p.push(p[p.length-1]+i)}d.push(d[d.length-1]+i);t.virtualSize+=i}}if(p.length===0)p=[0];if(y!==0){const e=t.isHorizontal()&&a?"marginLeft":i("marginRight");f.filter(((t,i)=>{if(!r.cssMode||r.loop)return true;if(i===f.length-1){return false}return true})).forEach((t=>{t.style[e]=`${y}px`}))}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;const i=t-o;p=p.map((t=>{if(t<=0)return-g;if(t>i)return i+v;return t}))}if(r.centerInsufficientSlides){let t=0;m.forEach((i=>{t+=i+(y||0)}));t-=y;if(t<o){const i=(o-t)/2;p.forEach(((t,e)=>{p[e]=t-i}));d.forEach(((t,e)=>{d[e]=t+i}))}}Object.assign(t,{slides:f,snapGrid:p,slidesGrid:d,slidesSizesGrid:m});if(r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Jr(n,"--swiper-centered-offset-before",`${-p[0]}px`);Jr(n,"--swiper-centered-offset-after",`${t.size/2-m[m.length-1]/2}px`);const i=-t.snapGrid[0];const e=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+i));t.slidesGrid=t.slidesGrid.map((t=>t+e))}if(u!==h){t.emit("slidesLengthChange")}if(p.length!==w){if(t.params.watchOverflow)t.checkOverflow();t.emit("snapGridLengthChange")}if(d.length!==b){t.emit("slidesGridLengthChange")}if(r.watchSlidesProgress){t.updateSlidesOffset()}if(!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const i=`${r.containerModifierClass}backface-hidden`;const e=t.el.classList.contains(i);if(u<=r.maxBackfaceHiddenSlides){if(!e)t.el.classList.add(i)}else if(e){t.el.classList.remove(i)}}}function _n(t){const i=this;const e=[];const r=i.virtual&&i.params.virtual.enabled;let n=0;let s;if(typeof t==="number"){i.setTransition(t)}else if(t===true){i.setTransition(i.params.speed)}const o=t=>{if(r){return i.slides[i.getSlideIndexByData(t)]}return i.slides[t]};if(i.params.slidesPerView!=="auto"&&i.params.slidesPerView>1){if(i.params.centeredSlides){(i.visibleSlides||[]).forEach((t=>{e.push(t)}))}else{for(s=0;s<Math.ceil(i.params.slidesPerView);s+=1){const t=i.activeIndex+s;if(t>i.slides.length&&!r)break;e.push(o(t))}}}else{e.push(o(i.activeIndex))}for(s=0;s<e.length;s+=1){if(typeof e[s]!=="undefined"){const t=e[s].offsetHeight;n=t>n?t:n}}if(n||n===0)i.wrapperEl.style.height=`${n}px`}function Mn(){const t=this;const i=t.slides;const e=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<i.length;r+=1){i[r].swiperSlideOffset=(t.isHorizontal()?i[r].offsetLeft:i[r].offsetTop)-e-t.cssOverflowAdjustment()}}function zn(t=this&&this.translate||0){const i=this;const e=i.params;const{slides:r,rtlTranslate:n,snapGrid:s}=i;if(r.length===0)return;if(typeof r[0].swiperSlideOffset==="undefined")i.updateSlidesOffset();let o=-t;if(n)o=t;r.forEach((t=>{t.classList.remove(e.slideVisibleClass)}));i.visibleSlidesIndexes=[];i.visibleSlides=[];let a=e.spaceBetween;if(typeof a==="string"&&a.indexOf("%")>=0){a=parseFloat(a.replace("%",""))/100*i.size}else if(typeof a==="string"){a=parseFloat(a)}for(let l=0;l<r.length;l+=1){const t=r[l];let c=t.swiperSlideOffset;if(e.cssMode&&e.centeredSlides){c-=r[0].swiperSlideOffset}const h=(o+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const f=(o-s[0]+(e.centeredSlides?i.minTranslate():0)-c)/(t.swiperSlideSize+a);const u=-(o-c);const p=u+i.slidesSizesGrid[l];const d=u>=0&&u<i.size-1||p>1&&p<=i.size||u<=0&&p>=i.size;if(d){i.visibleSlides.push(t);i.visibleSlidesIndexes.push(l);r[l].classList.add(e.slideVisibleClass)}t.progress=n?-h:h;t.originalProgress=n?-f:f}}function Ln(t){const i=this;if(typeof t==="undefined"){const e=i.rtlTranslate?-1:1;t=i&&i.translate&&i.translate*e||0}const e=i.params;const r=i.maxTranslate()-i.minTranslate();let{progress:n,isBeginning:s,isEnd:o,progressLoop:a}=i;const l=s;const c=o;if(r===0){n=0;s=true;o=true}else{n=(t-i.minTranslate())/r;const e=Math.abs(t-i.minTranslate())<1;const a=Math.abs(t-i.maxTranslate())<1;s=e||n<=0;o=a||n>=1;if(e)n=0;if(a)n=1}if(e.loop){const e=i.getSlideIndexByData(0);const r=i.getSlideIndexByData(i.slides.length-1);const n=i.slidesGrid[e];const s=i.slidesGrid[r];const o=i.slidesGrid[i.slidesGrid.length-1];const l=Math.abs(t);if(l>=n){a=(l-n)/o}else{a=(l+o-s)/o}if(a>1)a-=1}Object.assign(i,{progress:n,progressLoop:a,isBeginning:s,isEnd:o});if(e.watchSlidesProgress||e.centeredSlides&&e.autoHeight)i.updateSlidesProgress(t);if(s&&!l){i.emit("reachBeginning toEdge")}if(o&&!c){i.emit("reachEnd toEdge")}if(l&&!s||c&&!o){i.emit("fromEdge")}i.emit("progress",n)}function Cn(){const t=this;const{slides:i,params:e,slidesEl:r,activeIndex:n}=t;const s=t.virtual&&e.virtual.enabled;const o=t=>Xr(r,`.${e.slideClass}${t}, swiper-slide${t}`)[0];i.forEach((t=>{t.classList.remove(e.slideActiveClass,e.slideNextClass,e.slidePrevClass)}));let a;if(s){if(e.loop){let i=n-t.virtual.slidesBefore;if(i<0)i=t.virtual.slides.length+i;if(i>=t.virtual.slides.length)i-=t.virtual.slides.length;a=o(`[data-swiper-slide-index="${i}"]`)}else{a=o(`[data-swiper-slide-index="${n}"]`)}}else{a=i[n]}if(a){a.classList.add(e.slideActiveClass);let t=nn(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!t){t=i[0]}if(t){t.classList.add(e.slideNextClass)}let r=rn(a,`.${e.slideClass}, swiper-slide`)[0];if(e.loop&&!r===0){r=i[i.length-1]}if(r){r.classList.add(e.slidePrevClass)}}t.emitSlidesClasses()}const En=(t,i)=>{if(!t||t.destroyed||!t.params)return;const e=()=>t.isElement?`swiper-slide`:`.${t.params.slideClass}`;const r=i.closest(e());if(r){const i=r.querySelector(`.${t.params.lazyPreloaderClass}`);if(i)i.remove()}};const Pn=(t,i)=>{if(!t.slides[i])return;const e=t.slides[i].querySelector('[loading="lazy"]');if(e)e.removeAttribute("loading")};const On=t=>{if(!t||t.destroyed||!t.params)return;let i=t.params.lazyPreloadPrevNext;const e=t.slides.length;if(!e||!i||i<0)return;i=Math.min(i,e);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView);const n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const e=n;const s=[e-i];s.push(...Array.from({length:i}).map(((t,i)=>e+r+i)));t.slides.forEach(((i,e)=>{if(s.includes(i.column))Pn(t,e)}));return}const s=n+r-1;if(t.params.rewind||t.params.loop){for(let r=n-i;r<=s+i;r+=1){const i=(r%e+e)%e;if(i<n||i>s)Pn(t,i)}}else{for(let r=Math.max(n-i,0);r<=Math.min(s+i,e-1);r+=1){if(r!==n&&(r>s||r<n)){Pn(t,r)}}}};function jn(t){const{slidesGrid:i,params:e}=t;const r=t.rtlTranslate?t.translate:-t.translate;let n;for(let s=0;s<i.length;s+=1){if(typeof i[s+1]!=="undefined"){if(r>=i[s]&&r<i[s+1]-(i[s+1]-i[s])/2){n=s}else if(r>=i[s]&&r<i[s+1]){n=s+1}}else if(r>=i[s]){n=s}}if(e.normalizeSlideIndex){if(n<0||typeof n==="undefined")n=0}return n}function Sn(t){const i=this;const e=i.rtlTranslate?i.translate:-i.translate;const{snapGrid:r,params:n,activeIndex:s,realIndex:o,snapIndex:a}=i;let l=t;let c;const h=t=>{let e=t-i.virtual.slidesBefore;if(e<0){e=i.virtual.slides.length+e}if(e>=i.virtual.slides.length){e-=i.virtual.slides.length}return e};if(typeof l==="undefined"){l=jn(i)}if(r.indexOf(e)>=0){c=r.indexOf(e)}else{const t=Math.min(n.slidesPerGroupSkip,l);c=t+Math.floor((l-t)/n.slidesPerGroup)}if(c>=r.length)c=r.length-1;if(l===s){if(c!==a){i.snapIndex=c;i.emit("snapIndexChange")}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=h(l)}return}let f;if(i.virtual&&n.virtual.enabled&&n.loop){f=h(l)}else if(i.slides[l]){f=parseInt(i.slides[l].getAttribute("data-swiper-slide-index")||l,10)}else{f=l}Object.assign(i,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l});if(i.initialized){On(i)}i.emit("activeIndexChange");i.emit("snapIndexChange");if(o!==f){i.emit("realIndexChange")}if(i.initialized||i.params.runCallbacksOnInit){i.emit("slideChange")}}function Tn(t){const i=this;const e=i.params;const r=t.closest(`.${e.slideClass}, swiper-slide`);let n=false;let s;if(r){for(let t=0;t<i.slides.length;t+=1){if(i.slides[t]===r){n=true;s=t;break}}}if(r&&n){i.clickedSlide=r;if(i.virtual&&i.params.virtual.enabled){i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10)}else{i.clickedIndex=s}}else{i.clickedSlide=undefined;i.clickedIndex=undefined;return}if(e.slideToClickedSlide&&i.clickedIndex!==undefined&&i.clickedIndex!==i.activeIndex){i.slideToClickedSlide()}}const In={updateSize:kn,updateSlides:An,updateAutoHeight:_n,updateSlidesOffset:Mn,updateSlidesProgress:zn,updateProgress:Ln,updateSlidesClasses:Cn,updateActiveIndex:Sn,updateClickedSlide:Tn};function Bn(t=(this.isHorizontal()?"x":"y")){const i=this;const{params:e,rtlTranslate:r,translate:n,wrapperEl:s}=i;if(e.virtualTranslate){return r?-n:n}if(e.cssMode){return n}let o=Qr(s,t);o+=i.cssOverflowAdjustment();if(r)o=-o;return o||0}function Fn(t,i){const e=this;const{rtlTranslate:r,params:n,wrapperEl:s,progress:o}=e;let a=0;let l=0;const c=0;if(e.isHorizontal()){a=r?-t:t}else{l=t}if(n.roundLengths){a=Math.floor(a);l=Math.floor(l)}e.previousTranslate=e.translate;e.translate=e.isHorizontal()?a:l;if(n.cssMode){s[e.isHorizontal()?"scrollLeft":"scrollTop"]=e.isHorizontal()?-a:-l}else if(!n.virtualTranslate){if(e.isHorizontal()){a-=e.cssOverflowAdjustment()}else{l-=e.cssOverflowAdjustment()}s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`}let h;const f=e.maxTranslate()-e.minTranslate();if(f===0){h=0}else{h=(t-e.minTranslate())/f}if(h!==o){e.updateProgress(t)}e.emit("setTranslate",e.translate,i)}function Rn(){return-this.snapGrid[0]}function Nn(){return-this.snapGrid[this.snapGrid.length-1]}function Dn(t=0,i=this.params.speed,e=true,r=true,n){const s=this;const{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition){return false}const l=s.minTranslate();const c=s.maxTranslate();let h;if(r&&t>l)h=l;else if(r&&t<c)h=c;else h=t;s.updateProgress(h);if(o.cssMode){const t=s.isHorizontal();if(i===0){a[t?"scrollLeft":"scrollTop"]=-h}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:-h,side:t?"left":"top"});return true}a.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return true}if(i===0){s.setTransition(0);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionEnd")}}else{s.setTransition(i);s.setTranslate(h);if(e){s.emit("beforeTransitionStart",i,n);s.emit("transitionStart")}if(!s.animating){s.animating=true;if(!s.onTranslateToWrapperTransitionEnd){s.onTranslateToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd);s.onTranslateToWrapperTransitionEnd=null;delete s.onTranslateToWrapperTransitionEnd;if(e){s.emit("transitionEnd")}}}s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd)}}return true}const Yn={getTranslate:Bn,setTranslate:Fn,minTranslate:Rn,maxTranslate:Nn,translateTo:Dn};function Gn(t,i){const e=this;if(!e.params.cssMode){e.wrapperEl.style.transitionDuration=`${t}ms`}e.emit("setTransition",t,i)}function $n({swiper:t,runCallbacks:i,direction:e,step:r}){const{activeIndex:n,previousIndex:s}=t;let o=e;if(!o){if(n>s)o="next";else if(n<s)o="prev";else o="reset"}t.emit(`transition${r}`);if(i&&n!==s){if(o==="reset"){t.emit(`slideResetTransition${r}`);return}t.emit(`slideChangeTransition${r}`);if(o==="next"){t.emit(`slideNextTransition${r}`)}else{t.emit(`slidePrevTransition${r}`)}}}function Zn(t=true,i){const e=this;const{params:r}=e;if(r.cssMode)return;if(r.autoHeight){e.updateAutoHeight()}$n({swiper:e,runCallbacks:t,direction:i,step:"Start"})}function Hn(t=true,i){const e=this;const{params:r}=e;e.animating=false;if(r.cssMode)return;e.setTransition(0);$n({swiper:e,runCallbacks:t,direction:i,step:"End"})}const Un={setTransition:Gn,transitionStart:Zn,transitionEnd:Hn};function Qn(t=0,i=this.params.speed,e=true,r,n){if(typeof t==="string"){t=parseInt(t,10)}const s=this;let o=t;if(o<0)o=0;const{params:a,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:f,rtlTranslate:u,wrapperEl:p,enabled:d}=s;if(s.animating&&a.preventInteractionOnTransition||!d&&!r&&!n){return false}const m=Math.min(s.params.slidesPerGroupSkip,o);let g=m+Math.floor((o-m)/s.params.slidesPerGroup);if(g>=l.length)g=l.length-1;const v=-l[g];if(a.normalizeSlideIndex){for(let t=0;t<c.length;t+=1){const i=-Math.floor(v*100);const e=Math.floor(c[t]*100);const r=Math.floor(c[t+1]*100);if(typeof c[t+1]!=="undefined"){if(i>=e&&i<r-(r-e)/2){o=t}else if(i>=e&&i<r){o=t+1}}else if(i>=e){o=t}}}if(s.initialized&&o!==f){if(!s.allowSlideNext&&(u?v>s.translate&&v>s.minTranslate():v<s.translate&&v<s.minTranslate())){return false}if(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()){if((f||0)!==o){return false}}}if(o!==(h||0)&&e){s.emit("beforeSlideChangeStart")}s.updateProgress(v);let w;if(o>f)w="next";else if(o<f)w="prev";else w="reset";if(u&&-v===s.translate||!u&&v===s.translate){s.updateActiveIndex(o);if(a.autoHeight){s.updateAutoHeight()}s.updateSlidesClasses();if(a.effect!=="slide"){s.setTranslate(v)}if(w!=="reset"){s.transitionStart(e,w);s.transitionEnd(e,w)}return false}if(a.cssMode){const t=s.isHorizontal();const e=u?v:-v;if(i===0){const i=s.virtual&&s.params.virtual.enabled;if(i){s.wrapperEl.style.scrollSnapType="none";s._immediateVirtual=true}if(i&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0){s._cssModeVirtualInitialSet=true;requestAnimationFrame((()=>{p[t?"scrollLeft":"scrollTop"]=e}))}else{p[t?"scrollLeft":"scrollTop"]=e}if(i){requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="";s._immediateVirtual=false}))}}else{if(!s.support.smoothScroll){qr({swiper:s,targetPosition:e,side:t?"left":"top"});return true}p.scrollTo({[t?"left":"top"]:e,behavior:"smooth"})}return true}s.setTransition(i);s.setTranslate(v);s.updateActiveIndex(o);s.updateSlidesClasses();s.emit("beforeTransitionStart",i,r);s.transitionStart(e,w);if(i===0){s.transitionEnd(e,w)}else if(!s.animating){s.animating=true;if(!s.onSlideToWrapperTransitionEnd){s.onSlideToWrapperTransitionEnd=function t(i){if(!s||s.destroyed)return;if(i.target!==this)return;s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd);s.onSlideToWrapperTransitionEnd=null;delete s.onSlideToWrapperTransitionEnd;s.transitionEnd(e,w)}}s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)}return true}function Vn(t=0,i=this.params.speed,e=true,r){if(typeof t==="string"){const i=parseInt(t,10);t=i}const n=this;let s=t;if(n.params.loop){if(n.virtual&&n.params.virtual.enabled){s=s+n.virtual.slidesBefore}else{s=n.getSlideIndexByData(s)}}return n.slideTo(s,i,e,r)}function Wn(t=this.params.speed,i=true,e){const r=this;const{enabled:n,params:s,animating:o}=r;if(!n)return r;let a=s.slidesPerGroup;if(s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto){a=Math.max(r.slidesPerViewDynamic("current",true),1)}const l=r.activeIndex<s.slidesPerGroupSkip?1:a;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return false;r.loopFix({direction:"next"});r._clientLeft=r.wrapperEl.clientLeft}if(s.rewind&&r.isEnd){return r.slideTo(0,t,i,e)}return r.slideTo(r.activeIndex+l,t,i,e)}function Kn(t=this.params.speed,i=true,e){const r=this;const{params:n,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const h=r.virtual&&n.virtual.enabled;if(n.loop){if(c&&!h&&n.loopPreventsSliding)return false;r.loopFix({direction:"prev"});r._clientLeft=r.wrapperEl.clientLeft}const f=a?r.translate:-r.translate;function u(t){if(t<0)return-Math.floor(Math.abs(t));return Math.floor(t)}const p=u(f);const d=s.map((t=>u(t)));let m=s[d.indexOf(p)-1];if(typeof m==="undefined"&&n.cssMode){let t;s.forEach(((i,e)=>{if(p>=i){t=e}}));if(typeof t!=="undefined"){m=s[t>0?t-1:t]}}let g=0;if(typeof m!=="undefined"){g=o.indexOf(m);if(g<0)g=r.activeIndex-1;if(n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto){g=g-r.slidesPerViewDynamic("previous",true)+1;g=Math.max(g,0)}}if(n.rewind&&r.isBeginning){const n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,t,i,e)}return r.slideTo(g,t,i,e)}function Jn(t=this.params.speed,i=true,e){const r=this;return r.slideTo(r.activeIndex,t,i,e)}function qn(t=this.params.speed,i=true,e,r=.5){const n=this;let s=n.activeIndex;const o=Math.min(n.params.slidesPerGroupSkip,s);const a=o+Math.floor((s-o)/n.params.slidesPerGroup);const l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[a]){const t=n.snapGrid[a];const i=n.snapGrid[a+1];if(l-t>(i-t)*r){s+=n.params.slidesPerGroup}}else{const t=n.snapGrid[a-1];const i=n.snapGrid[a];if(l-t<=(i-t)*r){s-=n.params.slidesPerGroup}}s=Math.max(s,0);s=Math.min(s,n.slidesGrid.length-1);return n.slideTo(s,t,i,e)}function Xn(){const t=this;const{params:i,slidesEl:e}=t;const r=i.slidesPerView==="auto"?t.slidesPerViewDynamic():i.slidesPerView;let n=t.clickedIndex;let s;const o=t.isElement?`swiper-slide`:`.${i.slideClass}`;if(i.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10);if(i.centeredSlides){if(n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2){t.loopFix();n=t.getSlideIndex(Xr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);Zr((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else if(n>t.slides.length-r){t.loopFix();n=t.getSlideIndex(Xr(e,`${o}[data-swiper-slide-index="${s}"]`)[0]);Zr((()=>{t.slideTo(n)}))}else{t.slideTo(n)}}else{t.slideTo(n)}}const ts={slideTo:Qn,slideToLoop:Vn,slideNext:Wn,slidePrev:Kn,slideReset:Jn,slideToClosest:qn,slideToClickedSlide:Xn};function is(t){const i=this;const{params:e,slidesEl:r}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;const n=Xr(r,`.${e.slideClass}, swiper-slide`);n.forEach(((t,i)=>{t.setAttribute("data-swiper-slide-index",i)}));i.loopFix({slideRealIndex:t,direction:e.centeredSlides?undefined:"next"})}function es({slideRealIndex:t,slideTo:i=true,direction:e,setTranslate:r,activeSlideIndex:n,byController:s,byMousewheel:o}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:h,slidesEl:f,params:u}=a;a.allowSlidePrev=true;a.allowSlideNext=true;if(a.virtual&&u.virtual.enabled){if(i){if(!u.centeredSlides&&a.snapIndex===0){a.slideTo(a.virtual.slides.length,0,false,true)}else if(u.centeredSlides&&a.snapIndex<u.slidesPerView){a.slideTo(a.virtual.slides.length+a.snapIndex,0,false,true)}else if(a.snapIndex===a.snapGrid.length-1){a.slideTo(a.virtual.slidesBefore,0,false,true)}}a.allowSlidePrev=c;a.allowSlideNext=h;a.emit("loopFix");return}const p=u.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(u.slidesPerView,10));let d=u.loopedSlides||p;if(d%u.slidesPerGroup!==0){d+=u.slidesPerGroup-d%u.slidesPerGroup}a.loopedSlides=d;const m=[];const g=[];let v=a.activeIndex;if(typeof n==="undefined"){n=a.getSlideIndex(a.slides.filter((t=>t.classList.contains(u.slideActiveClass)))[0])}else{v=n}const w=e==="next"||!e;const b=e==="prev"||!e;let y=0;let x=0;if(n<d){y=Math.max(d-n,u.slidesPerGroup);for(let t=0;t<d-n;t+=1){const i=t-Math.floor(t/l.length)*l.length;m.push(l.length-i-1)}}else if(n>a.slides.length-d*2){x=Math.max(n-(a.slides.length-d*2),u.slidesPerGroup);for(let t=0;t<x;t+=1){const i=t-Math.floor(t/l.length)*l.length;g.push(i)}}if(b){m.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;f.prepend(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}if(w){g.forEach((t=>{a.slides[t].swiperLoopMoveDOM=true;f.append(a.slides[t]);a.slides[t].swiperLoopMoveDOM=false}))}a.recalcSlides();if(u.slidesPerView==="auto"){a.updateSlides()}if(u.watchSlidesProgress){a.updateSlidesOffset()}if(i){if(m.length>0&&b){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v+y];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v+y,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{if(r){a.slideToLoop(t,0,false,true)}}}else if(g.length>0&&w){if(typeof t==="undefined"){const t=a.slidesGrid[v];const i=a.slidesGrid[v-x];const e=i-t;if(o){a.setTranslate(a.translate-e)}else{a.slideTo(v-x,0,false,true);if(r){a.touches[a.isHorizontal()?"startX":"startY"]+=e}}}else{a.slideToLoop(t,0,false,true)}}}a.allowSlidePrev=c;a.allowSlideNext=h;if(a.controller&&a.controller.control&&!s){const i={slideRealIndex:t,slideTo:false,direction:e,setTranslate:r,activeSlideIndex:n,byController:true};if(Array.isArray(a.controller.control)){a.controller.control.forEach((t=>{if(!t.destroyed&&t.params.loop)t.loopFix(i)}))}else if(a.controller.control instanceof a.constructor&&a.controller.control.params.loop){a.controller.control.loopFix(i)}}a.emit("loopFix")}function rs(){const t=this;const{params:i,slidesEl:e}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach((t=>{const i=typeof t.swiperSlideIndex==="undefined"?t.getAttribute("data-swiper-slide-index")*1:t.swiperSlideIndex;r[i]=t}));t.slides.forEach((t=>{t.removeAttribute("data-swiper-slide-index")}));r.forEach((t=>{e.append(t)}));t.recalcSlides();t.slideTo(t.realIndex,0)}const ns={loopCreate:is,loopFix:es,loopDestroy:rs};function ss(t){const i=this;if(!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||i.params.cssMode)return;const e=i.params.touchEventsTarget==="container"?i.el:i.wrapperEl;if(i.isElement){i.__preventObserver__=true}e.style.cursor="move";e.style.cursor=t?"grabbing":"grab";if(i.isElement){requestAnimationFrame((()=>{i.__preventObserver__=false}))}}function os(){const t=this;if(t.params.watchOverflow&&t.isLocked||t.params.cssMode){return}if(t.isElement){t.__preventObserver__=true}t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="";if(t.isElement){requestAnimationFrame((()=>{t.__preventObserver__=false}))}}const as={setGrabCursor:ss,unsetGrabCursor:os};function ls(t,i=this){function e(i){if(!i||i===Dr()||i===Gr())return null;if(i.assignedSlot)i=i.assignedSlot;const r=i.closest(t);if(!r&&!i.getRootNode){return null}return r||e(i.getRootNode().host)}return e(i)}function cs(t){const i=this;const e=Dr();const r=Gr();const n=i.touchEventsData;n.evCache.push(t);const{params:s,touches:o,enabled:a}=i;if(!a)return;if(!s.simulateTouch&&t.pointerType==="mouse")return;if(i.animating&&s.preventInteractionOnTransition){return}if(!i.animating&&s.cssMode&&s.loop){i.loopFix()}let l=t;if(l.originalEvent)l=l.originalEvent;let c=l.target;if(s.touchEventsTarget==="wrapper"){if(!i.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;const h=!!s.noSwipingClass&&s.noSwipingClass!=="";const f=t.composedPath?t.composedPath():t.path;if(h&&l.target&&l.target.shadowRoot&&f){c=f[0]}const u=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`;const p=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(p?ls(u,c):c.closest(u))){i.allowClick=true;return}if(s.swipeHandler){if(!c.closest(s.swipeHandler))return}o.currentX=l.pageX;o.currentY=l.pageY;const d=o.currentX;const m=o.currentY;const g=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection;const v=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(g&&(d<=v||d>=r.innerWidth-v)){if(g==="prevent"){t.preventDefault()}else{return}}Object.assign(n,{isTouched:true,isMoved:false,allowTouchCallbacks:true,isScrolling:undefined,startMoving:undefined});o.startX=d;o.startY=m;n.touchStartTime=Hr();i.allowClick=true;i.updateSize();i.swipeDirection=undefined;if(s.threshold>0)n.allowThresholdMove=false;let w=true;if(c.matches(n.focusableElements)){w=false;if(c.nodeName==="SELECT"){n.isTouched=false}}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c){e.activeElement.blur()}const b=w&&i.allowTouchMove&&s.touchStartPreventDefault;if((s.touchStartForcePreventDefault||b)&&!c.isContentEditable){l.preventDefault()}if(s.freeMode&&s.freeMode.enabled&&i.freeMode&&i.animating&&!s.cssMode){i.freeMode.onTouchStart()}i.emit("touchStart",l)}function hs(t){const i=Dr();const e=this;const r=e.touchEventsData;const{params:n,touches:s,rtlTranslate:o,enabled:a}=e;if(!a)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent)l=l.originalEvent;if(!r.isTouched){if(r.startMoving&&r.isScrolling){e.emit("touchMoveOpposite",l)}return}const c=r.evCache.findIndex((t=>t.pointerId===l.pointerId));if(c>=0)r.evCache[c]=l;const h=r.evCache.length>1?r.evCache[0]:l;const f=h.pageX;const u=h.pageY;if(l.preventedByNestedSwiper){s.startX=f;s.startY=u;return}if(!e.allowTouchMove){if(!l.target.matches(r.focusableElements)){e.allowClick=false}if(r.isTouched){Object.assign(s,{startX:f,startY:u,prevX:e.touches.currentX,prevY:e.touches.currentY,currentX:f,currentY:u});r.touchStartTime=Hr()}return}if(n.touchReleaseOnEdges&&!n.loop){if(e.isVertical()){if(u<s.startY&&e.translate<=e.maxTranslate()||u>s.startY&&e.translate>=e.minTranslate()){r.isTouched=false;r.isMoved=false;return}}else if(f<s.startX&&e.translate<=e.maxTranslate()||f>s.startX&&e.translate>=e.minTranslate()){return}}if(i.activeElement){if(l.target===i.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=true;e.allowClick=false;return}}if(r.allowTouchCallbacks){e.emit("touchMove",l)}if(l.targetTouches&&l.targetTouches.length>1)return;s.currentX=f;s.currentY=u;const p=s.currentX-s.startX;const d=s.currentY-s.startY;if(e.params.threshold&&Math.sqrt(p**2+d**2)<e.params.threshold)return;if(typeof r.isScrolling==="undefined"){let t;if(e.isHorizontal()&&s.currentY===s.startY||e.isVertical()&&s.currentX===s.startX){r.isScrolling=false}else{if(p*p+d*d>=25){t=Math.atan2(Math.abs(d),Math.abs(p))*180/Math.PI;r.isScrolling=e.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle}}}if(r.isScrolling){e.emit("touchMoveOpposite",l)}if(typeof r.startMoving==="undefined"){if(s.currentX!==s.startX||s.currentY!==s.startY){r.startMoving=true}}if(r.isScrolling||e.zoom&&e.params.zoom&&e.params.zoom.enabled&&r.evCache.length>1){r.isTouched=false;return}if(!r.startMoving){return}e.allowClick=false;if(!n.cssMode&&l.cancelable){l.preventDefault()}if(n.touchMoveStopPropagation&&!n.nested){l.stopPropagation()}let m=e.isHorizontal()?p:d;let g=e.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;if(n.oneWayMovement){m=Math.abs(m)*(o?1:-1);g=Math.abs(g)*(o?1:-1)}s.diff=m;m*=n.touchRatio;if(o){m=-m;g=-g}const v=e.touchesDirection;e.swipeDirection=m>0?"prev":"next";e.touchesDirection=g>0?"prev":"next";const w=e.params.loop&&!n.cssMode;if(!r.isMoved){if(w){e.loopFix({direction:e.swipeDirection})}r.startTranslate=e.getTranslate();e.setTransition(0);if(e.animating){const t=new window.CustomEvent("transitionend",{bubbles:true,cancelable:true});e.wrapperEl.dispatchEvent(t)}r.allowMomentumBounce=false;if(n.grabCursor&&(e.allowSlideNext===true||e.allowSlidePrev===true)){e.setGrabCursor(true)}e.emit("sliderFirstMove",l)}let b;if(r.isMoved&&v!==e.touchesDirection&&w&&Math.abs(m)>=1){e.loopFix({direction:e.swipeDirection,setTranslate:true});b=true}e.emit("sliderMove",l);r.isMoved=true;r.currentTranslate=m+r.startTranslate;let y=true;let x=n.resistanceRatio;if(n.touchReleaseOnEdges){x=0}if(m>0){if(w&&!b&&r.currentTranslate>(n.centeredSlides?e.minTranslate()-e.size/2:e.minTranslate())){e.loopFix({direction:"prev",setTranslate:true,activeSlideIndex:0})}if(r.currentTranslate>e.minTranslate()){y=false;if(n.resistance){r.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+r.startTranslate+m)**x}}}else if(m<0){if(w&&!b&&r.currentTranslate<(n.centeredSlides?e.maxTranslate()+e.size/2:e.maxTranslate())){e.loopFix({direction:"next",setTranslate:true,activeSlideIndex:e.slides.length-(n.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))})}if(r.currentTranslate<e.maxTranslate()){y=false;if(n.resistance){r.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-r.startTranslate-m)**x}}}if(y){l.preventedByNestedSwiper=true}if(!e.allowSlideNext&&e.swipeDirection==="next"&&r.currentTranslate<r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&e.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate){r.currentTranslate=r.startTranslate}if(!e.allowSlidePrev&&!e.allowSlideNext){r.currentTranslate=r.startTranslate}if(n.threshold>0){if(Math.abs(m)>n.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=true;s.startX=s.currentX;s.startY=s.currentY;r.currentTranslate=r.startTranslate;s.diff=e.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}}if(!n.followFinger||n.cssMode)return;if(n.freeMode&&n.freeMode.enabled&&e.freeMode||n.watchSlidesProgress){e.updateActiveIndex();e.updateSlidesClasses()}if(n.freeMode&&n.freeMode.enabled&&e.freeMode){e.freeMode.onTouchMove()}e.updateProgress(r.currentTranslate);e.setTranslate(r.currentTranslate)}function fs(t){const i=this;const e=i.touchEventsData;const r=e.evCache.findIndex((i=>i.pointerId===t.pointerId));if(r>=0){e.evCache.splice(r,1)}if(["pointercancel","pointerout","pointerleave"].includes(t.type)){const e=t.type==="pointercancel"&&(i.browser.isSafari||i.browser.isWebView);if(!e){return}}const{params:n,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=i;if(!l)return;if(!n.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent)c=c.originalEvent;if(e.allowTouchCallbacks){i.emit("touchEnd",c)}e.allowTouchCallbacks=false;if(!e.isTouched){if(e.isMoved&&n.grabCursor){i.setGrabCursor(false)}e.isMoved=false;e.startMoving=false;return}if(n.grabCursor&&e.isMoved&&e.isTouched&&(i.allowSlideNext===true||i.allowSlidePrev===true)){i.setGrabCursor(false)}const h=Hr();const f=h-e.touchStartTime;if(i.allowClick){const t=c.path||c.composedPath&&c.composedPath();i.updateClickedSlide(t&&t[0]||c.target);i.emit("tap click",c);if(f<300&&h-e.lastClickTime<300){i.emit("doubleTap doubleClick",c)}}e.lastClickTime=Hr();Zr((()=>{if(!i.destroyed)i.allowClick=true}));if(!e.isTouched||!e.isMoved||!i.swipeDirection||s.diff===0||e.currentTranslate===e.startTranslate){e.isTouched=false;e.isMoved=false;e.startMoving=false;return}e.isTouched=false;e.isMoved=false;e.startMoving=false;let u;if(n.followFinger){u=o?i.translate:-i.translate}else{u=-e.currentTranslate}if(n.cssMode){return}if(n.freeMode&&n.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:u});return}let p=0;let d=i.slidesSizesGrid[0];for(let b=0;b<a.length;b+=b<n.slidesPerGroupSkip?1:n.slidesPerGroup){const t=b<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(typeof a[b+t]!=="undefined"){if(u>=a[b]&&u<a[b+t]){p=b;d=a[b+t]-a[b]}}else if(u>=a[b]){p=b;d=a[a.length-1]-a[a.length-2]}}let m=null;let g=null;if(n.rewind){if(i.isBeginning){g=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1}else if(i.isEnd){m=0}}const v=(u-a[p])/d;const w=p<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(f>n.longSwipesMs){if(!n.longSwipes){i.slideTo(i.activeIndex);return}if(i.swipeDirection==="next"){if(v>=n.longSwipesRatio)i.slideTo(n.rewind&&i.isEnd?m:p+w);else i.slideTo(p)}if(i.swipeDirection==="prev"){if(v>1-n.longSwipesRatio){i.slideTo(p+w)}else if(g!==null&&v<0&&Math.abs(v)>n.longSwipesRatio){i.slideTo(g)}else{i.slideTo(p)}}}else{if(!n.shortSwipes){i.slideTo(i.activeIndex);return}const t=i.navigation&&(c.target===i.navigation.nextEl||c.target===i.navigation.prevEl);if(!t){if(i.swipeDirection==="next"){i.slideTo(m!==null?m:p+w)}if(i.swipeDirection==="prev"){i.slideTo(g!==null?g:p)}}else if(c.target===i.navigation.nextEl){i.slideTo(p+w)}else{i.slideTo(p)}}}function us(){const t=this;const{params:i,el:e}=t;if(e&&e.offsetWidth===0)return;if(i.breakpoints){t.setBreakpoint()}const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=t;const o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=true;t.allowSlidePrev=true;t.updateSize();t.updateSlides();t.updateSlidesClasses();const a=o&&i.loop;if((i.slidesPerView==="auto"||i.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){t.slideTo(t.slides.length-1,0,false,true)}else{if(t.params.loop&&!o){t.slideToLoop(t.realIndex,0,false,true)}else{t.slideTo(t.activeIndex,0,false,true)}}if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){clearTimeout(t.autoplay.resizeTimeout);t.autoplay.resizeTimeout=setTimeout((()=>{if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){t.autoplay.resume()}}),500)}t.allowSlidePrev=n;t.allowSlideNext=r;if(t.params.watchOverflow&&s!==t.snapGrid){t.checkOverflow()}}function ps(t){const i=this;if(!i.enabled)return;if(!i.allowClick){if(i.params.preventClicks)t.preventDefault();if(i.params.preventClicksPropagation&&i.animating){t.stopPropagation();t.stopImmediatePropagation()}}}function ds(){const t=this;const{wrapperEl:i,rtlTranslate:e,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate;if(t.isHorizontal()){t.translate=-i.scrollLeft}else{t.translate=-i.scrollTop}if(t.translate===0)t.translate=0;t.updateActiveIndex();t.updateSlidesClasses();let n;const s=t.maxTranslate()-t.minTranslate();if(s===0){n=0}else{n=(t.translate-t.minTranslate())/s}if(n!==t.progress){t.updateProgress(e?-t.translate:t.translate)}t.emit("setTranslate",t.translate,false)}function ms(t){const i=this;En(i,t.target);if(i.params.cssMode||i.params.slidesPerView!=="auto"&&!i.params.autoHeight){return}i.update()}let gs=false;function vs(){}const ws=(t,i)=>{const e=Dr();const{params:r,el:n,wrapperEl:s,device:o}=t;const a=!!r.nested;const l=i==="on"?"addEventListener":"removeEventListener";const c=i;n[l]("pointerdown",t.onTouchStart,{passive:false});e[l]("pointermove",t.onTouchMove,{passive:false,capture:a});e[l]("pointerup",t.onTouchEnd,{passive:true});e[l]("pointercancel",t.onTouchEnd,{passive:true});e[l]("pointerout",t.onTouchEnd,{passive:true});e[l]("pointerleave",t.onTouchEnd,{passive:true});if(r.preventClicks||r.preventClicksPropagation){n[l]("click",t.onClick,true)}if(r.cssMode){s[l]("scroll",t.onScroll)}if(r.updateOnWindowResize){t[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",us,true)}else{t[c]("observerUpdate",us,true)}n[l]("load",t.onLoad,{capture:true})};function bs(){const t=this;const i=Dr();const{params:e}=t;t.onTouchStart=cs.bind(t);t.onTouchMove=hs.bind(t);t.onTouchEnd=fs.bind(t);if(e.cssMode){t.onScroll=ds.bind(t)}t.onClick=ps.bind(t);t.onLoad=ms.bind(t);if(!gs){i.addEventListener("touchstart",vs);gs=true}ws(t,"on")}function ys(){const t=this;ws(t,"off")}const xs={attachEvents:bs,detachEvents:ys};const ks=(t,i)=>t.grid&&i.grid&&i.grid.rows>1;function As(){const t=this;const{realIndex:i,initialized:e,params:r,el:n}=t;const s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=o in s?s[o]:undefined;const l=a||t.originalParams;const c=ks(t,r);const h=ks(t,l);const f=r.enabled;if(c&&!h){n.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`);t.emitContainerClasses()}else if(!c&&h){n.classList.add(`${r.containerModifierClass}grid`);if(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column"){n.classList.add(`${r.containerModifierClass}grid-column`)}t.emitContainerClasses()}["navigation","pagination","scrollbar"].forEach((i=>{if(typeof l[i]==="undefined")return;const e=r[i]&&r[i].enabled;const n=l[i]&&l[i].enabled;if(e&&!n){t[i].disable()}if(!e&&n){t[i].enable()}}));const u=l.direction&&l.direction!==r.direction;const p=r.loop&&(l.slidesPerView!==r.slidesPerView||u);if(u&&e){t.changeDirection()}Kr(t.params,l);const d=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev});if(f&&!d){t.disable()}else if(!f&&d){t.enable()}t.currentBreakpoint=o;t.emit("_beforeBreakpoint",l);if(p&&e){t.loopDestroy();t.loopCreate(i);t.updateSlides()}t.emit("breakpoint",l)}function _s(t,i="window",e){if(!t||i==="container"&&!e)return undefined;let r=false;const n=Gr();const s=i==="window"?n.innerHeight:e.clientHeight;const o=Object.keys(t).map((t=>{if(typeof t==="string"&&t.indexOf("@")===0){const i=parseFloat(t.substr(1));const e=s*i;return{value:e,point:t}}return{value:t,point:t}}));o.sort(((t,i)=>parseInt(t.value,10)-parseInt(i.value,10)));for(let a=0;a<o.length;a+=1){const{point:t,value:s}=o[a];if(i==="window"){if(n.matchMedia(`(min-width: ${s}px)`).matches){r=t}}else if(s<=e.clientWidth){r=t}}return r||"max"}const Ms={setBreakpoint:As,getBreakpoint:_s};function zs(t,i){const e=[];t.forEach((t=>{if(typeof t==="object"){Object.keys(t).forEach((r=>{if(t[r]){e.push(i+r)}}))}else if(typeof t==="string"){e.push(i+t)}}));return e}function Ls(){const t=this;const{classNames:i,params:e,rtl:r,el:n,device:s}=t;const o=zs(["initialized",e.direction,{"free-mode":t.params.freeMode&&e.freeMode.enabled},{autoheight:e.autoHeight},{rtl:r},{grid:e.grid&&e.grid.rows>1},{"grid-column":e.grid&&e.grid.rows>1&&e.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":e.cssMode},{centered:e.cssMode&&e.centeredSlides},{"watch-progress":e.watchSlidesProgress}],e.containerModifierClass);i.push(...o);n.classList.add(...i);t.emitContainerClasses()}function Cs(){const t=this;const{el:i,classNames:e}=t;i.classList.remove(...e);t.emitContainerClasses()}const Es={addClasses:Ls,removeClasses:Cs};function Ps(){const t=this;const{isLocked:i,params:e}=t;const{slidesOffsetBefore:r}=e;if(r){const i=t.slides.length-1;const e=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>e}else{t.isLocked=t.snapGrid.length===1}if(e.allowSlideNext===true){t.allowSlideNext=!t.isLocked}if(e.allowSlidePrev===true){t.allowSlidePrev=!t.isLocked}if(i&&i!==t.isLocked){t.isEnd=false}if(i!==t.isLocked){t.emit(t.isLocked?"lock":"unlock")}}const Os={checkOverflow:Ps};const js={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 Ss(t,i){return function e(r={}){const n=Object.keys(r)[0];const s=r[n];if(typeof s!=="object"||s===null){Kr(i,r);return}if(["navigation","pagination","scrollbar"].indexOf(n)>=0&&t[n]===true){t[n]={auto:true}}if(!(n in t&&"enabled"in s)){Kr(i,r);return}if(t[n]===true){t[n]={enabled:true}}if(typeof t[n]==="object"&&!("enabled"in t[n])){t[n].enabled=true}if(!t[n])t[n]={enabled:false};Kr(i,r)}}const Ts={eventsEmitter:xn,update:In,translate:Yn,transition:Un,slide:ts,loop:ns,grabCursor:as,events:xs,breakpoints:Ms,checkOverflow:Os,classes:Es};const Is={};class Bs{constructor(...t){let i;let e;if(t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"){e=t[0]}else{[i,e]=t}if(!e)e={};e=Kr({},e);if(i&&!e.el)e.el=i;const r=Dr();if(e.el&&typeof e.el==="string"&&r.querySelectorAll(e.el).length>1){const t=[];r.querySelectorAll(e.el).forEach((i=>{const r=Kr({},e,{el:i});t.push(new Bs(r))}));return t}const n=this;n.__swiper__=true;n.support=un();n.device=mn({userAgent:e.userAgent});n.browser=wn();n.eventsListeners={};n.eventsAnyListeners=[];n.modules=[...n.__modules__];if(e.modules&&Array.isArray(e.modules)){n.modules.push(...e.modules)}const s={};n.modules.forEach((t=>{t({params:e,swiper:n,extendParams:Ss(e,s),on:n.on.bind(n),once:n.once.bind(n),off:n.off.bind(n),emit:n.emit.bind(n)})}));const o=Kr({},js,s);n.params=Kr({},o,Is,e);n.originalParams=Kr({},n.params);n.passedParams=Kr({},e);if(n.params&&n.params.on){Object.keys(n.params.on).forEach((t=>{n.on(t,n.params.on[t])}))}if(n.params&&n.params.onAny){n.onAny(n.params.onAny)}Object.assign(n,{enabled:n.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return n.params.direction==="horizontal"},isVertical(){return n.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:true,isEnd:false,translate:0,previousTranslate:0,progress:0,velocity:0,animating:false,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEventsData:{isTouched:undefined,isMoved:undefined,allowTouchCallbacks:undefined,touchStartTime:undefined,isScrolling:undefined,currentTranslate:undefined,startTranslate:undefined,allowThresholdMove:undefined,focusableElements:n.params.focusableElements,lastClickTime:0,clickTimeout:undefined,velocities:[],allowMomentumBounce:undefined,startMoving:undefined,evCache:[]},allowClick:true,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0});n.emit("_swiper");if(n.params.init){n.init()}return n}getSlideIndex(t){const{slidesEl:i,params:e}=this;const r=Xr(i,`.${e.slideClass}, swiper-slide`);const n=on(r[0]);return on(t)-n}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter((i=>i.getAttribute("data-swiper-slide-index")*1===t))[0])}recalcSlides(){const t=this;const{slidesEl:i,params:e}=t;t.slides=Xr(i,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;if(t.enabled)return;t.enabled=true;if(t.params.grabCursor){t.setGrabCursor()}t.emit("enable")}disable(){const t=this;if(!t.enabled)return;t.enabled=false;if(t.params.grabCursor){t.unsetGrabCursor()}t.emit("disable")}setProgress(t,i){const e=this;t=Math.min(Math.max(t,0),1);const r=e.minTranslate();const n=e.maxTranslate();const s=(n-r)*t+r;e.translateTo(s,typeof i==="undefined"?0:i);e.updateActiveIndex();e.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=t.el.className.split(" ").filter((i=>i.indexOf("swiper")===0||i.indexOf(t.params.containerModifierClass)===0));t.emit("_containerClasses",i.join(" "))}getSlideClasses(t){const i=this;if(i.destroyed)return"";return t.className.split(" ").filter((t=>t.indexOf("swiper-slide")===0||t.indexOf(i.params.slideClass)===0)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const i=[];t.slides.forEach((e=>{const r=t.getSlideClasses(e);i.push({slideEl:e,classNames:r});t.emit("_slideClass",e,r)}));t.emit("_slideClasses",i)}slidesPerViewDynamic(t="current",i=false){const e=this;const{params:r,slides:n,slidesGrid:s,slidesSizesGrid:o,size:a,activeIndex:l}=e;let c=1;if(r.centeredSlides){let t=n[l]?n[l].swiperSlideSize:0;let i;for(let e=l+1;e<n.length;e+=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}for(let e=l-1;e>=0;e-=1){if(n[e]&&!i){t+=n[e].swiperSlideSize;c+=1;if(t>a)i=true}}}else{if(t==="current"){for(let t=l+1;t<n.length;t+=1){const e=i?s[t]+o[t]-s[l]<a:s[t]-s[l]<a;if(e){c+=1}}}else{for(let t=l-1;t>=0;t-=1){const i=s[l]-s[t]<a;if(i){c+=1}}}}return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:i,params:e}=t;if(e.breakpoints){t.setBreakpoint()}[...t.el.querySelectorAll('[loading="lazy"]')].forEach((i=>{if(i.complete){En(t,i)}}));t.updateSize();t.updateSlides();t.updateProgress();t.updateSlidesClasses();function r(){const i=t.rtlTranslate?t.translate*-1:t.translate;const e=Math.min(Math.max(i,t.maxTranslate()),t.minTranslate());t.setTranslate(e);t.updateActiveIndex();t.updateSlidesClasses()}let n;if(e.freeMode&&e.freeMode.enabled&&!e.cssMode){r();if(e.autoHeight){t.updateAutoHeight()}}else{if((e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!e.centeredSlides){const i=t.virtual&&e.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(i.length-1,0,false,true)}else{n=t.slideTo(t.activeIndex,0,false,true)}if(!n){r()}}if(e.watchOverflow&&i!==t.snapGrid){t.checkOverflow()}t.emit("update")}changeDirection(t,i=true){const e=this;const r=e.params.direction;if(!t){t=r==="horizontal"?"vertical":"horizontal"}if(t===r||t!=="horizontal"&&t!=="vertical"){return e}e.el.classList.remove(`${e.params.containerModifierClass}${r}`);e.el.classList.add(`${e.params.containerModifierClass}${t}`);e.emitContainerClasses();e.params.direction=t;e.slides.forEach((i=>{if(t==="vertical"){i.style.width=""}else{i.style.height=""}}));e.emit("changeDirection");if(i)e.update();return e}changeLanguageDirection(t){const i=this;if(i.rtl&&t==="rtl"||!i.rtl&&t==="ltr")return;i.rtl=t==="rtl";i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl;if(i.rtl){i.el.classList.add(`${i.params.containerModifierClass}rtl`);i.el.dir="rtl"}else{i.el.classList.remove(`${i.params.containerModifierClass}rtl`);i.el.dir="ltr"}i.update()}mount(t){const i=this;if(i.mounted)return true;let e=t||i.params.el;if(typeof e==="string"){e=document.querySelector(e)}if(!e){return false}e.swiper=i;if(e.shadowEl){i.isElement=true}const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;const n=()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=e.shadowRoot.querySelector(r());return t}return Xr(e,r())[0]};let s=n();if(!s&&i.params.createElements){s=tn("div",i.params.wrapperClass);e.append(s);Xr(e,`.${i.params.slideClass}`).forEach((t=>{s.append(t)}))}Object.assign(i,{el:e,wrapperEl:s,slidesEl:i.isElement?e:s,mounted:true,rtl:e.dir.toLowerCase()==="rtl"||sn(e,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(e.dir.toLowerCase()==="rtl"||sn(e,"direction")==="rtl"),wrongRTL:sn(s,"display")==="-webkit-box"});return true}init(t){const i=this;if(i.initialized)return i;const e=i.mount(t);if(e===false)return i;i.emit("beforeInit");if(i.params.breakpoints){i.setBreakpoint()}i.addClasses();i.updateSize();i.updateSlides();if(i.params.watchOverflow){i.checkOverflow()}if(i.params.grabCursor&&i.enabled){i.setGrabCursor()}if(i.params.loop&&i.virtual&&i.params.virtual.enabled){i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,false,true)}else{i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,false,true)}if(i.params.loop){i.loopCreate()}i.attachEvents();[...i.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{if(t.complete){En(i,t)}else{t.addEventListener("load",(t=>{En(i,t.target)}))}}));On(i);i.initialized=true;On(i);i.emit("init");i.emit("afterInit");return i}destroy(t=true,i=true){const e=this;const{params:r,el:n,wrapperEl:s,slides:o}=e;if(typeof e.params==="undefined"||e.destroyed){return null}e.emit("beforeDestroy");e.initialized=false;e.detachEvents();if(r.loop){e.loopDestroy()}if(i){e.removeClasses();n.removeAttribute("style");s.removeAttribute("style");if(o&&o.length){o.forEach((t=>{t.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass);t.removeAttribute("style");t.removeAttribute("data-swiper-slide-index")}))}}e.emit("destroy");Object.keys(e.eventsListeners).forEach((t=>{e.off(t)}));if(t!==false){e.el.swiper=null;$r(e)}e.destroyed=true;return null}static extendDefaults(t){Kr(Is,t)}static get extendedDefaults(){return Is}static get defaults(){return js}static installModule(t){if(!Bs.prototype.__modules__)Bs.prototype.__modules__=[];const i=Bs.prototype.__modules__;if(typeof t==="function"&&i.indexOf(t)<0){i.push(t)}}static use(t){if(Array.isArray(t)){t.forEach((t=>Bs.installModule(t)));return Bs}Bs.installModule(t);return Bs}}Object.keys(Ts).forEach((t=>{Object.keys(Ts[t]).forEach((i=>{Bs.prototype[i]=Ts[t][i]}))}));Bs.use([bn,yn]);function Fs({swiper:t,extendParams:i,on:e,emit:r}){const n=Dr();const s=Gr();t.keyboard={enabled:false};i({keyboard:{enabled:false,onlyInViewport:true,pageUpDown:true}});function o(i){if(!t.enabled)return;const{rtlTranslate:e}=t;let o=i;if(o.originalEvent)o=o.originalEvent;const a=o.keyCode||o.charCode;const l=t.params.keyboard.pageUpDown;const c=l&&a===33;const h=l&&a===34;const f=a===37;const u=a===39;const p=a===38;const d=a===40;if(!t.allowSlideNext&&(t.isHorizontal()&&u||t.isVertical()&&d||h)){return false}if(!t.allowSlidePrev&&(t.isHorizontal()&&f||t.isVertical()&&p||c)){return false}if(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey){return undefined}if(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea")){return undefined}if(t.params.keyboard.onlyInViewport&&(c||h||f||u||p||d)){let i=false;if(an(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&an(t.el,`.${t.params.slideActiveClass}`).length===0){return undefined}const r=t.el;const n=r.clientWidth;const o=r.clientHeight;const a=s.innerWidth;const l=s.innerHeight;const c=en(r);if(e)c.left-=r.scrollLeft;const h=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+o],[c.left+n,c.top+o]];for(let t=0;t<h.length;t+=1){const e=h[t];if(e[0]>=0&&e[0]<=a&&e[1]>=0&&e[1]<=l){if(e[0]===0&&e[1]===0)continue;i=true}}if(!i)return undefined}if(t.isHorizontal()){if(c||h||f||u){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if((h||u)&&!e||(c||f)&&e)t.slideNext();if((c||f)&&!e||(h||u)&&e)t.slidePrev()}else{if(c||h||p||d){if(o.preventDefault)o.preventDefault();else o.returnValue=false}if(h||d)t.slideNext();if(c||p)t.slidePrev()}r("keyPress",a);return undefined}function a(){if(t.keyboard.enabled)return;n.addEventListener("keydown",o);t.keyboard.enabled=true}function l(){if(!t.keyboard.enabled)return;n.removeEventListener("keydown",o);t.keyboard.enabled=false}e("init",(()=>{if(t.params.keyboard.enabled){a()}}));e("destroy",(()=>{if(t.keyboard.enabled){l()}}));Object.assign(t.keyboard,{enable:a,disable:l})}function Rs({swiper:t,extendParams:i,on:e,emit:r}){const n=Gr();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};let s;let o=Hr();let a;const l=[];function c(t){const i=10;const e=40;const r=800;let n=0;let s=0;let o=0;let a=0;if("detail"in t){s=t.detail}if("wheelDelta"in t){s=-t.wheelDelta/120}if("wheelDeltaY"in t){s=-t.wheelDeltaY/120}if("wheelDeltaX"in t){n=-t.wheelDeltaX/120}if("axis"in t&&t.axis===t.HORIZONTAL_AXIS){n=s;s=0}o=n*i;a=s*i;if("deltaY"in t){a=t.deltaY}if("deltaX"in t){o=t.deltaX}if(t.shiftKey&&!o){o=a;a=0}if((o||a)&&t.deltaMode){if(t.deltaMode===1){o*=e;a*=e}else{o*=r;a*=r}}if(o&&!n){n=o<1?-1:1}if(a&&!s){s=a<1?-1:1}return{spinX:n,spinY:s,pixelX:o,pixelY:a}}function h(){if(!t.enabled)return;t.mouseEntered=true}function f(){if(!t.enabled)return;t.mouseEntered=false}function u(i){if(t.params.mousewheel.thresholdDelta&&i.delta<t.params.mousewheel.thresholdDelta){return false}if(t.params.mousewheel.thresholdTime&&Hr()-o<t.params.mousewheel.thresholdTime){return false}if(i.delta>=6&&Hr()-o<60){return true}if(i.direction<0){if((!t.isEnd||t.params.loop)&&!t.animating){t.slideNext();r("scroll",i.raw)}}else if((!t.isBeginning||t.params.loop)&&!t.animating){t.slidePrev();r("scroll",i.raw)}o=(new n.Date).getTime();return false}function p(i){const e=t.params.mousewheel;if(i.direction<0){if(t.isEnd&&!t.params.loop&&e.releaseOnEdges){return true}}else if(t.isBeginning&&!t.params.loop&&e.releaseOnEdges){return true}return false}function d(i){let e=i;let n=true;if(!t.enabled)return;if(i.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const o=t.params.mousewheel;if(t.params.cssMode){e.preventDefault()}let h=t.el;if(t.params.mousewheel.eventsTarget!=="container"){h=document.querySelector(t.params.mousewheel.eventsTarget)}const f=h&&h.contains(e.target);if(!t.mouseEntered&&!f&&!o.releaseOnEdges)return true;if(e.originalEvent)e=e.originalEvent;let d=0;const m=t.rtlTranslate?-1:1;const g=c(e);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;let v=t.getTranslate()+d*o.sensitivity;if(v>=t.minTranslate())v=t.minTranslate();if(v<=t.maxTranslate())v=t.maxTranslate();n=t.params.loop?true:!(v===t.minTranslate()||v===t.maxTranslate());if(n&&t.params.nested)e.stopPropagation();if(!t.params.freeMode||!t.params.freeMode.enabled){const t={time:Hr(),delta:Math.abs(d),direction:Math.sign(d),raw:i};if(l.length>=2){l.shift()}const e=l.length?l[l.length-1]:undefined;l.push(t);if(e){if(t.direction!==e.direction||t.delta>e.delta||t.time>e.time+150){u(t)}}else{u(t)}if(p(t)){return true}}else{const i={time:Hr(),delta:Math.abs(d),direction:Math.sign(d)};const n=a&&i.time<a.time+500&&i.delta<=a.delta&&i.direction===a.direction;if(!n){a=undefined;let c=t.getTranslate()+d*o.sensitivity;const h=t.isBeginning;const f=t.isEnd;if(c>=t.minTranslate())c=t.minTranslate();if(c<=t.maxTranslate())c=t.maxTranslate();t.setTransition(0);t.setTranslate(c);t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses();if(!h&&t.isBeginning||!f&&t.isEnd){t.updateSlidesClasses()}if(t.params.loop){t.loopFix({direction:i.direction<0?"next":"prev",byMousewheel:true})}if(t.params.freeMode.sticky){clearTimeout(s);s=undefined;if(l.length>=15){l.shift()}const e=l.length?l[l.length-1]:undefined;const r=l[0];l.push(i);if(e&&(i.delta>e.delta||i.direction!==e.direction)){l.splice(0)}else if(l.length>=15&&i.time-r.time<500&&r.delta-i.delta>=1&&i.delta<=6){const e=d>0?.8:.2;a=i;l.splice(0);s=Zr((()=>{t.slideToClosest(t.params.speed,true,undefined,e)}),0)}if(!s){s=Zr((()=>{const e=.5;a=i;l.splice(0);t.slideToClosest(t.params.speed,true,undefined,e)}),500)}}if(!n)r("scroll",e);if(t.params.autoplay&&t.params.autoplayDisableOnInteraction)t.autoplay.stop();if(c===t.minTranslate()||c===t.maxTranslate())return true}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;return false}function m(i){let e=t.el;if(t.params.mousewheel.eventsTarget!=="container"){e=document.querySelector(t.params.mousewheel.eventsTarget)}e[i]("mouseenter",h);e[i]("mouseleave",f);e[i]("wheel",d)}function g(){if(t.params.cssMode){t.wrapperEl.removeEventListener("wheel",d);return true}if(t.mousewheel.enabled)return false;m("addEventListener");t.mousewheel.enabled=true;return true}function v(){if(t.params.cssMode){t.wrapperEl.addEventListener(event,d);return true}if(!t.mousewheel.enabled)return false;m("removeEventListener");t.mousewheel.enabled=false;return true}e("init",(()=>{if(!t.params.mousewheel.enabled&&t.params.cssMode){v()}if(t.params.mousewheel.enabled)g()}));e("destroy",(()=>{if(t.params.cssMode){g()}if(t.mousewheel.enabled)v()}));Object.assign(t.mousewheel,{enable:g,disable:v})}function Ns(t,i,e,r){if(t.params.createElements){Object.keys(r).forEach((n=>{if(!e[n]&&e.auto===true){let s=Xr(t.el,`.${r[n]}`)[0];if(!s){s=tn("div",r[n]);s.className=r[n];t.el.append(s)}e[n]=s;i[n]=s}}))}return e}function Ds({swiper:t,extendParams:i,on:e,emit:r}){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};const n=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function s(i){let e;if(i&&typeof i==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i);if(e)return e}if(i){if(typeof i==="string")e=[...document.querySelectorAll(i)];if(t.params.uniqueNavElements&&typeof i==="string"&&e.length>1&&t.el.querySelectorAll(i).length===1){e=t.el.querySelector(i)}}if(i&&!e)return i;return e}function o(i,e){const r=t.params.navigation;i=n(i);i.forEach((i=>{if(i){i.classList[e?"add":"remove"](...r.disabledClass.split(" "));if(i.tagName==="BUTTON")i.disabled=e;if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](r.lockClass)}}}))}function a(){const{nextEl:i,prevEl:e}=t.navigation;if(t.params.loop){o(e,false);o(i,false);return}o(e,t.isBeginning&&!t.params.rewind);o(i,t.isEnd&&!t.params.rewind)}function l(i){i.preventDefault();if(t.isBeginning&&!t.params.loop&&!t.params.rewind)return;t.slidePrev();r("navigationPrev")}function c(i){i.preventDefault();if(t.isEnd&&!t.params.loop&&!t.params.rewind)return;t.slideNext();r("navigationNext")}function h(){const i=t.params.navigation;t.params.navigation=Ns(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});if(!(i.nextEl||i.prevEl))return;let e=s(i.nextEl);let r=s(i.prevEl);Object.assign(t.navigation,{nextEl:e,prevEl:r});e=n(e);r=n(r);const o=(e,r)=>{if(e){e.addEventListener("click",r==="next"?c:l)}if(!t.enabled&&e){e.classList.add(...i.lockClass.split(" "))}};e.forEach((t=>o(t,"next")));r.forEach((t=>o(t,"prev")))}function f(){let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);const r=(i,e)=>{i.removeEventListener("click",e==="next"?c:l);i.classList.remove(...t.params.navigation.disabledClass.split(" "))};i.forEach((t=>r(t,"next")));e.forEach((t=>r(t,"prev")))}e("init",(()=>{if(t.params.navigation.enabled===false){p()}else{h();a()}}));e("toEdge fromEdge lock unlock",(()=>{a()}));e("destroy",(()=>{f()}));e("enable disable",(()=>{let{nextEl:i,prevEl:e}=t.navigation;i=n(i);e=n(e);[...i,...e].filter((t=>!!t)).forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.navigation.lockClass)))}));e("click",((i,e)=>{let{nextEl:s,prevEl:o}=t.navigation;s=n(s);o=n(o);const a=e.target;if(t.params.navigation.hideOnClick&&!o.includes(a)&&!s.includes(a)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let i;if(s.length){i=s[0].classList.contains(t.params.navigation.hiddenClass)}else if(o.length){i=o[0].classList.contains(t.params.navigation.hiddenClass)}if(i===true){r("navigationShow")}else{r("navigationHide")}[...s,...o].filter((t=>!!t)).forEach((i=>i.classList.toggle(t.params.navigation.hiddenClass)))}}));const u=()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" "));h();a()};const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" "));f()};Object.assign(t.navigation,{enable:u,disable:p,update:a,init:h,destroy:f})}function Ys(t=""){return`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Gs({swiper:t,extendParams:i,on:e,emit:r}){const n="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:t=>t,formatFractionTotal:t=>t,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}});t.pagination={el:null,bullets:[]};let s;let o=0;const a=t=>{if(!Array.isArray(t))t=[t].filter((t=>!!t));return t};function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(i,e){const{bulletActiveClass:r}=t.params.pagination;if(!i)return;i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}`);i=i[`${e==="prev"?"previous":"next"}ElementSibling`];if(i){i.classList.add(`${r}-${e}-${e}`)}}}function h(i){const e=i.target.closest(Ys(t.params.pagination.bulletClass));if(!e){return}i.preventDefault();const r=on(e)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===r)return;const i=t.getSlideIndexByData(r);const e=t.getSlideIndexByData(t.realIndex);if(i>t.slides.length-t.loopedSlides){t.loopFix({direction:i>e?"next":"prev",activeSlideIndex:i,slideTo:false})}t.slideToLoop(r)}else{t.slideTo(r)}}function f(){const i=t.rtl;const e=t.params.pagination;if(l())return;let n=t.pagination.el;n=a(n);let h;let f;const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;const p=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop){f=t.previousRealIndex||0;h=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex}else if(typeof t.snapIndex!=="undefined"){h=t.snapIndex;f=t.previousSnapIndex}else{f=t.previousIndex||0;h=t.activeIndex||0}if(e.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const r=t.pagination.bullets;let a;let l;let u;if(e.dynamicBullets){s=cn(r[0],t.isHorizontal()?"width":"height",true);n.forEach((i=>{i.style[t.isHorizontal()?"width":"height"]=`${s*(e.dynamicMainBullets+4)}px`}));if(e.dynamicMainBullets>1&&f!==undefined){o+=h-(f||0);if(o>e.dynamicMainBullets-1){o=e.dynamicMainBullets-1}else if(o<0){o=0}}a=Math.max(h-o,0);l=a+(Math.min(r.length,e.dynamicMainBullets)-1);u=(l+a)/2}r.forEach((t=>{const i=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((t=>`${e.bulletActiveClass}${t}`))].map((t=>typeof t==="string"&&t.includes(" ")?t.split(" "):t)).flat();t.classList.remove(...i)}));if(n.length>1){r.forEach((i=>{const r=on(i);if(r===h){i.classList.add(...e.bulletActiveClass.split(" "))}else if(t.isElement){i.setAttribute("part","bullet")}if(e.dynamicBullets){if(r>=a&&r<=l){i.classList.add(...`${e.bulletActiveClass}-main`.split(" "))}if(r===a){c(i,"prev")}if(r===l){c(i,"next")}}}))}else{const i=r[h];if(i){i.classList.add(...e.bulletActiveClass.split(" "))}if(t.isElement){r.forEach(((t,i)=>{t.setAttribute("part",i===h?"bullet-active":"bullet")}))}if(e.dynamicBullets){const t=r[a];const i=r[l];for(let n=a;n<=l;n+=1){if(r[n]){r[n].classList.add(...`${e.bulletActiveClass}-main`.split(" "))}}c(t,"prev");c(i,"next")}}if(e.dynamicBullets){const n=Math.min(r.length,e.dynamicMainBullets+4);const o=(s*n-s)/2-u*s;const a=i?"right":"left";r.forEach((i=>{i.style[t.isHorizontal()?a:"top"]=`${o}px`}))}}n.forEach(((i,n)=>{if(e.type==="fraction"){i.querySelectorAll(Ys(e.currentClass)).forEach((t=>{t.textContent=e.formatFractionCurrent(h+1)}));i.querySelectorAll(Ys(e.totalClass)).forEach((t=>{t.textContent=e.formatFractionTotal(p)}))}if(e.type==="progressbar"){let r;if(e.progressbarOpposite){r=t.isHorizontal()?"vertical":"horizontal"}else{r=t.isHorizontal()?"horizontal":"vertical"}const n=(h+1)/p;let s=1;let o=1;if(r==="horizontal"){s=n}else{o=n}i.querySelectorAll(Ys(e.progressbarFillClass)).forEach((i=>{i.style.transform=`translate3d(0,0,0) scaleX(${s}) scaleY(${o})`;i.style.transitionDuration=`${t.params.speed}ms`}))}if(e.type==="custom"&&e.renderCustom){i.innerHTML=e.renderCustom(t,h+1,p);if(n===0)r("paginationRender",i)}else{if(n===0)r("paginationRender",i);r("paginationUpdate",i)}if(t.params.watchOverflow&&t.enabled){i.classList[t.isLocked?"add":"remove"](e.lockClass)}}))}function u(){const i=t.params.pagination;if(l())return;const e=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let n=t.pagination.el;n=a(n);let s="";if(i.type==="bullets"){let r=t.params.loop?Math.ceil(e/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.freeMode&&t.params.freeMode.enabled&&r>e){r=e}for(let e=0;e<r;e+=1){if(i.renderBullet){s+=i.renderBullet.call(t,e,i.bulletClass)}else{s+=`<${i.bulletElement} ${t.isElement?'part="bullet"':""} class="${i.bulletClass}"></${i.bulletElement}>`}}}if(i.type==="fraction"){if(i.renderFraction){s=i.renderFraction.call(t,i.currentClass,i.totalClass)}else{s=`<span class="${i.currentClass}"></span>`+" / "+`<span class="${i.totalClass}"></span>`}}if(i.type==="progressbar"){if(i.renderProgressbar){s=i.renderProgressbar.call(t,i.progressbarFillClass)}else{s=`<span class="${i.progressbarFillClass}"></span>`}}t.pagination.bullets=[];n.forEach((e=>{if(i.type!=="custom"){e.innerHTML=s||""}if(i.type==="bullets"){t.pagination.bullets.push(...e.querySelectorAll(Ys(i.bulletClass)))}}));if(i.type!=="custom"){r("paginationRender",n[0])}}function p(){t.params.pagination=Ns(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const i=t.params.pagination;if(!i.el)return;let e;if(typeof i.el==="string"&&t.isElement){e=t.el.shadowRoot.querySelector(i.el)}if(!e&&typeof i.el==="string"){e=[...document.querySelectorAll(i.el)]}if(!e){e=i.el}if(!e||e.length===0)return;if(t.params.uniqueNavElements&&typeof i.el==="string"&&Array.isArray(e)&&e.length>1){e=[...t.el.querySelectorAll(i.el)];if(e.length>1){e=e.filter((i=>{if(an(i,".swiper")[0]!==t.el)return false;return true}))[0]}}if(Array.isArray(e)&&e.length===1)e=e[0];Object.assign(t.pagination,{el:e});e=a(e);e.forEach((e=>{if(i.type==="bullets"&&i.clickable){e.classList.add(i.clickableClass)}e.classList.add(i.modifierClass+i.type);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.type==="bullets"&&i.dynamicBullets){e.classList.add(`${i.modifierClass}${i.type}-dynamic`);o=0;if(i.dynamicMainBullets<1){i.dynamicMainBullets=1}}if(i.type==="progressbar"&&i.progressbarOpposite){e.classList.add(i.progressbarOppositeClass)}if(i.clickable){e.addEventListener("click",h)}if(!t.enabled){e.classList.add(i.lockClass)}}))}function d(){const i=t.params.pagination;if(l())return;let e=t.pagination.el;if(e){e=a(e);e.forEach((e=>{e.classList.remove(i.hiddenClass);e.classList.remove(i.modifierClass+i.type);e.classList.remove(t.isHorizontal()?i.horizontalClass:i.verticalClass);if(i.clickable){e.removeEventListener("click",h)}}))}if(t.pagination.bullets)t.pagination.bullets.forEach((t=>t.classList.remove(...i.bulletActiveClass.split(" "))))}e("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const i=t.params.pagination;let{el:e}=t.pagination;e=a(e);e.forEach((e=>{e.classList.remove(i.horizontalClass,i.verticalClass);e.classList.add(t.isHorizontal()?i.horizontalClass:i.verticalClass)}))}));e("init",(()=>{if(t.params.pagination.enabled===false){g()}else{p();u();f()}}));e("activeIndexChange",(()=>{if(typeof t.snapIndex==="undefined"){f()}}));e("snapIndexChange",(()=>{f()}));e("snapGridLengthChange",(()=>{u();f()}));e("destroy",(()=>{d()}));e("enable disable",(()=>{let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}}));e("lock unlock",(()=>{f()}));e("click",((i,e)=>{const n=e.target;let{el:s}=t.pagination;if(!Array.isArray(s))s=[s].filter((t=>!!t));if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!n.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;const i=s[0].classList.contains(t.params.pagination.hiddenClass);if(i===true){r("paginationShow")}else{r("paginationHide")}s.forEach((i=>i.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.remove(t.params.pagination.paginationDisabledClass)))}p();u();f()};const g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:i}=t.pagination;if(i){i=a(i);i.forEach((i=>i.classList.add(t.params.pagination.paginationDisabledClass)))}d()};Object.assign(t.pagination,{enable:m,disable:g,render:u,update:f,init:p,destroy:d})}function $s({swiper:t,extendParams:i,on:e,emit:r}){const n=Dr();let s=false;let o=null;let a=null;let l;let c;let h;let f;i({scrollbar:{el:null,dragSize:"auto",hide:false,draggable:false,snapOnRelease:true,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:`swiper-scrollbar-horizontal`,verticalClass:`swiper-scrollbar-vertical`}});t.scrollbar={el:null,dragEl:null};function u(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:i,rtlTranslate:e}=t;const{dragEl:r,el:n}=i;const s=t.params.scrollbar;const a=t.params.loop?t.progressLoop:t.progress;let l=c;let f=(h-c)*a;if(e){f=-f;if(f>0){l=c-f;f=0}else if(-f+c>h){l=h+f}}else if(f<0){l=c+f;f=0}else if(f+c>h){l=h-f}if(t.isHorizontal()){r.style.transform=`translate3d(${f}px, 0, 0)`;r.style.width=`${l}px`}else{r.style.transform=`translate3d(0px, ${f}px, 0)`;r.style.height=`${l}px`}if(s.hide){clearTimeout(o);n.style.opacity=1;o=setTimeout((()=>{n.style.opacity=0;n.style.transitionDuration="400ms"}),1e3)}}function p(i){if(!t.params.scrollbar.el||!t.scrollbar.el)return;t.scrollbar.dragEl.style.transitionDuration=`${i}ms`}function d(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:i}=t;const{dragEl:e,el:r}=i;e.style.width="";e.style.height="";h=t.isHorizontal()?r.offsetWidth:r.offsetHeight;f=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0));if(t.params.scrollbar.dragSize==="auto"){c=h*f}else{c=parseInt(t.params.scrollbar.dragSize,10)}if(t.isHorizontal()){e.style.width=`${c}px`}else{e.style.height=`${c}px`}if(f>=1){r.style.display="none"}else{r.style.display=""}if(t.params.scrollbar.hide){r.style.opacity=0}if(t.params.watchOverflow&&t.enabled){i.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}}function m(i){return t.isHorizontal()?i.clientX:i.clientY}function g(i){const{scrollbar:e,rtlTranslate:r}=t;const{el:n}=e;let s;s=(m(i)-en(n)[t.isHorizontal()?"left":"top"]-(l!==null?l:c/2))/(h-c);s=Math.max(Math.min(s,1),0);if(r){s=1-s}const o=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*s;t.updateProgress(o);t.setTranslate(o);t.updateActiveIndex();t.updateSlidesClasses()}function v(i){const e=t.params.scrollbar;const{scrollbar:n,wrapperEl:o}=t;const{el:c,dragEl:h}=n;s=true;l=i.target===h?m(i)-i.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null;i.preventDefault();i.stopPropagation();o.style.transitionDuration="100ms";h.style.transitionDuration="100ms";g(i);clearTimeout(a);c.style.transitionDuration="0ms";if(e.hide){c.style.opacity=1}if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="none"}r("scrollbarDragStart",i)}function w(i){const{scrollbar:e,wrapperEl:n}=t;const{el:o,dragEl:a}=e;if(!s)return;if(i.preventDefault)i.preventDefault();else i.returnValue=false;g(i);n.style.transitionDuration="0ms";o.style.transitionDuration="0ms";a.style.transitionDuration="0ms";r("scrollbarDragMove",i)}function b(i){const e=t.params.scrollbar;const{scrollbar:n,wrapperEl:o}=t;const{el:l}=n;if(!s)return;s=false;if(t.params.cssMode){t.wrapperEl.style["scroll-snap-type"]="";o.style.transitionDuration=""}if(e.hide){clearTimeout(a);a=Zr((()=>{l.style.opacity=0;l.style.transitionDuration="400ms"}),1e3)}r("scrollbarDragEnd",i);if(e.snapOnRelease){t.slideToClosest()}}function y(i){const{scrollbar:e,params:r}=t;const s=e.el;if(!s)return;const o=s;const a=r.passiveListeners?{passive:false,capture:false}:false;const l=r.passiveListeners?{passive:true,capture:false}:false;if(!o)return;const c=i==="on"?"addEventListener":"removeEventListener";o[c]("pointerdown",v,a);n[c]("pointermove",w,a);n[c]("pointerup",b,l)}function x(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;y("on")}function k(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;y("off")}function A(){const{scrollbar:i,el:e}=t;t.params.scrollbar=Ns(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const r=t.params.scrollbar;if(!r.el)return;let s;if(typeof r.el==="string"&&t.isElement){s=t.el.shadowRoot.querySelector(r.el)}if(!s&&typeof r.el==="string"){s=n.querySelectorAll(r.el)}else if(!s){s=r.el}if(t.params.uniqueNavElements&&typeof r.el==="string"&&s.length>1&&e.querySelectorAll(r.el).length===1){s=e.querySelector(r.el)}if(s.length>0)s=s[0];s.classList.add(t.isHorizontal()?r.horizontalClass:r.verticalClass);let o;if(s){o=s.querySelector(`.${t.params.scrollbar.dragClass}`);if(!o){o=tn("div",t.params.scrollbar.dragClass);s.append(o)}}Object.assign(i,{el:s,dragEl:o});if(r.draggable){x()}if(s){s.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}function _(){const i=t.params.scrollbar;const e=t.scrollbar.el;if(e){e.classList.remove(t.isHorizontal()?i.horizontalClass:i.verticalClass)}k()}e("init",(()=>{if(t.params.scrollbar.enabled===false){z()}else{A();d();u()}}));e("update resize observerUpdate lock unlock",(()=>{d()}));e("setTranslate",(()=>{u()}));e("setTransition",((t,i)=>{p(i)}));e("enable disable",(()=>{const{el:i}=t.scrollbar;if(i){i.classList[t.enabled?"remove":"add"](t.params.scrollbar.lockClass)}}));e("destroy",(()=>{_()}));const M=()=>{t.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.remove(t.params.scrollbar.scrollbarDisabledClass)}A();d();u()};const z=()=>{t.el.classList.add(t.params.scrollbar.scrollbarDisabledClass);if(t.scrollbar.el){t.scrollbar.el.classList.add(t.params.scrollbar.scrollbarDisabledClass)}_()};Object.assign(t.scrollbar,{enable:M,disable:z,updateSize:d,setTranslate:u,init:A,destroy:_})}function Zs({swiper:t,extendParams:i,emit:e,once:r}){i({freeMode:{enabled:false,momentum:true,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:false,minimumVelocity:.02}});function n(){if(t.params.cssMode)return;const i=t.getTranslate();t.setTranslate(i);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;const{touchEventsData:i,touches:e}=t;if(i.velocities.length===0){i.velocities.push({position:e[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime})}i.velocities.push({position:e[t.isHorizontal()?"currentX":"currentY"],time:Hr()})}function o({currentPos:i}){if(t.params.cssMode)return;const{params:n,wrapperEl:s,rtlTranslate:o,snapGrid:a,touchEventsData:l}=t;const c=Hr();const h=c-l.touchStartTime;if(i<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(i>-t.maxTranslate()){if(t.slides.length<a.length){t.slideTo(a.length-1)}else{t.slideTo(t.slides.length-1)}return}if(n.freeMode.momentum){if(l.velocities.length>1){const i=l.velocities.pop();const e=l.velocities.pop();const r=i.position-e.position;const s=i.time-e.time;t.velocity=r/s;t.velocity/=2;if(Math.abs(t.velocity)<n.freeMode.minimumVelocity){t.velocity=0}if(s>150||Hr()-i.time>300){t.velocity=0}}else{t.velocity=0}t.velocity*=n.freeMode.momentumVelocityRatio;l.velocities.length=0;let i=1e3*n.freeMode.momentumRatio;const c=t.velocity*i;let h=t.translate+c;if(o)h=-h;let f=false;let u;const p=Math.abs(t.velocity)*20*n.freeMode.momentumBounceRatio;let d;if(h<t.maxTranslate()){if(n.freeMode.momentumBounce){if(h+t.maxTranslate()<-p){h=t.maxTranslate()-p}u=t.maxTranslate();f=true;l.allowMomentumBounce=true}else{h=t.maxTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(h>t.minTranslate()){if(n.freeMode.momentumBounce){if(h-t.minTranslate()>p){h=t.minTranslate()+p}u=t.minTranslate();f=true;l.allowMomentumBounce=true}else{h=t.minTranslate()}if(n.loop&&n.centeredSlides)d=true}else if(n.freeMode.sticky){let i;for(let t=0;t<a.length;t+=1){if(a[t]>-h){i=t;break}}if(Math.abs(a[i]-h)<Math.abs(a[i-1]-h)||t.swipeDirection==="next"){h=a[i]}else{h=a[i-1]}h=-h}if(d){r("transitionEnd",(()=>{t.loopFix()}))}if(t.velocity!==0){if(o){i=Math.abs((-h-t.translate)/t.velocity)}else{i=Math.abs((h-t.translate)/t.velocity)}if(n.freeMode.sticky){const e=Math.abs((o?-h:h)-t.translate);const r=t.slidesSizesGrid[t.activeIndex];if(e<r){i=n.speed}else if(e<2*r){i=n.speed*1.5}else{i=n.speed*2.5}}}else if(n.freeMode.sticky){t.slideToClosest();return}if(n.freeMode.momentumBounce&&f){t.updateProgress(u);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);t.animating=true;ln(s,(()=>{if(!t||t.destroyed||!l.allowMomentumBounce)return;e("momentumBounce");t.setTransition(n.speed);setTimeout((()=>{t.setTranslate(u);ln(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}),0)}))}else if(t.velocity){e("_freeModeNoMomentumRelease");t.updateProgress(h);t.setTransition(i);t.setTranslate(h);t.transitionStart(true,t.swipeDirection);if(!t.animating){t.animating=true;ln(s,(()=>{if(!t||t.destroyed)return;t.transitionEnd()}))}}else{t.updateProgress(h)}t.updateActiveIndex();t.updateSlidesClasses()}else if(n.freeMode.sticky){t.slideToClosest();return}else if(n.freeMode){e("_freeModeNoMomentumRelease")}if(!n.freeMode.momentum||h>=n.longSwipesMs){t.updateProgress();t.updateActiveIndex();t.updateSlidesClasses()}}Object.assign(t,{freeMode:{onTouchStart:n,onTouchMove:s,onTouchEnd:o}})}const 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-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}';const Us=class{constructor(t){e(this,t);this.poi=undefined;this.displayShortDescription=true;this.showPoiDescriptionButton=false;this.displayFullscreen=false}componentDidLoad(){this.swiperPoi=new Bs(this.swiperPoiRef,{modules:[Ds,Gs,Fs],navigation:{prevEl:this.prevElPoiRef,nextEl:this.nextElPoiRef},pagination:{el:this.paginationElPoiRef},allowTouchMove:false,keyboard:false});this.swiperPoiRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperPoi.keyboard.enable()}else{this.swiperPoi.keyboard.disable()}};this.showPoiDescriptionButton=this.descriptionRef.clientHeight<this.descriptionRef.scrollHeight}handlePoiDescription(){this.displayShortDescription=!this.displayShortDescription}handleFullscreen(){if(this.poi.attachments&&this.poi.attachments[0]&&this.poi.attachments[0].url){this.swiperPoiRef.requestFullscreen()}}render(){var t;const i=a(`${""}assets/default-image.svg`);return r(n,null,r("div",{class:"poi-type-img-container"},r("img",{crossorigin:"anonymous",class:"poi-type",src:`${(t=w.poiTypes.find((t=>t.id===this.poi.type)))===null||t===void 0?void 0:t.pictogram}`}),r("div",{class:"swiper",ref:t=>this.swiperPoiRef=t},r("div",{class:"swiper-wrapper"},this.poi.attachments.length>0?this.poi.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`poi-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:i,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElPoiRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElPoiRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElPoiRef=t}))),r("div",{class:"poi-sub-container"},r("div",{class:"poi-name"},this.poi.name),r("div",{class:this.displayShortDescription?"poi-description-short":"poi-description",innerHTML:this.poi.description,ref:t=>this.descriptionRef=t}),this.showPoiDescriptionButton&&r("div",{class:"handle-poi-description",onClick:()=>this.handlePoiDescription()},this.displayShortDescription?l[w.language].readMore:l[w.language].readLess)))}};Us.style=Hs;const Qs='.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}';const Vs=class{constructor(t){e(this,t);this.fontFamily="Roboto"}onSearchChange(t){w.searchValue=t.target.value;if(w.mode==="treks"){w.currentTreks=I()}else if(w.mode==="touristicContents"){w.currentTouristicContents=B()}else if(w.mode==="touristicEvents"){w.currentTouristicEvents=F()}}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"search"),r("input",{onInput:t=>this.onSearchChange(t),class:"search-input",type:"search",placeholder:"Rechercher",value:w.searchValue}))}};Vs.style=Qs;const Ws=".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)}";const Ks=class{constructor(t){e(this,t);this.treks=true;this.touristicContents=false;this.touristicEvents=false;this.fontFamily="Roboto"}changeMode(t){w.searchValue="";if(t==="treks"&&w.currentTreks){j.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedThemesFilters=0;w.selectedLocationFilters=0;w.currentTreks=I()}else if(t==="touristicContents"&&w.currentTouristicContents){S.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicContents=B()}else if(t==="touristicEvents"&&w.currentTouristicEvents){T.forEach((t=>{w[t.property].forEach((t=>t.selected=false))}));w.selectedActivitiesFilters=0;w.selectedLocationFilters=0;w.currentTouristicEvents=F()}w.mode=t}render(){return r(n,{style:{"--font-family":this.fontFamily}},r("div",{class:"segmented-buttons-container"},this.treks&&r("label",{class:`segment${w.mode==="treks"?" selected-segment":""}`,onClick:()=>this.changeMode("treks")},l[w.language].home.segment.treks),this.touristicContents&&r("label",{class:`segment${w.mode==="touristicContents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicContents")},l[w.language].home.segment.touristicContents),this.touristicEvents&&r("label",{class:`segment${w.mode==="touristicEvents"?" selected-segment":""}`,onClick:()=>this.changeMode("touristicEvents")},l[w.language].home.segment.touristicEvents)))}};Ks.style=Ws;const Js='.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}';const qs=class{constructor(t){e(this,t)}handleSelect(t){w.treks=null;w.currentTreks=null;w.currentTrek=null;w.language=t.target.value}render(){return r(n,null,r("span",{translate:false,class:"material-symbols material-symbols-outlined margin-right-icon"},"translate"),r("select",{onInput:t=>this.handleSelect(t),name:"languages",id:"language-select"},w.languages.map((t=>r("option",{selected:t===w.language,value:t.toLocaleLowerCase()},t.toLocaleUpperCase())))))}};qs.style=Js;const Xs=':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-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sensitive-area-title-container .sensitive-area-color-container{width:20px;height:20px;margin-right:8px;border:3px solid var(--color-sensitive-area);position:relative}.sensitive-area-title-container .sensitive-area-color-container:before{content:"";width:20px;height:20px;background-color:var(--color-sensitive-area);opacity:0.2;position:absolute}.sensitive-area-title-container .sensitive-area-title{font-size:20px;line-height:28px;padding:12px 0px;font-weight:600}.sensitive-area-description{font-size:16px;line-height:24px}.sensitive-area-description p:first-child{margin-top:0}.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:18px;line-height:24px;padding:12px 0px;font-weight:600}.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}';const to=class{constructor(t){e(this,t);this.sensitiveArea=undefined}render(){return r(n,null,r("div",{class:"sensitive-area-title-container"},r("div",{class:"sensitive-area-color-container"}),r("div",{class:"sensitive-area-title"},this.sensitiveArea.name)),r("div",{class:"sensitive-area-description",innerHTML:this.sensitiveArea.description}),this.sensitiveArea.practices&&this.sensitiveArea.practices.length>0&&r("div",{class:"sensitive-area-practice-container"},r("div",{class:"sensitive-area-practice-title"},"Domaines d'activités concernés"),r("div",{class:"sensitive-area-practice-values"},this.sensitiveArea.practices.map(((t,i)=>{const e=w.practices.find((i=>i.id===t));if(e){return r("div",{innerHTML:`${e.name.toUpperCase()}${i+1!==this.sensitiveArea.practices.length?" -&nbsp;":""}`})}})))),this.sensitiveArea.period&&this.sensitiveArea.period.length>0&&r("div",{class:"sensitive-area-period-container"},r("div",{class:"sensitive-area-period-title"},"Périodes de sensibilité"),r("div",{class:"sensitive-area-period-values"},this.sensitiveArea.period.map(((t,i)=>{if(t){return r("div",{innerHTML:`${new Date(0,i+1,0).toLocaleDateString("fr",{month:"long"}).toUpperCase()}${this.sensitiveArea.period.slice(i+1).find((t=>t))?" -&nbsp;":""}`})}})))),r("div",{class:"sensitive-area-contact-container"},r("div",{class:"sensitive-area-contact-title"},"Contact"),r("div",{innerHTML:this.sensitiveArea.contact,class:"sensitive-area-contact-value"})))}};to.style=Xs;const io='@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:150px;-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{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}.is-inside-vertical-list .touristic-event-img,.is-inside-vertical-list .default-touristic-event-img{max-height:200px}.selected-touristic-content-card{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}';const eo=class{constructor(t){e(this,t);this.touristicContentCardPress=o(this,"touristicContentCardPress",7);this.cardTouristicContentMouseOver=o(this,"cardTouristicContentMouseOver",7);this.cardTouristicContentMouseLeave=o(this,"cardTouristicContentMouseLeave",7);this.fontFamily="Roboto";this.touristicContent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicContentRef){this.swiperTouristicContent=new Bs(this.swiperTouristicContentRef,{modules:[Ds,Gs,Fs],navigation:{prevEl:this.prevElTouristicContentRef,nextEl:this.nextElTouristicContentRef},pagination:{el:this.paginationElTouristicContentRef},allowTouchMove:false,keyboard:false});this.swiperTouristicContentRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicContent.keyboard.enable()}else{this.swiperTouristicContent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicContent.attachments&&this.touristicContent.attachments[0]&&this.touristicContent.attachments[0].url){this.swiperTouristicContentRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicContentMouseOver.emit(this.touristicContent.id)}handleMouseLeave(){this.cardTouristicContentMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories.find((t=>t.id===this.touristicContent.category));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-content-card-large-view-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-content-card-container${w.selectedTouristicContentId===this.touristicContent.id?" selected-touristic-content-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicContentCardPress.emit(this.touristicContent.id)}}},r("div",{class:"touristic-content-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicContentRef=t},r("div",{class:"swiper-wrapper"},this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?this.touristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-content-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-content-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicContentRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicContentRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicContentRef=t})):this.touristicContent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicContent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-content-sub-container"},r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"touristic-content-name"},this.touristicContent.name)),this.isInsideHorizontalList&&r("div",{class:"touristic-content-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicContentCardPress.emit(this.touristicContent.id)},"Plus de détails"))))}};eo.style=io;const ro='@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}';const no=class{constructor(t){e(this,t);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}componentDidLoad(){if(this.swiperImagesRef){this.swiperImages=new Bs(this.swiperImagesRef,{modules:[Ds,Gs,Fs,Zs,Rs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}}handleFullscreen(){if(w.currentTouristicContent.attachments&&w.currentTouristicContent.attachments[0]&&w.currentTouristicContent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicContentCategories&&w.currentTouristicContent&&w.touristicContentCategories.find((t=>t.id===w.currentTouristicContent.category));const e=w.currentTouristicContent&&w.currentTouristicContent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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":"152px"}},w.currentTouristicContent&&r("div",{class:"touristic-content-detail-container",ref:t=>this.touristicContentDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicContent.attachments.length>0?w.currentTouristicContent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-content-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-content-category-name"},i.label)),r("div",{class:"name"},w.currentTouristicContent.name),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicContent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicContent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicContent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicContent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicContent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicContent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicContent.practical_info}))),(w.currentTouristicContent.contact||w.currentTouristicContent.email||w.currentTouristicContent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicContent.contact&&r("div",{innerHTML:w.currentTouristicContent.contact}),w.currentTouristicContent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicContent.email})),w.currentTouristicContent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicContent.website})))),r("div",{class:"detail-bottom-space"})))}};no.style=ro;const so=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicContentId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContent()}handleTouristicContent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristiccontent/${this.touristicContentId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,category,geometry,cities,pdf,practical_info,contact,email,website`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicContentCategories=i.results}w.currentTouristicContent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const oo='.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}';const ao=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicContentsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}b("currentTouristicContents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicContentsToDisplay=[...w.currentTouristicContents.slice(0,this.step)]}}));b("touristicContentsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicContentsWithinBounds){this.touristicContentsToDisplay=[...w.touristicContentsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicContentsToDisplay.length<w.touristicContentsWithinBounds.length){this.touristicContentsToDisplay=w.touristicContentsWithinBounds.slice(0,this.touristicContentsToDisplay.length+this.step>=w.touristicContentsWithinBounds.length?w.touristicContentsWithinBounds.length:this.touristicContentsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicContentsWithinBounds&&r("div",{class:"current-touristic-contents-within-bounds-length"},`${w.touristicContentsWithinBounds.length} ${w.touristicContentsWithinBounds.length>1?l[w.language].home.touristicContents:l[w.language].home.touristicContent}`),r("div",{class:"touristic-contents-list-container"},this.touristicContentsToDisplay.map((t=>r("grw-touristic-content-card",{fontFamily:this.fontFamily,"reset-store-on-disconnected":"false",key:`touristic-content-${t.id}`,touristicContent:t,"is-large-view":this.isLargeView,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};ao.style=oo;const lo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicContents()}handleTouristicContents(){let t=`${w.api}touristiccontent/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts&page_size=999`;const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicContentCategories?fetch(`${w.api}touristiccontent_category/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,label,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicContentCategories=e.results}w.touristicContents=r.results;w.currentTouristicContents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const co='@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{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}';const ho=class{constructor(t){e(this,t);this.touristicEventCardPress=o(this,"touristicEventCardPress",7);this.cardTouristicEventMouseOver=o(this,"cardTouristicEventMouseOver",7);this.cardTouristicEventMouseLeave=o(this,"cardTouristicEventMouseLeave",7);this.fontFamily="Roboto";this.touristicEvent=undefined;this.isLargeView=false;this.isInsideHorizontalList=false;this.displayFullscreen=false}componentDidLoad(){if(this.swiperTouristicEventRef){this.swiperTouristicEvent=new Bs(this.swiperTouristicEventRef,{modules:[Ds,Gs,Fs],navigation:{prevEl:this.prevElTouristicEventRef,nextEl:this.nextElTouristicEventRef},pagination:{el:this.paginationElTouristicEventRef},allowTouchMove:false,keyboard:false});this.swiperTouristicEventRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;if(this.displayFullscreen){this.swiperTouristicEvent.keyboard.enable()}else{this.swiperTouristicEvent.keyboard.disable()}}}}handleFullscreen(){if(this.touristicEvent.attachments&&this.touristicEvent.attachments[0]&&this.touristicEvent.attachments[0].url){this.swiperTouristicEventRef.requestFullscreen()}}handleMouseOver(){this.cardTouristicEventMouseOver.emit(this.touristicEvent.id)}handleMouseLeave(){this.cardTouristicEventMouseLeave.emit()}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes.find((t=>t.id===this.touristicEvent.type));return r(n,{style:{"--font-family":this.fontFamily,width:this.isLargeView?"100%":"auto"}},r("div",{class:this.isLargeView?`touristic-event-card-large-view-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`:`touristic-event-card-container${w.selectedTouristicEventId===this.touristicEvent.id?" selected-touristic-event-card":""}${!this.isInsideHorizontalList?" is-inside-vertical-list":""}`,onClick:()=>{if(!this.isInsideHorizontalList){this.touristicEventCardPress.emit(this.touristicEvent.id)}}},r("div",{class:"touristic-event-type-img-container"},this.isInsideHorizontalList?r("div",{class:"swiper",ref:t=>this.swiperTouristicEventRef=t},r("div",{class:"swiper-wrapper"},this.touristicEvent.attachments.length>0?this.touristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{class:`touristic-event-img${this.displayFullscreen?" img-fullscreen":""}`,src:this.displayFullscreen?t.url:t.thumbnail,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-touristic-event-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElTouristicEventRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElTouristicEventRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElTouristicEventRef=t})):this.touristicEvent.attachments.filter((t=>t.type==="image")).length>0?r("img",{crossorigin:"anonymous",class:"image",src:`${this.touristicEvent.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}):r("div",null)),r("div",{class:"touristic-event-sub-container"},r("div",{class:"touristic-event-type-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-type-name"},i.type)),r("div",{class:"touristic-event-name"},this.touristicEvent.name),(this.touristicEvent.begin_date||this.touristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},this.touristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",this.touristicEvent.begin_date),this.touristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",this.touristicEvent.end_date))),this.isInsideHorizontalList&&r("div",{class:"touristic-event-more-detail-container"},r("button",{class:"more-details-button",onClick:()=>this.touristicEventCardPress.emit(this.touristicEvent.id)},"Plus de détails"))))}};ho.style=co;const fo='@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}';const uo=class{constructor(t){e(this,t);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}componentDidLoad(){this.swiperImages=new Bs(this.swiperImagesRef,{modules:[Ds,Gs,Fs,Zs,Rs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()}}handleFullscreen(){if(w.currentTouristicEvent.attachments&&w.currentTouristicEvent.attachments[0]&&w.currentTouristicEvent.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}render(){const t=a(`${""}assets/default-image.svg`);const i=w.touristicEventTypes&&w.currentTouristicEvent&&w.touristicEventTypes.find((t=>t.id===w.currentTouristicEvent.type));const e=w.currentTouristicEvent&&w.currentTouristicEvent.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));return r(n,{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":"152px"}},w.currentTouristicEvent&&r("div",{class:"touristic-event-detail-container",ref:t=>this.touristicEventDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},w.currentTouristicEvent.attachments.length>0?w.currentTouristicEvent.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()})))):r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"default-poi-img",src:t,loading:"lazy"}))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"touristic-event-category-container"},r("img",{crossorigin:"anonymous",src:i.pictogram}),r("div",{class:"touristic-event-category-name"},i.type)),r("div",{class:"name"},w.currentTouristicEvent.name),(w.currentTouristicEvent.begin_date||w.currentTouristicEvent.end_date)&&r("div",{class:"touristic-event-date-container"},w.currentTouristicEvent.begin_date&&r("div",{class:"touristic-event-date"},"Date de début : ",w.currentTouristicEvent.begin_date),w.currentTouristicEvent.end_date&&r("div",{class:"touristic-event-date"},"Date de fin : ",w.currentTouristicEvent.end_date)),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].download),r("div",{class:"links-container"},r("a",{href:`${w.currentTouristicEvent.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),w.currentTouristicEvent.description_teaser&&r("div",null,r("div",{class:"divider"}),r("div",{class:"description-teaser",innerHTML:w.currentTouristicEvent.description_teaser})),r("div",{class:"divider"}),w.currentTouristicEvent.practical_info&&r("div",{class:"description-container",ref:t=>this.descriptionRef=t},r("div",{class:"description-title"},l[w.language].description),r("div",{class:"description",innerHTML:w.currentTouristicEvent.description})),e&&e.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].city," : "),r("div",{innerHTML:e.join(", ")})),w.currentTouristicEvent.practical_info&&r("div",null,r("div",{class:"divider"}),r("div",{class:"useful-information-container"},r("div",{class:"useful-information-title"},l[w.language].usefulInformation," : "),r("div",{innerHTML:w.currentTouristicEvent.practical_info}))),(w.currentTouristicEvent.contact||w.currentTouristicEvent.email||w.currentTouristicEvent.website)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"contact-container"},r("div",{class:"contact-title"},l[w.language].contact," : "),w.currentTouristicEvent.contact&&r("div",{innerHTML:w.currentTouristicEvent.contact}),w.currentTouristicEvent.email&&r("div",{class:"email-container"},r("div",null,l[w.language].email," : "),r("div",{innerHTML:w.currentTouristicEvent.email})),w.currentTouristicEvent.website&&r("div",{class:"website-container"},r("div",null,l[w.language].website," : "),r("div",{innerHTML:w.currentTouristicEvent.website})))),r("div",{class:"detail-bottom-space"})))}};uo.style=fo;const po=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.touristicEventId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvent()}handleTouristicEvent(){const t=[];t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...t,fetch(`${w.api}touristicevent/${this.touristicEventId}/?language=${w.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)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.touristicEventTypes=i.results}w.currentTouristicEvent=e})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const mo='.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}';const go=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.touristicEventsToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTouristicEvents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}b("currentTouristicEvents",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTouristicContents){this.touristicEventsToDisplay=[...w.currentTouristicEvents.slice(0,this.step)]}}));b("touristicEventsWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.touristicEventsWithinBounds){this.touristicEventsToDisplay=[...w.touristicEventsWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.touristicEventsToDisplay.length<w.touristicEventsWithinBounds.length){this.touristicEventsToDisplay=w.touristicEventsWithinBounds.slice(0,this.touristicEventsToDisplay.length+this.step>=w.touristicEventsWithinBounds.length?w.touristicEventsWithinBounds.length:this.touristicEventsToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.touristicEventsWithinBounds&&r("div",{class:"current-touristic-events-within-bounds-length"},`${w.touristicEventsWithinBounds.length} ${w.touristicEventsWithinBounds.length>1?l[w.language].home.touristicEvents:l[w.language].home.touristicEvent}`),r("div",{class:"touristic-events-list-container"},this.touristicEventsToDisplay.map((t=>r("grw-touristic-event-card",{"reset-store-on-disconnected":"false",key:`touristic-event-${t.id}`,touristicEvent:t,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};go.style=mo;const vo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTouristicEvents()}handleTouristicEvents(){let t=`${w.api}touristicevent/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);t+=`&fields=id,name,attachments,category,geometry,cities,districts,type,begin_date,end_date&page_size=999`;const i=[];i.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));i.push(!w.districts?fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null")),i.push(!w.touristicEventTypes?fetch(`${w.api}touristicevent_type/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&published=true&fields=id,type,pictogram&page_size=999`,this.init):new Response("null"));Promise.all([...i,fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r])=>{w.trekNetworkError=false;if(t){w.cities=t.results}if(i){w.districts=i.results}if(e){w.touristicEventTypes=e.results}w.touristicEvents=r.results;w.currentTouristicEvents=r.results})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const wo='.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}';const bo=class{constructor(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.cardTrekMouseOver=o(this,"cardTrekMouseOver",7);this.cardTrekMouseLeave=o(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}connectedCallback(){this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.departureCity=w.cities.find((t=>t.id===this.currentTrek.departure_city))}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.currentTrek;if(this.currentTrek){this.difficulty=this.currentTrek.difficulty&&w.difficulties?w.difficulties.find((t=>t.id===this.currentTrek.difficulty)):null;this.route=this.currentTrek.route&&w.routes?w.routes.find((t=>t.id===this.currentTrek.route)):null;this.practice=this.currentTrek.practice&&w.practices?w.practices.find((t=>t.id===this.currentTrek.practice)):null;this.themes=this.currentTrek.themes&&w.themes?w.themes.filter((t=>this.currentTrek.themes.includes(t.id))):null;this.departureCity=this.currentTrek.departure_city&&w.cities?w.cities.find((t=>t.id===this.currentTrek.departure_city)):null}}))}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}}handleMouseOver(){this.cardTrekMouseOver.emit(this.currentTrek.id)}handleMouseLeave(){this.cardTrekMouseLeave.emit()}render(){var t,i,e,s,o,a,l;return r(n,{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&&r("div",{class:this.isStep?`trek-card-container trek-step-card${w.selectedStepId===this.currentTrek.id?" selected-trek-card":""}`:this.isLargeView?`trek-card-large-view-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`:`trek-card-container${w.selectedTrekId===this.currentTrek.id?" selected-trek-card":""}`,onClick:()=>this.trekCardPress.emit(this.currentTrek.id)},this.currentTrek.attachments.filter((t=>t.type==="image")).length>0&&r("img",{crossorigin:"anonymous",class:"image",src:`${this.currentTrek.attachments.filter((t=>t.type==="image"))[0].thumbnail}`,loading:"lazy"}),r("div",{class:"sub-container"},this.departureCity&&r("div",{class:"departure"},this.departureCity.name),r("div",{class:"name"},(t=this.currentTrek)===null||t===void 0?void 0:t.name),!this.isStep&&this.themes&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"icons-labels-container"},r("div",{class:"row"},r("div",{class:"icon-label difficulty"},((i=this.difficulty)===null||i===void 0?void 0:i.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C(this.currentTrek.duration))),r("div",{class:"row"},r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent))),!this.isStep&&r("div",{class:"row"},r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(l=this.practice)===null||l===void 0?void 0:l.name))))))}};bo.style=wo;const yo='@font-face{font-family:"swiper-icons";src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff;}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-android .swiper-slide,.swiper-wrapper{-webkit-transform:translate3d(0px, 0, 0);transform:translate3d(0px, 0, 0)}.swiper-horizontal{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-vertical{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-slide,swiper-slide{-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height, -webkit-transform;transition-property:height, -webkit-transform;transition-property:transform, height;transition-property:transform, height, -webkit-transform}.swiper-backface-hidden .swiper-slide{-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-cube-shadow{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0, 0, 0, 0.15)}.swiper-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0)));background-image:linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0))}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-horizontal.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory}.swiper-vertical.swiper-css-mode>.swiper-wrapper{-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-centered>.swiper-wrapper::before{content:"";-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:9999;order:9999}.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-start:var(--swiper-centered-offset-before);margin-inline-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{-webkit-margin-before:var(--swiper-centered-offset-before);margin-block-start:var(--swiper-centered-offset-before)}.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;transform-origin:50%;-webkit-box-sizing:border-box;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{-webkit-animation:swiper-preloader-spin 1s infinite linear;animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@-webkit-keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes swiper-preloader-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:var(--swiper-navigation-top-offset, 50%);width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:var(--swiper-navigation-color, var(--swiper-theme-color))}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none}.swiper-button-prev.swiper-button-hidden,.swiper-button-next.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-prev,.swiper-navigation-disabled .swiper-button-next{display:none !important}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset, 10px);right:auto}.swiper-button-prev:after,.swiper-rtl .swiper-button-next:after{content:"prev"}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset, 10px);left:auto}.swiper-button-next:after,.swiper-rtl .swiper-button-prev:after{content:"next"}.swiper-button-lock{display:none}:root{}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:300ms opacity;transition:300ms opacity;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none !important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(0.33);transform:scale(0.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(0.66);transform:scale(0.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(0.33);transform:scale(0.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, 0.2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none !important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;-webkit-transform:translate3d(0px, -50%, 0);transform:translate3d(0px, -50%, 0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:200ms top, 200ms -webkit-transform;transition:200ms top, 200ms -webkit-transform;transition:200ms transform, 200ms top;transition:200ms transform, 200ms top, 200ms -webkit-transform}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms left, 200ms -webkit-transform;transition:200ms left, 200ms -webkit-transform;transition:200ms transform, 200ms left;transition:200ms transform, 200ms left, 200ms -webkit-transform}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:200ms right, 200ms -webkit-transform;transition:200ms right, 200ms -webkit-transform;transition:200ms transform, 200ms right;transition:200ms transform, 200ms right, 200ms -webkit-transform}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}:root{}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius, 10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none !important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset, 1%);bottom:var(--swiper-scrollbar-bottom, 4px);top:var(--swiper-scrollbar-top, auto);z-index:50;height:var(--swiper-scrollbar-size, 4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-vertical>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-vertical{position:absolute;left:var(--swiper-scrollbar-left, auto);right:var(--swiper-scrollbar-right, 4px);top:var(--swiper-scrollbar-sides-offset, 1%);z-index:50;width:var(--swiper-scrollbar-size, 4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset, 1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color, rgba(0, 0, 0, 0.5));border-radius:var(--swiper-scrollbar-border-radius, 10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper{z-index:0}.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-primary-app);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;gap:16px}.trek-detail-container .sub-container .icons-labels-container .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.trek-detail-container .sub-container .icons-labels-container .icon-label img,.trek-detail-container .sub-container .icons-labels-container .icon-label span{font-size:24px;width:24px;height:auto;color:var(--color-primary-app);margin-right:8px}.trek-detail-container .sub-container .icons-labels-container .icon-label .network:not(:last-child){margin-right:16px}.trek-detail-container .sub-container .icons-labels-container .practice img{background-color:var(--color-primary-app)}.trek-detail-container .sub-container .icons-labels-container .network{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.trek-detail-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .downloads-container{padding:0px 24px 0px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .downloads-container .links-container a{margin-top:8px;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:var(--border-radius, 8px);padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;text-decoration:none;font-family:var(--font-family)}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:8px 12px 0px 12px}.trek-detail-container .downloads-container .links-container a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.trek-detail-container .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 .sensitive-areas-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .parent-trek-container,.trek-detail-container .weather-container,.trek-detail-container .weblinks-container{padding:0px 24px 0px 24px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .pois-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container,.trek-detail-container .weather-container,.trek-detail-container .parent-trek-container,.trek-detail-container .step-container,.trek-detail-container .touristic-content-container,.trek-detail-container .touristic-event-container,.trek-detail-container .weblinks-container{font-size:16px;line-height:24px;font-weight:400}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .pois-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a,.trek-detail-container .weather-container a,.trek-detail-container .parent-trek-container a,.trek-detail-container .step-container a,.trek-detail-container .touristic-content-container a,.trek-detail-container .touristic-event-container a,.trek-detail-container .weblinks-container a{color:var(--color-primary-app)}.trek-detail-container .description-teaser{font-weight:600;font-size:22px;margin-bottom:8px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .step-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;font-weight:bold}.trek-detail-container .access{margin-bottom:16px}.trek-detail-container .advised-parking-title{font-size:16px}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title,.trek-detail-container .parent-trek-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title,.trek-detail-container .weblinks-title{margin-bottom:16px}.trek-detail-container .step-title{margin-bottom:12px}.trek-detail-container .information-desks-title,.trek-detail-container .pois-title,.trek-detail-container .step-title,.trek-detail-container .touristic-content-title,.trek-detail-container .touristic-event-title{padding:0px 24px 0px 24px}.trek-detail-container .parent-trek-title{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:500;height:32px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:none;-webkit-tap-highlight-color:transparent;line-height:20px;color:var(--color-primary);background-color:transparent}.trek-detail-container .parent-trek-title div{margin-right:4px}.trek-detail-container .accessibility-emergency-number-content a{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:row;flex-direction:row;border-radius:var(--border-radius, 40px);background-color:var(--color-primary-container);color:var(--color-on-primary-container);text-decoration:none;font-weight:600;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;position:relative;font-family:var(--font-family)}.trek-detail-container .accessibility-emergency-number-content a:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.description-container .description ol{position:relative;counter-reset:referencePoint}.description-container .description ol:before{content:"";position:absolute;width:4px;top:0px;bottom:0px;left:14px;background-color:var(--color-primary-app)}.description-container .description ol li{position:relative;list-style-type:none;counter-increment:referencePoint}.description-container .description ol li p{margin:0}.description-container .description ol li:not(:first-child){margin-top:12px}.description-container .description ol li:before{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(referencePoint);width:24px;height:24px;background:#f04141;border-radius:12px;font-weight:bold;font-size:0.8em;color:white;margin-left:-36px;top:calc(50% - 12px)}.current-advice-container,.gear-container{display:-ms-flexbox;display:flex;padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);font-size:16px;margin-bottom:12px}.current-advice-container .material-symbols,.gear-container .material-symbols{font-size:24px;width:26px;margin-right:8px}.label-container{padding:12px;border:2px solid var(--color-outline);border-radius:var(--border-radius, 12px);margin-bottom:12px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px;background-color:var(--color-on-surface)}.label-container .label-sub-container .label-name{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:600;padding:12px 0px}.label-container .label-advice{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500}.advice-container div:last-child{margin-bottom:0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width: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}.weblinks-container .weblink-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:16px;line-height:20px;font-weight:500;padding:12px 0px}.weblinks-container .weblink-container img{width:26px;margin-right:16px}.departure-container,.arrival-container,.cities-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.departure-container .cities-title,.arrival-container .departure-title,.arrival-container .arrival-title,.arrival-container .cities-title,.cities-container .departure-title,.cities-container .arrival-title,.cities-container .cities-title{color:var(--color-on-surface);font-weight:bold;white-space:nowrap;margin-right:8px}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title,.accessibilities-container .accessibility-emergency-number-title{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;padding:12px 0px}.weather-container iframe{width:100%}.swiper-information-desks,.swiper-pois,.swiper-step,.swiper-touristic-content,.swiper-touristic-event{padding-right:32px;padding-left:32px;padding-bottom:20px}.swiper-step{padding-bottom:4px}.swiper-step .swiper-wrapper .swiper-slide{counter-increment:stepPoint;padding-top:36px}.swiper-step .swiper-wrapper .swiper-slide:first-child:before{border-top-left-radius:var(--border-radius, 8px);border-bottom-left-radius:var(--border-radius, 8px)}.swiper-step .swiper-wrapper .swiper-slide:before{content:"";position:absolute;top:6px;height:12px;width:calc(100% + 20px);background-color:var(--color-secondary-container)}.swiper-step .swiper-wrapper .swiper-slide:last-child:before{border-top-right-radius:8px;border-bottom-right-radius:8px;width:100%}.swiper-step .swiper-wrapper .swiper-slide:after{position:absolute;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;content:counter(stepPoint);width:24px;height:24px;background:var(--color-primary-app);border-radius:var(--border-radius, 12px);font-weight:bold;font-size:0.8em;color:white;margin-left:calc(50% - 12px);top:0px}.divider{margin:16px;border-top:1px solid var(--color-outline)}.detail-bottom-space{min-height:var(--detail-bottom-space-height);height:var(--detail-bottom-space-height);width:100%;background-color:var(--color-background)}.images-container{display:-ms-flexbox;display:flex;max-width:100%;max-height:400px}.descent span{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{--swiper-scrollbar-sides-offset:32px}.swiper-scrollbar-drag{background-color:var(--color-primary-app)}.sensitive-areas-description{font-size:16px}';const xo=1;const ko={visible:true,indicator:false,ref:"presentationOptionRef"};const Ao={visible:false,indicator:false,ref:"stepsOptionRef"};const _o={visible:false,indicator:false,ref:"descriptionOptionRef"};const Mo={visible:false,indicator:false,ref:"poisOptionRef"};const zo={visible:false,indicator:false,ref:"recommendationsOptionRef"};const Lo={visible:false,indicator:false,ref:"sensitiveAreaOptionRef"};const Co={visible:false,indicator:false,ref:"informationPlacesOptionRef"};const Eo={visible:false,indicator:false,ref:"accessibilityOptionRef"};const Po={visible:false,indicator:false,ref:"touristicContentsOptionRef"};const Oo={visible:false,indicator:false,ref:"touristicEventsOptionRef"};const jo={presentation:ko,steps:Ao,description:_o,pois:Mo,recommendations:zo,sensitiveArea:Lo,informationPlaces:Co,accessibility:Eo,touristicContents:Po,touristicEvents:Oo};const So=class{constructor(t){e(this,t);this.descriptionIsInViewport=o(this,"descriptionIsInViewport",7);this.parkingIsInViewport=o(this,"parkingIsInViewport",7);this.sensitiveAreaIsInViewport=o(this,"sensitiveAreaIsInViewport",7);this.informationPlacesIsInViewport=o(this,"informationPlacesIsInViewport",7);this.poiIsInViewport=o(this,"poiIsInViewport",7);this.stepsIsInViewport=o(this,"stepsIsInViewport",7);this.touristicContentsIsInViewport=o(this,"touristicContentsIsInViewport",7);this.touristicEventsIsInViewport=o(this,"touristicEventsIsInViewport",7);this.parentTrekPress=o(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.emergencyNumber=undefined;this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorPrimaryContainer="#eaddff";this.colorOnPrimaryContainer="#21005e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.colorBackground="#fef7ff";this.resetStoreOnDisconnected=true;this.weather=false;this.isLargeView=false}componentDidLoad(){this.swiperImages=new Bs(this.swiperImagesRef,{modules:[Ds,Gs,Fs,Zs,Rs],navigation:{prevEl:this.prevElImagesRef,nextEl:this.nextElImagesRef},pagination:{el:this.paginationElImagesRef},allowTouchMove:false,keyboard:false});this.swiperImagesRef.onfullscreenchange=()=>{this.displayFullscreen=!this.displayFullscreen;this.displayFullscreen?this.swiperImages.keyboard.enable():this.swiperImages.keyboard.disable()};this.swiperStep=new Bs(this.swiperStepRef,{modules:[Zs,Rs,$s],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.stepSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperPois=new Bs(this.swiperPoisRef,{modules:[Zs,Rs,$s],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.poisSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperInformationDesks=new Bs(this.swiperInformationDesksRef,{modules:[Zs,Rs,$s],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.informationDesksContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicContents=new Bs(this.swiperTouristicContentsRef,{modules:[Zs,Rs,$s],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicContentsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});this.swiperTouristicEvents=new Bs(this.swiperTouristicEventsRef,{modules:[Zs,Rs,$s],slidesPerView:1.5,spaceBetween:20,grabCursor:true,freeMode:true,mousewheel:{forceToAxis:true},scrollbar:{draggable:true,hide:false,el:this.touristicEventsSwiperScrollbar},breakpointsBase:"container",breakpoints:{540:{slidesPerView:2.5}}});if(this.presentationRef){this.presentationObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{presentation:Object.assign(Object.assign({},this.defaultOptions.presentation),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.presentationObserver.observe(this.presentationRef)}if(this.stepsRef){this.stepsObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.stepsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{steps:Object.assign(Object.assign({},this.defaultOptions.steps),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.stepsObserver.observe(this.stepsRef)}if(this.descriptionRef){this.descriptionObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.descriptionIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{description:Object.assign(Object.assign({},this.defaultOptions.description),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.descriptionObserver.observe(this.descriptionRef)}if(this.recommendationRef){this.recommendationsObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{recommendations:Object.assign(Object.assign({},this.defaultOptions.recommendations),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.recommendationsObserver.observe(this.recommendationRef)}if(this.parkingRef){this.parkingObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.parkingIsInViewport.emit(i)}),{threshold:xo});this.parkingObserver.observe(this.parkingRef)}if(this.sensitiveAreaRef){this.sensitiveAreaObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.sensitiveAreaIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{sensitiveArea:Object.assign(Object.assign({},this.defaultOptions.sensitiveArea),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.sensitiveAreaObserver.observe(this.sensitiveAreaRef)}if(this.informationPlacesRef){this.informationPlacesObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.informationPlacesIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{informationPlaces:Object.assign(Object.assign({},this.defaultOptions.informationPlaces),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.informationPlacesObserver.observe(this.informationPlacesRef)}if(this.accessibilityRef){this.accessibilityObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.options=Object.assign(Object.assign({},this.options),{accessibility:Object.assign(Object.assign({},this.defaultOptions.accessibility),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.accessibilityObserver.observe(this.accessibilityRef)}if(this.poiRef){this.poiObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.poiIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{pois:Object.assign(Object.assign({},this.defaultOptions.pois),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.poiObserver.observe(this.poiRef)}if(this.touristicContentsRef){this.touristicContentObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicContentsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicContents:Object.assign(Object.assign({},this.defaultOptions.touristicContents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.touristicContentObserver.observe(this.touristicContentsRef)}if(this.touristicEventsRef){this.touristicEventObserver=new IntersectionObserver((t=>{const i=t[0].isIntersecting;this.touristicEventsIsInViewport.emit(i);this.options=Object.assign(Object.assign({},this.options),{touristicEvents:Object.assign(Object.assign({},this.defaultOptions.touristicEvents),{indicator:i})});this.handleIndicatorSelectedTrekOption()}),{threshold:xo});this.touristicEventObserver.observe(this.touristicContentsRef)}}connectedCallback(){this.currentTrek=this.trek?this.trek:w.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=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}b("currentTrek",(()=>{this.currentTrek=this.trek?this.trek:w.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=w.difficulties.find((t=>t.id===this.currentTrek.difficulty));this.route=w.routes.find((t=>t.id===this.currentTrek.route));this.practice=w.practices.find((t=>t.id===this.currentTrek.practice));this.themes=w.themes.filter((t=>this.currentTrek.themes.includes(t.id)));this.labels=w.labels.filter((t=>this.currentTrek.labels.includes(t.id)));this.sources=w.sources.filter((t=>this.currentTrek.source.includes(t.id)));this.accessibilities=w.accessibilities.filter((t=>this.currentTrek.accessibilities.includes(t.id)));if(w.accessibilitiesLevel){this.accessibilityLevel=w.accessibilitiesLevel.find((t=>this.currentTrek.accessibility_level===t.id))}this.cities=this.currentTrek.cities.map((t=>{var i;return(i=w.cities.find((i=>i.id===t)))===null||i===void 0?void 0:i.name}));this.hasStep=this.currentTrek.children.length>0}}))}disconnectedCallback(){this.presentationObserver&&this.presentationObserver.disconnect();this.stepsObserver&&this.stepsObserver.disconnect();this.descriptionObserver&&this.descriptionObserver.disconnect();this.recommendationsObserver&&this.recommendationsObserver.disconnect();this.parkingObserver&&this.parkingObserver.disconnect();this.sensitiveAreaObserver&&this.sensitiveAreaObserver.disconnect();this.informationPlacesObserver&&this.informationPlacesObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.poiObserver&&this.poiObserver.disconnect();this.accessibilityObserver&&this.accessibilityObserver.disconnect();this.touristicContentObserver&&this.touristicContentObserver.disconnect();this.touristicEventObserver&&this.touristicEventObserver.disconnect();if(this.resetStoreOnDisconnected){y()}}handleOptions(){return Object.assign(Object.assign({},jo),{presentation:Object.assign({},ko),steps:Object.assign(Object.assign({},Ao),{visible:Boolean(w.parentTrek)}),description:Object.assign(Object.assign({},_o),{visible:Boolean(this.currentTrek.description)}),pois:Object.assign(Object.assign({},Mo),{visible:Boolean(w.currentPois&&w.currentPois.length>0)}),recommendations:Object.assign(Object.assign({},zo),{visible:Boolean(this.currentTrek.advice||this.labels&&this.labels.length>0)}),sensitiveArea:Object.assign(Object.assign({},Lo),{visible:Boolean(w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0)}),informationPlaces:Object.assign(Object.assign({},Co),{visible:Boolean(w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0)}),accessibility:Object.assign(Object.assign({},Eo),{visible:Boolean(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)}),touristicContents:Object.assign(Object.assign({},Po),{visible:Boolean(w.trekTouristicContents&&w.trekTouristicContents.length>0)}),touristicEvents:Object.assign(Object.assign({},Oo),{visible:Boolean(w.touristicEvents&&w.touristicEvents.length>0)})})}handleFullscreen(){if(this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url){this.swiperImagesRef.requestFullscreen()}}handleIndicatorSelectedTrekOption(){let t;let i=0;let e=0;let r=0;const n=Object.values(this.options);let s=0;while(!t&&s<n.length){if(n[s].indicator){t=n[s]}else{if(n[s].visible){i+=1;e+=this[n[s].ref].clientWidth}}s++}if(t&&this[t.ref]){r=this[t.ref].clientWidth;this.indicatorSelectedTrekOption={translateX:`${e+16*i-r/2}px`,width:`${r*2}px`,backgroundSize:`${r}px 100%`,ref:t.ref}}}handleScrollTo(t){this.trekDetailContainerRef.scrollTo({top:t.offsetTop-64})}render(){var t,i,e,s,o,a,c;return r(n,{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":"200px"}},this.currentTrek&&r("div",{class:"trek-options"},r("a",{ref:t=>this.presentationOptionRef=t,onClick:()=>this.handleScrollTo(this.presentationRef),class:`presentation trek-option${this.indicatorSelectedTrekOption.ref==="presentationOptionRef"?" selected-trek-option":""}`},l[w.language].options.presentation),this.options.steps.visible&&r("a",{ref:t=>this.stepsOptionRef=t,onClick:()=>this.handleScrollTo(this.stepsRef),class:`steps trek-option${this.options.steps.indicator?" selected-trek-option":""}`},l[w.language].options.steps),this.options.description.visible&&r("a",{ref:t=>this.descriptionOptionRef=t,onClick:()=>this.handleScrollTo(this.descriptionRef),class:`description trek-option${this.indicatorSelectedTrekOption.ref==="descriptionOptionRef"?" selected-trek-option":""}`},l[w.language].options.description),this.options.pois.visible&&r("a",{ref:t=>this.poisOptionRef=t,onClick:()=>this.handleScrollTo(this.poiRef),class:`pois trek-option${this.indicatorSelectedTrekOption.ref==="poisOptionRef"?" selected-trek-option":""}`},l[w.language].options.pois),this.options.recommendations.visible&&r("a",{ref:t=>this.recommendationsOptionRef=t,onClick:()=>this.handleScrollTo(this.recommendationRef),class:`recommendations trek-option${this.indicatorSelectedTrekOption.ref==="recommendationsOptionRef"?" selected-trek-option":""}`},l[w.language].options.recommendations),this.options.sensitiveArea.visible&&r("a",{ref:t=>this.sensitiveAreaOptionRef=t,onClick:()=>this.handleScrollTo(this.sensitiveAreaRef),class:`sensitive-areas trek-option${this.indicatorSelectedTrekOption.ref==="sensitiveAreaOptionRef"?" selected-trek-option":""}`},l[w.language].options.environmentalSensitiveAreas),this.options.informationPlaces.visible&&r("a",{ref:t=>this.informationPlacesOptionRef=t,onClick:()=>this.handleScrollTo(this.informationPlacesRef),class:`information-places trek-option${this.indicatorSelectedTrekOption.ref==="informationPlacesOptionRef"?" selected-trek-option":""}`},l[w.language].options.informationPlaces),this.options.accessibility.visible&&r("a",{ref:t=>this.accessibilityOptionRef=t,onClick:()=>this.handleScrollTo(this.accessibilityRef),class:`accessibility trek-option${this.indicatorSelectedTrekOption.ref==="accessibilityOptionRef"?" selected-trek-option":""}`},l[w.language].options.accessibility),this.options.touristicContents.visible&&r("a",{ref:t=>this.touristicContentsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicContentsRef),class:`touristic-content trek-option${this.indicatorSelectedTrekOption.ref==="touristicContentsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicContents),this.options.touristicEvents.visible&&r("a",{ref:t=>this.touristicEventsOptionRef=t,onClick:()=>this.handleScrollTo(this.touristicEventsRef),class:`touristic-event trek-option${this.indicatorSelectedTrekOption.ref==="touristicEventsOptionRef"?" selected-trek-option":""}`},l[w.language].options.touristicEvents),this.presentationOptionRef&&r("span",{class:"indicator-selected-trek-option",style:{transform:`translateX(${this.indicatorSelectedTrekOption.translateX})`,width:this.indicatorSelectedTrekOption.width,backgroundSize:this.indicatorSelectedTrekOption.backgroundSize}})),this.currentTrek&&r("div",{class:"trek-detail-container",ref:t=>this.trekDetailContainerRef=t},r("div",{class:"images-container",ref:t=>this.presentationRef=t},r("div",{class:"swiper swiper-images",ref:t=>this.swiperImagesRef=t},r("div",{class:"swiper-wrapper"},this.currentTrek.attachments.filter((t=>t.type==="image")).map((t=>r("div",{class:"swiper-slide"},r("img",{crossorigin:"anonymous",class:"image",src:t.url,loading:"lazy",onClick:()=>this.handleFullscreen()}))))),r("div",{class:"swiper-pagination",ref:t=>this.paginationElImagesRef=t}),r("div",{class:"swiper-button-prev",ref:t=>this.prevElImagesRef=t}),r("div",{class:"swiper-button-next",ref:t=>this.nextElImagesRef=t}))),r("div",{class:"name"},this.currentTrek.name),this.themes.length>0&&r("div",{class:"themes-container"},this.themes.map((t=>r("div",{class:"theme"},t.label)))),r("div",{class:"sub-container"},r("div",{class:"icons-labels-container"},r("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&r("img",{crossorigin:"anonymous",src:this.difficulty.pictogram}),(i=this.difficulty)===null||i===void 0?void 0:i.label),r("div",{class:"icon-label duration"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"timelapse"),C((e=this.currentTrek)===null||e===void 0?void 0:e.duration)),r("div",{class:"icon-label route"},((s=this.route)===null||s===void 0?void 0:s.pictogram)&&r("img",{crossorigin:"anonymous",src:this.route.pictogram}),(o=this.route)===null||o===void 0?void 0:o.route),r("div",{class:"icon-label length"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"open_in_full"),E(this.currentTrek.length_2d)),this.currentTrek.ascent&&r("div",{class:"icon-label ascent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),P(this.currentTrek.ascent)),this.currentTrek.descent&&r("div",{class:"icon-label descent"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"moving"),O(this.currentTrek.descent)),r("div",{class:"icon-label practice"},((a=this.practice)===null||a===void 0?void 0:a.pictogram)&&r("img",{crossorigin:"anonymous",src:this.practice.pictogram}),(c=this.practice)===null||c===void 0?void 0:c.name),r("div",{class:"icon-label networks"},this.currentTrek.networks.map((t=>{const i=w.networks.find((i=>i.id===t));return r("div",{class:"network"},r("img",{crossorigin:"anonymous",src:i.pictogram}),i.label)}))),this.currentTrek.ratings.map((t=>r("div",{class:"row"},`${w.ratingsScale.find((i=>i.id===w.ratings.find((i=>i.id===t)).scale)).name} : ${w.ratings.find((i=>i.id===t)).name}`))),this.currentTrek.ratings_description&&this.currentTrek.ratings_description!==""&&r("div",{class:"row"},this.currentTrek.ratings_description))),r("div",{class:"divider"}),r("div",{class:"downloads-container"},r("div",{class:"download-title"},l[w.language].downloads),r("div",{class:"links-container"},r("a",{href:`${this.currentTrek.gpx}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"GPX"),r("a",{href:`${this.currentTrek.kml}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"KML"),r("a",{href:`${this.currentTrek.pdf}`,target:"_blank",rel:"noopener noreferrer"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"download"),"PDF"))),r("div",{class:"divider"}),this.currentTrek.description_teaser&&r("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&r("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),w.parentTrekId&&w.parentTrek&&this.currentTrek.id!==w.parentTrekId&&r("div",null,r("div",{class:"divider"}),r("div",{class:"parent-trek-container"},r("button",{class:"parent-trek-title",onClick:()=>this.parentTrekPress.emit(w.parentTrekId)},r("div",null,"<"),w.parentTrek.name))),w.currentTrekSteps&&r("div",{class:"step-container"},r("div",{class:"step-title",ref:t=>this.stepsRef=t},`${w.currentTrekSteps.length} ${l[w.language].steps}`),r("div",{class:"swiper swiper-step",ref:t=>this.swiperStepRef=t},r("div",{class:"swiper-wrapper"},w.currentTrekSteps&&w.currentTrekSteps.map((t=>r("div",{class:"swiper-slide"},r("grw-trek-card",{key:`trek-${t.id}`,trek:t,"is-large-view":false,"is-step":true,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}))))),r("div",{class:"swiper-scrollbar",ref:t=>this.stepSwiperScrollbar=t}))),r("div",{class:"divider"}),this.currentTrek.description&&r("div",{class:"description-container"},r("div",{class:"description-title",ref:t=>this.descriptionRef=t},l[w.language].description),r("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&r("div",{class:"departure-container"},r("div",{class:"departure-title"},l[w.language].departure," : "),r("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&r("div",{class:"arrival-container"},r("div",{class:"arrival-title"},l[w.language].arrival," : "),r("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.cities&&this.currentTrek.cities.length>0&&r("div",{class:"cities-container"},r("div",{class:"cities-title"},l[w.language].crossedCities," : "),r("div",{innerHTML:this.cities.join(", ")})),w.currentPois&&w.currentPois.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"pois-container"},r("div",{class:"pois-title",ref:t=>this.poiRef=t},l[w.language].pois(w.currentPois.length)),r("div",{class:"swiper swiper-pois",ref:t=>this.swiperPoisRef=t},r("div",{class:"swiper-wrapper"},w.currentPois.map((t=>r("div",{class:"swiper-slide"},r("grw-poi",{poi:t}))))),r("div",{class:"swiper-scrollbar",ref:t=>this.poisSwiperScrollbar=t})))),this.weather&&this.currentTrek.departure_city&&r("div",null,r("div",{class:"divider"}),r("div",{class:"weather-container"},r("iframe",{height:"150",frameborder:"0",src:`https://meteofrance.com/widget/prevision/${this.currentTrek.departure_city}0#${this.colorPrimaryApp}`}))),this.currentTrek.access&&r("div",null,r("div",{class:"divider"}),r("div",{class:"access-container"},r("div",{class:"access-title"},l[w.language].roadAccessAndParking),r("div",{class:"access",innerHTML:this.currentTrek.access}),this.currentTrek.advised_parking&&r("div",null,r("div",{class:"advised-parking-title",ref:t=>this.parkingRef=t},l[w.language].recommendedParking),r("div",{class:"advised-parking",innerHTML:this.currentTrek.advised_parking})))),this.currentTrek.public_transport&&r("div",null,r("div",{class:"divider"}),r("div",{class:"public-transport-container"},r("div",{class:"public-transport-title"},l[w.language].transport),r("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport}))),(this.currentTrek.advice||this.currentTrek.gear||this.labels.length>0)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"advice-container"},r("div",{class:"advice-title",ref:t=>this.recommendationRef=t},l[w.language].recommendations),this.currentTrek.advice&&r("div",{class:"current-advice-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"warning"),r("div",{class:"advice",innerHTML:this.currentTrek.advice})),this.currentTrek.gear&&r("div",{class:"gear-container"},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"backpack"),r("div",{class:"gear",innerHTML:this.currentTrek.gear})),this.labels.map((t=>r("div",{class:"label-container"},r("div",{class:"label-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{class:"label-name",innerHTML:t.name})),r("div",{class:"label-advice",innerHTML:t.advice})))))),w.currentSensitiveAreas&&w.currentSensitiveAreas.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"sensitive-areas-container"},r("div",{class:"sensitive-areas-title",ref:t=>this.sensitiveAreaRef=t},l[w.language].environmentalSensitiveAreas),r("div",{class:"sensitive-areas-description"},l[w.language].sensitiveAreasDescription),w.currentSensitiveAreas.map((t=>r("grw-sensitive-area-detail",{sensitiveArea:t}))))),w.currentInformationDesks&&w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"information-desks-container"},r("div",{class:"information-desks-title",ref:t=>this.informationPlacesRef=t},l[w.language].informationPlaces),r("div",{class:"swiper swiper-information-desks",ref:t=>this.swiperInformationDesksRef=t},r("div",{class:"swiper-wrapper"},w.currentInformationDesks.filter((t=>this.currentTrek.information_desks.includes(t.id))).map((t=>r("div",{class:"swiper-slide"},r("grw-information-desk",{informationDesk:t}))))),r("div",{class:"swiper-scrollbar",ref:t=>this.informationDesksContentsSwiperScrollbar=t})))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice||this.emergencyNumber)&&r("div",null,r("div",{class:"divider"}),r("div",{class:"accessibilities-container"},r("div",{class:"accessibilities-title",ref:t=>this.accessibilityRef=t},l[w.language].accessibility),this.currentTrek.disabled_infrastructure&&r("div",{innerHTML:this.currentTrek.disabled_infrastructure}),r("div",{class:"accessibilities-content-container"},this.accessibilities.map((t=>r("div",{class:"accessibility-content-container"},r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",{innerHTML:t.name}))))),this.emergencyNumber&&r("div",{class:"accessibility-emergency-number-container"},r("div",{class:"accessibility-emergency-number-title"},l[w.language].emergencyNumber),r("div",{class:"accessibility-emergency-number-content"},r("a",{href:`tel:${this.emergencyNumber.toString()}`},r("span",{translate:false,class:"material-symbols material-symbols-outlined"},"call"),this.emergencyNumber.toString()))),this.currentTrek.accessibility_level&&r("div",{class:"accessibility-level-container"},r("div",{class:"accessibility-level-title"},l[w.language].accessibilityLevel),r("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&r("div",{class:"accessibility-slope-container"},r("div",{class:"accessibility-slope-title"},l[w.language].accessibilitySlope),r("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&r("div",{class:"accessibility-width-container"},r("div",{class:"accessibility-width-title"},l[w.language].accessibilityWidth),r("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&r("div",{class:"accessibility-signage-container"},r("div",{class:"accessibility-signage-title"},l[w.language].accessibilitySignage),r("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&r("div",{class:"accessibility-covering-container"},r("div",{class:"accessibility-covering-title"},l[w.language].accessibilityCovering),r("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&r("div",{class:"accessibility-exposure-container"},r("div",{class:"accessibility-exposure-title"},l[w.language].accessibilityExposure),r("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&r("div",{class:"accessibility-advice-container"},r("div",{class:"accessibility-advice-title"},l[w.language].accessibilityAdvices),r("div",{innerHTML:this.currentTrek.accessibility_advice})))),w.trekTouristicContents&&w.trekTouristicContents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-content-container"},r("div",{class:"touristic-content-title",ref:t=>this.touristicContentsRef=t},l[w.language].touristicContents(w.trekTouristicContents.length)),r("div",{class:"swiper swiper-touristic-content",ref:t=>this.swiperTouristicContentsRef=t},r("div",{class:"swiper-wrapper"},w.trekTouristicContents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-content-card",{fontFamily:this.fontFamily,touristicContent:t,isInsideHorizontalList:true}))))),r("div",{class:"swiper-scrollbar",ref:t=>this.touristicContentsSwiperScrollbar=t})))),w.touristicEvents&&w.touristicEvents.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"touristic-event-container"},r("div",{class:"touristic-event-title",ref:t=>this.touristicEventsRef=t},l[w.language].touristicEvents(w.touristicEvents.length)),r("div",{class:"swiper swiper-touristic-event",ref:t=>this.swiperTouristicEventsRef=t},r("div",{class:"swiper-wrapper"},w.touristicEvents.map((t=>r("div",{class:"swiper-slide"},r("grw-touristic-event-card",{fontFamily:this.fontFamily,touristicEvent:t}))))),r("div",{class:"swiper-scrollbar",ref:t=>this.touristicEventsSwiperScrollbar=t})))),this.currentTrek.web_links&&this.currentTrek.web_links.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"weblinks-container"},r("div",{class:"weblinks-title"},l[w.language].learnMore),this.currentTrek.web_links.map((t=>r("a",{class:"weblink-container",href:t.url,target:"_blank",rel:"noopener noreferrer"},t.category&&t.category.pictogram&&r("img",{crossorigin:"anonymous",src:t.category.pictogram}),t.name))))),this.currentTrek.source&&this.currentTrek.source.length>0&&r("div",null,r("div",{class:"divider"}),r("div",{class:"source-container"},r("div",{class:"source-title"},l[w.language].sources),this.sources.map((t=>r("div",{class:"source-sub-container"},t.pictogram&&r("img",{crossorigin:"anonymous",src:t.pictogram}),r("div",null,r("div",{class:"source-name",innerHTML:t.name}),r("a",{class:"source-advice",href:t.website,innerHTML:t.website}))))))),r("div",{class:"detail-bottom-space"})))}};So.style=yo;const To=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.trekId=undefined;this.portals=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTrek()}handleTrek(){const t=[];t.push(!w.difficulties?fetch(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.routes?fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init):new Response("null"));t.push(!w.practices?fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.themes?fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init):new Response("null"));t.push(!w.cities?fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init):new Response("null"));t.push(!w.accessibilities?fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_rating/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,scale`,this.init):new Response("null"));t.push(!w.ratings?fetch(`${w.api}trek_ratingscale/?language=${w.language}&fields=id,name`,this.init):new Response("null"));Promise.all([...t,fetch(`${this.api}sensitivearea/?language=${w.language}&published=true&trek=${this.trekId}&period=ignore&fields=id,geometry,name,description,contact,info_url,period,practices`,this.init).then((t=>{if(t.ok){return t}else{throw new Error("Sentive area error")}})).catch((()=>new Response("null"))),fetch(`${w.api}label/?language=${w.language}&fields=id,name,advice,pictogram`,this.init),fetch(`${w.api}source/?language=${w.language}&fields=id,name,website,pictogram`,this.init),fetch(`${w.api}trek_accessibility_level/?language=${w.language}&fields=id,name`,this.init).catch((()=>new Response("null"))),fetch(`${w.api}poi/?language=${w.language}&trek=${this.trekId}&published=true&fields=id,name,description,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}poi_type/?language=${w.language}&fields=id,pictogram`,this.init),fetch(`${w.api}informationdesk/?language=${w.language}&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999`,this.init),fetch(`${w.api}touristiccontent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,category,geometry&page_size=999`,this.init),fetch(`${w.api}touristiccontent_category/?language=${w.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${w.api}touristicevent/?language=${w.language}&near_trek=${this.trekId}&published=true&fields=id,name,attachments,type,geometry&page_size=999`,this.init),fetch(`${w.api}touristicevent_type/?language=${w.language}&published=true&fields=id,type,pictogram&page_size=999`,this.init),fetch(`${w.api}trek_network/?language=${w.language}&published=true&fields=id,label,pictogram&page_size=999`,this.init),fetch(`${w.api}trek/${this.trekId}/?language=${w.language}&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,descent,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,networks,web_links`,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((async([t,i,e,r,n,s,o,a,l,c,h,f,u,p,d,m,g,v,b,y,x])=>{w.trekNetworkError=false;if(x.children.length>0||w.parentTrekId){const t=[];if(x.children.length>0){w.parentTrekId=x.id;w.parentTrek=x;t.push(...x.children)}else{const i=await fetch(`${w.api}trek/${w.parentTrekId}/?language=${w.language}&published=true&fields=name,children`).then((t=>t.json()));w.parentTrek=i;t.push(...i.children)}const i=[];t.forEach((t=>{i.push(fetch(`${w.api}trek/${t}/?language=${w.language}&published=true&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,descent,length_2d,practice,themes,route,departure,departure_city,departure_geom,cities,accessibilities,labels,districts,networks,web_links`))}));w.currentTrekSteps=await Promise.all([...i]).then((t=>Promise.all(t.map((t=>t.json())))))}if(t){w.difficulties=t.results}if(i){w.routes=i.results}if(e){w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})))}if(r){w.themes=r.results}if(n){w.cities=n.results}if(s){w.accessibilities=s.results}if(o){w.ratings=o.results}if(a){w.ratingsScale=a.results}if(l){w.currentSensitiveAreas=l.results}w.labels=c.results;w.sources=h.results;if(f){w.accessibilitiesLevel=f.results}if(m){w.trekTouristicContents=m.results}if(g){w.touristicContentCategories=g.results}if(v){w.touristicEvents=v.results}if(b){w.touristicEventTypes=b.results}if(y){w.networks=y.results}w.currentPois=u.results;w.poiTypes=p.results;w.currentInformationDesks=d.results;w.currentTrek=x})).catch((()=>{w.trekNetworkError=true}))}disconnectedCallback(){this.controller.abort();w.trekNetworkError=false}render(){return r(n,null)}};const Io='.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}';const Bo=class{constructor(t){e(this,t);this.step=10;this.shouldAddInfiniteScrollEvent=true;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.treksToDisplay=[];this.fontFamily="Roboto";this.colorPrimaryApp="#6b0030";this.colorOnSurface="#49454e";this.colorSecondaryContainer="#e8def8";this.colorOnSecondaryContainer="#1d192b";this.colorSurfaceContainerLow="#f7f2fa";this.isLargeView=false;this.resetStoreOnDisconnected=true}connectedCallback(){this.handleInfiniteScrollEvent(true);if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}b("currentTreks",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.currentTreks){this.treksToDisplay=[...w.currentTreks.slice(0,this.step)]}}));b("treksWithinBounds",(()=>{this.handleInfiniteScrollEvent(true);this.element.scroll({top:0});if(w.treksWithinBounds){this.treksToDisplay=[...w.treksWithinBounds.slice(0,this.step)]}}))}handleInfiniteScroll(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<w.treksWithinBounds.length){this.treksToDisplay=w.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=w.treksWithinBounds.length?w.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}}handleInfiniteScrollEvent(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}disconnectedCallback(){if(this.resetStoreOnDisconnected){y()}this.handleInfiniteScrollEvent(false)}render(){return r(n,{style:{"--font-family":this.fontFamily,"--color-primary-app":this.colorPrimaryApp}},w.treksWithinBounds&&r("div",{class:"current-treks-within-bounds-length"},`${w.treksWithinBounds.length} ${w.treksWithinBounds.length>1?l[w.language].treks:l[w.language].trek}`),r("div",{class:"treks-list-container"},this.treksToDisplay.map((t=>r("grw-trek-card",{"reset-store-on-disconnected":"false",key:`trek-${t.id}`,trek:t,"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.isLargeView&&r("div",{class:"list-bottom-space"}))}get element(){return s(this)}};Bo.style=Io;const Fo=class{constructor(t){e(this,t);this.controller=new AbortController;this.signal=this.controller.signal;this.init={cache:"default",signal:this.signal};this.languages="fr";this.api=undefined;this.inBbox=undefined;this.cities=undefined;this.districts=undefined;this.structures=undefined;this.themes=undefined;this.portals=undefined;this.routes=undefined;this.practices=undefined}connectedCallback(){if(!w.api){w.api=this.api;w.languages=this.languages.split(",");w.language=w.languages[0]}this.handleTreks()}disconnectedCallback(){this.controller.abort();w.treksNetworkError=false}handleTreks(){let t=`${this.api}trek/?language=${w.language}&published=true`;this.inBbox&&(t+=`&in_bbox=${this.inBbox}`);this.cities&&(t+=`&cities=${this.cities}`);this.districts&&(t+=`&districts=${this.districts}`);this.structures&&(t+=`&structures=${this.structures}`);this.themes&&(t+=`&themes=${this.themes}`);this.portals&&(t+=`&portals=${this.portals}`);this.routes&&(t+=`&routes=${this.routes}`);this.practices&&(t+=`&practices=${this.practices}`);t+=`&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(`${w.api}trek_difficulty/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}trek_route/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,route,pictogram`,this.init),fetch(`${w.api}trek_practice/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram`,this.init),fetch(`${w.api}theme/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,label,pictogram`,this.init),fetch(`${w.api}city/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(`${w.api}trek_accessibility/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}label/?language=${w.language}${this.portals?"&portals=".concat(this.portals):""}&fields=id,name,advice,pictogram&published=true&page_size=999`,this.init),fetch(`${w.api}district/?language=${w.language}&fields=id,name&published=true&page_size=999`,this.init),fetch(t,this.init)]).then((t=>Promise.all(t.map((t=>t.json()))))).then((([t,i,e,r,n,s,o,a,l])=>{w.treksNetworkError=false;w.difficulties=t.results;w.routes=i.results;w.practices=e.results.map((t=>Object.assign(Object.assign({},t),{selected:false})));w.themes=r.results;w.cities=n.results;w.accessibilities=s.results;w.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}];w.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}];w.elevations=[{id:1,name:"0 - 500m",minValue:0,maxValue:500,selected:false},{id:2,name:"500m - 1km",minValue:500,maxValue:1e3,selected:false}];w.labels=o.results;w.districts=a.results;w.treks=l.results;w.currentTreks=l.results})).catch((()=>w.treksNetworkError=true))}render(){return r(n,null)}};export{k as grw_app,_ as grw_common_button,z as grw_extended_fab,N as grw_filter,Y as grw_filters,$ as grw_information_desk,H as grw_loader,Br as grw_map,Us as grw_poi,Vs as grw_search,Ks as grw_segmented_segment,qs as grw_select_language,to as grw_sensitive_area_detail,eo as grw_touristic_content_card,no as grw_touristic_content_detail,so as grw_touristic_content_provider,ao as grw_touristic_contents_list,lo as grw_touristic_contents_provider,ho as grw_touristic_event_card,uo as grw_touristic_event_detail,po as grw_touristic_event_provider,go as grw_touristic_events_list,vo as grw_touristic_events_provider,bo as grw_trek_card,So as grw_trek_detail,To as grw_trek_provider,Bo as grw_treks_list,Fo as grw_treks_provider};
15
+ //# sourceMappingURL=p-619b9cda.entry.js.map