@geotrekce/geotrek-rando-widget 0.2.16 → 0.3.0

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 (340) 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.cjs.entry.js +13 -14
  5. package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
  6. package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
  7. package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
  8. package/dist/cjs/{grw-filter_8.cjs.entry.js → grw-filter_7.cjs.entry.js} +228 -44
  9. package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
  10. package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
  11. package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -0
  12. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +1 -1
  13. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
  14. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
  15. package/dist/cjs/grw-select-language.cjs.entry.js +28 -0
  16. package/dist/cjs/grw-select-language.cjs.entry.js.br +0 -0
  17. package/dist/cjs/grw-select-language.cjs.entry.js.gz +0 -0
  18. package/dist/cjs/grw-select-language.cjs.entry.js.map +1 -0
  19. package/dist/cjs/grw-trek-card.cjs.entry.js +14 -4
  20. package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
  21. package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
  22. package/dist/cjs/grw-trek-card.cjs.entry.js.map +1 -1
  23. package/dist/cjs/{i18n-210f453b.js → i18n-69f2bef1.js} +7 -3
  24. package/dist/cjs/i18n-69f2bef1.js.br +0 -0
  25. package/dist/cjs/i18n-69f2bef1.js.gz +0 -0
  26. package/dist/cjs/i18n-69f2bef1.js.map +1 -0
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/loader.cjs.js.br +0 -0
  29. package/dist/cjs/loader.cjs.js.gz +0 -0
  30. package/dist/cjs/{store-7461838a.js → store-a37c979e.js} +3 -2
  31. package/dist/cjs/store-a37c979e.js.br +0 -0
  32. package/dist/cjs/store-a37c979e.js.gz +0 -0
  33. package/dist/cjs/store-a37c979e.js.map +1 -0
  34. package/dist/cjs/{utils-7e65b55d.js → utils-fb618f73.js} +10 -10
  35. package/dist/cjs/utils-fb618f73.js.br +0 -0
  36. package/dist/cjs/utils-fb618f73.js.gz +0 -0
  37. package/dist/cjs/utils-fb618f73.js.map +1 -0
  38. package/dist/collection/assets/contract.svg +1 -0
  39. package/dist/collection/assets/contract.svg.br +2 -0
  40. package/dist/collection/assets/contract.svg.gz +0 -0
  41. package/dist/collection/components/grw-app/grw-app.css +22 -42
  42. package/dist/collection/components/grw-app/grw-app.css.br +0 -0
  43. package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
  44. package/dist/collection/components/grw-app/grw-app.js +18 -38
  45. package/dist/collection/components/grw-app/grw-app.js.br +0 -0
  46. package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
  47. package/dist/collection/components/grw-app/grw-app.js.map +1 -1
  48. package/dist/collection/components/grw-map/grw-map.css +79 -10
  49. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  50. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  51. package/dist/collection/components/grw-map/grw-map.js +247 -22
  52. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  53. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  54. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  55. package/dist/collection/components/grw-trek-card/grw-trek-card.css +4 -0
  56. package/dist/collection/components/grw-trek-card/grw-trek-card.css.br +0 -0
  57. package/dist/collection/components/grw-trek-card/grw-trek-card.css.gz +0 -0
  58. package/dist/collection/components/grw-trek-card/grw-trek-card.js +54 -1
  59. package/dist/collection/components/grw-trek-card/grw-trek-card.js.br +0 -0
  60. package/dist/collection/components/grw-trek-card/grw-trek-card.js.gz +0 -0
  61. package/dist/collection/components/grw-trek-card/grw-trek-card.js.map +1 -1
  62. package/dist/collection/i18n/i18n.js +6 -2
  63. package/dist/collection/i18n/i18n.js.br +0 -0
  64. package/dist/collection/i18n/i18n.js.gz +0 -0
  65. package/dist/collection/i18n/i18n.js.map +1 -1
  66. package/dist/collection/services/treks.service.js +6 -0
  67. package/dist/collection/services/treks.service.js.br +0 -0
  68. package/dist/collection/services/treks.service.js.gz +0 -0
  69. package/dist/collection/services/treks.service.js.map +1 -0
  70. package/dist/collection/store/store.js +2 -1
  71. package/dist/collection/store/store.js.br +0 -0
  72. package/dist/collection/store/store.js.gz +0 -0
  73. package/dist/collection/store/store.js.map +1 -1
  74. package/dist/collection/stories/App.js +4 -6
  75. package/dist/collection/stories/App.js.br +0 -0
  76. package/dist/collection/stories/App.js.gz +0 -0
  77. package/dist/collection/stories/App.stories.js +6 -5
  78. package/dist/collection/stories/App.stories.js.br +0 -0
  79. package/dist/collection/stories/App.stories.js.gz +0 -0
  80. package/dist/collection/stories/TrekMap.js +6 -3
  81. package/dist/collection/stories/TrekMap.js.br +0 -0
  82. package/dist/collection/stories/TrekMap.js.gz +0 -0
  83. package/dist/collection/stories/TrekMap.stories.js +6 -3
  84. package/dist/collection/stories/TrekMap.stories.js.br +0 -0
  85. package/dist/collection/stories/TrekMap.stories.js.gz +0 -0
  86. package/dist/collection/stories/TreksMap.js +16 -3
  87. package/dist/collection/stories/TreksMap.js.br +0 -0
  88. package/dist/collection/stories/TreksMap.js.gz +0 -0
  89. package/dist/collection/stories/TreksMap.stories.js +6 -3
  90. package/dist/collection/stories/TreksMap.stories.js.br +0 -0
  91. package/dist/collection/stories/TreksMap.stories.js.gz +0 -0
  92. package/dist/collection/utils/utils.js +8 -8
  93. package/dist/collection/utils/utils.js.br +0 -0
  94. package/dist/collection/utils/utils.js.gz +0 -0
  95. package/dist/collection/utils/utils.js.map +1 -1
  96. package/dist/esm/geotrek-rando-widget.js +1 -1
  97. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  98. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  99. package/dist/esm/grw-app.entry.js +13 -14
  100. package/dist/esm/grw-app.entry.js.br +0 -0
  101. package/dist/esm/grw-app.entry.js.gz +0 -0
  102. package/dist/esm/grw-app.entry.js.map +1 -1
  103. package/dist/esm/{grw-filter_8.entry.js → grw-filter_7.entry.js} +229 -44
  104. package/dist/esm/grw-filter_7.entry.js.br +0 -0
  105. package/dist/esm/grw-filter_7.entry.js.gz +0 -0
  106. package/dist/esm/grw-filter_7.entry.js.map +1 -0
  107. package/dist/esm/grw-information-desk-detail_3.entry.js +1 -1
  108. package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
  109. package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
  110. package/dist/esm/grw-select-language.entry.js +24 -0
  111. package/dist/esm/grw-select-language.entry.js.br +0 -0
  112. package/dist/esm/grw-select-language.entry.js.gz +0 -0
  113. package/dist/esm/grw-select-language.entry.js.map +1 -0
  114. package/dist/esm/grw-trek-card.entry.js +14 -4
  115. package/dist/esm/grw-trek-card.entry.js.br +0 -0
  116. package/dist/esm/grw-trek-card.entry.js.gz +0 -0
  117. package/dist/esm/grw-trek-card.entry.js.map +1 -1
  118. package/dist/esm/{i18n-301409fd.js → i18n-3554af6e.js} +7 -3
  119. package/dist/esm/i18n-3554af6e.js.br +0 -0
  120. package/dist/esm/i18n-3554af6e.js.gz +0 -0
  121. package/dist/esm/i18n-3554af6e.js.map +1 -0
  122. package/dist/esm/loader.js +1 -1
  123. package/dist/esm/loader.js.br +0 -0
  124. package/dist/esm/loader.js.gz +0 -0
  125. package/dist/esm/{store-23a2ba46.js → store-d82e965e.js} +3 -2
  126. package/dist/esm/store-d82e965e.js.br +0 -0
  127. package/dist/esm/store-d82e965e.js.gz +0 -0
  128. package/dist/esm/store-d82e965e.js.map +1 -0
  129. package/dist/esm/{utils-39d36282.js → utils-f5faa5c9.js} +10 -10
  130. package/dist/esm/utils-f5faa5c9.js.br +0 -0
  131. package/dist/esm/utils-f5faa5c9.js.gz +0 -0
  132. package/dist/esm/utils-f5faa5c9.js.map +1 -0
  133. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  134. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  135. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  136. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  137. package/dist/esm-es5/grw-app.entry.js +1 -1
  138. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  139. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  140. package/dist/esm-es5/grw-app.entry.js.map +1 -1
  141. package/dist/esm-es5/{grw-filter_8.entry.js → grw-filter_7.entry.js} +4 -4
  142. package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
  143. package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
  144. package/dist/esm-es5/grw-filter_7.entry.js.map +1 -0
  145. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  146. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
  147. package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
  148. package/dist/esm-es5/grw-select-language.entry.js +2 -0
  149. package/dist/esm-es5/grw-select-language.entry.js.br +0 -0
  150. package/dist/esm-es5/grw-select-language.entry.js.gz +0 -0
  151. package/dist/esm-es5/grw-select-language.entry.js.map +1 -0
  152. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  153. package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
  154. package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
  155. package/dist/esm-es5/grw-trek-card.entry.js.map +1 -1
  156. package/dist/esm-es5/i18n-3554af6e.js +2 -0
  157. package/dist/esm-es5/i18n-3554af6e.js.br +0 -0
  158. package/dist/esm-es5/i18n-3554af6e.js.gz +0 -0
  159. package/dist/esm-es5/i18n-3554af6e.js.map +1 -0
  160. package/dist/esm-es5/loader.js +1 -1
  161. package/dist/esm-es5/loader.js.br +0 -0
  162. package/dist/esm-es5/loader.js.gz +0 -0
  163. package/dist/esm-es5/loader.js.map +1 -1
  164. package/dist/esm-es5/{store-23a2ba46.js → store-d82e965e.js} +2 -2
  165. package/dist/esm-es5/store-d82e965e.js.br +0 -0
  166. package/dist/esm-es5/store-d82e965e.js.gz +0 -0
  167. package/dist/esm-es5/store-d82e965e.js.map +1 -0
  168. package/dist/esm-es5/utils-f5faa5c9.js +2 -0
  169. package/dist/esm-es5/utils-f5faa5c9.js.br +0 -0
  170. package/dist/esm-es5/utils-f5faa5c9.js.gz +0 -0
  171. package/dist/esm-es5/utils-f5faa5c9.js.map +1 -0
  172. package/dist/geotrek-rando-widget/assets/contract.svg +1 -0
  173. package/dist/geotrek-rando-widget/assets/contract.svg.br +2 -0
  174. package/dist/geotrek-rando-widget/assets/contract.svg.gz +0 -0
  175. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  176. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  177. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  178. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  179. package/dist/geotrek-rando-widget/p-148f5f1d.system.js +1 -1
  180. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.br +0 -0
  181. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.gz +0 -0
  182. package/dist/geotrek-rando-widget/p-148f5f1d.system.js.map +1 -1
  183. package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js +2 -0
  184. package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.br +0 -0
  185. package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.gz +0 -0
  186. package/dist/geotrek-rando-widget/p-28e64e05.system.entry.js.map +1 -0
  187. package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js +2 -0
  188. package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.br +0 -0
  189. package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.gz +0 -0
  190. package/dist/geotrek-rando-widget/p-29f7ed0b.system.entry.js.map +1 -0
  191. package/dist/geotrek-rando-widget/p-2f1cdad9.system.js +2 -0
  192. package/dist/geotrek-rando-widget/p-2f1cdad9.system.js.br +0 -0
  193. package/dist/geotrek-rando-widget/p-2f1cdad9.system.js.gz +0 -0
  194. package/dist/geotrek-rando-widget/p-2f1cdad9.system.js.map +1 -0
  195. package/dist/geotrek-rando-widget/{p-574221ae.entry.js → p-39bfe711.entry.js} +2 -2
  196. package/dist/geotrek-rando-widget/p-39bfe711.entry.js.br +0 -0
  197. package/dist/geotrek-rando-widget/p-39bfe711.entry.js.gz +0 -0
  198. package/dist/geotrek-rando-widget/{p-df9a7637.entry.js → p-466996c5.entry.js} +4 -4
  199. package/dist/geotrek-rando-widget/p-466996c5.entry.js.br +0 -0
  200. package/dist/geotrek-rando-widget/p-466996c5.entry.js.gz +0 -0
  201. package/dist/geotrek-rando-widget/{p-df9a7637.entry.js.map → p-466996c5.entry.js.map} +1 -1
  202. package/dist/geotrek-rando-widget/p-501ad139.system.js +2 -0
  203. package/dist/geotrek-rando-widget/p-501ad139.system.js.br +0 -0
  204. package/dist/geotrek-rando-widget/p-501ad139.system.js.gz +0 -0
  205. package/dist/geotrek-rando-widget/p-501ad139.system.js.map +1 -0
  206. package/dist/geotrek-rando-widget/p-61ec76a2.entry.js +2 -0
  207. package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.br +0 -0
  208. package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.gz +0 -0
  209. package/dist/geotrek-rando-widget/p-61ec76a2.entry.js.map +1 -0
  210. package/dist/geotrek-rando-widget/p-75dd3023.entry.js +2 -0
  211. package/dist/geotrek-rando-widget/p-75dd3023.entry.js.br +0 -0
  212. package/dist/geotrek-rando-widget/p-75dd3023.entry.js.gz +0 -0
  213. package/dist/geotrek-rando-widget/p-75dd3023.entry.js.map +1 -0
  214. package/dist/geotrek-rando-widget/p-79b7f905.system.js +2 -0
  215. package/dist/geotrek-rando-widget/p-79b7f905.system.js.br +0 -0
  216. package/dist/geotrek-rando-widget/p-79b7f905.system.js.gz +0 -0
  217. package/dist/geotrek-rando-widget/p-79b7f905.system.js.map +1 -0
  218. package/dist/geotrek-rando-widget/{p-bae950b8.system.entry.js → p-84df84a9.system.entry.js} +4 -4
  219. package/dist/geotrek-rando-widget/p-84df84a9.system.entry.js.br +0 -0
  220. package/dist/geotrek-rando-widget/p-84df84a9.system.entry.js.gz +0 -0
  221. package/dist/geotrek-rando-widget/p-84df84a9.system.entry.js.map +1 -0
  222. package/dist/geotrek-rando-widget/p-90bdf63f.entry.js +2 -0
  223. package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.br +0 -0
  224. package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.gz +0 -0
  225. package/dist/geotrek-rando-widget/p-90bdf63f.entry.js.map +1 -0
  226. package/dist/geotrek-rando-widget/p-98765517.js +2 -0
  227. package/dist/geotrek-rando-widget/p-98765517.js.br +0 -0
  228. package/dist/geotrek-rando-widget/p-98765517.js.gz +0 -0
  229. package/dist/geotrek-rando-widget/p-98765517.js.map +1 -0
  230. package/dist/geotrek-rando-widget/{p-21c8e513.system.entry.js → p-bbe147a7.system.entry.js} +2 -2
  231. package/dist/geotrek-rando-widget/p-bbe147a7.system.entry.js.br +0 -0
  232. package/dist/geotrek-rando-widget/p-bbe147a7.system.entry.js.gz +0 -0
  233. package/dist/geotrek-rando-widget/{p-ad723f74.js → p-beebe2d4.js} +2 -2
  234. package/dist/geotrek-rando-widget/p-beebe2d4.js.br +0 -0
  235. package/dist/geotrek-rando-widget/p-beebe2d4.js.gz +0 -0
  236. package/dist/geotrek-rando-widget/p-beebe2d4.js.map +1 -0
  237. package/dist/geotrek-rando-widget/p-dc700e75.system.entry.js +2 -0
  238. package/dist/geotrek-rando-widget/p-dc700e75.system.entry.js.br +0 -0
  239. package/dist/geotrek-rando-widget/p-dc700e75.system.entry.js.gz +0 -0
  240. package/dist/geotrek-rando-widget/p-dc700e75.system.entry.js.map +1 -0
  241. package/dist/geotrek-rando-widget/p-f0117cb8.js +2 -0
  242. package/dist/geotrek-rando-widget/p-f0117cb8.js.br +0 -0
  243. package/dist/geotrek-rando-widget/p-f0117cb8.js.gz +0 -0
  244. package/dist/geotrek-rando-widget/p-f0117cb8.js.map +1 -0
  245. package/dist/types/components/grw-app/grw-app.d.ts +3 -4
  246. package/dist/types/components/grw-map/grw-map.d.ts +18 -2
  247. package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +4 -0
  248. package/dist/types/components.d.ts +10 -8
  249. package/dist/types/i18n/i18n.d.ts +3 -1
  250. package/dist/types/services/treks.service.d.ts +1 -0
  251. package/dist/types/store/store.d.ts +4 -2
  252. package/package.json +3 -1
  253. package/dist/cjs/grw-filter_8.cjs.entry.js.br +0 -0
  254. package/dist/cjs/grw-filter_8.cjs.entry.js.gz +0 -0
  255. package/dist/cjs/grw-filter_8.cjs.entry.js.map +0 -1
  256. package/dist/cjs/i18n-210f453b.js.br +0 -0
  257. package/dist/cjs/i18n-210f453b.js.gz +0 -0
  258. package/dist/cjs/i18n-210f453b.js.map +0 -1
  259. package/dist/cjs/store-7461838a.js.br +0 -0
  260. package/dist/cjs/store-7461838a.js.gz +0 -0
  261. package/dist/cjs/store-7461838a.js.map +0 -1
  262. package/dist/cjs/utils-7e65b55d.js.br +0 -0
  263. package/dist/cjs/utils-7e65b55d.js.gz +0 -0
  264. package/dist/cjs/utils-7e65b55d.js.map +0 -1
  265. package/dist/esm/grw-filter_8.entry.js.br +0 -0
  266. package/dist/esm/grw-filter_8.entry.js.gz +0 -0
  267. package/dist/esm/grw-filter_8.entry.js.map +0 -1
  268. package/dist/esm/i18n-301409fd.js.br +0 -0
  269. package/dist/esm/i18n-301409fd.js.gz +0 -0
  270. package/dist/esm/i18n-301409fd.js.map +0 -1
  271. package/dist/esm/store-23a2ba46.js.br +0 -0
  272. package/dist/esm/store-23a2ba46.js.gz +0 -0
  273. package/dist/esm/store-23a2ba46.js.map +0 -1
  274. package/dist/esm/utils-39d36282.js.br +0 -0
  275. package/dist/esm/utils-39d36282.js.gz +0 -0
  276. package/dist/esm/utils-39d36282.js.map +0 -1
  277. package/dist/esm-es5/grw-filter_8.entry.js.br +0 -0
  278. package/dist/esm-es5/grw-filter_8.entry.js.gz +0 -0
  279. package/dist/esm-es5/grw-filter_8.entry.js.map +0 -1
  280. package/dist/esm-es5/i18n-301409fd.js +0 -2
  281. package/dist/esm-es5/i18n-301409fd.js.br +0 -0
  282. package/dist/esm-es5/i18n-301409fd.js.gz +0 -0
  283. package/dist/esm-es5/i18n-301409fd.js.map +0 -1
  284. package/dist/esm-es5/store-23a2ba46.js.br +0 -0
  285. package/dist/esm-es5/store-23a2ba46.js.gz +0 -0
  286. package/dist/esm-es5/store-23a2ba46.js.map +0 -1
  287. package/dist/esm-es5/utils-39d36282.js +0 -2
  288. package/dist/esm-es5/utils-39d36282.js.br +0 -0
  289. package/dist/esm-es5/utils-39d36282.js.gz +0 -0
  290. package/dist/esm-es5/utils-39d36282.js.map +0 -1
  291. package/dist/geotrek-rando-widget/p-0218dbae.js +0 -2
  292. package/dist/geotrek-rando-widget/p-0218dbae.js.br +0 -0
  293. package/dist/geotrek-rando-widget/p-0218dbae.js.gz +0 -0
  294. package/dist/geotrek-rando-widget/p-0218dbae.js.map +0 -1
  295. package/dist/geotrek-rando-widget/p-029e494f.entry.js +0 -2
  296. package/dist/geotrek-rando-widget/p-029e494f.entry.js.br +0 -0
  297. package/dist/geotrek-rando-widget/p-029e494f.entry.js.gz +0 -0
  298. package/dist/geotrek-rando-widget/p-029e494f.entry.js.map +0 -1
  299. package/dist/geotrek-rando-widget/p-21c8e513.system.entry.js.br +0 -0
  300. package/dist/geotrek-rando-widget/p-21c8e513.system.entry.js.gz +0 -0
  301. package/dist/geotrek-rando-widget/p-574221ae.entry.js.br +0 -0
  302. package/dist/geotrek-rando-widget/p-574221ae.entry.js.gz +0 -0
  303. package/dist/geotrek-rando-widget/p-731c8990.system.js +0 -2
  304. package/dist/geotrek-rando-widget/p-731c8990.system.js.br +0 -0
  305. package/dist/geotrek-rando-widget/p-731c8990.system.js.gz +0 -0
  306. package/dist/geotrek-rando-widget/p-731c8990.system.js.map +0 -1
  307. package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js +0 -2
  308. package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.br +0 -0
  309. package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.gz +0 -0
  310. package/dist/geotrek-rando-widget/p-7c0fdac3.system.entry.js.map +0 -1
  311. package/dist/geotrek-rando-widget/p-890b281b.entry.js +0 -2
  312. package/dist/geotrek-rando-widget/p-890b281b.entry.js.br +0 -0
  313. package/dist/geotrek-rando-widget/p-890b281b.entry.js.gz +0 -0
  314. package/dist/geotrek-rando-widget/p-890b281b.entry.js.map +0 -1
  315. package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js +0 -2
  316. package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.br +0 -0
  317. package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.gz +0 -0
  318. package/dist/geotrek-rando-widget/p-9099f1eb.system.entry.js.map +0 -1
  319. package/dist/geotrek-rando-widget/p-a1c76660.system.js +0 -2
  320. package/dist/geotrek-rando-widget/p-a1c76660.system.js.br +0 -0
  321. package/dist/geotrek-rando-widget/p-a1c76660.system.js.gz +0 -0
  322. package/dist/geotrek-rando-widget/p-a1c76660.system.js.map +0 -1
  323. package/dist/geotrek-rando-widget/p-a7ce321e.system.js +0 -2
  324. package/dist/geotrek-rando-widget/p-a7ce321e.system.js.br +0 -0
  325. package/dist/geotrek-rando-widget/p-a7ce321e.system.js.gz +0 -0
  326. package/dist/geotrek-rando-widget/p-a7ce321e.system.js.map +0 -1
  327. package/dist/geotrek-rando-widget/p-ad723f74.js.br +0 -0
  328. package/dist/geotrek-rando-widget/p-ad723f74.js.gz +0 -0
  329. package/dist/geotrek-rando-widget/p-ad723f74.js.map +0 -1
  330. package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.br +0 -0
  331. package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.gz +0 -0
  332. package/dist/geotrek-rando-widget/p-bae950b8.system.entry.js.map +0 -1
  333. package/dist/geotrek-rando-widget/p-c1eb1f30.js +0 -2
  334. package/dist/geotrek-rando-widget/p-c1eb1f30.js.br +0 -0
  335. package/dist/geotrek-rando-widget/p-c1eb1f30.js.gz +0 -0
  336. package/dist/geotrek-rando-widget/p-c1eb1f30.js.map +0 -1
  337. package/dist/geotrek-rando-widget/p-df9a7637.entry.js.br +0 -0
  338. package/dist/geotrek-rando-widget/p-df9a7637.entry.js.gz +0 -0
  339. /package/dist/geotrek-rando-widget/{p-574221ae.entry.js.map → p-39bfe711.entry.js.map} +0 -0
  340. /package/dist/geotrek-rando-widget/{p-21c8e513.system.entry.js.map → p-bbe147a7.system.entry.js.map} +0 -0
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-37f5c77b.js');
6
- const store = require('./store-7461838a.js');
7
- const utils$1 = require('./utils-7e65b55d.js');
8
- const i18n = require('./i18n-210f453b.js');
6
+ const store = require('./store-a37c979e.js');
7
+ const utils$1 = require('./utils-fb618f73.js');
8
+ const i18n = require('./i18n-69f2bef1.js');
9
9
  const pagination = require('./pagination-149c2052.js');
