@geotrekce/geotrek-rando-widget 0.9.0 → 0.10.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 (256) 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 +1 -1
  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-common-button_21.cjs.entry.js +300 -319
  8. package/dist/cjs/grw-common-button_21.cjs.entry.js.br +0 -0
  9. package/dist/cjs/grw-common-button_21.cjs.entry.js.gz +0 -0
  10. package/dist/cjs/grw-common-button_21.cjs.entry.js.map +1 -1
  11. package/dist/cjs/grw-filter.cjs.entry.js +1 -1
  12. package/dist/cjs/grw-filter.cjs.entry.js.br +0 -0
  13. package/dist/cjs/grw-filter.cjs.entry.js.gz +0 -0
  14. package/dist/cjs/grw-information-desk_6.cjs.entry.js +10 -10
  15. package/dist/cjs/grw-information-desk_6.cjs.entry.js.br +0 -0
  16. package/dist/cjs/grw-information-desk_6.cjs.entry.js.gz +0 -0
  17. package/dist/cjs/grw-information-desk_6.cjs.entry.js.map +1 -1
  18. package/dist/cjs/loader.cjs.js +1 -1
  19. package/dist/cjs/loader.cjs.js.br +0 -0
  20. package/dist/cjs/loader.cjs.js.gz +0 -0
  21. package/dist/cjs/{utils-0b78387c.js → pagination-97be50dd.js} +6230 -1942
  22. package/dist/cjs/pagination-97be50dd.js.br +0 -0
  23. package/dist/cjs/pagination-97be50dd.js.gz +0 -0
  24. package/dist/cjs/pagination-97be50dd.js.map +1 -0
  25. package/dist/cjs/utils-242dc247.js +1304 -0
  26. package/dist/cjs/utils-242dc247.js.br +0 -0
  27. package/dist/cjs/utils-242dc247.js.gz +0 -0
  28. package/dist/cjs/utils-242dc247.js.map +1 -0
  29. package/dist/cjs/web-12ec7d35.js +602 -0
  30. package/dist/cjs/web-12ec7d35.js.br +0 -0
  31. package/dist/cjs/web-12ec7d35.js.gz +0 -0
  32. package/dist/cjs/web-12ec7d35.js.map +1 -0
  33. package/dist/collection/components/grw-map/grw-map.css +7 -0
  34. package/dist/collection/components/grw-map/grw-map.css.br +0 -0
  35. package/dist/collection/components/grw-map/grw-map.css.gz +0 -0
  36. package/dist/collection/components/grw-map/grw-map.js +27 -29
  37. package/dist/collection/components/grw-map/grw-map.js.br +0 -0
  38. package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
  39. package/dist/collection/components/grw-map/grw-map.js.map +1 -1
  40. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +37 -74
  41. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
  42. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
  43. package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
  44. package/dist/collection/services/grw-db.service.js +14 -6
  45. package/dist/collection/services/grw-db.service.js.br +0 -0
  46. package/dist/collection/services/grw-db.service.js.gz +0 -0
  47. package/dist/collection/services/grw-db.service.js.map +1 -1
  48. package/dist/collection/store/grw-touristic-event-provider.js +3 -3
  49. package/dist/collection/store/grw-touristic-event-provider.js.br +0 -0
  50. package/dist/collection/store/grw-touristic-event-provider.js.gz +0 -0
  51. package/dist/collection/store/grw-touristic-event-provider.js.map +1 -1
  52. package/dist/collection/store/grw-trek-provider.js +7 -7
  53. package/dist/collection/store/grw-trek-provider.js.br +0 -0
  54. package/dist/collection/store/grw-trek-provider.js.gz +0 -0
  55. package/dist/collection/store/grw-trek-provider.js.map +1 -1
  56. package/dist/collection/store/grw-treks-provider.js +2 -1
  57. package/dist/collection/store/grw-treks-provider.js.br +0 -0
  58. package/dist/collection/store/grw-treks-provider.js.gz +0 -0
  59. package/dist/collection/store/grw-treks-provider.js.map +1 -1
  60. package/dist/collection/utils/utils.js +31 -18
  61. package/dist/collection/utils/utils.js.br +0 -0
  62. package/dist/collection/utils/utils.js.gz +0 -0
  63. package/dist/collection/utils/utils.js.map +1 -1
  64. package/dist/esm/geotrek-rando-widget.js +1 -1
  65. package/dist/esm/geotrek-rando-widget.js.br +0 -0
  66. package/dist/esm/geotrek-rando-widget.js.gz +0 -0
  67. package/dist/esm/grw-app.entry.js +1 -1
  68. package/dist/esm/grw-app.entry.js.br +0 -0
  69. package/dist/esm/grw-app.entry.js.gz +0 -0
  70. package/dist/esm/grw-common-button_21.entry.js +73 -92
  71. package/dist/esm/grw-common-button_21.entry.js.br +0 -0
  72. package/dist/esm/grw-common-button_21.entry.js.gz +0 -0
  73. package/dist/esm/grw-common-button_21.entry.js.map +1 -1
  74. package/dist/esm/grw-filter.entry.js +1 -1
  75. package/dist/esm/grw-filter.entry.js.br +0 -0
  76. package/dist/esm/grw-filter.entry.js.gz +0 -0
  77. package/dist/esm/grw-information-desk_6.entry.js +2 -2
  78. package/dist/esm/grw-information-desk_6.entry.js.br +0 -0
  79. package/dist/esm/grw-information-desk_6.entry.js.gz +0 -0
  80. package/dist/esm/loader.js +1 -1
  81. package/dist/esm/loader.js.br +0 -0
  82. package/dist/esm/loader.js.gz +0 -0
  83. package/dist/esm/{utils-340f58bf.js → pagination-a1f80e7b.js} +6212 -1924
  84. package/dist/esm/pagination-a1f80e7b.js.br +0 -0
  85. package/dist/esm/pagination-a1f80e7b.js.gz +0 -0
  86. package/dist/esm/pagination-a1f80e7b.js.map +1 -0
  87. package/dist/esm/utils-aa618935.js +1277 -0
  88. package/dist/esm/utils-aa618935.js.br +0 -0
  89. package/dist/esm/utils-aa618935.js.gz +0 -0
  90. package/dist/esm/utils-aa618935.js.map +1 -0
  91. package/dist/esm/web-286dd037.js +600 -0
  92. package/dist/esm/web-286dd037.js.br +0 -0
  93. package/dist/esm/web-286dd037.js.gz +0 -0
  94. package/dist/esm/web-286dd037.js.map +1 -0
  95. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  96. package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
  97. package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
  98. package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
  99. package/dist/esm-es5/grw-app.entry.js +1 -1
  100. package/dist/esm-es5/grw-app.entry.js.br +0 -0
  101. package/dist/esm-es5/grw-app.entry.js.gz +0 -0
  102. package/dist/esm-es5/grw-common-button_21.entry.js +3 -3
  103. package/dist/esm-es5/grw-common-button_21.entry.js.br +0 -0
  104. package/dist/esm-es5/grw-common-button_21.entry.js.gz +0 -0
  105. package/dist/esm-es5/grw-common-button_21.entry.js.map +1 -1
  106. package/dist/esm-es5/grw-filter.entry.js +1 -1
  107. package/dist/esm-es5/grw-filter.entry.js.br +0 -0
  108. package/dist/esm-es5/grw-filter.entry.js.gz +0 -0
  109. package/dist/esm-es5/grw-information-desk_6.entry.js +1 -1
  110. package/dist/esm-es5/grw-information-desk_6.entry.js.br +0 -0
  111. package/dist/esm-es5/grw-information-desk_6.entry.js.gz +0 -0
  112. package/dist/esm-es5/loader.js +1 -1
  113. package/dist/esm-es5/loader.js.br +0 -0
  114. package/dist/esm-es5/loader.js.gz +0 -0
  115. package/dist/esm-es5/loader.js.map +1 -1
  116. package/dist/esm-es5/pagination-a1f80e7b.js +6 -0
  117. package/dist/esm-es5/pagination-a1f80e7b.js.br +0 -0
  118. package/dist/esm-es5/pagination-a1f80e7b.js.gz +0 -0
  119. package/dist/esm-es5/pagination-a1f80e7b.js.map +1 -0
  120. package/dist/esm-es5/utils-aa618935.js +3 -0
  121. package/dist/esm-es5/utils-aa618935.js.br +0 -0
  122. package/dist/esm-es5/utils-aa618935.js.gz +0 -0
  123. package/dist/esm-es5/utils-aa618935.js.map +1 -0
  124. package/dist/esm-es5/web-286dd037.js +2 -0
  125. package/dist/esm-es5/web-286dd037.js.br +0 -0
  126. package/dist/esm-es5/web-286dd037.js.gz +0 -0
  127. package/dist/esm-es5/web-286dd037.js.map +1 -0
  128. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  129. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
  130. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
  131. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
  132. package/dist/geotrek-rando-widget/{p-822ce973.system.entry.js → p-02f880ee.system.entry.js} +2 -2
  133. package/dist/geotrek-rando-widget/p-02f880ee.system.entry.js.br +0 -0
  134. package/dist/geotrek-rando-widget/p-02f880ee.system.entry.js.gz +0 -0
  135. package/dist/geotrek-rando-widget/p-06398314.system.entry.js +10 -0
  136. package/dist/geotrek-rando-widget/p-06398314.system.entry.js.br +0 -0
  137. package/dist/geotrek-rando-widget/p-06398314.system.entry.js.gz +0 -0
  138. package/dist/geotrek-rando-widget/p-06398314.system.entry.js.map +1 -0
  139. package/dist/geotrek-rando-widget/p-16908b8a.system.js +1 -1
  140. package/dist/geotrek-rando-widget/p-16908b8a.system.js.br +0 -0
  141. package/dist/geotrek-rando-widget/p-16908b8a.system.js.gz +0 -0
  142. package/dist/geotrek-rando-widget/p-16908b8a.system.js.map +1 -1
  143. package/dist/geotrek-rando-widget/p-2606c456.entry.js +2 -0
  144. package/dist/geotrek-rando-widget/p-2606c456.entry.js.br +0 -0
  145. package/dist/geotrek-rando-widget/p-2606c456.entry.js.gz +0 -0
  146. package/dist/geotrek-rando-widget/{p-fb3ef86e.entry.js.map → p-2606c456.entry.js.map} +1 -1
  147. package/dist/geotrek-rando-widget/{p-f68b1f0b.system.entry.js → p-55987f93.system.entry.js} +2 -2
  148. package/dist/geotrek-rando-widget/p-55987f93.system.entry.js.br +0 -0
  149. package/dist/geotrek-rando-widget/p-55987f93.system.entry.js.gz +0 -0
  150. package/dist/geotrek-rando-widget/{p-87e6ff52.system.entry.js → p-6887f134.system.entry.js} +2 -2
  151. package/dist/geotrek-rando-widget/p-6887f134.system.entry.js.br +0 -0
  152. package/dist/geotrek-rando-widget/p-6887f134.system.entry.js.gz +0 -0
  153. package/dist/geotrek-rando-widget/p-763de451.js +3 -0
  154. package/dist/geotrek-rando-widget/p-763de451.js.br +0 -0
  155. package/dist/geotrek-rando-widget/p-763de451.js.gz +0 -0
  156. package/dist/geotrek-rando-widget/p-763de451.js.map +1 -0
  157. package/dist/geotrek-rando-widget/p-7eefb878.js +2 -0
  158. package/dist/geotrek-rando-widget/p-7eefb878.js.br +0 -0
  159. package/dist/geotrek-rando-widget/p-7eefb878.js.gz +0 -0
  160. package/dist/geotrek-rando-widget/p-7eefb878.js.map +1 -0
  161. package/dist/geotrek-rando-widget/{p-63a66834.entry.js → p-932b1065.entry.js} +2 -2
  162. package/dist/geotrek-rando-widget/p-932b1065.entry.js.br +0 -0
  163. package/dist/geotrek-rando-widget/p-932b1065.entry.js.gz +0 -0
  164. package/dist/geotrek-rando-widget/{p-5bdd554d.entry.js → p-970ddc91.entry.js} +2 -2
  165. package/dist/geotrek-rando-widget/p-970ddc91.entry.js.br +0 -0
  166. package/dist/geotrek-rando-widget/p-970ddc91.entry.js.gz +0 -0
  167. package/dist/geotrek-rando-widget/p-cab075c5.entry.js +10 -0
  168. package/dist/geotrek-rando-widget/p-cab075c5.entry.js.br +0 -0
  169. package/dist/geotrek-rando-widget/p-cab075c5.entry.js.gz +0 -0
  170. package/dist/geotrek-rando-widget/p-cab075c5.entry.js.map +1 -0
  171. package/dist/geotrek-rando-widget/p-cd67f7ca.system.js +2 -0
  172. package/dist/geotrek-rando-widget/p-cd67f7ca.system.js.br +0 -0
  173. package/dist/geotrek-rando-widget/p-cd67f7ca.system.js.gz +0 -0
  174. package/dist/geotrek-rando-widget/p-cd67f7ca.system.js.map +1 -0
  175. package/dist/geotrek-rando-widget/p-db0ae9eb.system.js +6 -0
  176. package/dist/geotrek-rando-widget/p-db0ae9eb.system.js.br +0 -0
  177. package/dist/geotrek-rando-widget/p-db0ae9eb.system.js.gz +0 -0
  178. package/dist/geotrek-rando-widget/p-db0ae9eb.system.js.map +1 -0
  179. package/dist/geotrek-rando-widget/p-f2d6abb7.system.js +3 -0
  180. package/dist/geotrek-rando-widget/p-f2d6abb7.system.js.br +0 -0
  181. package/dist/geotrek-rando-widget/p-f2d6abb7.system.js.gz +0 -0
  182. package/dist/geotrek-rando-widget/p-f2d6abb7.system.js.map +1 -0
  183. package/dist/geotrek-rando-widget/p-f6d418cf.js +6 -0
  184. package/dist/geotrek-rando-widget/p-f6d418cf.js.br +0 -0
  185. package/dist/geotrek-rando-widget/p-f6d418cf.js.gz +0 -0
  186. package/dist/geotrek-rando-widget/p-f6d418cf.js.map +1 -0
  187. package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +0 -1
  188. package/dist/types/components.d.ts +2 -4
  189. package/dist/types/services/grw-db.service.d.ts +3 -7
  190. package/dist/types/store/grw-touristic-event-provider.d.ts +1 -1
  191. package/dist/types/utils/utils.d.ts +2 -2
  192. package/package.json +7 -1
  193. package/dist/cjs/pagination-55c84e32.js +0 -4702
  194. package/dist/cjs/pagination-55c84e32.js.br +0 -0
  195. package/dist/cjs/pagination-55c84e32.js.gz +0 -0
  196. package/dist/cjs/pagination-55c84e32.js.map +0 -1
  197. package/dist/cjs/utils-0b78387c.js.br +0 -0
  198. package/dist/cjs/utils-0b78387c.js.gz +0 -0
  199. package/dist/cjs/utils-0b78387c.js.map +0 -1
  200. package/dist/esm/pagination-ee795571.js +0 -4682
  201. package/dist/esm/pagination-ee795571.js.br +0 -0
  202. package/dist/esm/pagination-ee795571.js.gz +0 -0
  203. package/dist/esm/pagination-ee795571.js.map +0 -1
  204. package/dist/esm/utils-340f58bf.js.br +0 -0
  205. package/dist/esm/utils-340f58bf.js.gz +0 -0
  206. package/dist/esm/utils-340f58bf.js.map +0 -1
  207. package/dist/esm-es5/pagination-ee795571.js +0 -2
  208. package/dist/esm-es5/pagination-ee795571.js.br +0 -0
  209. package/dist/esm-es5/pagination-ee795571.js.gz +0 -0
  210. package/dist/esm-es5/pagination-ee795571.js.map +0 -1
  211. package/dist/esm-es5/utils-340f58bf.js +0 -6
  212. package/dist/esm-es5/utils-340f58bf.js.br +0 -0
  213. package/dist/esm-es5/utils-340f58bf.js.gz +0 -0
  214. package/dist/esm-es5/utils-340f58bf.js.map +0 -1
  215. package/dist/geotrek-rando-widget/p-22137796.system.entry.js +0 -10
  216. package/dist/geotrek-rando-widget/p-22137796.system.entry.js.br +0 -0
  217. package/dist/geotrek-rando-widget/p-22137796.system.entry.js.gz +0 -0
  218. package/dist/geotrek-rando-widget/p-22137796.system.entry.js.map +0 -1
  219. package/dist/geotrek-rando-widget/p-2d0750a1.system.js +0 -6
  220. package/dist/geotrek-rando-widget/p-2d0750a1.system.js.br +0 -0
  221. package/dist/geotrek-rando-widget/p-2d0750a1.system.js.gz +0 -0
  222. package/dist/geotrek-rando-widget/p-2d0750a1.system.js.map +0 -1
  223. package/dist/geotrek-rando-widget/p-5bdd554d.entry.js.br +0 -0
  224. package/dist/geotrek-rando-widget/p-5bdd554d.entry.js.gz +0 -0
  225. package/dist/geotrek-rando-widget/p-63a66834.entry.js.br +0 -0
  226. package/dist/geotrek-rando-widget/p-63a66834.entry.js.gz +0 -0
  227. package/dist/geotrek-rando-widget/p-822ce973.system.entry.js.br +0 -0
  228. package/dist/geotrek-rando-widget/p-822ce973.system.entry.js.gz +0 -0
  229. package/dist/geotrek-rando-widget/p-876d6055.entry.js +0 -10
  230. package/dist/geotrek-rando-widget/p-876d6055.entry.js.br +0 -0
  231. package/dist/geotrek-rando-widget/p-876d6055.entry.js.gz +0 -0
  232. package/dist/geotrek-rando-widget/p-876d6055.entry.js.map +0 -1
  233. package/dist/geotrek-rando-widget/p-87e6ff52.system.entry.js.br +0 -0
  234. package/dist/geotrek-rando-widget/p-87e6ff52.system.entry.js.gz +0 -0
  235. package/dist/geotrek-rando-widget/p-af48a969.system.js +0 -2
  236. package/dist/geotrek-rando-widget/p-af48a969.system.js.br +0 -0
  237. package/dist/geotrek-rando-widget/p-af48a969.system.js.gz +0 -0
  238. package/dist/geotrek-rando-widget/p-af48a969.system.js.map +0 -1
  239. package/dist/geotrek-rando-widget/p-e64d7d72.js +0 -6
  240. package/dist/geotrek-rando-widget/p-e64d7d72.js.br +0 -0
  241. package/dist/geotrek-rando-widget/p-e64d7d72.js.gz +0 -0
  242. package/dist/geotrek-rando-widget/p-e64d7d72.js.map +0 -1
  243. package/dist/geotrek-rando-widget/p-edff804d.js +0 -2
  244. package/dist/geotrek-rando-widget/p-edff804d.js.br +0 -0
  245. package/dist/geotrek-rando-widget/p-edff804d.js.gz +0 -0
  246. package/dist/geotrek-rando-widget/p-edff804d.js.map +0 -1
  247. package/dist/geotrek-rando-widget/p-f68b1f0b.system.entry.js.br +0 -0
  248. package/dist/geotrek-rando-widget/p-f68b1f0b.system.entry.js.gz +0 -0
  249. package/dist/geotrek-rando-widget/p-fb3ef86e.entry.js +0 -2
  250. package/dist/geotrek-rando-widget/p-fb3ef86e.entry.js.br +0 -0
  251. package/dist/geotrek-rando-widget/p-fb3ef86e.entry.js.gz +0 -0
  252. /package/dist/geotrek-rando-widget/{p-822ce973.system.entry.js.map → p-02f880ee.system.entry.js.map} +0 -0
  253. /package/dist/geotrek-rando-widget/{p-f68b1f0b.system.entry.js.map → p-55987f93.system.entry.js.map} +0 -0
  254. /package/dist/geotrek-rando-widget/{p-87e6ff52.system.entry.js.map → p-6887f134.system.entry.js.map} +0 -0
  255. /package/dist/geotrek-rando-widget/{p-63a66834.entry.js.map → p-932b1065.entry.js.map} +0 -0
  256. /package/dist/geotrek-rando-widget/{p-5bdd554d.entry.js.map → p-970ddc91.entry.js.map} +0 -0
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-729c3ba1.js');
6
6
  const i18n = require('./i18n-f70aaf31.js');
7
- const utils = require('./utils-0b78387c.js');
8
- const pagination = require('./pagination-55c84e32.js');
7
+ const utils = require('./utils-242dc247.js');
8
+ const pagination = require('./pagination-97be50dd.js');
9
9
 
10
10
  const grwCommonButtonCss = ".material-symbols{font-family:\"Material Symbols Outlined\"}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.common-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;color:var(--color-on-primary-container);background-color:var(--color-primary-container);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1px;font-family:var(--font-family);font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s}.common-button .common-button-icon{font-size:18px}";
11
11
  const GrwCommonButtonStyle0 = grwCommonButtonCss;
@@ -152,7 +152,7 @@ You can find the project at: https://github.com/domoritz/leaflet-locatecontrol
152
152
  if (typeof window !== "undefined" && window.L) {
153
153
  module.exports = factory(L);
154
154
  } else {
155
- module.exports = factory(utils.leafletSrc.exports);
155
+ module.exports = factory(pagination.leafletSrc.exports);
156
156
  }
157
157
  }
158
158
 
@@ -1090,7 +1090,7 @@ var Leaflet_i18n = {exports: {}};
1090
1090
 
1091
1091
  // define an AMD module that relies on 'leaflet'
1092
1092
  {
1093
- module.exports = factory(utils.leafletSrc.exports);
1093
+ module.exports = factory(pagination.leafletSrc.exports);
1094
1094
  }
1095
1095
 
1096
1096
  // attach your plugin to the global 'L' variable
@@ -1127,7 +1127,7 @@ var Leaflet_i18n = {exports: {}};
1127
1127
  var leafletElevation_min = {exports: {}};
1128
1128
 
