22 lines
219 KiB
JavaScript
22 lines
219 KiB
JavaScript
define(["require","@opencloud-eu/web-pkg","vue","vue3-gettext"],function(Il,Pe,x,en){"use strict";var Yn=document.createElement("style");Yn.textContent=`@layer theme{:root,:host{--ext-spacing:4px}}@layer base,components;@layer utilities{.ext\\:absolute{position:absolute}.ext\\:top-2{top:calc(var(--ext-spacing)*2)}.ext\\:right-2{right:calc(var(--ext-spacing)*2)}.ext\\:z-1{z-index:1}.ext\\:z-990{z-index:990}.ext\\:flex{display:flex}.ext\\:grid{display:grid}.ext\\:size-full{width:100%;height:100%}.ext\\:h-\\[200px\\]{height:200px}.ext\\:h-full{height:100%}.ext\\:grid-cols-\\[auto_minmax\\(0\\,1fr\\)\\]{grid-template-columns:auto minmax(0,1fr)}.ext\\:flex-col{flex-direction:column}.ext\\:rounded{border-radius:.25rem}.ext\\:p-2{padding:calc(var(--ext-spacing)*2)}}.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;user-select:none;-webkit-user-drag:none}.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,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-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 .2s linear;-moz-transition:opacity .2s linear;transition:opacity .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 .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(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:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;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:#000}.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:700 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{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;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:.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;box-sizing:border-box;background:#fffc;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{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(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: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:#fff;color:#333;box-shadow:0 3px 14px #0006}.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=.70710678,M12=.70710678,M21=-.70710678,M22=.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;box-shadow:0 1px 3px #0006}.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-zoom{border:0!important}.leaflet-control-zoom-in,.leaflet-control-zoom-out{background:#fffc!important}
|
||
/*$vite$:1*/`,document.head.appendChild(Yn);function Go(i,r){for(var s=0;s<r.length;s++){const l=r[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in i)){const c=Object.getOwnPropertyDescriptor(l,u);c&&Object.defineProperty(i,u,c.get?c:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}const jo={af:{},ar:{Distance:"المسافة","Elevation Gain":"مكسب الارتفاع","Elevation Loss":"خسارة الارتفاع",Location:"الموقع",Maps:"الخرائط",Name:"الاسم","No files with location data":"لا توجد ملفات تحتوي على بيانات الموقع","Switch to map view":"التبديل إلى عرض الخريطة"},bs:{},bg:{},de:{Distance:"Entfernung","Elevation Gain":"Anstieg","Elevation Loss":"Abstieg",Location:"Position",Maps:"Karten",Name:"Name","No files with location data":"Keine Dateien mit Positions-Daten vorhanden","Switch to map view":"Zur Kartenansicht wechseln"},cs:{Distance:"Vzdálenost",Location:"Umístění",Maps:"Mapy",Name:"Název"},el:{},es:{},et:{},fr:{Distance:"Distance","Elevation Gain":"Dénivelé positif","Elevation Loss":"Dénivelé négatif",Location:"Localisation",Maps:"Cartes",Name:"Nom","No files with location data":" Aucun fichier ne contient de données de localisation","Switch to map view":" Passer à l'affichage de la carte"},gl:{},hr:{},he:{},id:{},it:{},ja:{},nl:{Distance:"Afstand","Elevation Gain":"Hoogtetoename","Elevation Loss":"Hoogteafname",Location:"Locatie",Maps:"Kaarten",Name:"Naam","No files with location data":"Geen bestanden met locatiegegevens","Switch to map view":"Schakelen naar kaartweergave"},pl:{},pt:{},ka:{},ko:{},ro:{},ru:{Distance:"Расстояние","Elevation Gain":"Увеличение высоты","Elevation Loss":"Уменьшение высоты",Location:"Локация",Maps:"Карты",Name:"Имя","No files with location data":"Нет файлов с информацией о локации","Switch to map view":"Переключиться в режим карты"},sk:{},sq:{},si:{},sv:{Distance:"Avstånd","Elevation Gain":"Höjdökning","Elevation Loss":"Höjdminskning",Location:"Plats",Maps:"Kartor",Name:"Namn","No files with location data":"Inga filer med platsdata","Switch to map view":"Växla till kartvy"},sr:{},ta:{},tr:{},ug:{},uk:{},zh:{}};function Ho(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var se={exports:{}};var Uo=se.exports,Jn;function Vo(){return Jn||(Jn=1,function(i,r){(function(s,l){l(r)})(Uo,function(s){var l="1.9.4";function u(t){var e,n,o,a;for(n=1,o=arguments.length;n<o;n++){a=arguments[n];for(e in a)t[e]=a[e]}return t}var c=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function d(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var o=n.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(n.call(arguments)):arguments)}}var g=0;function m(t){return"_leaflet_id"in t||(t._leaflet_id=++g),t._leaflet_id}function y(t,e,n){var o,a,h,f;return f=function(){o=!1,a&&(h.apply(n,a),a=!1)},h=function(){o?a=arguments:(t.apply(n,arguments),setTimeout(f,e),o=!0)},h}function w(t,e,n){var o=e[1],a=e[0],h=o-a;return t===o&&n?t:((t-a)%h+h)%h+a}function b(){return!1}function A(t,e){if(e===!1)return t;var n=Math.pow(10,e===void 0?6:e);return Math.round(t*n)/n}function N(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function D(t){return N(t).split(/\s+/)}function Z(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?c(t.options):{});for(var n in e)t.options[n]=e[n];return t.options}function pt(t,e,n){var o=[];for(var a in t)o.push(encodeURIComponent(n?a.toUpperCase():a)+"="+encodeURIComponent(t[a]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var bt=/\{ *([\w_ -]+) *\}/g;function ct(t,e){return t.replace(bt,function(n,o){var a=e[o];if(a===void 0)throw new Error("No value provided for variable "+n);return typeof a=="function"&&(a=a(e)),a})}var W=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function j(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var it="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Yt(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Rt=0;function At(t){var e=+new Date,n=Math.max(0,16-(e-Rt));return Rt=e+n,window.setTimeout(t,n)}var Dt=window.requestAnimationFrame||Yt("RequestAnimationFrame")||At,Ft=window.cancelAnimationFrame||Yt("CancelAnimationFrame")||Yt("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Q(t,e,n){if(n&&Dt===At)t.call(e);else return Dt.call(window,d(t,e))}function q(t){t&&Ft.call(window,t)}var he={__proto__:null,extend:u,create:c,bind:d,get lastId(){return g},stamp:m,throttle:y,wrapNum:w,falseFn:b,formatNum:A,trim:N,splitWords:D,setOptions:Z,getParamString:pt,template:ct,isArray:W,indexOf:j,emptyImageUrl:it,requestFn:Dt,cancelFn:Ft,requestAnimFrame:Q,cancelAnimFrame:q};function Lt(){}Lt.extend=function(t){var e=function(){Z(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,o=c(n);o.constructor=e,e.prototype=o;for(var a in this)Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"&&(e[a]=this[a]);return t.statics&&u(e,t.statics),t.includes&&(ua(t.includes),u.apply(null,[o].concat(t.includes))),u(o,t),delete o.statics,delete o.includes,o.options&&(o.options=n.options?c(n.options):{},u(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var h=0,f=o._initHooks.length;h<f;h++)o._initHooks[h].call(this)}},e},Lt.include=function(t){var e=this.prototype.options;return u(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Lt.mergeOptions=function(t){return u(this.prototype.options,t),this},Lt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function ua(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=W(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ht={on:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=D(t);for(var a=0,h=t.length;a<h;a++)this._on(t[a],e,n)}return this},off:function(t,e,n){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=D(t);for(var a=arguments.length===1,h=0,f=t.length;h<f;h++)a?this._off(t[h]):this._off(t[h],e,n)}return this},_on:function(t,e,n,o){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,n)===!1){n===this&&(n=void 0);var a={fn:e,ctx:n};o&&(a.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(a)}},_off:function(t,e,n){var o,a,h;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(a=0,h=o.length;a<h;a++)o[a].fn=b;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var f=this._listens(t,e,n);if(f!==!1){var _=o[f];this._firingCount&&(_.fn=b,this._events[t]=o=o.slice()),o.splice(f,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var o=u({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var h=0,f=a.length;h<f;h++){var _=a[h],p=_.fn;_.once&&this.off(t,p,_.ctx),p.call(_.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e,n,o){typeof t!="string"&&console.warn('"string" type argument expected');var a=e;typeof e!="function"&&(o=!!e,a=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&this._listens(t,a,n)!==!1)return!0;if(o){for(var f in this._eventParents)if(this._eventParents[f].listens(t,e,n,o))return!0}return!1},_listens:function(t,e,n){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;n===this&&(n=void 0);for(var a=0,h=o.length;a<h;a++)if(o[a].fn===e&&o[a].ctx===n)return a;return!1},once:function(t,e,n){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=D(t);for(var a=0,h=t.length;a<h;a++)this._on(t[a],e,n,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,u({layer:t.target,propagatedFrom:t.target},t),!0)}};ht.addEventListener=ht.on,ht.removeEventListener=ht.clearAllEventListeners=ht.off,ht.addOneTimeEventListener=ht.once,ht.fireEvent=ht.fire,ht.hasEventListeners=ht.listens;var ue=Lt.extend(ht);function M(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var Mi=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(E(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(E(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Mi(this.x),this.y=Mi(this.y),this},distanceTo:function(t){t=E(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=E(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=E(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+A(this.x)+", "+A(this.y)+")"}};function E(t,e,n){return t instanceof M?t:W(t)?new M(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function U(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o<a;o++)this.extend(n[o])}U.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof M||typeof t[0]=="number"||"x"in t)e=n=E(t);else if(t=st(t),e=t.min,n=t.max,!e||!n)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=n.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(t){return E((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return E(this.min.x,this.max.y)},getTopRight:function(){return E(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return typeof t[0]=="number"||t instanceof M?t=E(t):t=st(t),t instanceof U?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>=e.x&&o.x<=n.x,f=a.y>=e.y&&o.y<=n.y;return h&&f},overlaps:function(t){t=st(t);var e=this.min,n=this.max,o=t.min,a=t.max,h=a.x>e.x&&o.x<n.x,f=a.y>e.y&&o.y<n.y;return h&&f},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,a=Math.abs(e.y-n.y)*t;return st(E(e.x-o,e.y-a),E(n.x+o,n.y+a))},equals:function(t){return t?(t=st(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function st(t,e){return!t||t instanceof U?t:new U(t,e)}function at(t,e){if(t)for(var n=e?[t,e]:t,o=0,a=n.length;o<a;o++)this.extend(n[o])}at.prototype={extend:function(t){var e=this._southWest,n=this._northEast,o,a;if(t instanceof F)o=t,a=t;else if(t instanceof at){if(o=t._southWest,a=t._northEast,!o||!a)return this}else return t?this.extend(I(t)||Y(t)):this;return!e&&!n?(this._southWest=new F(o.lat,o.lng),this._northEast=new F(a.lat,a.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),n.lat=Math.max(a.lat,n.lat),n.lng=Math.max(a.lng,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,a=Math.abs(e.lng-n.lng)*t;return new at(new F(e.lat-o,e.lng-a),new F(n.lat+o,n.lng+a))},getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof F||"lat"in t?t=I(t):t=Y(t);var e=this._southWest,n=this._northEast,o,a;return t instanceof at?(o=t.getSouthWest(),a=t.getNorthEast()):o=a=t,o.lat>=e.lat&&a.lat<=n.lat&&o.lng>=e.lng&&a.lng<=n.lng},intersects:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>=e.lat&&o.lat<=n.lat,f=a.lng>=e.lng&&o.lng<=n.lng;return h&&f},overlaps:function(t){t=Y(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),h=a.lat>e.lat&&o.lat<n.lat,f=a.lng>e.lng&&o.lng<n.lng;return h&&f},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=Y(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Y(t,e){return t instanceof at?t:new at(t,e)}function F(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,n!==void 0&&(this.alt=+n)}F.prototype={equals:function(t,e){if(!t)return!1;t=I(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+A(this.lat,t)+", "+A(this.lng,t)+")"},distanceTo:function(t){return Ct.distance(this,I(t))},wrap:function(){return Ct.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return Y([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};function I(t,e,n){return t instanceof F?t:W(t)&&typeof t[0]!="object"?t.length===3?new F(t[0],t[1],t[2]):t.length===2?new F(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new F(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new F(t,e,n)}var Pt={latLngToPoint:function(t,e){var n=this.projection.project(t),o=this.scale(e);return this.transformation._transform(n,o)},pointToLatLng:function(t,e){var n=this.scale(e),o=this.transformation.untransform(t,n);return this.projection.unproject(o)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t),o=this.transformation.transform(e.min,n),a=this.transformation.transform(e.max,n);return new U(o,a)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?w(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?w(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new F(n,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,a=e.lng-n.lng;if(o===0&&a===0)return t;var h=t.getSouthWest(),f=t.getNorthEast(),_=new F(h.lat-o,h.lng-a),p=new F(f.lat-o,f.lng-a);return new at(_,p)}},Ct=u({},Pt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,o=t.lat*n,a=e.lat*n,h=Math.sin((e.lat-t.lat)*n/2),f=Math.sin((e.lng-t.lng)*n/2),_=h*h+Math.cos(o)*Math.cos(a)*f*f,p=2*Math.atan2(Math.sqrt(_),Math.sqrt(1-_));return this.R*p}}),Ci=6378137,mn={R:Ci,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,t.lat),-n),a=Math.sin(o*e);return new M(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new F((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Ci*Math.PI;return new U([-t,-t],[t,t])}()};function gn(t,e,n,o){if(W(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=n,this._d=o}gn.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new M((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function ce(t,e,n,o){return new gn(t,e,n,o)}var vn=u({},Ct,{code:"EPSG:3857",projection:mn,transformation:function(){var t=.5/(Math.PI*mn.R);return ce(t,.5,-t,.5)}()}),ca=u({},vn,{code:"EPSG:900913"});function Si(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Oi(t,e){var n="",o,a,h,f,_,p;for(o=0,h=t.length;o<h;o++){for(_=t[o],a=0,f=_.length;a<f;a++)p=_[a],n+=(a?"L":"M")+p.x+" "+p.y;n+=e?z.svg?"z":"x":""}return n||"M0 0"}var yn=document.documentElement.style,Be="ActiveXObject"in window,fa=Be&&!document.addEventListener,Zi="msLaunchUri"in navigator&&!("documentMode"in document),xn=vt("webkit"),Ii=vt("android"),Bi=vt("android 2")||vt("android 3"),da=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),_a=Ii&&vt("Google")&&da<537&&!("AudioNode"in window),wn=!!window.opera,Ni=!Zi&&vt("chrome"),Ri=vt("gecko")&&!xn&&!wn&&!Be,pa=!Ni&&vt("safari"),Di=vt("phantom"),Fi="OTransition"in yn,ma=navigator.platform.indexOf("Win")===0,Wi=Be&&"transition"in yn,bn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Bi,Gi="MozPerspective"in yn,ga=!window.L_DISABLE_3D&&(Wi||bn||Gi)&&!Fi&&!Di,fe=typeof orientation<"u"||vt("mobile"),va=fe&&xn,ya=fe&&bn,ji=!window.PointerEvent&&window.MSPointerEvent,Hi=!!(window.PointerEvent||ji),Ui="ontouchstart"in window||!!window.TouchEvent,xa=!window.L_NO_TOUCH&&(Ui||Hi),wa=fe&&wn,ba=fe&&Ri,Aa=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,La=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",b,e),window.removeEventListener("testPassiveEventSupport",b,e)}catch{}return t}(),Pa=function(){return!!document.createElement("canvas").getContext}(),An=!!(document.createElementNS&&Si("svg").createSVGRect),za=!!An&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ka=!An&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),Ta=navigator.platform.indexOf("Mac")===0,Ea=navigator.platform.indexOf("Linux")===0;function vt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var z={ie:Be,ielt9:fa,edge:Zi,webkit:xn,android:Ii,android23:Bi,androidStock:_a,opera:wn,chrome:Ni,gecko:Ri,safari:pa,phantom:Di,opera12:Fi,win:ma,ie3d:Wi,webkit3d:bn,gecko3d:Gi,any3d:ga,mobile:fe,mobileWebkit:va,mobileWebkit3d:ya,msPointer:ji,pointer:Hi,touch:xa,touchNative:Ui,mobileOpera:wa,mobileGecko:ba,retina:Aa,passiveEvents:La,canvas:Pa,svg:An,vml:ka,inlineSvg:za,mac:Ta,linux:Ea},Vi=z.msPointer?"MSPointerDown":"pointerdown",Qi=z.msPointer?"MSPointerMove":"pointermove",qi=z.msPointer?"MSPointerUp":"pointerup",Ki=z.msPointer?"MSPointerCancel":"pointercancel",Ln={touchstart:Vi,touchmove:Qi,touchend:qi,touchcancel:Ki},Yi={touchstart:Ia,touchmove:Ne,touchend:Ne,touchcancel:Ne},Jt={},Ji=!1;function Ma(t,e,n){return e==="touchstart"&&Za(),Yi[e]?(n=Yi[e].bind(this,n),t.addEventListener(Ln[e],n,!1),n):(console.warn("wrong event specified:",e),b)}function Ca(t,e,n){if(!Ln[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ln[e],n,!1)}function Sa(t){Jt[t.pointerId]=t}function Oa(t){Jt[t.pointerId]&&(Jt[t.pointerId]=t)}function Xi(t){delete Jt[t.pointerId]}function Za(){Ji||(document.addEventListener(Vi,Sa,!0),document.addEventListener(Qi,Oa,!0),document.addEventListener(qi,Xi,!0),document.addEventListener(Ki,Xi,!0),Ji=!0)}function Ne(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in Jt)e.touches.push(Jt[n]);e.changedTouches=[e],t(e)}}function Ia(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&nt(e),Ne(t,e)}function Ba(t){var e={},n,o;for(o in t)n=t[o],e[o]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Na=200;function Ra(t,e){t.addEventListener("dblclick",e);var n=0,o;function a(h){if(h.detail!==1){o=h.detail;return}if(!(h.pointerType==="mouse"||h.sourceCapabilities&&!h.sourceCapabilities.firesTouchEvents)){var f=io(h);if(!(f.some(function(p){return p instanceof HTMLLabelElement&&p.attributes.for})&&!f.some(function(p){return p instanceof HTMLInputElement||p instanceof HTMLSelectElement}))){var _=Date.now();_-n<=Na?(o++,o===2&&e(Ba(h))):o=1,n=_}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Da(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Pn=Fe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=Fe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),$i=de==="webkitTransition"||de==="OTransition"?de+"End":"transitionend";function to(t){return typeof t=="string"?document.getElementById(t):t}function _e(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);n=o?o[e]:null}return n==="auto"?null:n}function R(t,e,n){var o=document.createElement(t);return o.className=e||"",n&&n.appendChild(o),o}function V(t){var e=t.parentNode;e&&e.removeChild(t)}function Re(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Xt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function $t(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function zn(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=De(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function S(t,e){if(t.classList!==void 0)for(var n=D(e),o=0,a=n.length;o<a;o++)t.classList.add(n[o]);else if(!zn(t,e)){var h=De(t);kn(t,(h?h+" ":"")+e)}}function K(t,e){t.classList!==void 0?t.classList.remove(e):kn(t,N((" "+De(t)+" ").replace(" "+e+" "," ")))}function kn(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function De(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function ft(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Fa(t,e)}function Fa(t,e){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(o)}catch{if(e===1)return}e=Math.round(e*100),n?(n.Enabled=e!==100,n.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function Fe(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Wt(t,e,n){var o=e||new M(0,0);t.style[Pn]=(z.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function J(t,e){t._leaflet_pos=e,z.any3d?Wt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Gt(t){return t._leaflet_pos||new M(0,0)}var pe,me,Tn;if("onselectstart"in document)pe=function(){C(window,"selectstart",nt)},me=function(){H(window,"selectstart",nt)};else{var ge=Fe(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);pe=function(){if(ge){var t=document.documentElement.style;Tn=t[ge],t[ge]="none"}},me=function(){ge&&(document.documentElement.style[ge]=Tn,Tn=void 0)}}function En(){C(window,"dragstart",nt)}function Mn(){H(window,"dragstart",nt)}var We,Cn;function Sn(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Ge(),We=t,Cn=t.style.outlineStyle,t.style.outlineStyle="none",C(window,"keydown",Ge))}function Ge(){We&&(We.style.outlineStyle=Cn,We=void 0,Cn=void 0,H(window,"keydown",Ge))}function eo(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function On(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Wa={__proto__:null,TRANSFORM:Pn,TRANSITION:de,TRANSITION_END:$i,get:to,getStyle:_e,create:R,remove:V,empty:Re,toFront:Xt,toBack:$t,hasClass:zn,addClass:S,removeClass:K,setClass:kn,getClass:De,setOpacity:ft,testProp:Fe,setTransform:Wt,setPosition:J,getPosition:Gt,get disableTextSelection(){return pe},get enableTextSelection(){return me},disableImageDrag:En,enableImageDrag:Mn,preventOutline:Sn,restoreOutline:Ge,getSizedParentNode:eo,getScale:On};function C(t,e,n,o){if(e&&typeof e=="object")for(var a in e)In(t,a,e[a],n);else{e=D(e);for(var h=0,f=e.length;h<f;h++)In(t,e[h],n,o)}return this}var yt="_leaflet_events";function H(t,e,n,o){if(arguments.length===1)no(t),delete t[yt];else if(e&&typeof e=="object")for(var a in e)Bn(t,a,e[a],n);else if(e=D(e),arguments.length===2)no(t,function(_){return j(e,_)!==-1});else for(var h=0,f=e.length;h<f;h++)Bn(t,e[h],n,o);return this}function no(t,e){for(var n in t[yt]){var o=n.split(/\d/)[0];(!e||e(o))&&Bn(t,o,null,null,n)}}var Zn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function In(t,e,n,o){var a=e+m(n)+(o?"_"+m(o):"");if(t[yt]&&t[yt][a])return this;var h=function(_){return n.call(o||t,_||window.event)},f=h;!z.touchNative&&z.pointer&&e.indexOf("touch")===0?h=Ma(t,e,h):z.touch&&e==="dblclick"?h=Ra(t,h):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Zn[e]||e,h,z.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(h=function(_){_=_||window.event,Rn(t,_)&&f(_)},t.addEventListener(Zn[e],h,!1)):t.addEventListener(e,f,!1):t.attachEvent("on"+e,h),t[yt]=t[yt]||{},t[yt][a]=h}function Bn(t,e,n,o,a){a=a||e+m(n)+(o?"_"+m(o):"");var h=t[yt]&&t[yt][a];if(!h)return this;!z.touchNative&&z.pointer&&e.indexOf("touch")===0?Ca(t,e,h):z.touch&&e==="dblclick"?Da(t,h):"removeEventListener"in t?t.removeEventListener(Zn[e]||e,h,!1):t.detachEvent("on"+e,h),t[yt][a]=null}function jt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Nn(t){return In(t,"wheel",jt),this}function ve(t){return C(t,"mousedown touchstart dblclick contextmenu",jt),t._leaflet_disable_click=!0,this}function nt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ht(t){return nt(t),jt(t),this}function io(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function oo(t,e){if(!e)return new M(t.clientX,t.clientY);var n=On(e),o=n.boundingClientRect;return new M((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)}var Ga=z.linux&&z.chrome?window.devicePixelRatio:z.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ro(t){return z.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ga:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Rn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var ja={__proto__:null,on:C,off:H,stopPropagation:jt,disableScrollPropagation:Nn,disableClickPropagation:ve,preventDefault:nt,stop:Ht,getPropagationPath:io,getMousePosition:oo,getWheelDelta:ro,isExternalTarget:Rn,addListener:C,removeListener:H},so=ue.extend({run:function(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Gt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Q(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),J(this._el,n),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),B=ue.extend({options:{crs:vn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=Z(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=d(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(I(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=de&&z.any3d&&!z.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),C(this._proxy,$i,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,n){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(I(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==void 0&&(n.zoom=u({animate:n.animate},n.zoom),n.pan=u({animate:n.animate,duration:n.duration},n.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,n.pan&&n.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(z.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(z.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),h=t instanceof M?t:this.latLngToContainerPoint(t),f=h.subtract(a).multiplyBy(1-1/o),_=this.containerPointToLatLng(a.add(f));return this.setView(_,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():Y(t);var n=E(e.paddingTopLeft||e.padding||[0,0]),o=E(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,n.add(o));if(a=typeof e.maxZoom=="number"?Math.min(e.maxZoom,a):a,a===1/0)return{center:t.getCenter(),zoom:a};var h=o.subtract(n).divideBy(2),f=this.project(t.getSouthWest(),a),_=this.project(t.getNorthEast(),a),p=this.unproject(f.add(_).divideBy(2).add(h),a);return{center:p,zoom:a}},fitBounds:function(t,e){if(t=Y(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=E(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new so,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){S(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(n=n||{},n.animate===!1||!z.any3d)return this.setView(t,e,n);this._stop();var o=this.project(this.getCenter()),a=this.project(t),h=this.getSize(),f=this._zoom;t=I(t),e=e===void 0?f:e;var _=Math.max(h.x,h.y),p=_*this.getZoomScale(f,e),v=a.distanceTo(o)||1,P=1.42,k=P*P;function O(X){var tn=X?-1:1,Cl=X?p:_,Sl=p*p-_*_+tn*k*k*v*v,Ol=2*Cl*k*v,Kn=Sl/Ol,Wo=Math.sqrt(Kn*Kn+1)-Kn,Zl=Wo<1e-9?-18:Math.log(Wo);return Zl}function ot(X){return(Math.exp(X)-Math.exp(-X))/2}function et(X){return(Math.exp(X)+Math.exp(-X))/2}function _t(X){return ot(X)/et(X)}var lt=O(0);function re(X){return _*(et(lt)/et(lt+P*X))}function kl(X){return _*(et(lt)*_t(lt+P*X)-ot(lt))/k}function Tl(X){return 1-Math.pow(1-X,1.5)}var El=Date.now(),Do=(O(1)-lt)/P,Ml=n.duration?1e3*n.duration:1e3*Do*.8;function Fo(){var X=(Date.now()-El)/Ml,tn=Tl(X)*Do;X<=1?(this._flyToFrame=Q(Fo,this),this._move(this.unproject(o.add(a.subtract(o).multiplyBy(kl(tn)/v)),f),this.getScaleZoom(_/re(tn),f),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),Fo.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=Y(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,Y(t));return n.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=E(e.paddingTopLeft||e.padding||[0,0]),o=E(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),h=this.project(t),f=this.getPixelBounds(),_=st([f.min.add(n),f.max.subtract(o)]),p=_.getSize();if(!_.contains(h)){this._enforcingBounds=!0;var v=h.subtract(_.getCenter()),P=_.extend(h).getSize().subtract(p);a.x+=v.x<0?-P.x:P.x,a.y+=v.y<0?-P.y:P.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=u({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),o=e.divideBy(2).round(),a=n.divideBy(2).round(),h=o.subtract(a);return!h.x&&!h.y?this:(t.animate&&t.pan?this.panBy(h):(t.pan&&this._rawPanBy(h),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(d(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=u({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=d(this._handleGeolocationResponse,this),n=d(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,o=new F(e,n),a=o.toBounds(t.coords.accuracy*2),h=this._locateOptions;if(h.setView){var f=this.getBoundsZoom(a);this.setView(o,h.maxZoom?Math.min(f,h.maxZoom):f)}var _={latlng:o,bounds:a,timestamp:t.timestamp};for(var p in t.coords)typeof t.coords[p]=="number"&&(_[p]=t.coords[p]);this.fire("locationfound",_)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)V(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=R("div",n,e||this._mapPane);return t&&(this._panes[t]=o),o},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),n=this.unproject(t.getTopRight());return new at(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Y(t),n=E(n||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),h=this.getMaxZoom(),f=t.getNorthWest(),_=t.getSouthEast(),p=this.getSize().subtract(n),v=st(this.project(_,o),this.project(f,o)).getSize(),P=z.any3d?this.options.zoomSnap:1,k=p.x/v.x,O=p.y/v.y,ot=e?Math.max(k,O):Math.min(k,O);return o=this.getScaleZoom(ot,o),P&&(o=Math.round(o/(P/100))*(P/100),o=e?Math.ceil(o/P)*P:Math.floor(o/P)*P),Math.max(a,Math.min(h,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new U(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var o=n.zoom(t*n.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(I(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(E(t),e)},layerPointToLatLng:function(t){var e=E(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(I(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(I(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Y(t))},distance:function(t,e){return this.options.crs.distance(I(t),I(e))},containerPointToLayerPoint:function(t){return E(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return E(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(E(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(I(t)))},mouseEventToContainerPoint:function(t){return oo(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=to(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");C(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,S(t,"leaflet-container"+(z.touch?" leaflet-touch":"")+(z.retina?" leaflet-retina":"")+(z.ielt9?" leaflet-oldie":"")+(z.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=_e(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),J(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(S(t.markerPane,"leaflet-zoom-hide"),S(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){J(this._mapPane,new M(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,n)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n&&n.pinch&&this.fire("zoom",n):((a||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){J(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[m(this._container)]=this;var e=t?H:C;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),z.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n=[],o,a=e==="mouseout"||e==="mouseover",h=t.target||t.srcElement,f=!1;h;){if(o=this._targets[m(h)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){f=!0;break}if(o&&o.listens(e,!0)&&(a&&!Rn(h,t)||(n.push(o),a))||h===this._container)break;h=h.parentNode}return!n.length&&!f&&!a&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var n=t.type;n==="mousedown"&&Sn(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=u({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var a=this._findEventTargets(t,e);if(n){for(var h=[],f=0;f<n.length;f++)n[f].listens(e,!0)&&h.push(n[f]);a=h.concat(a)}if(a.length){e==="contextmenu"&&nt(t);var _=a[0],p={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var v=_.getLatLng&&(!_._radius||_._radius<=10);p.containerPoint=v?this.latLngToContainerPoint(_.getLatLng()):this.mouseEventToContainerPoint(t),p.layerPoint=this.containerPointToLayerPoint(p.containerPoint),p.latlng=v?_.getLatLng():this.layerPointToLatLng(p.layerPoint)}for(f=0;f<a.length;f++)if(a[f].fire(e,p,!0),p.originalEvent._stopped||a[f].options.bubblingMouseEvents===!1&&j(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Gt(this._mapPane)||new M(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,n){var o=this._getNewPixelOrigin(n,e);return st([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var o=this.project(t,e),a=this.getSize().divideBy(2),h=new U(o.subtract(a),o.add(a)),f=this._getBoundsOffset(h,n,e);return Math.abs(f.x)<=1&&Math.abs(f.y)<=1?t:this.unproject(o.add(f),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),o=new U(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,n){var o=st(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),a=o.min.subtract(t.min),h=o.max.subtract(t.max),f=this._rebound(a.x,-h.x),_=this._rebound(a.y,-h.y);return new M(f,_)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=z.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){K(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=R("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=Pn,o=this._proxy.style[n];Wt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Wt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return n.animate!==!0&&!this.getSize().contains(a)?!1:(Q(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,S(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(d(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&K(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Ha(t,e){return new B(t,e)}var mt=Lt.extend({options:{position:"topright"},initialize:function(t){Z(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),o=t._controlCorners[n];return S(e,"leaflet-control"),n.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ye=function(t){return new mt(t)};B.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=R("div",e+"control-container",this._container);function o(a,h){var f=e+a+" "+e+h;t[a+h]=R("div",f,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)V(this._controlCorners[t]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ao=mt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,o){return n<o?-1:o<n?1:0}},initialize:function(t,e,n){Z(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return mt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(m(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){S(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(S(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):K(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return K(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=R("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ve(e),Nn(e);var o=this._section=R("section",t+"-list");n&&(this._map.on("click",this.collapse,this),C(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var a=this._layersLink=R("a",t+"-toggle",e);a.href="#",a.title="Layers",a.setAttribute("role","button"),C(a,{keydown:function(h){h.keyCode===13&&this._expandSafely()},click:function(h){nt(h),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=R("div",t+"-base",o),this._separator=R("div",t+"-separator",o),this._overlaysList=R("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&m(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(d(function(o,a){return this.options.sortFunction(o.layer,a.layer,o.name,a.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Re(this._baseLayersList),Re(this._overlaysList),this._layerControlInputs=[];var t,e,n,o,a=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,a+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&a>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(m(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=n):o=this._createRadioElement("leaflet-base-layers_"+m(this),n),this._layerControlInputs.push(o),o.layerId=m(t.layer),C(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var h=document.createElement("span");e.appendChild(h),h.appendChild(o),h.appendChild(a);var f=t.overlay?this._overlaysList:this._baseLayersList;return f.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,o=[],a=[];this._handlingClick=!0;for(var h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.checked?o.push(n):e.checked||a.push(n);for(h=0;h<a.length;h++)this._map.hasLayer(a[h])&&this._map.removeLayer(a[h]);for(h=0;h<o.length;h++)this._map.hasLayer(o[h])||this._map.addLayer(o[h]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,n,o=this._map.getZoom(),a=t.length-1;a>=0;a--)e=t[a],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&o<n.options.minZoom||n.options.maxZoom!==void 0&&o>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,C(t,"click",nt),this.expand();var e=this;setTimeout(function(){H(t,"click",nt),e._preventClick=!1})}}),Ua=function(t,e,n){return new ao(t,e,n)},Dn=mt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=R("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,o,a){var h=R("a",n,o);return h.innerHTML=t,h.href="#",h.title=e,h.setAttribute("role","button"),h.setAttribute("aria-label",e),ve(h),C(h,"click",Ht),C(h,"click",a,this),C(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";K(this._zoomInButton,e),K(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(S(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(S(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});B.mergeOptions({zoomControl:!0}),B.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Dn,this.addControl(this.zoomControl))});var Va=function(t){return new Dn(t)},lo=mt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=R("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=R("div",e,n)),t.imperial&&(this._iScale=R("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e=t*3.2808399,n,o,a;e>5280?(n=e/5280,o=this._getRoundNum(n),this._updateScale(this._iScale,o+" mi",o/n)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),Qa=function(t){return new lo(t)},qa='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Fn=mt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(z.inlineSvg?qa+" ":"")+"Leaflet</a>"},initialize:function(t){Z(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=R("div","leaflet-control-attribution"),ve(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});B.mergeOptions({attributionControl:!0}),B.addInitHook(function(){this.options.attributionControl&&new Fn().addTo(this)});var Ka=function(t){return new Fn(t)};mt.Layers=ao,mt.Zoom=Dn,mt.Scale=lo,mt.Attribution=Fn,ye.layers=Ua,ye.zoom=Va,ye.scale=Qa,ye.attribution=Ka;var xt=Lt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});xt.addTo=function(t,e){return t.addHandler(e,this),this};var Ya={Events:ht},ho=z.touch?"touchstart mousedown":"mousedown",St=ue.extend({options:{clickTolerance:3},initialize:function(t,e,n,o){Z(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(C(this._dragStartTarget,ho,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(St._dragging===this&&this.finishDrag(!0),H(this._dragStartTarget,ho,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!zn(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){St._dragging===this&&this.finishDrag();return}if(!(St._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(St._dragging=this,this._preventOutline&&Sn(this._element),En(),pe(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=eo(this._element);this._startPoint=new M(e.clientX,e.clientY),this._startPos=Gt(this._element),this._parentScale=On(n);var o=t.type==="mousedown";C(document,o?"mousemove":"touchmove",this._onMove,this),C(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,n=new M(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,nt(t),this._moved||(this.fire("dragstart"),this._moved=!0,S(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),S(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),J(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){K(document.body,"leaflet-dragging"),this._lastTarget&&(K(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),H(document,"mousemove touchmove",this._onMove,this),H(document,"mouseup touchend touchcancel",this._onUp,this),Mn(),me();var e=this._moved&&this._moving;this._moving=!1,St._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function uo(t,e,n){var o,a=[1,4,2,8],h,f,_,p,v,P,k,O;for(h=0,P=t.length;h<P;h++)t[h]._code=Ut(t[h],e);for(_=0;_<4;_++){for(k=a[_],o=[],h=0,P=t.length,f=P-1;h<P;f=h++)p=t[h],v=t[f],p._code&k?v._code&k||(O=je(v,p,k,e,n),O._code=Ut(O,e),o.push(O)):(v._code&k&&(O=je(v,p,k,e,n),O._code=Ut(O,e),o.push(O)),o.push(p));t=o}return t}function co(t,e){var n,o,a,h,f,_,p,v,P;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var k=I([0,0]),O=Y(t),ot=O.getNorthWest().distanceTo(O.getSouthWest())*O.getNorthEast().distanceTo(O.getNorthWest());ot<1700&&(k=Wn(t));var et=t.length,_t=[];for(n=0;n<et;n++){var lt=I(t[n]);_t.push(e.project(I([lt.lat-k.lat,lt.lng-k.lng])))}for(_=p=v=0,n=0,o=et-1;n<et;o=n++)a=_t[n],h=_t[o],f=a.y*h.x-h.y*a.x,p+=(a.x+h.x)*f,v+=(a.y+h.y)*f,_+=f*3;_===0?P=_t[0]:P=[p/_,v/_];var re=e.unproject(E(P));return I([re.lat+k.lat,re.lng+k.lng])}function Wn(t){for(var e=0,n=0,o=0,a=0;a<t.length;a++){var h=I(t[a]);e+=h.lat,n+=h.lng,o++}return I([e/o,n/o])}var Ja={__proto__:null,clipPolygon:uo,polygonCenter:co,centroid:Wn};function fo(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=tl(t,n),t=$a(t,n),t}function _o(t,e,n){return Math.sqrt(xe(t,e,n,!0))}function Xa(t,e,n){return xe(t,e,n)}function $a(t,e){var n=t.length,o=typeof Uint8Array<"u"?Uint8Array:Array,a=new o(n);a[0]=a[n-1]=1,Gn(t,a,e,0,n-1);var h,f=[];for(h=0;h<n;h++)a[h]&&f.push(t[h]);return f}function Gn(t,e,n,o,a){var h=0,f,_,p;for(_=o+1;_<=a-1;_++)p=xe(t[_],t[o],t[a],!0),p>h&&(f=_,h=p);h>n&&(e[f]=1,Gn(t,e,n,o,f),Gn(t,e,n,f,a))}function tl(t,e){for(var n=[t[0]],o=1,a=0,h=t.length;o<h;o++)el(t[o],t[a])>e&&(n.push(t[o]),a=o);return a<h-1&&n.push(t[h-1]),n}var po;function mo(t,e,n,o,a){var h=o?po:Ut(t,n),f=Ut(e,n),_,p,v;for(po=f;;){if(!(h|f))return[t,e];if(h&f)return!1;_=h||f,p=je(t,e,_,n,a),v=Ut(p,n),_===h?(t=p,h=v):(e=p,f=v)}}function je(t,e,n,o,a){var h=e.x-t.x,f=e.y-t.y,_=o.min,p=o.max,v,P;return n&8?(v=t.x+h*(p.y-t.y)/f,P=p.y):n&4?(v=t.x+h*(_.y-t.y)/f,P=_.y):n&2?(v=p.x,P=t.y+f*(p.x-t.x)/h):n&1&&(v=_.x,P=t.y+f*(_.x-t.x)/h),new M(v,P,a)}function Ut(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function el(t,e){var n=e.x-t.x,o=e.y-t.y;return n*n+o*o}function xe(t,e,n,o){var a=e.x,h=e.y,f=n.x-a,_=n.y-h,p=f*f+_*_,v;return p>0&&(v=((t.x-a)*f+(t.y-h)*_)/p,v>1?(a=n.x,h=n.y):v>0&&(a+=f*v,h+=_*v)),f=t.x-a,_=t.y-h,o?f*f+_*_:new M(a,h)}function dt(t){return!W(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function go(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),dt(t)}function vo(t,e){var n,o,a,h,f,_,p,v;if(!t||t.length===0)throw new Error("latlngs not passed");dt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var P=I([0,0]),k=Y(t),O=k.getNorthWest().distanceTo(k.getSouthWest())*k.getNorthEast().distanceTo(k.getNorthWest());O<1700&&(P=Wn(t));var ot=t.length,et=[];for(n=0;n<ot;n++){var _t=I(t[n]);et.push(e.project(I([_t.lat-P.lat,_t.lng-P.lng])))}for(n=0,o=0;n<ot-1;n++)o+=et[n].distanceTo(et[n+1])/2;if(o===0)v=et[0];else for(n=0,h=0;n<ot-1;n++)if(f=et[n],_=et[n+1],a=f.distanceTo(_),h+=a,h>o){p=(h-o)/a,v=[_.x-p*(_.x-f.x),_.y-p*(_.y-f.y)];break}var lt=e.unproject(E(v));return I([lt.lat+P.lat,lt.lng+P.lng])}var nl={__proto__:null,simplify:fo,pointToSegmentDistance:_o,closestPointOnSegment:Xa,clipSegment:mo,_getEdgeIntersection:je,_getBitCode:Ut,_sqClosestPointOnSegment:xe,isFlat:dt,_flat:go,polylineCenter:vo},jn={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new U([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new U([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,o=t.lat*e,a=this.R_MINOR/n,h=Math.sqrt(1-a*a),f=h*Math.sin(o),_=Math.tan(Math.PI/4-o/2)/Math.pow((1-f)/(1+f),h/2);return o=-n*Math.log(Math.max(_,1e-10)),new M(t.lng*e*n,o)},unproject:function(t){for(var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,a=Math.sqrt(1-o*o),h=Math.exp(-t.y/n),f=Math.PI/2-2*Math.atan(h),_=0,p=.1,v;_<15&&Math.abs(p)>1e-7;_++)v=a*Math.sin(f),v=Math.pow((1-v)/(1+v),a/2),p=Math.PI/2-2*Math.atan(h*v)-f,f+=p;return new F(f*e,t.x*e/n)}},il={__proto__:null,LonLat:jn,Mercator:Hn,SphericalMercator:mn},ol=u({},Ct,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return ce(t,.5,-t,.5)}()}),yo=u({},Ct,{code:"EPSG:4326",projection:jn,transformation:ce(1/180,1,-1/180,.5)}),rl=u({},Pt,{projection:jn,transformation:ce(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,o=e.lat-t.lat;return Math.sqrt(n*n+o*o)},infinite:!0});Pt.Earth=Ct,Pt.EPSG3395=ol,Pt.EPSG3857=vn,Pt.EPSG900913=ca,Pt.EPSG4326=yo,Pt.Simple=rl;var gt=ue.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});B.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=m(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return m(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?W(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=m(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var a=this._zoomBoundLayers[o].options;t=a.minZoom===void 0?t:Math.min(t,a.minZoom),e=a.maxZoom===void 0?e:Math.max(e,a.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var te=gt.extend({initialize:function(t,e){Z(this,e),this._layers={};var n,o;if(t)for(n=0,o=t.length;n<o;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),n,o;for(n in this._layers)o=this._layers[n],o[t]&&o[t].apply(o,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return m(t)}}),sl=function(t,e){return new te(t,e)},zt=te.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),te.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),te.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new at;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),al=function(t,e){return new zt(t,e)},ee=Lt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){Z(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var n=this.options,o=n[e+"Size"];typeof o=="number"&&(o=[o,o]);var a=E(o),h=E(e==="shadow"&&n.shadowAnchor||n.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),h&&(t.style.marginLeft=-h.x+"px",t.style.marginTop=-h.y+"px"),a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return z.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function ll(t){return new ee(t)}var we=ee.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof we.imagePath!="string"&&(we.imagePath=this._detectIconPath()),(this.options.imagePath||we.imagePath)+ee.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(n,o,a){var h=o.exec(n);return h&&h[a]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=R("div","leaflet-default-icon-path",document.body),e=_e(t,"background-image")||_e(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),xo=xt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new St(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),S(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&K(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,a=this._marker.options.autoPanPadding,h=Gt(e._icon),f=n.getPixelBounds(),_=n.getPixelOrigin(),p=st(f.min._subtract(_).add(a),f.max._subtract(_).subtract(a));if(!p.contains(h)){var v=E((Math.max(p.max.x,h.x)-p.max.x)/(f.max.x-p.max.x)-(Math.min(p.min.x,h.x)-p.min.x)/(f.min.x-p.min.x),(Math.max(p.max.y,h.y)-p.max.y)/(f.max.y-p.max.y)-(Math.min(p.min.y,h.y)-p.min.y)/(f.min.y-p.min.y)).multiplyBy(o);n.panBy(v,{animate:!1}),this._draggable._newPos._add(v),this._draggable._startPos._add(v),J(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Q(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(q(this._panRequest),this._panRequest=Q(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,o=Gt(e._icon),a=e._map.layerPointToLatLng(o);n&&J(n,o),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),He=gt.extend({options:{icon:new we,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){Z(this,e),this._latlng=I(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=I(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),n.tagName==="IMG"&&(n.alt=t.alt||"")),S(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&C(n,"focus",this._panOnFocus,this);var a=t.icon.createShadow(this._shadow),h=!1;a!==this._shadow&&(this._removeShadow(),h=!0),a&&(S(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&H(this._icon,"focus",this._panOnFocus,this),V(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&V(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&J(this._icon,t),this._shadow&&J(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(S(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),xo)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new xo(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ft(this._icon,t),this._shadow&&ft(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?E(e.iconSize):E(0,0),o=e.iconAnchor?E(e.iconAnchor):E(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function hl(t,e){return new He(t,e)}var Ot=gt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return Z(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ue=Ot.extend({options:{fill:!0,radius:10},initialize:function(t,e){Z(this,e),this._latlng=I(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=I(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Ot.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),o=[t+n,e+n];this._pxBounds=new U(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ul(t,e){return new Ue(t,e)}var Un=Ue.extend({initialize:function(t,e,n){if(typeof e=="number"&&(e=u({},n,{radius:e})),Z(this,e),this._latlng=I(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new at(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ot.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===Ct.distance){var a=Math.PI/180,h=this._mRadius/Ct.R/a,f=n.project([e+h,t]),_=n.project([e-h,t]),p=f.add(_).divideBy(2),v=n.unproject(p).lat,P=Math.acos((Math.cos(h*a)-Math.sin(e*a)*Math.sin(v*a))/(Math.cos(e*a)*Math.cos(v*a)))/a;(isNaN(P)||P===0)&&(P=h/Math.cos(Math.PI/180*e)),this._point=p.subtract(n.getPixelOrigin()),this._radius=isNaN(P)?0:p.x-n.project([v,t-P]).x,this._radiusY=p.y-f.y}else{var k=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(k).x}this._updateBounds()}});function cl(t,e,n){return new Un(t,e,n)}var kt=Ot.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){Z(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,n=null,o=xe,a,h,f=0,_=this._parts.length;f<_;f++)for(var p=this._parts[f],v=1,P=p.length;v<P;v++){a=p[v-1],h=p[v];var k=o(t,a,h,!0);k<e&&(e=k,n=o(t,a,h))}return n&&(n.distance=Math.sqrt(e)),n},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return vo(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=I(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new at,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return dt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=dt(t),o=0,a=t.length;o<a;o++)n?(e[o]=I(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new U;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new M(t,t);this._rawPxBounds&&(this._pxBounds=new U([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var o=t[0]instanceof F,a=t.length,h,f;if(o){for(f=[],h=0;h<a;h++)f[h]=this._map.latLngToLayerPoint(t[h]),n.extend(f[h]);e.push(f)}else for(h=0;h<a;h++)this._projectLatlngs(t[h],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,n,o,a,h,f,_,p;for(n=0,a=0,h=this._rings.length;n<h;n++)for(p=this._rings[n],o=0,f=p.length;o<f-1;o++)_=mo(p[o],p[o+1],t,o,!0),_&&(e[a]=e[a]||[],e[a].push(_[0]),(_[1]!==p[o+1]||o===f-2)&&(e[a].push(_[1]),a++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,o=t.length;n<o;n++)t[n]=fo(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,o,a,h,f,_,p=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,h=this._parts.length;n<h;n++)for(_=this._parts[n],o=0,f=_.length,a=f-1;o<f;a=o++)if(!(!e&&o===0)&&_o(t,_[a],_[o])<=p)return!0;return!1}});function fl(t,e){return new kt(t,e)}kt._flat=go;var ne=kt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return co(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=kt.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){kt.prototype._setLatLngs.call(this,t),dt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return dt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new U(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,a=this._rings.length,h;o<a;o++)h=uo(this._rings[o],t,!0),h.length&&this._parts.push(h)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,n,o,a,h,f,_,p,v;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(h=0,p=this._parts.length;h<p;h++)for(n=this._parts[h],f=0,v=n.length,_=v-1;f<v;_=f++)o=n[f],a=n[_],o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||kt.prototype._containsPoint.call(this,t,!0)}});function dl(t,e){return new ne(t,e)}var Tt=zt.extend({initialize:function(t,e){Z(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=W(t)?t:t.features,n,o,a;if(e){for(n=0,o=e.length;n<o;n++)a=e[n],(a.geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var h=this.options;if(h.filter&&!h.filter(t))return this;var f=Ve(t,h);return f?(f.feature=Ke(t),f.defaultOptions=f.options,this.resetStyle(f),h.onEachFeature&&h.onEachFeature(t,f),this.addLayer(f)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=u({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function Ve(t,e){var n=t.type==="Feature"?t.geometry:t,o=n?n.coordinates:null,a=[],h=e&&e.pointToLayer,f=e&&e.coordsToLatLng||Vn,_,p,v,P;if(!o&&!n)return null;switch(n.type){case"Point":return _=f(o),wo(h,t,_,e);case"MultiPoint":for(v=0,P=o.length;v<P;v++)_=f(o[v]),a.push(wo(h,t,_,e));return new zt(a);case"LineString":case"MultiLineString":return p=Qe(o,n.type==="LineString"?0:1,f),new kt(p,e);case"Polygon":case"MultiPolygon":return p=Qe(o,n.type==="Polygon"?1:2,f),new ne(p,e);case"GeometryCollection":for(v=0,P=n.geometries.length;v<P;v++){var k=Ve({geometry:n.geometries[v],type:"Feature",properties:t.properties},e);k&&a.push(k)}return new zt(a);case"FeatureCollection":for(v=0,P=n.features.length;v<P;v++){var O=Ve(n.features[v],e);O&&a.push(O)}return new zt(a);default:throw new Error("Invalid GeoJSON object.")}}function wo(t,e,n,o){return t?t(e,n):new He(n,o&&o.markersInheritOptions&&o)}function Vn(t){return new F(t[1],t[0],t[2])}function Qe(t,e,n){for(var o=[],a=0,h=t.length,f;a<h;a++)f=e?Qe(t[a],e-1,n):(n||Vn)(t[a]),o.push(f);return o}function Qn(t,e){return t=I(t),t.alt!==void 0?[A(t.lng,e),A(t.lat,e),A(t.alt,e)]:[A(t.lng,e),A(t.lat,e)]}function qe(t,e,n,o){for(var a=[],h=0,f=t.length;h<f;h++)a.push(e?qe(t[h],dt(t[h])?0:e-1,n,o):Qn(t[h],o));return!e&&n&&a.length>0&&a.push(a[0].slice()),a}function ie(t,e){return t.feature?u({},t.feature,{geometry:e}):Ke(e)}function Ke(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var qn={toGeoJSON:function(t){return ie(this,{type:"Point",coordinates:Qn(this.getLatLng(),t)})}};He.include(qn),Un.include(qn),Ue.include(qn),kt.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=qe(this._latlngs,e?1:0,!1,t);return ie(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ne.include({toGeoJSON:function(t){var e=!dt(this._latlngs),n=e&&!dt(this._latlngs[0]),o=qe(this._latlngs,n?2:e?1:0,!0,t);return e||(o=[o]),ie(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),te.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),ie(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var n=e==="GeometryCollection",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var h=a.toGeoJSON(t);if(n)o.push(h.geometry);else{var f=Ke(h);f.type==="FeatureCollection"?o.push.apply(o,f.features):o.push(f)}}}),n?ie(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function bo(t,e){return new Tt(t,e)}var _l=bo,Ye=gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Y(e),Z(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(S(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Xt(this._image),this},bringToBack:function(){return this._map&&$t(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Y(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:R("img");if(S(e,"leaflet-image-layer"),this._zoomAnimated&&S(e,"leaflet-zoom-animated"),this.options.className&&S(e,this.options.className),e.onselectstart=b,e.onmousemove=b,e.onload=d(this.fire,this,"load"),e.onerror=d(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Wt(this._image,n,e)},_reset:function(){var t=this._image,e=new U(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();J(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ft(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),pl=function(t,e,n){return new Ye(t,e,n)},Ao=Ye.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:R("video");if(S(e,"leaflet-image-layer"),this._zoomAnimated&&S(e,"leaflet-zoom-animated"),this.options.className&&S(e,this.options.className),e.onselectstart=b,e.onmousemove=b,e.onloadeddata=d(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],a=0;a<n.length;a++)o.push(n[a].src);this._url=n.length>0?o:[e.src];return}W(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var h=0;h<this._url.length;h++){var f=R("source");f.src=this._url[h],e.appendChild(f)}}});function ml(t,e,n){return new Ao(t,e,n)}var Lo=Ye.extend({_initImage:function(){var t=this._image=this._url;S(t,"leaflet-image-layer"),this._zoomAnimated&&S(t,"leaflet-zoom-animated"),this.options.className&&S(t,this.options.className),t.onselectstart=b,t.onmousemove=b}});function gl(t,e,n){return new Lo(t,e,n)}var wt=gt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof F||W(t))?(this._latlng=I(t),Z(this,e)):(Z(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ft(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ft(this._container,1),this.bringToFront(),this.options.interactive&&(S(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ft(this._container,0),this._removeTimeout=setTimeout(d(V,void 0,this._container),200)):V(this._container),this.options.interactive&&(K(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=I(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Xt(this._container),this},bringToBack:function(){return this._map&&$t(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof zt){e=null;var n=this._source._layers;for(var o in n)if(n[o]._map){e=n[o];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=E(this.options.offset),n=this._getAnchor();this._zoomAnimated?J(this._container,t.add(n)):e=e.add(t).add(n);var o=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=a+"px"}},_getAnchor:function(){return[0,0]}});B.include({_initOverlay:function(t,e,n,o){var a=e;return a instanceof t||(a=new t(o).setContent(e)),n&&a.setLatLng(n),a}}),gt.include({_initOverlay:function(t,e,n,o){var a=n;return a instanceof t?(Z(a,o),a._source=this):(a=e&&!o?e:new t(o,this),a.setContent(n)),a}});var Je=wt.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,wt.prototype.openOn.call(this,t)},onAdd:function(t){wt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ot||this._source.on("preclick",jt))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ot||this._source.off("preclick",jt))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=R("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=R("div",t+"-content-wrapper",e);if(this._contentNode=R("div",t+"-content",n),ve(e),Nn(this._contentNode),C(e,"contextmenu",jt),this._tipContainer=R("div",t+"-tip-container",e),this._tip=R("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=R("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',C(o,"click",function(a){nt(a),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var o=t.offsetHeight,a=this.options.maxHeight,h="leaflet-popup-scrolled";a&&o>a?(e.height=a+"px",S(t,h)):K(t,h),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();J(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(_e(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,o=this._containerWidth,a=new M(this._containerLeft,-n-this._containerBottom);a._add(Gt(this._container));var h=t.layerPointToContainerPoint(a),f=E(this.options.autoPanPadding),_=E(this.options.autoPanPaddingTopLeft||f),p=E(this.options.autoPanPaddingBottomRight||f),v=t.getSize(),P=0,k=0;h.x+o+p.x>v.x&&(P=h.x+o-v.x+p.x),h.x-P-_.x<0&&(P=h.x-_.x),h.y+n+p.y>v.y&&(k=h.y+n-v.y+p.y),h.y-k-_.y<0&&(k=h.y-_.y),(P||k)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([P,k]))}},_getAnchor:function(){return E(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vl=function(t,e){return new Je(t,e)};B.mergeOptions({closePopupOnClick:!0}),B.include({openPopup:function(t,e,n){return this._initOverlay(Je,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),gt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Je,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof zt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Ht(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ot)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Xe=wt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){wt.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){wt.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=wt.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=R("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,o=this._map,a=this._container,h=o.latLngToContainerPoint(o.getCenter()),f=o.layerPointToContainerPoint(t),_=this.options.direction,p=a.offsetWidth,v=a.offsetHeight,P=E(this.options.offset),k=this._getAnchor();_==="top"?(e=p/2,n=v):_==="bottom"?(e=p/2,n=0):_==="center"?(e=p/2,n=v/2):_==="right"?(e=0,n=v/2):_==="left"?(e=p,n=v/2):f.x<h.x?(_="right",e=0,n=v/2):(_="left",e=p+(P.x+k.x)*2,n=v/2),t=t.subtract(E(e,n,!0)).add(P).add(k),K(a,"leaflet-tooltip-right"),K(a,"leaflet-tooltip-left"),K(a,"leaflet-tooltip-top"),K(a,"leaflet-tooltip-bottom"),S(a,"leaflet-tooltip-"+_),J(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ft(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return E(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),yl=function(t,e){return new Xe(t,e)};B.include({openTooltip:function(t,e,n){return this._initOverlay(Xe,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),gt.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Xe,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof zt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&(C(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),C(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,n,o;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Po=ee.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(Re(e),e.appendChild(n.html)):e.innerHTML=n.html!==!1?n.html:"",n.bgPos){var o=E(n.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function xl(t){return new Po(t)}ee.Default=we;var be=gt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:z.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){Z(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),V(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Xt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&($t(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=y(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof M?t:new M(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,n=-t(-1/0,1/0),o=0,a=e.length,h;o<a;o++)h=e[o].style.zIndex,e[o]!==this._container&&h&&(n=t(n,+h));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!z.ielt9){ft(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var o in this._tiles){var a=this._tiles[o];if(!(!a.current||!a.loaded)){var h=Math.min(1,(t-a.loaded)/200);ft(a.el,h),h<1?e=!0:(a.active?n=!0:this._onOpaqueTile(a),a.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this))}},_onOpaqueTile:b,_initContainer:function(){this._container||(this._container=R("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t!==void 0){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(V(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[t],a=this._map;return o||(o=this._levels[t]={},o.el=R("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=a.project(a.unproject(a.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,a.getCenter(),a.getZoom()),b(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:b,_onRemoveLevel:b,_onCreateLevel:b,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)V(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,o){var a=Math.floor(t/2),h=Math.floor(e/2),f=n-1,_=new M(+a,+h);_.z=+f;var p=this._tileCoordsToKey(_),v=this._tiles[p];return v&&v.active?(v.retain=!0,!0):(v&&v.loaded&&(v.retain=!0),f>o?this._retainParent(a,h,f,o):!1)},_retainChildren:function(t,e,n,o){for(var a=2*t;a<2*t+2;a++)for(var h=2*e;h<2*e+2;h++){var f=new M(a,h);f.z=n+1;var _=this._tileCoordsToKey(f),p=this._tiles[_];if(p&&p.active){p.retain=!0;continue}else p&&p.loaded&&(p.retain=!0);n+1<o&&this._retainChildren(a,h,n+1,o)}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,o){var a=Math.round(e);this.options.maxZoom!==void 0&&a>this.options.maxZoom||this.options.minZoom!==void 0&&a<this.options.minZoom?a=void 0:a=this._clampZoom(a);var h=this.options.updateWhenZooming&&a!==this._tileZoom;(!o||h)&&(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),a!==void 0&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var o=this._map.getZoomScale(n,t.zoom),a=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();z.any3d?Wt(t.el,a,o):J(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),o=e.getZoomScale(n,this._tileZoom),a=e.project(t,this._tileZoom).floor(),h=e.getSize().divideBy(o*2);return new U(a.subtract(h),a.add(h))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),h=a.getCenter(),f=[],_=this.options.keepBuffer,p=new U(a.getBottomLeft().subtract([_,-_]),a.getTopRight().add([_,-_]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var v in this._tiles){var P=this._tiles[v].coords;(P.z!==this._tileZoom||!p.contains(new M(P.x,P.y)))&&(this._tiles[v].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var k=a.min.y;k<=a.max.y;k++)for(var O=a.min.x;O<=a.max.x;O++){var ot=new M(O,k);if(ot.z=this._tileZoom,!!this._isValidTile(ot)){var et=this._tiles[this._tileCoordsToKey(ot)];et?et.current=!0:f.push(ot)}}if(f.sort(function(lt,re){return lt.distanceTo(h)-re.distanceTo(h)}),f.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _t=document.createDocumentFragment();for(O=0;O<f.length;O++)this._addTile(f[O],_t);this._level.el.appendChild(_t)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(t);return Y(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),a=o.add(n),h=e.unproject(o,t.z),f=e.unproject(a,t.z);return[h,f]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new at(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(V(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){S(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=b,t.onmousemove=b,z.ielt9&&this.options.opacity<1&&ft(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),d(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&Q(d(this._tileReady,this,t,null,a)),J(a,n),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);n=this._tiles[o],n&&(n.loaded=+new Date,this._map._fadeAnimated?(ft(n.el,0),q(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(S(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),z.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(d(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?w(t.x,this._wrapX):t.x,this._wrapY?w(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new U(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function wl(t){return new be(t)}var oe=be.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=Z(this,e),e.detectRetina&&z.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return C(n,"load",d(this._tileOnLoad,this,e,n)),C(n,"error",d(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return ct(this._url,u(e,this.options))},_tileOnLoad:function(t,e){z.ielt9?setTimeout(d(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return n&&(t=e-t),t+o},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=b,e.onerror=b,!e.complete)){e.src=it;var n=this._tiles[t].coords;V(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",it),be.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===it))return be.prototype._tileReady.call(this,t,e,n)}});function zo(t,e){return new oe(t,e)}var ko=oe.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=u({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);e=Z(this,e);var a=e.detectRetina&&z.retina?2:1,h=this.getTileSize();n.width=h.x*a,n.height=h.y*a,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,oe.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,o=st(n.project(e[0]),n.project(e[1])),a=o.min,h=o.max,f=(this._wmsVersion>=1.3&&this._crs===yo?[a.y,a.x,h.y,h.x]:[a.x,a.y,h.x,h.y]).join(","),_=oe.prototype.getTileUrl.call(this,t);return _+pt(this.wmsParams,_,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+f},setParams:function(t,e){return u(this.wmsParams,t),e||this.redraw(),this}});function bl(t,e){return new ko(t,e)}oe.WMS=ko,zo.wms=bl;var Et=gt.extend({options:{padding:.1},initialize:function(t){Z(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),S(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),h=o.multiplyBy(-n).add(a).subtract(this._map._getNewPixelOrigin(t,e));z.any3d?Wt(this._container,h,n):J(this._container,h)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new U(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),To=Et.extend({options:{tolerance:0},getEvents:function(){var t=Et.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Et.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");C(t,"mousemove",this._onMouseMove,this),C(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),C(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,V(this._container),H(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),o=z.retina?2:1;J(e,t.min),e.width=o*n.x,e.height=o*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",z.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Et.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,o=e.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete t._order,delete this._layers[m(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),n=[],o,a;for(a=0;a<e.length;a++){if(o=Number(e[a]),isNaN(o))return;n.push(o)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Q(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new U,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)t=o.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,o,a,h,f=t._parts,_=f.length,p=this._ctx;if(_){for(p.beginPath(),n=0;n<_;n++){for(o=0,a=f[n].length;o<a;o++)h=f[n][o],p[o?"lineTo":"moveTo"](h.x,h.y);e&&p.closePath()}this._fillStroke(p,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),a=(Math.max(Math.round(t._radiusY),1)||o)/o;a!==1&&(n.save(),n.scale(1,a)),n.beginPath(),n.arc(e.x,e.y/a,o,0,Math.PI*2,!1),a!==1&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&n.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),n,o,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(n))&&(o=n);this._fireEvent(o?[o]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(K(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,o,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(S(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(d(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(n)n.prev=o;else return;o?o.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,o=e.prev;if(o)o.next=n;else return;n?n.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Eo(t){return z.canvas?new To(t):null}var Ae=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Al={_initContainer:function(){this._container=R("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Et.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Ae("shape");S(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Ae("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;V(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Ae("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=W(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(n||(n=t._fill=Ae("fill")),a.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(a.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),o=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Xt(t._container)},_bringToBack:function(t){$t(t._container)}},$e=z.vml?Ae:Si,Le=Et.extend({_initContainer:function(){this._container=$e("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$e("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){V(this._container),H(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Et.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),J(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=$e("path");t.options.className&&S(e,t.options.className),t.options.interactive&&S(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){V(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Oi(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||n,a="a"+n+","+o+" 0 1,0 ",h=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+a+n*2+",0 "+a+-n*2+",0 ";this._setPath(t,h)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Xt(t._path)},_bringToBack:function(t){$t(t._path)}});z.vml&&Le.include(Al);function Mo(t){return z.svg||z.vml?new Le(t):null}B.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Eo(t)||Mo(t)}});var Co=ne.extend({initialize:function(t,e){ne.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=Y(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Ll(t,e){return new Co(t,e)}Le.create=$e,Le.pointsToPath=Oi,Tt.geometryToLayer=Ve,Tt.coordsToLatLng=Vn,Tt.coordsToLatLngs=Qe,Tt.latLngToCoords=Qn,Tt.latLngsToCoords=qe,Tt.getFeature=ie,Tt.asFeature=Ke,B.mergeOptions({boxZoom:!0});var So=xt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){C(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){H(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){V(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),pe(),En(),this._startPoint=this._map.mouseEventToContainerPoint(t),C(document,{contextmenu:Ht,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=R("div","leaflet-zoom-box",this._container),S(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new U(this._point,this._startPoint),n=e.getSize();J(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(V(this._box),K(this._container,"leaflet-crosshair")),me(),Mn(),H(document,{contextmenu:Ht,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(d(this._resetState,this),0);var e=new at(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});B.addInitHook("addHandler","boxZoom",So),B.mergeOptions({doubleClickZoom:!0});var Oo=xt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?n-o:n+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});B.addInitHook("addHandler","doubleClickZoom",Oo),B.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Zo=xt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new St(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}S(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){K(this._map._container,"leaflet-grab"),K(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=Y(this._map.options.maxBounds);this._offsetLimit=st(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,a=(o-e+n)%t+e-n,h=(o+e+n)%t-e-n,f=Math.abs(a+n)<Math.abs(h+n)?a:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=f},_onDragEnd:function(t){var e=this._map,n=e.options,o=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var a=this._lastPos.subtract(this._positions[0]),h=(this._lastTime-this._times[0])/1e3,f=n.easeLinearity,_=a.multiplyBy(f/h),p=_.distanceTo([0,0]),v=Math.min(n.inertiaMaxSpeed,p),P=_.multiplyBy(v/p),k=v/(n.inertiaDeceleration*f),O=P.multiplyBy(-k/2).round();!O.x&&!O.y?e.fire("moveend"):(O=e._limitOffset(O,e.options.maxBounds),Q(function(){e.panBy(O,{duration:k,easeLinearity:f,noMoveStart:!0,animate:!0})}))}}});B.addInitHook("addHandler","dragging",Zo),B.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Io=xt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),C(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),H(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},n=this.keyCodes,o,a;for(o=0,a=n.left.length;o<a;o++)e[n.left[o]]=[-1*t,0];for(o=0,a=n.right.length;o<a;o++)e[n.right[o]]=[t,0];for(o=0,a=n.down.length;o<a;o++)e[n.down[o]]=[0,t];for(o=0,a=n.up.length;o<a;o++)e[n.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},n=this.keyCodes,o,a;for(o=0,a=n.zoomIn.length;o<a;o++)e[n.zoomIn[o]]=t;for(o=0,a=n.zoomOut.length;o<a;o++)e[n.zoomOut[o]]=-t},_addHooks:function(){C(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){H(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,n=this._map,o;if(e in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=E(o).multiplyBy(3)),n.options.maxBounds&&(o=n._limitOffset(E(o),n.options.maxBounds)),n.options.worldCopyJump){var a=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(o)));n.panTo(a)}else n.panBy(o)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;Ht(t)}}});B.addInitHook("addHandler","keyboard",Io),B.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Bo=xt.extend({addHooks:function(){C(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){H(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=ro(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(d(this._performZoom,this),o),Ht(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,h=n?Math.ceil(a/n)*n:a,f=t._limitZoom(e+(this._delta>0?h:-h))-e;this._delta=0,this._startTime=null,f&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+f):t.setZoomAround(this._lastMousePos,e+f))}});B.addInitHook("addHandler","scrollWheelZoom",Bo);var Pl=600;B.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var No=xt.extend({addHooks:function(){C(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){H(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new M(e.clientX,e.clientY),this._holdTimeout=setTimeout(d(function(){this._cancel(),this._isTapValid()&&(C(document,"touchend",nt),C(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Pl),C(document,"touchend touchcancel contextmenu",this._cancel,this),C(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){H(document,"touchend",nt),H(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),H(document,"touchend touchcancel contextmenu",this._cancel,this),H(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});B.addInitHook("addHandler","tapHold",No),B.mergeOptions({touchZoom:z.touch,bounceAtZoomLimits:!0});var Ro=xt.extend({addHooks:function(){S(this._map._container,"leaflet-touch-zoom"),C(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){K(this._map._container,"leaflet-touch-zoom"),H(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),C(document,"touchmove",this._onTouchMove,this),C(document,"touchend touchcancel",this._onTouchEnd,this),nt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var h=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&h.x===0&&h.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),q(this._animRequest);var f=d(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(f,this,!0),nt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),H(document,"touchmove",this._onTouchMove,this),H(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});B.addInitHook("addHandler","touchZoom",Ro),B.BoxZoom=So,B.DoubleClickZoom=Oo,B.Drag=Zo,B.Keyboard=Io,B.ScrollWheelZoom=Bo,B.TapHold=No,B.TouchZoom=Ro,s.Bounds=U,s.Browser=z,s.CRS=Pt,s.Canvas=To,s.Circle=Un,s.CircleMarker=Ue,s.Class=Lt,s.Control=mt,s.DivIcon=Po,s.DivOverlay=wt,s.DomEvent=ja,s.DomUtil=Wa,s.Draggable=St,s.Evented=ue,s.FeatureGroup=zt,s.GeoJSON=Tt,s.GridLayer=be,s.Handler=xt,s.Icon=ee,s.ImageOverlay=Ye,s.LatLng=F,s.LatLngBounds=at,s.Layer=gt,s.LayerGroup=te,s.LineUtil=nl,s.Map=B,s.Marker=He,s.Mixin=Ya,s.Path=Ot,s.Point=M,s.PolyUtil=Ja,s.Polygon=ne,s.Polyline=kt,s.Popup=Je,s.PosAnimation=so,s.Projection=il,s.Rectangle=Co,s.Renderer=Et,s.SVG=Le,s.SVGOverlay=Lo,s.TileLayer=oe,s.Tooltip=Xe,s.Transformation=gn,s.Util=he,s.VideoOverlay=Ao,s.bind=d,s.bounds=st,s.canvas=Eo,s.circle=cl,s.circleMarker=ul,s.control=ye,s.divIcon=xl,s.extend=u,s.featureGroup=al,s.geoJSON=bo,s.geoJson=_l,s.gridLayer=wl,s.icon=ll,s.imageOverlay=pl,s.latLng=I,s.latLngBounds=Y,s.layerGroup=sl,s.map=Ha,s.marker=hl,s.point=E,s.polygon=dl,s.polyline=fl,s.popup=vl,s.rectangle=Ll,s.setOptions=Z,s.stamp=m,s.svg=Mo,s.svgOverlay=gl,s.tileLayer=zo,s.tooltip=yl,s.transformation=ce,s.version=l,s.videoOverlay=ml;var zl=window.L;s.noConflict=function(){return window.L=zl,this},window.L=s})}(se,se.exports)),se.exports}var Vt=Vo();const Xn=Ho(Vt),Qo=Go({__proto__:null,default:Xn},[Vt]),nn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABC1BMVEUAAAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAAAgAD///8AlAAAkgAAgQAAgwAAhgAAjQAAkAAAhwAElQQAigD7/fv3/PcfoR8LmQsAjABRtlFGskY8rTw0qjQAkQDx+fHp9unX7te+5L6W05ZjvmMUnRTi8+Lc8NzP68+q26qc1px0xXRAr0DM6szI6Mi04LSIzYhyxHJpwGkupy4spyzxfiXGAAAALXRSTlMA/QL59OffBr60qG9iDuzPujoJ746Ff3l0TUhAMycjGxJd18WunJhZLRgMZVI0U6/AAAACQklEQVQ4y32U53baQBBGR6L33k1zjZ0sLJJA9GoDjmt63v9JMrNarELs+4ODVvd8MxrtCmzU62opmg6no6VqU4VjQieFVI4JFH8qnwl5hUY+wJwkL+vgRK2kmJfTL6pDiMuAnqbrutaTMbGQLVgNaMM+J9YzXUj+8kGpioTekHcPcENjSK4NguaZCDDELUL8GTAkeAJEUQh9WjYny8XrxORvynmCnvOUSoiE1e5uMxo/PC9NUqiQ7wqNGLkDXDL3XzsWt7+meG1Qu5EbyEYogmrsN50D4xdT1glkoBG0IvjKSpApr9wKUWJQ8aNhYI3njpMnU3YShbgiivDJg8u4/YMhVCYMMTQ03uWLscsYzdEYonEGZWnMRx0Xv8mwM46N0V4aEYhLY7lxGeOFNPL0LKLT++8u426Cho5DbUOd5jHDR3txlfkp5x78BIk0GjrHkK1D+EYRBrWRBSjKqfPVo11jiQLHIiwGAJkcjZ1W/j6NrS5/rLh8c0Hazzfi1c2o7nSx2z5ud/MpCWua+YUKSNv3tkF4d3o/xV8SqEayBkQrzGSKJQn6JLBoFgRXfoWUQd/eyTONyQhB4pyhQo6x5kh/SPdx7TIEkkyAKYo8UvJE4QJN64BaVAhmQ5e+Mthch5nihaVb4KAWYF4hUHMf/rLPY/hKKrhIRJk7ItICD/WUU6ETe0Ql6VD8cThGLTlayctxv9cKCzfhvzRSTDaRAS/2x8jVxDHqZz9NohCCdwkVsduLBHxAtuBLN+FDWgXvqP4Bkoed0xIT03MAAAAASUVORK5CYII=",qo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAQAAAC0NkA6AAAELklEQVR4AWIYBaNgFIyCUTAKRsEoADRLF2uSFEEcwCMjpaRlfb9vcXeHK+5whjP+GuzzMFfuzBl3d4fx6ZK0iGC2exenC4d/tHdV/NL+bNTf2kf+ODLUFEF9X4sIMMip+tPIouX16FWLEROKYiXzAlh80FxQyWfQ6gL8w4gCvB53cJ/2OMZOJ8xIyEjYLeYiyGM2VOVp5rxLl9GKAP8RBEFdrqe60EaLAYM66KiTbjWjR1CMAEqQKprkKpWhjhTLDLQyn436nUukz9Ejc451dmLRZkOms9F0xuuwVwlPQ4Av2VGR98ex399N+txvxQP5NAIGMMdhWY6fBFozsUedcVOHBRbksh3Z7DbsV0Y0acKvEECxpiPxaBi11iBMOfNnvMUAAOaNJcSKAgR9mtmxh1xdmBJLXx2uUvlcEV2y4cSMNCMhICiAzMzrcdZPzU2s0nbyaZzX1BxZG9jq00xb7C/rkutcQ/1J/VxFZXbZRkNzAhQrWJwuFsoGoEkvuwvsTAfcVhOYI78trCrAM8ysmNR6lEcXTF4eh5pLLnORjGjWCQF5TgAszhYAI++B6+os+EZa2IUXABTIso3HC+xmMRnh1E7Hk0+mapQqKcixBUx4cg7zoIAgIUlErxrcOXPTb/KO7sB/nICWzgSUx8PO1WdNPtr3yZQmeUQFWdCsfzJ+QUYG0hmSCtxhc6T5phVPqcprDLJ8udQtCjSYfcWn9bcjGu8RVXKMgKcAFGBkJEuaIKnEUXpoj862d2SWuzY0CWgIgZm6BMFku1GYMhfiyLL5MWBIE5LNOpnMUYL41J3drM2kyW3bQwQCHkSuhwNqot7W1rCJBjQj4wJARtJksk4um2iiRB1Cf2nP3Uetabu+9ZAgL4hBJEiCs+BFyDDvrkAQgM0ccEnHItpog/Xkr+t3+22/04Nv/Sg2+RQxgAisyq4EtnQRvSpOohgGQNH5BOBOAL7wyl/fH+sb33rrdaBYpgPpYwJeEIOIkmdgKkl62S9aNGvmrBBzuQeYUPqyt/29fdUpzz2FFEOC1OY5IPOCQWSRo7Ah1V5ZimQTihKdquB83evu/u5wZzrnfQixSZyYZvzxL4Eh5BZ4E2owotmQSbWiBFSGsnPd/e2xbtzZ3gUKmD7Mn9Mar/Iv2w8iokAdVZ8pB4pcYp8zAEbX39uc1h7oRp3zOu7GNmf6nC+X478BDCCLsCCnbAOyKKRrwg1t0Rzs9nv0IULeogP8MAOsLAEGkBdgDB1s88fR9jrUfG9y/aSbdpWHAHmSP+QnGERgOGbZReuwxbOUPeQ7ZJSLtM8f6DFMUpXfoAf4+uH+gzNRAC0jfRDOkmtUSzVVCQLElGf0ND8pIPC7o+Q3/1nVL9novLU6SkEVTQlTpK/ojwEDyIN4ud7RQY9VI5lPY+A36Cn+/cAwMpz/G/IdAqGyx1q2VHAAAAAASUVORK5CYII=",ze=()=>({createMap:(s,l,u)=>{const c=Vt.map(l,u),d=s?.tileLayerUrlTemplate||"https://tile.openstreetmap.org/{z}/{x}/{y}.png",g={maxZoom:19,attribution:"© OpenStreetMap",...s?.tileLayerOptions};return Vt.tileLayer(d,g).addTo(c),Vt.control.scale({imperial:!1}).addTo(c),c},createPinIcon:s=>Vt.icon({iconUrl:nn,shadowUrl:qo,iconSize:[25,41],iconAnchor:[12,41],shadowSize:[41,41],shadowAnchor:[12,41],popupAnchor:[1,-34],...s})}),$n=Qo,ti=(i,r,s)=>{const{createPinIcon:l}=ze(),u=x.computed(()=>x.unref(i).map(b=>[b.location.latitude,b.location.longitude])),c=x.computed(()=>{const b=new $n.LatLngBounds;return x.unref(u).forEach(A=>{b.extend(A)}),b}),d=l(),g=[];let m=!1;const y=()=>{!s.value||!r.value||(g.forEach(b=>r.value?.removeLayer(b)),g.length=0,x.unref(u).forEach(b=>{g.push($n.marker(b,{icon:d}).addTo(r.value))}))},w=()=>{if(!(!s.value||!r.value)&&(r.value.invalidateSize(),y(),!m&&x.unref(u).length>0)){const b=x.unref(u).length>1?15:10;r.value.fitBounds(x.unref(c),{maxZoom:b,padding:[20,20]}),m=!0}};return x.watch(()=>u.value.length,()=>{m=!1,w()}),x.watch(u,(b,A)=>{b.length===A?.length&&y()},{deep:!0}),{pinLocations:u,bounds:c,setView:w,updatePins:y}},Ko=x.defineComponent({__name:"LocationPanel",props:{panelContext:{},applicationConfig:{}},setup(i){const{createMap:r}=ze(),{onPanelActive:s}=Pe.useSideBar(),l=x.ref(null),u=x.ref(!1),c=x.ref(),d=x.computed(()=>!i.panelContext||!i.panelContext.items?[]:x.unref(i.panelContext.items.filter(m=>!!m.location))||[]),{setView:g}=ti(d,c,u);return x.onMounted(()=>{u.value=!0,c.value=r(i.applicationConfig,x.unref(l)),g()}),x.onUnmounted(()=>{c.value?.remove()}),s("location-details",()=>{u.value=!0,g()}),(m,y)=>(x.openBlock(),x.createElementBlock("div",{ref_key:"leafletElement",ref:l,class:"leafletContainer ext:h-[200px]"},null,512))}});var Yo=15e3,on=1e3,rn=60*on,ke=60*rn,sn=24*ke,Jo="http://www.topografix.com/GPX/gpx_style/0/2",Te=new L.Icon.Default,Xo={startIcon:Te,endIcon:Te,wptIcons:{"":Te},wptTypeIcons:{"":Te},pointMatchers:[]},$o={iconSize:[33,45],iconAnchor:[16,45],clickable:!1},tr={color:"blue"},er={parseElements:["track","route","waypoint"],joinTrackSegments:!0};L.GPX=L.FeatureGroup.extend({initialize:function(i,r){r.max_point_interval=r.max_point_interval||Yo,r.markers=this._merge_objs(Xo,r.markers||{}),r.marker_options=this._merge_objs($o,r.marker_options||{}),r.polyline_options=r.polyline_options||[],r.gpx_options=this._merge_objs(er,r.gpx_options||{}),L.Util.setOptions(this,r),L.GPXTrackIcon=L.Icon.extend({options:r.marker_options}),this._gpx=i,this._layers={},this._prepare_markers(r.markers),this._init_info(),i&&this._parse(i,r,this.options.async)},get_duration_string:function(i,r){var s="";i>=sn&&(s+=Math.floor(i/sn)+"d ",i=i%sn),i>=ke&&(s+=Math.floor(i/ke)+":",i=i%ke);var l=Math.floor(i/rn);i=i%rn,l<10&&(s+="0"),s+=l+"'";var u=Math.floor(i/on);return i=i%on,u<10&&(s+="0"),s+=u,!r&&i>0?s+="."+Math.round(Math.floor(i)*1e3)/1e3:s+='"',s},get_duration_string_iso:function(i,r){var s=this.get_duration_string(i,r);return s.replace("'",":").replace('"',"")},_toFixed_helper:function(i,r=0){return typeof i=="number"?i.toFixed(r):"?"},to_miles:function(i){return i/1.60934},to_ft:function(i){return i*3.28084},m_to_km:function(i){return i/1e3},m_to_mi:function(i){return i/1609.34},ms_to_kmh:function(i){return i*3.6},ms_to_mih:function(i){return i/1609.34*3600},get_name:function(){return this._info.name},get_desc:function(){return this._info.desc},get_author:function(){return this._info.author},get_copyright:function(){return this._info.copyright},get_distance:function(){return this._info.length},get_distance_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))},get_start_time:function(){return this._info.duration.start},get_end_time:function(){return this._info.duration.end},get_moving_time:function(){return this._info.duration.moving},get_total_time:function(){return this._info.duration.total},get_moving_pace:function(){return this.get_moving_time()/this.m_to_km(this.get_distance())},get_moving_pace_imp:function(){return this.get_moving_time()/this.get_distance_imp()},get_moving_speed:function(){return this.m_to_km(this.get_distance())/(this.get_moving_time()/(3600*1e3))},get_moving_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_moving_time()/(3600*1e3))},get_total_speed:function(){return this.m_to_km(this.get_distance())/(this.get_total_time()/(3600*1e3))},get_total_speed_imp:function(){return this.to_miles(this.m_to_km(this.get_distance()))/(this.get_total_time()/(3600*1e3))},get_elevation_gain:function(){return this._info.elevation.gain},get_elevation_loss:function(){return this._info.elevation.loss},get_elevation_gain_imp:function(){return this.to_ft(this.get_elevation_gain())},get_elevation_loss_imp:function(){return this.to_ft(this.get_elevation_loss())},get_elevation_data:function(){var i=this;return this._info.elevation._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" m"})})},get_elevation_data_imp:function(){var i=this;return this._info.elevation._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,i.to_ft,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" ft"})})},get_elevation_max:function(){return this._info.elevation.max},get_elevation_min:function(){return this._info.elevation.min},get_elevation_max_imp:function(){return this.to_ft(this.get_elevation_max())},get_elevation_min_imp:function(){return this.to_ft(this.get_elevation_min())},get_speed_data:function(){var i=this;return this._info.speed._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,i.ms_to_kmh,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,2)+" km/h"})})},get_speed_data_imp:function(){var i=this;return this._info.speed._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,i.ms_to_mih,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,2)+" mi/h"})})},get_speed_max:function(){return this.m_to_km(this._info.speed.max)*3600},get_speed_max_imp:function(){return this.to_miles(this.get_speed_max())},get_average_hr:function(){return this._info.hr.avg},get_average_temp:function(){return this._info.atemp.avg},get_average_cadence:function(){return this._info.cad.avg},get_heartrate_data:function(){var i=this;return this._info.hr._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" bpm"})})},get_heartrate_data_imp:function(){var i=this;return this._info.hr._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" bpm"})})},get_cadence_data:function(){var i=this;return this._info.cad._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data:function(){var i=this;return this._info.atemp._points.map(function(r){return i._prepare_data_point(r,i.m_to_km,null,function(s,l){return i._toFixed_helper(s,2)+" km, "+i._toFixed_helper(l,0)+" degrees"})})},get_cadence_data_imp:function(){var i=this;return this._info.cad._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" rpm"})})},get_temp_data_imp:function(){var i=this;return this._info.atemp._points.map(function(r){return i._prepare_data_point(r,i.m_to_mi,null,function(s,l){return i._toFixed_helper(s,2)+" mi, "+i._toFixed_helper(l,0)+" degrees"})})},reload:function(){this._init_info(),this.clearLayers(),this._parse(this._gpx,this.options,this.options.async)},_merge_objs:function(i,r){var s={};for(var l in i)s[l]=i[l];for(var l in r)s[l]=r[l];return s},_prepare_data_point:function(i,r,s,l){var u=[r&&r(i[0])||i[0],s&&s(i[1])||i[1]];return u.push(l&&l(u[0],u[1])||u[0]+": "+u[1]),u},_prepare_markers:function(i){function r(s){return new L.GPXTrackIcon({iconUrl:s})}return Object.entries(i).forEach(([s,l])=>{s==="wptIcons"||s==="wptTypeIcons"?i[s]=this._prepare_markers(l):s==="pointMatchers"?i[s]=l.map(u=>(typeof u.icon=="string"&&(u.icon=r(u.icon)),u)):typeof l=="string"?i[s]=r(l):typeof l=="object"&&l!==null&&(i[s]=l)}),i},_init_info:function(){this._info={name:null,length:0,elevation:{gain:0,loss:0,max:0,min:1/0,_points:[]},speed:{max:0,_points:[]},hr:{avg:0,_total:0,_points:[]},duration:{start:null,end:null,moving:0,total:0},atemp:{avg:0,_total:0,_points:[]},cad:{avg:0,_total:0,_points:[]}}},_load_xml:function(i,r,s,l){l==null&&(l=this.options.async),s==null&&(s=this.options);var u=this,c=new window.XMLHttpRequest;c.open("GET",i,l);try{c.overrideMimeType("text/xml")}catch{}c.onloadend=function(){c.status==200?r(c.responseXML,s):u.fire("error",{err:"Error fetching resource: "+i})},c.send(null)},_parse:function(i,r,s){var l=this,u=function(d,g){var m=l._parse_gpx_data(d,g);if(!m){l.fire("error",{err:"No parseable layers of type(s) "+JSON.stringify(g.gpx_options.parseElements)});return}l.addLayer(m),l.fire("loaded",{layers:m,element:d})};if(i.substr(0,1)==="<"){var c=new DOMParser;s?setTimeout(function(){u(c.parseFromString(i,"text/xml"),r)}):u(c.parseFromString(i,"text/xml"),r)}else this._load_xml(i,u,r,s)},_parse_gpx_data:function(i,r){var s,l,u=[],c=i.getElementsByTagName("name");c.length>0&&(this._info.name=c[0].textContent);var d=i.getElementsByTagName("desc");d.length>0&&(this._info.desc=d[0].textContent);var g=i.getElementsByTagName("author");g.length>0&&(this._info.author=g[0].textContent);var m=i.getElementsByTagName("copyright");m.length>0&&(this._info.copyright=m[0].textContent);var y=r.gpx_options.parseElements;if(y.indexOf("route")>-1){var w=i.getElementsByTagName("rte");for(s=0;s<w.length;s++){var b=w[s],A=this._extract_styling(b),N=this._get_polyline_options(r.polyline_options,s);u=u.concat(this._parse_segment(w[s],r,A,N,"rtept"))}}if(y.indexOf("track")>-1){var D=i.getElementsByTagName("trk");for(s=0;s<D.length;s++){var Z=D[s],A=this._extract_styling(Z),N=this._get_polyline_options(r.polyline_options,s);if(r.gpx_options.joinTrackSegments)u=u.concat(this._parse_segment(Z,r,A,N,"trkpt"));else{var pt=Z.getElementsByTagName("trkseg");for(q=0;q<pt.length;q++)u=u.concat(this._parse_segment(pt[q],r,A,N,"trkpt"))}}}if(this._info.hr.avg=Math.round(this._info.hr._total/this._info.hr._points.length),this._info.cad.avg=Math.round(this._info.cad._total/this._info.cad._points.length),this._info.atemp.avg=Math.round(this._info.atemp._total/this._info.atemp._points.length),y.indexOf("waypoint")>-1)for(l=i.getElementsByTagName("wpt"),s=0;s<l.length;s++){var bt=new L.LatLng(l[s].getAttribute("lat"),l[s].getAttribute("lon")),ct=l[s].getElementsByTagName("name"),c=ct.length>0?ct[0].textContent:"",W=l[s].getElementsByTagName("desc"),d=W.length>0?W[0].textContent:"",j=l[s].getElementsByTagName("sym"),it=j.length>0?j[0].textContent:null,Yt=l[s].getElementsByTagName("type"),Rt=Yt.length>0?Yt[0].textContent:null,At=r.markers.wptIcons,Dt=r.markers.wptTypeIcons,Ft=r.markers.pointMatchers||[],Q;if(At&&it&&At[it])Q=At[it];else if(Dt&&Rt&&Dt[Rt])Q=Dt[Rt];else if(Ft.length>0){for(var q=0;q<Ft.length;q++)if(Ft[q].regex.test(c)){Q=Ft[q].icon;break}}else At&&At[""]&&(Q=At[""]);if(!Q){console.log("No waypoint icon could be matched for symKey=%s,typeKey=%s,name=%s on waypoint %o",it,Rt,c,l[s]);continue}var he=new L.Marker(bt,{clickable:r.marker_options.clickable,title:c,icon:Q,type:"waypoint"});he.bindPopup("<b>"+c+"</b>"+(d.length>0?"<br>"+d:"")).openPopup(),this.fire("addpoint",{point:he,point_type:"waypoint",element:l[s]}),u.push(he)}if(u.length>1)return new L.FeatureGroup(u);if(u.length==1)return u[0]},_parse_segment:function(i,r,s,l,u){var c=i.getElementsByTagName(u);if(!c.length)return[];for(var d=[],g=[],m=[],y=null,w=0;w<c.length;w++){var b,A=new L.LatLng(c[w].getAttribute("lat"),c[w].getAttribute("lon"));A.meta={time:null,ele:null,hr:null,cad:null,atemp:null,speed:null},b=c[w].getElementsByTagName("time"),b.length>0?A.meta.time=new Date(Date.parse(b[0].textContent)):A.meta.time=new Date("1970-01-01T00:00:00");var N=y!=null?Math.abs(A.meta.time-y.meta.time):0;b=c[w].getElementsByTagName("ele"),b.length>0?A.meta.ele=parseFloat(b[0].textContent):A.meta.ele=y!=null?y.meta.ele:null;var D=y!=null?A.meta.ele-y.meta.ele:0,Z=y!=null?this._dist3d(y,A):0;if(b=c[w].getElementsByTagName("speed"),b.length>0?A.meta.speed=parseFloat(b[0].textContent):A.meta.speed=N>0?1e3*Z/N:0,b=c[w].getElementsByTagName("name"),b.length>0){for(var pt=b[0].textContent,bt=r.markers.pointMatchers||[],ct=0;ct<bt.length;ct++)if(bt[ct].regex.test(pt)){g.push({label:pt,coords:A,icon:bt[ct].icon,element:c[w]});break}}this._info.length+=Z,b=c[w].getElementsByTagNameNS("*","hr"),b.length>0&&(A.meta.hr=parseInt(b[0].textContent),this._info.hr._points.push([this._info.length,A.meta.hr]),this._info.hr._total+=A.meta.hr),b=c[w].getElementsByTagNameNS("*","cad"),b.length>0&&(A.meta.cad=parseInt(b[0].textContent),this._info.cad._points.push([this._info.length,A.meta.cad]),this._info.cad._total+=A.meta.cad),b=c[w].getElementsByTagNameNS("*","atemp"),b.length>0&&(A.meta.atemp=parseInt(b[0].textContent),this._info.atemp._points.push([this._info.length,A.meta.atemp]),this._info.atemp._total+=A.meta.atemp),A.meta.ele>this._info.elevation.max&&(this._info.elevation.max=A.meta.ele),A.meta.ele<this._info.elevation.min&&(this._info.elevation.min=A.meta.ele),this._info.elevation._points.push([this._info.length,A.meta.ele]),A.meta.speed>this._info.speed.max&&(this._info.speed.max=A.meta.speed),this._info.speed._points.push([this._info.length,A.meta.speed]),y==null&&this._info.duration.start==null&&(this._info.duration.start=A.meta.time),this._info.duration.end=A.meta.time,this._info.duration.total+=N,N<r.max_point_interval&&(this._info.duration.moving+=N),D>0?this._info.elevation.gain+=D:this._info.elevation.loss+=Math.abs(D),y=A,d.push(A)}var W=new L.Polyline(d,this._extract_styling(i,s,l));if(this.fire("addline",{line:W,element:i}),m.push(W),r.markers.startIcon){var j=new L.Marker(d[0],{clickable:r.marker_options.clickable,icon:r.markers.startIcon});this.fire("addpoint",{point:j,point_type:"start",element:c[0],line:i}),m.push(j)}if(r.markers.endIcon){var j=new L.Marker(d[d.length-1],{clickable:r.marker_options.clickable,icon:r.markers.endIcon});this.fire("addpoint",{point:j,point_type:"end",element:c[c.length-1],line:i}),m.push(j)}for(var w=0;w<g.length;w++){var j=new L.Marker(g[w].coords,{clickable:r.marker_options.clickable,title:g[w].label,icon:g[w].icon});this.fire("addpoint",{point:j,point_type:"label",element:g[w].element}),m.push(j)}return m},_get_polyline_options:function(i,r){return Array.isArray(i)?i[r]||{}:i},_extract_styling:function(i,r,s){var l=this._merge_objs(tr,r),u=i.getElementsByTagNameNS(Jo,"line");if(u.length>0){var c=u[0].getElementsByTagName("color");c.length>0&&(l.color="#"+c[0].textContent);var c=u[0].getElementsByTagName("opacity");c.length>0&&(l.opacity=c[0].textContent);var c=u[0].getElementsByTagName("weight");c.length>0&&(l.weight=c[0].textContent);var c=u[0].getElementsByTagName("linecap");c.length>0&&(l.lineCap=c[0].textContent);var c=u[0].getElementsByTagName("linejoin");c.length>0&&(l.lineJoin=c[0].textContent);var c=u[0].getElementsByTagName("dasharray");c.length>0&&(l.dashArray=c[0].textContent);var c=u[0].getElementsByTagName("dashoffset");c.length>0&&(l.dashOffset=c[0].textContent)}return this._merge_objs(l,s)},_dist2d:function(i,r){var s=6371e3,l=this._deg2rad(r.lat-i.lat),u=this._deg2rad(r.lng-i.lng),c=Math.sin(l/2)*Math.sin(l/2)+Math.cos(this._deg2rad(i.lat))*Math.cos(this._deg2rad(r.lat))*Math.sin(u/2)*Math.sin(u/2),d=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),g=s*d;return g},_dist3d:function(i,r){var s=this._dist2d(i,r),l=Math.abs(r.meta.ele-i.meta.ele);return Math.sqrt(Math.pow(s,2)+Math.pow(l,2))},_deg2rad:function(i){return i*Math.PI/180}});const ei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAtCAMAAAAX+PImAAABAlBMVEUAAADGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkLGQkL///+3LCy4Li62KSnFQEDDPT3COzu7MjK9NDT9+Pi6MDC/NzfARUXBOTn+/PzUf3/Ob2/GV1e6NTX57e303t7iqKjYjIzLZGTJX1/78/P35+f14uLx19fx1NTtysrrxMTkrq7MaGjIXFzEUVG8PDznubnnuLjdnJy+Pz/5SaUvAAAALHRSTlMA/AL5Cgb08ObdurSoGg3sz75zbmM6joV/eVpNSEAzJyMSX+jh18SunJgtUvqwWL0AAAJBSURBVDjLfZN3e6JAEIcHsAXF3kssudRbAQFBjSWx5NLLle//VW5nWaUYff/hYZ+X3wyzu+AhKs1aSpblVK2piLBP9LSSjROGEM+WS9Gw0CkniJ/MdRv8iI0sCXP+U/QJxTPCGBimaRoDHlOI7oSe24AxsjRN1TRnaDIplt8qzQT7fqSpWzTLwKV4HRjKBRMsFdEpzDFx8eQUkOpO0LXxZr0Za/pOuUzjf56jMFQp8+W9bduPbx8sBQtJWKeA7gSXpr/6LncrTLSw3WQEIkmMcOjK9KG/xV5hCtY5K0HnxI3Q524CT1nrNAR3IA+NGH0OaY23vp8/Fu8kBUWBFdHHjwHj7pOGTKiRgwI1DE3V13bAuJ1RY0SNC8hzY3bbDzBFg2ccN5JQ5MbHQ0Cw37lRxn9h4/h6Dhj3Y50NROpBG+eBM18FyvzFIdOh/riBtEwNk77/e/EJzxhhuVOHKt9Zff7k1djofHcLAFCKY4hGlc/fttvl61ylDLFIGwC3jneiL96Xr08vy9kCD4iDM78SgVKXdgdEVxdfC9U7ZJkWIN0c4YoPBwWSigCjHhNQmTjeScYeeASSviRUQcdyNIo1whbo2nUUOKUEEQR+pQxjgN/jwsmNd+eqAkI88FXKg4eSI0IYInfBRytBwkKiBX7EvBQypJoIAdIpEoxIdiFEO+tX8Mbu0cj4lFgR9hFrvlbKfNyHWiE5Bb6lkyW8iRIcoOlOJdaDQ4jFOE6iEoWDRKu026s0HCFSkWQFjtKthEf1H+4TmsxXLEfyAAAAAElFTkSuQmCC",nr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAzCAMAAAAuJJHNAAAAkFBMVEUAAAAAru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru8Aru9ovJP8AAAAL3RSTlMA+AT68Fr0FA8H3MSXQDkL6+bg1o6CUkcxwbitbV8sJyQZz76neH1yTB6yolWHaUf8FCEAAAGESURBVDjLfdTnloIwEAXgmyxVKUoTxLWsvezO+7/dqkgGDPH7B2dOuJkwQVe8Dgv7Fq48DIqjfJtYQggrGWczvcifXSxiTmXH6DkHFvWJeomOcky6dNYp+KEhiSrZbGlY+vqQzMikbuKGEzIRNu7klcwqD8BySmbiEXbRi18Hu/SLWAbIHSlOtpaQm30n2NjFhnvxtZd4srnB0xIlx5h7aMiAgxSYOdT6RivklwvYQqWI+CATVZHjWyW3uGIzUhW/uAkV1EYr4qgHRLy1nY+XvNt3l3frtFHDKe92CQTEj38egLhISZnHQNFpsqjyxWHuENs/cqdkNilxl5FZ7fPWdNwAvyaTHxdPhSCDIxqe6V8frfHCZ9OXo+WOh5dYAZ8XycHcypCC2YI0B3R5c31oz+g5Oe/tXKDPV2PDg/ImmmgzzYbuiEsMzWpEbBJiwJFYIMG03nO/NYXDpz7Mv1KjcmFQJvRgnWC0b2L6YENhR0t8cLLUgRjIgG8ig9U2xGdy/R7zH4uopdSUohgfAAAAAElFTkSuQmCC",ir={class:"ext:flex ext:flex-col"},or={class:"ext:absolute ext:grid ext:grid-cols-[auto_minmax(0,1fr)] ext:z-990 bg-role-surface-container ext:rounded ext:p-2 ext:right-2 ext:top-2"},rr=["textContent"],sr=["textContent"],ar=["textContent"],lr=["textContent"],hr=x.defineComponent({__name:"GpxMap",props:{currentContent:{},applicationConfig:{}},setup(i){const{createMap:r}=ze(),s=x.ref(null),{$gettext:l}=en.useGettext();let u=null;const c=x.ref({}),d={async:!0,marker_options:{clickable:!1},markers:{startIcon:nn,endIcon:ei,wptIcons:{start:nn,end:ei,"":nr}}};let g=null;const m=()=>{u&&(g&&u.removeLayer(g),g=new Xn.GPX(i.currentContent,d).on("loaded",y=>{const w=y.target;u.fitBounds(y.target.getBounds()),c.value={name:w.get_name(),distance:w.get_distance_imp().toFixed(2),elevationGain:w.to_ft(w.get_elevation_gain()).toFixed(0),elevationLoss:w.to_ft(w.get_elevation_loss()).toFixed(0),elevationNet:w.to_ft(w.get_elevation_gain()-w.get_elevation_loss()).toFixed(0)}}).addTo(u))};return x.onMounted(()=>{u=r(i.applicationConfig,x.unref(s)),m()}),x.watch(()=>i.currentContent,m),x.onBeforeUnmount(()=>{u?.remove()}),(y,w)=>(x.openBlock(),x.createElementBlock("div",ir,[x.createElementVNode("div",{ref_key:"leafletElement",ref:s,class:"ext:size-full ext:z-1"},[x.createElementVNode("dl",or,[x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Name"))},null,8,rr),x.createElementVNode("dd",null,x.toDisplayString(c.value.name),1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Distance"))},null,8,sr),x.createElementVNode("dd",null,x.toDisplayString(c.value.distance)+"km",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Elevation Gain"))},null,8,ar),x.createElementVNode("dd",null,x.toDisplayString(c.value.elevationGain)+"m",1),x.createElementVNode("dt",{textContent:x.toDisplayString(x.unref(l)("Elevation Loss"))},null,8,lr),x.createElementVNode("dd",null,x.toDisplayString(c.value.elevationLoss)+"m",1)])],512)]))}}),ur={class:"ext:h-full"},cr=["textContent"],fr=x.defineComponent({__name:"LocationFolderView",props:{resources:{},applicationConfig:{}},setup(i){const{$gettext:r}=en.useGettext(),{createMap:s}=ze(),l=x.ref(null),u=x.ref(!1),c=x.ref(),d=x.computed(()=>x.unref(i.resources?.filter(y=>!!y.location))||[]),{pinLocations:g,setView:m}=ti(d,c,u);return x.onMounted(()=>{u.value=!0,c.value=s(i.applicationConfig,x.unref(l)),m()}),x.onUnmounted(()=>{c.value?.remove()}),(y,w)=>(x.openBlock(),x.createElementBlock("div",ur,[x.unref(g).length?x.createCommentVNode("",!0):(x.openBlock(),x.createBlock(x.unref(Pe.NoContentMessage),{key:0,icon:"map-2"},{message:x.withCtx(()=>[x.createElementVNode("span",{textContent:x.toDisplayString(x.unref(r)("No files with location data"))},null,8,cr)]),_:1})),x.createElementVNode("div",{ref_key:"leafletElement",ref:l,class:x.normalizeClass(["ext:h-full",{hidden:!x.unref(g).length}])},null,2)]))}});function T(i,r,s){function l(g,m){var y;Object.defineProperty(g,"_zod",{value:g._zod??{},enumerable:!1}),(y=g._zod).traits??(y.traits=new Set),g._zod.traits.add(i),r(g,m);for(const w in d.prototype)w in g||Object.defineProperty(g,w,{value:d.prototype[w].bind(g)});g._zod.constr=d,g._zod.def=m}const u=s?.Parent??Object;class c extends u{}Object.defineProperty(c,"name",{value:i});function d(g){var m;const y=s?.Parent?new c:this;l(y,g),(m=y._zod).deferred??(m.deferred=[]);for(const w of y._zod.deferred)w();return y}return Object.defineProperty(d,"init",{value:l}),Object.defineProperty(d,Symbol.hasInstance,{value:g=>s?.Parent&&g instanceof s.Parent?!0:g?._zod?.traits?.has(i)}),Object.defineProperty(d,"name",{value:i}),d}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ni extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const ii={};function Zt(i){return ii}function dr(i){const r=Object.values(i).filter(l=>typeof l=="number");return Object.entries(i).filter(([l,u])=>r.indexOf(+l)===-1).map(([l,u])=>u)}function an(i,r){return typeof r=="bigint"?r.toString():r}function ln(i){return{get value(){{const r=i();return Object.defineProperty(this,"value",{value:r}),r}}}}function hn(i){return i==null}function un(i){const r=i.startsWith("^")?1:0,s=i.endsWith("$")?i.length-1:i.length;return i.slice(r,s)}const oi=Symbol("evaluating");function G(i,r,s){let l;Object.defineProperty(i,r,{get(){if(l!==oi)return l===void 0&&(l=oi,l=s()),l},set(u){Object.defineProperty(i,r,{value:u})},configurable:!0})}function It(i,r,s){Object.defineProperty(i,r,{value:s,writable:!0,enumerable:!0,configurable:!0})}function Bt(...i){const r={};for(const s of i){const l=Object.getOwnPropertyDescriptors(s);Object.assign(r,l)}return Object.defineProperties({},r)}function ri(i){return JSON.stringify(i)}const si="captureStackTrace"in Error?Error.captureStackTrace:(...i)=>{};function Ee(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}const _r=ln(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function ae(i){if(Ee(i)===!1)return!1;const r=i.constructor;if(r===void 0)return!0;const s=r.prototype;return!(Ee(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function ai(i){return ae(i)?{...i}:Array.isArray(i)?[...i]:i}const pr=new Set(["string","number","symbol"]);function mr(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mt(i,r,s){const l=new i._zod.constr(r??i._zod.def);return(!r||s?.parent)&&(l._zod.parent=i),l}function rt(i){const r=i;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function gr(i){return Object.keys(i).filter(r=>i[r]._zod.optin==="optional"&&i[r]._zod.optout==="optional")}function vr(i,r){const s=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={};for(const c in r){if(!(c in s.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=s.shape[c])}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function yr(i,r){const s=i._zod.def,l=Bt(i._zod.def,{get shape(){const u={...i._zod.def.shape};for(const c in r){if(!(c in s.shape))throw new Error(`Unrecognized key: "${c}"`);r[c]&&delete u[c]}return It(this,"shape",u),u},checks:[]});return Mt(i,l)}function xr(i,r){if(!ae(r))throw new Error("Invalid input to extend: expected a plain object");const s=i._zod.def.checks;if(s&&s.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const u=Bt(i._zod.def,{get shape(){const c={...i._zod.def.shape,...r};return It(this,"shape",c),c},checks:[]});return Mt(i,u)}function wr(i,r){if(!ae(r))throw new Error("Invalid input to safeExtend: expected a plain object");const s={...i._zod.def,get shape(){const l={...i._zod.def.shape,...r};return It(this,"shape",l),l},checks:i._zod.def.checks};return Mt(i,s)}function br(i,r){const s=Bt(i._zod.def,{get shape(){const l={...i._zod.def.shape,...r._zod.def.shape};return It(this,"shape",l),l},get catchall(){return r._zod.def.catchall},checks:[]});return Mt(i,s)}function Ar(i,r,s){const l=Bt(r._zod.def,{get shape(){const u=r._zod.def.shape,c={...u};if(s)for(const d in s){if(!(d in u))throw new Error(`Unrecognized key: "${d}"`);s[d]&&(c[d]=i?new i({type:"optional",innerType:u[d]}):u[d])}else for(const d in u)c[d]=i?new i({type:"optional",innerType:u[d]}):u[d];return It(this,"shape",c),c},checks:[]});return Mt(r,l)}function Lr(i,r,s){const l=Bt(r._zod.def,{get shape(){const u=r._zod.def.shape,c={...u};if(s)for(const d in s){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);s[d]&&(c[d]=new i({type:"nonoptional",innerType:u[d]}))}else for(const d in u)c[d]=new i({type:"nonoptional",innerType:u[d]});return It(this,"shape",c),c},checks:[]});return Mt(r,l)}function qt(i,r=0){if(i.aborted===!0)return!0;for(let s=r;s<i.issues.length;s++)if(i.issues[s]?.continue!==!0)return!0;return!1}function li(i,r){return r.map(s=>{var l;return(l=s).path??(l.path=[]),s.path.unshift(i),s})}function Me(i){return typeof i=="string"?i:i?.message}function Nt(i,r,s){const l={...i,path:i.path??[]};if(!i.message){const u=Me(i.inst?._zod.def?.error?.(i))??Me(r?.error?.(i))??Me(s.customError?.(i))??Me(s.localeError?.(i))??"Invalid input";l.message=u}return delete l.inst,delete l.continue,r?.reportInput||delete l.input,l}function cn(i){return Array.isArray(i)?"array":typeof i=="string"?"string":"unknown"}function le(...i){const[r,s,l]=i;return typeof r=="string"?{message:r,code:"custom",input:s,inst:l}:{...r}}const hi=(i,r)=>{i.name="$ZodError",Object.defineProperty(i,"_zod",{value:i._zod,enumerable:!1}),Object.defineProperty(i,"issues",{value:r,enumerable:!1}),i.message=JSON.stringify(r,an,2),Object.defineProperty(i,"toString",{value:()=>i.message,enumerable:!1})},ui=T("$ZodError",hi),ci=T("$ZodError",hi,{Parent:Error});function Pr(i,r=s=>s.message){const s={},l=[];for(const u of i.issues)u.path.length>0?(s[u.path[0]]=s[u.path[0]]||[],s[u.path[0]].push(r(u))):l.push(r(u));return{formErrors:l,fieldErrors:s}}function zr(i,r=s=>s.message){const s={_errors:[]},l=u=>{for(const c of u.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(d=>l({issues:d}));else if(c.code==="invalid_key")l({issues:c.issues});else if(c.code==="invalid_element")l({issues:c.issues});else if(c.path.length===0)s._errors.push(r(c));else{let d=s,g=0;for(;g<c.path.length;){const m=c.path[g];g===c.path.length-1?(d[m]=d[m]||{_errors:[]},d[m]._errors.push(r(c))):d[m]=d[m]||{_errors:[]},d=d[m],g++}}};return l(i),s}const fn=i=>(r,s,l,u)=>{const c=l?Object.assign(l,{async:!1}):{async:!1},d=r._zod.run({value:s,issues:[]},c);if(d instanceof Promise)throw new Qt;if(d.issues.length){const g=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw si(g,u?.callee),g}return d.value},dn=i=>async(r,s,l,u)=>{const c=l?Object.assign(l,{async:!0}):{async:!0};let d=r._zod.run({value:s,issues:[]},c);if(d instanceof Promise&&(d=await d),d.issues.length){const g=new(u?.Err??i)(d.issues.map(m=>Nt(m,c,Zt())));throw si(g,u?.callee),g}return d.value},Ce=i=>(r,s,l)=>{const u=l?{...l,async:!1}:{async:!1},c=r._zod.run({value:s,issues:[]},u);if(c instanceof Promise)throw new Qt;return c.issues.length?{success:!1,error:new(i??ui)(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},kr=Ce(ci),Se=i=>async(r,s,l)=>{const u=l?Object.assign(l,{async:!0}):{async:!0};let c=r._zod.run({value:s,issues:[]},u);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new i(c.issues.map(d=>Nt(d,u,Zt())))}:{success:!0,data:c.value}},Tr=Se(ci),Er=i=>(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return fn(i)(r,s,u)},Mr=i=>(r,s,l)=>fn(i)(r,s,l),Cr=i=>async(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return dn(i)(r,s,u)},Sr=i=>async(r,s,l)=>dn(i)(r,s,l),Or=i=>(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Ce(i)(r,s,u)},Zr=i=>(r,s,l)=>Ce(i)(r,s,l),Ir=i=>async(r,s,l)=>{const u=l?Object.assign(l,{direction:"backward"}):{direction:"backward"};return Se(i)(r,s,u)},Br=i=>async(r,s,l)=>Se(i)(r,s,l),Nr=/^(?:true|false)$/i,Kt=T("$ZodCheck",(i,r)=>{var s;i._zod??(i._zod={}),i._zod.def=r,(s=i._zod).onattach??(s.onattach=[])}),Rr=T("$ZodCheckMaxLength",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<u&&(l._zod.bag.maximum=r.maximum)}),i._zod.check=l=>{const u=l.value;if(u.length<=r.maximum)return;const d=cn(u);l.issues.push({origin:d,code:"too_big",maximum:r.maximum,inclusive:!0,input:u,inst:i,continue:!r.abort})}}),Dr=T("$ZodCheckMinLength",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>u&&(l._zod.bag.minimum=r.minimum)}),i._zod.check=l=>{const u=l.value;if(u.length>=r.minimum)return;const d=cn(u);l.issues.push({origin:d,code:"too_small",minimum:r.minimum,inclusive:!0,input:u,inst:i,continue:!r.abort})}}),Fr=T("$ZodCheckLengthEquals",(i,r)=>{var s;Kt.init(i,r),(s=i._zod.def).when??(s.when=l=>{const u=l.value;return!hn(u)&&u.length!==void 0}),i._zod.onattach.push(l=>{const u=l._zod.bag;u.minimum=r.length,u.maximum=r.length,u.length=r.length}),i._zod.check=l=>{const u=l.value,c=u.length;if(c===r.length)return;const d=cn(u),g=c>r.length;l.issues.push({origin:d,...g?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:l.value,inst:i,continue:!r.abort})}}),Wr=T("$ZodCheckOverwrite",(i,r)=>{Kt.init(i,r),i._zod.check=s=>{s.value=r.tx(s.value)}});class Gr{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const l=r.split(`
|
||
`).filter(d=>d),u=Math.min(...l.map(d=>d.length-d.trimStart().length)),c=l.map(d=>d.slice(u)).map(d=>" ".repeat(this.indent*2)+d);for(const d of c)this.content.push(d)}compile(){const r=Function,s=this?.args,u=[...(this?.content??[""]).map(c=>` ${c}`)];return new r(...s,u.join(`
|
||
`))}}const jr={major:4,minor:1,patch:12},$=T("$ZodType",(i,r)=>{var s;i??(i={}),i._zod.def=r,i._zod.bag=i._zod.bag||{},i._zod.version=jr;const l=[...i._zod.def.checks??[]];i._zod.traits.has("$ZodCheck")&&l.unshift(i);for(const u of l)for(const c of u._zod.onattach)c(i);if(l.length===0)(s=i._zod).deferred??(s.deferred=[]),i._zod.deferred?.push(()=>{i._zod.run=i._zod.parse});else{const u=(d,g,m)=>{let y=qt(d),w;for(const b of g){if(b._zod.def.when){if(!b._zod.def.when(d))continue}else if(y)continue;const A=d.issues.length,N=b._zod.check(d);if(N instanceof Promise&&m?.async===!1)throw new Qt;if(w||N instanceof Promise)w=(w??Promise.resolve()).then(async()=>{await N,d.issues.length!==A&&(y||(y=qt(d,A)))});else{if(d.issues.length===A)continue;y||(y=qt(d,A))}}return w?w.then(()=>d):d},c=(d,g,m)=>{if(qt(d))return d.aborted=!0,d;const y=u(g,l,m);if(y instanceof Promise){if(m.async===!1)throw new Qt;return y.then(w=>i._zod.parse(w,m))}return i._zod.parse(y,m)};i._zod.run=(d,g)=>{if(g.skipChecks)return i._zod.parse(d,g);if(g.direction==="backward"){const y=i._zod.parse({value:d.value,issues:[]},{...g,skipChecks:!0});return y instanceof Promise?y.then(w=>c(w,d,g)):c(y,d,g)}const m=i._zod.parse(d,g);if(m instanceof Promise){if(g.async===!1)throw new Qt;return m.then(y=>u(y,l,g))}return u(m,l,g)}}i["~standard"]={validate:u=>{try{const c=kr(i,u);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return Tr(i,u).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Hr=T("$ZodBoolean",(i,r)=>{$.init(i,r),i._zod.pattern=Nr,i._zod.parse=(s,l)=>{if(r.coerce)try{s.value=!!s.value}catch{}const u=s.value;return typeof u=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:u,inst:i}),s}}),Ur=T("$ZodUnknown",(i,r)=>{$.init(i,r),i._zod.parse=s=>s}),Vr=T("$ZodNever",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:i}),s)});function fi(i,r,s){i.issues.length&&r.issues.push(...li(s,i.issues)),r.value[s]=i.value}const Qr=T("$ZodArray",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{const u=s.value;if(!Array.isArray(u))return s.issues.push({expected:"array",code:"invalid_type",input:u,inst:i}),s;s.value=Array(u.length);const c=[];for(let d=0;d<u.length;d++){const g=u[d],m=r.element._zod.run({value:g,issues:[]},l);m instanceof Promise?c.push(m.then(y=>fi(y,s,d))):fi(m,s,d)}return c.length?Promise.all(c).then(()=>s):s}});function Oe(i,r,s,l){i.issues.length&&r.issues.push(...li(s,i.issues)),i.value===void 0?s in l&&(r.value[s]=void 0):r.value[s]=i.value}function di(i){const r=Object.keys(i.shape);for(const l of r)if(!i.shape?.[l]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const s=gr(i.shape);return{...i,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(s)}}function _i(i,r,s,l,u,c){const d=[],g=u.keySet,m=u.catchall._zod,y=m.def.type;for(const w of Object.keys(r)){if(g.has(w))continue;if(y==="never"){d.push(w);continue}const b=m.run({value:r[w],issues:[]},l);b instanceof Promise?i.push(b.then(A=>Oe(A,s,w,r))):Oe(b,s,w,r)}return d.length&&s.issues.push({code:"unrecognized_keys",keys:d,input:r,inst:c}),i.length?Promise.all(i).then(()=>s):s}const qr=T("$ZodObject",(i,r)=>{if($.init(i,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){const g=r.shape;Object.defineProperty(r,"shape",{get:()=>{const m={...g};return Object.defineProperty(r,"shape",{value:m}),m}})}const l=ln(()=>di(r));G(i._zod,"propValues",()=>{const g=r.shape,m={};for(const y in g){const w=g[y]._zod;if(w.values){m[y]??(m[y]=new Set);for(const b of w.values)m[y].add(b)}}return m});const u=Ee,c=r.catchall;let d;i._zod.parse=(g,m)=>{d??(d=l.value);const y=g.value;if(!u(y))return g.issues.push({expected:"object",code:"invalid_type",input:y,inst:i}),g;g.value={};const w=[],b=d.shape;for(const A of d.keys){const D=b[A]._zod.run({value:y[A],issues:[]},m);D instanceof Promise?w.push(D.then(Z=>Oe(Z,g,A,y))):Oe(D,g,A,y)}return c?_i(w,y,g,m,l.value,i):w.length?Promise.all(w).then(()=>g):g}}),Kr=T("$ZodObjectJIT",(i,r)=>{qr.init(i,r);const s=i._zod.parse,l=ln(()=>di(r)),u=A=>{const N=new Gr(["shape","payload","ctx"]),D=l.value,Z=W=>{const j=ri(W);return`shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`};N.write("const input = payload.value;");const pt=Object.create(null);let bt=0;for(const W of D.keys)pt[W]=`key_${bt++}`;N.write("const newResult = {};");for(const W of D.keys){const j=pt[W],it=ri(W);N.write(`const ${j} = ${Z(W)};`),N.write(`
|
||
if (${j}.issues.length) {
|
||
payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
|
||
...iss,
|
||
path: iss.path ? [${it}, ...iss.path] : [${it}]
|
||
})));
|
||
}
|
||
|
||
|
||
if (${j}.value === undefined) {
|
||
if (${it} in input) {
|
||
newResult[${it}] = undefined;
|
||
}
|
||
} else {
|
||
newResult[${it}] = ${j}.value;
|
||
}
|
||
|
||
`)}N.write("payload.value = newResult;"),N.write("return payload;");const ct=N.compile();return(W,j)=>ct(A,W,j)};let c;const d=Ee,g=!ii.jitless,y=g&&_r.value,w=r.catchall;let b;i._zod.parse=(A,N)=>{b??(b=l.value);const D=A.value;return d(D)?g&&y&&N?.async===!1&&N.jitless!==!0?(c||(c=u(r.shape)),A=c(A,N),w?_i([],D,A,N,b,i):A):s(A,N):(A.issues.push({expected:"object",code:"invalid_type",input:D,inst:i}),A)}});function pi(i,r,s,l){for(const c of i)if(c.issues.length===0)return r.value=c.value,r;const u=i.filter(c=>!qt(c));return u.length===1?(r.value=u[0].value,u[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:s,errors:i.map(c=>c.issues.map(d=>Nt(d,l,Zt())))}),r)}const Yr=T("$ZodUnion",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.options.some(u=>u._zod.optin==="optional")?"optional":void 0),G(i._zod,"optout",()=>r.options.some(u=>u._zod.optout==="optional")?"optional":void 0),G(i._zod,"values",()=>{if(r.options.every(u=>u._zod.values))return new Set(r.options.flatMap(u=>Array.from(u._zod.values)))}),G(i._zod,"pattern",()=>{if(r.options.every(u=>u._zod.pattern)){const u=r.options.map(c=>c._zod.pattern);return new RegExp(`^(${u.map(c=>un(c.source)).join("|")})$`)}});const s=r.options.length===1,l=r.options[0]._zod.run;i._zod.parse=(u,c)=>{if(s)return l(u,c);let d=!1;const g=[];for(const m of r.options){const y=m._zod.run({value:u.value,issues:[]},c);if(y instanceof Promise)g.push(y),d=!0;else{if(y.issues.length===0)return y;g.push(y)}}return d?Promise.all(g).then(m=>pi(m,u,i,c)):pi(g,u,i,c)}}),Jr=T("$ZodIntersection",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{const u=s.value,c=r.left._zod.run({value:u,issues:[]},l),d=r.right._zod.run({value:u,issues:[]},l);return c instanceof Promise||d instanceof Promise?Promise.all([c,d]).then(([m,y])=>mi(s,m,y)):mi(s,c,d)}});function _n(i,r){if(i===r)return{valid:!0,data:i};if(i instanceof Date&&r instanceof Date&&+i==+r)return{valid:!0,data:i};if(ae(i)&&ae(r)){const s=Object.keys(r),l=Object.keys(i).filter(c=>s.indexOf(c)!==-1),u={...i,...r};for(const c of l){const d=_n(i[c],r[c]);if(!d.valid)return{valid:!1,mergeErrorPath:[c,...d.mergeErrorPath]};u[c]=d.data}return{valid:!0,data:u}}if(Array.isArray(i)&&Array.isArray(r)){if(i.length!==r.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let l=0;l<i.length;l++){const u=i[l],c=r[l],d=_n(u,c);if(!d.valid)return{valid:!1,mergeErrorPath:[l,...d.mergeErrorPath]};s.push(d.data)}return{valid:!0,data:s}}return{valid:!1,mergeErrorPath:[]}}function mi(i,r,s){if(r.issues.length&&i.issues.push(...r.issues),s.issues.length&&i.issues.push(...s.issues),qt(i))return i;const l=_n(r.value,s.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return i.value=l.data,i}const Xr=T("$ZodEnum",(i,r)=>{$.init(i,r);const s=dr(r.entries),l=new Set(s);i._zod.values=l,i._zod.pattern=new RegExp(`^(${s.filter(u=>pr.has(typeof u)).map(u=>typeof u=="string"?mr(u):u.toString()).join("|")})$`),i._zod.parse=(u,c)=>{const d=u.value;return l.has(d)||u.issues.push({code:"invalid_value",values:s,input:d,inst:i}),u}}),$r=T("$ZodTransform",(i,r)=>{$.init(i,r),i._zod.parse=(s,l)=>{if(l.direction==="backward")throw new ni(i.constructor.name);const u=r.transform(s.value,s);if(l.async)return(u instanceof Promise?u:Promise.resolve(u)).then(d=>(s.value=d,s));if(u instanceof Promise)throw new Qt;return s.value=u,s}});function gi(i,r){return i.issues.length&&r===void 0?{issues:[],value:void 0}:i}const ts=T("$ZodOptional",(i,r)=>{$.init(i,r),i._zod.optin="optional",i._zod.optout="optional",G(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),G(i._zod,"pattern",()=>{const s=r.innerType._zod.pattern;return s?new RegExp(`^(${un(s.source)})?$`):void 0}),i._zod.parse=(s,l)=>{if(r.innerType._zod.optin==="optional"){const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>gi(c,s.value)):gi(u,s.value)}return s.value===void 0?s:r.innerType._zod.run(s,l)}}),es=T("$ZodNullable",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),G(i._zod,"pattern",()=>{const s=r.innerType._zod.pattern;return s?new RegExp(`^(${un(s.source)}|null)$`):void 0}),G(i._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),i._zod.parse=(s,l)=>s.value===null?s:r.innerType._zod.run(s,l)}),ns=T("$ZodDefault",(i,r)=>{$.init(i,r),i._zod.optin="optional",G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);if(s.value===void 0)return s.value=r.defaultValue,s;const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>vi(c,r)):vi(u,r)}});function vi(i,r){return i.value===void 0&&(i.value=r.defaultValue),i}const is=T("$ZodPrefault",(i,r)=>{$.init(i,r),i._zod.optin="optional",G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>(l.direction==="backward"||s.value===void 0&&(s.value=r.defaultValue),r.innerType._zod.run(s,l))}),os=T("$ZodNonOptional",(i,r)=>{$.init(i,r),G(i._zod,"values",()=>{const s=r.innerType._zod.values;return s?new Set([...s].filter(l=>l!==void 0)):void 0}),i._zod.parse=(s,l)=>{const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>yi(c,i)):yi(u,i)}});function yi(i,r){return!i.issues.length&&i.value===void 0&&i.issues.push({code:"invalid_type",expected:"nonoptional",input:i.value,inst:r}),i}const rs=T("$ZodCatch",(i,r)=>{$.init(i,r),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),G(i._zod,"values",()=>r.innerType._zod.values),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(c=>(s.value=c.value,c.issues.length&&(s.value=r.catchValue({...s,error:{issues:c.issues.map(d=>Nt(d,l,Zt()))},input:s.value}),s.issues=[]),s)):(s.value=u.value,u.issues.length&&(s.value=r.catchValue({...s,error:{issues:u.issues.map(c=>Nt(c,l,Zt()))},input:s.value}),s.issues=[]),s)}}),ss=T("$ZodPipe",(i,r)=>{$.init(i,r),G(i._zod,"values",()=>r.in._zod.values),G(i._zod,"optin",()=>r.in._zod.optin),G(i._zod,"optout",()=>r.out._zod.optout),G(i._zod,"propValues",()=>r.in._zod.propValues),i._zod.parse=(s,l)=>{if(l.direction==="backward"){const c=r.out._zod.run(s,l);return c instanceof Promise?c.then(d=>Ze(d,r.in,l)):Ze(c,r.in,l)}const u=r.in._zod.run(s,l);return u instanceof Promise?u.then(c=>Ze(c,r.out,l)):Ze(u,r.out,l)}});function Ze(i,r,s){return i.issues.length?(i.aborted=!0,i):r._zod.run({value:i.value,issues:i.issues},s)}const as=T("$ZodReadonly",(i,r)=>{$.init(i,r),G(i._zod,"propValues",()=>r.innerType._zod.propValues),G(i._zod,"values",()=>r.innerType._zod.values),G(i._zod,"optin",()=>r.innerType._zod.optin),G(i._zod,"optout",()=>r.innerType._zod.optout),i._zod.parse=(s,l)=>{if(l.direction==="backward")return r.innerType._zod.run(s,l);const u=r.innerType._zod.run(s,l);return u instanceof Promise?u.then(xi):xi(u)}});function xi(i){return i.value=Object.freeze(i.value),i}const ls=T("$ZodCustom",(i,r)=>{Kt.init(i,r),$.init(i,r),i._zod.parse=(s,l)=>s,i._zod.check=s=>{const l=s.value,u=r.fn(l);if(u instanceof Promise)return u.then(c=>wi(c,s,l,i));wi(u,s,l,i)}});function wi(i,r,s,l){if(!i){const u={code:"custom",input:s,inst:l,path:[...l._zod.def.path??[]],continue:!l._zod.def.abort};l._zod.def.params&&(u.params=l._zod.def.params),r.issues.push(le(u))}}class hs{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...s){const l=s[0];if(this._map.set(r,l),l&&typeof l=="object"&&"id"in l){if(this._idmap.has(l.id))throw new Error(`ID ${l.id} already exists in the registry`);this._idmap.set(l.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const s=this._map.get(r);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(r),this}get(r){const s=r._zod.parent;if(s){const l={...this.get(s)??{}};delete l.id;const u={...l,...this._map.get(r)};return Object.keys(u).length?u:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function us(){return new hs}const Ie=us();function cs(i,r){return new i({type:"boolean",...rt(r)})}function fs(i){return new i({type:"unknown"})}function ds(i,r){return new i({type:"never",...rt(r)})}function _s(i,r){return new Rr({check:"max_length",...rt(r),maximum:i})}function bi(i,r){return new Dr({check:"min_length",...rt(r),minimum:i})}function ps(i,r){return new Fr({check:"length_equals",...rt(r),length:i})}function ms(i){return new Wr({check:"overwrite",tx:i})}function gs(i,r,s){return new i({type:"array",element:r,...rt(s)})}function vs(i,r,s){return new i({type:"custom",check:"custom",fn:r,...rt(s)})}function ys(i){const r=xs(s=>(s.addIssue=l=>{if(typeof l=="string")s.issues.push(le(l,s.value,r._zod.def));else{const u=l;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=s.value),u.inst??(u.inst=r),u.continue??(u.continue=!r._zod.def.abort),s.issues.push(le(u))}},i(s.value,s)));return r}function xs(i,r){const s=new Kt({check:"custom",...rt(r)});return s._zod.check=i,s}const ut=T("ZodError",(i,r)=>{ui.init(i,r),i.name="ZodError",Object.defineProperties(i,{format:{value:s=>zr(i,s)},flatten:{value:s=>Pr(i,s)},addIssue:{value:s=>{i.issues.push(s),i.message=JSON.stringify(i.issues,an,2)}},addIssues:{value:s=>{i.issues.push(...s),i.message=JSON.stringify(i.issues,an,2)}},isEmpty:{get(){return i.issues.length===0}}})},{Parent:Error}),ws=fn(ut),bs=dn(ut),As=Ce(ut),Ls=Se(ut),Ps=Er(ut),zs=Mr(ut),ks=Cr(ut),Ts=Sr(ut),Es=Or(ut),Ms=Zr(ut),Cs=Ir(ut),Ss=Br(ut),tt=T("ZodType",(i,r)=>($.init(i,r),i.def=r,i.type=r.type,Object.defineProperty(i,"_def",{value:r}),i.check=(...s)=>i.clone(Bt(r,{checks:[...r.checks??[],...s.map(l=>typeof l=="function"?{_zod:{check:l,def:{check:"custom"},onattach:[]}}:l)]})),i.clone=(s,l)=>Mt(i,s,l),i.brand=()=>i,i.register=(s,l)=>(s.add(i,l),i),i.parse=(s,l)=>ws(i,s,l,{callee:i.parse}),i.safeParse=(s,l)=>As(i,s,l),i.parseAsync=async(s,l)=>bs(i,s,l,{callee:i.parseAsync}),i.safeParseAsync=async(s,l)=>Ls(i,s,l),i.spa=i.safeParseAsync,i.encode=(s,l)=>Ps(i,s,l),i.decode=(s,l)=>zs(i,s,l),i.encodeAsync=async(s,l)=>ks(i,s,l),i.decodeAsync=async(s,l)=>Ts(i,s,l),i.safeEncode=(s,l)=>Es(i,s,l),i.safeDecode=(s,l)=>Ms(i,s,l),i.safeEncodeAsync=async(s,l)=>Cs(i,s,l),i.safeDecodeAsync=async(s,l)=>Ss(i,s,l),i.refine=(s,l)=>i.check(aa(s,l)),i.superRefine=s=>i.check(la(s)),i.overwrite=s=>i.check(ms(s)),i.optional=()=>Pi(i),i.nullable=()=>zi(i),i.nullish=()=>Pi(zi(i)),i.nonoptional=s=>ta(i,s),i.array=()=>Ds(i),i.or=s=>js([i,s]),i.and=s=>Us(i,s),i.transform=s=>Ti(i,qs(s)),i.default=s=>Js(i,s),i.prefault=s=>$s(i,s),i.catch=s=>na(i,s),i.pipe=s=>Ti(i,s),i.readonly=()=>ra(i),i.describe=s=>{const l=i.clone();return Ie.add(l,{description:s}),l},Object.defineProperty(i,"description",{get(){return Ie.get(i)?.description},configurable:!0}),i.meta=(...s)=>{if(s.length===0)return Ie.get(i);const l=i.clone();return Ie.add(l,s[0]),l},i.isOptional=()=>i.safeParse(void 0).success,i.isNullable=()=>i.safeParse(null).success,i)),Os=T("ZodBoolean",(i,r)=>{Hr.init(i,r),tt.init(i,r)});function Zs(i){return cs(Os,i)}const Is=T("ZodUnknown",(i,r)=>{Ur.init(i,r),tt.init(i,r)});function Ai(){return fs(Is)}const Bs=T("ZodNever",(i,r)=>{Vr.init(i,r),tt.init(i,r)});function Ns(i){return ds(Bs,i)}const Rs=T("ZodArray",(i,r)=>{Qr.init(i,r),tt.init(i,r),i.element=r.element,i.min=(s,l)=>i.check(bi(s,l)),i.nonempty=s=>i.check(bi(1,s)),i.max=(s,l)=>i.check(_s(s,l)),i.length=(s,l)=>i.check(ps(s,l)),i.unwrap=()=>i.element});function Ds(i,r){return gs(Rs,i,r)}const Fs=T("ZodObject",(i,r)=>{Kr.init(i,r),tt.init(i,r),G(i,"shape",()=>r.shape),i.keyof=()=>Vs(Object.keys(i._zod.def.shape)),i.catchall=s=>i.clone({...i._zod.def,catchall:s}),i.passthrough=()=>i.clone({...i._zod.def,catchall:Ai()}),i.loose=()=>i.clone({...i._zod.def,catchall:Ai()}),i.strict=()=>i.clone({...i._zod.def,catchall:Ns()}),i.strip=()=>i.clone({...i._zod.def,catchall:void 0}),i.extend=s=>xr(i,s),i.safeExtend=s=>wr(i,s),i.merge=s=>br(i,s),i.pick=s=>vr(i,s),i.omit=s=>yr(i,s),i.partial=(...s)=>Ar(Li,i,s[0]),i.required=(...s)=>Lr(ki,i,s[0])});function Ws(i,r){const s={type:"object",shape:i??{},...rt(r)};return new Fs(s)}const Gs=T("ZodUnion",(i,r)=>{Yr.init(i,r),tt.init(i,r),i.options=r.options});function js(i,r){return new Gs({type:"union",options:i,...rt(r)})}const Hs=T("ZodIntersection",(i,r)=>{Jr.init(i,r),tt.init(i,r)});function Us(i,r){return new Hs({type:"intersection",left:i,right:r})}const pn=T("ZodEnum",(i,r)=>{Xr.init(i,r),tt.init(i,r),i.enum=r.entries,i.options=Object.values(r.entries);const s=new Set(Object.keys(r.entries));i.extract=(l,u)=>{const c={};for(const d of l)if(s.has(d))c[d]=r.entries[d];else throw new Error(`Key ${d} not found in enum`);return new pn({...r,checks:[],...rt(u),entries:c})},i.exclude=(l,u)=>{const c={...r.entries};for(const d of l)if(s.has(d))delete c[d];else throw new Error(`Key ${d} not found in enum`);return new pn({...r,checks:[],...rt(u),entries:c})}});function Vs(i,r){const s=Array.isArray(i)?Object.fromEntries(i.map(l=>[l,l])):i;return new pn({type:"enum",entries:s,...rt(r)})}const Qs=T("ZodTransform",(i,r)=>{$r.init(i,r),tt.init(i,r),i._zod.parse=(s,l)=>{if(l.direction==="backward")throw new ni(i.constructor.name);s.addIssue=c=>{if(typeof c=="string")s.issues.push(le(c,s.value,r));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=s.value),d.inst??(d.inst=i),s.issues.push(le(d))}};const u=r.transform(s.value,s);return u instanceof Promise?u.then(c=>(s.value=c,s)):(s.value=u,s)}});function qs(i){return new Qs({type:"transform",transform:i})}const Li=T("ZodOptional",(i,r)=>{ts.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function Pi(i){return new Li({type:"optional",innerType:i})}const Ks=T("ZodNullable",(i,r)=>{es.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function zi(i){return new Ks({type:"nullable",innerType:i})}const Ys=T("ZodDefault",(i,r)=>{ns.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType,i.removeDefault=i.unwrap});function Js(i,r){return new Ys({type:"default",innerType:i,get defaultValue(){return typeof r=="function"?r():ai(r)}})}const Xs=T("ZodPrefault",(i,r)=>{is.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function $s(i,r){return new Xs({type:"prefault",innerType:i,get defaultValue(){return typeof r=="function"?r():ai(r)}})}const ki=T("ZodNonOptional",(i,r)=>{os.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function ta(i,r){return new ki({type:"nonoptional",innerType:i,...rt(r)})}const ea=T("ZodCatch",(i,r)=>{rs.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType,i.removeCatch=i.unwrap});function na(i,r){return new ea({type:"catch",innerType:i,catchValue:typeof r=="function"?r:()=>r})}const ia=T("ZodPipe",(i,r)=>{ss.init(i,r),tt.init(i,r),i.in=r.in,i.out=r.out});function Ti(i,r){return new ia({type:"pipe",in:i,out:r})}const oa=T("ZodReadonly",(i,r)=>{as.init(i,r),tt.init(i,r),i.unwrap=()=>i._zod.def.innerType});function ra(i){return new oa({type:"readonly",innerType:i})}const sa=T("ZodCustom",(i,r)=>{ls.init(i,r),tt.init(i,r)});function aa(i,r={}){return vs(sa,i,r)}function la(i){return ys(i)}const ha=Ws({folderViewEnabled:Zs().optional()}),Ei="maps";return Pe.defineWebApplication({setup(i){const{$gettext:r}=en.useGettext(),{folderViewEnabled:s}=ha.parse(i.applicationConfig),l=({applicationConfig:c})=>x.computed(()=>[{id:"com.github.opencloud-eu.maps.sidebar-panel",type:"sidebarPanel",extensionPointIds:["global.files.sidebar"],panel:{name:"location-details",icon:"map-2",iconFillType:"line",title:()=>r("Location"),component:Ko,componentAttrs:d=>({panelContext:d,applicationConfig:c}),isRoot:()=>!0,isVisible:({items:d})=>d?.length>0&&d?.some(g=>!!g.location)}},...s?[{id:"com.github.opencloud-eu.maps.folder-view.map-view",type:"folderView",extensionPointIds:["app.files.folder-views.folder"],folderView:{name:"resource-map",label:r("Switch to map view"),icon:{name:"map-2",fillType:"line"},component:fr,componentAttrs:()=>({applicationConfig:c})}}]:[]]),u=[{name:"maps",path:"/:driveAliasAndItem(.*)?",component:Pe.AppWrapperRoute(hr,{applicationId:Ei,urlForResourceOptions:{disposition:"inline"}}),meta:{authContext:"hybrid",title:r("Maps"),patchCleanPath:!0}}];return{appInfo:{name:r("Maps"),id:Ei,icon:"map-2",iconFillType:"line",iconColor:"#84c143",extensions:[{extension:"gpx",routeName:"maps",canBeDefault:!0}]},routes:u,translations:jo,extensions:l(i)}}})});
|