10
10
 
11
11
  function _interopNamespace(e) {
@@ -18841,17 +18841,28 @@ var url = {
18841
18841
 
18842
18842
  !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"}},e=6e4,i=60*e,a=24*i;function s(t,e){return new URL(t,t.startsWith("../")||t.startsWith("./")?e:void 0).toString()}function o(t,e){let i=u("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),a=document.body;a.appendChild(i),i.click(),a.removeChild(i);}function r(t,e,i){return t&&(({props:a,point:s,id:o,isMulti:r})=>{if(a)for(const h of t)if(h in a){s.meta[e]=(i||n).call(this,r?a[h][r]:a[h],o);break}})}const n=(t,e)=>parseInt("object"==typeof t?t[e]:t),h=(t,e)=>t&&e.split(" ").every((e=>e&&L.DomUtil.addClass(t,e))),l=(t,e)=>t&&e.split(" ").every((e=>e&&L.DomUtil.removeClass(t,e))),d=(t,e,i)=>(i?h:l)(t,e),_=(t,e,i)=>e&&l(t,e)||i&&h(t,i),c=(t,e,i)=>void 0===i&&L.DomUtil.getStyle(t,e)||t.style.setProperty(e,i),m=(t,e)=>{for(let i in e)t.setAttribute(i,e[i]);},p=(t,e,i,a)=>t[a?"on":"off"](e,i),u=(t,e,i,a)=>{let s=L.DomUtil.create(t,e||"");return i&&m(s,i),a&&f(a,s),s},f=(t,e)=>t.appendChild(e),g=(t,e,i)=>t.insertAdjacentElement(i,e),y=(t,e)=>(e||document).querySelector(t),v=(t,e)=>{for(let i in t)e(t[i],i);},k=()=>Math.random().toString(36).substr(2,9),{on:M,off:w}=L.DomEvent,{throttle:S,wrapNum:b}=L.Util,{hasClass:C}=L.DomUtil,x=L.Util.formatNum,E=(t,e)=>e?t<e[0]?e[0]:t>e[1]?e[1]:t:t,D=(t,e,i)=>Math.abs(t-e)>i?e+i*Math.sign(t-e):t;function O(t,e=[],i=[]){switch(!t||typeof t){case"object":const a=i.filter((e=>t===e.original))[0];if(a)return a.copy;const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return i.push({original:t,copy:s}),Object.getOwnPropertyNames(t).forEach((function(a){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(s,a,o.get||o.set?o:{writable:o.writable,configurable:o.configurable,enumerable:o.enumerable,value:e.includes(a)?o.value:O(o.value,e,i)});})),s;case"function":case"symbol":console.warn("cloneDeep: "+typeof t+"s not fully supported:",t);default:return t}}var A=Object.freeze({__proto__:null,Colors:t,addClass:h,append:f,clamp:E,cloneDeep:O,coordPropsToMeta:r,create:u,drawCanvas:function(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);let i=new Path2D(e.attr("d"));t.strokeStyle=e.attr("stroke"),t.fillStyle=e.attr("fill"),t.lineWidth=1.25,t.globalCompositeOperation="source-over",t.globalAlpha=e.attr("stroke-opacity")||.3,t.stroke(i),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(i),t.globalAlpha=1,t.closePath();},each:v,formatDate:function(t){return t?"time"==t?t=>new Date(t).toLocaleTimeString():"date"==t?t=>new Date(t).toLocaleDateString():e=>t(e):t=>new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},formatTime:function(t){let s=Math.floor(t/a),o=Math.floor((t-s*a)/i),r=Math.floor((t-s*a-o*i)/e),n=Math.round((t-s*a-o*i-r*e)/1e3);return 60===n&&(r++,n=0),60===r&&(o++,r=0),24===o&&(s++,o=0),(s?s+"d ":"")+o.toString().padStart(2,0)+":"+r.toString().padStart(2,0)+"'"+n.toString().padStart(2,0)+'"'},hasClass:C,iAvg:(t,e=0,i=1)=>(t+e*(i-1))/i,iMax:(t,e=-1/0)=>t>e?t:e,iMin:(t,e=1/0)=>t<e?t:e,iSum:(t,e=0)=>t+e,insert:g,off:w,on:M,parseDate:(t,e)=>new Date(Date.parse("object"==typeof t?t[e]:t)),parseNumeric:n,randomId:k,removeClass:l,replaceClass:_,resolveURL:s,round:x,saveFile:o,select:y,setAttributes:m,style:c,throttle:S,toggleClass:d,toggleEvent:p,toggleStyle:(t,e,i,a)=>c(t,e,a?i:""),wrapDelta:D,wrapNum:b}),P={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?url.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?url.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,e)=>t);const T=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:P,__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,e){this.import(this.__D3).then((()=>{this._modulesLoaded?(e=e??(t.on&&t),this._addData(t),this._addLayer(e),this._fireEvt("eledata_added",{data:t,layer:e,track_info:this.track_info})):this.once("modules_loaded",(()=>this.addData(t,e)));}));},addTo(t){if(this.options.detached){let e=y(this.options.elevationDiv),i=this.onAdd(t);e?f(e,i):g(t.getContainer(),i,"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:e})=>this.off("elechart_updated",t,e))),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(){c(this._container,"display","none");},initialize(e){e=L.setOptions(this,L.extend({},O(P),e)),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],e.trkStart||P.trkStart),this._end=L.circleMarker([0,0],e.trkEnd||P.trkEnd),this._chartEnabled=!0,this._yCoordMax=-1/0,this.track_info={},e.followMarker&&(this._setMapView=S(this._setMapView,300,this)),e.legend&&(e.margins.bottom+=30),e.theme&&(e.polylineSegments.className+=" "+e.theme),!0===e.wptIcons&&(e.wptIcons=P.wptIcons),!0===e.distanceMarkers&&(e.distanceMarkers=P.distanceMarkers),e.trkStart&&this._start.addTo(this._circleMarkers),e.trkEnd&&this._end.addTo(this._circleMarkers),this._markedSegments.setStyle(e.polylineSegments),L.extend(t,e.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize();},import(t,e){switch(t){case this.__D3:e="object"!=typeof d3;break;case this.__TOGEOJSON:e="object"!=typeof toGeoJSON;break;case this.__LGEOMUTIL:e="object"!=typeof L.GeometryUtil;break;case this.__LALMOSTOVER:e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:e="function"!=typeof L.DistanceMarkers;break;case this.__LEDGESCALE:e="function"!=typeof L.Control.EdgeScale;break;case this.__LHOTLINE:e="function"!=typeof L.Hotline;}return !1!==e?Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(s(t,this.options.srcFolder))); }):Promise.resolve()},load(t){this._parseFromString(t).then((e=>e?this._loadLayer(e):this._loadFile(t)));},onAdd(t){this._map=t;let e=this._container=u("div","elevation-control "+this.options.theme+" "+(this.options.detached?"elevation-detached":"leaflet-control"),this.options.detached?{id:"elevation-"+k()}:{});return this.eleDiv||(this.eleDiv=e),this._loadModules(this.options.handlers).then((()=>{this._initChart(e),this._initButton(e),this._initSummary(e),this._initMarker(t),this._initLayer(t),this._modulesLoaded=!0,this.fire("modules_loaded");})),this.fire("add"),e},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),w(t.getContainer(),"mousewheel",this._resetDrag,this),w(t.getContainer(),"touchstart",this._resetDrag,this),w(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(){c(this._container,"display","block");},_addData(t){if(t){if("FeatureCollection"===t.type)return v(t.features,(t=>this._addData(t)));if("Feature"===t.type){let e=t.geometry;if(e)switch(e.type){case"LineString":return this._addGeoJSONData(e.coordinates,t.properties);case"MultiLineString":return v(e.coordinates,((e,i)=>this._addGeoJSONData(e,t.properties,i)));default:return console.warn("Unsopperted GeoJSON feature geometry type:"+e.type)}}return t._latlngs?this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties):void 0}},_addGeoJSONData(t,e,i){let a=e&&e.coordinateProperties||e;t.forEach(((t,e)=>{t.meta=t.meta??{time:null,ele:null},t.prev=t=>t?this._data[e>0?e-1:0][t]:this._data[e>0?e-1:0],this.fire("elepoint_init",{point:t,props:a,id:e,isMulti:i}),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,e,i){this.options.reverseCoords&&([t,e]=[e,t]),this._data.push({x:t,y:e,z:i,latlng:L.latLng(t,e,i)}),this.fire("eledata_updated",{index:this._data.length-1});},_addLayer(t){return t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(({target:t,type:e})=>L.DistanceMarkers&&t instanceof L.Polyline&&t[e+"DistanceMarkers"]())),t},_addMarker(t){return t&&this._markers.addLayer(t),t},_initAlmostOverHandler(t,e){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(e),t.on("almost:move",this._onMouseMoveLayer,this).on("almost:out",this._onMouseOut,this),this.once("eledata_clear",(()=>{t.almostOver.removeLayer(e),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 e="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 i=L.geoJson(t.toGeoJSON(),{coordsToLatLng:t=>L.latLng(t[0],t[1],t[2]*(this.options.altitudeFactor||1))}),a=L.hotline(i.toGeoJSON().features[0].geometry.coordinates,{renderer:L.Hotline.renderer(),min:isFinite(this.track_info[e+"_min"])?this.track_info[e+"_min"]:0,max:isFinite(this.track_info[e+"_max"])?this.track_info[e+"_max"]:1,palette:{0:"#008800",.5:"#ffff00",1:"#ff0000"},weight:5,outlineColor:"#000000",outlineWidth:1}).addTo(this._hotline),s=t.options.style&&t.options.style.opacity||1;t.on("add remove",(({type:e})=>{t.setStyle({opacity:"add"==e?0:s}),a["add"==e?"addTo":"removeFrom"](t._map),a._renderer&&a._renderer._container.parentElement.insertBefore(a._renderer._container,a._renderer._container.parentElement.firstChild);}));}}));})):Promise.resolve()},_initMapIntegrations(t){let e=this._map;e?(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(e,t),this._initDistanceMarkers(),this._initEdgeScale(e)]).then((()=>{this.options.polyline&&(this._layers.addLayer(t.addTo(e)),this._circleMarkers.addTo(e)),this.options.autofitBounds&&this.fitBounds(t.getBounds()),e.invalidateSize();}))):this.once("add",(()=>this._initMapIntegrations(t)));},_collapse(){_(this._container,"elevation-expanded","elevation-collapsed"),this._map&&this._map.invalidateSize();},_expand(){_(this._container,"elevation-collapsed","elevation-expanded"),this._map&&this._map.invalidateSize();},_fixCanvasPaths(){let e=L.Canvas.prototype._fillStroke,i=this,a=this.options.theme.split(" ")[0].replace("-theme",""),s=t[a]||{};L.Canvas.include({_fillStroke(t,o){if(i._layers.hasLayer(o)){let i=o.options;if(i.color=s.line||s.area||a,i.stroke=!!i.color,e.call(this,t,o),i.stroke&&0!==i.weight){let e=t.globalCompositeOperation||"source-over";t.globalCompositeOperation="destination-over",t.strokeStyle=s.outline||"#FFF",t.lineWidth=1.75*i.weight,t.stroke(),t.globalCompositeOperation=e;}}else e.call(this,t,o);}});},_fixTooltipSize(){this.on("elechart_init",(()=>this.once("elechart_change elechart_hover",(({data:t,xCoord:e})=>{this._chartEnabled&&(this._chart._showDiagramIndicator(t,e),this._chart._showDiagramIndicator(t,e)),this._updateMarker(t);}))));},_findItemForLatLng(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt(t,e,i){this.fire&&this.fire(t,e,i),this._map&&this._map.fire(t,e,i);},_hideMarker(){this.options.autohideMarker&&this._marker.remove();},_initChart(t){let e=this.options,i=this._map;if(e.detached){let{offsetWidth:t,offsetHeight:i}=this.eleDiv;t>0&&(e.width=t),i>20&&(e.height=i-20);}else {let{clientWidth:t}=i.getContainer();e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>t&&(e.width=t-30);}Promise.all([this.import(this.__D3),this.import(this.__LCHART)]).then((a=>{let s=this._chart=new(a[1]||T).Chart(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(s.render()),s.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._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"),i.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),M(i.getContainer(),"mousewheel",this._resetDrag,this),M(i.getContainer(),"touchstart",this._resetDrag,this),M(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:e})=>{let i=t.getElement&&t.getElement();d(i,this.options.polyline.className+" "+this.options.theme,"layeradd"==e),p(t,"mousemove",this._onMouseMoveLayer.bind(this),"layeradd"==e),p(t,"mouseout",this._onMouseOut.bind(this),"layeradd"==e);}));},_initMarker(t){let e=t.getPane("elevationPane");e||(e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane")),e.style.zIndex=625,e.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]||T).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&&(M(t,"mouseover",this._expand,this),M(t,"mouseout",this._collapse,this),this._map.on("click",this._collapse,this)),this.options.closeBtn){let e=this._button=u("a","elevation-toggle-icon",{href:"#",title:L._("Elevation")},t);M(e,"click",L.DomEvent.stop),M(e,"click",this._toggle,this),M(e,"focus",this._toggle,this),fetch(s(this.__btnIcon,this.options.srcFolder)).then((t=>t.ok&&t.text().then((t=>e.innerHTML=t))));}},_initSummary(t){this.import(this.__LSUMMARY).then((e=>{this._summary=new(e||T).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((e=>{this._downloadURL=t,this._parseFromString(e).then((t=>t&&this._loadLayer(t)));})).catch((t=>console.warn(t)));},_loadModules(t){let e=(t=t.map((t=>"string"==typeof t&&void 0!==T[t]?T[t]:t))).map((t=>"string"==typeof t&&this.import(this.__modulesFolder+t.toLowerCase()+".js")||t instanceof Promise&&t||Promise.resolve()));return Promise.all(e).then((e=>{v(e,((e,i)=>{let a=e&&Object.keys(e)[0];a&&(t[i]=T[a]=T[a]??e[a]);})),v(t,(t=>["function","object"].includes(typeof t)&&this._registerHandler(t)));}))},_loadLayer(t){let{polyline:e,theme:i,waypoints:a,wptIcons:s,wptLabels:o,distanceMarkers:r}=this.options,n=L.extend({},e);i&&(n.className+=" "+i),t.name&&(this.track_info.name=t.name);let h=L.geoJson(t,{distanceMarkers:r,style:n,pointToLayer:(t,e)=>{if(a){let{desc:i,name:r,sym:n}=t.properties;if(i=i||"",r=r||"",[!0,"dots"].includes(a)&&this._registerCheckPoint({latlng:e,label:[!0,"dots"].includes(o)?r:""}),[!0,"markers"].includes(a)&&0!=s)return this._registerMarker({latlng:e,sym:(n??r).replace(" ","-").replace('"',"").replace("'","").toLowerCase(),content:[!0,"markers"].includes(o)&&(r||i)&&decodeURI("<b>"+r+"</b>"+(i.length>0?"<br>"+i:""))})}},onEachFeature:(t,e)=>t.geometry&&"Point"!=t.geometry.type&&this.addData(t,e)});return this.import(this.__D3).then((()=>{this._initMapIntegrations(h);const e={data:t,layer:h,name:this.track_info.name,track_info:this.track_info};this._modulesLoaded?this._fireEvt("eledata_loaded",e):this.once("modules_loaded",(()=>this._fireEvt("eledata_loaded",e)));})),h},_onDragEnd({dragstart:t,dragend:e}){this._hideMarker(),this.fitBounds(L.latLngBounds([t.latlng,e.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 e=this._findItemForX(t);e&&(this._chartEnabled&&this._chart._showDiagramIndicator(e,t),this._updateMarker(e),this._setMapView(e),this._map&&h(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:t}),this.fire("elechart_hover",{data:e,xCoord:t}));}},_onMouseMoveLayer({latlng:t}){if(this._data.length){let e=this._findItemForLatLng(t);if(e){let t=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,t),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:t});}}},_onMouseOut(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave");},_onRulerFilter({coords:t}){this._updateMapSegments(t);},_onToggleChart({name:t,enabled:e}){this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((t=>d(t.getElement&&t.getElement(),this.options.polyline.className+" "+this.options.theme,this._chartEnabled))),this.options[t]=e||"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((e=>this.import(this.__TOGEOJSON).then((()=>{let i;try{i=this._parseFromXMLString(t.trim());}catch(e){i=this._parseFromGeoJSONString(t.toString());}i&&(i.name=i.name||(this._downloadURL||"").split("/").pop().split("#")[0].split("?")[0]),e(i);}))))},_parseFromXMLString(t){if(0!=t.indexOf("<"))throw "Invalid XML";let e=(new DOMParser).parseFromString(t,"text/xml"),i=e.documentElement.tagName.toLowerCase(),a=e.getElementsByTagName("name");if(e.getElementsByTagName("parsererror").length)throw "Invalid XML";i in toGeoJSON||(i="TrainingCenterDatabase"==e.documentElement.tagName?"tcx":"gpx");let s=toGeoJSON[i](e);return s.name=a.length>0?(Array.from(a).find((t=>"trk"==t.parentElement.tagName))??a[0]).textContent:"",s},_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 e=()=>this._chart._registerCheckPoint(t);this.on("elechart_updated",e).once("eledata_clear",(()=>this.off("elechart_updated",e)));},_registerDataAttribute(t){t.coordPropsToMeta&&this.on("elepoint_init",(e=>t.coordPropsToMeta.call(this,e)));let e,i,a,s=t.attr||t.name,o={};this.on("elepoint_added",(({index:r,point:n})=>{if(e=r,a=i??this._data[e],i=this._data[e],i[s]=t.pointToAttr.call(this,n,e),e>0&&isNaN(a[s])&&(isNaN(o[s])||isNaN(i[s])?isNaN(o[s])?isNaN(i[s])||(a[s]=i[s]):a[s]=o[s]:a[s]=(o[s]+i[s])/2,t.meta&&(a[t.meta]=a[s])),!isNaN(i[s])){if(o[s]=i[s],t.deltaMax&&(i[s]=D(i[s],a[s],t.deltaMax)),t.clampRange&&(i[s]=E(i[s],t.clampRange)),isNaN(t.decimals)||(i[s]=x(i[s],t.decimals)),t.stats)for(const e in t.stats){let a=(t.statsName||s)+(""!=e?"_":"");this.track_info[a+e]=t.stats[e].call(this,i[s],this.track_info[a+e],this._data.length);}t.onPointAdded&&t.onPointAdded.call(this,i[s],e,n);}}));},_registerHandler(t){if("function"==typeof t)return this._registerHandler(t.call(this));let{name:e,attr:i,required:a,deltaMax:s,clampRange:o,decimals:n,meta:h,unit:l,coordinateProperties:d,coordPropsToMeta:_,pointToAttr:c,onPointAdded:m,stats:p,statsName:u,grid:f,scale:g,path:y,tooltip:k,summary:M}=t;(this.options[e]||a)&&(this._registerDataAttribute({name:e,attr:i,meta:h,deltaMax:s,clampRange:o,decimals:n,coordPropsToMeta:r(d,h||e,_),pointToAttr:c,onPointAdded:m,stats:p,statsName:u}),f&&this._registerAxisGrid(L.extend({name:e},f)),"summary"!==this.options[e]&&(g&&this._registerAxisScale(L.extend({name:e,label:l},g)),y&&this._registerAreaPath(L.extend({name:e},y))),(k||t.tooltips)&&v([k,...t.tooltips||[]],(t=>t&&this._registerTooltip(L.extend({name:e},t)))),M&&(v(M,((t,e)=>M[e]=L.extend({unit:l},t))),this._registerSummary(M)));},_registerMarker({latlng:t,sym:e,content:i}){let{wptIcons:a}=this.options;a.hasOwnProperty(e)||(a[e]=L.divIcon(L.extend({},a[""].options,{html:'<i class="elevation-waypoint-icon '+e+'"></i>'})));let s=L.marker(t,{icon:a[e]});return i&&(s.bindPopup(i,{className:"elevation-popup",keepInView:!0}).openPopup(),s.bindTooltip(i,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip()),this._addMarker(s)},_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"!=c(this._container,"display")){let t=this.options,e=t.detached?(this.eleDiv||this._container).offsetWidth:E(t._maxWidth,[0,this._map.getContainer().clientWidth-30]);e&&(t.width=e,this._chart&&this._chart._chart&&(this._chart._chart._resize(t),this._updateChart())),this._updateMapSegments();}},_toggle(){C(this._container,"elevation-expanded")?this._collapse():this._expand();},_setMapView(t){if(this._map&&this.options.followMarker){let e=this._map.getZoom(),i=this.options.zFollow;"number"==typeof i?this._map.setView(t.latlng,e<i?i:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25});}},_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>",y(".download a",this._summary._container).onclick=t=>{t.preventDefault();let e={downloadLink:this.options.downloadLink,confirm:o.bind(this,this._downloadURL)};"modal"==this.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:e})):"link"!=this.options.downloadLink&&!0!==this.options.downloadLink||e.confirm(),this.fire("eletrack_download",e);}));},_width(){if(this._chart)return this._chart._width();const{width:t,margins:e}=this.options;return t-e.left-e.right},_height(){if(this._chart)return this._chart._height();const{height:t,margins:e}=this.options;return t-e.top-e.bottom}});T.Utils=A,L.control.elevation=t=>new T(t);}));