1129
1129
  (function (module, exports) {
1130
- !function(t){t();}((function(){!function(t,e){(module.exports=t(utils.leafletSrc.exports)),void 0!==e&&e.L&&t(e.L);}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,a){t.locales[e]=t.Util.extend({},t.locales[e],a);},t.setLocale=function(e){t.locale=e;},t.i18n=t._=function(e,a){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,a);}catch(t){}return e}}),window);var t=6e4,e=60*t,a=24*e;function i(i){var n=Math.floor(i/a),r=Math.floor((i-n*a)/e),o=Math.floor((i-n*a-r*e)/t),s=Math.round((i-n*a-r*e-o*t)/1e3);return 60===s&&(o++,s=0),60===o&&(r++,o=0),24===r&&(n++,r=0),(n?n+"d ":"")+r.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function n(t,e){var a=m("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),i=document.body;i.appendChild(a),a.click(),i.removeChild(a);}function r(t,e,a){return !1===e?Promise.resolve():a instanceof Promise?a:new Promise((function(e,a){var i=document.createElement("script");i.addEventListener("load",e,{once:!0}),i.src=t,document.head.appendChild(i);}))}function o(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var a=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(a),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(a),t.globalAlpha=1,t.closePath();}function s(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}));}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}));}function h(t,e,a){return (a?l:c).call(null,t,e)}function d(t,e,a){e&&c(t,e),a&&l(t,a);}function u(t,e,a){return void 0===a?L.DomUtil.getStyle(t,e):t.style.setProperty(e,a)}function _(t,e,a,i){return u(t,e,i?a:"")}function p(t,e,a,i){return t[i?"on":"off"](e,a)}function m(t,e,a,i){var n=L.DomUtil.create(t,e||"");return a&&v(n,a),i&&f(i,n),n}function f(t,e){return t.appendChild(e)}function g(t,e,a){return t.insertAdjacentElement(a,e)}function v(t,e){for(var a in e)t.setAttribute(a,e[a]);}function y(t,e){return (e||document).querySelector(t)}var x=L.DomEvent.on,b=L.DomEvent.off,k=L.DomUtil.hasClass;function w(){return Math.random().toString(36).substr(2,9)}function M(t,e){for(var a in t)e(t[a],a);}var C=Object.freeze({__proto__:null,formatTime:i,saveFile:n,lazyLoader:r,drawCanvas:o,clamp:s,addClass:l,removeClass:c,toggleClass:h,replaceClass:d,style:u,toggleStyle:_,toggleEvent:p,create:m,append:f,insert:g,setAttributes:v,select:y,on:x,off:b,hasClass:k,randomId:w,each:M}),A={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"}},S=function(t){var e=t.height,a=t.xAttr,i=t.yAttr,n=t.scaleX,r=t.scaleY,o=t.interpolation,s=void 0===o?"curveLinear":o;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(t){return t.xDiagCoord=n(t[a])})).y0(e).y1((function(t){return r(t[i])}))},z=function(t){var e=t.name,a=t.color,i=t.strokeColor,n=t.strokeOpacity,r=t.fillOpacity,o=d3.create("svg:path");return e&&o.classed(e,!0),o.style("pointer-events","none"),o.attr("fill",a||"#3366CC").attr("stroke",i||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",r||"0.8"),o},D=function(t){var e=t.type,a=void 0===e?"axis":e,i=t.tickSize,n=void 0===i?6:i,r=t.tickPadding,o=void 0===r?3:r,s=t.position,l=t.height,c=t.width,h=t.axis,d=t.scale,u=t.ticks,_=t.tickFormat,p=t.label,m=t.labelX,f=t.labelY,g=t.name,v=void 0===g?"":g,y=t.onAxisMount;return function(t){var e=0,i=0;"bottom"==s&&(i=l),"right"==s&&(e=c),"x"==h&&"grid"==a?n=-l:"y"==h&&"grid"==a&&(n=-c);var r=d3["axis"+s.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(d).ticks(u).tickPadding(o).tickSize(n).tickFormat(_),g=t.append("g").attr("class",[h,a,s,v].join(" ")).attr("transform","translate("+e+","+i+")").call(r);return p&&g.append("svg:text").attr("x",m).attr("y",f).text(p),y&&g.call(y),g}},F=function(t){return t.type="grid",D(t)},E=function(t){var e=t.theme,a=t.xCoord,i=void 0===a?0:a,n=t.yCoord,r=void 0===n?0:n,o=t.labels,s=void 0===o?{}:o,l=t.item,c=void 0===l?{}:l,h=t.length,d=void 0===h?0:h;return function(t){t.attr("class","height-focus-group");var a,n=t.select(".height-focus.line"),o=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),o.node()||(o=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(i)||isNaN(r)||(o.attr("class",e+" height-focus circle-lower").attr("transform","translate("+i+","+r+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",i).attr("x2",i).attr("y1",r).attr("y2",d),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",i+5).attr("y",d),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(a=l.select(".height-focus-"+s[t].name)).size()||(a=l.append("svg:tspan").attr("class","height-focus-"+s[t].name).attr("dy","1.5em")),a.text("function"!=typeof s[t].value?s[t].value:s[t].value(c));})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",i+5)),t}},T=function(t){var e=t.name,a=t.label,i=t.width,n=t.height,r=t.margins,o=void 0===r?{}:r,s=t.color,l=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",i/2-50).attr("y",n+o.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(a||e)).attr("x",i/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+o.bottom/2).attr("dy","0.75em"),t}},I=function(t){var e=t.xCoord,a=t.yCoord,i=t.width,n=t.height,r=t.labels,o=void 0===r?{}:r,s=t.item,l=void 0===s?{}:s;return function(t){var r=t.select(".mouse-focus-line"),s=t.select(".mouse-focus-label");r.node()||(r=t.append("svg:line")),s.node()||(s=t.append("g"));var c=s.select(".mouse-focus-label-rect"),h=s.select(".mouse-focus-label-text");c.node()||(c=s.append("svg:rect")),h.node()||(h=s.append("svg:text"));var d,u=0,_=0,p={width:0,height:0};try{p=h.node().getBBox();}catch(e){return t}return e&&(u=e+(e<i/2?10:-p.width-10)),a&&(_=Math.max(a-p.height,L.Browser.webkit?0:-1/0)),r.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),s.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",u-5).attr("y",_-5).attr("width",p.width+10).attr("height",p.height+10).attr("rx",3).attr("ry",3),h.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",_),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(d=h.select(".mouse-focus-label-"+o[t].name)).size()||(d=h.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+o[t].name).attr("dy","1.5em")),d.text("function"!=typeof o[t].value?o[t].value:o[t].value(l));})),h.select("tspan").attr("dy","1em"),h.selectAll("tspan").attr("x",u),t}},O=function(t){var e=t.height,a=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"}));var i=t.selectAll(".horizontal-drag-rect").data([{w:a}]),n=t.selectAll(".horizontal-drag-line").data([{w:a}]),r=t.selectAll(".horizontal-drag-label").data([{w:a-8}]),o=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:a+7,y:0,angle:-90,size:50}]);return i.exit().remove(),n.exit().remove(),r.exit().remove(),o.exit().remove(),i.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(i).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),r.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(r).attr("x",(function(t){return t.w})),o.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(o).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return "translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},N=function(t){var e=t.point,a=t.height,i=t.width,n=t.x,r=t.y;return function(t){return isNaN(n)||isNaN(r)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:r}).attr("class",(function(t){return "point "+t.pos})).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-r,bottom:a-r}[e.position],x2:{left:-n,right:i-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},P=function(t){var e=t.min,a=t.max,i=t.attr,n=t.name,r=t.forceBounds,o=t.scale;return function(t){i=i||n,o&&o.attr&&(i=o.attr);var s=t&&t.length?d3.extent(t,(function(t){return t[i]})):[0,1];return void 0!==e&&(e<s[0]||r)&&(s[0]=e),void 0!==a&&(a>s[1]||r)&&(s[1]=a),s}},B=function(t){var e=t.axis;return function(t,a){return "x"==e?[0,t]:"y"==e?[a,0]:void 0}},G=function(t){var e=t.data,a=t.attr,i=t.min,n=t.max,r=t.forceBounds,o=t.range;return d3.scaleLinear().range(o).domain(P({min:i,max:n,attr:a,forceBounds:r})(e))},H=function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=(e-n.left-n.right),o=a-n.top-n.bottom,s=d3.create("svg:svg").attr("class","background"),l=s.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},h=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),d=h.append("svg:rect").attr("class","zoom").attr("fill","white"),u=c.area.append("svg:foreignObject").attr("mask","url(#"+h.attr("id")+")"),_=u.append("xhtml:canvas").attr("class","canvas-plot"),p=_.node().getContext("2d");c.tooltip.call(I({xCoord:0,yCoord:0,height:o,width:r,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),f={mask:h,canvas:_,context:p,brush:m},g={svg:s,g:l,panes:c,utils:f,scale:function(t){return {x:G(t.x),y:G(t.y)}},_resize:function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=t.ruler,o=e-n.left-n.right,h=a-n.top-n.bottom;s.attr("viewBox","0 0 ".concat(e," ").concat(a)).attr("width",e).attr("height",a),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&_.style("transform","translate("+n.left+"px,"+n.top+"px)"),d.attr("x",0).attr("y",0).attr("width",o).attr("height",h),u.attr("width",o).attr("height",h),_.attr("width",o).attr("height",h),r&&c.ruler.call(O({height:h,width:o})),c.brush.call(m.extent([[0,0],[o,h]])),c.brush.select(".overlay").attr("cursor",null),g._width=o,g._height=h,g.svg.dispatch("resize",{detail:{width:o,height:h}});},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return f[t]}};return g._resize({width:e,height:a,margins:n}),g},X=Object.freeze({__proto__:null,Colors:A,Area:S,Path:z,Axis:D,Grid:F,PositionMarker:E,LegendItem:T,Tooltip:I,Ruler:O,CheckPoint:N,Domain:P,Range:B,Scale:G,Bisect:function(t){var e=t.data,a=void 0===e?[0,1]:e,i=t.scale,n=t.x,r=t.attr;return d3.bisector((function(t){return t[r]})).left(a,i.invert(n))},Chart:H}),U=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var a=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var i=this._chart=H(t);this._container=i.svg;this._grid=i.pane("grid"),this._area=i.pane("area"),this._point=i.pane("point"),this._axis=i.pane("axis"),this._legend=i.pane("legend"),this._tooltip=i.pane("tooltip"),this._ruler=i.pane("ruler"),this._initScale(),this._mask=i.get("mask"),this._context=i.get("context"),this._brush=i.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){a._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return a._maskGaps.push(t.index)}));}));},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove();},_drawPath:function(t){var e=this._paths[t],a=this._props.areas[t];e.datum(this._data).attr("d",S(L.extend({},a,{width:this._width(),height:this._height(),scaleX:this._scales[a.scaleX],scaleY:this._scales[a.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?o(this._context,e):this._area.append((function(){return e.node()})));},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return !0;return !1},_initBrush:function(t){var e=this,a=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var a=e._chart.panes.brush.select(".overlay").node(),i=d3.pointers(t,a)[0][0],n=e._data[e._findIndexForXCoord(i)];e.fire("mouse_move",{item:n,xCoord:i});}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var a=t.selection;if(a){var i=e._findIndexForXCoord(a[0]),n=e._findIndexForXCoord(a[1]);e.fire("dragged",{dragstart:e._data[i],dragend:e._data[n]});}}})).on("brush.update",a),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",a);},_initClipper:function(){var t=this,e=this._container,a=this.options.margins,i=this._zoom;i.scaleExtent([1,10]).extent([[a.left,0],[this._width()-a.right,this._height()]]).translateExtent([[a.left,-1/0],[this._width()-a.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(a){a.sourceEvent&&"mousedown"==a.sourceEvent.type&&e.style("cursor","grabbing"),1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0;})).on("end",(function(a){1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","");})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom");})),e.call(i);},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend();},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var a=e.detail,i=a.path,n=a.legend,r=a.name,o=a.enabled;if(i){var s=y("text",n),l=y("rect",n);_(s,"text-decoration-line","line-through",o),_(l,"fill-opacity","0",o),h(i,"leaflet-hidden",o),t._updateArea(),t.fire("elepath_toggle",{path:i,name:r,legend:n,enabled:o});}}));},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),a=this._drag;a.on("start end",(function(e,a){var i=t._height(),n=t._ruler.data()[0].y;(n>=i||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator();})).on("drag",(function(a,i){var n=t._height(),r=d3.pointers(a,t._area.node())[0][1],o=r>0?r<n?r:n:0,s=t._y.invert(o),l=L.extend(t._ruler.data()[0],{y:o});t._ruler.data([l]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})).classed("active",o<n),t._container.select(".horizontal-drag-label").text(e(s)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:r<n&&r>0?t._findCoordsForY(r):[]});})),this._ruler.call(a);}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude;},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var a=z(t);this._paths[t.name]=a,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:a});},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t;},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,a=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof a){(a=L.extend({data:this._data,forceBounds:e.forceAxisBounds},a)).attr=a.attr||t.name;var i=this._domains[t.name]=P(t),n=this._ranges[t.name]=B(t);a.range=a.range||n(this._width(),this._height()),a.domain=a.domain||i(this._data),this._props.scales[t.name]=a,t.scale=this._scales[t.name]=G(a);}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,a},_registerCheckPoint:function(t){var e,a,i;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],a=this._x(e.dist),i=this._y(e.z)):isNaN(t.dist)||(a=this._x(t.dist),e=this._data[this._findIndexForXCoord(a)],i=this._y(e.z)),this._point.call(N({point:t,width:this._width(),height:this._height(),x:a,y:i})));},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t;},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e);},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,a,i,n=this._props.grids,r=this._props.axes,o={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var l in n)e=L.extend({},o,n[l]),i=F(e),this._grid.call(i);for(var c in r)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},s,r[c]),a=D(e),this._axis.call(a));this._axis.selectAll(".y.axis.right").each((function(t,e,a){var i=d3.select(a[e]),n=i.attr("transform"),r=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");i.attr("transform","translate("+(+r[0]+40*e)+","+r[1]+")"),e>0&&(i.select(":scope > path").attr("opacity",.25),i.selectAll(":scope > .tick line").attr("opacity",.75));}));},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,a){if(!(a>=t._maskGaps.length-2)){var i=t._data[t._maskGaps[a]],n=t._data[t._maskGaps[a+1]],r=t._x(t._data[t._findIndexForLatLng(i.latlng)].dist),o=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",r).attr("y",0).attr("width",o-r).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black");}}));},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,a=this._props.legendItems;for(var i in this._legend.selectAll("g").remove(),a)e=T(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},a[i])),this._legend.append("g").call(e);var n=this._legend.selectAll(".legend-item"),r=n.nodes().length,o=Array(Math.floor(r/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(r%2))})),s=o.slice().reverse().map((function(t){return -t}));r%2!=0&&s.push(0),o=s.concat(o);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,h=30*r;r&&this.options.margins.right<h&&(this.options.margins.right=h,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(e,a,i){var n=d3.select(i[a]),r=(n.select("rect"),n.attr("data-name")),s=t._paths[r],c=55*o[a],h=2*l;n.attr("transform","translate("+c+", "+h+")"),r in t.options&&"disabled"==t.options[r]&&(s.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&s.attr("mask","url(#"+t._mask.attr("id")+")");}));}},_updateScale:function(){if(this.zooming)return {x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return {x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,a=this._data,i=this._y.invert(t),n=a.reduce((function(t,e,a){return e.z>=i&&t.push(a),t}),[]),r=0;return n.reduce((function(t,i,o){return n[e=o+1]===n[o]+1&&e!==n.length||(t.push(n.slice(r,e).map((function(t){return a[t].latlng}))),r=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,a=1/0;return this._data.forEach((function(i,n){var r=t.distanceTo(i.latlng);r<a&&(a=r,e=n);})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"));},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity);},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(I({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}));},_hideDiagramIndicator:function(){this._tooltip.attr("display","none");}});function j(t){return (j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var R,J=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1});}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(E({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"});}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(E({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}));}break;case"position-marker":c(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng);}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden");}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t;}}),Y=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},u(this._container=m("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"");},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML="";},append:function(t,e,a){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(a,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,a){return t.labels[e].order-t.labels[a].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info));}));},_registerSummary:function(t){for(var e in t){var a;t[e].order=null!==(a=t[e].order)&&void 0!==a?a:100,this.labels[e]=t[e];}}}),V={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},W=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var a=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),a._addData(t),a._addLayer(e),a._fireEvt("eledata_added",{data:t,layer:e,track_info:a.track_info});}));},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),f(e,this.onAdd(t));}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart();},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear());},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers());},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers());},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag();},enableBrush:function(){this._chart._brushEnabled=!0;},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom();},enableZoom:function(){this._chart._zoomEnabled=!0;},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t);},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){u(this._container,"display","none");},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(A,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize();},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:a="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":j(d3));break;case this.__TOGEOJSON:a="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":j(toGeoJSON));break;case this.__LGEOMUTIL:a="_geomutilLazyLoader",e="object"!==j(L.GeometryUtil);break;case this.__LALMOSTOVER:a="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:a="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers;}return L.Control.Elevation[a]=r(t,e,L.Control.Elevation[a])},load:function(t){var e=this;this._parseFromString(t).then((function(a){return a?e._loadLayer(a):e._loadFile(t)}));},onAdd:function(t){var e=this;this._map=t;var a=this._container=m("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(a),e._initChart(a),e._initSummary(a),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary();})),a},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),b(t.getContainer(),"mousewheel",this._resetDrag,this),b(t.getContainer(),"touchstart",this._resetDrag,this),b(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this);},redraw:function(){this._resizeChart();},setZFollow:function(t){this.options.zFollow=t;},show:function(){u(this._container,"display","block");},_addData:function(t){var e=this;if(t){var a=t.geometry;if(a)switch(a.type){case"LineString":this._addGeoJSONData(a.coordinates);break;case"MultiLineString":M(a.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+a.type);}"FeatureCollection"===t.type&&M(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties);}},_addGeoJSONData:function(t,e){var a=this;t.forEach((function(t,i){var n,r,o,s,l;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;a.fire("elepoint_init",{point:t,props:c,id:i}),a._addPoint(null!==(r=t.lat)&&void 0!==r?r:t[1],null!==(o=t.lng)&&void 0!==o?o:t[0],null!==(s=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==s?s:t[2]),a.fire("elepoint_added",{point:t,index:a._data.length-1});})),this.fire("eletrack_added",{coords:t,index:this._data.length-1});},_addPoint:function(t,e,a){if(this.options.reverseCoords){var i=[e,t];t=i[0],e=i[1];}this._data.push({x:t,y:e,z:a,latlng:L.latLng(t,e,a)}),this.fire("eledata_updated",{index:this._data.length-1});},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}));},_addMarker:function(t){t&&this._markers.addLayer(t);},_initAlmostOverHandler:function(t,e){var a=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return a._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return a._mouseoutHandler(t)})));}));},_initDistanceMarkers:function(t,e){var a=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LDISTANCEM)})).then((function(){return a.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t));},_initElevationDiv:function(){var t=y(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+w(),t=m("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var a=t._map;t._map?(a.once("layeradd",(function(a){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(a):(t._initAlmostOverHandler(a,e),t._initDistanceMarkers(a,e))):console.warn("Undefined elevation map object");},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed");},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded");},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(a,i){if(e._layers.hasLayer(i)){var n=e.options.theme.replace("-theme",""),r=A[n]||{},o=i.options;if(o.color=r.line||r.area||n,o.stroke=!!o.color,t.call(this,a,i),o.stroke&&0!==o.weight){var s=a.globalCompositeOperation||"source-over";a.globalCompositeOperation="destination-over",a.strokeStyle=r.outline||"#FFF",a.lineWidth=1.75*o.weight,a.stroke(),a.globalCompositeOperation=s;}}else t.call(this,a,i);}});},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data);}))}));},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,a){this.fire&&this.fire(t,e,a),this._map&&this._map.fire(t,e,a);},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove();},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var a=this.eleDiv,i=a.offsetWidth,n=a.offsetHeight;i>0&&(e.width=i),n>20&&(e.height=n-20);}else {var r=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>r&&(e.width=r-30);}var o=this._chart=new U(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init");},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var a=e.layer;h(a.getElement&&a.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),p(a,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),p(a,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type);}));},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new J(this.options),this.fire("elechart_marker");},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=m("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this));}},_initSummary:function(t){this._summary=new Y({summary:this.options.summary},this),d3.select(t).call(this._summary.render());},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse();},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(a){e._downloadURL=t,e._parseFromString(a).then((function(t){return t&&e._loadLayer(t)}));})).catch((function(t){return console.warn(t)}));},_loadLayer:function(t){var e=this,a=e.options,i=a.wptIcons,n=a.wptLabels,r=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var a=L.extend({},e.options.polyline);return e.options.theme&&(a.className+=" "+e.options.theme),a},pointToLayer:function(t,a){var r,o,s;if(e.options.waypoints){var l=t.properties,c=null!==(r=l.desc)&&void 0!==r?r:"",h=null!==(o=l.name)&&void 0!==o?o:"",d=(null!==(s=l.sym)&&void 0!==s?s:h).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:a,label:[!0,"dots"].includes(n)?h:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=i){i.hasOwnProperty(d)||(i[d]=L.divIcon(L.extend({},i[""].options,{html:'<i class="elevation-waypoint-icon '+d+'"></i>'})));var u=L.marker(a,{icon:i[d]});if([!0,"markers"].includes(n)&&(h||c)){var _=decodeURI("<b>"+h+"</b>"+(c.length>0?"<br>"+c:""));u.bindPopup(_,{className:"elevation-popup",keepInView:!0}).openPopup(),u.bindTooltip(_,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip();}return e._addMarker(u),e.fire("waypoint_added",{point:u,element:a,properties:l}),u}}},onEachFeature:function(a,i){a.geometry&&"Point"!=a.geometry.type&&(e.addData(i),e.track_info=L.extend({},e.track_info,{name:t.name}));}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,r),e._fireEvt("eledata_loaded",{data:t,layer:r,name:e.track_info.name,track_info:e.track_info});})),r},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged");},_mouseenterHandler:function(t){this.fire("elechart_enter");},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var a=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:a}),this.fire("elechart_hover",{data:e,xCoord:a});}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var a=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:a});}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave");},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(a){return e.lazyLoad(e.__TOGEOJSON).then((function(){var i;try{i=e._parseFromXMLString(t.trim());}catch(a){i=e._parseFromGeoJSONString(t.toString());}i&&(i=e._prepareMultiLineStrings(i),i=e._prepareAdditionalProperties(i)),a(i);}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw "Invalid XML";var a=(new DOMParser).parseFromString(t,"text/xml"),i=a.documentElement.tagName.toLowerCase(),n=a.getElementsByTagName("name");if(a.getElementsByTagName("parsererror").length)throw "Invalid XML";i in toGeoJSON||(i="TrainingCenterDatabase"==a.documentElement.tagName?"tcx":"gpx");var r=toGeoJSON[i](a);return r.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return "trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",r},_prepareAdditionalProperties:function(t){return !t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(a){t.features.push({geometry:{type:"LineString",coordinates:a},properties:e.properties,type:"Feature"});}));})),t.features.filter((function(t){return "MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}));},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}));},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}));},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}));},_registerDataAttribute:function(t){var e=this,a=null;t.init&&this.on("elepoint_init",(function(a){return t.init.call(e,a)})),this.on("elepoint_added",(function(i){if(!1===t.skipNull){var n=e._data[i.index][t.name];if(i.index>0){var r=e._data[i.index-1][t.name];if(isNaN(r)){if(isNaN(a)||isNaN(n)?isNaN(a)?isNaN(n)||(r=n):r=a:r=(a+n)/2,!isNaN(r))return e._data.splice(i.index-1,1);e._data[i.index-1][t.name]=r;}}isNaN(n)||(a=n);}e._data[i.index][t.name]=t.fetch.call(e,i.index,i.point),t.update&&(e._data[i.index][t.name]=t.update.call(e,e._data[i.index][t.name],i.index,i.point));}));},_registerTooltip:function(t){var e=this;if(t.chart){var a=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(a)}));}if(t.marker){var i=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(i)}));}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}));},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker();},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds());},_resizeChart:function(){if(this._container&&"none"!=u(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else {var a=this._map.getContainer().clientWidth;t=e._maxWidth>a?a-30:e._maxWidth;}if(t){var i=this._chart;e.width=t,i&&i._chart&&(i._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart());}this._updateMapSegments();}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords);},_toggle:function(){k(this._container,"elevation-expanded")?this._collapse():this._expand();},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),a=this.options.zFollow;"number"==typeof a?this._map.setView(t.latlng,e<a?a:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25});}},_toggleChartHandler:function(t){var e=this,a=t.name,i=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return h(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[a]=i||"disabled"!=this.options[a]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove());},_updateChart:function(){
1130
+ !function(t){t();}((function(){!function(t,e){(module.exports=t(pagination.leafletSrc.exports)),void 0!==e&&e.L&&t(e.L);}((function(t){return t.locales={},t.locale=null,t.registerLocale=function(e,a){t.locales[e]=t.Util.extend({},t.locales[e],a);},t.setLocale=function(e){t.locale=e;},t.i18n=t._=function(e,a){t.locale&&t.locales[t.locale]&&t.locales[t.locale][e]&&(e=t.locales[t.locale][e]);try{e=t.Util.template(e,a);}catch(t){}return e}}),window);var t=6e4,e=60*t,a=24*e;function i(i){var n=Math.floor(i/a),r=Math.floor((i-n*a)/e),o=Math.floor((i-n*a-r*e)/t),s=Math.round((i-n*a-r*e-o*t)/1e3);return 60===s&&(o++,s=0),60===o&&(r++,o=0),24===r&&(n++,r=0),(n?n+"d ":"")+r.toString().padStart(2,0)+":"+o.toString().padStart(2,0)+"'"+s.toString().padStart(2,0)+'"'}function n(t,e){var a=m("a","",{href:t,target:"_new",download:e||"",style:"display:none;"}),i=document.body;i.appendChild(a),a.click(),i.removeChild(a);}function r(t,e,a){return !1===e?Promise.resolve():a instanceof Promise?a:new Promise((function(e,a){var i=document.createElement("script");i.addEventListener("load",e,{once:!0}),i.src=t,document.head.appendChild(i);}))}function o(t,e){e.classed("canvas-path",!0),t.beginPath(),t.moveTo(0,0);var a=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(a),t.globalAlpha=e.attr("fill-opacity")||.45,t.fill(a),t.globalAlpha=1,t.closePath();}function s(t,e){return e?t<e[0]?e[0]:t>e[1]?e[1]:t:t}function l(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.addClass(t,e)}));}function c(t,e){t&&e.split(" ").every((function(e){return e&&L.DomUtil.removeClass(t,e)}));}function h(t,e,a){return (a?l:c).call(null,t,e)}function d(t,e,a){e&&c(t,e),a&&l(t,a);}function u(t,e,a){return void 0===a?L.DomUtil.getStyle(t,e):t.style.setProperty(e,a)}function _(t,e,a,i){return u(t,e,i?a:"")}function p(t,e,a,i){return t[i?"on":"off"](e,a)}function m(t,e,a,i){var n=L.DomUtil.create(t,e||"");return a&&v(n,a),i&&f(i,n),n}function f(t,e){return t.appendChild(e)}function g(t,e,a){return t.insertAdjacentElement(a,e)}function v(t,e){for(var a in e)t.setAttribute(a,e[a]);}function y(t,e){return (e||document).querySelector(t)}var x=L.DomEvent.on,b=L.DomEvent.off,k=L.DomUtil.hasClass;function w(){return Math.random().toString(36).substr(2,9)}function M(t,e){for(var a in t)e(t[a],a);}var C=Object.freeze({__proto__:null,formatTime:i,saveFile:n,lazyLoader:r,drawCanvas:o,clamp:s,addClass:l,removeClass:c,toggleClass:h,replaceClass:d,style:u,toggleStyle:_,toggleEvent:p,create:m,append:f,insert:g,setAttributes:v,select:y,on:x,off:b,hasClass:k,randomId:w,each:M}),A={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"}},S=function(t){var e=t.height,a=t.xAttr,i=t.yAttr,n=t.scaleX,r=t.scaleY,o=t.interpolation,s=void 0===o?"curveLinear":o;return d3.area().curve("string"==typeof s?d3[s]:s).x((function(t){return t.xDiagCoord=n(t[a])})).y0(e).y1((function(t){return r(t[i])}))},z=function(t){var e=t.name,a=t.color,i=t.strokeColor,n=t.strokeOpacity,r=t.fillOpacity,o=d3.create("svg:path");return e&&o.classed(e,!0),o.style("pointer-events","none"),o.attr("fill",a||"#3366CC").attr("stroke",i||"#000").attr("stroke-opacity",n||"1").attr("fill-opacity",r||"0.8"),o},D=function(t){var e=t.type,a=void 0===e?"axis":e,i=t.tickSize,n=void 0===i?6:i,r=t.tickPadding,o=void 0===r?3:r,s=t.position,l=t.height,c=t.width,h=t.axis,d=t.scale,u=t.ticks,_=t.tickFormat,p=t.label,m=t.labelX,f=t.labelY,g=t.name,v=void 0===g?"":g,y=t.onAxisMount;return function(t){var e=0,i=0;"bottom"==s&&(i=l),"right"==s&&(e=c),"x"==h&&"grid"==a?n=-l:"y"==h&&"grid"==a&&(n=-c);var r=d3["axis"+s.replace(/\b\w/g,(function(t){return t.toUpperCase()}))]().scale(d).ticks(u).tickPadding(o).tickSize(n).tickFormat(_),g=t.append("g").attr("class",[h,a,s,v].join(" ")).attr("transform","translate("+e+","+i+")").call(r);return p&&g.append("svg:text").attr("x",m).attr("y",f).text(p),y&&g.call(y),g}},F=function(t){return t.type="grid",D(t)},E=function(t){var e=t.theme,a=t.xCoord,i=void 0===a?0:a,n=t.yCoord,r=void 0===n?0:n,o=t.labels,s=void 0===o?{}:o,l=t.item,c=void 0===l?{}:l,h=t.length,d=void 0===h?0:h;return function(t){t.attr("class","height-focus-group");var a,n=t.select(".height-focus.line"),o=t.select(".height-focus.circle-lower"),l=t.select(".height-focus-label");return n.node()||(n=t.append("svg:line")),o.node()||(o=t.append("svg:circle")),l.node()||(l=t.append("svg:text")),isNaN(i)||isNaN(r)||(o.attr("class",e+" height-focus circle-lower").attr("transform","translate("+i+","+r+")").attr("r",6).attr("cx",0).attr("cy",0),n.attr("class",e+" height-focus line").attr("x1",i).attr("x2",i).attr("y1",r).attr("y2",d),l.attr("class",e+" height-focus-label").style("pointer-events","none").attr("x",i+5).attr("y",d),Object.keys(s).sort((function(t,e){return s[t].order-s[e].order})).forEach((function(t){(a=l.select(".height-focus-"+s[t].name)).size()||(a=l.append("svg:tspan").attr("class","height-focus-"+s[t].name).attr("dy","1.5em")),a.text("function"!=typeof s[t].value?s[t].value:s[t].value(c));})),l.select("tspan").attr("dy",l.selectAll("tspan").size()>1?"-1.5em":"0em"),l.selectAll("tspan").attr("x",i+5)),t}},T=function(t){var e=t.name,a=t.label,i=t.width,n=t.height,r=t.margins,o=void 0===r?{}:r,s=t.color,l=t.path;return function(t){return t.attr("class","legend-item legend-"+e.toLowerCase()).attr("data-name",e),t.on("click.legend",(function(){return d3.select(t.node().ownerSVGElement||t).dispatch("legend_clicked",{detail:{path:l.node(),name:e,legend:t.node(),enabled:!l.classed("leaflet-hidden")}})})),t.append("svg:rect").attr("x",i/2-50).attr("y",n+o.bottom/2).attr("width",50).attr("height",10).attr("fill",s).attr("stroke","#000").attr("stroke-opacity","0.5").attr("fill-opacity","0.25"),t.append("svg:text").text(L._(a||e)).attr("x",i/2+5).attr("font-size",10).style("text-decoration-thickness","2px").style("font-weight","700").attr("y",n+o.bottom/2).attr("dy","0.75em"),t}},I=function(t){var e=t.xCoord,a=t.yCoord,i=t.width,n=t.height,r=t.labels,o=void 0===r?{}:r,s=t.item,l=void 0===s?{}:s;return function(t){var r=t.select(".mouse-focus-line"),s=t.select(".mouse-focus-label");r.node()||(r=t.append("svg:line")),s.node()||(s=t.append("g"));var c=s.select(".mouse-focus-label-rect"),h=s.select(".mouse-focus-label-text");c.node()||(c=s.append("svg:rect")),h.node()||(h=s.append("svg:text"));var d,u=0,_=0,p={width:0,height:0};try{p=h.node().getBBox();}catch(e){return t}return e&&(u=e+(e<i/2?10:-p.width-10)),a&&(_=Math.max(a-p.height,L.Browser.webkit?0:-1/0)),r.attr("class","mouse-focus-line").attr("x2",e).attr("y2",0).attr("x1",e).attr("y1",n),s.attr("class","mouse-focus-label"),c.attr("class","mouse-focus-label-rect").attr("x",u-5).attr("y",_-5).attr("width",p.width+10).attr("height",p.height+10).attr("rx",3).attr("ry",3),h.attr("class","mouse-focus-label-text").style("font-weight","700").attr("y",_),Object.keys(o).sort((function(t,e){return o[t].order-o[e].order})).forEach((function(t){(d=h.select(".mouse-focus-label-"+o[t].name)).size()||(d=h.append("svg:tspan",".mouse-focus-label-x").attr("class","mouse-focus-label-"+o[t].name).attr("dy","1.5em")),d.text("function"!=typeof o[t].value?o[t].value:o[t].value(l));})),h.select("tspan").attr("dy","1em"),h.selectAll("tspan").attr("x",u),t}},O=function(t){var e=t.height,a=t.width;return function(t){t.data([{x:0,y:e}]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"}));var i=t.selectAll(".horizontal-drag-rect").data([{w:a}]),n=t.selectAll(".horizontal-drag-line").data([{w:a}]),r=t.selectAll(".horizontal-drag-label").data([{w:a-8}]),o=t.selectAll(".horizontal-drag-symbol").data([{type:d3.symbolTriangle,x:a+7,y:0,angle:-90,size:50}]);return i.exit().remove(),n.exit().remove(),r.exit().remove(),o.exit().remove(),i.enter().append("svg:rect").attr("class","horizontal-drag-rect").attr("x",0).attr("y",-8).attr("height",8).attr("fill","none").attr("pointer-events","all").merge(i).attr("width",(function(t){return t.w})),n.enter().append("svg:line").attr("class","horizontal-drag-line").attr("x1",0).merge(n).attr("x2",(function(t){return t.w})),r.enter().append("svg:text").attr("class","horizontal-drag-label").attr("text-anchor","end").attr("y",-8).merge(r).attr("x",(function(t){return t.w})),o.enter().append("svg:path").attr("class","horizontal-drag-symbol").merge(o).attr("d",d3.symbol().type((function(t){return t.type})).size((function(t){return t.size}))).attr("transform",(function(t){return "translate("+t.x+","+t.y+") rotate("+t.angle+")"})),t}},N=function(t){var e=t.point,a=t.height,i=t.width,n=t.x,r=t.y;return function(t){return isNaN(n)||isNaN(r)||(e.item&&e.item.property("isConnected")||(e.position=e.position||"bottom",e.item=t.append("g"),e.item.append("svg:line").attr("y1",0).attr("x1",0).attr("style","stroke: rgb(51, 51, 51); stroke-width: 0.5; stroke-dasharray: 2, 2;"),e.item.append("svg:circle").attr("class"," height-focus circle-lower").attr("r",3),e.label&&e.item.append("svg:text").attr("dx","4px").attr("dy","-4px")),e.item.datum({pos:e.position,x:n,y:r}).attr("class",(function(t){return "point "+t.pos})).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})),e.item.select("line").datum({y2:{top:-r,bottom:a-r}[e.position],x2:{left:-n,right:i-n}[e.position]||0}).attr("y2",(function(t){return t.y2})).attr("x2",(function(t){return t.x2})),e.label&&e.item.select("text").text(e.label)),t}},P=function(t){var e=t.min,a=t.max,i=t.attr,n=t.name,r=t.forceBounds,o=t.scale;return function(t){i=i||n,o&&o.attr&&(i=o.attr);var s=t&&t.length?d3.extent(t,(function(t){return t[i]})):[0,1];return void 0!==e&&(e<s[0]||r)&&(s[0]=e),void 0!==a&&(a>s[1]||r)&&(s[1]=a),s}},B=function(t){var e=t.axis;return function(t,a){return "x"==e?[0,t]:"y"==e?[a,0]:void 0}},G=function(t){var e=t.data,a=t.attr,i=t.min,n=t.max,r=t.forceBounds,o=t.range;return d3.scaleLinear().range(o).domain(P({min:i,max:n,attr:a,forceBounds:r})(e))},H=function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=(e-n.left-n.right),o=a-n.top-n.bottom,s=d3.create("svg:svg").attr("class","background"),l=s.append("g"),c={grid:l.append("g").attr("class","grid"),area:l.append("g").attr("class","area"),axis:l.append("g").attr("class","axis"),point:l.append("g").attr("class","point"),brush:l.append("g").attr("class","brush"),tooltip:l.append("g").attr("class","tooltip").attr("display","none"),ruler:l.append("g").attr("class","ruler"),legend:l.append("g").attr("class","legend")},h=c.area.append("svg:mask").attr("id","elevation-clipper").attr("fill-opacity",1),d=h.append("svg:rect").attr("class","zoom").attr("fill","white"),u=c.area.append("svg:foreignObject").attr("mask","url(#"+h.attr("id")+")"),_=u.append("xhtml:canvas").attr("class","canvas-plot"),p=_.node().getContext("2d");c.tooltip.call(I({xCoord:0,yCoord:0,height:o,width:r,labels:{}}));var m=d3.brushX().on("start.cursor end.cursor brush.cursor",(function(){return c.brush.select(".overlay").attr("cursor",null)})),f={mask:h,canvas:_,context:p,brush:m},g={svg:s,g:l,panes:c,utils:f,scale:function(t){return {x:G(t.x),y:G(t.y)}},_resize:function(t){var e=t.width,a=t.height,i=t.margins,n=void 0===i?{}:i,r=t.ruler,o=e-n.left-n.right,h=a-n.top-n.bottom;s.attr("viewBox","0 0 ".concat(e," ").concat(a)).attr("width",e).attr("height",a),l.attr("transform","translate("+n.left+","+n.top+")"),/Mac|iPod|iPhone|iPad/.test(navigator.platform)&&/AppleWebkit/i.test(navigator.userAgent)&&_.style("transform","translate("+n.left+"px,"+n.top+"px)"),d.attr("x",0).attr("y",0).attr("width",o).attr("height",h),u.attr("width",o).attr("height",h),_.attr("width",o).attr("height",h),r&&c.ruler.call(O({height:h,width:o})),c.brush.call(m.extent([[0,0],[o,h]])),c.brush.select(".overlay").attr("cursor",null),g._width=o,g._height=h,g.svg.dispatch("resize",{detail:{width:o,height:h}});},pane:function(t){return c[t]||(c[t]=l.append("g").attr("class",t)),c[t]},get:function(t){return f[t]}};return g._resize({width:e,height:a,margins:n}),g},X=Object.freeze({__proto__:null,Colors:A,Area:S,Path:z,Axis:D,Grid:F,PositionMarker:E,LegendItem:T,Tooltip:I,Ruler:O,CheckPoint:N,Domain:P,Range:B,Scale:G,Bisect:function(t){var e=t.data,a=void 0===e?[0,1]:e,i=t.scale,n=t.x,r=t.attr;return d3.bisector((function(t){return t[r]})).left(a,i.invert(n))},Chart:H}),U=L.Class.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,initialize:function(t,e){var a=this;this.options=t,this.control=e,this._data=[],this._props={scales:{},paths:{},areas:{},grids:{},axes:{},legendItems:{},tooltipItems:{}},this._scales={},this._domains={},this._ranges={},this._paths={},this._brushEnabled=t.dragging,this._zoomEnabled=t.zooming;var i=this._chart=H(t);this._container=i.svg;this._grid=i.pane("grid"),this._area=i.pane("area"),this._point=i.pane("point"),this._axis=i.pane("axis"),this._legend=i.pane("legend"),this._tooltip=i.pane("tooltip"),this._ruler=i.pane("ruler"),this._initScale(),this._mask=i.get("mask"),this._context=i.get("context"),this._brush=i.get("brush"),this._zoom=d3.zoom(),this._drag=d3.drag(),this._initInteractions(),this._maskGaps=[],e.on("eletrack_added",(function(t){a._maskGaps.push(t.index),e.once("eledata_updated",(function(t){return a._maskGaps.push(t.index)}));}));},update:function(t){return t&&(t.data&&(this._data=t.data),t.options&&(this.options=t.options)),this._updateScale(),this._updateArea(),this._updateAxis(),this._updateLegend(),this._updateClipper(),this},render:function(){var t=this;return function(e){return e.append((function(){return t._container.node()}))}},clear:function(){this._resetDrag(),this._hideDiagramIndicator(),this._area.selectAll("path").attr("d","M0 0"),this._context.clearRect(0,0,this._width(),this._height()),this._maskGaps=[],this._mask.selectAll(".gap").remove();},_drawPath:function(t){var e=this._paths[t],a=this._props.areas[t];e.datum(this._data).attr("d",S(L.extend({},a,{width:this._width(),height:this._height(),scaleX:this._scales[a.scaleX],scaleY:this._scales[a.scaleY]}))),e.classed("leaflet-hidden")||(this.options.preferCanvas?o(this._context,e):this._area.append((function(){return e.node()})));},_hasActiveLayers:function(){var t=this._paths;for(var e in t)if(!t[e].classed("leaflet-hidden"))return !0;return !1},_initBrush:function(t){var e=this,a=function(t){if(e._data.length&&("brush"!=t.type||t.sourceEvent)){var a=e._chart.panes.brush.select(".overlay").node(),i=d3.pointers(t,a)[0][0],n=e._data[e._findIndexForXCoord(i)];e.fire("mouse_move",{item:n,xCoord:i});}};this._brush.filter((function(t){return e._brushEnabled&&!t.shiftKey&&!t.button})).on("end.update",(function(t){if(e._data.length){var a=t.selection;if(a){var i=e._findIndexForXCoord(a[0]),n=e._findIndexForXCoord(a[1]);e.fire("dragged",{dragstart:e._data[i],dragend:e._data[n]});}}})).on("brush.update",a),this._chart.panes.brush.on("mouseenter.focus touchstart.focus",this.fire.bind(this,"mouse_enter")).on("mouseout.focus touchend.focus",this.fire.bind(this,"mouse_out")).on("mousemove.focus touchmove.focus",a);},_initClipper:function(){var t=this,e=this._container,a=this.options.margins,i=this._zoom;i.scaleExtent([1,10]).extent([[a.left,0],[this._width()-a.right,this._height()]]).translateExtent([[a.left,-1/0],[this._width()-a.right,1/0]]).filter((function(e){return t._zoomEnabled&&(e.shiftKey||4==e.buttons)})).on("start",(function(a){a.sourceEvent&&"mousedown"==a.sourceEvent.type&&e.style("cursor","grabbing"),1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!0),t._mask&&t._point.attr("mask","url(#"+t._mask.attr("id")+")")),t.zooming=!0;})).on("end",(function(a){1==a.transform.k&&0==a.transform.x&&(t._container.classed("zoomed",!1),t._mask&&t._point.attr("mask",null)),t.zooming=!1,e.style("cursor","");})).on("zoom",(function(e){t.zooming=!1,t._updateScale(),t.zooming=!0,t._scales.distance=t._x=e.transform.rescaleX(t._x),t._scales.time&&(t._scales.time=e.transform.rescaleX(t._scales.time)),t._resetDrag(),e.sourceEvent&&"mousemove"==e.sourceEvent.type&&t._hideDiagramIndicator(),t.fire("zoom");})),e.call(i);},_initInteractions:function(){this._initBrush(),this._initRuler(),this._initClipper(),this._initLegend();},_initLegend:function(){var t=this;this._container.on("legend_clicked",(function(e){var a=e.detail,i=a.path,n=a.legend,r=a.name,o=a.enabled;if(i){var s=y("text",n),l=y("rect",n);_(s,"text-decoration-line","line-through",o),_(l,"fill-opacity","0",o),h(i,"leaflet-hidden",o),t._updateArea(),t.fire("elepath_toggle",{path:i,name:r,legend:n,enabled:o});}}));},_initRuler:function(){var t=this;if(this.options.ruler){var e=d3.format(".0f"),a=this._drag;a.on("start end",(function(e,a){var i=t._height(),n=t._ruler.data()[0].y;(n>=i||n<=0)&&t._ruler.select(".horizontal-drag-label").text(""),t._hideDiagramIndicator();})).on("drag",(function(a,i){var n=t._height(),r=d3.pointers(a,t._area.node())[0][1],o=r>0?r<n?r:n:0,s=t._y.invert(o),l=L.extend(t._ruler.data()[0],{y:o});t._ruler.data([l]).attr("transform",(function(t){return "translate("+t.x+","+t.y+")"})).classed("active",o<n),t._container.select(".horizontal-drag-label").text(e(s)+" "+(t.options.imperial?"ft":"m")),t.fire("ruler_filter",{coords:r<n&&r>0?t._findCoordsForY(r):[]});})),this._ruler.call(a);}},_initScale:function(){var t=this.options;this._registerAxisScale({axis:"x",position:"bottom",attr:t.xAttr,min:t.xAxisMin,max:t.xAxisMax,name:"distance"}),this._registerAxisScale({axis:"y",position:"left",attr:t.yAttr,min:t.yAxisMin,max:t.yAxisMax,name:"altitude"}),this._x=this._scales.distance,this._y=this._scales.altitude;},_registerAreaPath:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options;t.xAttr||(t.xAttr=e.xAttr),t.yAttr||(t.yAttr=e.yAttr),void 0===t.preferCanvas&&(t.preferCanvas=e.preferCanvas);var a=z(t);this._paths[t.name]=a,this._props.areas[t.name]=t,e.legend&&(this._props.legendItems[t.name]={name:t.name,label:t.label,color:t.color,path:a});},_registerAxisGrid:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x),this._props.grids[t.name||t.axis]=t;},_registerAxisScale:function(t){"y"==t.scale?t.scale=this._y:"x"==t.scale&&(t.scale=this._x);var e=this.options,a=t.scale;if("function"==typeof this._scales[t.name])t.scale=this._scales[t.name];else if("function"!=typeof a){(a=L.extend({data:this._data,forceBounds:e.forceAxisBounds},a)).attr=a.attr||t.name;var i=this._domains[t.name]=P(t),n=this._ranges[t.name]=B(t);a.range=a.range||n(this._width(),this._height()),a.domain=a.domain||i(this._data),this._props.scales[t.name]=a,t.scale=this._scales[t.name]=G(a);}return t.ticks||("x"==t.axis?t.ticks=e.xTicks:"y"==t.axis&&(t.ticks=e.yTicks)),this._props.axes[t.name]=t,a},_registerCheckPoint:function(t){var e,a,i;this._data.length&&(t.latlng?(e=this._data[this._findIndexForLatLng(t.latlng)],a=this._x(e.dist),i=this._y(e.z)):isNaN(t.dist)||(a=this._x(t.dist),e=this._data[this._findIndexForXCoord(a)],i=this._y(e.z)),this._point.call(N({point:t,width:this._width(),height:this._height(),x:a,y:i})));},_registerTooltip:function(t){var e;t.order=null!==(e=t.order)&&void 0!==e?e:100,this._props.tooltipItems[t.name]=t;},_updateArea:function(){var t=this._paths;for(var e in this._context.clearRect(0,0,this._width(),this._height()),t)t[e].classed("leaflet-hidden")||this._drawPath(e);},_updateAxis:function(){var t=this.options;this._grid.selectAll("g").remove(),this._axis.selectAll("g").remove();var e,a,i,n=this._props.grids,r=this._props.axes,o={width:this._width(),height:this._height(),tickFormat:""},s={width:this._width(),height:this._height()};for(var l in n)e=L.extend({},o,n[l]),i=F(e),this._grid.call(i);for(var c in r)!1!==t[c]&&"summary"!==t[c]&&(e=L.extend({},s,r[c]),a=D(e),this._axis.call(a));this._axis.selectAll(".y.axis.right").each((function(t,e,a){var i=d3.select(a[e]),n=i.attr("transform"),r=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(",");i.attr("transform","translate("+(+r[0]+40*e)+","+r[1]+")"),e>0&&(i.select(":scope > path").attr("opacity",.25),i.selectAll(":scope > .tick line").attr("opacity",.75));}));},_updateClipper:function(){var t=this,e=this.options.margins;this._zoom.scaleExtent([1,10]).extent([[e.left,0],[this._width()-e.right,this._height()]]).translateExtent([[e.left,-1/0],[this._width()-e.right,1/0]]),this._mask.selectAll(".gap").remove(),this._maskGaps.forEach((function(e,a){if(!(a>=t._maskGaps.length-2)){var i=t._data[t._maskGaps[a]],n=t._data[t._maskGaps[a+1]],r=t._x(t._data[t._findIndexForLatLng(i.latlng)].dist),o=t._x(t._data[t._findIndexForLatLng(n.latlng)].dist);t._mask.append("rect").attr("x",r).attr("y",0).attr("width",o-r).attr("height",t._height()).attr("class","gap").attr("fill-opacity","0.8").attr("fill","black");}}));},_updateLegend:function(){var t=this;if(!1!==this.options.legend){var e,a=this._props.legendItems;for(var i in this._legend.selectAll("g").remove(),a)e=T(L.extend({width:this._width(),height:this._height(),margins:this.options.margins},a[i])),this._legend.append("g").call(e);var n=this._legend.selectAll(".legend-item"),r=n.nodes().length,o=Array(Math.floor(r/2)).fill(null).map((function(t,e){return 2*(e+1)-(1-Math.sign(r%2))})),s=o.slice().reverse().map((function(t){return -t}));r%2!=0&&s.push(0),o=s.concat(o);var l=this._axis.selectAll(".x.axis.bottom").nodes().length,c=30+2*l,h=30*r;r&&this.options.margins.right<h&&(this.options.margins.right=h,this.fire("margins_updated")),l&&this.options.margins.bottom<c&&(this.options.margins.bottom=c,this.fire("margins_updated")),n.each((function(e,a,i){var n=d3.select(i[a]),r=(n.select("rect"),n.attr("data-name")),s=t._paths[r],c=55*o[a],h=2*l;n.attr("transform","translate("+c+", "+h+")"),r in t.options&&"disabled"==t.options[r]&&(s.classed("leaflet-hidden",!0),n.select("text").style("text-decoration-line","line-through"),n.select("rect").style("fill-opacity","0")),t._mask&&s.attr("mask","url(#"+t._mask.attr("id")+")");}));}},_updateScale:function(){if(this.zooming)return {x:this._x,y:this._y};for(var t in this._scales)this._scales[t].domain(this._domains[t](this._data)).range(this._ranges[t](this._width(),this._height()));return {x:this._x,y:this._y}},_width:function(){return this._chart._width},_height:function(){return this._chart._height},_findCoordsForY:function(t){var e,a=this._data,i=this._y.invert(t),n=a.reduce((function(t,e,a){return e.z>=i&&t.push(a),t}),[]),r=0;return n.reduce((function(t,i,o){return n[e=o+1]===n[o]+1&&e!==n.length||(t.push(n.slice(r,e).map((function(t){return a[t].latlng}))),r=e),t}),[])},_findIndexForXCoord:function(t){var e=this;return d3.bisector((function(t){return t[e.options.xAttr]})).left(this._data||[0,1],this._x.invert(t))},_findIndexForLatLng:function(t){var e=null,a=1/0;return this._data.forEach((function(i,n){var r=t.distanceTo(i.latlng);r<a&&(a=r,e=n);})),e},_resetDrag:function(){this._chart.panes.brush.select(".selection").attr("width")&&(this._chart.panes.brush.call(this._brush.clear),this._hideDiagramIndicator(),this.fire("reset_drag"));},_resetZoom:function(){this._zoom&&this._zoom.transform(this._chart.svg,d3.zoomIdentity);},_showDiagramIndicator:function(t,e){this._tooltip.attr("display",null).call(I({xCoord:e,yCoord:this._y(t[this.options.yAttr]),height:this._height(),width:this._width(),labels:this._props.tooltipItems,item:t}));},_hideDiagramIndicator:function(){this._tooltip.attr("display","none");}});function j(t){return (j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var R,J=L.Class.extend({initialize:function(t){switch(this.options=t,this.options.marker){case"elevation-line":break;case"position-marker":this._marker=L.marker([0,0],{icon:this.options.markerIcon,zIndexOffset:1e6,interactive:!1});}return this._labels={},this},addTo:function(t){switch(this._map=t,this.options.marker){case"elevation-line":this._container=d3.select(t.getPane("elevationPane")).select("svg > g").call(E({}));break;case"position-marker":this._marker.addTo(t,{pane:"overlayPane"});}return this},update:function(t){if(t?this._props=t:t=this._props,t)switch(t.options&&(this.options=t.options),this._map||this.addTo(t.map),this._latlng=t.item.latlng,this.options.marker){case"elevation-line":if(this._container){var e=this._map.latLngToLayerPoint(this._latlng);e=L.extend({},t.item,this._map._rotate?this._map.rotatedPointToMapPanePoint(e):e),this._container.classed("leaflet-hidden",!1),this._container.call(E({theme:this.options.theme,xCoord:e.x,yCoord:e.y,length:e.y-this._height()/t.maxElevation*e.z,labels:this._labels,item:e}));}break;case"position-marker":c(this._marker.getElement(),"leaflet-hidden"),this._marker.setLatLng(this._latlng);}},remove:function(){switch(this._props=null,this.options.marker){case"elevation-line":this._container&&this._container.classed("leaflet-hidden",!0);break;case"position-marker":l(this._marker.getElement(),"leaflet-hidden");}},getLatLng:function(){return this._latlng},_height:function(){var t=this.options;return t.height-t.margins.top-t.margins.bottom},_registerTooltip:function(t){this._labels[t.name]=t;}}),Y=L.Class.extend({initialize:function(t,e){this.options=t,this.control=e,this.labels={},u(this._container=m("div","elevation-summary "+(t.summary?t.summary+"-summary":"")),"max-width",t.width?t.width+"px":"");},render:function(){var t=this;return function(e){return e.append((function(){return t._container}))}},reset:function(){this._container.innerHTML="";},append:function(t,e,a){return this._container.innerHTML+='<span class="'.concat(t,'"><span class="summarylabel">').concat(e,'</span><span class="summaryvalue">').concat(a,"</span></span>"),this},update:function(){var t=this;Object.keys(this.labels).sort((function(e,a){return t.labels[e].order-t.labels[a].order})).forEach((function(e){t.append(e,L._(t.labels[e].label),"function"!=typeof t.labels[e].value?t.labels[e].value:t.labels[e].value(t.control.track_info));}));},_registerSummary:function(t){for(var e in t){var a;t[e].order=null!==(a=t[e].order)&&void 0!==a?a:100,this.labels[e]=t[e];}}}),V={autofitBounds:!0,autohide:!L.Browser.mobile,autohideMarker:!0,almostover:!0,altitude:!0,collapsed:!1,detached:!0,distance:!0,distanceMarkers:{lazy:!0,distance:!0,direction:!0},decimalsX:2,decimalsY:0,dragging:!L.Browser.mobile,downloadLink:"link",elevationDiv:"#elevation-div",followMarker:!0,forceAxisBounds:!1,height:200,imperial:!1,interpolation:"curveLinear",lazyLoadJS:!0,legend:!0,margins:{top:30,right:30,bottom:30,left:40},marker:"elevation-line",markerIcon:L.divIcon({className:"elevation-position-marker",html:'<i class="elevation-position-icon"></i>',iconSize:[32,32],iconAnchor:[16,16]}),position:"topright",polyline:{className:"elevation-polyline",color:"#000",opacity:.75,weight:5,lineCap:"round"},polylineSegments:{className:"elevation-polyline-segments",color:"#F00",interactive:!1},preferCanvas:!1,reverseCoords:!1,ruler:!0,skipNullZCoords:!1,theme:"lightblue-theme",summary:"inline",slope:!1,slopeDeltaMax:void 0,slopeRange:void 0,speed:!1,speedDeltaMax:void 0,speedRange:void 0,time:!1,timeFactor:3600,timeFormat:!1,timestamps:!1,width:600,waypoints:!0,wptIcons:{"":L.divIcon({className:"elevation-waypoint-marker",html:'<i class="elevation-waypoint-icon default"></i>',iconSize:[30,30],iconAnchor:[8,30]})},wptLabels:!0,xAttr:"dist",xLabel:"km",xTicks:void 0,yAttr:"z",yAxisMax:void 0,yAxisMin:void 0,yLabel:"m",yTicks:void 0,zFollow:!1,zooming:!L.Browser.Mobile},W=L.Control.Elevation=L.Control.extend({includes:L.Evented?L.Evented.prototype:L.Mixin.Events,options:V,__mileFactor:.621371,__footFactor:3.28084,__D3:"https://unpkg.com/d3@6.5.0/dist/d3.min.js",__TOGEOJSON:"https://unpkg.com/@tmcw/togeojson@4.5.0/dist/togeojson.umd.js",__LGEOMUTIL:"https://unpkg.com/leaflet-geometryutil@0.9.3/src/leaflet.geometryutil.js",__LALMOSTOVER:"https://unpkg.com/leaflet-almostover@1.0.1/src/leaflet.almostover.js",__LDISTANCEM:"https://unpkg.com/@raruto/leaflet-elevation@1.9.6/libs/leaflet-distance-marker.min.js",addData:function(t,e){var a=this;this.lazyLoad(this.__D3).then((function(){void 0===e&&t.on&&(e=t),a._addData(t),a._addLayer(e),a._fireEvt("eledata_added",{data:t,layer:e,track_info:a.track_info});}));},addTo:function(t){if(this.options.detached){var e=this._initElevationDiv();e.isConnected||g(t.getContainer(),e,"afterend"),f(e,this.onAdd(t));}else L.Control.prototype.addTo.call(this,t);return this},clear:function(){this._marker&&this._marker.remove(),this._chart&&this._clearChart(),this._layers&&this._clearLayers(),this._markers&&this._clearMarkers(),this._data=[],this.track_info={},this._fireEvt("eledata_clear"),this._updateChart();},_clearChart:function(){var t=this;this._events&&this._events.elechart_updated&&this._events.elechart_updated.forEach((function(e){return t.off("elechart_updated",e.fn,e.ctx)})),this._chart&&this._chart._container&&(this._chart._container.selectAll("g.point .point").remove(),this._chart.clear());},_clearLayers:function(){this._layers&&this._layers.eachLayer&&(this._layers.eachLayer((function(t){return t.remove()})),this._layers.clearLayers());},_clearMarkers:function(){this._markers&&this._markers.eachLayer&&(this._markers.eachLayer((function(t){return t.remove()})),this._markers.clearLayers());},disableBrush:function(){this._chart._brushEnabled=!1,this._resetDrag();},enableBrush:function(){this._chart._brushEnabled=!0;},disableZoom:function(){this._chart._zoomEnabled=!1,this._chart._resetZoom();},enableZoom:function(){this._chart._zoomEnabled=!0;},fitBounds:function(t){t=t||this.getBounds(),this._map&&t.isValid()&&this._map.fitBounds(t);},getBounds:function(t){return t=t||this._data,L.latLngBounds(t.map((function(t){return t.latlng})))},getZFollow:function(){return this.options.zFollow},hide:function(){u(this._container,"display","none");},initialize:function(t){this._data=[],this._layers=L.featureGroup(),this._markers=L.featureGroup(),this._markedSegments=L.polyline([]),this._chartEnabled=!0,this.track_info={},this.handlers=[],L.setOptions(this,t),this.options.followMarker&&(this._setMapView=L.Util.throttle(this._setMapView,300,this)),this.options.legend&&(this.options.margins.bottom+=30),this.options.theme&&(this.options.polylineSegments.className+=" "+this.options.theme),!0===this.options.wptIcons&&(this.options.wptIcons=V.wptIcons),!0===this.options.distanceMarkers&&(this.options.distanceMarkers=V.distanceMarkers),this._markedSegments.setStyle(this.options.polylineSegments),L.extend(A,this.options.colors||{}),this._fixCanvasPaths(),this._fixTooltipSize();},lazyLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!this.options.lazyLoadJS)return Promise.resolve();switch(t){case this.__D3:a="_d3LazyLoader",e="object"!==("undefined"==typeof d3?"undefined":j(d3));break;case this.__TOGEOJSON:a="_togeojsonLazyLoader",e="object"!==("undefined"==typeof toGeoJSON?"undefined":j(toGeoJSON));break;case this.__LGEOMUTIL:a="_geomutilLazyLoader",e="object"!==j(L.GeometryUtil);break;case this.__LALMOSTOVER:a="_almostoverLazyLoader",e="function"!=typeof L.Handler.AlmostOver;break;case this.__LDISTANCEM:a="_distanceMarkersLazyLoader",e="function"!=typeof L.DistanceMarkers;}return L.Control.Elevation[a]=r(t,e,L.Control.Elevation[a])},load:function(t){var e=this;this._parseFromString(t).then((function(a){return a?e._loadLayer(a):e._loadFile(t)}));},onAdd:function(t){var e=this;this._map=t;var a=this._container=m("div","elevation-control elevation "+this.options.theme+" "+(this.options.detached?"":"leaflet-control"));return this.lazyLoad(this.__D3).then((function(){e._initButton(a),e._initChart(a),e._initSummary(a),e._initMarker(t),e._initLayer(t),t.on("zoom viewreset zoomanim",e._hideMarker,e).on("resize",e._resetView,e).on("resize",e._resizeChart,e).on("rotate",e._rotateMarker,e).on("mousedown",e._resetDrag,e),x(t.getContainer(),"mousewheel",e._resetDrag,e),x(t.getContainer(),"touchstart",e._resetDrag,e),x(document,"keydown",e._keydownHandler,e),e.on("eledata_added eledata_loaded",e._updateChart,e).on("eledata_added eledata_loaded",e._updateSummary,e),e._updateChart(),e._updateSummary();})),a},onRemove:function(t){this._container=null,t.off("zoom viewreset zoomanim",this._hideMarker,this).off("resize",this._resetView,this).off("resize",this._resizeChart,this).off("mousedown",this._resetDrag,this),b(t.getContainer(),"mousewheel",this._resetDrag,this),b(t.getContainer(),"touchstart",this._resetDrag,this),b(document,"keydown",this._keydownHandler,this),this.off("eledata_added eledata_loaded",this._updateChart,this).off("eledata_added eledata_loaded",this._updateSummary,this);},redraw:function(){this._resizeChart();},setZFollow:function(t){this.options.zFollow=t;},show:function(){u(this._container,"display","block");},_addData:function(t){var e=this;if(t){var a=t.geometry;if(a)switch(a.type){case"LineString":this._addGeoJSONData(a.coordinates);break;case"MultiLineString":M(a.coordinates,(function(t){return e._addGeoJSONData(t)}));break;default:console.warn("Unsopperted GeoJSON feature geometry type:"+a.type);}"FeatureCollection"===t.type&&M(t.features,(function(t){return e._addData(t)})),t._latlngs&&this._addGeoJSONData(t._latlngs,t.feature&&t.feature.properties);}},_addGeoJSONData:function(t,e){var a=this;t.forEach((function(t,i){var n,r,o,s,l;t.meta=null!==(n=t.meta)&&void 0!==n?n:{time:null,ele:null,hr:null,cad:null,atemp:null};var c=e&&e.coordinateProperties||e;a.fire("elepoint_init",{point:t,props:c,id:i}),a._addPoint(null!==(r=t.lat)&&void 0!==r?r:t[1],null!==(o=t.lng)&&void 0!==o?o:t[0],null!==(s=null!==(l=t.alt)&&void 0!==l?l:t.meta.ele)&&void 0!==s?s:t[2]),a.fire("elepoint_added",{point:t,index:a._data.length-1});})),this.fire("eletrack_added",{coords:t,index:this._data.length-1});},_addPoint:function(t,e,a){if(this.options.reverseCoords){var i=[e,t];t=i[0],e=i[1];}this._data.push({x:t,y:e,z:a,latlng:L.latLng(t,e,a)}),this.fire("eledata_updated",{index:this._data.length-1});},_addLayer:function(t){t&&this._layers.addLayer(t),t&&this.options.distanceMarkers&&this.options.distanceMarkers.lazy&&t.on("add remove",(function(t){return L.DistanceMarkers&&t.target instanceof L.Polyline&&t.target[t.type+"DistanceMarkers"]()}));},_addMarker:function(t){t&&this._markers.addLayer(t);},_initAlmostOverHandler:function(t,e){var a=this;t&&this.options.almostOver&&this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LALMOSTOVER)})).then((function(){t.addHandler("almostOver",L.Handler.AlmostOver),L.GeometryUtil&&t.almostOver&&t.almostOver.enabled()&&(t.almostOver.addLayer(e),t.on("almost:move",(function(t){return a._mousemoveLayerHandler(t)})).on("almost:out",(function(t){return a._mouseoutHandler(t)})));}));},_initDistanceMarkers:function(t,e){var a=this;t&&(this.options.distanceMarkers?this.lazyLoad(this.__LGEOMUTIL).then((function(){return a.lazyLoad(a.__LDISTANCEM)})).then((function(){return a.options.polyline&&e.addTo(t)})):this.options.polyline&&e.addTo(t));},_initElevationDiv:function(){var t=y(this.options.elevationDiv);return t||(this.options.elevationDiv="#elevation-div_"+w(),t=m("div","leaflet-control elevation elevation-div",{id:this.options.elevationDiv.substr(1)})),this.options.detached&&d(t,"leaflet-control","elevation-detached"),this.eleDiv=t},_initMapIntegrations:function(t,e){var a=t._map;t._map?(a.once("layeradd",(function(a){return t.options.autofitBounds&&t.fitBounds(e.getBounds())})),L.Browser.mobile?t.options.polyline&&e.addTo(a):(t._initAlmostOverHandler(a,e),t._initDistanceMarkers(a,e))):console.warn("Undefined elevation map object");},_collapse:function(){d(this._container,"elevation-expanded","elevation-collapsed");},_expand:function(){d(this._container,"elevation-collapsed","elevation-expanded");},_fixCanvasPaths:function(){var t=L.Canvas.prototype._fillStroke,e=this;L.Canvas.include({_fillStroke:function(a,i){if(e._layers.hasLayer(i)){var n=e.options.theme.replace("-theme",""),r=A[n]||{},o=i.options;if(o.color=r.line||r.area||n,o.stroke=!!o.color,t.call(this,a,i),o.stroke&&0!==o.weight){var s=a.globalCompositeOperation||"source-over";a.globalCompositeOperation="destination-over",a.strokeStyle=r.outline||"#FFF",a.lineWidth=1.75*o.weight,a.stroke(),a.globalCompositeOperation=s;}}else t.call(this,a,i);}});},_fixTooltipSize:function(){var t=this;this.on("elechart_init",(function(){return t.once("elechart_change elechart_hover",(function(e){t._chartEnabled&&(t._chart._showDiagramIndicator(e.data,e.xCoord),t._chart._showDiagramIndicator(e.data,e.xCoord)),t._updateMarker(e.data);}))}));},_findItemForLatLng:function(t){return this._data[this._chart._findIndexForLatLng(t)]},_findItemForX:function(t){return this._data[this._chart._findIndexForXCoord(t)]},_fireEvt:function(t,e,a){this.fire&&this.fire(t,e,a),this._map&&this._map.fire(t,e,a);},_height:function(){if(this._chart)return this._chart._height();var t=this.options;return t.height-t.margins.top-t.margins.bottom},_hideMarker:function(){this.options.autohideMarker&&this._marker.remove();},_initChart:function(t){var e=this.options;if(e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),e.detached){var a=this.eleDiv,i=a.offsetWidth,n=a.offsetHeight;i>0&&(e.width=i),n>20&&(e.height=n-20);}else {var r=this._map.getContainer().clientWidth;e._maxWidth=e._maxWidth>e.width?e._maxWidth:e.width,this._container.style.maxWidth=e._maxWidth+"px",e._maxWidth>r&&(e.width=r-30);}var o=this._chart=new U(e,this);this._x=this._chart._x,this._y=this._chart._y,d3.select(t).call(o.render()),o.on("reset_drag",this._hideMarker,this).on("mouse_enter",this._mouseenterHandler,this).on("dragged",this._dragendHandler,this).on("mouse_move",this._mousemoveHandler,this).on("mouse_out",this._mouseoutHandler,this).on("ruler_filter",this._rulerFilterHandler,this).on("zoom",this._updateChart,this).on("elepath_toggle",this._toggleChartHandler,this).on("margins_updated",this._resizeChart,this),this.fire("elechart_axis"),this.options.legend&&this.fire("elechart_legend"),this.fire("elechart_init");},_initLayer:function(){var t=this;this._layers.on("layeradd layerremove",(function(e){var a=e.layer;h(a.getElement&&a.getElement(),t.options.polyline.className+" "+t.options.theme,"layeradd"==e.type),p(a,"mousemove",t._mousemoveLayerHandler.bind(t),"layeradd"==e.type),p(a,"mouseout",t._mouseoutHandler.bind(t),"layeradd"==e.type);}));},_initMarker:function(t){var e=t.getPane("elevationPane");e||((e=this._pane=t.createPane("elevationPane",t.getPane("norotatePane")||t.getPane("mapPane"))).style.zIndex=625,e.style.pointerEvents="none"),this._renderer&&this._renderer.remove(),this._renderer=L.svg({pane:"elevationPane"}).addTo(this._map),this._marker=new J(this.options),this.fire("elechart_marker");},_initButton:function(t){if(!L.Browser.mobile&&this.options.detached||L.DomEvent.disableClickPropagation(t).disableScrollPropagation(t),!this.options.detached){var e=this._button=m("a","elevation-toggle elevation-toggle-icon"+(this.options.autohide?"":" close-button"),{href:"#",title:L._("Elevation")},t);this.options.collapsed&&(this._collapse(),this.options.autohide?(x(t,"mouseover",this._expand,this),x(t,"mouseout",this._collapse,this)):(x(e,"click",L.DomEvent.stop),x(e,"click",this._toggle,this)),x(e,"focus",this._toggle,this),this._map.on("click",this._collapse,this));}},_initSummary:function(t){this._summary=new Y({summary:this.options.summary},this),d3.select(t).call(this._summary.render());},_keydownHandler:function(t){this.options.detached||"Escape"!==t.key||this._collapse();},_loadFile:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(a){e._downloadURL=t,e._parseFromString(a).then((function(t){return t&&e._loadLayer(t)}));})).catch((function(t){return console.warn(t)}));},_loadLayer:function(t){var e=this,a=e.options,i=a.wptIcons,n=a.wptLabels,r=L.geoJson(t,{distanceMarkers:e.options.distanceMarkers,style:function(t){var a=L.extend({},e.options.polyline);return e.options.theme&&(a.className+=" "+e.options.theme),a},pointToLayer:function(t,a){var r,o,s;if(e.options.waypoints){var l=t.properties,c=null!==(r=l.desc)&&void 0!==r?r:"",h=null!==(o=l.name)&&void 0!==o?o:"",d=(null!==(s=l.sym)&&void 0!==s?s:h).replace(" ","-").replace('"',"").replace("'","").toLowerCase();if([!0,"dots"].includes(e.options.waypoints)&&e._registerCheckPoint({latlng:a,label:[!0,"dots"].includes(n)?h:""}),[!0,"markers"].includes(e.options.waypoints)&&0!=i){i.hasOwnProperty(d)||(i[d]=L.divIcon(L.extend({},i[""].options,{html:'<i class="elevation-waypoint-icon '+d+'"></i>'})));var u=L.marker(a,{icon:i[d]});if([!0,"markers"].includes(n)&&(h||c)){var _=decodeURI("<b>"+h+"</b>"+(c.length>0?"<br>"+c:""));u.bindPopup(_,{className:"elevation-popup",keepInView:!0}).openPopup(),u.bindTooltip(_,{className:"elevation-tooltip",direction:"auto",sticky:!0,opacity:1}).openTooltip();}return e._addMarker(u),e.fire("waypoint_added",{point:u,element:a,properties:l}),u}}},onEachFeature:function(a,i){a.geometry&&"Point"!=a.geometry.type&&(e.addData(i),e.track_info=L.extend({},e.track_info,{name:t.name}));}});return e.lazyLoad(e.__D3).then((function(){e._initMapIntegrations(e,r),e._fireEvt("eledata_loaded",{data:t,layer:r,name:e.track_info.name,track_info:e.track_info});})),r},_dragendHandler:function(t){this._hideMarker(),this.fitBounds(L.latLngBounds([t.dragstart.latlng,t.dragend.latlng])),this.fire("elechart_dragged");},_mouseenterHandler:function(t){this.fire("elechart_enter");},_mousemoveHandler:function(t){if(this._data.length&&this._chartEnabled){var e=this._findItemForX(t.xCoord);if(e){var a=t.xCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this._setMapView(e),this._map&&l(this._map.getContainer(),"elechart-hover"),this.fire("elechart_change",{data:e,xCoord:a}),this.fire("elechart_hover",{data:e,xCoord:a});}}},_mousemoveLayerHandler:function(t){if(this._data.length){var e=this._findItemForLatLng(t.latlng);if(e){var a=e.xDiagCoord;this._chartEnabled&&this._chart._showDiagramIndicator(e,a),this._updateMarker(e),this.fire("elechart_change",{data:e,xCoord:a});}}},_mouseoutHandler:function(){this.options.detached||(this._hideMarker(),this._chart._hideDiagramIndicator()),this._map&&c(this._map.getContainer(),"elechart-hover"),this.fire("elechart_leave");},_parseFromGeoJSONString:function(t){try{return JSON.parse(t)}catch(t){}},_parseFromString:function(t){var e=this;return new Promise((function(a){return e.lazyLoad(e.__TOGEOJSON).then((function(){var i;try{i=e._parseFromXMLString(t.trim());}catch(a){i=e._parseFromGeoJSONString(t.toString());}i&&(i=e._prepareMultiLineStrings(i),i=e._prepareAdditionalProperties(i)),a(i);}))}))},_parseFromXMLString:function(t){var e;if(0!=t.indexOf("<"))throw "Invalid XML";var a=(new DOMParser).parseFromString(t,"text/xml"),i=a.documentElement.tagName.toLowerCase(),n=a.getElementsByTagName("name");if(a.getElementsByTagName("parsererror").length)throw "Invalid XML";i in toGeoJSON||(i="TrainingCenterDatabase"==a.documentElement.tagName?"tcx":"gpx");var r=toGeoJSON[i](a);return r.name=n.length>0?(null!==(e=Array.from(n).find((function(t){return "trk"==t.parentElement.tagName})))&&void 0!==e?e:n[0]).textContent:"",r},_prepareAdditionalProperties:function(t){return !t.name&&this._downloadURL&&(t.name=this._downloadURL.split("/").pop().split("#")[0].split("?")[0]),t},_prepareMultiLineStrings:function(t){return t.features.forEach((function(e){"MultiLineString"==e.geometry.type&&e.geometry.coordinates.forEach((function(a){t.features.push({geometry:{type:"LineString",coordinates:a},properties:e.properties,type:"Feature"});}));})),t.features.filter((function(t){return "MultiLineString"!=t.geometry.type}))},_registerAreaPath:function(t){var e=this;this.on("elechart_init",(function(){return e._chart._registerAreaPath(t)}));},_registerAxisGrid:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisGrid(t)}));},_registerAxisScale:function(t){var e=this;this.on("elechart_axis",(function(){return e._chart._registerAxisScale(t)}));},_registerCheckPoint:function(t){var e=this;this.on("elechart_updated",(function(){return e._chart._registerCheckPoint(t)}));},_registerDataAttribute:function(t){var e=this,a=null;t.init&&this.on("elepoint_init",(function(a){return t.init.call(e,a)})),this.on("elepoint_added",(function(i){if(!1===t.skipNull){var n=e._data[i.index][t.name];if(i.index>0){var r=e._data[i.index-1][t.name];if(isNaN(r)){if(isNaN(a)||isNaN(n)?isNaN(a)?isNaN(n)||(r=n):r=a:r=(a+n)/2,!isNaN(r))return e._data.splice(i.index-1,1);e._data[i.index-1][t.name]=r;}}isNaN(n)||(a=n);}e._data[i.index][t.name]=t.fetch.call(e,i.index,i.point),t.update&&(e._data[i.index][t.name]=t.update.call(e,e._data[i.index][t.name],i.index,i.point));}));},_registerTooltip:function(t){var e=this;if(t.chart){var a=L.extend({},t,{value:t.chart});this.on("elechart_init",(function(){return e._chart._registerTooltip(a)}));}if(t.marker){var i=L.extend({},t,{value:t.marker});this.on("elechart_marker",(function(){return e._marker._registerTooltip(i)}));}},_registerSummary:function(t){var e=this;this.on("elechart_summary",(function(){return e._summary._registerSummary(t)}));},_resetDrag:function(){this._chart._resetDrag(),this._hideMarker();},_resetView:function(){this._map&&this._map._isFullscreen||(this._resetDrag(),this._hideMarker(),this.options.autofitBounds&&this.fitBounds());},_resizeChart:function(){if(this._container&&"none"!=u(this._container,"display")){var t,e=this.options;if(e.detached)t=(this.eleDiv||this._container).offsetWidth;else {var a=this._map.getContainer().clientWidth;t=e._maxWidth>a?a-30:e._maxWidth;}if(t){var i=this._chart;e.width=t,i&&i._chart&&(i._chart._resize(e),e.xTicks=this._xTicks(),e.yTicks=this._yTicks(),this._updateChart());}this._updateMapSegments();}},_rulerFilterHandler:function(t){this._updateMapSegments(t.coords);},_toggle:function(){k(this._container,"elevation-expanded")?this._collapse():this._expand();},_setMapView:function(t){if(this.options.followMarker&&this._map){var e=this._map.getZoom(),a=this.options.zFollow;"number"==typeof a?this._map.setView(t.latlng,e<a?a:e,{animate:!0,duration:.25}):this._map.getBounds().contains(t.latlng)||this._map.setView(t.latlng,e,{animate:!0,duration:.25});}},_toggleChartHandler:function(t){var e=this,a=t.name,i=t.enabled;this._chartEnabled=this._chart._hasActiveLayers(),this._layers.eachLayer((function(t){return h(t.getElement&&t.getElement(),e.options.polyline.className+" "+e.options.theme,e._chartEnabled)})),this.options[a]=i||"disabled"!=this.options[a]?"disabled":"enabled",this._chartEnabled||(this._chart._hideDiagramIndicator(),this._marker.remove());},_updateChart:function(){
1131
1131
  /*!this._data.length ||*/
1132
1132
  this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_area"),this._chart.update({data:this._data,options:this.options}),this._x=this._chart._x,this._y=this._chart._y,this.fire("elechart_updated"));},_updateMarker:function(t){this._marker&&this._marker.update({map:this._map,item:t,maxElevation:this.track_info.elevation_max||0,options:this.options});},_rotateMarker:function(){this._marker&&this._marker.update();},_updateMapSegments:function(t){this._markedSegments.setLatLngs(t||[]),t&&this._map&&!this._map.hasLayer(this._markedSegments)&&this._markedSegments.addTo(this._map);},_updateSummary:function(){var t=this;this._summary.reset(),this.options.summary&&(this.fire("elechart_summary"),this._summary.update()),this.options.downloadLink&&this._downloadURL&&(this._summary._container.innerHTML+='<span class="download"><a href="#">'+L._("Download")+"</a></span>",y(".download a",this._summary._container).onclick=function(e){e.preventDefault();var a={downloadLink:t.options.downloadLink,confirm:n.bind(t,t._downloadURL)};"modal"==t.options.downloadLink&&"function"==typeof CustomEvent?document.dispatchEvent(new CustomEvent("eletrack_download",{detail:a})):"link"!=t.options.downloadLink&&!0!==t.options.downloadLink||a.confirm(),t.fire("eletrack_download",a);});},_width:function(){if(this._chart)return this._chart._width();var t=this.options;return t.width-t.margins.left-t.margins.right},_xTicks:function(){return this.__xTicks&&(this.__xTicks=this.options.xTicks),this.__xTicks||Math.round(this._width()/75)},_yTicks:function(){return this.__yTicks&&(this.__yTicks=this.options.yTicks),this.__yTicks||Math.round(this._height()/30)}});W.addInitHook((function(){var t=this,e=this.options,a={};e.imperial?(e.distanceFactor=this.__mileFactor,a.label="mi"):(e.distanceFactor=e.distanceFactor||1,a.label=e.xLabel),this._registerDataAttribute({name:"dist",init:function(){},fetch:function(a){var i=t._data[a].latlng.distanceTo(t._data[a>0?a-1:a].latlng)*e.distanceFactor;return Math.round(i/1e3*1e5)/1e5},update:function(e){return t.track_info.distance=t.track_info.distance||0,t.track_info.distance+=e,t.track_info.distance}}),"summary"!=this.options.distance&&this._registerAxisScale({axis:"x",position:"bottom",scale:"x",label:a.label,labelY:25,labelX:function(){return t._width()+6},name:"distance"}),this._registerAxisGrid({axis:"x",position:"bottom",scale:"x"}),this._registerTooltip({name:"x",chart:function(t){return L._("x: ")+d3.format("."+e.decimalsX+"f")(t[e.xAttr])+" "+a.label},order:20}),this._registerSummary({totlen:{label:"Total Length: ",value:function(t){return (t.distance||0).toFixed(2)+"&nbsp;"+a.label},order:10}});})),W.addInitHook((function(){var t=this,e=this.options,a={};a.label=e.timeLabel||"t",e.timeFactor=e.timeFactor||3600,this._timeAVGSpeed=(e.timeAVGSpeed||3.6)*(e.speedFactor||1),e.timeFormat?"time"==e.timeFormat?e.timeFormat=function(t){return new Date(t).toLocaleTimeString()}:"date"==e.timeFormat&&(e.timeFormat=function(t){return new Date(t).toLocaleDateString()}):e.timeFormat=function(t){return new Date(t).toLocaleString().replaceAll("/","-").replaceAll(","," ")},e.xTimeFormat=e.xTimeFormat||function(t){return i(t).split("'")[0]},this._registerDataAttribute({name:"time",init:function(t){var e=t.point,a=t.props,i=t.id;a&&("coordTimes"in a?e.meta.time=new Date(Date.parse(a.coordTimes[i])):"times"in a?e.meta.time=new Date(Date.parse(a.times[i])):"time"in a&&(e.meta.time=new Date(Date.parse("object"===j(a.time)?a.time[i]:a.time))));},fetch:function(t,e){if(!e.meta||!e.meta.time)if(e.meta=e.meta||{},t>0){var a=this._data[t].dist-this._data[t-1].dist,i=this._data[t-1].time.getTime(),n=a/this._timeAVGSpeed*this.options.timeFactor*1e3;e.meta.time=new Date(i+n);}else e.meta.time=new Date(Date.now());var r=e.meta.time;return r.getTime()-60*r.getTimezoneOffset()*1e3==0&&(r=0),r},update:function(t,e){return this.track_info.time=(this.track_info.time||0)+Math.abs(this._data[e].time-this._data[e>0?e-1:e].time),this._data[e].duration=this.track_info.time,t}}),e.time&&"summary"!=e.time&&!L.Browser.mobile&&this._registerAxisScale({axis:"x",position:"top",scale:{attr:"duration",min:0},label:a.label,labelY:-10,labelX:function(){return t._width()},name:"time",tickFormat:function(t){return 0==t?"":e.xTimeFormat(t)},onAxisMount:function(e){e.select(".domain").remove(),e.selectAll("text").attr("opacity",.65).style("font-family","Monospace").style("font-size","110%"),e.selectAll(".tick line").attr("y2",t._height()).attr("stroke-dasharray",2).attr("opacity",.75);}}),this.options.timestamps&&this._registerTooltip({name:"date",chart:function(e){return L._("t: ")+t.options.timeFormat(e.time)},order:20}),this.options.time&&(this._registerTooltip({name:"time",chart:function(t){return L._("T: ")+i(t.duration||0)},order:20}),this._registerSummary({tottime:{label:"Total Time: ",value:function(t){return i(t.time||0)},order:20}}));})),W.addInitHook((function(){var t=this,e=this.options,a={},i=e.theme.replace("-theme",""),n=A[i]||{};e.imperial?(e.altitudeFactor=this.__footFactor,a.label="ft"):(e.altitudeFactor=e.heightFactor||e.altitudeFactor||1,a.label=e.yLabel),this._registerDataAttribute({name:"z",skipNull:this.options.skipNullZCoords,init:function(t){var e=t.point;"alt"in e&&(e.meta.ele=e.alt);},fetch:function(a){return t._data[a].z*e.altitudeFactor},update:function(e,a){t.track_info.elevation_max=t.track_info.elevation_max||-1/0,t.track_info.elevation_min=t.track_info.elevation_max||1/0,t.track_info.elevation_avg=t.track_info.elevation_avg||0;var i=t._data,n=t.track_info;if(t.options.altitudeDeltaMax){var r=e-i[a>0?a-1:a].z,o=t.options.altitudeDeltaMax;Math.abs(r)>o&&(e=i[a-1].z+o*Math.sign(r));}return (e=s(e,t.options.altitudeRange))>n.elevation_max&&(n.elevation_max=e),e<n.elevation_min&&(n.elevation_min=e),n.elevation_avg=(e+n.elevation_avg)/2,e}}),this._registerAxisScale({axis:"y",position:"left",scale:"y",label:a.label,labelX:-3,labelY:-8,name:"altitude",visbile:"summary"!=this.options.altitude}),this._registerAxisGrid({axis:"y",position:"left",scale:"y"}),this._registerAreaPath({name:"altitude",label:"Altitude",scaleX:"distance",scaleY:"altitude",color:n.area||i,strokeColor:e.detached?n.stroke:"#000",strokeOpacity:"1",fillOpacity:e.detached?n.alpha||"0.8":1,preferCanvas:e.preferCanvas,visbile:"summary"!=this.options.altitude}),this._registerTooltip({name:"y",chart:function(t){return L._("y: ")+d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+a.label},marker:function(t){return d3.format("."+e.decimalsY+"f")(t[e.yAttr])+" "+a.label},order:10}),this._registerSummary({maxele:{label:"Max Elevation: ",value:function(t){return (t.elevation_max||0).toFixed(2)+"&nbsp;"+a.label},order:30},minele:{label:"Min Elevation: ",value:function(t){return (t.elevation_min||0).toFixed(2)+"&nbsp;"+a.label},order:30},avgele:{label:"Avg Elevation: ",value:function(t){return (t.elevation_avg||0).toFixed(2)+"&nbsp;"+a.label},order:30}});})),W.addInitHook((function(){var t=this;if(this.options.slope){var e=this.options,a={};a.label=e.slopeLabel||"%",this._registerDataAttribute({name:"slope",fetch:function(e){var a=t._data,i=1e3*(a[e].dist-a[e>0?e-1:e].dist),n=a[e].z-a[e>0?e-1:e].z;return isNaN(n)||0===i?0:n/i*100},update:function(e,a){t.track_info.ascent=t.track_info.ascent||0,t.track_info.descent=t.track_info.descent||0,t.track_info.slope_max=t.track_info.slope_max||-1/0,t.track_info.slope_min=t.track_info.slope_min||1/0,t.track_info.slope_avg=t.track_info.slope_avg||0;var i=t.track_info,n=t._data,r=n[a].z-n[a>0?a-1:a].z;if(t.options.slopeDeltaMax){var o=slop-n[a>0?a-1:a].slope,l=t.options.slopeDeltaMax;Math.abs(o)>l&&(e=n[a-1].slope+l*Math.sign(o));}return e=s(e,t.options.slopeRange),r>0?t.track_info.ascent+=r:r<0&&(t.track_info.descent-=r),e>i.slope_max&&(i.slope_max=e),e<i.slope_min&&(i.slope_min=e),i.slope_avg=(e+i.slope_avg)/2,L.Util.formatNum(e,2)}}),this._registerAxisScale({axis:"y",position:"right",scale:{min:-1,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"slope",visbile:"summary"!=this.options.slope}),this._registerAreaPath({name:"slope",label:"Slope",yAttr:"slope",scaleX:"distance",scaleY:"slope",color:"#F00",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25",visbile:"summary"!=this.options.slope}),this._registerTooltip({name:"slope",chart:function(t){return L._("m: ")+t.slope+a.label},marker:function(t){return Math.round(t.slope)+a.label},order:40}),this._registerSummary({ascent:{label:"Total Ascent: ",value:function(e){return Math.round(e.ascent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},descent:{label:"Total Descent: ",value:function(e){return Math.round(e.descent||0)+"&nbsp;"+(t.options.imperial?"ft":"m")},order:40},minslope:{label:"Min Slope: ",value:function(t){return Math.round(t.slope_min||0)+"&nbsp;"+a.label},order:40},maxslope:{label:"Max Slope: ",value:function(t){return Math.round(t.slope_max||0)+"&nbsp;"+a.label},order:40},avgslope:{label:"Avg Slope: ",value:function(t){return Math.round(t.slope_avg||0)+"&nbsp;"+a.label},order:40}});}})),W.addInitHook((function(){var t=this;if(this.options.speed||this.options.acceleration){var e=this.options,a={};a.label=e.speedLabel||L._(e.imperial?"mph":"km/h"),e.speedFactor=e.speedFactor||1,this._registerDataAttribute({name:"speed",init:function(){},fetch:function(a){var i=t._data,n=1e3*(i[a].dist-i[a>0?a-1:a].dist),r=i[a].time-i[a>0?a-1:a].time;return r>0?Math.abs(n/r*e.timeFactor)*e.speedFactor:0},update:function(e,a){t.track_info.speed_max=t.track_info.speed_max||-1/0,t.track_info.speed_min=t.track_info.speed_min||1/0,t.track_info.speed_avg=t.track_info.speed_avg||0;var i=t._data,n=t.track_info;if(t.options.speedDeltaMax){var r=e-i[a>0?a-1:a].speed,o=t.options.speedDeltaMax;Math.abs(r)>o&&(e=i[a-1].speed+o*Math.sign(r));}return (e=s(e,t.options.speedRange))>n.speed_max&&(n.speed_max=e),e<n.speed_min&&(n.speed_min=e),n.speed_avg=(e+n.speed_avg)/2,L.Util.formatNum(e,2)}}),this.options.speed&&"summary"!=this.options.speed&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"speed"}),this._registerAreaPath({name:"speed",label:"Speed",yAttr:"speed",scaleX:"distance",scaleY:"speed",color:"#03ffff",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this.options.speed&&(this._registerTooltip({name:"speed",chart:function(t){return L._("v: ")+t.speed+" "+a.label},marker:function(t){return Math.round(t.speed)+" "+a.label},order:50}),this._registerSummary({minspeed:{label:"Min Speed: ",value:function(t){return Math.round(t.speed_min||0)+"&nbsp;"+a.label},order:50},maxspeed:{label:"Max Speed: ",value:function(t){return Math.round(t.speed_max||0)+"&nbsp;"+a.label},order:50},avgspeed:{label:"Avg Speed: ",value:function(t){return Math.round(t.speed_avg||0)+"&nbsp;"+a.label},order:50}}));}})),W.addInitHook((function(){var t=this;if(this.options.acceleration){var e=this.options,a={};a.label=e.accelerationLabel||L._(e.imperial?"ft/s²":"m/s²"),e.accelerationFactor=e.accelerationFactor||1,this._registerDataAttribute({name:"acceleration",init:function(){},fetch:function(a){var i=t._data,n=(i[a].speed-i[a>0?a-1:a].speed)*(1e3/e.timeFactor),r=(i[a].time-i[a>0?a-1:a].time)/1e3;return r>0?Math.abs(n/r)*e.accelerationFactor:0},update:function(e,a){t.track_info.acceleration_max=t.track_info.acceleration_max||-1/0,t.track_info.acceleration_min=t.track_info.acceleration_min||1/0,t.track_info.acceleration_avg=t.track_info.acceleration_avg||0;var i=t._data,n=t.track_info;if(t.options.accelerationDeltaMax){var r=e-i[a>0?a-1:a].acceleration,o=t.options.accelerationDeltaMax;Math.abs(r)>o&&(e=i[a-1].acceleration+o*Math.sign(r));}return (e=s(e,t.options.accelerationRange))>n.acceleration_max&&(n.acceleration_max=e),e<n.acceleration_min&&(n.acceleration_min=e),n.acceleration_avg=(e+n.acceleration_avg)/2,L.Util.formatNum(e,2)}}),"summary"!=this.options.acceleration&&(this._registerAxisScale({axis:"y",position:"right",scale:{min:0,max:1},tickPadding:16,label:a.label,labelX:25,labelY:-8,name:"acceleration"}),this._registerAreaPath({name:"acceleration",label:"Acceleration",yAttr:"acceleration",scaleX:"distance",scaleY:"acceleration",color:"#050402",strokeColor:"#000",strokeOpacity:"0.5",fillOpacity:"0.25"})),this._registerTooltip({name:"acceleration",chart:function(t){return L._("a: ")+t.acceleration+" "+a.label},marker:function(t){return Math.round(t.acceleration)+" "+a.label},order:60}),this._registerSummary({minacceleration:{label:"Min Acceleration: ",value:function(t){return Math.round(t.acceleration_min||0)+"&nbsp;"+a.label},order:60},maxacceleration:{label:"Max Acceleration: ",value:function(t){return Math.round(t.acceleration_max||0)+"&nbsp;"+a.label},order:60},avgacceleration:{label:"Avg Acceleration: ",value:function(t){return Math.round(t.acceleration_avg||0)+"&nbsp;"+a.label},order:60}});}})),W.Utils=C,W.Components=X,W.Chart=U,R=L.i18n.bind({}),L.i18n=L._=function(t,e){return L.locale&&L.locales[L.locale]&&""==L.locales[L.locale][t]&&(L.locales[L.locale][t]="​"),R.call(null,t,e)},W.addInitHook((function(){this.enableDragging=this.enableBrush,this.disableDragging=this.disableBrush,this.loadChart=this.addTo,this.loadData=this.load,this.loadGPX=this.load,this.loadGeoJSON=this.load,this.loadXML=this.load,this.loadFile=this.load,this._addGPXData=this._addGeoJSONData,this._registerFocusLabel=this._registerTooltip;})),L.control.elevation=function(t){return new W(t)};}));
1133
1133
 
@@ -1136,11 +1136,11 @@ this._chart&&this._container&&(this.fire("elechart_axis"),this.fire("elechart_ar
1136
1136
  var leaflet_markercluster = {exports: {}};
1137
1137
 
1138
1138
  (function (module, exports) {
1139
- !function(e,t){t(exports);}(utils.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});});
1139
+ !function(e,t){t(exports);}(pagination.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});});
1140
1140
 