18843
18843
 
18844
- const grwMapCss = "@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}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:\"Roboto\";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}.trek-marker{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}.trek-marker img{width:36px !important}.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)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px}.trek-departure-popup .trek-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-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: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{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{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)}";
18844
+ createCommonjsModule(function (module, exports) {
18845
+ !function(e,t){t(exports);}(commonjsGlobal,function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?L.MarkerCluster:L.MarkerClusterNonAnimated;},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire("layeradd",{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire("layeradd",{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire("layeradd",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,i=this._zoom;if(e.__parent)for(;t.__parent._zoom>=i;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):(e.getLatLng?this._map?e.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire("layerremove",{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow())):(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e})):(this._nonPointGroup.removeLayer(e),this.fire("layerremove",{layer:e})),this)},addLayers:function(n,s){if(!L.Util.isArray(n))return this.addLayer(n);var o,a=this._featureGroup,h=this._nonPointGroup,l=this.options.chunkedLoading,u=this.options.chunkInterval,_=this.options.chunkProgress,d=n.length,p=0,c=!0;if(this._map){var f=(new Date).getTime(),m=L.bind(function(){var e=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();p<d;p++){if(l&&p%200==0){var t=(new Date).getTime()-e;if(u<t)break}if((o=n[p])instanceof L.LayerGroup)c&&(n=n.slice(),c=!1),this._extractNonGroupLayers(o,n),d=n.length;else if(o.getLatLng){if(!this.hasLayer(o)&&(this._addLayer(o,this._maxZoom),s||this.fire("layeradd",{layer:o}),o.__parent&&2===o.__parent.getChildCount())){var i=o.__parent.getAllChildMarkers(),r=i[0]===o?i[1]:i[0];a.removeLayer(r);}}else h.addLayer(o),s||this.fire("layeradd",{layer:o});}_&&_(p,d,(new Date).getTime()-f),p===d?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(m,this.options.chunkDelay);},this);m();}else for(var e=this._needsClustering;p<d;p++)(o=n[p])instanceof L.LayerGroup?(c&&(n=n.slice(),c=!1),this._extractNonGroupLayers(o,n),d=n.length):o.getLatLng?this.hasLayer(o)||e.push(o):h.addLayer(o);return this},removeLayers:function(e){var t,i,r=e.length,n=this._featureGroup,s=this._nonPointGroup,o=!0;if(!this._map){for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),r=e.length):(this._arraySplice(this._needsClustering,i),s.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=e.slice(),h=r;for(t=0;t<h;t++)(i=a[t])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),h=a.length):this._unspiderfyLayer(i);}for(t=0;t<r;t++)(i=e[t])instanceof L.LayerGroup?(o&&(e=e.slice(),o=!1),this._extractNonGroupLayers(i,e),r=e.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),n.hasLayer(i)&&(n.removeLayer(i),i.clusterShow&&i.clusterShow())):(s.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent;},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;0<=t;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var i,r,n,s=this._needsClustering.slice(),o=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(s),r=s.length-1;0<=r;r--){for(i=!0,n=o.length-1;0<=n;n--)if(o[n].layer===s[r]){i=!1;break}i&&e.call(t,s[r]);}this._nonPointGroup.eachLayer(e,t);},getLayers:function(){var t=[];return this.eachLayer(function(e){t.push(e);}),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(e){if(!e)return !1;var t,i=this._needsClustering;for(t=i.length-1;0<=t;t--)if(i[t]===e)return !0;for(t=(i=this._needsRemoving).length-1;0<=t;t--)if(i[t].layer===e)return !1;return !(!e.__parent||e.__parent._group!==this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var i=this._map;"function"!=typeof t&&(t=function(){});var r=function(){!i.hasLayer(e)&&!i.hasLayer(e.__parent)||this._inZoomAnimation||(this._map.off("moveend",r,this),this.off("animationend",r,this),i.hasLayer(e)?t():e.__parent._icon&&(this.once("spiderfied",t,this),e.__parent.spiderfy()));};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",r,this),this._map.panTo(e.getLatLng())):(this._map.on("moveend",r,this),this.on("animationend",r,this),e.__parent.zoomToBounds());},onAdd:function(e){var t,i,r;if(this._map=e,!isFinite(this._map.getMaxZoom()))throw "Map has no maxZoom specified";for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,i=this._needsRemoving.length;t<i;t++)(r=this._needsRemoving[t]).newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,i=this._needsRemoving.length;t<i;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0);},onRemove:function(e){e.off("zoomend",this._zoomEnd,this),e.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null;},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1),!0},_removeFromGridUnclustered:function(e,t){for(var i=this._map,r=this._gridUnclustered,n=Math.floor(this._map.getMinZoom());n<=t&&r[t].removeObject(e,i.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng;},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup();}},_moveChild:function(e,t,i){e._latlng=t,this.removeLayer(e),e._latlng=i,this.addLayer(e);},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng);},_removeLayer:function(e,t,i){var r=this._gridClusters,n=this._gridUnclustered,s=this._featureGroup,o=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var h,l=e.__parent,u=l._markers;for(this._arraySplice(u,e);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)t&&l._childCount<=1?(h=l._markers[0]===e?l._markers[1]:l._markers[0],r[l._zoom].removeObject(l,o.project(l._cLatLng,l._zoom)),n[l._zoom].addObject(h,o.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete e.__parent;},_isOrIsParent:function(e,t){for(;t;){if(e===t)return !0;t=t.parentNode;}return !1},fire:function(e,t,i){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e="cluster"+e;}L.FeatureGroup.prototype.fire.call(this,e,t,i);},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,"cluster"+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),i=" marker-cluster-";return i+=t<10?"small":t<100?"medium":"large",new L.DivIcon({html:"<div><span>"+t+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom;(t||r||n)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),e.on("zoomend",this._hideCoverage,this));},_zoomOrSpiderfy:function(e){var t=e.layer,i=t;if("clusterkeypress"!==e.type||!e.originalEvent||13===e.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&13===e.originalEvent.keyCode&&this._map._container.focus();}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),2<e.layer.getChildCount()&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)));},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null);},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,n=this._map;(e||i||r)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),t&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this));},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds());},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e;}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,r=i;"function"!=typeof i&&(r=function(){return i}),null!==this.options.disableClusteringAtZoom&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var n=e;t<=n;n--)this._gridClusters[n]=new L.DistanceGrid(r(n)),this._gridUnclustered[n]=new L.DistanceGrid(r(n));this._topClusterLevel=new this._markerCluster(this,t-1);},_addLayer:function(e,t){var i,r,n=this._gridClusters,s=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);o<=t;t--){i=this._map.project(e.getLatLng(),t);var a=n[t].getNearObject(i);if(a)return a._addChild(e),void(e.__parent=a);if(a=s[t].getNearObject(i)){var h=a.__parent;h&&this._removeLayer(a,!1);var l=new this._markerCluster(this,t,a,e);n[t].addObject(l,this._map.project(l._cLatLng,t)),a.__parent=l;var u=e.__parent=l;for(r=t-1;r>h._zoom;r--)u=new this._markerCluster(this,r,u),n[r].addObject(u,this._map.project(a.getLatLng(),r));return h._addChild(u),void this._removeFromGridUnclustered(a,t)}s[t].addObject(e,i);}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel;},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon();});},_enqueue:function(e){this._queue.push(e),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300));},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null;},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd();},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return void 0!==t&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(2===t._childCount){t._addToMap();var i=t.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1]);}else t._updateIcon();},_extractNonGroupLayers:function(e,t){var i,r=e.getLayers(),n=0;for(t=t||[];n<r.length;n++)(i=r[n])instanceof L.LayerGroup?this._extractNonGroupLayers(i,t):t.push(i);return t},_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return [e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend");},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend");},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t);}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++;},_animationZoomIn:function(n,s){var o,a=this._getExpandedVisibleBounds(),h=this._featureGroup,e=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(a,n,e,function(e){var t,i=e._latlng,r=e._markers;for(a.contains(i)||(i=null),e._isSingleParent()&&n+1===s?(h.removeLayer(e),e._recursivelyAddChildrenToMap(null,s,a)):(e.clusterHide(),e._recursivelyAddChildrenToMap(i,s,a)),o=r.length-1;0<=o;o--)t=r[o],a.contains(t._latlng)||h.removeLayer(t);}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,s),h.eachLayer(function(e){e instanceof L.MarkerCluster||!e._icon||e.clusterShow();}),this._topClusterLevel._recursively(a,n,s,function(e){e._recursivelyRestoreChildPositions(s);}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,n,e,function(e){h.removeLayer(e),e.clusterShow();}),this._animationEnd();});},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds());},_animationAddLayer:function(e,t){var i=this,r=this._featureGroup;r.addLayer(e),t!==e&&(2<t._childCount?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){r.removeLayer(e),e.clusterShow(),i._animationEnd();})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)));}},_animationZoomOutSingle:function(t,i,r){var n=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,s,i+1,r);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,r),this._enqueue(function(){if(1===t._childCount){var e=t._markers[0];this._ignoreMove=!0,e.setLatLng(e.getLatLng()),this._ignoreMove=!1,e.clusterShow&&e.clusterShow();}else t._recursively(n,r,s,function(e){e._recursivelyRemoveChildrenFromMap(n,s,i+1);});o._animationEnd();});},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend");},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth);}}),L.markerClusterGroup=function(e){return new L.MarkerClusterGroup(e)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,i,r){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),r&&this._addChild(r);},getAllChildMarkers:function(e,t){e=e||[];for(var i=this._childClusters.length-1;0<=i;i--)this._childClusters[i].getAllChildMarkers(e,t);for(var r=this._markers.length-1;0<=r;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t,i=this._childClusters.slice(),r=this._group._map,n=r.getBoundsZoom(this._bounds),s=this._zoom+1,o=r.getZoom();0<i.length&&s<n;){s++;var a=[];for(t=0;t<i.length;t++)a=a.concat(i[t]._childClusters);i=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,e);},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this);},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0);},_setClusterCenter:function(e){this._cLatLng||(this._cLatLng=e._cLatLng||e._latlng);},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0);},_recalculateBounds:function(){var e,t,i,r,n=this._markers,s=this._childClusters,o=0,a=0,h=this._childCount;if(0!==h){for(this._resetBounds(),e=0;e<n.length;e++)i=n[e]._latlng,this._bounds.extend(i),o+=i.lat,a+=i.lng;for(e=0;e<s.length;e++)(t=s[e])._boundsNeedUpdate&&t._recalculateBounds(),this._bounds.extend(t._bounds),i=t._wLatLng,r=t._childCount,o+=i.lat*r,a+=i.lng*r;this._latlng=this._wLatLng=new L.LatLng(o/h,a/h),this._boundsNeedUpdate=!1;}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this);},_recursivelyAnimateChildrenIn:function(e,n,t){this._recursively(e,this._group._map.getMinZoom(),t-1,function(e){var t,i,r=e._markers;for(t=r.length-1;0<=t;t--)(i=r[t])._icon&&(i._setPos(n),i.clusterHide());},function(e){var t,i,r=e._childClusters;for(t=r.length-1;0<=t;t--)(i=r[t])._icon&&(i._setPos(n),i.clusterHide());});},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,i,r,n){this._recursively(t,n,i,function(e){e._recursivelyAnimateChildrenIn(t,e._group._map.latLngToLayerPoint(e.getLatLng()).round(),r),e._isSingleParent()&&r-1===n?(e.clusterShow(),e._recursivelyRemoveChildrenFromMap(t,i,r)):e.clusterHide(),e._addToMap();});},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow();});},_recursivelyAddChildrenToMap:function(r,n,s){this._recursively(s,this._group._map.getMinZoom()-1,n,function(e){if(n!==e._zoom)for(var t=e._markers.length-1;0<=t;t--){var i=e._markers[t];s.contains(i._latlng)&&(r&&(i._backupLatlng=i.getLatLng(),i.setLatLng(r),i.clusterHide&&i.clusterHide()),e._group._featureGroup.addLayer(i));}},function(e){e._addToMap(r);});},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;0<=t;t--){var i=this._markers[t];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng);}if(e-1===this._zoom)for(var r=this._childClusters.length-1;0<=r;r--)this._childClusters[r]._restorePosition();else for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._recursivelyRestoreChildPositions(e);},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng);},_recursivelyRemoveChildrenFromMap:function(e,t,i,r){var n,s;this._recursively(e,t-1,i-1,function(e){for(s=e._markers.length-1;0<=s;s--)n=e._markers[s],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow());},function(e){for(s=e._childClusters.length-1;0<=s;s--)n=e._childClusters[s],r&&r.contains(n._latlng)||(e._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow());});},_recursively:function(e,t,i,r,n){var s,o,a=this._childClusters,h=this._zoom;if(t<=h&&(r&&r(this),n&&h===i&&n(this)),h<t||h<i)for(s=a.length-1;0<=s;s--)(o=a[s])._boundsNeedUpdate&&o._recalculateBounds(),e.intersects(o._bounds)&&o._recursively(e,t,i,r,n);},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={};},L.DistanceGrid.prototype={addObject:function(e,t){var i=this._getCoord(t.x),r=this._getCoord(t.y),n=this._grid,s=n[r]=n[r]||{},o=s[i]=s[i]||[],a=L.Util.stamp(e);this._objectPoint[a]=t,o.push(e);},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t);},removeObject:function(e,t){var i,r,n=this._getCoord(t.x),s=this._getCoord(t.y),o=this._grid,a=o[s]=o[s]||{},h=a[n]=a[n]||[];for(delete this._objectPoint[L.Util.stamp(e)],i=0,r=h.length;i<r;i++)if(h[i]===e)return h.splice(i,1),1===r&&delete a[n],!0},eachObject:function(e,t){var i,r,n,s,o,a,h=this._grid;for(i in h)for(r in o=h[i])for(n=0,s=(a=o[r]).length;n<s;n++)e.call(t,a[n])&&(n--,s--);},getNearObject:function(e){var t,i,r,n,s,o,a,h,l=this._getCoord(e.x),u=this._getCoord(e.y),_=this._objectPoint,d=this._sqCellSize,p=null;for(t=u-1;t<=u+1;t++)if(n=this._grid[t])for(i=l-1;i<=l+1;i++)if(s=n[i])for(r=0,o=s.length;r<o;r++)a=s[r],((h=this._sqDist(_[L.Util.stamp(a)],e))<d||h<=d&&null===p)&&(d=h,p=a);return p},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r}},L.QuickHull={getDistant:function(e,t){var i=t[1].lat-t[0].lat;return (t[0].lng-t[1].lng)*(e.lat-t[0].lat)+i*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){var i,r,n,s=0,o=null,a=[];for(i=t.length-1;0<=i;i--)r=t[i],0<(n=this.getDistant(r,e))&&(a.push(r),s<n&&(s=n,o=r));return {maxPoint:o,newPoints:a}},buildConvexHull:function(e,t){var i=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?i=(i=i.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints))).concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)):[e[0]]},getConvexHull:function(e){var t,i=!1,r=!1,n=!1,s=!1,o=null,a=null,h=null,l=null,u=null,_=null;for(t=e.length-1;0<=t;t--){var d=e[t];(!1===i||d.lat>i)&&(i=(o=d).lat),(!1===r||d.lat<r)&&(r=(a=d).lat),(!1===n||d.lng>n)&&(n=(h=d).lng),(!1===s||d.lng<s)&&(s=(l=d).lng);}return u=r!==i?(_=a,o):(_=l,h),[].concat(this.buildConvexHull([_,u],e),this.buildConvexHull([u,_],e))}},L.MarkerCluster.include({getConvexHull:function(){var e,t,i=this.getAllChildMarkers(),r=[];for(t=i.length-1;0<=t;t--)e=i[t].getLatLng(),r.push(e);return L.QuickHull.getConvexHull(r)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var e,t=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),e=(this._group._spiderfied=this)._group.options.spiderfyShapePositions?this._group.options.spiderfyShapePositions(t.length,i):t.length>=this._circleSpiralSwitchover?this._generatePointsSpiral(t.length,i):(i.y+=10,this._generatePointsCircle(t.length,i)),this._animationSpiderfy(t,e);}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null);},_generatePointsCircle:function(e,t){var i,r,n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,s=this._2PI/e,o=[];for(n=Math.max(n,35),o.length=e,i=0;i<e;i++)r=this._circleStartAngle+i*s,o[i]=new L.Point(t.x+n*Math.cos(r),t.y+n*Math.sin(r))._round();return o},_generatePointsSpiral:function(e,t){var i,r=this._group.options.spiderfyDistanceMultiplier,n=r*this._spiralLengthStart,s=r*this._spiralFootSeparation,o=r*this._spiralLengthFactor*this._2PI,a=0,h=[];for(i=h.length=e;0<=i;i--)i<e&&(h[i]=new L.Point(t.x+n*Math.cos(a),t.y+n*Math.sin(a))._round()),n+=o/(a+=s/n+5e-4*i);return h},_noanimationUnspiderfy:function(){var e,t,i=this._group,r=i._map,n=i._featureGroup,s=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),t=s.length-1;0<=t;t--)e=s[t],n.removeLayer(e),e._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng),e.setZIndexOffset&&e.setZIndexOffset(0),e._spiderLeg&&(r.removeLayer(e._spiderLeg),delete e._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._ignoreMove=!1,i._spiderfied=null;}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var i,r,n,s,o=this._group,a=o._map,h=o._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(o._ignoreMove=!0,i=0;i<e.length;i++)s=a.layerPointToLatLng(t[i]),r=e[i],n=new L.Polyline([this._latlng,s],l),a.addLayer(n),r._spiderLeg=n,r._preSpiderfyLatlng=r._latlng,r.setLatLng(s),r.setZIndexOffset&&r.setZIndexOffset(1e6),h.addLayer(r);this.setOpacity(.3),o._ignoreMove=!1,o.fire("spiderfied",{cluster:this,markers:e});},_animationUnspiderfy:function(){this._noanimationUnspiderfy();}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var i,r,n,s,o,a,h=this,l=this._group,u=l._map,_=l._featureGroup,d=this._latlng,p=u.latLngToLayerPoint(d),c=L.Path.SVG,f=L.extend({},this._group.options.spiderLegPolylineOptions),m=f.opacity;for(void 0===m&&(m=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),c?(f.opacity=0,f.className=(f.className||"")+" leaflet-cluster-spider-leg"):f.opacity=m,l._ignoreMove=!0,i=0;i<e.length;i++)r=e[i],a=u.layerPointToLatLng(t[i]),n=new L.Polyline([d,a],f),u.addLayer(n),r._spiderLeg=n,c&&(o=(s=n._path).getTotalLength()+.1,s.style.strokeDasharray=o,s.style.strokeDashoffset=o),r.setZIndexOffset&&r.setZIndexOffset(1e6),r.clusterHide&&r.clusterHide(),_.addLayer(r),r._setPos&&r._setPos(p);for(l._forceLayout(),l._animationStart(),i=e.length-1;0<=i;i--)a=u.layerPointToLatLng(t[i]),(r=e[i])._preSpiderfyLatlng=r._latlng,r.setLatLng(a),r.clusterShow&&r.clusterShow(),c&&((s=(n=r._spiderLeg)._path).style.strokeDashoffset=0,n.setStyle({opacity:m}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:e});},200);},_animationUnspiderfy:function(e){var t,i,r,n,s,o,a=this,h=this._group,l=h._map,u=h._featureGroup,_=e?l._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;0<=i;i--)(t=d[i])._preSpiderfyLatlng&&(t.closePopup(),t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng,o=!0,t._setPos&&(t._setPos(_),o=!1),t.clusterHide&&(t.clusterHide(),o=!1),o&&u.removeLayer(t),p&&(s=(n=(r=t._spiderLeg)._path).getTotalLength()+.1,n.style.strokeDashoffset=s,r.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var e=0;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&e++;for(i=d.length-1;0<=i;i--)(t=d[i])._spiderLeg&&(t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),1<e&&u.removeLayer(t),l.removeLayer(t._spiderLeg),delete t._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:d});},200);}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments);},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this);},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy();},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this);},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(e));},_unspiderfyWrapper:function(){this._unspiderfy();},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e);},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy();},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg);}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,i;for(t in e)for(i=e[t].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent;},_refreshSingleMarkerModeMarkers:function(e){var t,i;for(t in e)i=e[t],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i));}}),L.Marker.include({refreshIconOptions:function(e,t){var i=this.options.icon;return L.setOptions(i,e),this.setIcon(i),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=i,Object.defineProperty(e,"__esModule",{value:!0});});
18846
+ //# sourceMappingURL=leaflet.markercluster.js.map
18847
+ });
18848
+
18849
+ function getTrekGeometry(id) {
18850
+ return fetch(`${store.state.api}trek/${id}/?language=${store.state.language}&published=true&fields=geometry`, { cache: 'default' }).then(response => response.json());
18851
+ }
18852
+
18853
+ const grwMapCss = "@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:\"Roboto\";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{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 div,.selected-trek-marker div{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);background-color:var(--color-surface)}.trek-marker div img,.selected-trek-marker div img{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.selected-trek-marker div{width:64px;height:64px}.selected-trek-marker div img{width:48px !important}.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)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img{border-top-left-radius:8px;border-top-right-radius:8px}.trek-departure-popup .trek-name{font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-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: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}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-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: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{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{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-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}";
18845
18854
 
18846
18855
  const GrwMap = class {
18847
18856
  constructor(hostRef) {
18848
18857
  index.registerInstance(this, hostRef);
18849
18858
  this.trekCardPress = index.createEvent(this, "trekCardPress", 7);
18850
18859
  this.userLayersState = {};
18860
+ this.tileLayer = [];
18851
18861
  this.handleTreksWithinBoundsBind = this.handleTreksWithinBounds.bind(this);
18852
18862
  this.mapIsReady = false;
18863
+ this.nameLayer = undefined;
18853
18864
  this.urlLayer = undefined;
18854
- this.attribution = undefined;
18865
+ this.attributionLayer = undefined;
18855
18866
  this.center = '1, 1';
18856
18867
  this.zoom = 10;
18857
18868
  this.colorPrimaryApp = '#6b0030';
@@ -18894,6 +18905,22 @@ const GrwMap = class {
18894
18905
  this.handleLayerVisibility(event.detail, this.currentPoisLayer);
18895
18906
  }
18896
18907
  }
18908
+ onCardTrekMouseOver(event) {
18909
+ if (!store.state.selectedTrekId || store.state.selectedTrekId !== event.detail) {
18910
+ store.state.selectedTrekId = event.detail;
18911
+ this.hideTrekLine();
18912
+ this.showTrekLine(event.detail);
18913
+ this.addSelectedCurrentTrek(event.detail);
18914
+ }
18915
+ }
18916
+ oncardTrekMouseLeave() {
18917
+ if (!this.trekPopupIsOpen) {
18918
+ this.trekPopupIsOpen = false;
18919
+ store.state.selectedTrekId = null;
18920
+ this.hideTrekLine();
18921
+ this.removeSelectedCurrentTrek();
18922
+ }
18923
+ }
18897
18924
  componentDidLoad() {
18898
18925
  this.map = leafletSrc.map(this.mapRef, {
18899
18926
  center: this.center.split(',').map(Number),
@@ -18901,10 +18928,42 @@ const GrwMap = class {
18901
18928
  });
18902
18929
  leafletSrc.control.scale({ metric: true, imperial: false }).addTo(this.map);
18903
18930
  leafletSrc.control.locate({ showPopup: false }).addTo(this.map);
18904
- leafletSrc.tileLayer(this.urlLayer, {
18905
- maxZoom: 19,
18906
- attribution: this.attribution,
18907
- }).addTo(this.map);
18931
+ const nameLayers = this.nameLayer.split(',');
18932
+ const urlLayers = this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url));
18933
+ const attributionLayers = this.attributionLayer.split(',');
18934
+ urlLayers.forEach((urlLayer, index) => {
18935
+ this.tileLayer.push({
18936
+ key: `${nameLayers[index]}`,
18937
+ value: leafletSrc.tileLayer(urlLayer, {
18938
+ maxZoom: 19,
18939
+ attribution: `${attributionLayers[index] && attributionLayers[index] !== '' ? attributionLayers[index].concat(' | ') : ''}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,
18940
+ }),
18941
+ });
18942
+ });
18943
+ this.tileLayer[0].value.addTo(this.map);
18944
+ if (urlLayers.length > 1) {
18945
+ this.layersControl = leafletSrc.control
18946
+ .layers(this.tileLayer.reduce((tileLayers, tileLayer) => Object.assign(tileLayers, { [tileLayer.key]: tileLayer.value }), {}), {}, { collapsed: true })
18947
+ .addTo(this.map);
18948
+ leafletSrc.Control.Contract = leafletSrc.Control.extend({
18949
+ onAdd: () => {
18950
+ const contractContainer = leafletSrc.DomUtil.create('div');
18951
+ contractContainer.className = 'leaflet-bar leaflet-control';
18952
+ const contract = contractContainer.appendChild(leafletSrc.DomUtil.create('a'));
18953
+ contract.href = '#';
18954
+ contract.style.backgroundImage = `var(--contract-image-src)`;
18955
+ contractContainer.onclick = e => {
18956
+ this.bounds && this.map.fitBounds(this.bounds);
18957
+ e.preventDefault();
18958
+ };
18959
+ return contractContainer;
18960
+ },
18961
+ });
18962
+ leafletSrc.control.contract = opts => {
18963
+ return new leafletSrc.Control.Contract(opts);
18964
+ };
18965
+ leafletSrc.control.contract({ position: 'topleft' }).addTo(this.map);
18966
+ }
18908
18967
  if (store.state.currentTrek) {
18909
18968
  this.addTrek();
18910
18969
  }
@@ -18975,9 +19034,10 @@ const GrwMap = class {
18975
19034
  this.treksLayer = leafletSrc.geoJSON(treksFeatureCollection, {
18976
19035
  pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
18977
19036
  icon: leafletSrc.divIcon({
18978
- html: geoJsonPoint.properties.practice ? `<img src=${geoJsonPoint.properties.practice} />` : `<img />`,
19037
+ html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,
18979
19038
  className: 'trek-marker',
18980
- iconSize: 48,
19039
+ iconSize: 32,
19040
+ iconAnchor: [18, 0],
18981
19041
  }),
18982
19042
  autoPanOnFocus: false,
18983
19043
  }),
@@ -18985,21 +19045,38 @@ const GrwMap = class {
18985
19045
  layer.once('click', () => {
18986
19046
  const trekDeparturePopup = leafletSrc.DomUtil.create('div');
18987
19047
  trekDeparturePopup.className = 'trek-departure-popup';
18988
- trekDeparturePopup.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
18989
- const trekName = leafletSrc.DomUtil.create('div');
18990
- trekName.innerHTML = geoJsonPoint.properties.name;
18991
- trekName.className = 'trek-name';
18992
19048
  if (geoJsonPoint.properties.imgSrc) {
18993
- trekName.className += ' trek-name-margin-top';
18994
19049
  const trekImg = leafletSrc.DomUtil.create('img');
18995
19050
  trekImg.src = geoJsonPoint.properties.imgSrc;
18996
19051
  trekDeparturePopup.appendChild(trekImg);
18997
19052
  }
19053
+ const trekName = leafletSrc.DomUtil.create('div');
19054
+ trekName.innerHTML = geoJsonPoint.properties.name;
19055
+ trekName.className = 'trek-name';
18998
19056
  trekDeparturePopup.appendChild(trekName);
19057
+ const trekButton = leafletSrc.DomUtil.create('button');
19058
+ trekButton.innerHTML = 'Afficher le détail';
19059
+ trekButton.className = 'trek-button';
19060
+ trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
19061
+ trekDeparturePopup.appendChild(trekButton);
18999
19062
  layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
19000
19063
  });
19064
+ layer.on('mouseover', e => {
19065
+ this.hideTrekLine();
19066
+ this.showTrekLine(geoJsonPoint.properties.id);
19067
+ this.addSelectedCurrentTrek(geoJsonPoint.properties.id, e.latlng);
19068
+ });
19001
19069
  },
19002
- }).addTo(this.map);
19070
+ });
19071
+ this.treksMarkerClusterGroup = leafletSrc.markerClusterGroup({
19072
+ showCoverageOnHover: false,
19073
+ removeOutsideVisibleBounds: false,
19074
+ iconCreateFunction: cluster => {
19075
+ return leafletSrc.divIcon({ html: '<div>' + cluster.getChildCount() + '</div>', className: 'treks-marker-cluster-group-icon', iconSize: 48, iconAnchor: [24, 24] });
19076
+ },
19077
+ });
19078
+ this.treksMarkerClusterGroup.addLayer(this.treksLayer);
19079
+ this.map.addLayer(this.treksMarkerClusterGroup);
19003
19080
  }
19004
19081
  else {
19005
19082
  if (trekscurrentDepartureCoordinates.length > 0) {
@@ -19010,6 +19087,8 @@ const GrwMap = class {
19010
19087
  }
19011
19088
  this.treksLayer.clearLayers();
19012
19089
  this.treksLayer.addData(treksFeatureCollection);
19090
+ this.treksMarkerClusterGroup.clearLayers();
19091
+ this.treksMarkerClusterGroup.addLayer(this.treksLayer);
19013
19092
  }
19014
19093
  this.bounds && this.map.fitBounds(this.bounds);
19015
19094
  !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
@@ -19018,8 +19097,9 @@ const GrwMap = class {
19018
19097
  removeTreks() {
19019
19098
  if (this.treksLayer) {
19020
19099
  store.state.currentMapTreksBounds = this.map.getBounds();
19021
- this.map.removeLayer(this.treksLayer);
19100
+ this.map.removeLayer(this.treksMarkerClusterGroup);
19022
19101
  this.treksLayer = null;
19102
+ this.treksMarkerClusterGroup = null;
19023
19103
  this.map.off('moveend', this.handleTreksWithinBoundsBind);
19024
19104
  }
19025
19105
  }
@@ -19031,6 +19111,10 @@ const GrwMap = class {
19031
19111
  }
19032
19112
  addTrek() {
19033
19113
  var _a;
19114
+ this.trekPopupIsOpen = false;
19115
+ store.state.selectedTrekId = null;
19116
+ this.hideTrekLine();
19117
+ this.removeSelectedCurrentTrek();
19034
19118
  const currentTrekFeature = {
19035
19119
  type: 'Feature',
19036
19120
  geometry: store.state.currentTrek.geometry,
@@ -19246,24 +19330,120 @@ const GrwMap = class {
19246
19330
  if (this.currentPoisLayer) {
19247
19331
  overlays[i18n.translate[store.state.language].layers.pois] = this.currentPoisLayer;
19248
19332
  }
19249
- this.layersControl = leafletSrc.control.layers(null, overlays, { collapsed: true }).addTo(this.map);
19333
+ if (this.layersControl) {
19334
+ Object.keys(overlays).forEach(key => {
19335
+ this.layersControl.addOverlay(overlays[key], key);
19336
+ });
19337
+ }
19338
+ else {
19339
+ this.layersControl = leafletSrc.control.layers({}, overlays, { collapsed: true }).addTo(this.map);
19340
+ }
19250
19341
  this.handleLayersControlEvent();
19251
19342
  this.bounds = leafletSrc.latLngBounds(store.state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
19252
19343
  this.bounds && this.map.fitBounds(this.bounds);
19253
19344
  !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
19254
19345
  }
19346
+ addSelectedCurrentTrek(id, customCoordinates) {
19347
+ var _a;
19348
+ const treksFeatureCollection = {
19349
+ type: 'FeatureCollection',
19350
+ features: [],
19351
+ };
19352
+ if (store.state.currentTreks) {
19353
+ const trek = store.state.currentTreks.find(trek => trek.id === id);
19354
+ treksFeatureCollection.features.push({
19355
+ type: 'Feature',
19356
+ geometry: { type: 'Point', coordinates: customCoordinates ? [customCoordinates.lng, customCoordinates.lat] : trek.departure_geom },
19357
+ properties: {
19358
+ id: trek.id,
19359
+ name: trek.name,
19360
+ practice: (_a = store.state.practices.find(practice => practice.id === trek.practice)) === null || _a === void 0 ? void 0 : _a.pictogram,
19361
+ imgSrc: trek.attachments && trek.attachments.length > 0 && trek.attachments[0].thumbnail,
19362
+ },
19363
+ });
19364
+ }
19365
+ this.removeSelectedCurrentTrek();
19366
+ store.state.selectedTrekId = id;
19367
+ this.selectedCurrentTrekLayer = leafletSrc.geoJSON(treksFeatureCollection, {
19368
+ pointToLayer: (geoJsonPoint, latlng) => leafletSrc.marker(latlng, {
19369
+ zIndexOffset: 4000000,
19370
+ icon: leafletSrc.divIcon({
19371
+ html: geoJsonPoint.properties.practice ? `<div><img src=${geoJsonPoint.properties.practice} /><img/></div>` : `<div/></div>`,
19372
+ className: 'selected-trek-marker',
19373
+ iconSize: 64,
19374
+ iconAnchor: [36, 36],
19375
+ }),
19376
+ autoPanOnFocus: false,
19377
+ }),
19378
+ onEachFeature: (geoJsonPoint, layer) => {
19379
+ layer.once('click', () => {
19380
+ const trekDeparturePopup = leafletSrc.DomUtil.create('div');
19381
+ trekDeparturePopup.className = 'trek-departure-popup';
19382
+ if (geoJsonPoint.properties.imgSrc) {
19383
+ const trekImg = leafletSrc.DomUtil.create('img');
19384
+ trekImg.src = geoJsonPoint.properties.imgSrc;
19385
+ trekDeparturePopup.appendChild(trekImg);
19386
+ }
19387
+ const trekName = leafletSrc.DomUtil.create('div');
19388
+ trekName.innerHTML = geoJsonPoint.properties.name;
19389
+ trekName.className = 'trek-name';
19390
+ trekDeparturePopup.appendChild(trekName);
19391
+ const trekButton = leafletSrc.DomUtil.create('button');
19392
+ trekButton.innerHTML = 'Afficher le détail';
19393
+ trekButton.className = 'trek-button';
19394
+ trekButton.onclick = () => this.trekCardPress.emit(geoJsonPoint.properties.id);
19395
+ trekDeparturePopup.appendChild(trekButton);
19396
+ layer.bindPopup(trekDeparturePopup, { interactive: true, autoPan: false, closeButton: false }).openPopup();
19397
+ });
19398
+ layer.on('mouseout', () => {
19399
+ if (!this.trekPopupIsOpen) {
19400
+ store.state.selectedTrekId = null;
19401
+ this.hideTrekLine();
19402
+ this.removeSelectedCurrentTrek();
19403
+ }
19404
+ });
19405
+ layer.on('popupopen', () => {
19406
+ this.trekPopupIsOpen = Boolean(store.state.selectedTrekId);
19407
+ });
19408
+ layer.on('popupclose', () => {
19409
+ if (store.state.selectedTrekId) {
19410
+ this.trekPopupIsOpen = false;
19411
+ store.state.selectedTrekId = null;
19412
+ this.hideTrekLine();
19413
+ this.removeSelectedCurrentTrek();
19414
+ }
19415
+ });
19416
+ },
19417
+ }).addTo(this.map);
19418
+ }
19419
+ removeSelectedCurrentTrek() {
19420
+ store.state.selectedTrekId = null;
19421
+ this.selectedCurrentTrekLayer && this.map.removeLayer(this.selectedCurrentTrekLayer);
19422
+ this.selectedCurrentTrekLayer = null;
19423
+ }
19255
19424
  handleLayersControlEvent() {
19256
19425
  const userLayersState = this.layersControl._layerControlInputs;
19257
19426
  userLayersState.forEach((userLayerState) => {
19258
- userLayerState.onchange = event => {
19259
- this.userLayersState[userLayerState.layerId] = event.target.checked;
19260
- };
19427
+ if (this.layersControl._layers.find(layer => layer.layer._leaflet_id === userLayerState.layerId).overlay) {
19428
+ userLayerState.onchange = event => {
19429
+ this.userLayersState[userLayerState.layerId] = event.target.checked;
19430
+ };
19431
+ }
19261
19432
  });
19262
19433
  }
19263
19434
  removeTrek() {
19264
19435
  if (this.layersControl) {
19265
- this.map.removeControl(this.layersControl);
19266
- this.layersControl = null;
19436
+ if (!this.layersControl._layers.some(layer => !layer.overlay)) {
19437
+ this.map.removeControl(this.layersControl);
19438
+ this.layersControl = null;
19439
+ }
19440
+ else {
19441
+ this.layersControl._layers
19442
+ .filter(layer => layer.overlay)
19443
+ .forEach(layer => {
19444
+ this.layersControl.removeLayer(layer.layer);
19445
+ });
19446
+ }
19267
19447
  }
19268
19448
  if (this.elevationControl) {
19269
19449
  this.elevationControl.clear();
@@ -19300,8 +19480,30 @@ const GrwMap = class {
19300
19480
  store.reset();
19301
19481
  }
19302
19482
  }
19483
+ showTrekLine(id) {
19484
+ getTrekGeometry(id).then(response => {
19485
+ const currentTrekFeature = {
19486
+ type: 'Feature',
19487
+ geometry: response.geometry,
19488
+ properties: {},
19489
+ };
19490
+ this.currentTrekLayer = leafletSrc.geoJSON(currentTrekFeature, {
19491
+ style: () => ({
19492
+ color: this.colorTrekLine,
19493
+ }),
19494
+ interactive: false,
19495
+ }).addTo(this.map);
19496
+ });
19497
+ }
19498
+ hideTrekLine() {
19499
+ if (this.currentTrekLayer) {
19500
+ this.map.removeLayer(this.currentTrekLayer);
19501
+ this.currentTrekLayer = null;
19502
+ }
19503
+ }
19303
19504
  render() {
19304
19505
  const layersImageSrc = index.getAssetPath(`${''}assets/layers.svg`);
19506
+ const contractImageSrc = index.getAssetPath(`${''}assets/contract.svg`);
19305
19507
  return (index.h(index.Host, { style: {
19306
19508
  '--color-primary-app': this.colorPrimaryApp,
19307
19509
  '--color-on-surface': this.colorOnSurface,
@@ -19311,6 +19513,7 @@ const GrwMap = class {
19311
19513
  '--color-poi-icon': this.colorPoiIcon,
19312
19514
  '--color-trek-line': this.colorTrekLine,
19313
19515
  '--layers-image-src': `url(${layersImageSrc})`,
19516
+ '--contract-image-src': `url(${contractImageSrc})`,
19314
19517
  '--map-bottom-space-height': this.isLargeView ? '0px' : '70px',
19315
19518
  } }, index.h("div", { id: "map", style: {}, class: store.state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), store.state.currentTrek && (index.h("div", null, index.h("div", { id: "elevation", ref: el => (this.elevationRef = el) }), index.h("div", { class: "map-bottom-space" }))), !this.mapIsReady && (index.h("div", { class: "map-loader-container" }, index.h("span", { class: "loader" })))));
19316
19519
  }
@@ -19333,24 +19536,6 @@ const GrwSearch = class {
19333
19536
  };
19334
19537
  GrwSearch.style = grwSearchCss;
19335
19538
 
19336
- const grwSelectLanguageCss = ".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}";
19337
-
19338
- const GrwSelectLanguage = class {
19339
- constructor(hostRef) {
19340
- index.registerInstance(this, hostRef);
19341
- }
19342
- handleSelect(event) {
19343
- store.state.treks = null;
19344
- store.state.currentTreks = null;
19345
- store.state.currentTrek = null;
19346
- store.state.language = event.target.value;
19347
- }
19348
- render() {
19349
- return (index.h(index.Host, null, index.h("span", { class: "material-symbols material-symbols-outlined margin-right-icon" }, "translate"), index.h("select", { onInput: event => this.handleSelect(event), name: "languages", id: "language-select" }, store.state.languages.map(language => (index.h("option", { selected: language === store.state.language, value: language.toLocaleLowerCase() }, language.toLocaleUpperCase()))))));
19350
- }
19351
- };
19352
- GrwSelectLanguage.style = grwSelectLanguageCss;
19353
-
19354
19539
  /* eslint-disable consistent-return */
19355
19540
  function Mousewheel({
19356
19541
  swiper,
@@ -20513,10 +20698,9 @@ const GrwTreksProvider = class {
20513
20698
  exports.grw_filter = GrwFilter;
20514
20699
  exports.grw_map = GrwMap;
20515
20700
  exports.grw_search = GrwSearch;
20516
- exports.grw_select_language = GrwSelectLanguage;
20517
20701
  exports.grw_trek_detail = GrwTrekDetail;
20518
20702
  exports.grw_trek_provider = GrwTrekProvider;
20519
20703
  exports.grw_treks_list = GrwTreksList;
20520
20704
  exports.grw_treks_provider = GrwTreksProvider;
20521
20705
 
20522
- //# sourceMappingURL=grw-filter_8.cjs.entry.js.map
20706
+ //# sourceMappingURL=grw-filter_7.cjs.entry.js.map