1141
1141
  }(leaflet_markercluster, leaflet_markercluster.exports));
1142
1142
 
1143
- 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-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:\" — \"}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:\"✖\";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - 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}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{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;height:100%;width:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px;height:14px;border:4px #ffffff solid}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker{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;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}";
1143
+ 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-detached{font:12px/1.5 Helvetica Neue, Arial, Helvetica, sans-serif;height:auto;width:100%;position:relative;z-index:0}.elevation-detached .elevation{width:100%}.elevation-detached .background{max-width:100%}.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2);border-radius:5px;overflow:visible;display:block;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.elevation-control.elevation .axis line,.elevation-control.elevation .axis path{stroke:#2d1130;stroke-width:1;fill:none}.elevation-control.elevation .grid .tick line{stroke:#eee;stroke-width:1px;shape-rendering:crispEdges}.elevation-control.elevation .grid path{stroke-width:0;pointer-events:none}.elevation-control.elevation .axis text,.elevation-control.elevation .point text{fill:#000;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:2px}.elevation-control.elevation .y.axis text{text-anchor:end}.elevation-control.elevation .area{fill:#4682b4;stroke:#000;stroke-width:1.2;paint-order:stroke fill}.elevation-detached .elevation-control.elevation .area{fill-opacity:0.8}.elevation-control.elevation .horizontal-drag-line{stroke:transparent;cursor:row-resize;stroke-width:1.1;stroke-dasharray:5}.elevation-control.elevation .active .horizontal-drag-line{stroke:#000}.elevation-control.elevation .horizontal-drag-label{font-weight:700;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}.elevation-control.elevation .ruler{cursor:row-resize;color:#000}.elevation-control.elevation .mouse-focus-line{stroke:#0d1821;stroke-width:1;pointer-events:none}.elevation-control.elevation .mouse-focus-label-rect{fill:#000;fill-opacity:0.75;pointer-events:none;stroke-width:1;stroke:#444}.elevation-control.elevation .mouse-focus-label-text{fill:#fff;pointer-events:none;font-size:10px}.elevation-control.elevation .brush .overlay{cursor:unset}.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4);stroke:none;fill-opacity:unset}.elevation-control.elevation .elevation-toggle{cursor:pointer;-webkit-box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);box-shadow:0 1px 7px rgba(0, 0, 0, 0.4);border-radius:5px;width:36px;height:36px;background-color:#f8f8f9}.elevation-summary{font-family:Lucida Grande, Lucida Sans Unicode, Verdana, Arial, Helvetica, sans-serif;font-size:12px;margin:0 auto}.leaflet-control-container .elevation-summary{text-shadow:1.5px 0 0 #fff, -1.5px 0 0 #fff, 0 1.5px 0 #fff, 0 -1.5px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff}.elevation-detached .elevation-summary{margin:0 45px}.elevation-summary.multiline-summary{margin-right:30px}.elevation-detached .elevation-summary.multiline-summary{margin-bottom:12px;margin-top:12px;line-height:2}.elevation-summary.inline-summary>span:not(:last-child):after{content:\" — \"}.elevation-summary.multiline-summary>span{display:block}.elevation-summary.multiline-summary .download{float:right;margin-top:-2.5em;font-weight:700;font-size:1.2em}.elevation-detached .elevation-summary.multiline-summary .download{margin-top:-3.5em}.elevation-summary .summaryvalue{font-weight:700}.elevation-control.elevation-collapsed .background,.elevation-control.elevation-collapsed .elevation-summary{display:none}.elevation-control.elevation-collapsed .elevation-toggle{display:block}.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation.svg) no-repeat 50%}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button{background:transparent;position:absolute;right:5px;top:5px;height:20px;width:20px}.elevation-control.elevation.elevation-expanded .elevation-toggle-icon.close-button:before{content:\"✖\";display:inline-block;color:#000;position:absolute;left:0;right:0;top:0;bottom:0;line-height:20px;text-align:center;font-weight:700;font-size:15px}.elevation-control.elevation g.area>foreignObject{pointer-events:none}.leaflet-elevation-pane .height-focus,.leaflet-overlay-pane .height-focus{stroke:#000;fill:#fff}.leaflet-elevation-pane .height-focus.line,.leaflet-overlay-pane .height-focus.line{pointer-events:none;stroke-width:2}.leaflet-elevation-pane .height-focus-label,.leaflet-overlay-pane .height-focus-label{font-size:12px;font-weight:600;fill:#000;paint-order:stroke;stroke:#fff;stroke-width:2px}.elevation-waypoint-icon:before{background:url(../images/elevation-pushpin.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-position-icon:before{background:url(../images/elevation-position.svg) no-repeat 50%/contain;content:\"\";width:100%;height:100%;display:inline-block}.elevation-polyline{-webkit-filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);filter:drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF)}.elevation-placeholder{margin:auto;height:auto;width:100%}.elevation-placeholder~*{display:none !important}.lime-theme.elevation-control.elevation .background{background-color:rgba(156, 194, 34, 0.2)}.lime-theme.elevation-control.elevation .axis line,.lime-theme.elevation-control.elevation .axis path{stroke:#566b13}.lime-theme.elevation-control.elevation .grid .tick line{stroke:#ccc}.lime-theme.elevation-control.elevation .brush .selection{fill:rgba(99, 126, 11, 0.4)}.lime-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-lime.svg) no-repeat 50%}.lime-theme.elevation-control.elevation .area{fill:#9cc222}.lime-theme.elevation-control.elevation .mouse-focus-line{stroke:#101404}.lime-theme.height-focus{stroke:#000;fill:#9cc222}.lime-theme.elevation-polyline{stroke:#566b13}.steelblue-theme.elevation-control.elevation .background{background-color:rgba(70, 130, 180, 0.2)}.steelblue-theme.elevation-control.elevation .axis line,.steelblue-theme.elevation-control.elevation .axis path{stroke:#0d1821}.steelblue-theme.elevation-control.elevation .brush .selection{fill:rgba(23, 74, 117, 0.4)}.steelblue-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-steelblue.svg) no-repeat 50%}.steelblue-theme.elevation-control.elevation .area{fill:#4682b4}.steelblue-theme.elevation-control.elevation .mouse-focus-line{stroke:#0d1821}.steelblue-theme.height-focus{stroke:#000;fill:#4682b4}.steelblue-theme.elevation-polyline{stroke:#4682b4}.purple-theme.elevation-control.elevation .background{background-color:rgba(115, 44, 123, 0.2)}.purple-theme.elevation-control.elevation .axis line,.purple-theme.elevation-control.elevation .axis path{stroke:#2d1130}.purple-theme.elevation-control.elevation .brush .selection{fill:rgba(74, 14, 80, 0.4)}.purple-theme.elevation-control.elevation .elevation-toggle-icon{background:url(../images/elevation-purple.svg) no-repeat 50%}.purple-theme.elevation-control.elevation .area{fill:#732c7b}.purple-theme.elevation-control.elevation .mouse-focus-line{stroke:#000}.purple-theme.height-focus{stroke:#000;fill:#732c7b}.purple-theme.elevation-polyline{stroke:#732c7b}.yellow-theme.elevation-control.elevation .area{fill:#ff0}.yellow-theme.elevation-polyline{stroke:#ff0}.red-theme.elevation-control.elevation .area{fill:red}.red-theme.elevation-polyline{stroke:red}.magenta-theme.elevation-control.elevation .background{background-color:hsla(0, 0%, 100%, 0.47)}.magenta-theme.elevation-control.elevation .area{fill:#ff005e}.magenta-theme.elevation-polyline{stroke:#ff005e}.lightblue-theme.elevation-control.elevation .area{fill:#36c;stroke:#000}.elevation-detached .lightblue-theme.elevation-control.elevation .area{fill-opacity:0.45;stroke:#36c}.lightblue-theme.height-focus{stroke:#000;fill:#fff}.lightblue-theme.elevation-polyline{stroke:#36c}.dist-marker{font-size:0.5rem;border:1px solid #777;border-radius:10px;text-align:center;color:#000;background:#fff}.leaflet-cluster-anim .leaflet-marker-icon,.leaflet-cluster-anim .leaflet-marker-shadow{-webkit-transition:-webkit-transform 0.3s ease-out, opacity 0.3s ease-in;-moz-transition:-moz-transform 0.3s ease-out, opacity 0.3s ease-in;-o-transition:-o-transform 0.3s ease-out, opacity 0.3s ease-in;-webkit-transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-in, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-in;transition:transform 0.3s ease-out, opacity 0.3s ease-in, -webkit-transform 0.3s ease-out}.leaflet-cluster-spider-leg{-webkit-transition:-webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;-moz-transition:-moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;-o-transition:-o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;-webkit-transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;transition:stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}#map{position:relative;font-family:var(--font-family);display:block}.leaflet-control-layers-toggle,.leaflet-retina .leaflet-control-layers-toggle{background-image:var(--layers-image-src)}.treks-map{height:100%}.trek-map{height:calc(100% - 350px - 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}.custom-theme .elevation-summary{margin:-12px 0px 0px 36px;font-size:8px;font-family:var(--font-family)}.custom-theme .elevation-summary :nth-child(3)::after{display:none}.custom-theme .elevation-summary .avgele{display:none}.treks-marker-cluster-group-icon,.touristic-content-marker-cluster-group-icon,.touristic-event-marker-cluster-group-icon{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;height:100%;width:100%}.trek-marker .trek-marker-container,.trek-marker .step-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .step-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .step-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .step-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .step-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .step-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:50% 50% 50% 0;border:2px solid #ffffff;width:100%;height:100%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.trek-marker .trek-marker-container img,.trek-marker .trek-marker-container .step-number,.trek-marker .step-marker-container img,.trek-marker .step-marker-container .step-number,.trek-marker .touristic-content-marker-container img,.trek-marker .touristic-content-marker-container .step-number,.trek-marker .touristic-event-marker-container img,.trek-marker .touristic-event-marker-container .step-number,.step-marker .trek-marker-container img,.step-marker .trek-marker-container .step-number,.step-marker .step-marker-container img,.step-marker .step-marker-container .step-number,.step-marker .touristic-content-marker-container img,.step-marker .touristic-content-marker-container .step-number,.step-marker .touristic-event-marker-container img,.step-marker .touristic-event-marker-container .step-number,.touristic-content-marker .trek-marker-container img,.touristic-content-marker .trek-marker-container .step-number,.touristic-content-marker .step-marker-container img,.touristic-content-marker .step-marker-container .step-number,.touristic-content-marker .touristic-content-marker-container img,.touristic-content-marker .touristic-content-marker-container .step-number,.touristic-content-marker .touristic-event-marker-container img,.touristic-content-marker .touristic-event-marker-container .step-number,.touristic-event-marker .trek-marker-container img,.touristic-event-marker .trek-marker-container .step-number,.touristic-event-marker .step-marker-container img,.touristic-event-marker .step-marker-container .step-number,.touristic-event-marker .touristic-content-marker-container img,.touristic-event-marker .touristic-content-marker-container .step-number,.touristic-event-marker .touristic-event-marker-container img,.touristic-event-marker .touristic-event-marker-container .step-number,.selected-trek-marker .trek-marker-container img,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container img,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container img,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container img,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container img,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container img,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container img,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container img,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container img,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container img,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container img,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container img,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container img,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container img,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container img,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container img,.selected-touristic-event-marker .touristic-event-marker-container .step-number,.departure-marker .trek-marker-container img,.departure-marker .trek-marker-container .step-number,.departure-marker .step-marker-container img,.departure-marker .step-marker-container .step-number,.departure-marker .touristic-content-marker-container img,.departure-marker .touristic-content-marker-container .step-number,.departure-marker .touristic-event-marker-container img,.departure-marker .touristic-event-marker-container .step-number,.arrival-marker .trek-marker-container img,.arrival-marker .trek-marker-container .step-number,.arrival-marker .step-marker-container img,.arrival-marker .step-marker-container .step-number,.arrival-marker .touristic-content-marker-container img,.arrival-marker .touristic-content-marker-container .step-number,.arrival-marker .touristic-event-marker-container img,.arrival-marker .touristic-event-marker-container .step-number{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;z-index:20;width:24px !important}.trek-marker .trek-marker-container,.trek-marker .touristic-content-marker-container,.trek-marker .touristic-event-marker-container,.step-marker .trek-marker-container,.step-marker .touristic-content-marker-container,.step-marker .touristic-event-marker-container,.touristic-content-marker .trek-marker-container,.touristic-content-marker .touristic-content-marker-container,.touristic-content-marker .touristic-event-marker-container,.touristic-event-marker .trek-marker-container,.touristic-event-marker .touristic-content-marker-container,.touristic-event-marker .touristic-event-marker-container,.selected-trek-marker .trek-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container,.departure-marker .trek-marker-container,.departure-marker .touristic-content-marker-container,.departure-marker .touristic-event-marker-container,.arrival-marker .trek-marker-container,.arrival-marker .touristic-content-marker-container,.arrival-marker .touristic-event-marker-container{background-color:var(--color-surface)}.trek-marker .step-marker-container,.step-marker .step-marker-container,.touristic-content-marker .step-marker-container,.touristic-event-marker .step-marker-container,.selected-trek-marker .step-marker-container,.selected-step-marker .step-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-event-marker .step-marker-container,.departure-marker .step-marker-container,.arrival-marker .step-marker-container{background-color:var(--color-surface-variant)}.departure-marker{background-color:#008000;border-radius:14px;width:100%;height:100%;border:4px #ffffff solid}.arrival-marker{background-color:#ff0000;border-radius:14px;width:14px;height:14px;border:4px #ffffff solid}.selected-trek-marker,.selected-step-marker,.selected-touristic-content-marker,.selected-touristic-event-marker{height:100%;width:100%}.selected-trek-marker .trek-marker-container,.selected-trek-marker .step-marker-container,.selected-trek-marker .touristic-content-marker-container,.selected-trek-marker .touristic-event-marker-container,.selected-step-marker .trek-marker-container,.selected-step-marker .step-marker-container,.selected-step-marker .touristic-content-marker-container,.selected-step-marker .touristic-event-marker-container,.selected-touristic-content-marker .trek-marker-container,.selected-touristic-content-marker .step-marker-container,.selected-touristic-content-marker .touristic-content-marker-container,.selected-touristic-content-marker .touristic-event-marker-container,.selected-touristic-event-marker .trek-marker-container,.selected-touristic-event-marker .step-marker-container,.selected-touristic-event-marker .touristic-content-marker-container,.selected-touristic-event-marker .touristic-event-marker-container{width:100%;height:100%}.selected-trek-marker .trek-marker-container .trek-marker,.selected-trek-marker .trek-marker-container .step-number,.selected-trek-marker .step-marker-container .trek-marker,.selected-trek-marker .step-marker-container .step-number,.selected-trek-marker .touristic-content-marker-container .trek-marker,.selected-trek-marker .touristic-content-marker-container .step-number,.selected-trek-marker .touristic-event-marker-container .trek-marker,.selected-trek-marker .touristic-event-marker-container .step-number,.selected-step-marker .trek-marker-container .trek-marker,.selected-step-marker .trek-marker-container .step-number,.selected-step-marker .step-marker-container .trek-marker,.selected-step-marker .step-marker-container .step-number,.selected-step-marker .touristic-content-marker-container .trek-marker,.selected-step-marker .touristic-content-marker-container .step-number,.selected-step-marker .touristic-event-marker-container .trek-marker,.selected-step-marker .touristic-event-marker-container .step-number,.selected-touristic-content-marker .trek-marker-container .trek-marker,.selected-touristic-content-marker .trek-marker-container .step-number,.selected-touristic-content-marker .step-marker-container .trek-marker,.selected-touristic-content-marker .step-marker-container .step-number,.selected-touristic-content-marker .touristic-content-marker-container .trek-marker,.selected-touristic-content-marker .touristic-content-marker-container .step-number,.selected-touristic-content-marker .touristic-event-marker-container .trek-marker,.selected-touristic-content-marker .touristic-event-marker-container .step-number,.selected-touristic-event-marker .trek-marker-container .trek-marker,.selected-touristic-event-marker .trek-marker-container .step-number,.selected-touristic-event-marker .step-marker-container .trek-marker,.selected-touristic-event-marker .step-marker-container .step-number,.selected-touristic-event-marker .touristic-content-marker-container .trek-marker,.selected-touristic-event-marker .touristic-content-marker-container .step-number,.selected-touristic-event-marker .touristic-event-marker-container .trek-marker,.selected-touristic-event-marker .touristic-event-marker-container .step-number{width:32px !important}.step-marker,.selected-step-marker{color:var(--color-on-surface-variant)}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background-color:var(--color-background);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-container);border-bottom-color:var(--color-on-primary-container);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.trek-departure-popup,.touristic-content-coordinates-popup,.touristic-event-coordinates-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.trek-departure-popup img,.touristic-content-coordinates-popup img,.touristic-event-coordinates-popup img{border-top-left-radius:var(--border-radius, 8px);border-top-right-radius:var(--border-radius, 8px)}.trek-departure-popup .trek-name,.trek-departure-popup .touristic-content-name,.trek-departure-popup .touristic-event-name,.touristic-content-coordinates-popup .trek-name,.touristic-content-coordinates-popup .touristic-content-name,.touristic-content-coordinates-popup .touristic-event-name,.touristic-event-coordinates-popup .trek-name,.touristic-event-coordinates-popup .touristic-content-name,.touristic-event-coordinates-popup .touristic-event-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px;padding:8px}.trek-departure-popup .trek-button,.trek-departure-popup .touristic-content-button,.trek-departure-popup .touristic-event-button,.touristic-content-coordinates-popup .trek-button,.touristic-content-coordinates-popup .touristic-content-button,.touristic-content-coordinates-popup .touristic-event-button,.touristic-event-coordinates-popup .trek-button,.touristic-event-coordinates-popup .touristic-content-button,.touristic-event-coordinates-popup .touristic-event-button{margin:0px 8px 8px 8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;-webkit-tap-highlight-color:transparent;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;background-color:var(--color-background);color:var(--color-on-surface);padding:12px 24px;border-radius:var(--border-radius, 20px);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;gap:8px;white-space:nowrap;line-height:20px;letter-spacing:0.1000000015px;font-size:14px;font-weight:500;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);-webkit-transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:-webkit-box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s;transition:box-shadow 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;font-family:var(--font-family)}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.poi-tooltip .touristic-content-name,.poi-tooltip .touristic-event-name,.poi-tooltip .parking-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.information-desks-tooltip .touristic-content-name,.information-desks-tooltip .touristic-event-name,.information-desks-tooltip .parking-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name,.sensitive-area-tooltip .touristic-content-name,.sensitive-area-tooltip .touristic-event-name,.sensitive-area-tooltip .parking-name,.touristic-content-tooltip .poi-name,.touristic-content-tooltip .information-desks-name,.touristic-content-tooltip .sensitive-area-name,.touristic-content-tooltip .touristic-content-name,.touristic-content-tooltip .touristic-event-name,.touristic-content-tooltip .parking-name,.touristic-event-tooltip .poi-name,.touristic-event-tooltip .information-desks-name,.touristic-event-tooltip .sensitive-area-name,.touristic-event-tooltip .touristic-content-name,.touristic-event-tooltip .touristic-event-name,.touristic-event-tooltip .parking-name,.parking-tooltip .poi-name,.parking-tooltip .information-desks-name,.parking-tooltip .sensitive-area-name,.parking-tooltip .touristic-content-name,.parking-tooltip .touristic-event-name,.parking-tooltip .parking-name{color:var(--color-primary-app);font-weight:400;font-size:16px;line-height:24px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:var(--border-radius, 8px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-marker,.information-desks-marker,.touristic-content-marker,.touristic-event-marker{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;height:100%;width:100%}.poi-marker img,.information-desks-marker img,.touristic-content-marker img,.touristic-event-marker img{width:36px !important}.parking-marker{width:48px !important}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:100%;height:100%;font-size:24px;color:#ffffff}.map-bottom-space{min-height:var(--map-bottom-space-height);height:var(--map-bottom-space-height);width:100%;background-color:var(--color-background)}.leaflet-popup{bottom:40px !important;left:-70px !important}.leaflet-popup-content-wrapper{cursor:default;padding:0px;background-color:var(--color-background);-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.leaflet-popup-content{width:144px;margin:0}";
1144
1144
  const GrwMapStyle0 = grwMapCss;
1145
1145
 
1146
1146
  const GrwMap = class {
@@ -1175,7 +1175,7 @@ const GrwMap = class {
1175
1175
  this.isLargeView = false;
1176
1176
  }
1177
1177
  onCenterOnMap(event) {
1178
- this.map.setView(new utils.L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });
1178
+ this.map.setView(new pagination.L.LatLng(event.detail.latitude, event.detail.longitude), 17, { animate: false });
1179
1179
  }
1180
1180
  stepsIsInViewport(event) {
1181
1181
  if (this.currentStepsLayer) {
@@ -1266,19 +1266,19 @@ const GrwMap = class {
1266
1266
  this.map.setMaxZoom(this.maxZoom);
1267
1267
  }
1268
1268
  componentDidLoad() {
1269
- this.map = utils.L.map(this.mapRef, {
1269
+ this.map = pagination.L.map(this.mapRef, {
1270
1270
  center: this.center.split(',').map(Number),
1271
1271
  zoom: this.zoom,
1272
1272
  });
1273
- utils.L.control.scale({ metric: true, imperial: false }).addTo(this.map);
1274
- utils.L.control.locate({ showPopup: false }).addTo(this.map);
1273
+ pagination.L.control.scale({ metric: true, imperial: false }).addTo(this.map);
1274
+ pagination.L.control.locate({ showPopup: false }).addTo(this.map);
1275
1275
  const nameLayers = this.nameLayer ? this.nameLayer.split(',') : [];
1276
1276
  const urlLayers = this.urlLayer.split(',http').map((url, index) => (index === 0 ? url : 'http' + url));
1277
1277
  const attributionLayers = this.attributionLayer ? this.attributionLayer.split(',') : [];
1278
1278
  urlLayers.forEach((urlLayer, index) => {
1279
1279
  this.tileLayer.push({
1280
1280
  key: `${nameLayers[index]}`,
1281
- value: utils.bundle.exports.tileLayerOffline(urlLayer, {
1281
+ value: pagination.bundle.exports.tileLayerOffline(urlLayer, {
1282
1282
  maxZoom: this.maxZoom,
1283
1283
  attribution: `${attributionLayers[index] && attributionLayers[index] !== '' ? attributionLayers[index].concat(' | ') : ''}Powered by <a target="_blank" href="https://geotrek.fr/">Geotrek</a>`,
1284
1284
  crossOrigin: true,
@@ -1287,15 +1287,15 @@ const GrwMap = class {
1287
1287
  });
1288
1288
  this.tileLayer[0].value.addTo(this.map);
1289
1289
  if (urlLayers.length > 1) {
1290
- this.layersControl = utils.L.control
1290
+ this.layersControl = pagination.L.control
1291
1291
  .layers(this.tileLayer.reduce((tileLayers, tileLayer) => Object.assign(tileLayers, { [tileLayer.key]: tileLayer.value }), {}), {}, { collapsed: true })
1292
1292
  .addTo(this.map);
1293
1293
  }
1294
- utils.L.Control.Contract = utils.L.Control.extend({
1294
+ pagination.L.Control.Contract = pagination.L.Control.extend({
1295
1295
  onAdd: () => {
1296
- const contractContainer = utils.L.DomUtil.create('div');
1296
+ const contractContainer = pagination.L.DomUtil.create('div');
1297
1297
  contractContainer.className = 'leaflet-bar leaflet-control';
1298
- const contract = contractContainer.appendChild(utils.L.DomUtil.create('a'));
1298
+ const contract = contractContainer.appendChild(pagination.L.DomUtil.create('a'));
1299
1299
  contract.href = '#';
1300
1300
  contract.style.backgroundImage = `var(--contract-image-src)`;
1301
1301
  contractContainer.onclick = e => {
@@ -1305,10 +1305,10 @@ const GrwMap = class {
1305
1305
  return contractContainer;
1306
1306
  },
1307
1307
  });
1308
- utils.L.control.contract = opts => {
1309
- return new utils.L.Control.Contract(opts);
1308
+ pagination.L.control.contract = opts => {
1309
+ return new pagination.L.Control.Contract(opts);
1310
1310
  };
1311
- utils.L.control.contract({ position: 'topleft' }).addTo(this.map);
1311
+ pagination.L.control.contract({ position: 'topleft' }).addTo(this.map);
1312
1312
  if (utils.state.currentTrek) {
1313
1313
  this.addTrek();
1314
1314
  }
@@ -1486,7 +1486,7 @@ const GrwMap = class {
1486
1486
  }
1487
1487
  if (!this.treksLayer) {
1488
1488
  if ((treksCurrentDepartureCoordinates.length > 0 && !utils.state.currentMapBounds) || resetBounds) {
1489
- this.bounds = utils.L.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
1489
+ this.bounds = pagination.L.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
1490
1490
  }
1491
1491
  else {
1492
1492
  if (utils.state.currentMapBounds) {
@@ -1494,9 +1494,9 @@ const GrwMap = class {
1494
1494
  }
1495
1495
  }
1496
1496
  const treksIcons = await this.getIcons(treksFeatureCollection, 'practice');
1497
- this.treksLayer = utils.L.geoJSON(treksFeatureCollection, {
1498
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
1499
- icon: utils.L.divIcon({
1497
+ this.treksLayer = pagination.L.geoJSON(treksFeatureCollection, {
1498
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
1499
+ icon: pagination.L.divIcon({
1500
1500
  html: treksIcons[geoJsonPoint.properties.practice]
1501
1501
  ? `<div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker-icon" src=${treksIcons[geoJsonPoint.properties.practice]} /></div>`
1502
1502
  : `<div part="trek-marker-container" class="trek-marker-container"></div>`,
@@ -1508,30 +1508,26 @@ const GrwMap = class {
1508
1508
  }),
1509
1509
  onEachFeature: (geoJsonPoint, layer) => {
1510
1510
  layer.once('click', async () => {
1511
- const dataInStore = await utils.getDataInStore('images', geoJsonPoint.properties.imgSrc);
1512
- const imgSrc = dataInStore
1513
- ? window.URL.createObjectURL(utils.arrayBufferToBlob(dataInStore.data, dataInStore.type))
1514
- : geoJsonPoint.properties.imgSrc
1515
- ? geoJsonPoint.properties.imgSrc
1516
- : null;
1517
- const trekDeparturePopup = utils.L.DomUtil.create('div');
1511
+ const dataInStore = await this.getIcon(geoJsonPoint.properties.imgSrc);
1512
+ const imgSrc = dataInStore ? dataInStore : geoJsonPoint.properties.imgSrc ? geoJsonPoint.properties.imgSrc : null;
1513
+ const trekDeparturePopup = pagination.L.DomUtil.create('div');
1518
1514
  /* @ts-ignore */
1519
1515
  trekDeparturePopup.part = 'trek-departure-popup';
1520
1516
  trekDeparturePopup.className = 'trek-departure-popup';
1521
1517
  if (imgSrc) {
1522
- const trekImg = utils.L.DomUtil.create('img');
1518
+ const trekImg = pagination.L.DomUtil.create('img');
1523
1519
  /* @ts-ignore */
1524
1520
  trekImg.part = 'trek-image-popup';
1525
1521
  trekImg.src = imgSrc;
1526
1522
  trekDeparturePopup.appendChild(trekImg);
1527
1523
  }
1528
- const trekName = utils.L.DomUtil.create('div');
1524
+ const trekName = pagination.L.DomUtil.create('div');
1529
1525
  trekName.innerHTML = geoJsonPoint.properties.name;
1530
1526
  /* @ts-ignore */
1531
1527
  trekName.part = 'trek-name';
1532
1528
  trekName.className = 'trek-name';
1533
1529
  trekDeparturePopup.appendChild(trekName);
1534
- const trekButton = utils.L.DomUtil.create('button');
1530
+ const trekButton = pagination.L.DomUtil.create('button');
1535
1531
  trekButton.innerHTML = 'Afficher le détail';
1536
1532
  /* @ts-ignore */
1537
1533
  trekButton.part = 'trek-button';
@@ -1547,11 +1543,11 @@ const GrwMap = class {
1547
1543
  });
1548
1544
  },
1549
1545
  });
1550
- this.treksMarkerClusterGroup = utils.L.markerClusterGroup({
1546
+ this.treksMarkerClusterGroup = pagination.L.markerClusterGroup({
1551
1547
  showCoverageOnHover: false,
1552
1548
  removeOutsideVisibleBounds: false,
1553
1549
  iconCreateFunction: cluster => {
1554
- return utils.L.divIcon({
1550
+ return pagination.L.divIcon({
1555
1551
  html: '<div part="treks-marker-cluster-group-icon" class="treks-marker-cluster-group-icon">' + cluster.getChildCount() + '</div>',
1556
1552
  className: '',
1557
1553
  iconSize: 48,
@@ -1563,7 +1559,7 @@ const GrwMap = class {
1563
1559
  }
1564
1560
  else {
1565
1561
  if (treksCurrentDepartureCoordinates.length > 0) {
1566
- this.bounds = utils.L.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
1562
+ this.bounds = pagination.L.latLngBounds(treksCurrentDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
1567
1563
  }
1568
1564
  else {
1569
1565
  this.map.fire('moveend');
@@ -1589,24 +1585,24 @@ const GrwMap = class {
1589
1585
  handleTreksWithinBounds() {
1590
1586
  if ((utils.state.currentTreks && !utils.state.currentMapBounds) ||
1591
1587
  (utils.state.currentTreks && utils.state.currentMapBounds && utils.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
1592
- utils.state.treksWithinBounds = utils.state.currentTreks.filter(trek => this.map.getBounds().contains(utils.L.latLng(trek.departure_geom[1], trek.departure_geom[0])));
1588
+ utils.state.treksWithinBounds = utils.state.currentTreks.filter(trek => this.map.getBounds().contains(pagination.L.latLng(trek.departure_geom[1], trek.departure_geom[0])));
1593
1589
  }
1594
1590
  }
1595
1591
  handleTouristicContentsWithinBounds() {
1596
1592
  if ((utils.state.currentTouristicContents && !utils.state.currentMapBounds) ||
1597
1593
  (utils.state.currentTouristicContents && utils.state.currentMapBounds && utils.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
1598
- utils.state.touristicContentsWithinBounds = utils.state.currentTouristicContents.filter(touristicContent => this.map.getBounds().contains(utils.L.latLng(touristicContent.geometry.coordinates[1], touristicContent.geometry.coordinates[0])));
1594
+ utils.state.touristicContentsWithinBounds = utils.state.currentTouristicContents.filter(touristicContent => this.map.getBounds().contains(pagination.L.latLng(touristicContent.geometry.coordinates[1], touristicContent.geometry.coordinates[0])));
1599
1595
  }
1600
1596
  }
1601
1597
  handleTouristicEventsWithinBounds() {
1602
1598
  if ((utils.state.currentTouristicEvents && !utils.state.currentMapBounds) ||
1603
1599
  (utils.state.currentTouristicEvents && utils.state.currentMapBounds && utils.state.currentMapBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
1604
- utils.state.touristicEventsWithinBounds = utils.state.currentTouristicEvents.filter(touristicEvent => this.map.getBounds().contains(utils.L.latLng(touristicEvent.geometry.coordinates[1], touristicEvent.geometry.coordinates[0])));
1600
+ utils.state.touristicEventsWithinBounds = utils.state.currentTouristicEvents.filter(touristicEvent => this.map.getBounds().contains(pagination.L.latLng(touristicEvent.geometry.coordinates[1], touristicEvent.geometry.coordinates[0])));
1605
1601
  }
1606
1602
  }
1607
1603
  async addTrek() {
1608
1604
  var _a, _b, _c, _d;
1609
- const trekInStore = await utils.getDataInStore('treks', utils.state.currentTrek.id);
1605
+ const trekInStore = await pagination.getDataInStore('treks', utils.state.currentTrek.id);
1610
1606
  if (trekInStore) {
1611
1607
  this.map.setMaxZoom(this.trekTilesMaxZoomOffline);
1612
1608
  }
@@ -1622,7 +1618,7 @@ const GrwMap = class {
1622
1618
  geometry: utils.state.currentTrek.geometry,
1623
1619
  properties: {},
1624
1620
  };
1625
- this.currentTrekLayer = utils.L.geoJSON(currentTrekFeature, {
1621
+ this.currentTrekLayer = pagination.L.geoJSON(currentTrekFeature, {
1626
1622
  style: () => ({
1627
1623
  color: 'transparent',
1628
1624
  }),
@@ -1635,9 +1631,9 @@ const GrwMap = class {
1635
1631
  properties: { name: utils.state.currentTrek.advised_parking },
1636
1632
  geometry: { type: 'Point', coordinates: utils.state.currentTrek.parking_location },
1637
1633
  };
1638
- this.currentParkingLayer = utils.L.geoJSON(currentParking, {
1639
- pointToLayer: (_geoJsonPoint, latlng) => utils.L.marker(latlng, {
1640
- icon: utils.L.divIcon({
1634
+ this.currentParkingLayer = pagination.L.geoJSON(currentParking, {
1635
+ pointToLayer: (_geoJsonPoint, latlng) => pagination.L.marker(latlng, {
1636
+ icon: pagination.L.divIcon({
1641
1637
  html: `<img part="parking-marker" src=${parkingImageSrc} />`,
1642
1638
  className: '',
1643
1639
  iconSize: 48,
@@ -1647,11 +1643,11 @@ const GrwMap = class {
1647
1643
  }),
1648
1644
  onEachFeature: (geoJsonPoint, layer) => {
1649
1645
  layer.once('mouseover', () => {
1650
- const parkingTooltip = utils.L.DomUtil.create('div');
1646
+ const parkingTooltip = pagination.L.DomUtil.create('div');
1651
1647
  /* @ts-ignore */
1652
1648
  parkingTooltip.part = 'parking-tooltip';
1653
1649
  parkingTooltip.className = 'parking-tooltip';
1654
- const parkingName = utils.L.DomUtil.create('div');
1650
+ const parkingName = pagination.L.DomUtil.create('div');
1655
1651
  parkingName.innerHTML = geoJsonPoint.properties.name;
1656
1652
  /* @ts-ignore */
1657
1653
  parkingTooltip.part = 'parking-name';
@@ -1674,14 +1670,14 @@ const GrwMap = class {
1674
1670
  geometry: sensitiveArea.geometry,
1675
1671
  });
1676
1672
  }
1677
- this.currentSensitiveAreasLayer = utils.L.geoJSON(currentSensitiveAreasFeatureCollection, {
1673
+ this.currentSensitiveAreasLayer = pagination.L.geoJSON(currentSensitiveAreasFeatureCollection, {
1678
1674
  onEachFeature: (geoJsonPoint, layer) => {
1679
1675
  layer.once('mouseover', () => {
1680
- const sensitiveAreaTooltip = utils.L.DomUtil.create('div');
1676
+ const sensitiveAreaTooltip = pagination.L.DomUtil.create('div');
1681
1677
  /* @ts-ignore */
1682
1678
  sensitiveAreaTooltip.part = 'sensitive-area-tooltip';
1683
1679
  sensitiveAreaTooltip.className = 'sensitive-area-tooltip';
1684
- const sensitiveAreaName = utils.L.DomUtil.create('div');
1680
+ const sensitiveAreaName = pagination.L.DomUtil.create('div');
1685
1681
  sensitiveAreaName.innerHTML = geoJsonPoint.properties.name;
1686
1682
  /* @ts-ignore */
1687
1683
  sensitiveAreaName.part = 'sensitive-area-name';
@@ -1706,9 +1702,9 @@ const GrwMap = class {
1706
1702
  });
1707
1703
  }
1708
1704
  const poiIcons = await this.getIcons(currentPoisFeatureCollection, 'type_pictogram');
1709
- this.currentPoisLayer = utils.L.geoJSON(currentPoisFeatureCollection, {
1710
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
1711
- icon: utils.L.divIcon({
1705
+ this.currentPoisLayer = pagination.L.geoJSON(currentPoisFeatureCollection, {
1706
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
1707
+ icon: pagination.L.divIcon({
1712
1708
  html: poiIcons[geoJsonPoint.properties.type_pictogram]
1713
1709
  ? `<div part="poi-marker" class="poi-marker"><img src=${poiIcons[geoJsonPoint.properties.type_pictogram]} /></div>`
1714
1710
  : `<div part="poi-marker" class="poi-marker"><img /></div>`,
@@ -1719,11 +1715,11 @@ const GrwMap = class {
1719
1715
  }),
1720
1716
  onEachFeature: (geoJsonPoint, layer) => {
1721
1717
  layer.once('mouseover', () => {
1722
- const poiTooltip = utils.L.DomUtil.create('div');
1718
+ const poiTooltip = pagination.L.DomUtil.create('div');
1723
1719
  /* @ts-ignore */
1724
1720
  poiTooltip.part = 'poi-tooltip';
1725
1721
  poiTooltip.className = 'poi-tooltip';
1726
- const poiName = utils.L.DomUtil.create('div');
1722
+ const poiName = pagination.L.DomUtil.create('div');
1727
1723
  poiName.innerHTML = geoJsonPoint.properties.name;
1728
1724
  /* @ts-ignore */
1729
1725
  poiName.part = 'poi-name';
@@ -1750,10 +1746,10 @@ const GrwMap = class {
1750
1746
  });
1751
1747
  }
1752
1748
  const toutisticContentsIcons = await this.getIcons(currentTouristicContentsFeatureCollection, 'category_pictogram');
1753
- this.currentToutisticContentsLayer = utils.L.geoJSON(currentTouristicContentsFeatureCollection, {
1749
+ this.currentToutisticContentsLayer = pagination.L.geoJSON(currentTouristicContentsFeatureCollection, {
1754
1750
  pointToLayer: (geoJsonPoint, latlng) => {
1755
- return utils.L.marker(latlng, {
1756
- icon: utils.L.divIcon({
1751
+ return pagination.L.marker(latlng, {
1752
+ icon: pagination.L.divIcon({
1757
1753
  html: toutisticContentsIcons[geoJsonPoint.properties.category_pictogram]
1758
1754
  ? `<div part="touristic-content-marker" class="touristic-content-marker"><img src=${toutisticContentsIcons[geoJsonPoint.properties.category_pictogram]} /></div>`
1759
1755
  : `<div part="touristic-content-marker" class="touristic-content-marker"><img /></div>`,
@@ -1765,11 +1761,11 @@ const GrwMap = class {
1765
1761
  },
1766
1762
  onEachFeature: (geoJsonPoint, layer) => {
1767
1763
  layer.once('mouseover', () => {
1768
- const touristicContentTooltip = utils.L.DomUtil.create('div');
1764
+ const touristicContentTooltip = pagination.L.DomUtil.create('div');
1769
1765
  /* @ts-ignore */
1770
1766
  touristicContentTooltip.part = 'touristic-content-tooltip';
1771
1767
  touristicContentTooltip.className = 'touristic-content-tooltip';
1772
- const touristicContentName = utils.L.DomUtil.create('div');
1768
+ const touristicContentName = pagination.L.DomUtil.create('div');
1773
1769
  touristicContentName.innerHTML = geoJsonPoint.properties.name;
1774
1770
  /* @ts-ignore */
1775
1771
  touristicContentName.part = 'touristic-content-name';
@@ -1796,9 +1792,9 @@ const GrwMap = class {
1796
1792
  });
1797
1793
  }
1798
1794
  const toutisticEventsIcons = await this.getIcons(currentTouristicEventsFeatureCollection, 'type_pictogram');
1799
- this.currenttouristicEventsLayer = utils.L.geoJSON(currentTouristicEventsFeatureCollection, {
1800
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
1801
- icon: utils.L.divIcon({
1795
+ this.currenttouristicEventsLayer = pagination.L.geoJSON(currentTouristicEventsFeatureCollection, {
1796
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
1797
+ icon: pagination.L.divIcon({
1802
1798
  html: toutisticEventsIcons[geoJsonPoint.properties.type_pictogram]
1803
1799
  ? `
1804
1800
  <div part="touristic-event-marker" class="touristic-event-marker"><img src=${toutisticEventsIcons[geoJsonPoint.properties.type_pictogram]} /></div>`
@@ -1810,11 +1806,11 @@ const GrwMap = class {
1810
1806
  }),
1811
1807
  onEachFeature: (geoJsonPoint, layer) => {
1812
1808
  layer.once('mouseover', () => {
1813
- const touristicEventTooltip = utils.L.DomUtil.create('div');
1809
+ const touristicEventTooltip = pagination.L.DomUtil.create('div');
1814
1810
  /* @ts-ignore */
1815
1811
  touristicEventTooltip.part = 'touristic-event-tooltip';
1816
1812
  touristicEventTooltip.className = 'touristic-event-tooltip';
1817
- const touristicEventName = utils.L.DomUtil.create('div');
1813
+ const touristicEventName = pagination.L.DomUtil.create('div');
1818
1814
  /* @ts-ignore */
1819
1815
  touristicEventName.part = 'touristic-event-name';
1820
1816
  touristicEventName.innerHTML = geoJsonPoint.properties.name;
@@ -1841,9 +1837,9 @@ const GrwMap = class {
1841
1837
  }
1842
1838
  if (currentInformationDesksFeatureCollection.features.length > 0) {
1843
1839
  const informationDesksIcons = await this.getIcons(currentInformationDesksFeatureCollection, 'type_pictogram');
1844
- this.currentInformationDesksLayer = utils.L.geoJSON(currentInformationDesksFeatureCollection, {
1845
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
1846
- icon: utils.L.divIcon({
1840
+ this.currentInformationDesksLayer = pagination.L.geoJSON(currentInformationDesksFeatureCollection, {
1841
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
1842
+ icon: pagination.L.divIcon({
1847
1843
  html: informationDesksIcons[geoJsonPoint.properties.type_pictogram]
1848
1844
  ? `<div part="information-desks-marker" class="information-desks-marker"><img src=${informationDesksIcons[geoJsonPoint.properties.type_pictogram]} /></div>`
1849
1845
  : `<div part="information-desks-marker" class="information-desks-marker"><img /></div>`,
@@ -1854,11 +1850,11 @@ const GrwMap = class {
1854
1850
  }),
1855
1851
  onEachFeature: (geoJsonPoint, layer) => {
1856
1852
  layer.once('mouseover', () => {
1857
- const informationDesksTooltip = utils.L.DomUtil.create('div');
1853
+ const informationDesksTooltip = pagination.L.DomUtil.create('div');
1858
1854
  /* @ts-ignore */
1859
1855
  informationDesksTooltip.part = 'information-desks-tooltip';
1860
1856
  informationDesksTooltip.className = 'information-desks-tooltip';
1861
- const informationDesksName = utils.L.DomUtil.create('div');
1857
+ const informationDesksName = pagination.L.DomUtil.create('div');
1862
1858
  /* @ts-ignore */
1863
1859
  informationDesksName.part = 'information-desks-name';
1864
1860
  informationDesksName.innerHTML = geoJsonPoint.properties.name;
@@ -1881,11 +1877,11 @@ const GrwMap = class {
1881
1877
  geometry: utils.state.currentTrek.points_reference,
1882
1878
  });
1883
1879
  let index = 0;
1884
- this.currentReferencePointsLayer = utils.L.geoJSON(currentReferencePointsFeatureCollection, {
1880
+ this.currentReferencePointsLayer = pagination.L.geoJSON(currentReferencePointsFeatureCollection, {
1885
1881
  pointToLayer: (_geoJsonPoint, latlng) => {
1886
1882
  index += 1;
1887
- return utils.L.marker(latlng, {
1888
- icon: utils.L.divIcon({
1883
+ return pagination.L.marker(latlng, {
1884
+ icon: pagination.L.divIcon({
1889
1885
  html: `<div part="point-reference-icon" class="point-reference-icon">${index}</div>`,
1890
1886
  className: '',
1891
1887
  iconSize: 24,
@@ -1916,12 +1912,12 @@ const GrwMap = class {
1916
1912
  }
1917
1913
  }
1918
1914
  let stepIndex = 0;
1919
- this.currentStepsLayer = utils.L.geoJSON(stepsFeatureCollection, {
1915
+ this.currentStepsLayer = pagination.L.geoJSON(stepsFeatureCollection, {
1920
1916
  pointToLayer: (_geoJsonPoint, latlng) => {
1921
1917
  stepIndex += 1;
1922
- return utils.L.marker(latlng, {
1918
+ return pagination.L.marker(latlng, {
1923
1919
  zIndexOffset: 4000000,
1924
- icon: utils.L.divIcon({
1920
+ icon: pagination.L.divIcon({
1925
1921
  html: `<div part="step-marker" class="step-marker"><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${stepIndex}</div></div></div>`,
1926
1922
  className: '',
1927
1923
  iconSize: 32,
@@ -1932,28 +1928,24 @@ const GrwMap = class {
1932
1928
  },
1933
1929
  onEachFeature: (geoJsonPoint, layer) => {
1934
1930
  layer.once('click', async () => {
1935
- const dataInStore = await utils.getDataInStore('images', geoJsonPoint.properties.imgSrc);
1936
- const imgSrc = dataInStore
1937
- ? window.URL.createObjectURL(utils.arrayBufferToBlob(dataInStore.data, dataInStore.type))
1938
- : geoJsonPoint.properties.imgSrc
1939
- ? geoJsonPoint.properties.imgSrc
1940
- : null;
1941
- const trekDeparturePopup = utils.L.DomUtil.create('div');
1931
+ const dataInStore = await this.getIcon(geoJsonPoint.properties.imgSrc);
1932
+ const imgSrc = dataInStore ? dataInStore : geoJsonPoint.properties.imgSrc ? geoJsonPoint.properties.imgSrc : null;
1933
+ const trekDeparturePopup = pagination.L.DomUtil.create('div');
1942
1934
  /* @ts-ignore */
1943
1935
  trekDeparturePopup.part = 'trek-departure-popup';
1944
1936
  trekDeparturePopup.className = 'trek-departure-popup';
1945
1937
  if (imgSrc) {
1946
- const trekImg = utils.L.DomUtil.create('img');
1938
+ const trekImg = pagination.L.DomUtil.create('img');
1947
1939
  trekImg.src = imgSrc;
1948
1940
  trekDeparturePopup.appendChild(trekImg);
1949
1941
  }
1950
- const trekName = utils.L.DomUtil.create('div');
1942
+ const trekName = pagination.L.DomUtil.create('div');
1951
1943
  trekName.innerHTML = geoJsonPoint.properties.name;
1952
1944
  /* @ts-ignore */
1953
1945
  trekDeparturePopup.part = 'trek-name';
1954
1946
  trekName.className = 'trek-name';
1955
1947
  trekDeparturePopup.appendChild(trekName);
1956
- const trekButton = utils.L.DomUtil.create('button');
1948
+ const trekButton = pagination.L.DomUtil.create('button');
1957
1949
  trekButton.innerHTML = 'Afficher le détail';
1958
1950
  /* @ts-ignore */
1959
1951
  trekDeparturePopup.part = 'trek-button';
@@ -1976,9 +1968,9 @@ const GrwMap = class {
1976
1968
  'Max Elevation: ': 'Altitude max : ',
1977
1969
  };
1978
1970
  /* @ts-ignore */
1979
- utils.L.registerLocale('fr', elevationTranslation);
1971
+ pagination.L.registerLocale('fr', elevationTranslation);
1980
1972
  /* @ts-ignore */
1981
- utils.L.setLocale('fr');
1973
+ pagination.L.setLocale('fr');
1982
1974
  const elevationOptions = {
1983
1975
  srcFolder: 'https://unpkg.com/@raruto/leaflet-elevation/src/',
1984
1976
  elevationDiv: `#elevation`,
@@ -2018,7 +2010,7 @@ const GrwMap = class {
2018
2010
  max: 'elevation_max',
2019
2011
  },
2020
2012
  };
2021
- this.elevationControl = utils.L.control.elevation(Object.assign({}, elevationOptions)).addTo(this.map);
2013
+ this.elevationControl = pagination.L.control.elevation(Object.assign({}, elevationOptions)).addTo(this.map);
2022
2014
  const elevation = JSON.stringify({
2023
2015
  name: `${utils.state.currentTrek.name}`,
2024
2016
  type: 'FeatureCollection',
@@ -2041,11 +2033,11 @@ const GrwMap = class {
2041
2033
  ],
2042
2034
  };
2043
2035
  let index$1 = 0;
2044
- this.departureArrivalLayer = utils.L.geoJSON(departureArrival, {
2036
+ this.departureArrivalLayer = pagination.L.geoJSON(departureArrival, {
2045
2037
  pointToLayer: (_geoJsonPoint, latlng) => {
2046
2038
  index$1 += 1;
2047
- return utils.L.marker(latlng, {
2048
- icon: utils.L.divIcon({
2039
+ return pagination.L.marker(latlng, {
2040
+ icon: pagination.L.divIcon({
2049
2041
  html: `<div part="${index$1 === 1 ? 'departure-marker' : 'arrival-marker'}" class="${index$1 === 1 ? 'departure-marker' : 'arrival-marker'}"></div>`,
2050
2042
  className: '',
2051
2043
  iconSize: 14,
@@ -2086,10 +2078,10 @@ const GrwMap = class {
2086
2078
  });
2087
2079
  }
2088
2080
  else {
2089
- this.layersControl = utils.L.control.layers({}, overlays, { collapsed: true }).addTo(this.map);
2081
+ this.layersControl = pagination.L.control.layers({}, overlays, { collapsed: true }).addTo(this.map);
2090
2082
  }
2091
2083
  this.handleLayersControlEvent();
2092
- this.bounds = utils.L.latLngBounds(utils.state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2084
+ this.bounds = pagination.L.latLngBounds(utils.state.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2093
2085
  this.bounds && this.map.fitBounds(this.bounds);
2094
2086
  !this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
2095
2087
  }
@@ -2103,8 +2095,20 @@ const GrwMap = class {
2103
2095
  return icons;
2104
2096
  }
2105
2097
  async getIcon(pictogram) {
2106
- const dataInStore = await utils.getDataInStore('images', pictogram);
2107
- const icon = dataInStore ? window.URL.createObjectURL(utils.arrayBufferToBlob(dataInStore.data, dataInStore.type)) : pictogram ? pictogram : null;
2098
+ let icon;
2099
+ if (!utils.Capacitor.isNativePlatform()) {
2100
+ const dataInStore = await utils.checkFileInStore(pictogram);
2101
+ icon = dataInStore ? window.URL.createObjectURL((await utils.getFileInStore(pictogram)).data) : pictogram ? pictogram : null;
2102
+ }
2103
+ else {
2104
+ const image = await utils.Filesystem.getUri({
2105
+ path: pictogram,
2106
+ directory: utils.Directory.Data,
2107
+ });
2108
+ if (image) {
2109
+ icon = utils.Capacitor.convertFileSrc(image.uri);
2110
+ }
2111
+ }
2108
2112
  return icon;
2109
2113
  }
2110
2114
  async addSelectedCurrentTrek(id, customCoordinates) {
@@ -2129,10 +2133,10 @@ const GrwMap = class {
2129
2133
  this.removeSelectedCurrentTrek();
2130
2134
  utils.state.selectedTrekId = id;
2131
2135
  const treksIcons = await this.getIcons(treksFeatureCollection, 'practice');
2132
- this.selectedCurrentTrekLayer = utils.L.geoJSON(treksFeatureCollection, {
2133
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2136
+ this.selectedCurrentTrekLayer = pagination.L.geoJSON(treksFeatureCollection, {
2137
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2134
2138
  zIndexOffset: 4000000,
2135
- icon: utils.L.divIcon({
2139
+ icon: pagination.L.divIcon({
2136
2140
  html: treksIcons[geoJsonPoint.properties.practice]
2137
2141
  ? `<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"><img part="trek-marker" class="trek-marker" src=${treksIcons[geoJsonPoint.properties.practice]} /></div></div>`
2138
2142
  : `<div part="selected-trek-marker" class="selected-trek-marker"><div part="trek-marker-container" class="trek-marker-container"></div></div>`,
@@ -2144,30 +2148,26 @@ const GrwMap = class {
2144
2148
  }),
2145
2149
  onEachFeature: (geoJsonPoint, layer) => {
2146
2150
  layer.once('click', async () => {
2147
- const dataInStore = await utils.getDataInStore('images', geoJsonPoint.properties.imgSrc);
2148
- const imgSrc = dataInStore
2149
- ? window.URL.createObjectURL(utils.arrayBufferToBlob(dataInStore.data, dataInStore.type))
2150
- : geoJsonPoint.properties.imgSrc
2151
- ? geoJsonPoint.properties.imgSrc
2152
- : null;
2153
- const trekDeparturePopup = utils.L.DomUtil.create('div');
2151
+ const dataInStore = await this.getIcon(geoJsonPoint.properties.imgSrc);
2152
+ const imgSrc = dataInStore ? dataInStore : geoJsonPoint.properties.imgSrc ? geoJsonPoint.properties.imgSrc : null;
2153
+ const trekDeparturePopup = pagination.L.DomUtil.create('div');
2154
2154
  /* @ts-ignore */
2155
2155
  trekDeparturePopup.part = 'trek-departure-popup';
2156
2156
  trekDeparturePopup.className = 'trek-departure-popup';
2157
2157
  if (imgSrc) {
2158
- const trekImg = utils.L.DomUtil.create('img');
2158
+ const trekImg = pagination.L.DomUtil.create('img');
2159
2159
  trekImg.src = imgSrc;
2160
2160
  /* @ts-ignore */
2161
2161
  trekImg.part = 'trek-image';
2162
2162
  trekDeparturePopup.appendChild(trekImg);
2163
2163
  }
2164
- const trekName = utils.L.DomUtil.create('div');
2164
+ const trekName = pagination.L.DomUtil.create('div');
2165
2165
  trekName.innerHTML = geoJsonPoint.properties.name;
2166
2166
  /* @ts-ignore */
2167
2167
  trekName.part = 'trek-name';
2168
2168
  trekName.className = 'trek-name';
2169
2169
  trekDeparturePopup.appendChild(trekName);
2170
- const trekButton = utils.L.DomUtil.create('button');
2170
+ const trekButton = pagination.L.DomUtil.create('button');
2171
2171
  trekButton.innerHTML = 'Afficher le détail';
2172
2172
  /* @ts-ignore */
2173
2173
  trekButton.part = 'trek-button';
@@ -2224,10 +2224,10 @@ const GrwMap = class {
2224
2224
  }
2225
2225
  this.removeSelectedCurrentStep();
2226
2226
  utils.state.selectedStepId = id;
2227
- this.selectedCurrentStepLayer = utils.L.geoJSON(stepsFeatureCollection, {
2228
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2227
+ this.selectedCurrentStepLayer = pagination.L.geoJSON(stepsFeatureCollection, {
2228
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2229
2229
  zIndexOffset: 4000000,
2230
- icon: utils.L.divIcon({
2230
+ icon: pagination.L.divIcon({
2231
2231
  html: `<div part="selected-step-marker" class="selected-step-marker" ><div part="step-marker-container" class="step-marker-container"><div part="step-number" class="step-number">${geoJsonPoint.properties.index}</div></div></div>`,
2232
2232
  className: '',
2233
2233
  iconSize: 48,
@@ -2237,30 +2237,26 @@ const GrwMap = class {
2237
2237
  }),
2238
2238
  onEachFeature: (geoJsonPoint, layer) => {
2239
2239
  layer.once('click', async () => {
2240
- const dataInStore = await utils.getDataInStore('images', geoJsonPoint.properties.imgSrc);
2241
- const imgSrc = dataInStore
2242
- ? window.URL.createObjectURL(utils.arrayBufferToBlob(dataInStore.data, dataInStore.type))
2243
- : geoJsonPoint.properties.imgSrc
2244
- ? geoJsonPoint.properties.imgSrc
2245
- : null;
2246
- const trekDeparturePopup = utils.L.DomUtil.create('div');
2240
+ const dataInStore = await this.getIcon(geoJsonPoint.properties.imgSrc);
2241
+ const imgSrc = dataInStore ? dataInStore : geoJsonPoint.properties.imgSrc ? geoJsonPoint.properties.imgSrc : null;
2242
+ const trekDeparturePopup = pagination.L.DomUtil.create('div');
2247
2243
  /* @ts-ignore */
2248
2244
  trekDeparturePopup.part = 'trek-departure-popup';
2249
2245
  trekDeparturePopup.className = 'trek-departure-popup';
2250
2246
  if (imgSrc) {
2251
- const trekImg = utils.L.DomUtil.create('img');
2247
+ const trekImg = pagination.L.DomUtil.create('img');
2252
2248
  /* @ts-ignore */
2253
2249
  trekImg.part = 'trek-image';
2254
2250
  trekImg.src = imgSrc;
2255
2251
  trekDeparturePopup.appendChild(trekImg);
2256
2252
  }
2257
- const trekName = utils.L.DomUtil.create('div');
2253
+ const trekName = pagination.L.DomUtil.create('div');
2258
2254
  trekName.innerHTML = geoJsonPoint.properties.name;
2259
2255
  /* @ts-ignore */
2260
2256
  trekName.part = 'trek-name';
2261
2257
  trekName.className = 'trek-name';
2262
2258
  trekDeparturePopup.appendChild(trekName);
2263
- const trekButton = utils.L.DomUtil.create('button');
2259
+ const trekButton = pagination.L.DomUtil.create('button');
2264
2260
  trekButton.innerHTML = 'Afficher le détail';
2265
2261
  /* @ts-ignore */
2266
2262
  trekButton.part = 'trek-name';
@@ -2373,7 +2369,7 @@ const GrwMap = class {
2373
2369
  geometry: trekLine.geometry,
2374
2370
  properties: {},
2375
2371
  };
2376
- this.currentTrekLayer = utils.L.geoJSON(currentTrekFeature, {
2372
+ this.currentTrekLayer = pagination.L.geoJSON(currentTrekFeature, {
2377
2373
  style: () => ({
2378
2374
  color: this.colorTrekLine,
2379
2375
  }),
@@ -2407,9 +2403,9 @@ const GrwMap = class {
2407
2403
  }
2408
2404
  if (!this.currentToutisticContentLayer) {
2409
2405
  const toutisticContentIcons = await this.getIcons(touristicContentsFeatureCollection, 'practice');
2410
- this.currentToutisticContentLayer = utils.L.geoJSON(touristicContentsFeatureCollection, {
2411
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2412
- icon: utils.L.divIcon({
2406
+ this.currentToutisticContentLayer = pagination.L.geoJSON(touristicContentsFeatureCollection, {
2407
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2408
+ icon: pagination.L.divIcon({
2413
2409
  html: toutisticContentIcons[geoJsonPoint.properties.practice]
2414
2410
  ? `<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${toutisticContentIcons[geoJsonPoint.properties.practice]} /></div></div>`
2415
2411
  : `<div part="touristic-content-marker" class="touristic-content-marker" ><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,
@@ -2454,7 +2450,7 @@ const GrwMap = class {
2454
2450
  }
2455
2451
  if (!this.toutisticContentsLayer) {
2456
2452
  if ((touristicContentsCurrentCoordinates.length > 0 && !utils.state.currentMapBounds) || resetBounds) {
2457
- this.bounds = utils.L.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2453
+ this.bounds = pagination.L.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2458
2454
  }
2459
2455
  else {
2460
2456
  if (utils.state.currentMapBounds) {
@@ -2462,9 +2458,9 @@ const GrwMap = class {
2462
2458
  }
2463
2459
  }
2464
2460
  const toutisticContentIcons = await this.getIcons(touristicContentsFeatureCollection, 'practice');
2465
- this.toutisticContentsLayer = utils.L.geoJSON(touristicContentsFeatureCollection, {
2466
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2467
- icon: utils.L.divIcon({
2461
+ this.toutisticContentsLayer = pagination.L.geoJSON(touristicContentsFeatureCollection, {
2462
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2463
+ icon: pagination.L.divIcon({
2468
2464
  html: toutisticContentIcons[geoJsonPoint.properties.practice]
2469
2465
  ? `<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" class="touristic-content-marker-icon" src=${toutisticContentIcons[geoJsonPoint.properties.practice]} /></div></div>`
2470
2466
  : `<div part="touristic-content-marker" class="touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,
@@ -2476,24 +2472,24 @@ const GrwMap = class {
2476
2472
  }),
2477
2473
  onEachFeature: (geoJsonPoint, layer) => {
2478
2474
  layer.once('click', () => {
2479
- const touristicContentCoordinatesPopup = utils.L.DomUtil.create('div');
2475
+ const touristicContentCoordinatesPopup = pagination.L.DomUtil.create('div');
2480
2476
  /* @ts-ignore */
2481
2477
  touristicContentCoordinatesPopup.part = 'touristic-content-coordinates-popup';
2482
2478
  touristicContentCoordinatesPopup.className = 'touristic-content-coordinates-popup';
2483
2479
  if (geoJsonPoint.properties.imgSrc) {
2484
- const touristicContentImg = utils.L.DomUtil.create('img');
2480
+ const touristicContentImg = pagination.L.DomUtil.create('img');
2485
2481
  /* @ts-ignore */
2486
2482
  touristicContentImg.part = 'touristic-content-coordinates-image';
2487
2483
  touristicContentImg.src = geoJsonPoint.properties.imgSrc;
2488
2484
  touristicContentCoordinatesPopup.appendChild(touristicContentImg);
2489
2485
  }
2490
- const touristicContentName = utils.L.DomUtil.create('div');
2486
+ const touristicContentName = pagination.L.DomUtil.create('div');
2491
2487
  touristicContentName.innerHTML = geoJsonPoint.properties.name;
2492
2488
  /* @ts-ignore */
2493
2489
  touristicContentCoordinatesPopup.part = 'touristic-content-name';
2494
2490
  touristicContentName.className = 'touristic-content-name';
2495
2491
  touristicContentCoordinatesPopup.appendChild(touristicContentName);
2496
- const touristicContentButton = utils.L.DomUtil.create('button');
2492
+ const touristicContentButton = pagination.L.DomUtil.create('button');
2497
2493
  touristicContentButton.innerHTML = 'Afficher le détail';
2498
2494
  /* @ts-ignore */
2499
2495
  touristicContentButton.part = 'touristic-content-button';
@@ -2507,11 +2503,11 @@ const GrwMap = class {
2507
2503
  });
2508
2504
  },
2509
2505
  });
2510
- this.touristicContentsMarkerClusterGroup = utils.L.markerClusterGroup({
2506
+ this.touristicContentsMarkerClusterGroup = pagination.L.markerClusterGroup({
2511
2507
  showCoverageOnHover: false,
2512
2508
  removeOutsideVisibleBounds: false,
2513
2509
  iconCreateFunction: cluster => {
2514
- return utils.L.divIcon({
2510
+ return pagination.L.divIcon({
2515
2511
  html: '<div part="touristic-content-marker-cluster-group-icon" class="touristic-content-marker-cluster-group-icon"><div>' + cluster.getChildCount() + '</div></div>',
2516
2512
  className: '',
2517
2513
  iconSize: 48,
@@ -2523,7 +2519,7 @@ const GrwMap = class {
2523
2519
  }
2524
2520
  else {
2525
2521
  if (touristicContentsCurrentCoordinates.length > 0) {
2526
- this.bounds = utils.L.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2522
+ this.bounds = pagination.L.latLngBounds(touristicContentsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2527
2523
  }
2528
2524
  else {
2529
2525
  this.map.fire('moveend');
@@ -2565,9 +2561,9 @@ const GrwMap = class {
2565
2561
  }
2566
2562
  if (!this.currentToutisticEventLayer) {
2567
2563
  const toutisticEventsIcons = await this.getIcons(touristicEventsFeatureCollection, 'type');
2568
- this.currentToutisticEventLayer = utils.L.geoJSON(touristicEventsFeatureCollection, {
2569
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2570
- icon: utils.L.divIcon({
2564
+ this.currentToutisticEventLayer = pagination.L.geoJSON(touristicEventsFeatureCollection, {
2565
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2566
+ icon: pagination.L.divIcon({
2571
2567
  html: toutisticEventsIcons[geoJsonPoint.properties.type]
2572
2568
  ? `<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${toutisticEventsIcons[geoJsonPoint.properties.type]} /></div></div>`
2573
2569
  : `<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,
@@ -2610,10 +2606,10 @@ const GrwMap = class {
2610
2606
  this.removeSelectedTouristicContent();
2611
2607
  utils.state.selectedTouristicContentId = id;
2612
2608
  const toutisticContentIcons = await this.getIcons(touristicContentFeatureCollection, 'category');
2613
- this.selectedTouristicContentLayer = utils.L.geoJSON(touristicContentFeatureCollection, {
2614
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2609
+ this.selectedTouristicContentLayer = pagination.L.geoJSON(touristicContentFeatureCollection, {
2610
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2615
2611
  zIndexOffset: 4000000,
2616
- icon: utils.L.divIcon({
2612
+ icon: pagination.L.divIcon({
2617
2613
  html: toutisticContentIcons[geoJsonPoint.properties.category]
2618
2614
  ? `<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"><img part="touristic-content-marker-icon" src=${toutisticContentIcons[geoJsonPoint.properties.category]} /></div></div>`
2619
2615
  : `<div part="selected-touristic-content-marker" class="selected-touristic-content-marker"><div part="touristic-content-marker-container" class="touristic-content-marker-container"></div></div>`,
@@ -2625,24 +2621,24 @@ const GrwMap = class {
2625
2621
  }),
2626
2622
  onEachFeature: (geoJsonPoint, layer) => {
2627
2623
  layer.once('click', () => {
2628
- const touristicContentDeparturePopup = utils.L.DomUtil.create('div');
2624
+ const touristicContentDeparturePopup = pagination.L.DomUtil.create('div');
2629
2625
  /* @ts-ignore */
2630
2626
  touristicContentDeparturePopup.part = 'touristic-content-coordinates-popup';
2631
2627
  touristicContentDeparturePopup.className = 'touristic-content-coordinates-popup';
2632
2628
  if (geoJsonPoint.properties.imgSrc) {
2633
- const touristicContentImg = utils.L.DomUtil.create('img');
2629
+ const touristicContentImg = pagination.L.DomUtil.create('img');
2634
2630
  /* @ts-ignore */
2635
2631
  touristicContentImg.part = 'touristic-content-coordinates-image';
2636
2632
  touristicContentImg.src = geoJsonPoint.properties.imgSrc;
2637
2633
  touristicContentDeparturePopup.appendChild(touristicContentImg);
2638
2634
  }
2639
- const touristicContentName = utils.L.DomUtil.create('div');
2635
+ const touristicContentName = pagination.L.DomUtil.create('div');
2640
2636
  touristicContentName.innerHTML = geoJsonPoint.properties.name;
2641
2637
  /* @ts-ignore */
2642
2638
  touristicContentName.part = 'touristic-content-name';
2643
2639
  touristicContentName.className = 'touristic-content-name';
2644
2640
  touristicContentDeparturePopup.appendChild(touristicContentName);
2645
- const touristicContentButton = utils.L.DomUtil.create('button');
2641
+ const touristicContentButton = pagination.L.DomUtil.create('button');
2646
2642
  touristicContentButton.innerHTML = 'Afficher le détail';
2647
2643
  /* @ts-ignore */
2648
2644
  touristicContentButton.part = 'touristic-content-button';
@@ -2700,7 +2696,7 @@ const GrwMap = class {
2700
2696
  }
2701
2697
  if (!this.touristicEventsLayer) {
2702
2698
  if ((touristicEventsCurrentCoordinates.length > 0 && !utils.state.currentMapBounds) || resetBounds) {
2703
- this.bounds = utils.L.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2699
+ this.bounds = pagination.L.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2704
2700
  }
2705
2701
  else {
2706
2702
  if (utils.state.currentMapBounds) {
@@ -2708,9 +2704,9 @@ const GrwMap = class {
2708
2704
  }
2709
2705
  }
2710
2706
  const touristicEventsIcons = await this.getIcons(touristicEventsFeatureCollection, 'type');
2711
- this.touristicEventsLayer = utils.L.geoJSON(touristicEventsFeatureCollection, {
2712
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2713
- icon: utils.L.divIcon({
2707
+ this.touristicEventsLayer = pagination.L.geoJSON(touristicEventsFeatureCollection, {
2708
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2709
+ icon: pagination.L.divIcon({
2714
2710
  html: touristicEventsIcons[geoJsonPoint.properties.type]
2715
2711
  ? `<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${touristicEventsIcons[geoJsonPoint.properties.type]} /></div></div>`
2716
2712
  : `<div part="touristic-event-marker" class="touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,
@@ -2722,24 +2718,24 @@ const GrwMap = class {
2722
2718
  }),
2723
2719
  onEachFeature: (geoJsonPoint, layer) => {
2724
2720
  layer.once('click', () => {
2725
- const touristicEventCoordinatesPopup = utils.L.DomUtil.create('div');
2721
+ const touristicEventCoordinatesPopup = pagination.L.DomUtil.create('div');
2726
2722
  /* @ts-ignore */
2727
2723
  touristicEventCoordinatesPopup.part = 'touristic-event-coordinates-popup';
2728
2724
  touristicEventCoordinatesPopup.className = 'touristic-event-coordinates-popup';
2729
2725
  if (geoJsonPoint.properties.imgSrc) {
2730
- const touristicEventImg = utils.L.DomUtil.create('img');
2726
+ const touristicEventImg = pagination.L.DomUtil.create('img');
2731
2727
  /* @ts-ignore */
2732
2728
  touristicEventImg.part = 'touristic-event-coordinates-image';
2733
2729
  touristicEventImg.src = geoJsonPoint.properties.imgSrc;
2734
2730
  touristicEventCoordinatesPopup.appendChild(touristicEventImg);
2735
2731
  }
2736
- const touristicEventName = utils.L.DomUtil.create('div');
2732
+ const touristicEventName = pagination.L.DomUtil.create('div');
2737
2733
  touristicEventName.innerHTML = geoJsonPoint.properties.name;
2738
2734
  /* @ts-ignore */
2739
2735
  touristicEventName.part = 'touristic-event-name';
2740
2736
  touristicEventName.className = 'touristic-event-name';
2741
2737
  touristicEventCoordinatesPopup.appendChild(touristicEventName);
2742
- const touristicEventButton = utils.L.DomUtil.create('button');
2738
+ const touristicEventButton = pagination.L.DomUtil.create('button');
2743
2739
  touristicEventButton.innerHTML = 'Afficher le détail';
2744
2740
  /* @ts-ignore */
2745
2741
  touristicEventButton.part = 'touristic-event-button';
@@ -2753,11 +2749,11 @@ const GrwMap = class {
2753
2749
  });
2754
2750
  },
2755
2751
  });
2756
- this.touristicEventsMarkerClusterGroup = utils.L.markerClusterGroup({
2752
+ this.touristicEventsMarkerClusterGroup = pagination.L.markerClusterGroup({
2757
2753
  showCoverageOnHover: false,
2758
2754
  removeOutsideVisibleBounds: false,
2759
2755
  iconCreateFunction: cluster => {
2760
- return utils.L.divIcon({
2756
+ return pagination.L.divIcon({
2761
2757
  html: '<div part="touristic-event-marker-cluster-group-icon" class="touristic-event-marker-cluster-group-icon"><div>' + cluster.getChildCount() + '</div></div>',
2762
2758
  className: '',
2763
2759
  iconSize: 48,
@@ -2769,7 +2765,7 @@ const GrwMap = class {
2769
2765
  }
2770
2766
  else {
2771
2767
  if (touristicEventsCurrentCoordinates.length > 0) {
2772
- this.bounds = utils.L.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2768
+ this.bounds = pagination.L.latLngBounds(touristicEventsCurrentCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
2773
2769
  }
2774
2770
  else {
2775
2771
  this.map.fire('moveend');
@@ -2814,10 +2810,10 @@ const GrwMap = class {
2814
2810
  this.removeSelectedTouristicEvent();
2815
2811
  utils.state.selectedTouristicEventId = id;
2816
2812
  const touristicEventsIcons = await this.getIcons(touristicEventFeatureCollection, 'category');
2817
- this.selectedTouristicEventLayer = utils.L.geoJSON(touristicEventFeatureCollection, {
2818
- pointToLayer: (geoJsonPoint, latlng) => utils.L.marker(latlng, {
2813
+ this.selectedTouristicEventLayer = pagination.L.geoJSON(touristicEventFeatureCollection, {
2814
+ pointToLayer: (geoJsonPoint, latlng) => pagination.L.marker(latlng, {
2819
2815
  zIndexOffset: 4000000,
2820
- icon: utils.L.divIcon({
2816
+ icon: pagination.L.divIcon({
2821
2817
  html: touristicEventsIcons[geoJsonPoint.properties.category]
2822
2818
  ? `<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"><img part="touristic-event-marker-icon" src=${touristicEventsIcons[geoJsonPoint.properties.category]} /></div></div>`
2823
2819
  : `<div part="selected-touristic-event-marker" class="selected-touristic-event-marker"><div part="touristic-event-marker-container" class="touristic-event-marker-container"></div></div>`,
@@ -2829,24 +2825,24 @@ const GrwMap = class {
2829
2825
  }),
2830
2826
  onEachFeature: (geoJsonPoint, layer) => {
2831
2827
  layer.once('click', () => {
2832
- const touristicEventDeparturePopup = utils.L.DomUtil.create('div');
2828
+ const touristicEventDeparturePopup = pagination.L.DomUtil.create('div');
2833
2829
  /* @ts-ignore */
2834
2830
  touristicEventDeparturePopup.part = 'touristic-event-coordinates-popup';
2835
2831
  touristicEventDeparturePopup.className = 'touristic-event-coordinates-popup';
2836
2832
  if (geoJsonPoint.properties.imgSrc) {
2837
- const touristicEventImg = utils.L.DomUtil.create('img');
2833
+ const touristicEventImg = pagination.L.DomUtil.create('img');
2838
2834
  /* @ts-ignore */
2839
2835
  touristicEventImg.part = 'touristic-event-coordinates-image';
2840
2836
  touristicEventImg.src = geoJsonPoint.properties.imgSrc;
2841
2837
  touristicEventDeparturePopup.appendChild(touristicEventImg);
2842
2838
  }
2843
- const touristicEventName = utils.L.DomUtil.create('div');
2839
+ const touristicEventName = pagination.L.DomUtil.create('div');
2844
2840
  touristicEventName.innerHTML = geoJsonPoint.properties.name;
2845
2841
  /* @ts-ignore */
2846
2842
  touristicEventName.part = 'touristic-event-name';
2847
2843
  touristicEventName.className = 'touristic-event-name';
2848
2844
  touristicEventDeparturePopup.appendChild(touristicEventName);
2849
- const touristicEventButton = utils.L.DomUtil.create('button');
2845
+ const touristicEventButton = pagination.L.DomUtil.create('button');
2850
2846
  touristicEventButton.innerHTML = 'Afficher le détail';
2851
2847
  /* @ts-ignore */
2852
2848
  touristicEventButton.part = 'touristic-event-button';
@@ -2882,7 +2878,7 @@ const GrwMap = class {
2882
2878
  render() {
2883
2879
  const layersImageSrc = index.getAssetPath(`${''}assets/layers.svg`);
2884
2880
  const contractImageSrc = index.getAssetPath(`${''}assets/contract.svg`);
2885
- return (index.h(index.Host, { key: 'a362a95f0d58cd33aee1c4b083a5ca177a93883a', style: {
2881
+ return (index.h(index.Host, { key: '0e4ab52a171738a6d74d3212684f0b82526f0890', style: {
2886
2882
  '--font-family': this.fontFamily,
2887
2883
  '--color-primary-app': this.colorPrimaryApp,
2888
2884
  '--color-on-surface': this.colorOnSurface,
@@ -2894,7 +2890,7 @@ const GrwMap = class {
2894
2890
  '--layers-image-src': `url(${layersImageSrc})`,
2895
2891
  '--contract-image-src': `url(${contractImageSrc})`,
2896
2892
  '--map-bottom-space-height': this.isLargeView ? '0px' : '80px',
2897
- } }, index.h("div", { key: 'c940430db4f0d17d16a4481f1f2217441fd33fac', id: "map", part: "map", class: utils.state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), utils.state.currentTrek && (index.h("div", null, index.h("div", { id: "elevation", part: "elevation", ref: el => (this.elevationRef = el) }), index.h("div", { part: "map-bottom-space", class: "map-bottom-space" }))), !this.mapIsReady && (index.h("div", { part: "map-loader-container", class: "map-loader-container" }, index.h("span", { part: "loader", class: "loader" })))));
2893
+ } }, index.h("div", { key: 'bc48422c4e1c8fffadb294af3b8da3fba8d9c95a', id: "map", part: "map", class: utils.state.currentTrek ? 'trek-map' : 'treks-map', ref: el => (this.mapRef = el) }), utils.state.currentTrek && (index.h("div", null, index.h("div", { id: "elevation", part: "elevation", ref: el => (this.elevationRef = el) }), index.h("div", { part: "map-bottom-space", class: "map-bottom-space" }))), !this.mapIsReady && (index.h("div", { part: "map-loader-container", class: "map-loader-container" }, index.h("span", { part: "loader", class: "loader" })))));
2898
2894
  }
2899
2895
  };
2900
2896
  GrwMap.style = GrwMapStyle0;
@@ -4084,7 +4080,7 @@ const GrwTouristicContentProvider = class {
4084
4080
  this.handleTouristicContent();
4085
4081
  }
4086
4082
  async handleTouristicContent() {
4087
- const touristicContentInStore = await utils.getDataInStore('touristicContents', this.touristicContentId);
4083
+ const touristicContentInStore = await pagination.getDataInStore('touristicContents', this.touristicContentId);
4088
4084
  if (touristicContentInStore && touristicContentInStore.offline) {
4089
4085
  this.handleOfflineTouristicContent(touristicContentInStore);
4090
4086
  }
@@ -4094,10 +4090,10 @@ const GrwTouristicContentProvider = class {
4094
4090
  }
4095
4091
  async handleOfflineTouristicContent(touristicContent) {
4096
4092
  if (!utils.state.cities) {
4097
- utils.state.cities = await utils.getAllDataInStore('cities');
4093
+ utils.state.cities = await pagination.getAllDataInStore('cities');
4098
4094
  }
4099
4095
  if (!utils.state.touristicContentCategories) {
4100
- utils.state.touristicContentCategories = await utils.getAllDataInStore('touristicContentCategories');
4096
+ utils.state.touristicContentCategories = await pagination.getAllDataInStore('touristicContentCategories');
4101
4097
  }
4102
4098
  utils.setFilesFromStore(touristicContent, utils.imagesRegExp);
4103
4099
  utils.state.currentTouristicContent = touristicContent;
@@ -4390,7 +4386,7 @@ const GrwTouristicEventProvider = class {
4390
4386
  this.handleTouristicEvent();
4391
4387
  }
4392
4388
  async handleTouristicEvent() {
4393
- const touristicEventInStore = await utils.getDataInStore('touristicEvents', this.touristicEventId);
4389
+ const touristicEventInStore = await pagination.getDataInStore('touristicEvents', this.touristicEventId);
4394
4390
  if (touristicEventInStore && touristicEventInStore.offline) {
4395
4391
  this.handleOfflineTouristicEvent(touristicEventInStore);
4396
4392
  }
@@ -4400,10 +4396,10 @@ const GrwTouristicEventProvider = class {
4400
4396
  }
4401
4397
  async handleOfflineTouristicEvent(touristicEvent) {
4402
4398
  if (!utils.state.cities) {
4403
- utils.state.cities = await utils.getAllDataInStore('cities');
4399
+ utils.state.cities = await pagination.getAllDataInStore('cities');
4404
4400
  }
4405
4401
  if (!utils.state.touristicEventTypes) {
4406
- utils.state.touristicEventTypes = await utils.getAllDataInStore('touristicEventTypes');
4402
+ utils.state.touristicEventTypes = await pagination.getAllDataInStore('touristicEventTypes');
4407
4403
  }
4408
4404
  utils.setFilesFromStore(touristicEvent, utils.imagesRegExp);
4409
4405
  utils.state.currentTouristicEvent = touristicEvent;
@@ -4682,7 +4678,6 @@ const GrwTrekDetail = class {
4682
4678
  this.cities = undefined;
4683
4679
  this.options = undefined;
4684
4680
  this.offline = false;
4685
- this.trek = undefined;
4686
4681
  this.emergencyNumber = undefined;
4687
4682
  this.fontFamily = 'Roboto';
4688
4683
  this.colorPrimaryApp = '#6b0030';
@@ -4916,42 +4911,42 @@ const GrwTrekDetail = class {
4916
4911
  }
4917
4912
  }
4918
4913
  async connectedCallback() {
4919
- this.currentTrek = this.trek ? this.trek : utils.state.currentTrek;
4920
- if (this.currentTrek) {
4921
- this.offline = this.currentTrek.offline;
4914
+ if (utils.state.currentTrek) {
4915
+ this.offline = utils.state.currentTrek.offline;
4922
4916
  this.defaultOptions = this.handleOptions();
4923
4917
  this.options = Object.assign(Object.assign({}, this.defaultOptions), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: true }) });
4924
- this.difficulty = utils.state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
4925
- this.route = utils.state.routes.find(route => route.id === this.currentTrek.route);
4926
- this.practice = utils.state.practices.find(practice => practice.id === this.currentTrek.practice);
4927
- this.themes = utils.state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
4928
- this.labels = utils.state.labels.filter(label => this.currentTrek.labels.includes(label.id));
4929
- this.sources = utils.state.sources.filter(source => this.currentTrek.source.includes(source.id));
4930
- this.accessibilities = utils.state.accessibilities.filter(accessibility => this.currentTrek.accessibilities.includes(accessibility.id));
4918
+ this.difficulty = utils.state.difficulties.find(difficulty => difficulty.id === utils.state.currentTrek.difficulty);
4919
+ this.route = utils.state.routes.find(route => route.id === utils.state.currentTrek.route);
4920
+ this.practice = utils.state.practices.find(practice => practice.id === utils.state.currentTrek.practice);
4921
+ this.themes = utils.state.themes.filter(theme => utils.state.currentTrek.themes.includes(theme.id));
4922
+ this.labels = utils.state.labels.filter(label => utils.state.currentTrek.labels.includes(label.id));
4923
+ this.sources = utils.state.sources.filter(source => utils.state.currentTrek.source.includes(source.id));
4924
+ this.accessibilities = utils.state.accessibilities.filter(accessibility => utils.state.currentTrek.accessibilities.includes(accessibility.id));
4931
4925
  if (utils.state.accessibilitiesLevel) {
4932
- this.accessibilityLevel = utils.state.accessibilitiesLevel.find(accessibilityLevel => this.currentTrek.accessibility_level === accessibilityLevel.id);
4926
+ this.accessibilityLevel = utils.state.accessibilitiesLevel.find(accessibilityLevel => utils.state.currentTrek.accessibility_level === accessibilityLevel.id);
4933
4927
  }
4934
- this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
4935
- this.hasStep = this.currentTrek.children.length > 0;
4928
+ this.cities = utils.state.currentTrek.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
4929
+ this.hasStep = utils.state.currentTrek.children.length > 0;
4930
+ this.currentTrek = utils.state.currentTrek;
4936
4931
  }
4937
4932
  utils.onChange('currentTrek', async () => {
4938
- this.currentTrek = this.trek ? this.trek : utils.state.currentTrek;
4939
- if (this.currentTrek) {
4940
- this.offline = this.currentTrek.offline;
4933
+ if (utils.state.currentTrek) {
4934
+ this.offline = utils.state.currentTrek.offline;
4941
4935
  this.defaultOptions = this.handleOptions();
4942
4936
  this.options = Object.assign(Object.assign({}, this.defaultOptions), { presentation: Object.assign(Object.assign({}, this.defaultOptions.presentation), { indicator: true }) });
4943
- this.difficulty = utils.state.difficulties.find(difficulty => difficulty.id === this.currentTrek.difficulty);
4944
- this.route = utils.state.routes.find(route => route.id === this.currentTrek.route);
4945
- this.practice = utils.state.practices.find(practice => practice.id === this.currentTrek.practice);
4946
- this.themes = utils.state.themes.filter(theme => this.currentTrek.themes.includes(theme.id));
4947
- this.labels = utils.state.labels.filter(label => this.currentTrek.labels.includes(label.id));
4948
- this.sources = utils.state.sources.filter(source => this.currentTrek.source.includes(source.id));
4949
- this.accessibilities = utils.state.accessibilities.filter(accessibility => this.currentTrek.accessibilities.includes(accessibility.id));
4937
+ this.difficulty = utils.state.difficulties.find(difficulty => difficulty.id === utils.state.currentTrek.difficulty);
4938
+ this.route = utils.state.routes.find(route => route.id === utils.state.currentTrek.route);
4939
+ this.practice = utils.state.practices.find(practice => practice.id === utils.state.currentTrek.practice);
4940
+ this.themes = utils.state.themes.filter(theme => utils.state.currentTrek.themes.includes(theme.id));
4941
+ this.labels = utils.state.labels.filter(label => utils.state.currentTrek.labels.includes(label.id));
4942
+ this.sources = utils.state.sources.filter(source => utils.state.currentTrek.source.includes(source.id));
4943
+ this.accessibilities = utils.state.accessibilities.filter(accessibility => utils.state.currentTrek.accessibilities.includes(accessibility.id));
4950
4944
  if (utils.state.accessibilitiesLevel) {
4951
- this.accessibilityLevel = utils.state.accessibilitiesLevel.find(accessibilityLevel => this.currentTrek.accessibility_level === accessibilityLevel.id);
4945
+ this.accessibilityLevel = utils.state.accessibilitiesLevel.find(accessibilityLevel => utils.state.currentTrek.accessibility_level === accessibilityLevel.id);
4952
4946
  }
4953
- this.cities = this.currentTrek.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
4954
- this.hasStep = this.currentTrek.children.length > 0;
4947
+ this.cities = utils.state.currentTrek.cities.map(currentCity => { var _a; return (_a = utils.state.cities.find(city => city.id === currentCity)) === null || _a === void 0 ? void 0 : _a.name; });
4948
+ this.hasStep = utils.state.currentTrek.children.length > 0;
4949
+ this.currentTrek = utils.state.currentTrek;
4955
4950
  }
4956
4951
  });
4957
4952
  }
@@ -4970,16 +4965,16 @@ const GrwTrekDetail = class {
4970
4965
  this.touristicEventObserver && this.touristicEventObserver.disconnect();
4971
4966
  }
4972
4967
  handleOptions() {
4973
- return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), steps: Object.assign(Object.assign({}, steps), { visible: Boolean(utils.state.parentTrek) }), description: Object.assign(Object.assign({}, description), { visible: Boolean(this.currentTrek.description) }), pois: Object.assign(Object.assign({}, pois), { visible: Boolean(utils.state.currentPois && utils.state.currentPois.length > 0) }), recommendations: Object.assign(Object.assign({}, recommendations), { visible: Boolean(this.currentTrek.advice || (this.labels && this.labels.length > 0)) }), sensitiveArea: Object.assign(Object.assign({}, sensitiveArea), { visible: Boolean(utils.state.currentSensitiveAreas && utils.state.currentSensitiveAreas.length > 0) }), informationPlaces: Object.assign(Object.assign({}, informationPlaces), { visible: Boolean(utils.state.currentInformationDesks &&
4974
- utils.state.currentInformationDesks.filter(currentInformationDesks => this.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0) }), accessibility: Object.assign(Object.assign({}, accessibility), { visible: Boolean(this.currentTrek.disabled_infrastructure ||
4968
+ return Object.assign(Object.assign({}, options), { presentation: Object.assign({}, presentation), steps: Object.assign(Object.assign({}, steps), { visible: Boolean(utils.state.parentTrek) }), description: Object.assign(Object.assign({}, description), { visible: Boolean(utils.state.currentTrek.description) }), pois: Object.assign(Object.assign({}, pois), { visible: Boolean(utils.state.currentPois && utils.state.currentPois.length > 0) }), recommendations: Object.assign(Object.assign({}, recommendations), { visible: Boolean(utils.state.currentTrek.advice || (this.labels && this.labels.length > 0)) }), sensitiveArea: Object.assign(Object.assign({}, sensitiveArea), { visible: Boolean(utils.state.currentSensitiveAreas && utils.state.currentSensitiveAreas.length > 0) }), informationPlaces: Object.assign(Object.assign({}, informationPlaces), { visible: Boolean(utils.state.currentInformationDesks &&
4969
+ utils.state.currentInformationDesks.filter(currentInformationDesks => utils.state.currentTrek.information_desks.includes(currentInformationDesks.id)).length > 0) }), accessibility: Object.assign(Object.assign({}, accessibility), { visible: Boolean(utils.state.currentTrek.disabled_infrastructure ||
4975
4970
  (this.accessibilities && this.accessibilities.length > 0) ||
4976
- this.currentTrek.accessibility_level ||
4977
- this.currentTrek.accessibility_slope ||
4978
- this.currentTrek.accessibility_width ||
4979
- this.currentTrek.accessibility_signage ||
4980
- this.currentTrek.accessibility_covering ||
4981
- this.currentTrek.accessibility_exposure ||
4982
- this.currentTrek.accessibility_advice ||
4971
+ utils.state.currentTrek.accessibility_level ||
4972
+ utils.state.currentTrek.accessibility_slope ||
4973
+ utils.state.currentTrek.accessibility_width ||
4974
+ utils.state.currentTrek.accessibility_signage ||
4975
+ utils.state.currentTrek.accessibility_covering ||
4976
+ utils.state.currentTrek.accessibility_exposure ||
4977
+ utils.state.currentTrek.accessibility_advice ||
4983
4978
  this.emergencyNumber) }), touristicContents: Object.assign(Object.assign({}, touristicContents), { visible: Boolean(utils.state.trekTouristicContents && utils.state.trekTouristicContents.length > 0) }), touristicEvents: Object.assign(Object.assign({}, touristicEvents), { visible: Boolean(utils.state.trekTouristicEvents && utils.state.trekTouristicEvents.length > 0) }) });
4984
4979
  }
4985
4980
  handleFullscreen(close = false) {
@@ -5028,27 +5023,27 @@ const GrwTrekDetail = class {
5028
5023
  return utils.state.currentTrekSteps ? utils.state.currentTrekSteps.findIndex(step => step.id === this.currentTrek.id) : 0;
5029
5024
  }
5030
5025
  async downloadGlobalTiles(url, attribution) {
5031
- const offlineLayer = utils.bundle.exports.tileLayerOffline(url, { attribution });
5026
+ const offlineLayer = pagination.bundle.exports.tileLayerOffline(url, { attribution });
5032
5027
  const treksDepartureCoordinates = [];
5033
5028
  if (utils.state.treks) {
5034
5029
  for (const trek of utils.state.treks) {
5035
5030
  treksDepartureCoordinates.push(trek.departure_geom);
5036
5031
  }
5037
5032
  }
5038
- const bounds = utils.L.latLngBounds(treksDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
5039
- await utils.writeOrUpdateTilesInStore(offlineLayer, bounds, this.globalTilesMinZoomOffline, this.globalTilesMaxZoomOffline);
5033
+ const bounds = pagination.L.latLngBounds(treksDepartureCoordinates.map(coordinate => [coordinate[1], coordinate[0]]));
5034
+ await pagination.writeOrUpdateTilesInStore(offlineLayer, bounds, this.globalTilesMinZoomOffline, this.globalTilesMaxZoomOffline);
5040
5035
  }
5041
5036
  async downloadTrekTiles(url, attribution) {
5042
- const offlineLayer = utils.bundle.exports.tileLayerOffline(url, { attribution });
5043
- const bounds = utils.L.latLngBounds(this.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
5044
- await utils.writeOrUpdateTilesInStore(offlineLayer, bounds, this.trekTilesMinZoomOffline, this.trekTilesMaxZoomOffline);
5037
+ const offlineLayer = pagination.bundle.exports.tileLayerOffline(url, { attribution });
5038
+ const bounds = pagination.L.latLngBounds(this.currentTrek.geometry.coordinates.map(coordinate => [coordinate[1], coordinate[0]]));
5039
+ await pagination.writeOrUpdateTilesInStore(offlineLayer, bounds, this.trekTilesMinZoomOffline, this.trekTilesMaxZoomOffline);
5045
5040
  }
5046
5041
  async downloadTrek() {
5047
5042
  // download treks list data
5048
5043
  const controller = new AbortController();
5049
5044
  const signal = controller.signal;
5050
5045
  const init = { cache: 'default', signal: signal };
5051
- const offlineTreks = (await utils.getAllDataInStore('treks')).filter(trek => trek.offline === true);
5046
+ const offlineTreks = (await pagination.getAllDataInStore('treks')).filter(trek => trek.offline === true);
5052
5047
  let treks;
5053
5048
  if (!utils.state.treks) {
5054
5049
  const treksList = await pagination.getTreksList(utils.state.api, utils.state.language, utils.state.inBboxFromProviders, utils.state.citiesFromProviders, utils.state.districts, utils.state.structuresFromProviders, utils.state.themesFromProviders, utils.state.portalsFromProviders, utils.state.routesFromProviders, utils.state.practicesFromProviders, utils.state.labelsFromProviders, init);
@@ -5060,63 +5055,63 @@ const GrwTrekDetail = class {
5060
5055
  const districtsList = await pagination.getDistricts(utils.state.api, utils.state.language, init);
5061
5056
  utils.state.districts = (await districtsList.json()).results;
5062
5057
  }
5063
- await utils.writeOrUpdateDataInStore('treks', treks);
5064
- await utils.writeOrUpdateDataInStore('districts', utils.state.districts);
5058
+ await pagination.writeOrUpdateDataInStore('treks', treks);
5059
+ await pagination.writeOrUpdateDataInStore('districts', utils.state.districts);
5065
5060
  // download global tiles
5066
5061
  await this.downloadGlobalTiles(this.defaultBackgroundLayerUrl, this.defaultBackgroundLayerAttribution);
5067
5062
  // download trek tiles
5068
5063
  await this.downloadTrekTiles(this.defaultBackgroundLayerUrl, this.defaultBackgroundLayerAttribution);
5069
5064
  // download global medias
5070
- await utils.writeOrUpdateFilesInStore(utils.state.difficulties, utils.imagesRegExp);
5071
- await utils.writeOrUpdateFilesInStore(utils.state.routes, utils.imagesRegExp);
5072
- await utils.writeOrUpdateFilesInStore(utils.state.practices, utils.imagesRegExp);
5073
- await utils.writeOrUpdateFilesInStore(utils.state.themes, utils.imagesRegExp);
5074
- await utils.writeOrUpdateFilesInStore(utils.state.labels, utils.imagesRegExp);
5075
- await utils.writeOrUpdateFilesInStore(utils.state.districts, utils.imagesRegExp);
5076
- await utils.writeOrUpdateFilesInStore(utils.state.sources, utils.imagesRegExp);
5077
- await utils.writeOrUpdateFilesInStore(utils.state.accessibilities, utils.imagesRegExp);
5078
- await utils.writeOrUpdateFilesInStore(utils.state.poiTypes, utils.imagesRegExp);
5079
- await utils.writeOrUpdateFilesInStore(utils.state.currentInformationDesks, utils.imagesRegExp);
5080
- await utils.writeOrUpdateFilesInStore(utils.state.touristicContentCategories, utils.imagesRegExp);
5081
- await utils.writeOrUpdateFilesInStore(utils.state.touristicEventTypes, utils.imagesRegExp);
5082
- await utils.writeOrUpdateFilesInStore(utils.state.networks, utils.imagesRegExp);
5065
+ await pagination.writeOrUpdateFilesInStore(utils.state.difficulties, utils.imagesRegExp);
5066
+ await pagination.writeOrUpdateFilesInStore(utils.state.routes, utils.imagesRegExp);
5067
+ await pagination.writeOrUpdateFilesInStore(utils.state.practices, utils.imagesRegExp);
5068
+ await pagination.writeOrUpdateFilesInStore(utils.state.themes, utils.imagesRegExp);
5069
+ await pagination.writeOrUpdateFilesInStore(utils.state.labels, utils.imagesRegExp);
5070
+ await pagination.writeOrUpdateFilesInStore(utils.state.districts, utils.imagesRegExp);
5071
+ await pagination.writeOrUpdateFilesInStore(utils.state.sources, utils.imagesRegExp);
5072
+ await pagination.writeOrUpdateFilesInStore(utils.state.accessibilities, utils.imagesRegExp);
5073
+ await pagination.writeOrUpdateFilesInStore(utils.state.poiTypes, utils.imagesRegExp);
5074
+ await pagination.writeOrUpdateFilesInStore(utils.state.currentInformationDesks, utils.imagesRegExp);
5075
+ await pagination.writeOrUpdateFilesInStore(utils.state.touristicContentCategories, utils.imagesRegExp);
5076
+ await pagination.writeOrUpdateFilesInStore(utils.state.touristicEventTypes, utils.imagesRegExp);
5077
+ await pagination.writeOrUpdateFilesInStore(utils.state.networks, utils.imagesRegExp);
5083
5078
  // // download trek images
5084
- await utils.writeOrUpdateFilesInStore(this.currentTrek, utils.imagesRegExp, true);
5079
+ await pagination.writeOrUpdateFilesInStore(this.currentTrek, utils.imagesRegExp, true);
5085
5080
  // // download trek data
5086
- await utils.writeOrUpdateDataInStore('difficulties', utils.state.difficulties);
5087
- await utils.writeOrUpdateDataInStore('routes', utils.state.routes);
5088
- await utils.writeOrUpdateDataInStore('practices', utils.state.practices.map(practice => (Object.assign(Object.assign({}, practice), { selected: false }))));
5089
- await utils.writeOrUpdateDataInStore('themes', utils.state.themes);
5090
- await utils.writeOrUpdateDataInStore('cities', utils.state.cities);
5091
- await utils.writeOrUpdateDataInStore('accessibilities', utils.state.accessibilities);
5092
- await utils.writeOrUpdateDataInStore('ratings', utils.state.ratings);
5093
- await utils.writeOrUpdateDataInStore('ratingsScale', utils.state.ratingsScale);
5094
- await utils.writeOrUpdateDataInStore('sensitiveAreas', utils.state.currentSensitiveAreas);
5095
- await utils.writeOrUpdateDataInStore('labels', utils.state.labels);
5096
- await utils.writeOrUpdateDataInStore('sources', utils.state.sources);
5097
- await utils.writeOrUpdateDataInStore('accessibilitiesLevel', utils.state.accessibilitiesLevel);
5098
- await utils.writeOrUpdateDataInStore('touristicContentCategories', utils.state.touristicContentCategories);
5099
- await utils.writeOrUpdateDataInStore('touristicEventTypes', utils.state.touristicEventTypes);
5100
- await utils.writeOrUpdateDataInStore('networks', utils.state.networks);
5101
- await utils.writeOrUpdateDataInStore('pois', utils.state.currentPois);
5102
- await utils.writeOrUpdateDataInStore('poiTypes', utils.state.poiTypes);
5103
- await utils.writeOrUpdateDataInStore('informationDesks', utils.state.currentInformationDesks);
5104
- await utils.writeOrUpdateDataInStore('treks', [
5081
+ await pagination.writeOrUpdateDataInStore('difficulties', utils.state.difficulties);
5082
+ await pagination.writeOrUpdateDataInStore('routes', utils.state.routes);
5083
+ await pagination.writeOrUpdateDataInStore('practices', utils.state.practices.map(practice => (Object.assign(Object.assign({}, practice), { selected: false }))));
5084
+ await pagination.writeOrUpdateDataInStore('themes', utils.state.themes);
5085
+ await pagination.writeOrUpdateDataInStore('cities', utils.state.cities);
5086
+ await pagination.writeOrUpdateDataInStore('accessibilities', utils.state.accessibilities);
5087
+ await pagination.writeOrUpdateDataInStore('ratings', utils.state.ratings);
5088
+ await pagination.writeOrUpdateDataInStore('ratingsScale', utils.state.ratingsScale);
5089
+ await pagination.writeOrUpdateDataInStore('sensitiveAreas', utils.state.currentSensitiveAreas);
5090
+ await pagination.writeOrUpdateDataInStore('labels', utils.state.labels);
5091
+ await pagination.writeOrUpdateDataInStore('sources', utils.state.sources);
5092
+ await pagination.writeOrUpdateDataInStore('accessibilitiesLevel', utils.state.accessibilitiesLevel);
5093
+ await pagination.writeOrUpdateDataInStore('touristicContentCategories', utils.state.touristicContentCategories);
5094
+ await pagination.writeOrUpdateDataInStore('touristicEventTypes', utils.state.touristicEventTypes);
5095
+ await pagination.writeOrUpdateDataInStore('networks', utils.state.networks);
5096
+ await pagination.writeOrUpdateDataInStore('pois', utils.state.currentPois);
5097
+ await pagination.writeOrUpdateDataInStore('poiTypes', utils.state.poiTypes);
5098
+ await pagination.writeOrUpdateDataInStore('informationDesks', utils.state.currentInformationDesks);
5099
+ await pagination.writeOrUpdateDataInStore('treks', [
5105
5100
  Object.assign(Object.assign({}, this.currentTrek), { offline: true, pois: utils.state.currentPois.map(poi => poi.id), touristicContents: utils.state.trekTouristicContents.map(trekTouristicContent => trekTouristicContent.id), touristicEvents: utils.state.trekTouristicEvents.map(trekTouristicEvent => trekTouristicEvent.id), sensitiveAreas: utils.state.currentSensitiveAreas ? utils.state.currentSensitiveAreas.map(currentSensitiveArea => currentSensitiveArea.id) : [] }),
5106
5101
  ]);
5107
- await utils.writeOrUpdateFilesInStore(utils.state.currentPois, utils.imagesRegExp, true);
5108
- await utils.writeOrUpdateFilesInStore(utils.state.currentInformationDesks, utils.imagesRegExp, true);
5102
+ await pagination.writeOrUpdateFilesInStore(utils.state.currentPois, utils.imagesRegExp, true);
5103
+ await pagination.writeOrUpdateFilesInStore(utils.state.currentInformationDesks, utils.imagesRegExp, true);
5109
5104
  // download items data
5110
- await utils.writeOrUpdateFilesInStore(utils.state.trekTouristicContents, utils.imagesRegExp, true);
5105
+ await pagination.writeOrUpdateFilesInStore(utils.state.trekTouristicContents, utils.imagesRegExp, true);
5111
5106
  utils.state.trekTouristicContents.forEach(trekTouristicContent => {
5112
5107
  trekTouristicContent.offline = true;
5113
5108
  });
5114
- await utils.writeOrUpdateDataInStore('touristicContents', utils.state.trekTouristicContents);
5115
- await utils.writeOrUpdateFilesInStore(utils.state.trekTouristicEvents, utils.imagesRegExp, true);
5109
+ await pagination.writeOrUpdateDataInStore('touristicContents', utils.state.trekTouristicContents);
5110
+ await pagination.writeOrUpdateFilesInStore(utils.state.trekTouristicEvents, utils.imagesRegExp, true);
5116
5111
  utils.state.trekTouristicEvents.forEach(trekTouristicEvent => {
5117
5112
  trekTouristicEvent.offline = true;
5118
5113
  });
5119
- await utils.writeOrUpdateDataInStore('touristicEvents', utils.state.trekTouristicEvents);
5114
+ await pagination.writeOrUpdateDataInStore('touristicEvents', utils.state.trekTouristicEvents);
5120
5115
  // download itinerancy
5121
5116
  if (this.currentTrek.children && this.currentTrek.children.length > 0) {
5122
5117
  // fetch and store children treks
@@ -5145,25 +5140,9 @@ const GrwTrekDetail = class {
5145
5140
  trekSteps[index].touristicContents = stepsTouristicContentsResponses[index].results.map(trekTouristicContent => trekTouristicContent.id);
5146
5141
  trekSteps[index].touristicEvents = stepsTouristicEventsResponses[index].results.map(trekTouristicEvent => trekTouristicEvent.id);
5147
5142
  trekSteps[index].sensitiveAreas = stepsSensitiveAreasResponses[index].results.map(currentSensitiveArea => currentSensitiveArea.id);
5148
- await utils.writeOrUpdateDataInStore('treks', [trekSteps[index]]);
5149
- await utils.writeOrUpdateFilesInStore(trekSteps[index], utils.imagesRegExp, true);
5143
+ await pagination.writeOrUpdateDataInStore('treks', [trekSteps[index]]);
5144
+ await pagination.writeOrUpdateFilesInStore(trekSteps[index], utils.imagesRegExp, true);
5150
5145
  }
5151
- // for (let index = 0; index < stepsTouristicContentsResponses.length; index++) {
5152
- // const stepsTouristicContentsResponse = stepsTouristicContentsResponses[index];
5153
- // for (let index = 0; index < stepsTouristicContentsResponse.results.length; index++) {
5154
- // stepsTouristicContentsResponse.results[index].offline = true;
5155
- // await writeOrUpdateDataInStore('touristicContents', [stepsTouristicContentsResponse.results[index]]);
5156
- // await writeOrUpdateFilesInStore(stepsTouristicContentsResponse.results[index], imagesRegExp, true);
5157
- // }
5158
- // }
5159
- // for (let index = 0; index < stepsTouristicEventsResponses.length; index++) {
5160
- // const stepsTouristicEventsResponse = stepsTouristicEventsResponses[index];
5161
- // for (let index = 0; index < stepsTouristicEventsResponse.results.length; index++) {
5162
- // stepsTouristicEventsResponse[index].offline = true;
5163
- // await writeOrUpdateDataInStore('touristicEvents', [stepsTouristicEventsResponse[index]]);
5164
- // await writeOrUpdateFilesInStore(stepsTouristicEventsResponse[index], imagesRegExp, true);
5165
- // }
5166
- // }
5167
5146
  }
5168
5147
  utils.state.treks.find(trek => trek.id === this.currentTrek.id).offline = true;
5169
5148
  if (!utils.state.currentTreks) {
@@ -5176,17 +5155,17 @@ const GrwTrekDetail = class {
5176
5155
  }
5177
5156
  async deleteTrek() {
5178
5157
  const treksInStore = [];
5179
- const trekInStore = await utils.getDataInStore('treks', this.currentTrek.id);
5158
+ const trekInStore = await pagination.getDataInStore('treks', this.currentTrek.id);
5180
5159
  this.deleteOfflineTrekProperties(trekInStore);
5181
5160
  treksInStore.push(trekInStore);
5182
5161
  if (this.currentTrek.children.length > 0) {
5183
5162
  for (let index = 0; index < this.currentTrek.children.length; index++) {
5184
- const trekInStore = await utils.getDataInStore('treks', this.currentTrek.children[index]);
5163
+ const trekInStore = await pagination.getDataInStore('treks', this.currentTrek.children[index]);
5185
5164
  this.deleteOfflineTrekProperties(trekInStore);
5186
5165
  treksInStore.push(trekInStore);
5187
5166
  }
5188
5167
  }
5189
- await utils.writeOrUpdateDataInStore('treks', treksInStore);
5168
+ await pagination.writeOrUpdateDataInStore('treks', treksInStore);
5190
5169
  if (utils.state.treks) {
5191
5170
  delete utils.state.treks.find(trek => trek.id === this.currentTrek.id).offline;
5192
5171
  if (!utils.state.currentTreks) {
@@ -5252,11 +5231,12 @@ const GrwTrekDetail = class {
5252
5231
  delete trekInStore.touristicContents;
5253
5232
  delete trekInStore.touristicEvents;
5254
5233
  delete trekInStore.sensitiveAreas;
5234
+ delete trekInStore.offline;
5255
5235
  }
5256
5236
  render() {
5257
5237
  var _a, _b, _c, _d, _e;
5258
5238
  const defaultImageSrc = index.getAssetPath(`${''}assets/default-image.svg`);
5259
- return (index.h(index.Host, { key: '999dc8c2376a289147f21418a2c74416868de1f7', style: {
5239
+ return (index.h(index.Host, { key: 'efb94851e274e1ca34b1901759cbc62cc413eae9', style: {
5260
5240
  '--font-family': this.fontFamily,
5261
5241
  '--color-primary-app': this.colorPrimaryApp,
5262
5242
  '--color-on-surface': this.colorOnSurface,
@@ -5375,7 +5355,7 @@ const GrwTrekProvider = class {
5375
5355
  utils.state.networkError = false;
5376
5356
  }
5377
5357
  async handleTrek() {
5378
- const trekInStore = await utils.getDataInStore('treks', this.trekId);
5358
+ const trekInStore = await pagination.getDataInStore('treks', this.trekId);
5379
5359
  if (trekInStore && trekInStore.offline) {
5380
5360
  this.handleOfflineTrek(trekInStore);
5381
5361
  }
@@ -5392,83 +5372,83 @@ const GrwTrekProvider = class {
5392
5372
  steps.push(...trek.children);
5393
5373
  }
5394
5374
  else {
5395
- const parentTrek = await utils.getDataInStore('treks', utils.state.parentTrekId);
5375
+ const parentTrek = await pagination.getDataInStore('treks', utils.state.parentTrekId);
5396
5376
  utils.state.parentTrek = parentTrek;
5397
5377
  steps.push(...parentTrek.children);
5398
5378
  }
5399
5379
  const stepRequests = [];
5400
5380
  steps.forEach(stepId => {
5401
- stepRequests.push(utils.getDataInStore('treks', stepId));
5381
+ stepRequests.push(pagination.getDataInStore('treks', stepId));
5402
5382
  });
5403
5383
  utils.state.currentTrekSteps = await Promise.all([...stepRequests]).then(responses => responses);
5404
5384
  }
5405
5385
  if (!utils.state.difficulties) {
5406
- const difficulties = await utils.getAllDataInStore('difficulties');
5407
- utils.setFilesFromStore(difficulties, utils.imagesRegExp);
5386
+ const difficulties = await pagination.getAllDataInStore('difficulties');
5387
+ await utils.setFilesFromStore(difficulties, utils.imagesRegExp);
5408
5388
  utils.state.difficulties = difficulties;
5409
5389
  }
5410
5390
  if (!utils.state.routes) {
5411
- utils.state.routes = await utils.getAllDataInStore('routes');
5391
+ utils.state.routes = await pagination.getAllDataInStore('routes');
5412
5392
  }
5413
5393
  if (!utils.state.practices) {
5414
- utils.state.practices = await utils.getAllDataInStore('practices');
5394
+ utils.state.practices = await pagination.getAllDataInStore('practices');
5415
5395
  }
5416
5396
  if (!utils.state.themes) {
5417
- utils.state.themes = await utils.getAllDataInStore('themes');
5397
+ utils.state.themes = await pagination.getAllDataInStore('themes');
5418
5398
  }
5419
5399
  if (!utils.state.cities) {
5420
- utils.state.cities = await utils.getAllDataInStore('cities');
5400
+ utils.state.cities = await pagination.getAllDataInStore('cities');
5421
5401
  }
5422
5402
  if (!utils.state.accessibilities) {
5423
- utils.state.accessibilities = await utils.getAllDataInStore('accessibilities');
5403
+ utils.state.accessibilities = await pagination.getAllDataInStore('accessibilities');
5424
5404
  }
5425
5405
  if (!utils.state.ratings) {
5426
- utils.state.ratings = await utils.getAllDataInStore('ratings');
5406
+ utils.state.ratings = await pagination.getAllDataInStore('ratings');
5427
5407
  }
5428
5408
  if (!utils.state.ratingsScale) {
5429
- utils.state.ratingsScale = await utils.getAllDataInStore('ratingsScale');
5409
+ utils.state.ratingsScale = await pagination.getAllDataInStore('ratingsScale');
5430
5410
  }
5431
5411
  if (!utils.state.labels) {
5432
- utils.state.labels = await utils.getAllDataInStore('labels');
5412
+ utils.state.labels = await pagination.getAllDataInStore('labels');
5433
5413
  }
5434
5414
  if (!utils.state.sources) {
5435
- utils.state.sources = await utils.getAllDataInStore('sources');
5415
+ utils.state.sources = await pagination.getAllDataInStore('sources');
5436
5416
  }
5437
5417
  if (!utils.state.accessibilitiesLevel) {
5438
- utils.state.accessibilitiesLevel = await utils.getAllDataInStore('accessibilitiesLevel');
5418
+ utils.state.accessibilitiesLevel = await pagination.getAllDataInStore('accessibilitiesLevel');
5439
5419
  }
5440
5420
  if (!utils.state.touristicContentCategories) {
5441
- utils.state.touristicContentCategories = await utils.getAllDataInStore('touristicContentCategories');
5421
+ utils.state.touristicContentCategories = await pagination.getAllDataInStore('touristicContentCategories');
5442
5422
  }
5443
5423
  if (!utils.state.touristicEventTypes) {
5444
- utils.state.touristicEventTypes = await utils.getAllDataInStore('touristicEventTypes');
5424
+ utils.state.touristicEventTypes = await pagination.getAllDataInStore('touristicEventTypes');
5445
5425
  }
5446
5426
  if (!utils.state.networks) {
5447
- utils.state.networks = await utils.getAllDataInStore('networks');
5427
+ utils.state.networks = await pagination.getAllDataInStore('networks');
5448
5428
  }
5449
5429
  if (!utils.state.poiTypes) {
5450
- utils.state.poiTypes = await utils.getAllDataInStore('poiTypes');
5430
+ utils.state.poiTypes = await pagination.getAllDataInStore('poiTypes');
5451
5431
  }
5452
- const informationDesksInStore = await utils.getAllDataInStore('informationDesks');
5432
+ const informationDesksInStore = await pagination.getAllDataInStore('informationDesks');
5453
5433
  const informationDesks = informationDesksInStore.filter(informationDeskInStore => trek.information_desks.some(information_desk => information_desk === informationDeskInStore.id));
5454
- utils.setFilesFromStore(informationDesks, utils.imagesRegExp);
5434
+ await utils.setFilesFromStore(informationDesks, utils.imagesRegExp);
5455
5435
  utils.state.currentInformationDesks = informationDesks;
5456
- const poisInStore = await utils.getAllDataInStore('pois');
5436
+ const poisInStore = await pagination.getAllDataInStore('pois');
5457
5437
  const pois = poisInStore.filter(poiInStore => trek.pois.some(trekPoi => trekPoi === poiInStore.id));
5458
- utils.setFilesFromStore(pois, utils.imagesRegExp);
5438
+ await utils.setFilesFromStore(pois, utils.imagesRegExp);
5459
5439
  utils.state.currentPois = pois;
5460
- const touristicContentsInStore = await utils.getAllDataInStore('touristicContents');
5440
+ const touristicContentsInStore = await pagination.getAllDataInStore('touristicContents');
5461
5441
  const touristicContents = touristicContentsInStore.filter(touristicContentInStore => trek.touristicContents.some(trekTouristicContent => trekTouristicContent === touristicContentInStore.id));
5462
- utils.setFilesFromStore(touristicContents, utils.imagesRegExp);
5442
+ await utils.setFilesFromStore(touristicContents, utils.imagesRegExp);
5463
5443
  utils.state.trekTouristicContents = touristicContents;
5464
- const touristicEventsInStore = await utils.getAllDataInStore('touristicEvents');
5444
+ const touristicEventsInStore = await pagination.getAllDataInStore('touristicEvents');
5465
5445
  const touristicEvents = touristicEventsInStore.filter(touristicEventInStore => trek.touristicEvents.some(trekTouristicEvent => trekTouristicEvent === touristicEventInStore.id));
5466
- utils.setFilesFromStore(touristicEvents, utils.imagesRegExp);
5467
- utils.state.trekTouristicEvents = await utils.getAllDataInStore('touristicEvents');
5468
- const sensitiveAreasInStore = await utils.getAllDataInStore('sensitiveAreas');
5446
+ await utils.setFilesFromStore(touristicEvents, utils.imagesRegExp);
5447
+ utils.state.trekTouristicEvents = await pagination.getAllDataInStore('touristicEvents');
5448
+ const sensitiveAreasInStore = await pagination.getAllDataInStore('sensitiveAreas');
5469
5449
  const sensitiveAreas = sensitiveAreasInStore.filter(sensitiveAreaInStore => trek.sensitiveAreas.some(trekSensitiveArea => trekSensitiveArea === sensitiveAreaInStore.id));
5470
5450
  utils.state.currentSensitiveAreas = sensitiveAreas;
5471
- utils.setFilesFromStore(trek, utils.imagesRegExp);
5451
+ await utils.setFilesFromStore(trek, utils.imagesRegExp);
5472
5452
  utils.state.currentTrek = trek;
5473
5453
  }
5474
5454
  handleOnlineTrek() {
@@ -5614,7 +5594,7 @@ const GrwTrekProvider = class {
5614
5594
  }
5615
5595
  }
5616
5596
  render() {
5617
- return index.h(index.Host, { key: '21d4dd87007564e72fd8eb3a92843737edd9fca1' });
5597
+ return index.h(index.Host, { key: 'b3a73fdd6430d02527af2d0e3f15a06c1a7c067b' });
5618
5598
  }
5619
5599
  };
5620
5600
 
@@ -5733,28 +5713,28 @@ const GrwTreksProvider = class {
5733
5713
  }
5734
5714
  async handleOfflineTreks(treks) {
5735
5715
  if (!utils.state.difficulties) {
5736
- utils.state.difficulties = await utils.getAllDataInStore('difficulties');
5716
+ utils.state.difficulties = await pagination.getAllDataInStore('difficulties');
5737
5717
  }
5738
5718
  if (!utils.state.routes) {
5739
- utils.state.routes = await utils.getAllDataInStore('routes');
5719
+ utils.state.routes = await pagination.getAllDataInStore('routes');
5740
5720
  }
5741
5721
  if (!utils.state.practices) {
5742
- utils.state.practices = await utils.getAllDataInStore('practices');
5722
+ utils.state.practices = await pagination.getAllDataInStore('practices');
5743
5723
  }
5744
5724
  if (!utils.state.themes) {
5745
- utils.state.themes = await utils.getAllDataInStore('themes');
5725
+ utils.state.themes = await pagination.getAllDataInStore('themes');
5746
5726
  }
5747
5727
  if (!utils.state.cities) {
5748
- utils.state.cities = await utils.getAllDataInStore('cities');
5728
+ utils.state.cities = await pagination.getAllDataInStore('cities');
5749
5729
  }
5750
5730
  if (!utils.state.accessibilities) {
5751
- utils.state.accessibilities = await utils.getAllDataInStore('accessibilities');
5731
+ utils.state.accessibilities = await pagination.getAllDataInStore('accessibilities');
5752
5732
  }
5753
5733
  if (!utils.state.labels) {
5754
- utils.state.labels = await utils.getAllDataInStore('labels');
5734
+ utils.state.labels = await pagination.getAllDataInStore('labels');
5755
5735
  }
5756
5736
  if (!utils.state.districts) {
5757
- utils.state.districts = await utils.getAllDataInStore('districts');
5737
+ utils.state.districts = await pagination.getAllDataInStore('districts');
5758
5738
  }
5759
5739
  if (!utils.state.durations) {
5760
5740
  utils.state.durations = utils.durations;
@@ -5815,11 +5795,12 @@ const GrwTreksProvider = class {
5815
5795
  const offline = await pagination.trekIsAvailableOffline(treks.results[index].id);
5816
5796
  treksWithOfflineValue.push(Object.assign(Object.assign({}, treks.results[index]), { offline }));
5817
5797
  }
5798
+ this.sortTreks(treksWithOfflineValue);
5818
5799
  utils.state.treks = treksWithOfflineValue;
5819
5800
  utils.state.currentTreks = treksWithOfflineValue;
5820
5801
  })
5821
5802
  .catch(async () => {
5822
- const treksInStore = await utils.getAllDataInStore('treks');
5803
+ const treksInStore = await pagination.getAllDataInStore('treks');
5823
5804
  if (treksInStore && treksInStore.length > 0) {
5824
5805
  this.handleOfflineTreks(treksInStore);
5825
5806
  }
@@ -5829,7 +5810,7 @@ const GrwTreksProvider = class {
5829
5810
  });
5830
5811
  }
5831
5812
  render() {
5832
- return index.h(index.Host, { key: '096e7a2162ada8ec5441ce9ffa91a244252b8c4d' });
5813
+ return index.h(index.Host, { key: 'd2dc82ee766e0cddfcb368985ef29cb75b4fdbc3' });
5833
5814
  }
5834
5815
  };
5835
5816