From 423ce4c3c8b35d77cd8623fed92547d9c9ca92f8 Mon Sep 17 00:00:00 2001 From: Surfoo Date: Thu, 24 Apr 2014 00:26:09 +0200 Subject: [PATCH] version 2.0.1: Added: Cache icons missing (Geocaching HQ, Lost and Found, Block Party, Giga Event..) Optimization and bug fix --- cache.manifest | 10 ++++- css/design.css | 4 +- docs/gcgpxviewer.html | 81 ++++++++++++++++++++++++++--------------- gcgpxviewer.min.css | 2 +- img/3653.gif | Bin 0 -> 550 bytes img/3773.gif | Bin 0 -> 1124 bytes img/3774.gif | Bin 0 -> 1134 bytes img/4738.gif | Bin 0 -> 1102 bytes img/7005.gif | Bin 0 -> 2400 bytes img/ct11.png | Bin 0 -> 562 bytes img/ct12.png | Bin 0 -> 386 bytes img/ct13.png | Bin 0 -> 505 bytes img/ct1304.png | Bin 0 -> 551 bytes img/ct137.png | Bin 0 -> 316 bytes img/ct1858.png | Bin 0 -> 666 bytes img/ct2.png | Bin 0 -> 469 bytes img/ct3.png | Bin 0 -> 337 bytes img/ct3653.png | Bin 0 -> 685 bytes img/ct3773.png | Bin 0 -> 970 bytes img/ct3774.png | Bin 0 -> 1351 bytes img/ct4.png | Bin 0 -> 485 bytes img/ct453.png | Bin 0 -> 473 bytes img/ct4738.png | Bin 0 -> 654 bytes img/ct5.png | Bin 0 -> 429 bytes img/ct6.png | Bin 0 -> 380 bytes img/ct7005.png | Bin 0 -> 457 bytes img/ct8.png | Bin 0 -> 388 bytes img/ct9.png | Bin 0 -> 538 bytes js/gcgpxviewer.js | 83 +++++++++++++++++++++++++++--------------- js/gcgpxviewer.min.js | 4 +- 30 files changed, 119 insertions(+), 65 deletions(-) create mode 100644 img/3653.gif create mode 100644 img/3773.gif create mode 100644 img/3774.gif create mode 100644 img/4738.gif create mode 100644 img/7005.gif create mode 100644 img/ct11.png create mode 100644 img/ct12.png create mode 100644 img/ct13.png create mode 100644 img/ct1304.png create mode 100644 img/ct137.png create mode 100644 img/ct1858.png create mode 100644 img/ct2.png create mode 100644 img/ct3.png create mode 100644 img/ct3653.png create mode 100644 img/ct3773.png create mode 100644 img/ct3774.png create mode 100644 img/ct4.png create mode 100644 img/ct453.png create mode 100644 img/ct4738.png create mode 100644 img/ct5.png create mode 100644 img/ct6.png create mode 100644 img/ct7005.png create mode 100644 img/ct8.png create mode 100644 img/ct9.png diff --git a/cache.manifest b/cache.manifest index 7fa1d5b..e5053c9 100755 --- a/cache.manifest +++ b/cache.manifest @@ -1,6 +1,7 @@ CACHE MANIFEST -# 2014-04-17 +# date: 2014-04-24 +# version: 2.0.1 CACHE: gcgpxviewer.min.css @@ -29,9 +30,14 @@ img/11.gif img/12.gif img/13.gif img/137.gif +img/453.gif img/1304.gif img/1858.gif -img/453.gif +img/3653.gif +img/3773.gif +img/3774.gif +img/4738.gif +img/7005.gif js/gcgpxviewer.min.js NETWORK: diff --git a/css/design.css b/css/design.css index 4aa0e59..f5ce2e7 100755 --- a/css/design.css +++ b/css/design.css @@ -94,7 +94,9 @@ input { .infowindow dl dd,.infowindow h4 { margin-bottom: 0.25em; } - +.infowindow dl dd { + overflow: hidden; +} h1, h2, h3, h4, h5, h6, p, a, img, dl, dt, dd { border: 0 none; font-family: inherit; diff --git a/docs/gcgpxviewer.html b/docs/gcgpxviewer.html index 39cd855..bd48618 100644 --- a/docs/gcgpxviewer.html +++ b/docs/gcgpxviewer.html @@ -34,6 +34,7 @@

gcgpxviewer.js

/*'use strict';*/ var typeCaches, sizeCaches, objOptionLabel, objOptionPerimeter, circleList, polylineList, markers, map, parser, doc, circle, control; + var circleOpacity = 0.8, circleColor = '#c11414', circleFillOpacity = 0.25; var unitType = ['o', 'Ko', 'Mo', 'Go']; @@ -67,9 +68,15 @@

gcgpxviewer.js

}, { 'id': 8, 'type': 'Unknown Cache' + }, { + 'id': 9, + 'type': 'Project APE Cache' }, { 'id': 11, 'type': 'Webcam Cache' + }, { + 'id': 12, + 'type': 'Locationless (Reverse) Cache' }, { 'id': 13, 'type': 'Cache In Trash Out Event' @@ -85,6 +92,21 @@

gcgpxviewer.js

}, { 'id': 1858, 'type': 'Wherigo Cache' + }, { + 'id': 3653, + 'type': 'Lost and Found Event Caches' + }, { + 'id': 3773, + 'type': 'Groundspeak HQ' + }, { + 'id': 3774, + 'type': 'Groundspeak Lost and Found Celebration' + }, { + 'id': 4738, + 'type': 'Groundspeak Block Party' + }, { + 'id': 7005, + 'type': 'Giga-Event Cache' }]; @@ -149,8 +171,8 @@

gcgpxviewer.js

    var displayCaches = function(wpts) {
         var icon, wpt, sym, latlng, oMarker, infoContent, i, nbWpts, j, nbTypeCaches, nbSizeCaches,
-            regexType = /[a-z]*?\|([a-z-\s]*)\|?/i,
-            grdspk, oName, oDifficulty, oTerrain, oOwner, oContainer, oDate, date, size, match;
+ regexType = /[a-z]*?\|([^<]*)\|?/i, + grdspk, elmName, elmDifficulty, elmTerrain, elmOwner, elmContainer, elmDate, elmSize, match; @@ -189,14 +211,14 @@

gcgpxviewer.js

            grdspk = wpt.getElementsByTagNameNS('*', 'cache');
             /*console.log(grdspk[0].getAttribute('id'));*/
-            oName = grdspk[0].getElementsByTagNameNS('*', 'name');
-            oDifficulty = grdspk[0].getElementsByTagNameNS('*', 'difficulty');
-            oTerrain = grdspk[0].getElementsByTagNameNS('*', 'terrain');
-            oOwner = grdspk[0].getElementsByTagNameNS('*', 'owner');
-            oContainer = grdspk[0].getElementsByTagNameNS('*', 'container');
-            oDate = new Date(wpt.getElementsByTagName('time')[0].childNodes[0].nodeValue);
-            date = oDate.format('yyyy/mm/dd');
-            size = null;
+            elmName = grdspk[0].getElementsByTagNameNS('*', 'name');
+            elmDifficulty = grdspk[0].getElementsByTagNameNS('*', 'difficulty');
+            elmTerrain = grdspk[0].getElementsByTagNameNS('*', 'terrain');
+            elmOwner = grdspk[0].getElementsByTagNameNS('*', 'owner');
+            elmContainer = grdspk[0].getElementsByTagNameNS('*', 'container');
+            elmDate = new Date(wpt.getElementsByTagName('time')[0].childNodes[0].nodeValue);
+            elmDate = elmDate.format('yyyy/mm/dd');
+            elmSize = null;
             match = wpt.getElementsByTagName('type')[0].childNodes[0].nodeValue.match(regexType);
 
             if (match) {
@@ -204,7 +226,8 @@ 

gcgpxviewer.js

if (typeCaches[j].type === match[1]) { icon = L.icon({ iconSize: [16, 16], - iconUrl: 'img/' + typeCaches[j].id + '.gif' + iconUrl: 'img/ct' + typeCaches[j].id + '.png', + iconPopin: 'img/' + typeCaches[j].id + '.gif' }); break; } @@ -215,8 +238,8 @@

gcgpxviewer.js

} for (j = 0, nbSizeCaches = sizeCaches.length; j < nbSizeCaches; ++j) { - if (sizeCaches[j].id === oContainer[0].childNodes[0].nodeValue.toLowerCase()) { - size = sizeCaches[j].label; + if (sizeCaches[j].id === elmContainer[0].childNodes[0].nodeValue.toLowerCase()) { + elmSize = sizeCaches[j].label; break; } } @@ -260,24 +283,24 @@

gcgpxviewer.js

            infoContent = '<div class="infowindow">';
             infoContent += '<div class="code">' + wpt.getElementsByTagName('name')[0].childNodes[0].nodeValue + '</div>';
             infoContent += '    <h4>';
-            infoContent += '        <img src="' + icon.options.iconUrl + '">';
-            infoContent += '        <a href="http://coord.info/' + wpt.getElementsByTagName('name')[0].childNodes[0].nodeValue + '" onclick="window.open(this.href);return false;">' + oName[0].childNodes[0].nodeValue + '</a>';
+            infoContent += '        <img src="' + icon.options.iconPopin + '" width="16" alt="" />';
+            infoContent += '        <a href="http://coord.info/' + wpt.getElementsByTagName('name')[0].childNodes[0].nodeValue + '" onclick="window.open(this.href);return false;">' + elmName[0].childNodes[0].nodeValue + '</a>';
             infoContent += '    </h4>';
             infoContent += '    <dl style="float:left;margin-right:2em;width:50%;">';
-            if (oOwner[0].childNodes[0]) {
+            if (elmOwner[0].childNodes[0]) {
                 infoContent += '        <dt>Created by:</dt>';
-                infoContent += '        <dd>' + oOwner[0].childNodes[0].nodeValue + '</dd>';
+                infoContent += '        <dd title="' + elmOwner[0].childNodes[0].nodeValue + '">' + elmOwner[0].childNodes[0].nodeValue + '</dd>';
             }
             infoContent += '        <dt>Difficulty:</dt>';
-            infoContent += '        <dd>' + oDifficulty[0].childNodes[0].nodeValue + '</dd>';
+            infoContent += '        <dd>' + elmDifficulty[0].childNodes[0].nodeValue + '</dd>';
             infoContent += '        <dt>Cache size:</dt>';
-            infoContent += '        <dd>' + size + '</dd>';
+            infoContent += '        <dd>' + elmSize + '</dd>';
             infoContent += '    </dl>';
             infoContent += '    <dl style="margin-left:50%">';
             infoContent += '        <dt>Date Hidden:</dt>';
-            infoContent += '        <dd>' + date + '</dd>';
+            infoContent += '        <dd>' + elmDate + '</dd>';
             infoContent += '        <dt>Terrain:</dt>';
-            infoContent += '        <dd>' + oTerrain[0].childNodes[0].nodeValue + '</dd>';
+            infoContent += '        <dd>' + elmTerrain[0].childNodes[0].nodeValue + '</dd>';
             infoContent += '    </dl>';
             infoContent += '</div>';
 
@@ -301,10 +324,10 @@ 

gcgpxviewer.js

            circle = new L.circle(latlng, 161, {
                 weight: 2,
-                color: '#c11414',
-                opacity: objOptionPerimeter.checked ? 0.8 : 0,
-                fillColor: objOptionPerimeter.checked ? "#c11414" : 'transparent',
-                fillOpacity: objOptionPerimeter.checked ? 0.25 : 0,
+                color: circleColor,
+                opacity: objOptionPerimeter.checked ? circleOpacity : 0,
+                fillColor: objOptionPerimeter.checked ? circleColor : 'transparent',
+                fillOpacity: objOptionPerimeter.checked ? circleFillOpacity : 0,
                 clickable: false
             });
             circle.addTo(map);
@@ -336,7 +359,7 @@ 

gcgpxviewer.js

-

Display tracks on the map

+

Display tracks on the map

@@ -366,7 +389,6 @@

gcgpxviewer.js

polyline.addTo(map); polylineList.push(polyline); } - bounds.extend(latlng); } };
@@ -446,8 +468,9 @@

gcgpxviewer.js

    var togglePerimeters = function() {
         _.each(markers, function(value, key) {
             circleList[key].setStyle({
-                opacity: objOptionPerimeter.checked ? 0.8 : 0,
-                fillOpacity: objOptionPerimeter.checked ? 0.25 : 0
+                opacity: objOptionPerimeter.checked ? circleOpacity : 0,
+                fillColor: objOptionPerimeter.checked ? circleColor : 'transparent',
+                fillOpacity: objOptionPerimeter.checked ? circleFillOpacity : 0
             });
         });
 
diff --git a/gcgpxviewer.min.css b/gcgpxviewer.min.css
index 98a174f..59c1dbe 100755
--- a/gcgpxviewer.min.css
+++ b/gcgpxviewer.min.css
@@ -1 +1 @@
-.leaflet-map-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-pane,.leaflet-tile-container,.leaflet-overlay-pane,.leaflet-shadow-pane,.leaflet-marker-pane,.leaflet-popup-pane,.leaflet-overlay-pane svg,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden;-ms-touch-action:none}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container img{max-width:none!important}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-tile-pane{z-index:2}.leaflet-objects-pane{z-index:3}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-popup-pane{z-index:7}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:7;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-tile,.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-tile-loaded,.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.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);-o-transition:-o-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,.leaflet-touching .leaflet-zoom-animated{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-clickable{cursor:pointer}.leaflet-container{cursor:-webkit-grab;cursor:-moz-grab}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-container,.leaflet-dragging .leaflet-clickable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-container{background:#ddd;outline:0}.leaflet-container a{color:#0078A8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font:12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a,.leaflet-bar a:hover{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{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:0}.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-control-zoom-in,.leaflet-control-zoom-out{font:700 18px 'Lucida Console',Monaco,monospace;text-indent:1px}.leaflet-control-zoom-out{font-size:20px}.leaflet-touch .leaflet-control-zoom-in{font-size:22px}.leaflet-touch .leaflet-control-zoom-out{font-size:24px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.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:0;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:content-box;box-sizing:content-box;background:#fff;background:rgba(255,255,255,.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:0;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}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 19px;line-height:1.4}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{margin:0 auto;width:40px;height:20px;position:relative;overflow:hidden}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:700;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{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-popup-tip-container{margin-top:-1px}.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-sidebar{position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:10px;z-index:2000}.leaflet-sidebar.left{left:-500px;transition:left .5s,width .5s;padding-right:0}.leaflet-sidebar.right{right:-500px;transition:right .5s,width .5s;padding-left:0}.leaflet-sidebar.left.visible{left:0}.leaflet-sidebar.right.visible{right:0}.leaflet-left{transition:left .5s}.leaflet-right{transition:right .5s}.leaflet-sidebar>.leaflet-control{height:100%;width:100%;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px 24px;font-size:1.1em;background:#fff;box-shadow:0 1px 7px rgba(0,0,0,.65);-webkit-border-radius:4px;border-radius:4px}.leaflet-touch .leaflet-sidebar>.leaflet-control{box-shadow:none;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}@media(max-width:767px){.leaflet-sidebar{width:100%;padding:0}.leaflet-sidebar.left{left:-100%}.leaflet-sidebar.right{right:-100%}.leaflet-sidebar.left.visible{left:0}.leaflet-sidebar.right.visible{right:0}.leaflet-sidebar>.leaflet-control{box-shadow:none;-webkit-border-radius:0;border-radius:0}.leaflet-sidebar.left.visible~.leaflet-left{left:100%}.leaflet-sidebar.right.visible~.leaflet-right{right:100%}.leaflet-touch .leaflet-sidebar>.leaflet-control{border:0}}@media(min-width:768px) and (max-width:991px){.leaflet-sidebar{width:305px}.leaflet-sidebar.left.visible~.leaflet-left{left:305px}.leaflet-sidebar.right.visible~.leaflet-right{right:305px}}@media(min-width:992px) and (max-width:1199px){.leaflet-sidebar{width:390px}.leaflet-sidebar.left.visible~.leaflet-left{left:390px}.leaflet-sidebar.right.visible~.leaflet-right{right:390px}}@media(min-width:1200px){.leaflet-sidebar{width:460px}.leaflet-sidebar.left.visible~.leaflet-left{left:460px}.leaflet-sidebar.right.visible~.leaflet-right{right:460px}}.leaflet-sidebar .close{position:absolute;right:20px;top:20px;width:31px;height:31px;color:#333;font-size:25pt;line-height:1em;text-align:center;background:#fff;-webkit-border-radius:16px;border-radius:16px;cursor:pointer;z-index:8}.leaflet-control-zoom-fullscreen{background-image:url(icon-fullscreen.png)}.leaflet-container:-webkit-full-screen{width:100%!important;height:100%!important;z-index:99999}.leaflet-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}.leaflet-label{background:#ebebeb;background:rgba(235,235,235,.81);background-clip:padding-box;border-color:#777;border-color:rgba(0,0,0,.25);border-radius:4px;border-style:solid;border-width:4px;color:#111;display:block;font:12px/20px "Helvetica Neue",Arial,Helvetica,sans-serif;font-weight:700;padding:1px 6px;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;z-index:6}.leaflet-label.leaflet-clickable{cursor:pointer}.leaflet-label:before,.leaflet-label:after{border-top:6px solid transparent;border-bottom:6px solid transparent;content:none;position:absolute;top:5px}.leaflet-label:before{border-right:6px solid #000;border-right-color:inherit;left:-10px}.leaflet-label:after{border-left:6px solid #000;border-left-color:inherit;right:-10px}.leaflet-label-right:before,.leaflet-label-left:after{content:""}.leaflet-touch .leaflet-bar-part-single{-webkit-border-radius:7px;border-radius:7px;border-bottom:0}.leaflet-control-locate a{background-image:url(images/locate.png);background-position:-2px -2px}.leaflet-touch .leaflet-control-locate a{background-image:url(images/locate_touch.png)}.leaflet-control-locate.requesting a{background-image:url(images/spinner.gif);background-position:50% 50%}.leaflet-control-locate.active a{background-position:-32px -2px}.leaflet-control-locate.active.following a{background-position:-62px -2px}.leaflet-touch .leaflet-control-locate{box-shadow:none;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}html{height:100%}body{height:100%;margin:0;padding:0;font:.8em Verdana}a{color:#000}#actions{height:120px}#map{height:100%;width:100%}#sidebar{font-size:1.2em;display:none}#sidebar h1{margin:0 0 .2em}hr{border:0;height:1px;background-image:-webkit-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-moz-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-ms-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}input{font-size:1.2em}#list{font-weight:400;font-size:.8em}#list li{margin:0;padding:0;list-style-type:none}#options{line-height:2em}#options [type=button]{width:100px}#options [type=button]:hover{cursor:pointer}#loader{height:19px;background:url(img/ajax-loader.gif) center center no-repeat;display:none}#footer{text-align:center}.infowindow{font-family:Verdana,sans-serif;width:420px;height:90px}.infowindow .code{float:right;padding:0 2px}.infowindow h4,.infowindow .code{font-weight:700;font-size:1em}.infowindow h4 img{vertical-align:middle}.infowindow dl dt{float:left;font-weight:700;margin-right:.5em}.infowindow dl dd,.infowindow h4{margin-bottom:.25em}h1,h2,h3,h4,h5,h6,p,a,img,dl,dt,dd{border:0 none;font-family:inherit;font-style:inherit;font-weight:inherit;vertical-align:baseline}.infowindow a{color:#594A42;text-shadow:0 1px 0 #FFF}.leaflet-control-options{background-image:url(icon-options.png)}
\ No newline at end of file
+.leaflet-map-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-pane,.leaflet-tile-container,.leaflet-overlay-pane,.leaflet-shadow-pane,.leaflet-marker-pane,.leaflet-popup-pane,.leaflet-overlay-pane svg,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden;-ms-touch-action:none}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container img{max-width:none!important}.leaflet-container img.leaflet-image-layer{max-width:15000px!important}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-tile-pane{z-index:2}.leaflet-objects-pane{z-index:3}.leaflet-overlay-pane{z-index:4}.leaflet-shadow-pane{z-index:5}.leaflet-marker-pane{z-index:6}.leaflet-popup-pane{z-index:7}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:7;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-tile,.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-o-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-tile-loaded,.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.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);-o-transition:-o-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,.leaflet-touching .leaflet-zoom-animated{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-clickable{cursor:pointer}.leaflet-container{cursor:-webkit-grab;cursor:-moz-grab}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-container,.leaflet-dragging .leaflet-clickable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing}.leaflet-container{background:#ddd;outline:0}.leaflet-container a{color:#0078A8}.leaflet-container a.leaflet-active{outline:2px solid orange}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font:12px/1.5 "Helvetica Neue",Arial,Helvetica,sans-serif}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a,.leaflet-bar a:hover{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{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:0}.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-control-zoom-in,.leaflet-control-zoom-out{font:700 18px 'Lucida Console',Monaco,monospace;text-indent:1px}.leaflet-control-zoom-out{font-size:20px}.leaflet-touch .leaflet-control-zoom-in{font-size:22px}.leaflet-touch .leaflet-control-zoom-out{font-size:24px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.7);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-container .leaflet-control-attribution,.leaflet-container .leaflet-control-scale{font-size:11px}.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:0;line-height:1.1;padding:2px 5px 1px;font-size:11px;white-space:nowrap;overflow:hidden;-moz-box-sizing:content-box;box-sizing:content-box;background:#fff;background:rgba(255,255,255,.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:0;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}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 19px;line-height:1.4}.leaflet-popup-content p{margin:18px 0}.leaflet-popup-tip-container{margin:0 auto;width:40px;height:20px;position:relative;overflow:hidden}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;padding:4px 4px 0 0;text-align:center;width:18px;height:14px;font:16px/14px Tahoma,Verdana,sans-serif;color:#c3c3c3;text-decoration:none;font-weight:700;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover{color:#999}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{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-popup-tip-container{margin-top:-1px}.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-sidebar{position:absolute;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:10px;z-index:2000}.leaflet-sidebar.left{left:-500px;transition:left .5s,width .5s;padding-right:0}.leaflet-sidebar.right{right:-500px;transition:right .5s,width .5s;padding-left:0}.leaflet-sidebar.left.visible{left:0}.leaflet-sidebar.right.visible{right:0}.leaflet-left{transition:left .5s}.leaflet-right{transition:right .5s}.leaflet-sidebar>.leaflet-control{height:100%;width:100%;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:8px 24px;font-size:1.1em;background:#fff;box-shadow:0 1px 7px rgba(0,0,0,.65);-webkit-border-radius:4px;border-radius:4px}.leaflet-touch .leaflet-sidebar>.leaflet-control{box-shadow:none;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}@media(max-width:767px){.leaflet-sidebar{width:100%;padding:0}.leaflet-sidebar.left{left:-100%}.leaflet-sidebar.right{right:-100%}.leaflet-sidebar.left.visible{left:0}.leaflet-sidebar.right.visible{right:0}.leaflet-sidebar>.leaflet-control{box-shadow:none;-webkit-border-radius:0;border-radius:0}.leaflet-sidebar.left.visible~.leaflet-left{left:100%}.leaflet-sidebar.right.visible~.leaflet-right{right:100%}.leaflet-touch .leaflet-sidebar>.leaflet-control{border:0}}@media(min-width:768px) and (max-width:991px){.leaflet-sidebar{width:305px}.leaflet-sidebar.left.visible~.leaflet-left{left:305px}.leaflet-sidebar.right.visible~.leaflet-right{right:305px}}@media(min-width:992px) and (max-width:1199px){.leaflet-sidebar{width:390px}.leaflet-sidebar.left.visible~.leaflet-left{left:390px}.leaflet-sidebar.right.visible~.leaflet-right{right:390px}}@media(min-width:1200px){.leaflet-sidebar{width:460px}.leaflet-sidebar.left.visible~.leaflet-left{left:460px}.leaflet-sidebar.right.visible~.leaflet-right{right:460px}}.leaflet-sidebar .close{position:absolute;right:20px;top:20px;width:31px;height:31px;color:#333;font-size:25pt;line-height:1em;text-align:center;background:#fff;-webkit-border-radius:16px;border-radius:16px;cursor:pointer;z-index:8}.leaflet-control-zoom-fullscreen{background-image:url(icon-fullscreen.png)}.leaflet-container:-webkit-full-screen{width:100%!important;height:100%!important;z-index:99999}.leaflet-pseudo-fullscreen{position:fixed!important;width:100%!important;height:100%!important;top:0!important;left:0!important;z-index:99999}.leaflet-label{background:#ebebeb;background:rgba(235,235,235,.81);background-clip:padding-box;border-color:#777;border-color:rgba(0,0,0,.25);border-radius:4px;border-style:solid;border-width:4px;color:#111;display:block;font:12px/20px "Helvetica Neue",Arial,Helvetica,sans-serif;font-weight:700;padding:1px 6px;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;z-index:6}.leaflet-label.leaflet-clickable{cursor:pointer}.leaflet-label:before,.leaflet-label:after{border-top:6px solid transparent;border-bottom:6px solid transparent;content:none;position:absolute;top:5px}.leaflet-label:before{border-right:6px solid #000;border-right-color:inherit;left:-10px}.leaflet-label:after{border-left:6px solid #000;border-left-color:inherit;right:-10px}.leaflet-label-right:before,.leaflet-label-left:after{content:""}.leaflet-touch .leaflet-bar-part-single{-webkit-border-radius:7px;border-radius:7px;border-bottom:0}.leaflet-control-locate a{background-image:url(images/locate.png);background-position:-2px -2px}.leaflet-touch .leaflet-control-locate a{background-image:url(images/locate_touch.png)}.leaflet-control-locate.requesting a{background-image:url(images/spinner.gif);background-position:50% 50%}.leaflet-control-locate.active a{background-position:-32px -2px}.leaflet-control-locate.active.following a{background-position:-62px -2px}.leaflet-touch .leaflet-control-locate{box-shadow:none;border:2px solid rgba(0,0,0,.2);background-clip:padding-box}html{height:100%}body{height:100%;margin:0;padding:0;font:.8em Verdana}a{color:#000}#actions{height:120px}#map{height:100%;width:100%}#sidebar{font-size:1.2em;display:none}#sidebar h1{margin:0 0 .2em}hr{border:0;height:1px;background-image:-webkit-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-moz-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-ms-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0));background-image:-o-linear-gradient(left,rgba(0,0,0,0),rgba(0,0,0,.75),rgba(0,0,0,0))}input{font-size:1.2em}#list{font-weight:400;font-size:.8em}#list li{margin:0;padding:0;list-style-type:none}#options{line-height:2em}#options [type=button]{width:100px}#options [type=button]:hover{cursor:pointer}#loader{height:19px;background:url(img/ajax-loader.gif) center center no-repeat;display:none}#footer{text-align:center}.infowindow{font-family:Verdana,sans-serif;width:420px;height:90px}.infowindow .code{float:right;padding:0 2px}.infowindow h4,.infowindow .code{font-weight:700;font-size:1em}.infowindow h4 img{vertical-align:middle}.infowindow dl dt{float:left;font-weight:700;margin-right:.5em}.infowindow dl dd,.infowindow h4{margin-bottom:.25em}.infowindow dl dd{overflow:hidden}h1,h2,h3,h4,h5,h6,p,a,img,dl,dt,dd{border:0 none;font-family:inherit;font-style:inherit;font-weight:inherit;vertical-align:baseline}.infowindow a{color:#594A42;text-shadow:0 1px 0 #FFF}.leaflet-control-options{background-image:url(icon-options.png)}
\ No newline at end of file
diff --git a/img/3653.gif b/img/3653.gif
new file mode 100644
index 0000000000000000000000000000000000000000..3d40b9ae38835d64e47724b05dd69b672244c3d2
GIT binary patch
literal 550
zcmZ?wbhEHbRA5kGxT?uus3Z6PM}1kI$p5bn*G{pmUCiU-F7@OF%Za@l6FUV`jyLYw
z!1eJd)BivFr{7#{Zz*&7&DGyKv;Til@Yda=NP^1B-MQ+Xa`3h??ozsQujeet^wGtTqGu3N16-us-Q
z$M)6(t5b{rJ#-db>$2RXn&-#o4FM+`T~)XgA|7N3GkS8hglyqBby3+u!IkaEkrw67
z=}cleo-V>SnsZvX_J6p(&0&Sv&>lAw?tm=%b2}o-QC@qO$-dy01TAUlmGw#

literal 0
HcmV?d00001

diff --git a/img/3773.gif b/img/3773.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c624900d6c5d7a1f58cd75feb83839a9240e7068
GIT binary patch
literal 1124
zcmV-q1e^OuNk%w1VITk?0Oo%H&api4z(J0(YipW1jk1~A>b2yzKDW_~k-R!Wdp3Nj
zI%JeN+`K>|YBP1BJB6`3&*hvnay4d@MLKjePJS~)S|Nh2I<1;EnZ!Cufj1mcCyKT@
zskuDYa>+$ADb1p-6Gn>Ok;qJky%50|2Mk+-f
zV~RLEcs9PcJx+r+BxW&3e>QQSI(m{hEnh6B#j>EwIu}77o|-wG$U1A1GQQHZa+x$V
zcr+tyKQ3=HV39c$m#iZDxf
zGVr`Vj-xy*J{WF)FKliqf2%rQYbuVeJJ8^|Gf*KJTrK{^LjV8&A^8LW004ggEC2ui
z03ZM$000O7fPaF6gnw^07#J@v2rErKLWPo(gG`BxjT;XS79x9;k~KFFf;E^38=4jt
z3JM*S
z(7{$8A69E?3oV5;PT7htD;ozj-_Q;pzg7e23uF?pgAi$JgaDPd2juXu(s!;O88ssW
z3@UJ`QM^qn3a&z^Z{LD`Y9Pvx@kP)MMjTT1vY;oWvyOCNoS?H{gw2sZLi`beiGd$K
zU=;k4^3x2S4;}*iTndARj2}OyWa!`{lTSZGz%IQB>i%
z8pMMKI*a|B*_$H;ji?#m{EU$V^8`-6u8L*+Gl&ifP^D7%Nd!xVC=pn>l0DnVPa8O<
zK)G@yO#
z5l>X`lL1(i!G<6z^fLkta>#L-Za7R3g=;flfddI-YOuu?8XS?uAOeW=6lxi$aaj~m
zOfUg@35?M|161_krwN20ApuTiW#HEonAIuWekD|~XBjRWAqESDw2)f{h9*$OZ+0#k
zVFO{50O=7&fH27yXZ@7`r;GA8qK#ohswOCw{zYdMccSO2jgU4Vsj0Fc5dxhPRH5sq
qHo73I36#n*2nZ%b5Cx;JLK-O>z&cw<2R)cjt+FN%fFme@0029in$nv9

literal 0
HcmV?d00001

diff --git a/img/3774.gif b/img/3774.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ee38cd58b089fab149b71988e20c7222c94e29b0
GIT binary patch
literal 1134
zcmV-!1d;nkNk%w1VITk?0Oo%H^Tboi+QGuvofl&BWRy8xk5-$)PII9;g|Ry$YBPPQIviFiGjcVNvzCFDIsfw0OM*9_oHyXRKbgcj
zICV8za#o17JM;DNfv!4RjX61FD=2L=*W=hqd^NSryK9+fg{);MTPnDvJ33b*d8Rt#
z?BY|4WmJPTjkr3Wj4-9SmS<`vrpaGJfmyZ6n}dTbmB2bjXeis}&MQM4myR)ck2g?S
zBJ%gdx}MKxuI)
zyv~HC&PG0XHfEGXudO|Jaw>^@EKY+sKyorkaxO=IH(!uBr^T|M%Q}0bYN@(Aoya=A
z(zKI=FCJ$yGjUEsXAOv`nl0QUrf4KT+6oSr`Jvpaqu#
zE{g{vAg_W5@8#PPB7_hjVFb~@L<0!{PD|Q+`LYBALIZQCP?^)Q
z5;XJ~%7zscCqsui$?!r*ks?2AKIsL
zTnXaEOM~5g?xdhVoz*WES9h#f@uc(TEEt0LY$0c;kLeW5K$9@s=L#k-pc^^7W^aYq
zeVnLCVaCh|0uM-FPaf{Q5CUO+7;%GAK$Kud0zRQ(MICO8FoFvR1c)MF0R&z{0q}tz9}E#e1Y?l!2MYLXkwh9D+*X9k
z9z8srOQ&&W##TJvT#zA@rP@v)%1K8;TAxcbf6Ipy+q1tNH^*4eRKO#Cn87&kN
zKyGDefq)jjaWH6l7DhnE2$~LH!X#n%DJlY`p6Z{9K$0=Qu6R=Nsis{SD1iU~JC#V|
A`~Uy|

literal 0
HcmV?d00001

diff --git a/img/4738.gif b/img/4738.gif
new file mode 100644
index 0000000000000000000000000000000000000000..e31be1f3c94703b4af27804ba70eb1a35d446f35
GIT binary patch
literal 1102
zcmZ?wbhEHbRA7*2_|5XHBjy9ccj*X^HO=hkwW*+T8WbWBv?%!)3G|?htl111Qi`ZF~$qTGf7Fwk*
zw#r&&ox9SyaIH<*Mw^PwHr3l~>vq^W_Io-{^7fk%7BxSyXii<)vYgiawrvOOdXL$6
z?(PG-Xp|TY0Xl_%;!hSv28RC(Iw1Q%d4hrCKZE=n36Bj64mPuf|B2pVaDb^rKzW|W
z!4L5b4D3E0cRU1G4|g+iWIQ>sQPG1@z@w;!@zWv(af9Sjb3BXFPIsFYziO#8W;o9%
z&VA>}O<@&QHrvW7jerIh1|Ee@G2Q}2ryy}gof3yzjv9XAs&)YyTBfVIImOtf6c}E6
z)3H@~-Ko72PA(k0Y5GPPw>Q1HzCf>`=)s5bRsL(71>-pwKQRaG@BXZ|??>auC(}e?
zR5b307jm4Qo6lF!`2E8jA=PK!db6!Qp1W?i{!p9kbmm7F+Wu}k_a^jH$XyrF3Hx*&
zetv%GKz{L#0!ha+m(~{k-*L>@scQP7Hr
zh>9S(0z&bDignknwJP{T!HPv~t=2^%@)DGnh@foZirpW}-XCY~z4LwFIcM%SGlGaP
zKemtzk)e@cX!Ldez_Yf!kZEiO;KTd(YXCyR;r0Qr6d+j;IAk}y%xTv1OLdiV<`2E-
z=>4^&F?;K!OP2;(pOsn?M@L5|K71%b5CNb60+=0Cnx!wNj$>Z{-zFYEHEq3`7`qb97nQ`3BiRssJ0
zNl8iH&!dI~2NPi=KR
zFc?NgMlO7{$^*b?6bg?*#Q|ire_(fRZbd~!8U)(|ctt`&$Bl+l++Y%cAd^ZX!o#2a
zc>dwxvQRuB5FjNuf)0XDs9*8#`DWotXsXB!(@8RnZs~&
zvWJo4;^OkdhwVtD{-;kx0CvGzL`O%X5CmgpW=$Xr8lEexZGr;>ySuy15rk@iC*lbO
z5Gb4BoCuI&b6oHJ2R<}lMC
zC^rX(r>AR&JG-_5Kq3-@08%-7-utn!r?qF6FJC?}F|iMVjPawjrwlF=7739tWWG=<
zG+qN1rmKXaWQmr%R+1=Fa4D}YT&9p^VlHKwPb4E!#gj;7;X1V>P8Ss~(j|-7V#>lm
zazHvKU9OT#v_f*aJVl}5q;n}kv2v}1W1O3|=@jxuh&Gu^2{zpzn{x7$Y6;ng#-NHA
zz6`RjC(V=T&0?`U$X*Oj2A$zW_w=HAvN%jH4ue7dG$_VwYVkTwEI;g1F5`+zk!rOn
z4xOHsmPSis(v<2%x+j~>HfeZyQH=UPFx#GXLtSPxBBgj?8%zTMjmMRg4sg-i_$A&qwscZ3`QtuO2JasKTQ*!CXV(6x0
z{jX!5+%kH{H2rK^k4L
z=l=2cvp<}vJ$>qA&57g3j#htPRe7YMyzKDb4jn8#P*S|VXy4vFg}V!OXdRppwtw#NgN~w^iBqzzFiR&a{(OTh})vLZ<`PGW$3Cq4*
z8Xp(?MND*5p?qFQaL~d)Zh$|B?Z@)<@n(7%Unm;YV}bkpd2Vy(%yy-?
zkY_p1baI^GFx}qH)`nzlMVw|yz+2$3<`^?H3V{Ixxs0NWaTxM2eLGBlOUQfz>cKjN
z*Ot|9F(-Mu+ON68IeV^FxA%@Aib?ZB6;D#_qV6N&||Vlgz27m{Y|G0W2g
z&MsT1d=S&qK!su|Mt1t5UC!Z}NYxtN1%T5oa&NY%&+)t2b!S3aKLUCMgVLW%Ss~S%
z0efz53WMHQ^kA2(pv3;JO`>jSbT>AWbF7eO@As0Q@7fdetR5M?cQ%XTFNQW_hc>j;
z2W&6%(ntC64Y}6-wr3%3Zc_^sZL=XL+FBP>)`C7VG&_&I;h<(qlt%)Y2j+TQZSfmy
zU=RXMrmRQE5AO4BgO|;N!5FJ-Lr}EE?^gBhX({NdPVM-;jnlP9B`=~{H|Rkyzk!)Y
zPdvUfl>8`rP0YLlF{1E;0amYX`c%&r=h$CpEeuNiCY5Btz*n`Ixjl*hA!K%>`Pw@c
z88uluqi&?Q<_Ly|TyA^ht$DrJZRgSQCWt{4-Eb(QxmGqh(pL%-Yq0&Q9ad4T#|!3U
WlG{#%2&DR(wGDGm)SLzY^8Ys|N07Au

literal 0
HcmV?d00001

diff --git a/img/ct11.png b/img/ct11.png
new file mode 100644
index 0000000000000000000000000000000000000000..c2c4f1bda3b7cdec0050030929cb9856785cceba
GIT binary patch
literal 562
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{0wkH`a%F)OOS+@4BLl<6e(pbstUx|vage(c
z!@6@aFM%9|WRD45bDP46hOx7_4S6Fo+k-*%fF5lweBo
zc6VX;-`;;_Kaj^+;1O92q&>jc?PRtcNU*HHF&#*Q9FfA{9?{SQv`@^_#W6(VeCs4b
z@52rfZS%WlsswCOO^D&X`3i2?!Id}n)r$*f&pH-v&OTbK86kba
zu~OFO((V?M_qyfxzkj$_uAhEn--|0fEJnRomQFOf+r8%EjEqYwQg;Qsi2Hnw@dMWz
zMt&8)e9sq6nwAXt3`-*T`C>0@N@F;{u74)G;DyyXPst*ue$l^dGCMZ&No+oCs$J#t
z@;VdupU0vOjGK951qy@T@Xx$<(bmYrXrg{*QL*n5!Mm3?ABVdd)o%D
z3T62(0UiR3)($7Ge@kcVkbf|HnN2wJ9Oe%#j91!bJz{4#)75n=X7Mwde`_9Rd3}7n
z_R{D12F0=$*Cy-r{=8z`uVZ~7n7O`NXLHMi4Bv^spi(VyjVMV;EJ?LWE=mPb3`Pcq
zCb|YDx<*DJ28LFKrdGx#+6G2e1_s-%1bs%)kei>9nO2Eg!|~2n{y+^3p00i_>zopr
E07L=FAOHXW

literal 0
HcmV?d00001

diff --git a/img/ct12.png b/img/ct12.png
new file mode 100644
index 0000000000000000000000000000000000000000..9f0e1c4979c266ba6da26b4f7c8d802f02c85199
GIT binary patch
literal 386
zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF=ES4z)+>ez|hdb!0-zw)bN6Vq11qZ;Z*_ygVhWM2JwP9y8>;15)uJE
zA+G=b{|7RE&URCX6ewRacfpkhfB*gk3bwp4PXbCXmIV0)GdMiEkp|)*ft8WDwt^~{aC`s&

literal 0
HcmV?d00001

diff --git a/img/ct13.png b/img/ct13.png
new file mode 100644
index 0000000000000000000000000000000000000000..5a27042872c846733909ef6e0a5a747037f94a91
GIT binary patch
literal 505
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw|3?!p1cPs@`Ea{HEjtmSN`?>!lvI6;x#X;^)
z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP{JU<
zC&cyt|Nrsv@$cTf`}y@l9LbMyD9`~UB6I{Sak
znl*vTEJ}cS8B2ovf*Bm1-ADs*lDyqr7&=&GJ%Aj}0*}aIAPr)BFu0w}wgU;46*#5?
zX^>}97~CTont+U{o-U3d9M@gX8*(uj3b0=I$kBD}5$~EewoR@I-VQcRTlYSYQ!tpH
z8+3bl#51mHX8p%KlOL>?YdrI3;niKK#Y=KCEbnJruiZIY`M|5BHjYiz28V1<_7t9Z
zw&L809J!R4l0EY;2mSn66z*w!;a)Re*0fo>9#2^{tG4bE>xq5eljE!9eP0W&+xz_g
zG^h5u$Mar%si@|vWmIuaS`^*PUIcWYYKdz^NlIc#s#S7PDv)9@GB7mJH89aNG72#;
vv@$fcGB(jRFtRc**mfo8Gm3`X{FKbJO57TbcfRrmYGCkm^>bP0l+XkKNo~0f

literal 0
HcmV?d00001

diff --git a/img/ct1304.png b/img/ct1304.png
new file mode 100644
index 0000000000000000000000000000000000000000..45c6a7ae5aa79d5b7b5094125fc32451142c6853
GIT binary patch
literal 551
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{3?%2B3|#`GSkfJR9T^xl_H+M9WCijWi-X*q
z7}lMWc?skwBzpw;GB8xBF)%c=FfjZA3N^f7U???UV0e|lz+g3lfkC`r&aOZkphQT3
zPl)UP|NrCT&M?8
zZoR&F@8e}{pYoy;j&i1r7RlKeJ3LHc3bcJng;knO;Yh7ML)4#)*Ei(Ke6cDf4kzECw<%gHrTSuB?!!PF0q|?@LiID@=UAaZD+4&
z_(_|s3o_W8;1IYWR@lfXaR0im3_o~sXFQM8skykNL$xkW!MSZ8^SYinPsMs~&6aup
zu=e0pg-ZRfx3Q}Q!C8<`)MX5lF!N|bSMAyJX*T^Wuz|hLj)XLaI
o+rY@mz+l^zpwB28a`RI%(<*UmINtfnAE<%B)78&qol`;+0KbsM_y7O^

literal 0
HcmV?d00001

diff --git a/img/ct137.png b/img/ct137.png
new file mode 100644
index 0000000000000000000000000000000000000000..996a90fc8328b98ba8d4ded01a2e585ea1012165
GIT binary patch
literal 316
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{3?%2B3|#`G%mREuTz~%j86O}2?%lhE3m5+X
z|Nrsh$0tsl07~xJvqvFPfZ_cA|4(B69~573<-zG$qGz^wikNe)S+nK}OFO>_%)r1c48n{Iv*t(u1=&kHeO=k_v51QaO0;aK
znhO-F_jGX#k+|G@@w8Nn0!Q1!`vHaKthT9Q%>MBkc5s
zt2p#iOmJY*MAyY(oxax(xr#;>>b{v}xVrf2S%YKsA)DS^D>PZPM?Y@$DKYN*SA=Ar
zIX~Z1q!he)cF5A(vY!_BO)oRA-dT0%!v7262TYc`AK~`?&r^+3l}Z~avwi_{Nlxn2M-<`IB?*`jT=9H{5Wyq#Ecm;8X6il
zY}jz|;>A6C_H=Y~eE9fjI;@@a6lZdoP#my?o@z5xatgzkmN;uwX$$OUH^8D=KRn9z1$H
zefsp9H*ZdzI`zVZ3xEFn`SRtn}sca<>*H>U;xNMJ_+VVEn
z+$B@aS(Hj_U3vP}&!n4y{p&8IJ7w!;IGDd^_t|HnD74{dPY~nd+}>Qja?Zt>)80oH
zJ2OACy%Kxp!eXCpna=^A=KZ*%bl&M?cly7miKpUR!teQ1T-;F-9ZhGr2L*G1rQz(utL-iOm&eLSix*+0QT)
z*q|`js2C&%5v>TVyQzkTBuBdBRmc11$MfFv5&+ruItLC;kvHm
zoXd~!J<$Nbw(Z6$_lzixPc*a~X_}%_r?K1ZX7Al@SEx&wx1>`C_#BK&Yj+ou(!3H%
z2*G?Y#p~NkE(>-8Xnz;d~SVHipu3Q!>g0ARkD<_r-+V7uMsdKqH{=aoiPIeYl$Wxz^k
z6h&CARsaCgGz+(?0#-uT>vaY@MxpYg!Z7?duvDp(5`>V_<~qR2_3I8FwSLpk0KoIS
z#-Kw6`TqKpkF%#%6rP`*;`-*6km&aZNs`DYj*+HmBk1K7BLMIRIselQZ8y{B00000
LNkvXXu0mjf<>&kwQMO=(W
zBbHT77brB*)5S4F;&SfA+hQ#W9IOEvi?2A%{{R05V^C4nx$bp)MfNZ}&=zJm_i&=5
zxWn8F6HFhZc?C`ix}+F%V2#)B4JGBh&L^h!Z7c{+d&T{8$J8z1T_Gt|;V)K5&APU2
z?#_&x-mAZ^Xj)XI9=vFE|B(%=k8aeQzq}*)a?)(s+3S||)y3_8(f_aVE6?TM?RE?s
da()Un=zE87&6N*fb^|(&!PC{xWt~$(69Bv&iIxBW

literal 0
HcmV?d00001

diff --git a/img/ct3653.png b/img/ct3653.png
new file mode 100644
index 0000000000000000000000000000000000000000..d7779a69da0feb14c5a41b80c1f74100e2a8ab07
GIT binary patch
literal 685
zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvI6;x#X;^)
z4C~IxyacIC_6YK2V5m}KU}$JzVE6?TYIwoGP-?)y@G60U!D{9sYj{`2VB+|L^q%Tf)8e=A;~NympH1#9odkH&{MCWt!M2V5lRf
zEU#d1DYJGlPgID6kGoVxqF7m;Na2~DT^qQj-&{R^8eem@(2{#wPrteP|IhyafA4o+
zUHJdA0K?+VKNni5ZQS>3ZLr7Q6Tf$6*I&Fj^VUP4S0$LjbBnaVeCmohOc
z$@^>lX5kCi$QSB=V4?5*qIy1=y*C9m{Fu<-@j!4@pH+3kji;|Y9&|=s5Ixgq!+gH(
zAak=`V9
z8^?<;=OiAt+3*(^m@LcML(uY_kd({v3|1iCe
zRQ-E+$>BG^5K=91jVMV;EJ?LWE=mPb3`PcqCb|YDx<e
zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00S~fL_t(I%dM4PY*SSjz<*uu
z%1X;NItkTIHc}W{NQxN_qJd~Klt9)f`o=>$pN$WDAVN%hkPs6e+=DOEjKvnj#F#9O
zFbU!w+(;qHpAa0(@kh7Tu%#A+j<)xlbB_2tojljP
zkr&(F#NQOGu#H3_OiWCWN~NfK6r{CPl7CO1Cz-j1kQP$GAL*-1&V0+KC*R@Jl`ku7
zAC7D`TM1Q`;P~YOoV;=fsR{&Fy@FI=N{x^jAweq0n}X4whxp_~l)T7Qfh(Yi8^g>j
zOmS)c1V<9@vT8*Tp)^X_Fd?BJiVhS^CujNm$B!NlO=oYAxOEgMwVmo;(|ncKUj%_E
zK`1-gg0vl&Qgdczf?tytYC|v0eTS5qF2l(OJ~!un_?r!Nc|Hy-XZp-NdK(QsTjyb@
z)5GD79(vK-pUYuN7{54L0X51^xrmUU{#6i5+25T(H+?NGb|1T4(v9!+lgTMYXP20=
zCfOIR0ZlJ0Ae1hF#`pS5Mn1Q*BsX?=F{Lecw76h4&%NA(+Ue&CdAqyCQ?mQmZQehf
zscM2*tS3PFfkLSAyb8M9XtUE-Wo1{F2Y^hjy!h6$E{<>WR;<@KT(xT&^oK~@xsJ4S
zN%=79vCH@Ixt$dy0a)4KMyVV%9PlM7`y>D$~_JJRP{I@!E-7n9e%XLYC1_1wz^L7uvfy`rZgW@5(Bu@#sQBy_+Lu@QBfv56235Ub9wzlFZ
s6bgEAagkIiMK+s#BBPx#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF*
zm;eA5aGbhPJOBUzfKW_SMgRZ*>GIdN*K3)?I+egWk-R#MxH_oGYr@%`;qJkRwL68e
zJAtk`m%3-r;kfem=FH-peW^NmraJ5K=BCa@pvyX)$U55UwVT3DbD=tTqei^WglL#L
z%-6K0$zSvJ@nn=a%G$whoH}2SIcAhaTa7t|tYuY+IKI-flCwIVu{^1|JB*(=udO{&
zhBtM}Ie^xt2$0D3^{gX>lodaw<4bA5dB%jgK`*cr$C6XlRi%ftEREY9>i?E^dJ@
zIb|4b8jjs
zTPibhH7i3LI#(m)?BboCKrU}Ik+YT?I~yo%G}z?M|Kgz-LLe++EmMnST5?t#Rw^TE
zGeB}O^Tbm;Z8RQdGINe!S%)}7fms)0F{j0{BWyo3cr>-myTkXPr2qf`0d!JMQvg8b
z*k%9#00Cl4M??UK1szBL000SaNLh0L002k;002k;M#*bF00080NklNZA0Bul>7z}O~9r%WJ8myp@Q}92v9t-0QOP&D^XnJmoUb!c_AEyFODw9f{}Bvq0Dgh2CPETn6#xR%#W}Y^Mn!JIJ!05*FXR$N0k%j;6LY
zGMU{dj%F1_$sx=7kD|D~w>N_EKE|K6GO>u1fKmL)68`AN~$te&%msC|n)OrDWI4hTvc8QF9EQ*yc7^i@sA=nI0Gn7|iASytU
zyJ=FT>7rjtnx-SS7dG<^2(bW6QCNjBw-f0xQT)Dtexd6%v`4LP6S8ZzO$VZQSvPc}
ziYjz9lu!&>gsW}K>K_y0M8hzeafD`Ia|=H&VYpvM$#O$!lnRH3sk2K_jMtmju+1^p
zY_OP4NRnK&Bf9xY>F**0UC_v~i<(2l!31&lIx3hJs<~17!__~Gujd*p(u;jIBy#4n#oy@zg=p0+t
z0000bbVXQnWMOn=I%9HWVRU5xGB7bTEig1KGBZ>$GdeRcIx;saFfuwYFsA7L*#H0l
zC3HntbYx+4WjbwdWNBu305UK!Gc7PSEiy4wF)%tXG&(gnD=;!TFffodiShsd002ov
JPDHLkV1j!%S%m-q

literal 0
HcmV?d00001

diff --git a/img/ct4.png b/img/ct4.png
new file mode 100644
index 0000000000000000000000000000000000000000..86f86a823dea8052a4e2a446de12481471f16ee5
GIT binary patch
literal 485
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw|3?!p1cPs@`Ea{HEjtmSN`?>!lvI6;x#X;^)
z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP(nSx
zC&cyt|Nrsv@$cTf`}yE&dI?fnl
z8+qT)XLjzDcRtm9yYxzC?7Mq*QI=lXlC}+B(&mayV=-@OWSMbwZQhMZFS=9C)gDW4
z{O&DKJt6mfMfTP|^R@RqGt!lvI6;x#X;^)
z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP(nAr
zC&cyt|Nrsv@$cTf`}y_Lv+Y2FWd)AuKpNze
z6bAQ*h9)4R!qdeugyVX0f=COKA~V~>0F45l1cBC#%-j=h@G5*eGt+pv)6I#i!`4P|
zrk-co6zN$^qPwTAuXJ>9s=BPe@;0-Tt
zuZ?6^g1>8$^WDx5-ptKPXZnkHc+x~=1uh%_hO1AMH@oWPa-bVjOI#yLQW8s2t&)pU
zffR$0fuV`6fr+k>QHX(|m7%GXv5B^Uk(GhLwktuOQ8eV{r(~v8;?{7y^OZkP1B0il
KpUXO@geCyM^PB1b

literal 0
HcmV?d00001

diff --git a/img/ct4738.png b/img/ct4738.png
new file mode 100644
index 0000000000000000000000000000000000000000..739005bcc2f27d2221646613317d256a9c065d9d
GIT binary patch
literal 654
zcmV;90&)F`P)VGd000McNliru-UJs65HeSxq^tk{0vkz0
zK~y-)t(DJ96k#03KQlYF%kH#mrink;YC8srRFH=-3WD%Zhou5z2EtR|$wSZ|(4kWx
z-7J|Qx^>8t5G+<;1YQ+Gl$5s8w*5J-vpeoghjQIrXBSs}FT?Y^@B5keeZI_h1OQc4
z9gbjVn$`wvqN=K+X_|A`p=p})|8Tt$fTAe$J-$k7S8G!zi?oNCeDH!DMl2Qs=n;1o
z$jVPyFDZ`HX8|>f@w245@dWLy9YUR<7AZ<>%F_X(*uIQm5V+?
z6)6ozWrlA0@%wkZ$XRQD(D}t8p`gJ0Vv)=J-m*V6o#*4MNx(1A(e82GD>h21t5afm
zb(;^Lx5{45u*n%V!Q&#A`n<0Dq(;!7EK)FS3NCYUK;+yRsX6HANU-Wz>(|o_q2m)-
zhNChwvnKH$+hu@T^=rWmGhO&<5eZ9(p6XBR&aD7rk3#fcI6$TgOBO8>3=Vi%idlP2PmT0bkiqrW}^PSrm&-W9Z!T_nhwNbzSsj&g9jb
zTv=}zwvMl*+T5VF_=Ra6q=kxshwTn`UAf-NqQeDc$Xun}838xbwNxFW2pR0ej
z|9CL&cR)&lQeAH@rO}ac9Kdl#==Bzrm;HZ+)d6*x7hsw$46=o5bvc%FwK2#DIYMOl_y6b0(K-h{fYO91c#
Xf9c5)U$Q`K00000NkvXXu0mjfu9L3V

literal 0
HcmV?d00001

diff --git a/img/ct6.png b/img/ct6.png
new file mode 100644
index 0000000000000000000000000000000000000000..da642527d8d078e7d8248f8d3c18f23e3d83dafe
GIT binary patch
literal 380
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{1|(OCFP#RY*pj^6T^Rm@;DWu&Cj&(|3p^r=
z85p>QL70(Y)*K0-AbW|YuPggK7I85?4GcGZ)eHeAd3x&p$1SWWV`wdEfJeQx5*#%U4xy!lvI6;x#X;^)
z4C~IxyaaL-l0AZa85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP(mfZ
zC&cyt|Nrsv@$cTf`}yqcho2{(8ZzMYwAyxi&L#MNPIqc~H~M@dQT%F>!4
zyHm?V%Op#+hc}ERRo_)CzANGIRpr^uNp=_Rg&I^lJ1d8`DcuO3cq5=(>CdGD3phS6
zHeqg#bY*8T0eZW$E;w$(rKv?g%T-HUBT7;dOH!?pi&B9UgOP!uiLQZ(u8~oQfuWV5
ssg<#bwtmdKI;Vst097%LrT_o{

literal 0
HcmV?d00001

diff --git a/img/ct8.png b/img/ct8.png
new file mode 100644
index 0000000000000000000000000000000000000000..0eb370ad61f0e41cab1cd785309fbc3e9dc3e491
GIT binary patch
literal 388
zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{1|(OCFP#RY*pj^6T^Rm@;DWu&Cj&(|3p^r=
z85p>QL70(Y)*K0-AbW|YuPggK7I86NQJJ#nS_TG2K~ERQ5R21WCn@$FHV|{<+FN@!la&wmX=l#A6
z3QJSgELfH~Ayv}R>!g=vUAUL#w4kEvrE?e@BB$Lu=kg@hF0$>K)XOQNN{4)>)-W{{Cl8l6YnE1$B%LCy5+C-ZGWCr&(U=GLUx@0Rp*Pvhc#6fdRw0j
z`rB;u`R=CKE3Kb?e9yl7t(sjh_cq~MwK@hfR<74zvzWay+geP5b!!)^oAcfMySPls
zc1<^m{gf_T45bDP46hOx7_4S6Fo+k-*%fF5lweBo
zc6VX;-`;;_Kaj^+;1O92q&>jc?PRtcNU*HHF&#*Q9FfA{9?{SQWc>4VaSYKo-#Tfd
z7jvM1>vy_7QAN`l&<@LFd9e?+~I{%w#
zJqC)+TKX|l4mfTLXt5SzEZ3Nk*lRzw#qRfbv5`+DfI)F`W4x=Dwo$<{
z$A6i<{?D}i102#LK9>GGrsyl3t8bd*#+u=HVs(^WrWaag8WRNi0dVN-jzTQVd20h9';
             infoContent += '    

'; - infoContent += ' '; - infoContent += ' ' + oName[0].childNodes[0].nodeValue + ''; + infoContent += ' '; + infoContent += ' ' + elmName[0].childNodes[0].nodeValue + ''; infoContent += '

'; infoContent += '
'; - if (oOwner[0].childNodes[0]) { + if (elmOwner[0].childNodes[0]) { infoContent += '
Created by:
'; - infoContent += '
' + oOwner[0].childNodes[0].nodeValue + '
'; + infoContent += '
' + elmOwner[0].childNodes[0].nodeValue + '
'; } infoContent += '
Difficulty:
'; - infoContent += '
' + oDifficulty[0].childNodes[0].nodeValue + '
'; + infoContent += '
' + elmDifficulty[0].childNodes[0].nodeValue + '
'; infoContent += '
Cache size:
'; - infoContent += '
' + size + '
'; + infoContent += '
' + elmSize + '
'; infoContent += '
'; infoContent += '
'; infoContent += '
Date Hidden:
'; - infoContent += '
' + date + '
'; + infoContent += '
' + elmDate + '
'; infoContent += '
Terrain:
'; - infoContent += '
' + oTerrain[0].childNodes[0].nodeValue + '
'; + infoContent += '
' + elmTerrain[0].childNodes[0].nodeValue + '
'; infoContent += '
'; infoContent += '
'; @@ -172,10 +195,10 @@ // Set perimeter circle = new L.circle(latlng, 161, { weight: 2, - color: '#c11414', - opacity: objOptionPerimeter.checked ? 0.8 : 0, - fillColor: objOptionPerimeter.checked ? "#c11414" : 'transparent', - fillOpacity: objOptionPerimeter.checked ? 0.25 : 0, + color: circleColor, + opacity: objOptionPerimeter.checked ? circleOpacity : 0, + fillColor: objOptionPerimeter.checked ? circleColor : 'transparent', + fillOpacity: objOptionPerimeter.checked ? circleFillOpacity : 0, clickable: false }); circle.addTo(map); @@ -186,7 +209,7 @@ } }; - // Display tracks on the map + // Display tracks on the map var displayTracks = function(wpts) { var wpt, latlng, i = 0, j, k, @@ -213,7 +236,6 @@ polyline.addTo(map); polylineList.push(polyline); } - bounds.extend(latlng); } }; @@ -257,8 +279,9 @@ var togglePerimeters = function() { _.each(markers, function(value, key) { circleList[key].setStyle({ - opacity: objOptionPerimeter.checked ? 0.8 : 0, - fillOpacity: objOptionPerimeter.checked ? 0.25 : 0 + opacity: objOptionPerimeter.checked ? circleOpacity : 0, + fillColor: objOptionPerimeter.checked ? circleColor : 'transparent', + fillOpacity: objOptionPerimeter.checked ? circleFillOpacity : 0 }); }); @@ -548,4 +571,4 @@ } window.onload = load(); -})(_); \ No newline at end of file +})(_); diff --git a/js/gcgpxviewer.min.js b/js/gcgpxviewer.min.js index b421392..7c7a7e7 100644 --- a/js/gcgpxviewer.min.js +++ b/js/gcgpxviewer.min.js @@ -1,6 +1,6 @@ -(function(){var t=this,e=t._,i={},n=Array.prototype,o=Object.prototype,s=Function.prototype,a=n.push,r=n.slice,l=n.concat,h=o.toString,u=o.hasOwnProperty,c=n.forEach,d=n.map,p=n.reduce,m=n.reduceRight,f=n.filter,_=n.every,g=n.some,v=n.indexOf,y=n.lastIndexOf,L=Array.isArray,b=Object.keys,P=s.bind,w=function(t){return t instanceof w?t:this instanceof w?void(this._wrapped=t):new w(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):t._=w,w.VERSION="1.6.0";var x=w.each=w.forEach=function(t,e,n){if(null==t)return t;if(c&&t.forEach===c)t.forEach(e,n);else if(t.length===+t.length){for(var o=0,s=t.length;s>o;o++)if(e.call(n,t[o],o,t)===i)return}else for(var a=w.keys(t),o=0,s=a.length;s>o;o++)if(e.call(n,t[a[o]],a[o],t)===i)return;return t};w.map=w.collect=function(t,e,i){var n=[];return null==t?n:d&&t.map===d?t.map(e,i):(x(t,function(t,o,s){n.push(e.call(i,t,o,s))}),n)};var C="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(t,e,i,n){var o=arguments.length>2;if(null==t&&(t=[]),p&&t.reduce===p)return n&&(e=w.bind(e,n)),o?t.reduce(e,i):t.reduce(e);if(x(t,function(t,s,a){o?i=e.call(n,i,t,s,a):(i=t,o=!0)}),!o)throw new TypeError(C);return i},w.reduceRight=w.foldr=function(t,e,i,n){var o=arguments.length>2;if(null==t&&(t=[]),m&&t.reduceRight===m)return n&&(e=w.bind(e,n)),o?t.reduceRight(e,i):t.reduceRight(e);var s=t.length;if(s!==+s){var a=w.keys(t);s=a.length}if(x(t,function(r,l,h){l=a?a[--s]:--s,o?i=e.call(n,i,t[l],l,h):(i=t[l],o=!0)}),!o)throw new TypeError(C);return i},w.find=w.detect=function(t,e,i){var n;return E(t,function(t,o,s){return e.call(i,t,o,s)?(n=t,!0):void 0}),n},w.filter=w.select=function(t,e,i){var n=[];return null==t?n:f&&t.filter===f?t.filter(e,i):(x(t,function(t,o,s){e.call(i,t,o,s)&&n.push(t)}),n)},w.reject=function(t,e,i){return w.filter(t,function(t,n,o){return!e.call(i,t,n,o)},i)},w.every=w.all=function(t,e,n){e||(e=w.identity);var o=!0;return null==t?o:_&&t.every===_?t.every(e,n):(x(t,function(t,s,a){return(o=o&&e.call(n,t,s,a))?void 0:i}),!!o)};var E=w.some=w.any=function(t,e,n){e||(e=w.identity);var o=!1;return null==t?o:g&&t.some===g?t.some(e,n):(x(t,function(t,s,a){return o||(o=e.call(n,t,s,a))?i:void 0}),!!o)};w.contains=w.include=function(t,e){return null==t?!1:v&&t.indexOf===v?-1!=t.indexOf(e):E(t,function(t){return t===e})},w.invoke=function(t,e){var i=r.call(arguments,2),n=w.isFunction(e);return w.map(t,function(t){return(n?e:t[e]).apply(t,i)})},w.pluck=function(t,e){return w.map(t,w.property(e))},w.where=function(t,e){return w.filter(t,w.matches(e))},w.findWhere=function(t,e){return w.find(t,w.matches(e))},w.max=function(t,e,i){if(!e&&w.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var n=-1/0,o=-1/0;return x(t,function(t,s,a){var r=e?e.call(i,t,s,a):t;r>o&&(n=t,o=r)}),n},w.min=function(t,e,i){if(!e&&w.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);var n=1/0,o=1/0;return x(t,function(t,s,a){var r=e?e.call(i,t,s,a):t;o>r&&(n=t,o=r)}),n},w.shuffle=function(t){var e,i=0,n=[];return x(t,function(t){e=w.random(i++),n[i-1]=n[e],n[e]=t}),n},w.sample=function(t,e,i){return null==e||i?(t.length!==+t.length&&(t=w.values(t)),t[w.random(t.length-1)]):w.shuffle(t).slice(0,Math.max(0,e))};var D=function(t){return null==t?w.identity:w.isFunction(t)?t:w.property(t)};w.sortBy=function(t,e,i){return e=D(e),w.pluck(w.map(t,function(t,n,o){return{value:t,index:n,criteria:e.call(i,t,n,o)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return t.index-e.index}),"value")};var M=function(t){return function(e,i,n){var o={};return i=D(i),x(e,function(s,a){var r=i.call(n,s,a,e);t(o,r,s)}),o}};w.groupBy=M(function(t,e,i){w.has(t,e)?t[e].push(i):t[e]=[i]}),w.indexBy=M(function(t,e,i){t[e]=i}),w.countBy=M(function(t,e){w.has(t,e)?t[e]++:t[e]=1}),w.sortedIndex=function(t,e,i,n){i=D(i);for(var o=i.call(n,e),s=0,a=t.length;a>s;){var r=s+a>>>1;i.call(n,t[r])e?[]:r.call(t,0,e)},w.initial=function(t,e,i){return r.call(t,0,t.length-(null==e||i?1:e))},w.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:r.call(t,Math.max(t.length-e,0))},w.rest=w.tail=w.drop=function(t,e,i){return r.call(t,null==e||i?1:e)},w.compact=function(t){return w.filter(t,w.identity)};var T=function(t,e,i){return e&&w.every(t,w.isArray)?l.apply(i,t):(x(t,function(t){w.isArray(t)||w.isArguments(t)?e?a.apply(i,t):T(t,e,i):i.push(t)}),i)};w.flatten=function(t,e){return T(t,e,[])},w.without=function(t){return w.difference(t,r.call(arguments,1))},w.partition=function(t,e){var i=[],n=[];return x(t,function(t){(e(t)?i:n).push(t)}),[i,n]},w.uniq=w.unique=function(t,e,i,n){w.isFunction(e)&&(n=i,i=e,e=!1);var o=i?w.map(t,i,n):t,s=[],a=[];return x(o,function(i,n){(e?n&&a[a.length-1]===i:w.contains(a,i))||(a.push(i),s.push(t[n]))}),s},w.union=function(){return w.uniq(w.flatten(arguments,!0))},w.intersection=function(t){var e=r.call(arguments,1);return w.filter(w.uniq(t),function(t){return w.every(e,function(e){return w.contains(e,t)})})},w.difference=function(t){var e=l.apply(n,r.call(arguments,1));return w.filter(t,function(t){return!w.contains(e,t)})},w.zip=function(){for(var t=w.max(w.pluck(arguments,"length").concat(0)),e=new Array(t),i=0;t>i;i++)e[i]=w.pluck(arguments,""+i);return e},w.object=function(t,e){if(null==t)return{};for(var i={},n=0,o=t.length;o>n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},w.indexOf=function(t,e,i){if(null==t)return-1;var n=0,o=t.length;if(i){if("number"!=typeof i)return n=w.sortedIndex(t,e),t[n]===e?n:-1;n=0>i?Math.max(0,o+i):i}if(v&&t.indexOf===v)return t.indexOf(e,i);for(;o>n;n++)if(t[n]===e)return n;return-1},w.lastIndexOf=function(t,e,i){if(null==t)return-1;var n=null!=i;if(y&&t.lastIndexOf===y)return n?t.lastIndexOf(e,i):t.lastIndexOf(e);for(var o=n?i:t.length;o--;)if(t[o]===e)return o;return-1},w.range=function(t,e,i){arguments.length<=1&&(e=t||0,t=0),i=arguments[2]||1;for(var n=Math.max(Math.ceil((e-t)/i),0),o=0,s=new Array(n);n>o;)s[o++]=t,t+=i;return s};var S=function(){};w.bind=function(t,e){var i,n;if(P&&t.bind===P)return P.apply(t,r.call(arguments,1));if(!w.isFunction(t))throw new TypeError;return i=r.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(e,i.concat(r.call(arguments)));S.prototype=t.prototype;var o=new S;S.prototype=null;var s=t.apply(o,i.concat(r.call(arguments)));return Object(s)===s?s:o}},w.partial=function(t){var e=r.call(arguments,1);return function(){for(var i=0,n=e.slice(),o=0,s=n.length;s>o;o++)n[o]===w&&(n[o]=arguments[i++]);for(;i=u?(clearTimeout(a),a=null,r=h,s=t.apply(n,o),n=o=null):a||i.trailing===!1||(a=setTimeout(l,u)),s}},w.debounce=function(t,e,i){var n,o,s,a,r,l=function(){var h=w.now()-a;e>h?n=setTimeout(l,e-h):(n=null,i||(r=t.apply(s,o),s=o=null))};return function(){s=this,o=arguments,a=w.now();var h=i&&!n;return n||(n=setTimeout(l,e)),h&&(r=t.apply(s,o),s=o=null),r}},w.once=function(t){var e,i=!1;return function(){return i?e:(i=!0,e=t.apply(this,arguments),t=null,e)}},w.wrap=function(t,e){return w.partial(e,t)},w.compose=function(){var t=arguments;return function(){for(var e=arguments,i=t.length-1;i>=0;i--)e=[t[i].apply(this,e)];return e[0]}},w.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},w.keys=function(t){if(!w.isObject(t))return[];if(b)return b(t);var e=[];for(var i in t)w.has(t,i)&&e.push(i);return e},w.values=function(t){for(var e=w.keys(t),i=e.length,n=new Array(i),o=0;i>o;o++)n[o]=t[e[o]];return n},w.pairs=function(t){for(var e=w.keys(t),i=e.length,n=new Array(i),o=0;i>o;o++)n[o]=[e[o],t[e[o]]];return n},w.invert=function(t){for(var e={},i=w.keys(t),n=0,o=i.length;o>n;n++)e[t[i[n]]]=i[n];return e},w.functions=w.methods=function(t){var e=[];for(var i in t)w.isFunction(t[i])&&e.push(i);return e.sort()},w.extend=function(t){return x(r.call(arguments,1),function(e){if(e)for(var i in e)t[i]=e[i]}),t},w.pick=function(t){var e={},i=l.apply(n,r.call(arguments,1));return x(i,function(i){i in t&&(e[i]=t[i])}),e},w.omit=function(t){var e={},i=l.apply(n,r.call(arguments,1));for(var o in t)w.contains(i,o)||(e[o]=t[o]);return e},w.defaults=function(t){return x(r.call(arguments,1),function(e){if(e)for(var i in e)void 0===t[i]&&(t[i]=e[i])}),t},w.clone=function(t){return w.isObject(t)?w.isArray(t)?t.slice():w.extend({},t):t},w.tap=function(t,e){return e(t),t};var k=function(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof w&&(t=t._wrapped),e instanceof w&&(e=e._wrapped);var o=h.call(t);if(o!=h.call(e))return!1;switch(o){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var s=i.length;s--;)if(i[s]==t)return n[s]==e;var a=t.constructor,r=e.constructor;if(a!==r&&!(w.isFunction(a)&&a instanceof a&&w.isFunction(r)&&r instanceof r)&&"constructor"in t&&"constructor"in e)return!1;i.push(t),n.push(e);var l=0,u=!0;if("[object Array]"==o){if(l=t.length,u=l==e.length)for(;l--&&(u=k(t[l],e[l],i,n)););}else{for(var c in t)if(w.has(t,c)&&(l++,!(u=w.has(e,c)&&k(t[c],e[c],i,n))))break;if(u){for(c in e)if(w.has(e,c)&&!l--)break;u=!l}}return i.pop(),n.pop(),u};w.isEqual=function(t,e){return k(t,e,[],[])},w.isEmpty=function(t){if(null==t)return!0;if(w.isArray(t)||w.isString(t))return 0===t.length;for(var e in t)if(w.has(t,e))return!1;return!0},w.isElement=function(t){return!(!t||1!==t.nodeType)},w.isArray=L||function(t){return"[object Array]"==h.call(t)},w.isObject=function(t){return t===Object(t)},x(["Arguments","Function","String","Number","Date","RegExp"],function(t){w["is"+t]=function(e){return h.call(e)=="[object "+t+"]"}}),w.isArguments(arguments)||(w.isArguments=function(t){return!(!t||!w.has(t,"callee"))}),"function"!=typeof/./&&(w.isFunction=function(t){return"function"==typeof t}),w.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},w.isNaN=function(t){return w.isNumber(t)&&t!=+t},w.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==h.call(t)},w.isNull=function(t){return null===t},w.isUndefined=function(t){return void 0===t},w.has=function(t,e){return u.call(t,e)},w.noConflict=function(){return t._=e,this},w.identity=function(t){return t},w.constant=function(t){return function(){return t}},w.property=function(t){return function(e){return e[t]}},w.matches=function(t){return function(e){if(e===t)return!0;for(var i in t)if(t[i]!==e[i])return!1;return!0}},w.times=function(t,e,i){for(var n=Array(Math.max(0,t)),o=0;t>o;o++)n[o]=e.call(i,o);return n},w.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},w.now=Date.now||function(){return(new Date).getTime()};var O={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};O.unescape=w.invert(O.escape);var B={escape:new RegExp("["+w.keys(O.escape).join("")+"]","g"),unescape:new RegExp("("+w.keys(O.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(t){w[t]=function(e){return null==e?"":(""+e).replace(B[t],function(e){return O[t][e]})}}),w.result=function(t,e){if(null==t)return void 0;var i=t[e];return w.isFunction(i)?i.call(t):i},w.mixin=function(t){x(w.functions(t),function(e){var i=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),N.call(this,i.apply(w,t))}})};var A=0;w.uniqueId=function(t){var e=++A+"";return t?t+e:e},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var I=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(t,e,i){var n;i=w.defaults({},i,w.templateSettings);var o=new RegExp([(i.escape||I).source,(i.interpolate||I).source,(i.evaluate||I).source].join("|")+"|$","g"),s=0,a="__p+='";t.replace(o,function(e,i,n,o,r){return a+=t.slice(s,r).replace(z,function(t){return"\\"+U[t]}),i&&(a+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),n&&(a+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),o&&(a+="';\n"+o+"\n__p+='"),s=r+e.length,e}),a+="';\n",i.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{n=new Function(i.variable||"obj","_",a)}catch(r){throw r.source=a,r}if(e)return n(e,w);var l=function(t){return n.call(this,t,w)};return l.source="function("+(i.variable||"obj")+"){\n"+a+"}",l},w.chain=function(t){return w(t).chain()};var N=function(t){return this._chain?w(t).chain():t};w.mixin(w),x(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=n[t];w.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!=t&&"splice"!=t||0!==i.length||delete i[0],N.call(this,i)}}),x(["concat","join","slice"],function(t){var e=n[t];w.prototype[t]=function(){return N.call(this,e.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return w})}).call(this),function(t,e,i){var n=t.L,o={};o.version="0.7.2","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;return n?void(o=!0):(n=!0,setTimeout(function(){n=!1,o&&(s.apply(i,a),o=!1)},e),void t.apply(i,a))}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return o.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=o.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},template:function(t,e){return t.replace(/\{ *([\w_]+) *\}/g,function(t,n){var o=e[n];if(o===i)throw new Error("No value provided for variable "+t);return"function"==typeof o&&(o=o(e)),o})},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i=0;it;t++)n._initHooks[t].call(this)}},e},o.Class.include=function(t){o.extend(this.prototype,t)},o.Class.mergeOptions=function(t){o.extend(this.prototype.options,t)},o.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var s="_leaflet_events";o.Mixin={},o.Mixin.Events={addEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,l,h,u,c,d=this[s]=this[s]||{},p=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)r={action:e,context:i||this},l=t[n],p?(h=l+"_idx",u=h+"_len",c=d[h]=d[h]||{},c[p]||(c[p]=[],d[u]=(d[u]||0)+1),c[p].push(r)):(d[l]=d[l]||[],d[l].push(r));return this},hasEventListeners:function(t){var e=this[s];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,l,h,u,c,d,p,m=this[s],f=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)if(r=t[n],u=r+"_idx",c=u+"_len",d=m[u],e){if(l=f&&d?d[f]:m[r]){for(h=l.length-1;h>=0;h--)l[h].action!==e||i&&l[h].context!==i||(p=l.splice(h,1),p[0].action=o.Util.falseFn);i&&d&&0===l.length&&(delete d[f],m[c]--)}}else delete m[r],delete m[u],delete m[c];return this},clearAllEventListeners:function(){return delete this[s],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,l,h=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i=u[t].slice(),n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,h);r=u[t+"_idx"];for(l in r)if(i=r[l].slice())for(n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,h);return this},addOneTimeEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},o.Mixin.Events.on=o.Mixin.Events.addEventListener,o.Mixin.Events.off=o.Mixin.Events.removeEventListener,o.Mixin.Events.once=o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire=o.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in t,s=n&&!e.addEventListener,a=navigator.userAgent.toLowerCase(),r=-1!==a.indexOf("webkit"),l=-1!==a.indexOf("chrome"),h=-1!==a.indexOf("phantom"),u=-1!==a.indexOf("android"),c=-1!==a.search("android [23]"),d=-1!==a.indexOf("gecko"),p=typeof orientation!=i+"",m=t.navigator&&t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints&&!t.PointerEvent,f=t.PointerEvent&&t.navigator.pointerEnabled&&t.navigator.maxTouchPoints||m,_="devicePixelRatio"in t&&t.devicePixelRatio>1||"matchMedia"in t&&t.matchMedia("(min-resolution:144dpi)")&&t.matchMedia("(min-resolution:144dpi)").matches,g=e.documentElement,v=n&&"transition"in g.style,y="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix&&!c,L="MozPerspective"in g.style,b="OTransition"in g.style,P=!t.L_DISABLE_3D&&(v||y||L||b)&&!h,w=!t.L_NO_TOUCH&&!h&&function(){var t="ontouchstart";if(f||t in g)return!0;var i=e.createElement("div"),n=!1;return i.setAttribute?(i.setAttribute(t,"return;"),"function"==typeof i[t]&&(n=!0),i.removeAttribute(t),i=null,n):!1}();o.Browser={ie:n,ielt9:s,webkit:r,gecko:d&&!r&&!t.opera&&!n,android:u,android23:c,chrome:l,ie3d:v,webkit3d:y,gecko3d:L,opera3d:b,any3d:P,mobile:p,mobileWebkit:p&&r,mobileWebkit3d:p&&y,mobileOpera:p&&t.opera,touch:w,msPointer:m,pointer:f,retina:_}}(),o.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},o.Point.prototype={clone:function(){return new o.Point(this.x,this.y)},add:function(t){return this.clone()._add(o.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(o.point(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},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},distanceTo:function(t){t=o.point(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=o.point(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=o.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+o.Util.formatNum(this.x)+", "+o.Util.formatNum(this.y)+")"}},o.point=function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t===i||null===t?t:new o.Point(t,e,n)},o.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.Bounds.prototype={extend:function(t){return t=o.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new o.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new o.Point(this.min.x,this.max.y)},getTopRight:function(){return new o.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return t="number"==typeof t[0]||t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},o.bounds=function(t,e){return!t||t instanceof o.Bounds?t:new o.Bounds(t,e)},o.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},o.Transformation.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 o.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},o.DomUtil={get:function(t){return"string"==typeof t?e.getElementById(t):t},getStyle:function(t,i){var n=t.style[i];if(!n&&t.currentStyle&&(n=t.currentStyle[i]),(!n||"auto"===n)&&e.defaultView){var o=e.defaultView.getComputedStyle(t,null);n=o?o[i]:null}return"auto"===n?null:n},getViewportOffset:function(t){var i,n=0,s=0,a=t,r=e.body,l=e.documentElement;do{if(n+=a.offsetTop||0,s+=a.offsetLeft||0,n+=parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10)||0,s+=parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10)||0,i=o.DomUtil.getStyle(a,"position"),a.offsetParent===r&&"absolute"===i)break;if("fixed"===i){n+=r.scrollTop||l.scrollTop||0,s+=r.scrollLeft||l.scrollLeft||0;break}if("relative"===i&&!a.offsetLeft){var h=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none"!==h||"none"!==u)&&(s+=c.left+a.clientLeft),n+=c.top+(r.scrollTop||l.scrollTop||0);break}a=a.offsetParent}while(a);a=t;do{if(a===r)break;n-=a.scrollTop||0,s-=a.scrollLeft||0,a=a.parentNode}while(a);return new o.Point(s,n)},documentIsLtr:function(){return o.DomUtil._docIsLtrCached||(o.DomUtil._docIsLtrCached=!0,o.DomUtil._docIsLtr="ltr"===o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr},create:function(t,i,n){var o=e.createElement(t);return o.className=i,n&&n.appendChild(o),o},hasClass:function(t,e){if(t.classList!==i)return t.classList.contains(e);var n=o.DomUtil._getClass(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==i)for(var n=o.Util.splitWords(e),s=0,a=n.length;a>s;s++)t.classList.add(n[s]);else if(!o.DomUtil.hasClass(t,e)){var r=o.DomUtil._getClass(t);o.DomUtil._setClass(t,(r?r+" ":"")+e)}},removeClass:function(t,e){t.classList!==i?t.classList.remove(e):o.DomUtil._setClass(t,o.Util.trim((" "+o.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===i?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===i?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var i=e.documentElement.style,n=0;ni||i===e?e:t),new o.LatLng(this.lat,i)}},o.latLng=function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new o.LatLng(t[0],t[1],t[2]):null:t===i||null===t?t:"object"==typeof t&&"lat"in t?new o.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===i?null:new o.LatLng(t,e)},o.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=o.latLng(t);return t=null!==e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new o.LatLng(t.lat,t.lng),this._northEast=new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new o.LatLngBounds(new o.LatLng(e.lat-n,e.lng-s),new o.LatLng(i.lat+n,i.lng+s))},getCenter:function(){return new o.LatLng((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 o.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new o.LatLng(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){t="number"==typeof t[0]||t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return t?(t=o.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},o.latLngBounds=function(t,e){return!t||t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e)},o.Projection={},o.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng*e,a=n*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new o.Point(s,a)},unproject:function(t){var e=o.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e; +(function(){var t=this,e=t._,i={},n=Array.prototype,o=Object.prototype,s=Function.prototype,a=n.push,r=n.slice,l=n.concat,h=o.toString,u=o.hasOwnProperty,c=n.forEach,d=n.map,p=n.reduce,m=n.reduceRight,f=n.filter,_=n.every,g=n.some,v=n.indexOf,y=n.lastIndexOf,L=Array.isArray,b=Object.keys,P=s.bind,w=function(t){return t instanceof w?t:this instanceof w?void(this._wrapped=t):new w(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=w),exports._=w):t._=w,w.VERSION="1.6.0";var x=w.each=w.forEach=function(t,e,n){if(null==t)return t;if(c&&t.forEach===c)t.forEach(e,n);else if(t.length===+t.length){for(var o=0,s=t.length;s>o;o++)if(e.call(n,t[o],o,t)===i)return}else for(var a=w.keys(t),o=0,s=a.length;s>o;o++)if(e.call(n,t[a[o]],a[o],t)===i)return;return t};w.map=w.collect=function(t,e,i){var n=[];return null==t?n:d&&t.map===d?t.map(e,i):(x(t,function(t,o,s){n.push(e.call(i,t,o,s))}),n)};var C="Reduce of empty array with no initial value";w.reduce=w.foldl=w.inject=function(t,e,i,n){var o=arguments.length>2;if(null==t&&(t=[]),p&&t.reduce===p)return n&&(e=w.bind(e,n)),o?t.reduce(e,i):t.reduce(e);if(x(t,function(t,s,a){o?i=e.call(n,i,t,s,a):(i=t,o=!0)}),!o)throw new TypeError(C);return i},w.reduceRight=w.foldr=function(t,e,i,n){var o=arguments.length>2;if(null==t&&(t=[]),m&&t.reduceRight===m)return n&&(e=w.bind(e,n)),o?t.reduceRight(e,i):t.reduceRight(e);var s=t.length;if(s!==+s){var a=w.keys(t);s=a.length}if(x(t,function(r,l,h){l=a?a[--s]:--s,o?i=e.call(n,i,t[l],l,h):(i=t[l],o=!0)}),!o)throw new TypeError(C);return i},w.find=w.detect=function(t,e,i){var n;return E(t,function(t,o,s){return e.call(i,t,o,s)?(n=t,!0):void 0}),n},w.filter=w.select=function(t,e,i){var n=[];return null==t?n:f&&t.filter===f?t.filter(e,i):(x(t,function(t,o,s){e.call(i,t,o,s)&&n.push(t)}),n)},w.reject=function(t,e,i){return w.filter(t,function(t,n,o){return!e.call(i,t,n,o)},i)},w.every=w.all=function(t,e,n){e||(e=w.identity);var o=!0;return null==t?o:_&&t.every===_?t.every(e,n):(x(t,function(t,s,a){return(o=o&&e.call(n,t,s,a))?void 0:i}),!!o)};var E=w.some=w.any=function(t,e,n){e||(e=w.identity);var o=!1;return null==t?o:g&&t.some===g?t.some(e,n):(x(t,function(t,s,a){return o||(o=e.call(n,t,s,a))?i:void 0}),!!o)};w.contains=w.include=function(t,e){return null==t?!1:v&&t.indexOf===v?-1!=t.indexOf(e):E(t,function(t){return t===e})},w.invoke=function(t,e){var i=r.call(arguments,2),n=w.isFunction(e);return w.map(t,function(t){return(n?e:t[e]).apply(t,i)})},w.pluck=function(t,e){return w.map(t,w.property(e))},w.where=function(t,e){return w.filter(t,w.matches(e))},w.findWhere=function(t,e){return w.find(t,w.matches(e))},w.max=function(t,e,i){if(!e&&w.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.max.apply(Math,t);var n=-1/0,o=-1/0;return x(t,function(t,s,a){var r=e?e.call(i,t,s,a):t;r>o&&(n=t,o=r)}),n},w.min=function(t,e,i){if(!e&&w.isArray(t)&&t[0]===+t[0]&&t.length<65535)return Math.min.apply(Math,t);var n=1/0,o=1/0;return x(t,function(t,s,a){var r=e?e.call(i,t,s,a):t;o>r&&(n=t,o=r)}),n},w.shuffle=function(t){var e,i=0,n=[];return x(t,function(t){e=w.random(i++),n[i-1]=n[e],n[e]=t}),n},w.sample=function(t,e,i){return null==e||i?(t.length!==+t.length&&(t=w.values(t)),t[w.random(t.length-1)]):w.shuffle(t).slice(0,Math.max(0,e))};var D=function(t){return null==t?w.identity:w.isFunction(t)?t:w.property(t)};w.sortBy=function(t,e,i){return e=D(e),w.pluck(w.map(t,function(t,n,o){return{value:t,index:n,criteria:e.call(i,t,n,o)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return t.index-e.index}),"value")};var M=function(t){return function(e,i,n){var o={};return i=D(i),x(e,function(s,a){var r=i.call(n,s,a,e);t(o,r,s)}),o}};w.groupBy=M(function(t,e,i){w.has(t,e)?t[e].push(i):t[e]=[i]}),w.indexBy=M(function(t,e,i){t[e]=i}),w.countBy=M(function(t,e){w.has(t,e)?t[e]++:t[e]=1}),w.sortedIndex=function(t,e,i,n){i=D(i);for(var o=i.call(n,e),s=0,a=t.length;a>s;){var r=s+a>>>1;i.call(n,t[r])e?[]:r.call(t,0,e)},w.initial=function(t,e,i){return r.call(t,0,t.length-(null==e||i?1:e))},w.last=function(t,e,i){return null==t?void 0:null==e||i?t[t.length-1]:r.call(t,Math.max(t.length-e,0))},w.rest=w.tail=w.drop=function(t,e,i){return r.call(t,null==e||i?1:e)},w.compact=function(t){return w.filter(t,w.identity)};var T=function(t,e,i){return e&&w.every(t,w.isArray)?l.apply(i,t):(x(t,function(t){w.isArray(t)||w.isArguments(t)?e?a.apply(i,t):T(t,e,i):i.push(t)}),i)};w.flatten=function(t,e){return T(t,e,[])},w.without=function(t){return w.difference(t,r.call(arguments,1))},w.partition=function(t,e){var i=[],n=[];return x(t,function(t){(e(t)?i:n).push(t)}),[i,n]},w.uniq=w.unique=function(t,e,i,n){w.isFunction(e)&&(n=i,i=e,e=!1);var o=i?w.map(t,i,n):t,s=[],a=[];return x(o,function(i,n){(e?n&&a[a.length-1]===i:w.contains(a,i))||(a.push(i),s.push(t[n]))}),s},w.union=function(){return w.uniq(w.flatten(arguments,!0))},w.intersection=function(t){var e=r.call(arguments,1);return w.filter(w.uniq(t),function(t){return w.every(e,function(e){return w.contains(e,t)})})},w.difference=function(t){var e=l.apply(n,r.call(arguments,1));return w.filter(t,function(t){return!w.contains(e,t)})},w.zip=function(){for(var t=w.max(w.pluck(arguments,"length").concat(0)),e=new Array(t),i=0;t>i;i++)e[i]=w.pluck(arguments,""+i);return e},w.object=function(t,e){if(null==t)return{};for(var i={},n=0,o=t.length;o>n;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},w.indexOf=function(t,e,i){if(null==t)return-1;var n=0,o=t.length;if(i){if("number"!=typeof i)return n=w.sortedIndex(t,e),t[n]===e?n:-1;n=0>i?Math.max(0,o+i):i}if(v&&t.indexOf===v)return t.indexOf(e,i);for(;o>n;n++)if(t[n]===e)return n;return-1},w.lastIndexOf=function(t,e,i){if(null==t)return-1;var n=null!=i;if(y&&t.lastIndexOf===y)return n?t.lastIndexOf(e,i):t.lastIndexOf(e);for(var o=n?i:t.length;o--;)if(t[o]===e)return o;return-1},w.range=function(t,e,i){arguments.length<=1&&(e=t||0,t=0),i=arguments[2]||1;for(var n=Math.max(Math.ceil((e-t)/i),0),o=0,s=new Array(n);n>o;)s[o++]=t,t+=i;return s};var S=function(){};w.bind=function(t,e){var i,n;if(P&&t.bind===P)return P.apply(t,r.call(arguments,1));if(!w.isFunction(t))throw new TypeError;return i=r.call(arguments,2),n=function(){if(!(this instanceof n))return t.apply(e,i.concat(r.call(arguments)));S.prototype=t.prototype;var o=new S;S.prototype=null;var s=t.apply(o,i.concat(r.call(arguments)));return Object(s)===s?s:o}},w.partial=function(t){var e=r.call(arguments,1);return function(){for(var i=0,n=e.slice(),o=0,s=n.length;s>o;o++)n[o]===w&&(n[o]=arguments[i++]);for(;i=u?(clearTimeout(a),a=null,r=h,s=t.apply(n,o),n=o=null):a||i.trailing===!1||(a=setTimeout(l,u)),s}},w.debounce=function(t,e,i){var n,o,s,a,r,l=function(){var h=w.now()-a;e>h?n=setTimeout(l,e-h):(n=null,i||(r=t.apply(s,o),s=o=null))};return function(){s=this,o=arguments,a=w.now();var h=i&&!n;return n||(n=setTimeout(l,e)),h&&(r=t.apply(s,o),s=o=null),r}},w.once=function(t){var e,i=!1;return function(){return i?e:(i=!0,e=t.apply(this,arguments),t=null,e)}},w.wrap=function(t,e){return w.partial(e,t)},w.compose=function(){var t=arguments;return function(){for(var e=arguments,i=t.length-1;i>=0;i--)e=[t[i].apply(this,e)];return e[0]}},w.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},w.keys=function(t){if(!w.isObject(t))return[];if(b)return b(t);var e=[];for(var i in t)w.has(t,i)&&e.push(i);return e},w.values=function(t){for(var e=w.keys(t),i=e.length,n=new Array(i),o=0;i>o;o++)n[o]=t[e[o]];return n},w.pairs=function(t){for(var e=w.keys(t),i=e.length,n=new Array(i),o=0;i>o;o++)n[o]=[e[o],t[e[o]]];return n},w.invert=function(t){for(var e={},i=w.keys(t),n=0,o=i.length;o>n;n++)e[t[i[n]]]=i[n];return e},w.functions=w.methods=function(t){var e=[];for(var i in t)w.isFunction(t[i])&&e.push(i);return e.sort()},w.extend=function(t){return x(r.call(arguments,1),function(e){if(e)for(var i in e)t[i]=e[i]}),t},w.pick=function(t){var e={},i=l.apply(n,r.call(arguments,1));return x(i,function(i){i in t&&(e[i]=t[i])}),e},w.omit=function(t){var e={},i=l.apply(n,r.call(arguments,1));for(var o in t)w.contains(i,o)||(e[o]=t[o]);return e},w.defaults=function(t){return x(r.call(arguments,1),function(e){if(e)for(var i in e)void 0===t[i]&&(t[i]=e[i])}),t},w.clone=function(t){return w.isObject(t)?w.isArray(t)?t.slice():w.extend({},t):t},w.tap=function(t,e){return e(t),t};var k=function(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof w&&(t=t._wrapped),e instanceof w&&(e=e._wrapped);var o=h.call(t);if(o!=h.call(e))return!1;switch(o){case"[object String]":return t==String(e);case"[object Number]":return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object RegExp]":return t.source==e.source&&t.global==e.global&&t.multiline==e.multiline&&t.ignoreCase==e.ignoreCase}if("object"!=typeof t||"object"!=typeof e)return!1;for(var s=i.length;s--;)if(i[s]==t)return n[s]==e;var a=t.constructor,r=e.constructor;if(a!==r&&!(w.isFunction(a)&&a instanceof a&&w.isFunction(r)&&r instanceof r)&&"constructor"in t&&"constructor"in e)return!1;i.push(t),n.push(e);var l=0,u=!0;if("[object Array]"==o){if(l=t.length,u=l==e.length)for(;l--&&(u=k(t[l],e[l],i,n)););}else{for(var c in t)if(w.has(t,c)&&(l++,!(u=w.has(e,c)&&k(t[c],e[c],i,n))))break;if(u){for(c in e)if(w.has(e,c)&&!l--)break;u=!l}}return i.pop(),n.pop(),u};w.isEqual=function(t,e){return k(t,e,[],[])},w.isEmpty=function(t){if(null==t)return!0;if(w.isArray(t)||w.isString(t))return 0===t.length;for(var e in t)if(w.has(t,e))return!1;return!0},w.isElement=function(t){return!(!t||1!==t.nodeType)},w.isArray=L||function(t){return"[object Array]"==h.call(t)},w.isObject=function(t){return t===Object(t)},x(["Arguments","Function","String","Number","Date","RegExp"],function(t){w["is"+t]=function(e){return h.call(e)=="[object "+t+"]"}}),w.isArguments(arguments)||(w.isArguments=function(t){return!(!t||!w.has(t,"callee"))}),"function"!=typeof/./&&(w.isFunction=function(t){return"function"==typeof t}),w.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},w.isNaN=function(t){return w.isNumber(t)&&t!=+t},w.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"==h.call(t)},w.isNull=function(t){return null===t},w.isUndefined=function(t){return void 0===t},w.has=function(t,e){return u.call(t,e)},w.noConflict=function(){return t._=e,this},w.identity=function(t){return t},w.constant=function(t){return function(){return t}},w.property=function(t){return function(e){return e[t]}},w.matches=function(t){return function(e){if(e===t)return!0;for(var i in t)if(t[i]!==e[i])return!1;return!0}},w.times=function(t,e,i){for(var n=Array(Math.max(0,t)),o=0;t>o;o++)n[o]=e.call(i,o);return n},w.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},w.now=Date.now||function(){return(new Date).getTime()};var B={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};B.unescape=w.invert(B.escape);var O={escape:new RegExp("["+w.keys(B.escape).join("")+"]","g"),unescape:new RegExp("("+w.keys(B.unescape).join("|")+")","g")};w.each(["escape","unescape"],function(t){w[t]=function(e){return null==e?"":(""+e).replace(O[t],function(e){return B[t][e]})}}),w.result=function(t,e){if(null==t)return void 0;var i=t[e];return w.isFunction(i)?i.call(t):i},w.mixin=function(t){x(w.functions(t),function(e){var i=w[e]=t[e];w.prototype[e]=function(){var t=[this._wrapped];return a.apply(t,arguments),N.call(this,i.apply(w,t))}})};var A=0;w.uniqueId=function(t){var e=++A+"";return t?t+e:e},w.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var I=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},z=/\\|'|\r|\n|\t|\u2028|\u2029/g;w.template=function(t,e,i){var n;i=w.defaults({},i,w.templateSettings);var o=new RegExp([(i.escape||I).source,(i.interpolate||I).source,(i.evaluate||I).source].join("|")+"|$","g"),s=0,a="__p+='";t.replace(o,function(e,i,n,o,r){return a+=t.slice(s,r).replace(z,function(t){return"\\"+U[t]}),i&&(a+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),n&&(a+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),o&&(a+="';\n"+o+"\n__p+='"),s=r+e.length,e}),a+="';\n",i.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{n=new Function(i.variable||"obj","_",a)}catch(r){throw r.source=a,r}if(e)return n(e,w);var l=function(t){return n.call(this,t,w)};return l.source="function("+(i.variable||"obj")+"){\n"+a+"}",l},w.chain=function(t){return w(t).chain()};var N=function(t){return this._chain?w(t).chain():t};w.mixin(w),x(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=n[t];w.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!=t&&"splice"!=t||0!==i.length||delete i[0],N.call(this,i)}}),x(["concat","join","slice"],function(t){var e=n[t];w.prototype[t]=function(){return N.call(this,e.apply(this._wrapped,arguments))}}),w.extend(w.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}}),"function"==typeof define&&define.amd&&define("underscore",[],function(){return w})}).call(this),function(t,e,i){var n=t.L,o={};o.version="0.7.2","object"==typeof module&&"object"==typeof module.exports?module.exports=o:"function"==typeof define&&define.amd&&define(o),o.noConflict=function(){return t.L=n,this},t.L=o,o.Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;n>i;i++){o=s[i]||{};for(e in o)o.hasOwnProperty(e)&&(t[e]=o[e])}return t},bind:function(t,e){var i=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:function(){var t=0,e="_leaflet_id";return function(i){return i[e]=i[e]||++t,i[e]}}(),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){o=Array.prototype.slice.call(arguments,3);for(n in t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(t,e,i){var n,o;return function s(){var a=arguments;return n?void(o=!0):(n=!0,setTimeout(function(){n=!1,o&&(s.apply(i,a),o=!1)},e),void t.apply(i,a))}},falseFn:function(){return!1},formatNum:function(t,e){var i=Math.pow(10,e||5);return Math.round(t*i)/i},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},splitWords:function(t){return o.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=o.extend({},t.options,e),t.options},getParamString:function(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")},template:function(t,e){return t.replace(/\{ *([\w_]+) *\}/g,function(t,n){var o=e[n];if(o===i)throw new Error("No value provided for variable "+t);return"function"==typeof o&&(o=o(e)),o})},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var i,n,o=["webkit","moz","o","ms"];for(i=0;it;t++)n._initHooks[t].call(this)}},e},o.Class.include=function(t){o.extend(this.prototype,t)},o.Class.mergeOptions=function(t){o.extend(this.prototype.options,t)},o.Class.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i)};var s="_leaflet_events";o.Mixin={},o.Mixin.Events={addEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,a,r,l,h,u,c,d=this[s]=this[s]||{},p=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)r={action:e,context:i||this},l=t[n],p?(h=l+"_idx",u=h+"_len",c=d[h]=d[h]||{},c[p]||(c[p]=[],d[u]=(d[u]||0)+1),c[p].push(r)):(d[l]=d[l]||[],d[l].push(r));return this},hasEventListeners:function(t){var e=this[s];return!!e&&(t in e&&e[t].length>0||t+"_idx"in e&&e[t+"_idx_len"]>0)},removeEventListener:function(t,e,i){if(!this[s])return this;if(!t)return this.clearAllEventListeners();if(o.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,a,r,l,h,u,c,d,p,m=this[s],f=i&&i!==this&&o.stamp(i);for(t=o.Util.splitWords(t),n=0,a=t.length;a>n;n++)if(r=t[n],u=r+"_idx",c=u+"_len",d=m[u],e){if(l=f&&d?d[f]:m[r]){for(h=l.length-1;h>=0;h--)l[h].action!==e||i&&l[h].context!==i||(p=l.splice(h,1),p[0].action=o.Util.falseFn);i&&d&&0===l.length&&(delete d[f],m[c]--)}}else delete m[r],delete m[u],delete m[c];return this},clearAllEventListeners:function(){return delete this[s],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,a,r,l,h=o.Util.extend({},e,{type:t,target:this}),u=this[s];if(u[t])for(i=u[t].slice(),n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,h);r=u[t+"_idx"];for(l in r)if(i=r[l].slice())for(n=0,a=i.length;a>n;n++)i[n].action.call(i[n].context,h);return this},addOneTimeEventListener:function(t,e,i){if(o.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=o.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},o.Mixin.Events.on=o.Mixin.Events.addEventListener,o.Mixin.Events.off=o.Mixin.Events.removeEventListener,o.Mixin.Events.once=o.Mixin.Events.addOneTimeEventListener,o.Mixin.Events.fire=o.Mixin.Events.fireEvent,function(){var n="ActiveXObject"in t,s=n&&!e.addEventListener,a=navigator.userAgent.toLowerCase(),r=-1!==a.indexOf("webkit"),l=-1!==a.indexOf("chrome"),h=-1!==a.indexOf("phantom"),u=-1!==a.indexOf("android"),c=-1!==a.search("android [23]"),d=-1!==a.indexOf("gecko"),p=typeof orientation!=i+"",m=t.navigator&&t.navigator.msPointerEnabled&&t.navigator.msMaxTouchPoints&&!t.PointerEvent,f=t.PointerEvent&&t.navigator.pointerEnabled&&t.navigator.maxTouchPoints||m,_="devicePixelRatio"in t&&t.devicePixelRatio>1||"matchMedia"in t&&t.matchMedia("(min-resolution:144dpi)")&&t.matchMedia("(min-resolution:144dpi)").matches,g=e.documentElement,v=n&&"transition"in g.style,y="WebKitCSSMatrix"in t&&"m11"in new t.WebKitCSSMatrix&&!c,L="MozPerspective"in g.style,b="OTransition"in g.style,P=!t.L_DISABLE_3D&&(v||y||L||b)&&!h,w=!t.L_NO_TOUCH&&!h&&function(){var t="ontouchstart";if(f||t in g)return!0;var i=e.createElement("div"),n=!1;return i.setAttribute?(i.setAttribute(t,"return;"),"function"==typeof i[t]&&(n=!0),i.removeAttribute(t),i=null,n):!1}();o.Browser={ie:n,ielt9:s,webkit:r,gecko:d&&!r&&!t.opera&&!n,android:u,android23:c,chrome:l,ie3d:v,webkit3d:y,gecko3d:L,opera3d:b,any3d:P,mobile:p,mobileWebkit:p&&r,mobileWebkit3d:p&&y,mobileOpera:p&&t.opera,touch:w,msPointer:m,pointer:f,retina:_}}(),o.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},o.Point.prototype={clone:function(){return new o.Point(this.x,this.y)},add:function(t){return this.clone()._add(o.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(o.point(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},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},distanceTo:function(t){t=o.point(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=o.point(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=o.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+o.Util.formatNum(this.x)+", "+o.Util.formatNum(this.y)+")"}},o.point=function(t,e,n){return t instanceof o.Point?t:o.Util.isArray(t)?new o.Point(t[0],t[1]):t===i||null===t?t:new o.Point(t,e,n)},o.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.Bounds.prototype={extend:function(t){return t=o.point(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new o.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new o.Point(this.min.x,this.max.y)},getTopRight:function(){return new o.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return t="number"==typeof t[0]||t instanceof o.Point?o.point(t):o.bounds(t),t instanceof o.Bounds?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=o.bounds(t);var e=this.min,i=this.max,n=t.min,s=t.max,a=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return a&&r},isValid:function(){return!(!this.min||!this.max)}},o.bounds=function(t,e){return!t||t instanceof o.Bounds?t:new o.Bounds(t,e)},o.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},o.Transformation.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 o.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},o.DomUtil={get:function(t){return"string"==typeof t?e.getElementById(t):t},getStyle:function(t,i){var n=t.style[i];if(!n&&t.currentStyle&&(n=t.currentStyle[i]),(!n||"auto"===n)&&e.defaultView){var o=e.defaultView.getComputedStyle(t,null);n=o?o[i]:null}return"auto"===n?null:n},getViewportOffset:function(t){var i,n=0,s=0,a=t,r=e.body,l=e.documentElement;do{if(n+=a.offsetTop||0,s+=a.offsetLeft||0,n+=parseInt(o.DomUtil.getStyle(a,"borderTopWidth"),10)||0,s+=parseInt(o.DomUtil.getStyle(a,"borderLeftWidth"),10)||0,i=o.DomUtil.getStyle(a,"position"),a.offsetParent===r&&"absolute"===i)break;if("fixed"===i){n+=r.scrollTop||l.scrollTop||0,s+=r.scrollLeft||l.scrollLeft||0;break}if("relative"===i&&!a.offsetLeft){var h=o.DomUtil.getStyle(a,"width"),u=o.DomUtil.getStyle(a,"max-width"),c=a.getBoundingClientRect();("none"!==h||"none"!==u)&&(s+=c.left+a.clientLeft),n+=c.top+(r.scrollTop||l.scrollTop||0);break}a=a.offsetParent}while(a);a=t;do{if(a===r)break;n-=a.scrollTop||0,s-=a.scrollLeft||0,a=a.parentNode}while(a);return new o.Point(s,n)},documentIsLtr:function(){return o.DomUtil._docIsLtrCached||(o.DomUtil._docIsLtrCached=!0,o.DomUtil._docIsLtr="ltr"===o.DomUtil.getStyle(e.body,"direction")),o.DomUtil._docIsLtr},create:function(t,i,n){var o=e.createElement(t);return o.className=i,n&&n.appendChild(o),o},hasClass:function(t,e){if(t.classList!==i)return t.classList.contains(e);var n=o.DomUtil._getClass(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)},addClass:function(t,e){if(t.classList!==i)for(var n=o.Util.splitWords(e),s=0,a=n.length;a>s;s++)t.classList.add(n[s]);else if(!o.DomUtil.hasClass(t,e)){var r=o.DomUtil._getClass(t);o.DomUtil._setClass(t,(r?r+" ":"")+e)}},removeClass:function(t,e){t.classList!==i?t.classList.remove(e):o.DomUtil._setClass(t,o.Util.trim((" "+o.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===i?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===i?t.className:t.className.baseVal},setOpacity:function(t,e){if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}},testProp:function(t){for(var i=e.documentElement.style,n=0;ni||i===e?e:t),new o.LatLng(this.lat,i)}},o.latLng=function(t,e){return t instanceof o.LatLng?t:o.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new o.LatLng(t[0],t[1],t[2]):null:t===i||null===t?t:"object"==typeof t&&"lat"in t?new o.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===i?null:new o.LatLng(t,e)},o.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;o>n;n++)this.extend(i[n])},o.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=o.latLng(t);return t=null!==e?e:o.latLngBounds(t),t instanceof o.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(t.lat,this._southWest.lat),this._southWest.lng=Math.min(t.lng,this._southWest.lng),this._northEast.lat=Math.max(t.lat,this._northEast.lat),this._northEast.lng=Math.max(t.lng,this._northEast.lng)):(this._southWest=new o.LatLng(t.lat,t.lng),this._northEast=new o.LatLng(t.lat,t.lng)):t instanceof o.LatLngBounds&&(this.extend(t._southWest),this.extend(t._northEast)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new o.LatLngBounds(new o.LatLng(e.lat-n,e.lng-s),new o.LatLng(i.lat+n,i.lng+s))},getCenter:function(){return new o.LatLng((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 o.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new o.LatLng(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){t="number"==typeof t[0]||t instanceof o.LatLng?o.latLng(t):o.latLngBounds(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof o.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=o.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),a=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return a&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return t?(t=o.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},o.latLngBounds=function(t,e){return!t||t instanceof o.LatLngBounds?t:new o.LatLngBounds(t,e)},o.Projection={},o.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=t.lng*e,a=n*e;return a=Math.log(Math.tan(Math.PI/4+a/2)),new o.Point(s,a)},unproject:function(t){var e=o.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e; return new o.LatLng(n,i)}},o.Projection.LonLat={project:function(t){return new o.Point(t.lng,t.lat)},unproject:function(t){return new o.LatLng(t.y,t.x)}},o.CRS={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},scale:function(t){return 256*Math.pow(2,t)},getSize:function(t){var e=this.scale(t);return o.point(e,e)}},o.CRS.Simple=o.extend({},o.CRS,{projection:o.Projection.LonLat,transformation:new o.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),o.CRS.EPSG3857=o.extend({},o.CRS,{code:"EPSG:3857",projection:o.Projection.SphericalMercator,transformation:new o.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){var e=this.projection.project(t),i=6378137;return e.multiplyBy(i)}}),o.CRS.EPSG900913=o.extend({},o.CRS.EPSG3857,{code:"EPSG:900913"}),o.CRS.EPSG4326=o.extend({},o.CRS,{code:"EPSG:4326",projection:o.Projection.LonLat,transformation:new o.Transformation(1/360,.5,-1/360,.5)}),o.Map=o.Class.extend({includes:o.Mixin.Events,options:{crs:o.CRS.EPSG3857,fadeAnimation:o.DomUtil.TRANSITION&&!o.Browser.android23,trackResize:!0,markerZoomAnimation:o.DomUtil.TRANSITION&&o.Browser.any3d},initialize:function(t,e){e=o.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=o.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==i&&this.setView(o.latLng(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(e.layers)},setView:function(t,e){return e=e===i?this.getZoom():e,this._resetView(o.latLng(t),this._limitZoom(e)),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=this._limitZoom(t),this)},zoomIn:function(t,e){return this.setZoom(this._zoom+(t||1),e)},zoomOut:function(t,e){return this.setZoom(this._zoom-(t||1),e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),a=t instanceof o.Point?t:this.latLngToContainerPoint(t),r=a.subtract(s).multiplyBy(1-1/n),l=this.containerPointToLatLng(s.add(r));return this.setView(l,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():o.latLngBounds(t);var i=o.point(e.paddingTopLeft||e.padding||[0,0]),n=o.point(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n)),a=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),l=this.project(t.getNorthEast(),s),h=this.unproject(r.add(l).divideBy(2).add(a),s);return s=e&&e.maxZoom?Math.min(e.maxZoom,s):s,this.setView(h,s,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){return this.fire("movestart"),this._rawPanBy(o.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=o.latLngBounds(t),this.options.maxBounds=t,t?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(t,e){var i=this.getCenter(),n=this._limitCenter(i,this._zoom,t);return i.equals(n)?this:this.panTo(n,e)},addLayer:function(t){var e=o.stamp(t);return this._layers[e]?this:(this._layers[e]=t,!t.options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t),this)},removeLayer:function(t){var e=o.stamp(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&this.fire("layerremove",{layer:t}),this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels()),this.options.zoomAnimation&&o.TileLayer&&t instanceof o.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(t){return t?o.stamp(t)in this._layers:!1},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},invalidateSize:function(t){if(!this._loaded)return this;t=o.extend({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),s=i.divideBy(2).round(),a=n.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(t){this._container._leaflet=i}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new o.LatLngBounds(e,i)},getMinZoom:function(){return this.options.minZoom===i?this._layersMinZoom===i?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===i?this._layersMaxZoom===i?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=o.latLngBounds(t);var n,s=this.getMinZoom()-(e?1:0),a=this.getMaxZoom(),r=this.getSize(),l=t.getNorthWest(),h=t.getSouthEast(),u=!0;i=o.point(i||[0,0]);do s++,n=this.project(h,s).subtract(this.project(l,s)).add(i),u=e?n.x=s);return u&&e?null:e?s:s-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new o.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new o.Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t){var e=this.options.crs;return e.scale(t)/e.scale(this._zoom)},getScaleZoom:function(t){return this._zoom+Math.log(t)/Math.LN2},project:function(t,e){return e=e===i?this._zoom:e,this.options.crs.latLngToPoint(o.latLng(t),e)},unproject:function(t,e){return e=e===i?this._zoom:e,this.options.crs.pointToLatLng(o.point(t),e)},layerPointToLatLng:function(t){var e=o.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(o.latLng(t))._round();return e._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return o.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return o.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(o.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o.latLng(t)))},mouseEventToContainerPoint:function(t){return o.DomEvent.getMousePosition(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=o.DomUtil.get(t);if(!e)throw new Error("Map container not found.");if(e._leaflet)throw new Error("Map container is already initialized.");e._leaflet=!0},_initLayout:function(){var t=this._container;o.DomUtil.addClass(t,"leaflet-container"+(o.Browser.touch?" leaflet-touch":"")+(o.Browser.retina?" leaflet-retina":"")+(o.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=o.DomUtil.getStyle(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._mapPane=t.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=t.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),t.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),t.shadowPane=this._createPane("leaflet-shadow-pane"),t.overlayPane=this._createPane("leaflet-overlay-pane"),t.markerPane=this._createPane("leaflet-marker-pane"),t.popupPane=this._createPane("leaflet-popup-pane");var e=" leaflet-zoom-hide";this.options.markerZoomAnimation||(o.DomUtil.addClass(t.markerPane,e),o.DomUtil.addClass(t.shadowPane,e),o.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return o.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){t=t?o.Util.isArray(t)?t:[t]:[];for(var e=0,i=t.length;i>e;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var s=this._zoom!==e;n||(this.fire("movestart"),s&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):o.DomUtil.setPosition(this._mapPane,new o.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var a=!this._loaded;this._loaded=!0,a&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("viewreset",{hard:!i}),this.fire("move"),(s||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){o.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,n=-1/0,o=this._getZoomSpan();for(t in this._zoomBoundLayers){var s=this._zoomBoundLayers[t];isNaN(s.options.minZoom)||(e=Math.min(e,s.options.minZoom)),isNaN(s.options.maxZoom)||(n=Math.max(n,s.options.maxZoom))}t===i?this._layersMaxZoom=this._layersMinZoom=i:(this._layersMaxZoom=n,this._layersMinZoom=e),o!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){if(o.DomEvent){e=e||"on",o.DomEvent[e](this._container,"click",this._onMouseClick,this);var i,n,s=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(i=0,n=s.length;n>i;i++)o.DomEvent[e](this._container,s[i],this._fireMouseEvent,this);this.options.trackResize&&o.DomEvent[e](t,"resize",this._onResize,this)}},_onResize:function(){o.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=o.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(t){!this._loaded||!t._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||o.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!o.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&o.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),s=this.layerPointToLatLng(n);this.fire(e,{latlng:s,layerPoint:n,containerPoint:i,originalEvent:t})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var t=0,e=this._handlers.length;e>t;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,this):this.on("load",t,e),this},_layerAdd:function(t){t.onAdd(this),this.fire("layeradd",{layer:t})},_getMapPanePos:function(){return o.DomUtil.getPosition(this._mapPane)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewTopLeftPoint(i,e).add(this._getMapPanePos());return this.project(t,e)._subtract(n)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),a=new o.Bounds(n.subtract(s),n.add(s)),r=this._getBoundsOffset(a,i,e);return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new o.Bounds(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=this.project(e.getNorthWest(),i).subtract(t.min),s=this.project(e.getSouthEast(),i).subtract(t.max),a=this._rebound(n.x,-s.x),r=this._rebound(n.y,-s.y);return new o.Point(a,r)},_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(),i=this.getMaxZoom();return Math.max(e,Math.min(i,t))}}),o.map=function(t,e){return new o.Map(t,e)},o.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=o.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=this.R_MAJOR,a=this.R_MINOR,r=t.lng*e*s,l=n*e,h=a/s,u=Math.sqrt(1-h*h),c=u*Math.sin(l);c=Math.pow((1-c)/(1+c),.5*u);var d=Math.tan(.5*(.5*Math.PI-l))/c;return l=-s*Math.log(d),new o.Point(r,l)},unproject:function(t){for(var e,i=o.LatLng.RAD_TO_DEG,n=this.R_MAJOR,s=this.R_MINOR,a=t.x*i/n,r=s/n,l=Math.sqrt(1-r*r),h=Math.exp(-t.y/n),u=Math.PI/2-2*Math.atan(h),c=15,d=1e-7,p=c,m=.1;Math.abs(m)>d&&--p>0;)e=l*Math.sin(u),m=Math.PI/2-2*Math.atan(h*Math.pow((1-e)/(1+e),.5*l))-u,u+=m;return new o.LatLng(u*i,a)}},o.CRS.EPSG3395=o.extend({},o.CRS,{code:"EPSG:3395",projection:o.Projection.Mercator,transformation:function(){var t=o.Projection.Mercator,e=t.R_MAJOR,i=.5/(Math.PI*e);return new o.Transformation(i,.5,-i,.5)}()}),o.TileLayer=o.Class.extend({includes:o.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:o.Browser.mobile,updateWhenIdle:o.Browser.mobile},initialize:function(t,e){e=o.setOptions(this,e),e.detectRetina&&o.Browser.retina&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,e.minZoom>0&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=o.latLngBounds(e.bounds)),this._url=t;var i=this.options.subdomains;"string"==typeof i&&(this.options.subdomains=i.split(""))},onAdd:function(t){this._map=t,this._animated=t._zoomAnimated,this._initContainer(),t.on({viewreset:this._reset,moveend:this._update},this),this._animated&&t.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=o.Util.limitExecByInterval(this._update,150,this),t.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this._container.parentNode.removeChild(this._container),t.off({viewreset:this._reset,moveend:this._update},this),this._animated&&t.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||t.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var t=this._map._panes.tilePane;return this._container&&(t.appendChild(this._container),this._setAutoZIndex(t,Math.max)),this},bringToBack:function(){var t=this._map._panes.tilePane;return this._container&&(t.insertBefore(this._container,t.firstChild),this._setAutoZIndex(t,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==i&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,a=-e(1/0,-1/0);for(n=0,o=s.length;o>n;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(a=e(a,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(a)?a:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(o.Browser.ielt9)for(t in e)o.DomUtil.setOpacity(e[t],this.options.opacity);else o.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=o.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=o.DomUtil.create("div",e,this._container),this._tileContainer=o.DomUtil.create("div",e,this._container)}else this._tileContainer=this._container;t.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(t){for(var e in this._tiles)this.fire("tileunload",{tile:this._tiles[e]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&t&&t.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var t=this._map,e=t.getZoom()+this.options.zoomOffset,i=this.options.maxNativeZoom,n=this.options.tileSize;return i&&e>i&&(n=Math.round(t.getZoomScale(e)/t.getZoomScale(i)*n)),n},_update:function(){if(this._map){var t=this._map,e=t.getPixelBounds(),i=t.getZoom(),n=this._getTileSize();if(!(i>this.options.maxZoom||in;n++)this._addTile(a[n],h);this._tileContainer.appendChild(h)}},_tileShouldBeLoaded:function(t){if(t.x+":"+t.y in this._tiles)return!1;var e=this.options;if(!e.continuousWorld){var i=this._getWrapTileNum();if(e.noWrap&&(t.x<0||t.x>=i.x)||t.y<0||t.y>=i.y)return!1}if(e.bounds){var n=e.tileSize,o=t.multiplyBy(n),s=o.add([n,n]),a=this._map.unproject(o),r=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(a=a.wrap(),r=r.wrap()),!e.bounds.intersects([a,r]))return!1}return!0},_removeOtherTiles:function(t){var e,i,n,o;for(o in this._tiles)e=o.split(":"),i=parseInt(e[0],10),n=parseInt(e[1],10),(it.max.x||nt.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(o.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),o.Browser.android||(e.onload=null,e.src=o.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();o.DomUtil.setPosition(n,i,o.Browser.chrome),this._tiles[t.x+":"+t.y]=n,this._loadTile(n,t),n.parentNode!==this._tileContainer&&e.appendChild(n)},_getZoomForUrl:function(){var t=this.options,e=this._map.getZoom();return t.zoomReverse&&(e=t.maxZoom-e),e+=t.zoomOffset,t.maxNativeZoom?Math.min(e,t.maxNativeZoom):e},_getTilePos:function(t){var e=this._map.getPixelOrigin(),i=this._getTileSize();return t.multiplyBy(i).subtract(e)},getTileUrl:function(t){return o.Util.template(this._url,o.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){var t=this._map.options.crs,e=t.getSize(this._map.getZoom());return e.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(t){var e=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(t.x=(t.x%e.x+e.x)%e.x),this.options.tms&&(t.y=e.y-t.y-1),t.z=this._getZoomForUrl()},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=o.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=o.Util.falseFn,o.Browser.ielt9&&this.options.opacity!==i&&o.DomUtil.setOpacity(t,this.options.opacity),o.Browser.mobileWebkit3d&&(t.style.WebkitBackfaceVisibility="hidden"),t},_loadTile:function(t,e){t._layer=this,t.onload=this._tileOnLoad,t.onerror=this._tileOnError,this._adjustTilePoint(e),t.src=this.getTileUrl(e),this.fire("tileloadstart",{tile:t,url:t.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&o.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(o.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==o.Util.emptyImageUrl&&(o.DomUtil.addClass(this,"leaflet-tile-loaded"),t.fire("tileload",{tile:this,url:this.src})),t._tileLoaded()},_tileOnError:function(){var t=this._layer;t.fire("tileerror",{tile:this,url:this.src});var e=t.options.errorTileUrl;e&&(this.src=e),t._tileLoaded()}}),o.tileLayer=function(t,e){return new o.TileLayer(t,e)},o.TileLayer.WMS=o.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(t,e){this._url=t;var i=o.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;i.width=i.height=e.detectRetina&&o.Browser.retina?2*n:n;for(var s in e)this.options.hasOwnProperty(s)||"crs"===s||(i[s]=e[s]);this.wmsParams=i,o.setOptions(this,e)},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,o.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),s=n.add([i,i]),a=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(s,t.z)),l=this._wmsVersion>=1.3&&this._crs===o.CRS.EPSG4326?[r.y,a.x,a.y,r.x].join(","):[a.x,r.y,r.x,a.y].join(","),h=o.Util.template(this._url,{s:this._getSubdomain(t)});return h+o.Util.getParamString(this.wmsParams,h,!0)+"&BBOX="+l},setParams:function(t,e){return o.extend(this.wmsParams,t),e||this.redraw(),this}}),o.tileLayer.wms=function(t,e){return new o.TileLayer.WMS(t,e)},o.TileLayer.Canvas=o.TileLayer.extend({options:{async:!1},initialize:function(t){o.setOptions(this,t)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var t in this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=o.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=o.Util.falseFn,t},_loadTile:function(t,e){t._layer=this,t._tilePoint=e,this._redrawTile(t),this.options.async||this.tileDrawn(t)},drawTile:function(){},tileDrawn:function(t){this._tileOnLoad.call(t)}}),o.tileLayer.canvas=function(t){return new o.TileLayer.Canvas(t)},o.ImageOverlay=o.Class.extend({includes:o.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=o.latLngBounds(e),o.setOptions(this,i)},onAdd:function(t){this._map=t,this._image||this._initImage(),t._panes.overlayPane.appendChild(this._image),t.on("viewreset",this._reset,this),t.options.zoomAnimation&&o.Browser.any3d&&t.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(t){t.getPanes().overlayPane.removeChild(this._image),t.off("viewreset",this._reset,this),t.options.zoomAnimation&&t.off("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var t=this._map._panes.overlayPane;return this._image&&t.insertBefore(this._image,t.firstChild),this},setUrl:function(t){this._url=t,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=o.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&o.Browser.any3d?o.DomUtil.addClass(this._image,"leaflet-zoom-animated"):o.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),o.extend(this._image,{galleryimg:"no",onselectstart:o.Util.falseFn,onmousemove:o.Util.falseFn,onload:o.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),s=this._bounds.getNorthWest(),a=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(s,t.zoom,t.center),l=e._latLngToNewLayerPoint(a,t.zoom,t.center)._subtract(r),h=r._add(l._multiplyBy(.5*(1-1/n)));i.style[o.DomUtil.TRANSFORM]=o.DomUtil.getTranslateString(h)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);o.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){o.DomUtil.setOpacity(this._image,this.options.opacity)}}),o.imageOverlay=function(t,e,i){return new o.ImageOverlay(t,e,i)},o.Icon=o.Class.extend({options:{className:""},initialize:function(t){o.setOptions(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n;return n=e&&"IMG"===e.tagName?this._createImg(i,e):this._createImg(i),this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i,n=this.options,s=o.point(n[e+"Size"]);i=o.point("shadow"===e?n.shadowAnchor||n.iconAnchor:n.iconAnchor),!i&&s&&(i=s.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,i){return i=i||e.createElement("img"),i.src=t,i},_getIconUrl:function(t){return o.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),o.icon=function(t){return new o.Icon(t)},o.Icon.Default=o.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(t){var e=t+"Url";if(this.options[e])return this.options[e];o.Browser.retina&&"icon"===t&&(t+="-2x");var i=o.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),o.Icon.Default.imagePath=function(){var t,i,n,o,s,a=e.getElementsByTagName("script"),r=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,i=a.length;i>t;t++)if(n=a[t].src,o=n.match(r))return s=n.split(r)[0],(s?s+"/":"")+"images"}(),o.Marker=o.Class.extend({includes:o.Mixin.Events,options:{icon:new o.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){o.setOptions(this,e),this._latlng=o.latLng(t)},onAdd:function(t){this._map=t,t.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),t.options.zoomAnimation&&t.options.markerZoomAnimation&&t.on("zoomanim",this._animateZoom,this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),t.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=o.latLng(t),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update(),this},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){if(this._icon){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation,n=i?"leaflet-zoom-animated":"leaflet-zoom-hide",s=t.icon.createIcon(this._icon),a=!1;s!==this._icon&&(this._icon&&this._removeIcon(),a=!0,t.title&&(s.title=t.title),t.alt&&(s.alt=t.alt)),o.DomUtil.addClass(s,n),t.keyboard&&(s.tabIndex="0"),this._icon=s,this._initInteraction(),t.riseOnHover&&o.DomEvent.on(s,"mouseover",this._bringToFront,this).on(s,"mouseout",this._resetZIndex,this);var r=t.icon.createShadow(this._shadow),l=!1;r!==this._shadow&&(this._removeShadow(),l=!0),r&&o.DomUtil.addClass(r,n),this._shadow=r,t.opacity<1&&this._updateOpacity();var h=this._map._panes;a&&h.markerPane.appendChild(this._icon),r&&l&&h.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&o.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(t){o.DomUtil.setPosition(this._icon,t),this._shadow&&o.DomUtil.setPosition(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){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.clickable){var t=this._icon,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];o.DomUtil.addClass(t,"leaflet-clickable"),o.DomEvent.on(t,"click",this._onMouseClick,this),o.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;is?(e.height=s+"px",o.DomUtil.addClass(t,a)):o.DomUtil.removeClass(t,a),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=o.point(this.options.offset);e&&o.DomUtil.setPosition(this._container,t),this._containerBottom=-i.y-(e?0:t.y),this._containerLeft=-Math.round(this._containerWidth/2)+i.x+(e?0:t.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);o.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new o.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(o.DomUtil.getPosition(this._container));var s=t.layerPointToContainerPoint(n),a=o.point(this.options.autoPanPadding),r=o.point(this.options.autoPanPaddingTopLeft||a),l=o.point(this.options.autoPanPaddingBottomRight||a),h=t.getSize(),u=0,c=0;s.x+i+l.x>h.x&&(u=s.x+i-h.x+l.x),s.x-u-r.x<0&&(u=s.x-r.x),s.y+e+l.y>h.y&&(c=s.y+e-h.y+l.y),s.y-c-r.y<0&&(c=s.y-r.y),(u||c)&&t.fire("autopanstart").panBy([u,c])}},_onCloseButtonClick:function(t){this._close(),o.DomEvent.stop(t)}}),o.popup=function(t,e){return new o.Popup(t,e)},o.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof o.Popup)){var n=t;t=new o.Popup(i).setLatLng(e).setContent(n)}return t._isOpen=!0,this._popup=t,this.addLayer(t)},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&(this.removeLayer(t),t._isOpen=!1),this}}),o.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(t,e){var i=o.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(o.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=o.extend({offset:i},e),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),this._popupHandlersAdded=!0),t instanceof o.Popup?(o.setOptions(t,e),this._popup=t):this._popup=new o.Popup(e,this).setContent(t),this},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(t){this._popup.setLatLng(t.latlng)}}),o.LayerGroup=o.Class.extend({initialize:function(t){this._layers={};var e,i;if(t)for(e=0,i=t.length;i>e;e++)this.addLayer(t[e])},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){return t?t in this._layers||this.getLayerId(t)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)i=this._layers[e],i[t]&&i[t].apply(i,n);return this},onAdd:function(t){this._map=t,this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t),this._map=null},addTo:function(t){return t.addLayer(this),this},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];for(var e in this._layers)t.push(this._layers[e]);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o.stamp(t)}}),o.layerGroup=function(t){return new o.LayerGroup(t)},o.FeatureGroup=o.LayerGroup.extend({includes:o.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(t){return this.hasLayer(t)?this:("on"in t&&t.on(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.addLayer.call(this,t),this._popupContent&&t.bindPopup&&t.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.off(o.FeatureGroup.EVENTS,this._propagateEvent,this),o.LayerGroup.prototype.removeLayer.call(this,t),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:t})):this},bindPopup:function(t,e){return this._popupContent=t,this._popupOptions=e,this.invoke("bindPopup",t,e)},openPopup:function(t){for(var e in this._layers){this._layers[e].openPopup(t);break}return 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 o.LatLngBounds;return this.eachLayer(function(e){t.extend(e instanceof o.Marker?e.getLatLng():e.getBounds())}),t},_propagateEvent:function(t){t=o.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),o.featureGroup=function(t){return new o.FeatureGroup(t)},o.Path=o.Class.extend({includes:[o.Mixin.Events],statics:{CLIP_PADDING:function(){var e=o.Browser.mobile?1280:2e3,i=(e/Math.max(t.outerWidth,t.outerHeight)-1)/2;return Math.max(0,Math.min(.5,i))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(t){o.setOptions(this,t)},onAdd:function(t){this._map=t,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),t.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(t){return t.addLayer(this),this},onRemove:function(t){t._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,o.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),t.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(t){return o.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),o.Map.include({_updatePathViewport:function(){var t=o.Path.CLIP_PADDING,e=this.getSize(),i=o.DomUtil.getPosition(this._mapPane),n=i.multiplyBy(-1)._subtract(e.multiplyBy(t)._round()),s=n.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new o.Bounds(n,s)}}),o.Path.SVG_NS="http://www.w3.org/2000/svg",o.Browser.svg=!(!e.createElementNS||!e.createElementNS(o.Path.SVG_NS,"svg").createSVGRect),o.Path=o.Path.extend({statics:{SVG:o.Browser.svg},bringToFront:function(){var t=this._map._pathRoot,e=this._container;return e&&t.lastChild!==e&&t.appendChild(e),this},bringToBack:function(){var t=this._map._pathRoot,e=this._container,i=t.firstChild;return e&&i!==e&&t.insertBefore(e,i),this},getPathString:function(){},_createElement:function(t){return e.createElementNS(o.Path.SVG_NS,t)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&o.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var t=this.getPathString();t||(t="M0 0"),this._path.setAttribute("d",t)},_initEvents:function(){if(this.options.clickable){(o.Browser.svg||!o.Browser.vml)&&o.DomUtil.addClass(this._path,"leaflet-clickable"),o.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(n){return!1}}(),o.Path=o.Browser.svg||!o.Browser.vml?o.Path:o.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return e.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return e.createElement("')}}catch(t){return function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");o.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&o.DomUtil.addClass(t,"leaflet-clickable"),t.coordsize="1 1",this._path=this._createElement("path"),t.appendChild(this._path),this._map._pathRoot.appendChild(t)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var t=this._stroke,e=this._fill,i=this.options,n=this._container;n.stroked=i.stroke,n.filled=i.fill,i.stroke?(t||(t=this._stroke=this._createElement("stroke"),t.endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,t.dashStyle=i.dashArray?o.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):"",i.lineCap&&(t.endcap=i.lineCap.replace("butt","flat")),i.lineJoin&&(t.joinstyle=i.lineJoin)):t&&(n.removeChild(t),this._stroke=null),i.fill?(e||(e=this._fill=this._createElement("fill"),n.appendChild(e)),e.color=i.fillColor||i.color,e.opacity=i.fillOpacity):e&&(n.removeChild(e),this._fill=null)},_updatePath:function(){var t=this._container.style;t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),o.Map.include(o.Browser.svg||!o.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=e.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),o.Browser.canvas=function(){return!!e.createElement("canvas").getContext}(),o.Path=o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?o.Path:o.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return o.setOptions(this,t),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(t){t.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this._map=null},_requestUpdate:function(){this._map&&!o.Path._updateRequest&&(o.Path._updateRequest=o.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){o.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var t=this.options;t.stroke&&(this._ctx.lineWidth=t.weight,this._ctx.strokeStyle=t.color),t.fill&&(this._ctx.fillStyle=t.fillColor||t.color)},_drawPath:function(){var t,e,i,n,s,a;for(this._ctx.beginPath(),t=0,i=this._parts.length;i>t;t++){for(e=0,n=this._parts[t].length;n>e;e++)s=this._parts[t][e],a=(0===e?"move":"line")+"To",this._ctx[a](s.x,s.y);this instanceof o.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var t=this._ctx,e=this.options;this._drawPath(),t.save(),this._updateStyle(),e.fill&&(t.globalAlpha=e.fillOpacity,t.fill()),e.stroke&&(t.globalAlpha=e.opacity,t.stroke()),t.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onClick,this))},_onClick:function(t){this._containsPoint(t.layerPoint)&&this.fire("click",t)},_onMouseMove:function(t){this._map&&!this._map._animatingZoom&&(this._containsPoint(t.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",t)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",t)))}}),o.Map.include(o.Path.SVG&&!t.L_PREFER_CANVAS||!o.Browser.canvas?{}:{_initPathRoot:function(){var t,i=this._pathRoot;i||(i=this._pathRoot=e.createElement("canvas"),i.style.position="absolute",t=this._canvasCtx=i.getContext("2d"),t.lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(i),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max.subtract(e),n=this._pathRoot;o.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),o.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),t=this._simplifyDP(t,i)},pointToSegmentDistance:function(t,e,i){return Math.sqrt(this._sqClosestPointOnSegment(t,e,i,!0))},closestPointOnSegment:function(t,e,i){return this._sqClosestPointOnSegment(t,e,i)},_simplifyDP:function(t,e){var n=t.length,o=typeof Uint8Array!=i+""?Uint8Array:Array,s=new o(n);s[0]=s[n-1]=1,this._simplifyDPStep(t,s,e,0,n-1);var a,r=[];for(a=0;n>a;a++)s[a]&&r.push(t[a]);return r},_simplifyDPStep:function(t,e,i,n,o){var s,a,r,l=0;for(a=n+1;o-1>=a;a++)r=this._sqClosestPointOnSegment(t[a],t[n],t[o],!0),r>l&&(s=a,l=r);l>i&&(e[s]=1,this._simplifyDPStep(t,e,i,n,s),this._simplifyDPStep(t,e,i,s,o))},_reducePoints:function(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;s>n;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return s-1>o&&i.push(t[s-1]),i},clipSegment:function(t,e,i,n){var o,s,a,r=n?this._lastCode:this._getBitCode(t,i),l=this._getBitCode(e,i);for(this._lastCode=l;;){if(!(r|l))return[t,e];if(r&l)return!1;o=r||l,s=this._getEdgeIntersection(t,e,o,i),a=this._getBitCode(s,i),o===r?(t=s,r=a):(e=s,l=a)}},_getEdgeIntersection:function(t,e,i,n){var s=e.x-t.x,a=e.y-t.y,r=n.min,l=n.max;return 8&i?new o.Point(t.x+s*(l.y-t.y)/a,l.y):4&i?new o.Point(t.x+s*(r.y-t.y)/a,r.y):2&i?new o.Point(l.x,t.y+a*(l.x-t.x)/s):1&i?new o.Point(r.x,t.y+a*(r.x-t.x)/s):void 0},_getBitCode:function(t,e){var i=0;return t.xe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n},_sqClosestPointOnSegment:function(t,e,i,n){var s,a=e.x,r=e.y,l=i.x-a,h=i.y-r,u=l*l+h*h;return u>0&&(s=((t.x-a)*l+(t.y-r)*h)/u,s>1?(a=i.x,r=i.y):s>0&&(a+=l*s,r+=h*s)),l=t.x-a,h=t.y-r,n?l*l+h*h:new o.Point(a,r)}},o.Polyline=o.Path.extend({initialize:function(t,e){o.Path.prototype.initialize.call(this,e),this._latlngs=this._convertLatLngs(t)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var t=0,e=this._latlngs.length;e>t;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";e>t;t++)i+=this._getPathPartStr(this._parts[t]);return i},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._latlngs=this._convertLatLngs(t),this.redraw()},addLatLng:function(t){return this._latlngs.push(o.latLng(t)),this.redraw()},spliceLatLngs:function(){var t=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),t},closestLayerPoint:function(t){for(var e,i,n=1/0,s=this._parts,a=null,r=0,l=s.length;l>r;r++)for(var h=s[r],u=1,c=h.length;c>u;u++){e=h[u-1],i=h[u];var d=o.LineUtil._sqClosestPointOnSegment(t,e,i,!0);n>d&&(n=d,a=o.LineUtil._sqClosestPointOnSegment(t,e,i))}return a&&(a.distance=Math.sqrt(n)),a},getBounds:function(){return new o.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,s=e?t:[];for(i=0,n=t.length;n>i;i++){if(o.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;s[i]=o.latLng(t[i])}return s},_initEvents:function(){o.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=o.Path.VML,n=0,s=t.length,a="";s>n;n++)e=t[n],i&&e._round(),a+=(n?"L":"M")+e.x+" "+e.y;return a},_clipPoints:function(){var t,e,i,n=this._originalPoints,s=n.length;if(this.options.noClip)return void(this._parts=[n]);this._parts=[];var a=this._parts,r=this._map._pathViewport,l=o.LineUtil;for(t=0,e=0;s-1>t;t++)i=l.clipSegment(n[t],n[t+1],r,t),i&&(a[e]=a[e]||[],a[e].push(i[0]),(i[1]!==n[t+1]||t===s-2)&&(a[e].push(i[1]),e++))},_simplifyPoints:function(){for(var t=this._parts,e=o.LineUtil,i=0,n=t.length;n>i;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),o.Path.prototype._updatePath.call(this))}}),o.polyline=function(t,e){return new o.Polyline(t,e)},o.PolyUtil={},o.PolyUtil.clipPolygon=function(t,e){var i,n,s,a,r,l,h,u,c,d=[1,4,2,8],p=o.LineUtil;for(n=0,h=t.length;h>n;n++)t[n]._code=p._getBitCode(t[n],e);for(a=0;4>a;a++){for(u=d[a],i=[],n=0,h=t.length,s=h-1;h>n;s=n++)r=t[n],l=t[s],r._code&u?l._code&u||(c=p._getEdgeIntersection(l,r,u,e),c._code=p._getBitCode(c,e),i.push(c)):(l._code&u&&(c=p._getEdgeIntersection(l,r,u,e),c._code=p._getBitCode(c,e),i.push(c)),i.push(r));t=i}return t},o.Polygon=o.Polyline.extend({options:{fill:!0},initialize:function(t,e){o.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0])for(this._latlngs=this._convertLatLngs(t[0]),this._holes=t.slice(1),e=0,i=this._holes.length;i>e;e++)n=this._holes[e]=this._convertLatLngs(this._holes[e]),n[0].equals(n[n.length-1])&&n.pop();t=this._latlngs,t.length>=2&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){if(o.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var t,e,i,n;for(t=0,i=this._holes.length;i>t;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;n>e;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])}},setLatLngs:function(t){return t&&o.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):o.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;n>i;i++){var s=o.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);s.length&&e.push(s)}this._parts=e}},_getPathPartStr:function(t){var e=o.Polyline.prototype._getPathPartStr.call(this,t);return e+(o.Browser.svg?"z":"x")}}),o.polygon=function(t,e){return new o.Polygon(t,e)},function(){function t(t){return o.FeatureGroup.extend({initialize:function(t,e){this._layers={},this._options=e,this.setLatLngs(t)},setLatLngs:function(e){var i=0,n=e.length;for(this.eachLayer(function(t){n>i?t.setLatLngs(e[i++]):this.removeLayer(t)},this);n>i;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var t=[];return this.eachLayer(function(e){t.push(e.getLatLngs())}),t}})}o.MultiPolyline=t(o.Polyline),o.MultiPolygon=t(o.Polygon),o.multiPolyline=function(t,e){return new o.MultiPolyline(t,e)},o.multiPolygon=function(t,e){return new o.MultiPolygon(t,e)}}(),o.Rectangle=o.Polygon.extend({initialize:function(t,e){o.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=o.latLngBounds(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),o.rectangle=function(t,e){return new o.Rectangle(t,e)},o.Circle=o.Path.extend({initialize:function(t,e,i){o.Path.prototype.initialize.call(this,i),this._latlng=o.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=o.latLng(t),this.redraw()},setRadius:function(t){return this._mRadius=t,this.redraw()},projectLatlngs:function(){var t=this._getLngRadius(),e=this._latlng,i=this._map.latLngToLayerPoint([e.lat,e.lng-t]);this._point=this._map.latLngToLayerPoint(e),this._radius=Math.max(this._point.x-i.x,1)},getBounds:function(){var t=this._getLngRadius(),e=this._mRadius/40075017*360,i=this._latlng;return new o.LatLngBounds([i.lat-e,i.lng-t],[i.lat+e,i.lng+t])},getLatLng:function(){return this._latlng},getPathString:function(){var t=this._point,e=this._radius;return this._checkIfEmpty()?"":o.Browser.svg?"M"+t.x+","+(t.y-e)+"A"+e+","+e+",0,1,1,"+(t.x-.1)+","+(t.y-e)+" z":(t._round(),e=Math.round(e),"AL "+t.x+","+t.y+" "+e+","+e+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(o.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var t=this._map._pathViewport,e=this._radius,i=this._point;return i.x-e>t.max.x||i.y-e>t.max.y||i.x+ei;i++)for(h=this._parts[i],n=0,r=h.length,s=r-1;r>n;s=n++)if((e||0!==n)&&(l=o.LineUtil.pointToSegmentDistance(t,h[s],h[n]),u>=l))return!0;return!1}}:{}),o.Polygon.include(o.Path.CANVAS?{_containsPoint:function(t){var e,i,n,s,a,r,l,h,u=!1;if(o.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(s=0,l=this._parts.length;l>s;s++)for(e=this._parts[s],a=0,h=e.length,r=h-1;h>a;r=a++)i=e[a],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u}}:{}),o.Circle.include(o.Path.CANVAS?{_drawPath:function(){var t=this._point;this._ctx.beginPath(),this._ctx.arc(t.x,t.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(t){var e=this._point,i=this.options.stroke?this.options.weight/2:0;return t.distanceTo(e)<=this._radius+i}}:{}),o.CircleMarker.include(o.Path.CANVAS?{_updateStyle:function(){o.Path.prototype._updateStyle.call(this)}}:{}),o.GeoJSON=o.FeatureGroup.extend({initialize:function(t,e){o.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=o.Util.isArray(t)?t:t.features;if(s){for(e=0,i=s.length;i>e;e++)n=s[e],(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(s[e]);return this}var a=this.options;if(!a.filter||a.filter(t)){var r=o.GeoJSON.geometryToLayer(t,a.pointToLayer,a.coordsToLatLng,a);return r.feature=o.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),a.onEachFeature&&a.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(o.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(t){this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),o.extend(o.GeoJSON,{geometryToLayer:function(t,e,i,n){var s,a,r,l,h="Feature"===t.type?t.geometry:t,u=h.coordinates,c=[];switch(i=i||this.coordsToLatLng,h.type){case"Point":return s=i(u),e?e(t,s):new o.Marker(s);case"MultiPoint":for(r=0,l=u.length;l>r;r++)s=i(u[r]),c.push(e?e(t,s):new o.Marker(s)); return new o.FeatureGroup(c);case"LineString":return a=this.coordsToLatLngs(u,0,i),new o.Polyline(a,n);case"Polygon":if(2===u.length&&!u[1].length)throw new Error("Invalid GeoJSON object.");return a=this.coordsToLatLngs(u,1,i),new o.Polygon(a,n);case"MultiLineString":return a=this.coordsToLatLngs(u,1,i),new o.MultiPolyline(a,n);case"MultiPolygon":return a=this.coordsToLatLngs(u,2,i),new o.MultiPolygon(a,n);case"GeometryCollection":for(r=0,l=h.geometries.length;l>r;r++)c.push(this.geometryToLayer({geometry:h.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new o.FeatureGroup(c);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new o.LatLng(t[1],t[0],t[2])},coordsToLatLngs:function(t,e,i){var n,o,s,a=[];for(o=0,s=t.length;s>o;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),a.push(n);return a},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==i&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;n>i;i++)e.push(o.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?o.extend({},t.feature,{geometry:e}):o.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var a={toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"Point",coordinates:o.GeoJSON.latLngToCoords(this.getLatLng())})}};o.Marker.include(a),o.Circle.include(a),o.CircleMarker.include(a),o.Polyline.include({toGeoJSON:function(){return o.GeoJSON.getFeature(this,{type:"LineString",coordinates:o.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),o.Polygon.include({toGeoJSON:function(){var t,e,i,n=[o.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;e>t;t++)i=o.GeoJSON.latLngsToCoords(this._holes[t]),i.push(i[0]),n.push(i);return o.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function t(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),o.GeoJSON.getFeature(this,{type:t,coordinates:e})}}o.MultiPolyline.include({toGeoJSON:t("MultiLineString")}),o.MultiPolygon.include({toGeoJSON:t("MultiPolygon")}),o.LayerGroup.include({toGeoJSON:function(){var e,i=this.feature&&this.feature.geometry,n=[];if(i&&"MultiPoint"===i.type)return t("MultiPoint").call(this);var s=i&&"GeometryCollection"===i.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),n.push(s?e.geometry:o.GeoJSON.asFeature(e)))}),s?o.GeoJSON.getFeature(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}})}(),o.geoJson=function(t,e){return new o.GeoJSON(t,e)},o.DomEvent={addListener:function(t,e,i,n){var s,a,r,l=o.stamp(i),h="_leaflet_"+e+l;return t[h]?this:(s=function(e){return i.call(n||t,e||o.DomEvent._getEvent())},o.Browser.pointer&&0===e.indexOf("touch")?this.addPointerListener(t,e,s,l):(o.Browser.touch&&"dblclick"===e&&this.addDoubleTapListener&&this.addDoubleTapListener(t,s,l),"addEventListener"in t?"mousewheel"===e?(t.addEventListener("DOMMouseScroll",s,!1),t.addEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?(a=s,r="mouseenter"===e?"mouseover":"mouseout",s=function(e){return o.DomEvent._checkMouse(t,e)?a(e):void 0},t.addEventListener(r,s,!1)):"click"===e&&o.Browser.android?(a=s,s=function(t){return o.DomEvent._filterClick(t,a)},t.addEventListener(e,s,!1)):t.addEventListener(e,s,!1):"attachEvent"in t&&t.attachEvent("on"+e,s),t[h]=s,this))},removeListener:function(t,e,i){var n=o.stamp(i),s="_leaflet_"+e+n,a=t[s];return a?(o.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):o.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",a,!1),t.removeEventListener(e,a,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1):t.removeEventListener(e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a),t[s]=null,this):this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,o.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=o.DomEvent.stopPropagation;return o.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=o.DomEvent.stopPropagation,i=o.Draggable.START.length-1;i>=0;i--)o.DomEvent.on(t,o.Draggable.START[i],e);return o.DomEvent.on(t,"click",o.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return o.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){if(!e)return new o.Point(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new o.Point(t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop)},getWheelDelta:function(t){var e=0;return t.wheelDelta&&(e=t.wheelDelta/120),t.detail&&(e=-t.detail/3),e},_skipEvents:{},_fakeStop:function(t){o.DomEvent._skipEvents[t.type]=!0},_skipped:function(t){var e=this._skipEvents[t.type];return this._skipEvents[t.type]=!1,e},_checkMouse:function(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(n){return!1}return i!==t},_getEvent:function(){var e=t.event;if(!e)for(var i=arguments.callee.caller;i&&(e=i.arguments[0],!e||t.Event!==e.constructor);)i=i.caller;return e},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=o.DomEvent._lastClick&&i-o.DomEvent._lastClick;return n&&n>100&&1e3>n||t.target._simulatedClick&&!t._simulated?void o.DomEvent.stop(t):(o.DomEvent._lastClick=i,e(t))}},o.DomEvent.on=o.DomEvent.addListener,o.DomEvent.off=o.DomEvent.removeListener,o.Draggable=o.Class.extend({includes:o.Mixin.Events,statics:{START:o.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(t,e){this._element=t,this._dragStartTarget=e||t},enable:function(){if(!this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.on(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=o.Draggable.START.length-1;t>=0;t--)o.DomEvent.off(this._dragStartTarget,o.Draggable.START[t],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(t){if(this._moved=!1,!(t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(o.DomEvent.stopPropagation(t),o.Draggable._disabled||(o.DomUtil.disableImageDrag(),o.DomUtil.disableTextSelection(),this._moving)))){var i=t.touches?t.touches[0]:t;this._startPoint=new o.Point(i.clientX,i.clientY),this._startPos=this._newPos=o.DomUtil.getPosition(this._element),o.DomEvent.on(e,o.Draggable.MOVE[t.type],this._onMove,this).on(e,o.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&t.touches.length>1)return void(this._moved=!0);var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new o.Point(i.clientX,i.clientY),s=n.subtract(this._startPoint);(s.x||s.y)&&(o.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=o.DomUtil.getPosition(this._element).subtract(s),o.DomUtil.addClass(e.body,"leaflet-dragging"),o.DomUtil.addClass(t.target||t.srcElement,"leaflet-drag-target")),this._newPos=this._startPos.add(s),this._moving=!0,o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget))},_updatePosition:function(){this.fire("predrag"),o.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(t){o.DomUtil.removeClass(e.body,"leaflet-dragging"),o.DomUtil.removeClass(t.target||t.srcElement,"leaflet-drag-target");for(var i in o.Draggable.MOVE)o.DomEvent.off(e,o.Draggable.MOVE[i],this._onMove).off(e,o.Draggable.END[i],this._onUp);o.DomUtil.enableImageDrag(),o.DomUtil.enableTextSelection(),this._moved&&this._moving&&(o.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),o.Handler=o.Class.extend({initialize:function(t){this._map=t},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),o.Map.mergeOptions({dragging:!0,inertia:!o.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:o.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),o.Map.Drag=o.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new o.Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),t.on("viewreset",this._onViewReset,this),t.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var t=this._map;t._panAnim&&t._panAnim.stop(),t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var t=this._lastTime=+new Date,e=this._lastPos=this._draggable._newPos;this._positions.push(e),this._times.push(t),t-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var t=this._map.getSize()._divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,a=Math.abs(o+i)i.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),s)e.fire("moveend");else{var a=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+n-this._times[0])/1e3,l=i.easeLinearity,h=a.multiplyBy(l/r),u=h.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,u),d=h.multiplyBy(c/u),p=c/(i.inertiaDeceleration*l),m=d.multiplyBy(-p/2).round();m.x&&m.y?(m=e._limitOffset(m,e.options.maxBounds),o.Util.requestAnimFrame(function(){e.panBy(m,{duration:p,easeLinearity:l,noMoveStart:!0})})):e.fire("moveend")}}}),o.Map.addInitHook("addHandler","dragging",o.Map.Drag),o.Map.mergeOptions({doubleClickZoom:!0}),o.Map.DoubleClickZoom=o.Handler.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,i=e.getZoom()+(t.originalEvent.shiftKey?-1:1);"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}}),o.Map.addInitHook("addHandler","doubleClickZoom",o.Map.DoubleClickZoom),o.Map.mergeOptions({scrollWheelZoom:!0}),o.Map.ScrollWheelZoom=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),o.DomEvent.on(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault),this._delta=0},removeHooks:function(){o.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),o.DomEvent.off(this._map._container,"MozMousePixelScroll",o.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=o.DomEvent.getWheelDelta(t);this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o.bind(this._performZoom,this),i),o.DomEvent.preventDefault(t),o.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=e>0?Math.ceil(e):Math.floor(e),e=Math.max(Math.min(e,4),-4),e=t._limitZoom(i+e)-i,this._delta=0,this._startTime=null,e&&("center"===t.options.scrollWheelZoom?t.setZoom(i+e):t.setZoomAround(this._lastMousePos,i+e))}}),o.Map.addInitHook("addHandler","scrollWheelZoom",o.Map.ScrollWheelZoom),o.extend(o.DomEvent,{_touchstart:o.Browser.msPointer?"MSPointerDown":o.Browser.pointer?"pointerdown":"touchstart",_touchend:o.Browser.msPointer?"MSPointerUp":o.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,i,n){function s(t){var e;if(o.Browser.pointer?(m.push(t.pointerId),e=m.length):e=t.touches.length,!(e>1)){var i=Date.now(),n=i-(r||i);l=t.touches?t.touches[0]:t,h=n>0&&u>=n,r=i}}function a(t){if(o.Browser.pointer){var e=m.indexOf(t.pointerId);if(-1===e)return;m.splice(e,1)}if(h){if(o.Browser.pointer){var n,s={};for(var a in l)n=l[a],s[a]="function"==typeof n?n.bind(l):n;l=s}l.type="dblclick",i(l),r=null}}var r,l,h=!1,u=250,c="_leaflet_",d=this._touchstart,p=this._touchend,m=[];t[c+d+n]=s,t[c+p+n]=a;var f=o.Browser.pointer?e.documentElement:t;return t.addEventListener(d,s,!1),f.addEventListener(p,a,!1),o.Browser.pointer&&f.addEventListener(o.DomEvent.POINTER_CANCEL,a,!1),this},removeDoubleTapListener:function(t,i){var n="_leaflet_";return t.removeEventListener(this._touchstart,t[n+this._touchstart+i],!1),(o.Browser.pointer?e.documentElement:t).removeEventListener(this._touchend,t[n+this._touchend+i],!1),o.Browser.pointer&&e.documentElement.removeEventListener(o.DomEvent.POINTER_CANCEL,t[n+this._touchend+i],!1),this}}),o.extend(o.DomEvent,{POINTER_DOWN:o.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:o.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:o.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:o.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(t,e,i,n){switch(e){case"touchstart":return this.addPointerListenerStart(t,e,i,n);case"touchend":return this.addPointerListenerEnd(t,e,i,n);case"touchmove":return this.addPointerListenerMove(t,e,i,n);default:throw"Unknown touch event type"}},addPointerListenerStart:function(t,i,n,s){var a="_leaflet_",r=this._pointers,l=function(t){o.DomEvent.preventDefault(t);for(var e=!1,i=0;i1))&&(this._moved||(o.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),o.Util.cancelAnimFrame(this._animRequest),this._animRequest=o.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),o.DomEvent.preventDefault(t))}},_updateOnMove:function(){var t=this._map,e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getScaleZoom(this._scale);t._animateZoom(i,n,this._startCenter,this._scale,this._delta)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);var t=this._map;this._zooming=!1,o.DomUtil.removeClass(t._mapPane,"leaflet-touching"),o.Util.cancelAnimFrame(this._animRequest),o.DomEvent.off(e,"touchmove",this._onTouchMove).off(e,"touchend",this._onTouchEnd);var i=this._getScaleOrigin(),n=t.layerPointToLatLng(i),s=t.getZoom(),a=t.getScaleZoom(this._scale)-s,r=a>0?Math.ceil(a):Math.floor(a),l=t._limitZoom(s+r),h=t.getZoomScale(l)/this._scale;t._animateZoom(n,l,i,h)},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),o.Map.addInitHook("addHandler","touchZoom",o.Map.TouchZoom),o.Map.mergeOptions({tap:!0,tapTolerance:15}),o.Map.Tap=o.Handler.extend({addHooks:function(){o.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){o.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(o.DomEvent.preventDefault(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new o.Point(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(o.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),o.DomEvent.on(e,"touchmove",this._onMove,this).on(e,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),o.DomEvent.off(e,"touchmove",this._onMove,this).off(e,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],n=i.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&o.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new o.Point(e.clientX,e.clientY)},_simulateEvent:function(i,n){var o=e.createEvent("MouseEvents");o._simulated=!0,n.target._simulatedClick=!0,o.initMouseEvent(i,!0,!0,t,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(o)}}),o.Browser.touch&&!o.Browser.pointer&&o.Map.addInitHook("addHandler","tap",o.Map.Tap),o.Map.mergeOptions({boxZoom:!0}),o.Map.BoxZoom=o.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){o.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){o.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(t){return this._moved=!1,!t.shiftKey||1!==t.which&&1!==t.button?!1:(o.DomUtil.disableTextSelection(),o.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),void o.DomEvent.on(e,"mousemove",this._onMouseMove,this).on(e,"mouseup",this._onMouseUp,this).on(e,"keydown",this._onKeyDown,this))},_onMouseMove:function(t){this._moved||(this._box=o.DomUtil.create("div","leaflet-zoom-box",this._pane),o.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var e=this._startLayerPoint,i=this._box,n=this._map.mouseEventToLayerPoint(t),s=n.subtract(e),a=new o.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));o.DomUtil.setPosition(i,a),this._moved=!0,i.style.width=Math.max(0,Math.abs(s.x)-4)+"px",i.style.height=Math.max(0,Math.abs(s.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),o.DomUtil.enableTextSelection(),o.DomUtil.enableImageDrag(),o.DomEvent.off(e,"mousemove",this._onMouseMove).off(e,"mouseup",this._onMouseUp).off(e,"keydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new o.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),o.Map.addInitHook("addHandler","boxZoom",o.Map.BoxZoom),o.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),o.Map.Keyboard=o.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(t){this._map=t,this._setPanOffset(t.options.keyboardPanOffset),this._setZoomOffset(t.options.keyboardZoomOffset)},addHooks:function(){var t=this._map._container;-1===t.tabIndex&&(t.tabIndex="0"),o.DomEvent.on(t,"focus",this._onFocus,this).on(t,"blur",this._onBlur,this).on(t,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var t=this._map._container;o.DomEvent.off(t,"focus",this._onFocus,this).off(t,"blur",this._onBlur,this).off(t,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var i=e.body,n=e.documentElement,o=i.scrollTop||n.scrollTop,s=i.scrollLeft||n.scrollLeft;this._map._container.focus(),t.scrollTo(s,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;i>e;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;i>e;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;i>e;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;i>e;e++)n[o.up[e]]=[0,-1*t]},_setZoomOffset:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;i>e;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;i>e;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){o.DomEvent.on(e,"keydown",this._onKeyDown,this)},_removeHooks:function(){o.DomEvent.off(e,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){var e=t.keyCode,i=this._map;if(e in this._panKeys){if(i._panAnim&&i._panAnim._inProgress)return;i.panBy(this._panKeys[e]),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds)}else{if(!(e in this._zoomKeys))return;i.setZoom(i.getZoom()+this._zoomKeys[e])}o.DomEvent.stop(t)}}),o.Map.addInitHook("addHandler","keyboard",o.Map.Keyboard),o.Handler.MarkerDrag=o.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new o.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),o.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),o.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var t=this._marker,e=t._shadow,i=o.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&o.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),o.Control=o.Class.extend({options:{position:"topright"},initialize:function(t){o.setOptions(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._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return o.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition(),i=t._controlCorners[e];return i.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),o.control=function(t){return new o.Control(t)},o.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,s){var a=i+t+" "+i+s;e[t+s]=o.DomUtil.create("div",a,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=o.DomUtil.create("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),o.Control.Zoom=o.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=o.DomUtil.create("div",e+" leaflet-bar");return this._map=t,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,e+"-in",i,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,e+"-out",i,this._zoomOut,this),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(t){this._map.zoomIn(t.shiftKey?3:1)},_zoomOut:function(t){this._map.zoomOut(t.shiftKey?3:1)},_createButton:function(t,e,i,n,s,a){var r=o.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var l=o.DomEvent.stopPropagation;return o.DomEvent.on(r,"click",l).on(r,"mousedown",l).on(r,"dblclick",l).on(r,"click",o.DomEvent.preventDefault).on(r,"click",s,a).on(r,"click",this._refocusOnMap,a),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";o.DomUtil.removeClass(this._zoomInButton,e),o.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&o.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&o.DomUtil.addClass(this._zoomInButton,e)}}),o.Map.mergeOptions({zoomControl:!0}),o.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new o.Control.Zoom,this.addControl(this.zoomControl))}),o.control.zoom=function(t){return new o.Control.Zoom(t)},o.Control.Attribution=o.Control.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){o.setOptions(this,t),this._attributions={}},onAdd:function(t){this._container=o.DomUtil.create("div","leaflet-control-attribution"),o.DomEvent.disableClickPropagation(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return t.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(t){t.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},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):void 0},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):void 0},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}},_onLayerAdd:function(t){t.layer.getAttribution&&this.addAttribution(t.layer.getAttribution())},_onLayerRemove:function(t){t.layer.getAttribution&&this.removeAttribution(t.layer.getAttribution())}}),o.Map.mergeOptions({attributionControl:!0}),o.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new o.Control.Attribution).addTo(this))}),o.control.attribution=function(t){return new o.Control.Attribution(t)},o.Control.Scale=o.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(t){this._map=t;var e="leaflet-control-scale",i=o.DomUtil.create("div",e),n=this.options;return this._addScales(n,e,i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=o.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=o.DomUtil.create("div",e+"-line",i))},_update:function(){var t=this._map.getBounds(),e=t.getCenter().lat,i=6378137*Math.PI*Math.cos(e*Math.PI/180),n=i*(t.getNorthEast().lng-t.getSouthWest().lng)/180,o=this._map.getSize(),s=this.options,a=0;o.x>0&&(a=n*(s.maxWidth/o.x)),this._updateScales(s,a)},_updateScales:function(t,e){t.metric&&e&&this._updateMetric(e),t.imperial&&e&&this._updateImperial(e)},_updateMetric:function(t){var e=this._getRoundNum(t);this._mScale.style.width=this._getScaleWidth(e/t)+"px",this._mScale.innerHTML=1e3>e?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;o>5280?(e=o/5280,i=this._getRoundNum(e),s.style.width=this._getScaleWidth(i/e)+"px",s.innerHTML=i+" mi"):(n=this._getRoundNum(o),s.style.width=this._getScaleWidth(n/o)+"px",s.innerHTML=n+" ft")},_getScaleWidth:function(t){return Math.round(this.options.maxWidth*t)-10},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),o.control.scale=function(t){return new o.Control.Scale(t)},o.Control.Layers=o.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){o.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){return this._initLayout(),this._update(),t.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(t){t.off("layeradd",this._onLayerChange).off("layerremove",this._onLayerChange)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._update(),this },addOverlay:function(t,e){return this._addLayer(t,e,!0),this._update(),this},removeLayer:function(t){var e=o.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=o.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),o.Browser.touch?o.DomEvent.on(e,"click",o.DomEvent.stopPropagation):o.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=o.DomUtil.create("form",t+"-list");if(this.options.collapsed){o.Browser.android||o.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=o.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",o.Browser.touch?o.DomEvent.on(n,"click",o.DomEvent.stop).on(n,"click",this._expand,this):o.DomEvent.on(n,"focus",this._expand,this),o.DomEvent.on(i,"click",function(){setTimeout(o.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=o.DomUtil.create("div",t+"-base",i),this._separator=o.DomUtil.create("div",t+"-separator",i),this._overlaysList=o.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=o.stamp(t);this._layers[n]={layer:t,name:e,overlay:i},this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var t,e,i=!1,n=!1;for(t in this._layers)e=this._layers[t],this._addItem(e),n=n||e.overlay,i=i||!e.overlay;this._separator.style.display=n&&i?"":"none"}},_onLayerChange:function(t){var e=this._layers[o.stamp(t.layer)];if(e){this._handlingClick||this._update();var i=e.overlay?"layeradd"===t.type?"overlayadd":"overlayremove":"layeradd"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)}},_createRadioElement:function(t,i){var n='t;t++)e=n[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?this._map.addLayer(i.layer):!e.checked&&this._map.hasLayer(i.layer)&&this._map.removeLayer(i.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){o.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),o.control.layers=function(t,e,i){return new o.Control.Layers(t,e,i)},o.PosAnimation=o.Class.extend({includes:o.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[o.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",o.DomEvent.on(t,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),o.DomUtil.setPosition(t,e),o.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(o.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(o.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),o.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var t=this._getPos();return t?(this._el._leaflet_pos=t,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var e,i,n,s=this._el,a=t.getComputedStyle(s);if(o.Browser.any3d){if(n=a[o.DomUtil.TRANSFORM].match(this._transformRe),!n)return;e=parseFloat(n[1]),i=parseFloat(n[2])}else e=parseFloat(a.left),i=parseFloat(a.top);return new o.Point(e,i,!0)},_onTransitionEnd:function(){o.DomEvent.off(this._el,o.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[o.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),o.Map.include({setView:function(t,e,n){if(e=e===i?this._zoom:this._limitZoom(e),t=this._limitCenter(o.latLng(t),e,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==i&&(n.zoom=o.extend({animate:n.animate},n.zoom),n.pan=o.extend({animate:n.animate},n.pan));var s=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(s)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e),this},panBy:function(t,e){if(t=o.point(t).round(),e=e||{},!t.x&&!t.y)return this;if(this._panAnim||(this._panAnim=new o.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){o.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t);this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){o.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return(e&&e.animate)===!0||this.getSize().contains(i)?(this.panBy(i,e),!0):!1}}),o.PosAnimation=o.DomUtil.TRANSITION?o.PosAnimation:o.PosAnimation.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=o.DomUtil.getPosition(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=o.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;e>t?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));o.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){o.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),o.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),o.DomUtil.TRANSITION&&o.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&o.DomUtil.TRANSITION&&o.Browser.any3d&&!o.Browser.android23&&!o.Browser.mobileOpera,this._zoomAnimated&&o.DomEvent.on(this._mapPane,o.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),o.Map.include(o.DomUtil.TRANSITION?{_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,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n),s=this._getCenterLayerPoint()._add(o);return i.animate===!0||this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0):!1},_animateZoom:function(t,e,i,n,s,a){this._animatingZoom=!0,o.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,o.Draggable&&(o.Draggable._disabled=!0),this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:s,backwards:a})},_onZoomTransitionEnd:function(){this._animatingZoom=!1,o.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),o.Draggable&&(o.Draggable._disabled=!1)}}:{}),o.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=o.DomUtil.TRANSFORM,n=t.delta?o.DomUtil.getTranslateString(t.delta):e.style[i],s=o.DomUtil.getScaleString(t.scale,t.origin);e.style[i]=t.backwards?s+" "+n:n+" "+s},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),o.Util.falseFn(e.offsetWidth),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[o.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e&&i>.5&&.5>n?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(e.style.visibility="hidden",e.style[o.DomUtil.TRANSFORM]="",this._tileContainer=e,e=this._bgBuffer=t,this._stopLoadingImages(e),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(t){var e,i,n=t.getElementsByTagName("img"),o=0;for(e=0,i=n.length;i>e;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,s=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=s.length;i>e;e++)n=s[e],n.complete||(n.onload=o.Util.falseFn,n.onerror=o.Util.falseFn,n.src=o.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),o.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=o.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o.bind(this._handleGeolocationResponse,this),i=o.bind(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new o.LatLng(e,i),s=180*t.coords.accuracy/40075017,a=s/Math.cos(o.LatLng.DEG_TO_RAD*e),r=o.latLngBounds([e-s,i-a],[e+s,i+a]),l=this._locateOptions;if(l.setView){var h=Math.min(this.getBoundsZoom(r),l.maxZoom);this.setView(n,h)}var u={latlng:n,bounds:r,timestamp:t.timestamp};for(var c in t.coords)"number"==typeof t.coords[c]&&(u[c]=t.coords[c]);this.fire("locationfound",u)}})}(window,document),function(t){function e(t,e,n){for(var o=i(t),r=0;rStamen Design, ','under CC BY 3.0. ','Data by OpenStreetMap, ','under CC BY SA.'].join("")}},a={toner:s("toner","png",0,20),terrain:s("terrain","jpg",4,18),watercolor:s("watercolor","jpg",1,18),"trees-cabs-crime":{url:"http://{S}.tiles.mapbox.com/v3/stamen.trees-cabs-crime/{Z}/{X}/{Y}.png",type:"png",subdomains:"a b c d".split(" "),minZoom:11,maxZoom:18,extent:[{lat:37.853,lon:-122.577},{lat:37.684,lon:-122.313}],attribution:['Design by Shawn Allen at Stamen.','Data courtesy of FuF,','Yellow Cab','& SFPD.'].join(" ")}};if(e("toner",["hybrid","labels","lines","background","lite"]),e("toner",["2010"]),e("toner",["2011","2011-lines","2011-labels","2011-lite"]),e("terrain",["background"]),e("terrain",["labels","lines"],"png"),t.stamen=t.stamen||{},t.stamen.tile=t.stamen.tile||{},t.stamen.tile.providers=a,t.stamen.tile.getProvider=i,"object"==typeof MM){var r="function"==typeof MM.Template?MM.Template:MM.TemplatedMapProvider;MM.StamenTileLayer=function(t){var e=i(t);this._provider=e,MM.Layer.call(this,new r(e.url,e.subdomains)),this.provider.setZoomRange(e.minZoom,e.maxZoom),this.attribution=e.attribution},MM.StamenTileLayer.prototype={setCoordLimits:function(t){var e=this._provider;return e.extent?(t.coordLimits=[t.locationCoordinate(e.extent[0]).zoomTo(e.minZoom),t.locationCoordinate(e.extent[1]).zoomTo(e.maxZoom)],!0):!1}},MM.extend(MM.StamenTileLayer,MM.Layer)}"object"==typeof L&&(L.StamenTileLayer=L.TileLayer.extend({initialize:function(t){var e=i(t),n=e.url.replace(/({[A-Z]})/g,function(t){return t.toLowerCase()});L.TileLayer.prototype.initialize.call(this,n,{minZoom:e.minZoom,maxZoom:e.maxZoom,subdomains:e.subdomains,scheme:"xyz",attribution:e.attribution})}})),"object"==typeof OpenLayers&&(OpenLayers.Layer.Stamen=OpenLayers.Class(OpenLayers.Layer.OSM,{initialize:function(t,e){var o=i(t),s=o.url,a=o.subdomains,r=[];if(s.indexOf("{S}")>-1)for(var l=0;ls?s+o:s,r=t.y,l=(i+a+r)%n.length;return e.url.replace("{S}",n[l]).replace("{Z}",i).replace("{X}",a).replace("{Y}",r)},tileSize:new google.maps.Size(256,256),name:t,minZoom:e.minZoom,maxZoom:e.maxZoom})},google.maps.StamenMapType.prototype=new google.maps.ImageMapType("_"))}("undefined"==typeof exports?this:exports),function(){L.Control.FullScreen=L.Control.extend({options:{position:"topleft",title:"Full Screen",forceSeparateButton:!0},onAdd:function(t){var e,i="leaflet-control-zoom-fullscreen";return e=t.zoomControl&&!this.options.forceSeparateButton?t.zoomControl._container:L.DomUtil.create("div","leaflet-bar"),this._createButton(this.options.title,i,e,this.toogleFullScreen,t),e},_createButton:function(e,i,n,o,s){var a=L.DomUtil.create("a",i,n);return a.href="#",a.title=e,L.DomEvent.addListener(a,"click",L.DomEvent.stopPropagation).addListener(a,"click",L.DomEvent.preventDefault).addListener(a,"click",o,s),L.DomEvent.addListener(n,t.fullScreenEventName,L.DomEvent.stopPropagation).addListener(n,t.fullScreenEventName,L.DomEvent.preventDefault).addListener(n,t.fullScreenEventName,this._handleEscKey,s),L.DomEvent.addListener(document,t.fullScreenEventName,L.DomEvent.stopPropagation).addListener(document,t.fullScreenEventName,L.DomEvent.preventDefault).addListener(document,t.fullScreenEventName,this._handleEscKey,s),a},toogleFullScreen:function(){this._exitFired=!1;var e=this._container;this._isFullscreen?(t.supportsFullScreen?t.cancelFullScreen(e):L.DomUtil.removeClass(e,"leaflet-pseudo-fullscreen"),this.invalidateSize(),this.fire("exitFullscreen"),this._exitFired=!0,this._isFullscreen=!1):(t.supportsFullScreen?t.requestFullScreen(e):L.DomUtil.addClass(e,"leaflet-pseudo-fullscreen"),this.invalidateSize(),this.fire("enterFullscreen"),this._isFullscreen=!0)},_handleEscKey:function(){t.isFullScreen(this)||this._exitFired||(this.fire("exitFullscreen"),this._exitFired=!0,this._isFullscreen=!1)}}),L.Map.addInitHook(function(){this.options.fullscreenControl&&(this.fullscreenControl=L.control.fullscreen(this.options.fullscreenControlOptions),this.addControl(this.fullscreenControl))}),L.control.fullscreen=function(t){return new L.Control.FullScreen(t)};var t={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},e="webkit moz o ms khtml".split(" ");if("undefined"!=typeof document.exitFullscreen)t.supportsFullScreen=!0;else for(var i=0,n=e.length;n>i;i++)if(t.prefix=e[i],"undefined"!=typeof document[t.prefix+"CancelFullScreen"]){t.supportsFullScreen=!0;break}t.supportsFullScreen&&(t.fullScreenEventName=t.prefix+"fullscreenchange",t.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},t.requestFullScreen=function(t){return""===this.prefix?t.requestFullscreen():t[this.prefix+"RequestFullScreen"](Element.ALLOW_KEYBOARD_INPUT)},t.cancelFullScreen=function(){return""===this.prefix?document.exitFullscreen():document[this.prefix+"CancelFullScreen"]()}),"undefined"!=typeof jQuery&&(jQuery.fn.requestFullScreen=function(){return this.each(function(){var e=jQuery(this);t.supportsFullScreen&&t.requestFullScreen(e)})}),window.fullScreenApi=t}(),L.Control.Locate=L.Control.extend({options:{position:"topleft",drawCircle:!0,follow:!1,stopFollowingOnDrag:!1,circleStyle:{color:"#136AEC",fillColor:"#136AEC",fillOpacity:.15,weight:2,opacity:.5},markerStyle:{color:"#136AEC",fillColor:"#2A93EE",fillOpacity:.7,weight:2,opacity:.9,radius:5},followCircleStyle:{},followMarkerStyle:{},circlePadding:[0,0],metric:!0,onLocationError:function(t){alert(t.message)},onLocationOutsideMapBounds:function(t){alert(t.options.strings.outsideMapBoundsMsg)},setView:!0,strings:{title:"Show me where I am",popup:"You are within {distance} {unit} from this point",outsideMapBoundsMsg:"You seem located outside the boundaries of the map"},locateOptions:{}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-locate leaflet-bar leaflet-control"),i=this;this._layer=new L.LayerGroup,this._layer.addTo(t),this._event=void 0,this._locateOptions={watch:!0},L.extend(this._locateOptions,this.options.locateOptions),L.extend(this._locateOptions,{setView:!1});var n={};L.extend(n,this.options.markerStyle,this.options.followMarkerStyle),this.options.followMarkerStyle=n,n={},L.extend(n,this.options.circleStyle,this.options.followCircleStyle),this.options.followCircleStyle=n;var o=L.DomUtil.create("a","leaflet-bar-part leaflet-bar-part-single",e);o.href="#",o.title=this.options.strings.title,L.DomEvent.on(o,"click",L.DomEvent.stopPropagation).on(o,"click",L.DomEvent.preventDefault).on(o,"click",function(){i._active&&(void 0===i._event||t.getBounds().contains(i._event.latlng)||!i.options.setView||h())?d():s()}).on(o,"dblclick",L.DomEvent.stopPropagation);var s=function(){i.options.setView&&(i._locateOnNextLocationFound=!0),i._active||t.locate(i._locateOptions),i._active=!0,i.options.follow&&r(),i._event?u():(L.DomUtil.addClass(i._container,"requesting"),L.DomUtil.removeClass(i._container,"active"),L.DomUtil.removeClass(i._container,"following"))},a=function(t){i._event&&i._event.latlng.lat===t.latlng.lat&&i._event.latlng.lng===t.latlng.lng&&i._event.accuracy===t.accuracy||i._active&&(i._event=t,i.options.follow&&i._following&&(i._locateOnNextLocationFound=!0),u())},r=function(){t.fire("startfollowing"),i._following=!0,i.options.stopFollowingOnDrag&&t.on("dragstart",l)},l=function(){t.fire("stopfollowing"),i._following=!1,i.options.stopFollowingOnDrag&&t.off("dragstart",l),u()},h=function(){return void 0===i._event?!1:t.options.maxBounds&&!t.options.maxBounds.contains(i._event.latlng)},u=function(){void 0===i._event.accuracy&&(i._event.accuracy=0);var e=i._event.accuracy;i._locateOnNextLocationFound&&(h()?i.options.onLocationOutsideMapBounds(i):t.fitBounds(i._event.bounds,{padding:i.options.circlePadding}),i._locateOnNextLocationFound=!1);var n,o;if(i.options.drawCircle)if(n=i._following?i.options.followCircleStyle:i.options.circleStyle,i._circle){i._circle.setLatLng(i._event.latlng).setRadius(e);for(o in n)i._circle.options[o]=n[o]}else i._circle=L.circle(i._event.latlng,e,n).addTo(i._layer);var s,a;i.options.metric?(s=e.toFixed(0),a="meters"):(s=(3.2808399*e).toFixed(0),a="feet");var r;r=i._following?i.options.followMarkerStyle:i.options.markerStyle;var l=i.options.strings.popup;if(i._circleMarker){i._circleMarker.setLatLng(i._event.latlng).bindPopup(L.Util.template(l,{distance:s,unit:a}))._popup.setLatLng(i._event.latlng);for(o in r)i._circleMarker.options[o]=r[o]}else i._circleMarker=L.circleMarker(i._event.latlng,r).bindPopup(L.Util.template(l,{distance:s,unit:a})).addTo(i._layer);i._container&&(i._following?(L.DomUtil.removeClass(i._container,"requesting"),L.DomUtil.addClass(i._container,"active"),L.DomUtil.addClass(i._container,"following")):(L.DomUtil.removeClass(i._container,"requesting"),L.DomUtil.addClass(i._container,"active"),L.DomUtil.removeClass(i._container,"following")))},c=function(){i._active=!1,i._locateOnNextLocationFound=i.options.setView,i._following=!1};c();var d=function(){t.stopLocate(),t.off("dragstart",l),L.DomUtil.removeClass(i._container,"requesting"),L.DomUtil.removeClass(i._container,"active"),L.DomUtil.removeClass(i._container,"following"),c(),i._layer.clearLayers(),i._circleMarker=void 0,i._circle=void 0},p=function(t){3==t.code&&this._locateOptions.watch||(d(),i.options.onLocationError(t))};return t.on("locationfound",a,i),t.on("locationerror",p,i),this.locate=s,this.stopLocate=d,this.stopFollowing=l,e}}),L.Map.addInitHook(function(){this.options.locateControl&&(this.locateControl=L.control.locate(),this.addControl(this.locateControl))}),L.control.locate=function(t){return new L.Control.Locate(t)},function(){L.Control.Options=L.Control.extend({options:{position:"topleft",title:"Options",forceSeparateButton:!0},onAdd:function(t){var e,i="leaflet-control-options";return e=t.zoomControl&&!this.options.forceSeparateButton?t.zoomControl._container:L.DomUtil.create("div","leaflet-bar"),this._createButton(this.options.title,i,e,this.toggleSidebar,t),e},_createButton:function(t,e,i,n,o){var s=L.DomUtil.create("a",e,i);return s.href="#",s.title=t,L.DomEvent.addListener(s,"click",L.DomEvent.stopPropagation).addListener(s,"click",L.DomEvent.preventDefault).addListener(s,"click",n,o),s},toggleSidebar:function(){sidebar.toggle()}}),L.Map.addInitHook(function(){this.options.optionsControl&&(this.optionsControl=L.control.options(this.options.fullscreenControlOptions),this.addControl(this.optionsControl))}),L.control.options=function(t){return new L.Control.Options(t)}}(),L.Control.Sidebar=L.Control.extend({includes:L.Mixin.Events,options:{closeButton:!0,position:"left",autoPan:!0},initialize:function(t,e){L.setOptions(this,e);var i=this._contentContainer=L.DomUtil.get(t);i.parentNode.removeChild(i);var n="leaflet-",o=this._container=L.DomUtil.create("div",n+"sidebar "+this.options.position);if(L.DomUtil.addClass(i,n+"control"),o.appendChild(i),this.options.closeButton){var s=this._closeButton=L.DomUtil.create("a","close",o);s.innerHTML="×"}},addTo:function(t){var e=this._container,i=this._contentContainer;if(this.options.closeButton){var n=this._closeButton;L.DomEvent.on(n,"click",this.hide,this)}var o=t._controlContainer;o.insertBefore(e,o.firstChild),this._map=t;var s=L.DomEvent.stopPropagation;return L.DomEvent.on(i,"click",s).on(i,"mousedown",s).on(i,"touchstart",s).on(i,"dblclick",s).on(i,"mousewheel",s).on(i,"MozMousePixelScroll",s),this},removeFrom:function(t){this.hide();var e=this._contentContainer,i=t._controlContainer;i.removeChild(this._container),this._map=null;var n=L.DomEvent.stopPropagation;if(L.DomEvent.off(e,"click",n).off(e,"mousedown",n).off(e,"touchstart",n).off(e,"dblclick",n).off(e,"mousewheel",n).off(e,"MozMousePixelScroll",n),this._closeButton&&this._close){var o=this._closeButton;L.DomEvent.off(o,"click",this.hide,this)}return this},isVisible:function(){return L.DomUtil.hasClass(this._container,"visible")},show:function(){this.isVisible()||(L.DomUtil.addClass(this._container,"visible"),this.options.autoPan&&this._map.panBy([-this.getOffset()/2,0],{duration:.5}),this.fire("show"))},hide:function(t){this.isVisible()&&(L.DomUtil.removeClass(this._container,"visible"),this.options.autoPan&&this._map.panBy([this.getOffset()/2,0],{duration:.5}),this.fire("hide")),t&&L.DomEvent.stopPropagation(t)},toggle:function(){this.isVisible()?this.hide():this.show()},getContainer:function(){return this._contentContainer},getCloseButton:function(){return this._closeButton},setContent:function(t){return this.getContainer().innerHTML=t,this},getOffset:function(){return"right"===this.options.position?-this._container.offsetWidth:this._container.offsetWidth}}),L.control.sidebar=function(t,e){return new L.Control.Sidebar(t,e)},function(){L.labelVersion="0.2.1-dev",L.Label=L.Class.extend({includes:L.Mixin.Events,options:{className:"",clickable:!1,direction:"right",noHide:!1,offset:[12,-15],opacity:1,zoomAnimation:!0},initialize:function(t,e){L.setOptions(this,t),this._source=e,this._animated=L.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._pane=this._source instanceof L.Marker?t._panes.markerPane:t._panes.popupPane,this._container||this._initLayout(),this._pane.appendChild(this._container),this._initInteraction(),this._update(),this.setOpacity(this.options.opacity),t.on("moveend",this._onMoveEnd,this).on("viewreset",this._onViewReset,this),this._animated&&t.on("zoomanim",this._zoomAnimation,this),L.Browser.touch&&!this.options.noHide&&L.DomEvent.on(this._container,"click",this.close,this)},onRemove:function(t){this._pane.removeChild(this._container),t.off({zoomanim:this._zoomAnimation,moveend:this._onMoveEnd,viewreset:this._onViewReset},this),this._removeInteraction(),this._map=null},setLatLng:function(t){return this._latlng=L.latLng(t),this._map&&this._updatePosition(),this},setContent:function(t){return this._previousContent=this._content,this._content=t,this._updateContent(),this},close:function(){var t=this._map;t&&(L.Browser.touch&&!this.options.noHide&&L.DomEvent.off(this._container,"click",this.close),t.removeLayer(this))},updateZIndex:function(t){this._zIndex=t,this._container&&this._zIndex&&(this._container.style.zIndex=t)},setOpacity:function(t){this.options.opacity=t,this._container&&L.DomUtil.setOpacity(this._container,t)},_initLayout:function(){this._container=L.DomUtil.create("div","leaflet-label "+this.options.className+" leaflet-zoom-animated"),this.updateZIndex(this._zIndex)},_update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updatePosition(),this._container.style.visibility="")},_updateContent:function(){this._content&&this._map&&this._prevContent!==this._content&&"string"==typeof this._content&&(this._container.innerHTML=this._content,this._prevContent=this._content,this._labelWidth=this._container.offsetWidth)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),s=this.options.direction,a=this._labelWidth,r=L.point(this.options.offset);"right"===s||"auto"===s&&o.xi;i++)L.DomEvent.on(t,e[i],this._fireMouseEvent,this)}},_removeInteraction:function(){if(this.options.clickable){var t=this._container,e=["dblclick","mousedown","mouseover","mouseout","contextmenu"];L.DomUtil.removeClass(t,"leaflet-clickable"),L.DomEvent.off(t,"click",this._onMouseClick,this);for(var i=0;e.length>i;i++)L.DomEvent.off(t,e[i],this._fireMouseEvent,this)}},_onMouseClick:function(t){this.hasEventListeners(t.type)&&L.DomEvent.stopPropagation(t),this.fire(t.type,{originalEvent:t})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&L.DomEvent.preventDefault(t),"mousedown"!==t.type?L.DomEvent.stopPropagation(t):L.DomEvent.preventDefault(t)}}),L.BaseMarkerMethods={showLabel:function(){return this.label&&this._map&&(this.label.setLatLng(this._latlng),this._map.showLabel(this.label)),this},hideLabel:function(){return this.label&&this.label.close(),this},setLabelNoHide:function(t){this._labelNoHide!==t&&(this._labelNoHide=t,t?(this._removeLabelRevealHandlers(),this.showLabel()):(this._addLabelRevealHandlers(),this.hideLabel()))},bindLabel:function(t,e){var i=this.options.icon?this.options.icon.options.labelAnchor:this.options.labelAnchor,n=L.point(i)||L.point(0,0);return n=n.add(L.Label.prototype.options.offset),e&&e.offset&&(n=n.add(e.offset)),e=L.Util.extend({offset:n},e),this._labelNoHide=e.noHide,this.label||(this._labelNoHide||this._addLabelRevealHandlers(),this.on("remove",this.hideLabel,this).on("move",this._moveLabel,this).on("add",this._onMarkerAdd,this),this._hasLabelHandlers=!0),this.label=new L.Label(e,this).setContent(t),this},unbindLabel:function(){return this.label&&(this.hideLabel(),this.label=null,this._hasLabelHandlers&&(this._labelNoHide||this._removeLabelRevealHandlers(),this.off("remove",this.hideLabel,this).off("move",this._moveLabel,this).off("add",this._onMarkerAdd,this)),this._hasLabelHandlers=!1),this},updateLabelContent:function(t){this.label&&this.label.setContent(t)},getLabel:function(){return this.label},_onMarkerAdd:function(){this._labelNoHide&&this.showLabel()},_addLabelRevealHandlers:function(){this.on("mouseover",this.showLabel,this).on("mouseout",this.hideLabel,this),L.Browser.touch&&this.on("click",this.showLabel,this)},_removeLabelRevealHandlers:function(){this.off("mouseover",this.showLabel,this).off("mouseout",this.hideLabel,this),L.Browser.touch&&this.off("click",this.showLabel,this)},_moveLabel:function(t){this.label.setLatLng(t.latlng)}},L.Icon.Default.mergeOptions({labelAnchor:new L.Point(9,-20)}),L.Marker.mergeOptions({icon:new L.Icon.Default}),L.Marker.include(L.BaseMarkerMethods),L.Marker.include({_originalUpdateZIndex:L.Marker.prototype._updateZIndex,_updateZIndex:function(t){var e=this._zIndex+t;this._originalUpdateZIndex(t),this.label&&this.label.updateZIndex(e)},_originalSetOpacity:L.Marker.prototype.setOpacity,setOpacity:function(t,e){this.options.labelHasSemiTransparency=e,this._originalSetOpacity(t)},_originalUpdateOpacity:L.Marker.prototype._updateOpacity,_updateOpacity:function(){var t=0===this.options.opacity?0:1;this._originalUpdateOpacity(),this.label&&this.label.setOpacity(this.options.labelHasSemiTransparency?this.options.opacity:t)},_originalSetLatLng:L.Marker.prototype.setLatLng,setLatLng:function(t){return this.label&&!this._labelNoHide&&this.hideLabel(),this._originalSetLatLng(t)}}),L.CircleMarker.mergeOptions({labelAnchor:new L.Point(0,0)}),L.CircleMarker.include(L.BaseMarkerMethods),L.Path.include({bindLabel:function(t,e){return this.label&&this.label.options===e||(this.label=new L.Label(e,this)),this.label.setContent(t),this._showLabelAdded||(this.on("mouseover",this._showLabel,this).on("mousemove",this._moveLabel,this).on("mouseout remove",this._hideLabel,this),L.Browser.touch&&this.on("click",this._showLabel,this),this._showLabelAdded=!0),this -},unbindLabel:function(){return this.label&&(this._hideLabel(),this.label=null,this._showLabelAdded=!1,this.off("mouseover",this._showLabel,this).off("mousemove",this._moveLabel,this).off("mouseout remove",this._hideLabel,this)),this},updateLabelContent:function(t){this.label&&this.label.setContent(t)},_showLabel:function(t){this.label.setLatLng(t.latlng),this._map.showLabel(this.label)},_moveLabel:function(t){this.label.setLatLng(t.latlng)},_hideLabel:function(){this.label.close()}}),L.Map.include({showLabel:function(t){return this.addLayer(t)}}),L.FeatureGroup.include({clearLayers:function(){return this.unbindLabel(),this.eachLayer(this.removeLayer,this),this},bindLabel:function(t,e){return this.invoke("bindLabel",t,e)},unbindLabel:function(){return this.invoke("unbindLabel")},updateLabelContent:function(t){this.invoke("updateLabelContent",t)}})}(this,document),L.Control.ActiveLayers=L.Control.Layers.extend({getActiveBaseLayer:function(){return this._activeBaseLayer},getActiveOverlayLayers:function(){return this._activeOverlayLayers},onAdd:function(t){var e=L.Control.Layers.prototype.onAdd.call(this,t);return this._activeBaseLayer=this._findActiveBaseLayer(),this._activeOverlayLayers=this._findActiveOverlayLayers(),e},_findActiveBaseLayer:function(){var t=this._layers;for(var e in t)if(this._layers.hasOwnProperty(e)){var i=t[e];if(!i.overlay&&this._map.hasLayer(i.layer))return i}throw new Error("Control doesn't have any active base layer!")},_findActiveOverlayLayers:function(){var t={},e=this._layers;for(var i in e)if(this._layers.hasOwnProperty(i)){var n=e[i];n.overlay&&this._map.hasLayer(n.layer)&&(t[i]=n)}return t},_onInputClick:function(){var t,e,i,n,o=this._form.getElementsByTagName("input"),s=o.length;for(this._handlingClick=!0,t=0;s>t;t++)e=o[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?(this._map.addLayer(i.layer),i.overlay?this._activeOverlayLayers[e.layerId]=i:(n=i.layer,this._activeBaseLayer=i)):!e.checked&&this._map.hasLayer(i.layer)&&(this._map.removeLayer(i.layer),i.overlay&&delete this._activeOverlayLayers[e.layerId]);n&&(this._map.setZoom(this._map.getZoom()),this._map.fire("baselayerchange",{layer:n})),this._handlingClick=!1}}),L.control.activeLayers=function(t,e,i){return new L.Control.ActiveLayers(t,e,i)},L.BingLayer=L.TileLayer.extend({options:{subdomains:[0,1,2,3],type:"Aerial",attribution:"Bing",culture:""},initialize:function(t,e){L.Util.setOptions(this,e),this._key=t,this._url=null,this.meta={},this.loadMetadata()},tile2quad:function(t,e,i){for(var n="",o=i;o>0;o--){var s=0,a=1<=n.zoomMin&&t.intersects(n.bounds)?(!n.active&&this._map.attributionControl&&this._map.attributionControl.addAttribution(n.attrib),n.active=!0):(n.active&&this._map.attributionControl&&this._map.attributionControl.removeAttribution(n.attrib),n.active=!1)}},onRemove:function(t){for(var e=0;e99?Math.round(_/10):_),t:12>p?"a":"p",tt:12>p?"am":"pm",T:12>p?"A":"P",TT:12>p?"AM":"PM",Z:a?"UTC":(String(o).match(e)||[""]).pop().replace(i,""),o:(g>0?"-":"+")+n(100*Math.floor(Math.abs(g)/60)+Math.abs(g)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10]};return s.replace(t,function(t){return t in v?v[t]:t.slice(1,t.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},Date.prototype.format=function(t,e){return dateFormat(this,t,e)},function(t){var e,i,n,o,s,a,r,l,h,u,c,d,p=["o","Ko","Mo","Go"];e=[{id:2,type:"Traditional Cache"},{id:3,type:"Multi-cache"},{id:4,type:"Virtual Cache"},{id:5,type:"Letterbox Hybrid"},{id:6,type:"Event Cache"},{id:8,type:"Unknown Cache"},{id:11,type:"Webcam Cache"},{id:13,type:"Cache In Trash Out Event"},{id:137,type:"Earthcache"},{id:453,type:"Mega-Event Cache"},{id:1304,type:"GPS Adventures Exhibit"},{id:1858,type:"Wherigo Cache"}],i=[{id:"micro",label:"Micro"},{id:"small",label:"Small"},{id:"regular",label:"Regular"},{id:"large",label:"Large"},{id:"not_chosen",label:"Not chosen"},{id:"not chosen",label:"Not chosen"},{id:"unknown",label:"Unknown"},{id:"other",label:"Other"},{id:"virtual",label:"Virtual"}],n=document.getElementById("display_labels"),o=document.getElementById("display_perimeters"),s=[],a=[],r=[];var m=function(t){var a,h,u,d,p,m,f,_,g,v,y,b,P,w,C,E,D,M,T,S,k,O=/[a-z]*?\|([a-z-\s]*)\|?/i;for(f=0,_=t.length;_>f;++f)if(h=t[f],u=h.getElementsByTagName("sym")[0].childNodes[0]||!1,!u||"Geocache"===u.nodeValue||"Geocache Found"===u.nodeValue||""===u.nodeValue){if(b=h.getElementsByTagNameNS("*","cache"),P=b[0].getElementsByTagNameNS("*","name"),w=b[0].getElementsByTagNameNS("*","difficulty"),C=b[0].getElementsByTagNameNS("*","terrain"),E=b[0].getElementsByTagNameNS("*","owner"),D=b[0].getElementsByTagNameNS("*","container"),M=new Date(h.getElementsByTagName("time")[0].childNodes[0].nodeValue),T=M.format("yyyy/mm/dd"),S=null,k=h.getElementsByTagName("type")[0].childNodes[0].nodeValue.match(O))for(g=0,v=e.length;v>g;++g)if(e[g].type===k[1]){a=L.icon({iconSize:[16,16],iconUrl:"img/"+e[g].id+".gif"});break}if(a){for(g=0,y=i.length;y>g;++g)if(i[g].id===D[0].childNodes[0].nodeValue.toLowerCase()){S=i[g].label;break}d=new L.latLng(parseFloat(h.getAttribute("lat")),parseFloat(h.getAttribute("lon"))),p=L.marker(d,{icon:a}).bindLabel(h.getElementsByTagName("name")[0].childNodes[0].nodeValue,{opacity:n.checked?1:0,noHide:!0,direction:"auto"}).addTo(l),m='
',m+='
'+h.getElementsByTagName("name")[0].childNodes[0].nodeValue+"
",m+="

",m+=' ',m+=' '+P[0].childNodes[0].nodeValue+"",m+="

",m+='
',E[0].childNodes[0]&&(m+="
Created by:
",m+="
"+E[0].childNodes[0].nodeValue+"
"),m+="
Difficulty:
",m+="
"+w[0].childNodes[0].nodeValue+"
",m+="
Cache size:
",m+="
"+S+"
",m+="
",m+='
',m+="
Date Hidden:
",m+="
"+T+"
",m+="
Terrain:
",m+="
"+C[0].childNodes[0].nodeValue+"
",m+="
",m+="
",p.bindPopup(L.popup({maxWidth:500}).setLatLng(d).setContent(m)),r.push(p),c=new L.circle(d,161,{weight:2,color:"#c11414",opacity:o.checked?.8:0,fillColor:o.checked?"#c11414":"transparent",fillOpacity:o.checked?.25:0,clickable:!1}),c.addTo(l),s.push(c),x.extend(d)}}},f=function(t){var e,i,n,o,s,r,h,u,c,d,p,m=0,f=t.length;for(m;f>m;++m){for(e=t[m],s=e.getElementsByTagName("trkseg"),n=0,c=s.length;c>n;++n){for(r=s[n],p=[],h=r.getElementsByTagName("trkpt"),o=0,d=h.length;d>o;++o)u=h[o],i=new L.latLng(parseFloat(u.getAttribute("lat")),parseFloat(u.getAttribute("lon"))),p.push(i),x.extend(i);var _=new L.Polyline(p,{color:"red"});_.addTo(l),a.push(_)}x.extend(i)}},_=function(t){var e=t.documentElement.getElementsByTagName("wpt"),i=t.documentElement.getElementsByTagName("trk");0===e.length&&0===i.length?alert("No waypoints found."):e.length>0&&m(e),0===e.length&&0===i.length?alert("No tracks found."):i.length>0&&f(i),x.isValid()&&l.fitBounds(x)},g=function(){t.each(r,function(t,e){n.checked?(r[e].setOpacity(1,!0),r[e].showLabel()):r[e].hideLabel()}),localStorage.setItem("option_label",+n.checked)},v=function(){t.each(r,function(t,e){s[e].setStyle({opacity:o.checked?.8:0,fillOpacity:o.checked?.25:0})}),localStorage.setItem("option_perimeter",+o.checked)},y=function(){t.each(s,function(t,e){l.removeLayer(s[e])}),t.each(r,function(t,e){l.removeLayer(r[e])}),t.each(a,function(t,e){l.removeLayer(a[e])}),s.length=0,r.length=0,a.length=0,x=new L.LatLngBounds;for(var e=document.getElementById("list");e.firstChild;)e.removeChild(e.firstChild)},b=function(){localStorage.setItem("zoom",l.getZoom()),localStorage.setItem("latitude",l.getCenter().lat.toFixed(5)),localStorage.setItem("longitude",l.getCenter().lng.toFixed(5))},P=function(){localStorage.setItem("sidebar",+sidebar.isVisible())},w=function(){localStorage.setItem("baselayer",d.getActiveBaseLayer().name)},x=new L.LatLngBounds,C=function(){var e=L.tileLayer("http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © CloudMade'}),i=L.tileLayer("http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Thunderforest'}),s=L.tileLayer("http://otile2.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapquest'}),a=L.tileLayer("http://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © OpenStreetMap'}),r=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"Aerial"}),h=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"AerialWithLabels"}),u=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"Road"}),c=new L.StamenTileLayer("toner"),p=new L.StamenTileLayer("watercolor"),m=46,f=2.9,_=6,x=1,C="OSM Legacy",E=1,D=1,M={"OSM Legacy":a,"Bing Aerial":r,"Bing Road":u,"Bing Hybrid":h,Mapquest:s,CloudMade:e,Transport:i,"Stamen Toner":c,"Stamen WaterColor":p},T={};window.localStorage&&(m=t.isNull(localStorage.getItem("latitude"))?m:parseFloat(localStorage.getItem("latitude")),f=t.isNull(localStorage.getItem("longitude"))?f:parseFloat(localStorage.getItem("longitude")),_=t.isNull(localStorage.getItem("zoom"))?_:+localStorage.getItem("zoom"),null!==localStorage.getItem("baselayer")&&t.has(M,localStorage.getItem("baselayer"))&&(C=localStorage.getItem("baselayer")),x=null===localStorage.getItem("sidebar")?x:+localStorage.getItem("sidebar"),E=null===localStorage.getItem("option_label")?E:+localStorage.getItem("option_label"),D=null===localStorage.getItem("option_perimeter")?D:+localStorage.getItem("option_perimeter")),l=L.map("map",{center:new L.LatLng(m,f),zoom:_,layers:t.values(t.pick(M,C)),attributionControl:!1,zoomControl:!0,inertia:!1}),d=L.control.activeLayers(M,T),d.addTo(l),L.control.scale({maxWidth:200}).addTo(l),sidebar=L.control.sidebar("sidebar",{position:"left",autoPan:!1}),l.addControl(sidebar),document.getElementById("sidebar").style.display="block",x&&t.delay(function(){sidebar.show()},250),E&&(n.checked="checked"),D&&(o.checked="checked"),l.addControl(new L.Control.FullScreen),L.control.locate({drawCircle:!1}).addTo(l),l.addControl(new L.Control.Options),document.getElementById("clear").addEventListener("click",y),n.addEventListener("change",g),o.addEventListener("change",v),L.DomEvent.addListener(l,"zoomend",b),L.DomEvent.addListener(l,"moveend",b),L.DomEvent.addListener(l,"baselayerchange",w),sidebar.on("hide",P),sidebar.on("show",P)},E=function(){return t.delay(function(){confirm("Geocaching GPX Viewer has been updated!\n\nDo you want to reload the page to use the new version?")&&window.location.reload(!0)},0),!1};window.applicationCache.addEventListener("updateready",E),window.applicationCache.status===window.applicationCache.UPDATEREADY&&E(),function(){var t,e=document.getElementById("flattr");t=document.createElement("iframe"),t.src="//api.flattr.com/button/view/?uid=Surfoo&button=compact&url="+encodeURIComponent(document.URL),t.title="Flattr",t.height=20,t.width=110,t.style.borderWidth=0,t.style.verticalAlign="middle",e.parentNode.insertBefore(t,e)}();var D=function(t){var e=document.createElement("li"),i=document.getElementById("list");e.innerHTML=t,i.appendChild(e)},M=function(t){var e=new FileReader,i=document.getElementById("loader"),n=[{name:t.name,size:t.size}];e.onprogress=function(){i.style.display="block"},e.onload=function(t){if(window.DOMParser?(h=new DOMParser,u=h.parseFromString(t.target.result,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(t.target.result)),u=h.parseFromString(t.target.result,"application/xml"),!u||"gpx"!==u.documentElement.tagName)return alert(n[0].name+" in an invalid file."),!1;for(var e=n[0].size,i=0;e>=1024;)e/=1024,++i;D(n[0].name+" ("+e.toFixed(2)+p[i]+")"),_(u)},e.onloadend=function(){i.style.display="none"},e.readAsText(t,"UTF-8")},T=function(e){var i=e.target.files||e.dataTransfer.files;t.each(i,function(t){M(t)})};window.File&&window.FileList&&window.FileReader?document.getElementById("files").addEventListener("change",T,!1):alert("Your browser doesn't support this feature, please upgrade it (or use Firefox or Chrome)."),window.onload=C()}(_); \ No newline at end of file +},unbindLabel:function(){return this.label&&(this._hideLabel(),this.label=null,this._showLabelAdded=!1,this.off("mouseover",this._showLabel,this).off("mousemove",this._moveLabel,this).off("mouseout remove",this._hideLabel,this)),this},updateLabelContent:function(t){this.label&&this.label.setContent(t)},_showLabel:function(t){this.label.setLatLng(t.latlng),this._map.showLabel(this.label)},_moveLabel:function(t){this.label.setLatLng(t.latlng)},_hideLabel:function(){this.label.close()}}),L.Map.include({showLabel:function(t){return this.addLayer(t)}}),L.FeatureGroup.include({clearLayers:function(){return this.unbindLabel(),this.eachLayer(this.removeLayer,this),this},bindLabel:function(t,e){return this.invoke("bindLabel",t,e)},unbindLabel:function(){return this.invoke("unbindLabel")},updateLabelContent:function(t){this.invoke("updateLabelContent",t)}})}(this,document),L.Control.ActiveLayers=L.Control.Layers.extend({getActiveBaseLayer:function(){return this._activeBaseLayer},getActiveOverlayLayers:function(){return this._activeOverlayLayers},onAdd:function(t){var e=L.Control.Layers.prototype.onAdd.call(this,t);return this._activeBaseLayer=this._findActiveBaseLayer(),this._activeOverlayLayers=this._findActiveOverlayLayers(),e},_findActiveBaseLayer:function(){var t=this._layers;for(var e in t)if(this._layers.hasOwnProperty(e)){var i=t[e];if(!i.overlay&&this._map.hasLayer(i.layer))return i}throw new Error("Control doesn't have any active base layer!")},_findActiveOverlayLayers:function(){var t={},e=this._layers;for(var i in e)if(this._layers.hasOwnProperty(i)){var n=e[i];n.overlay&&this._map.hasLayer(n.layer)&&(t[i]=n)}return t},_onInputClick:function(){var t,e,i,n,o=this._form.getElementsByTagName("input"),s=o.length;for(this._handlingClick=!0,t=0;s>t;t++)e=o[t],i=this._layers[e.layerId],e.checked&&!this._map.hasLayer(i.layer)?(this._map.addLayer(i.layer),i.overlay?this._activeOverlayLayers[e.layerId]=i:(n=i.layer,this._activeBaseLayer=i)):!e.checked&&this._map.hasLayer(i.layer)&&(this._map.removeLayer(i.layer),i.overlay&&delete this._activeOverlayLayers[e.layerId]);n&&(this._map.setZoom(this._map.getZoom()),this._map.fire("baselayerchange",{layer:n})),this._handlingClick=!1}}),L.control.activeLayers=function(t,e,i){return new L.Control.ActiveLayers(t,e,i)},L.BingLayer=L.TileLayer.extend({options:{subdomains:[0,1,2,3],type:"Aerial",attribution:"Bing",culture:""},initialize:function(t,e){L.Util.setOptions(this,e),this._key=t,this._url=null,this.meta={},this.loadMetadata()},tile2quad:function(t,e,i){for(var n="",o=i;o>0;o--){var s=0,a=1<=n.zoomMin&&t.intersects(n.bounds)?(!n.active&&this._map.attributionControl&&this._map.attributionControl.addAttribution(n.attrib),n.active=!0):(n.active&&this._map.attributionControl&&this._map.attributionControl.removeAttribution(n.attrib),n.active=!1)}},onRemove:function(t){for(var e=0;e99?Math.round(_/10):_),t:12>p?"a":"p",tt:12>p?"am":"pm",T:12>p?"A":"P",TT:12>p?"AM":"PM",Z:a?"UTC":(String(o).match(e)||[""]).pop().replace(i,""),o:(g>0?"-":"+")+n(100*Math.floor(Math.abs(g)/60)+Math.abs(g)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10]};return s.replace(t,function(t){return t in v?v[t]:t.slice(1,t.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"},dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},Date.prototype.format=function(t,e){return dateFormat(this,t,e)},function(t){var e,i,n,o,s,a,r,l,h,u,c,d,p=.8,m="#c11414",f=.25,_=["o","Ko","Mo","Go"];e=[{id:2,type:"Traditional Cache"},{id:3,type:"Multi-cache"},{id:4,type:"Virtual Cache"},{id:5,type:"Letterbox Hybrid"},{id:6,type:"Event Cache"},{id:8,type:"Unknown Cache"},{id:9,type:"Project APE Cache"},{id:11,type:"Webcam Cache"},{id:12,type:"Locationless (Reverse) Cache"},{id:13,type:"Cache In Trash Out Event"},{id:137,type:"Earthcache"},{id:453,type:"Mega-Event Cache"},{id:1304,type:"GPS Adventures Exhibit"},{id:1858,type:"Wherigo Cache"},{id:3653,type:"Lost and Found Event Caches"},{id:3773,type:"Groundspeak HQ"},{id:3774,type:"Groundspeak Lost and Found Celebration"},{id:4738,type:"Groundspeak Block Party"},{id:7005,type:"Giga-Event Cache"}],i=[{id:"micro",label:"Micro"},{id:"small",label:"Small"},{id:"regular",label:"Regular"},{id:"large",label:"Large"},{id:"not_chosen",label:"Not chosen"},{id:"not chosen",label:"Not chosen"},{id:"unknown",label:"Unknown"},{id:"other",label:"Other"},{id:"virtual",label:"Virtual"}],n=document.getElementById("display_labels"),o=document.getElementById("display_perimeters"),s=[],a=[],r=[];var g=function(t){var a,h,u,d,_,g,v,y,b,P,w,x,C,E,M,T,S,k,B,O,A=/[a-z]*?\|([^<]*)\|?/i;for(v=0,y=t.length;y>v;++v)if(h=t[v],u=h.getElementsByTagName("sym")[0].childNodes[0]||!1,!u||"Geocache"===u.nodeValue||"Geocache Found"===u.nodeValue||""===u.nodeValue){if(x=h.getElementsByTagNameNS("*","cache"),C=x[0].getElementsByTagNameNS("*","name"),E=x[0].getElementsByTagNameNS("*","difficulty"),M=x[0].getElementsByTagNameNS("*","terrain"),T=x[0].getElementsByTagNameNS("*","owner"),S=x[0].getElementsByTagNameNS("*","container"),k=new Date(h.getElementsByTagName("time")[0].childNodes[0].nodeValue),k=k.format("yyyy/mm/dd"),B=null,O=h.getElementsByTagName("type")[0].childNodes[0].nodeValue.match(A))for(b=0,P=e.length;P>b;++b)if(e[b].type===O[1]){a=L.icon({iconSize:[16,16],iconUrl:"img/ct"+e[b].id+".png",iconPopin:"img/"+e[b].id+".gif"});break}if(a){for(b=0,w=i.length;w>b;++b)if(i[b].id===S[0].childNodes[0].nodeValue.toLowerCase()){B=i[b].label;break}d=new L.latLng(parseFloat(h.getAttribute("lat")),parseFloat(h.getAttribute("lon"))),_=L.marker(d,{icon:a}).bindLabel(h.getElementsByTagName("name")[0].childNodes[0].nodeValue,{opacity:n.checked?1:0,noHide:!0,direction:"auto"}).addTo(l),g='
',g+='
'+h.getElementsByTagName("name")[0].childNodes[0].nodeValue+"
",g+="

",g+=' ',g+=' '+C[0].childNodes[0].nodeValue+"",g+="

",g+='
',T[0].childNodes[0]&&(g+="
Created by:
",g+='
'+T[0].childNodes[0].nodeValue+"
"),g+="
Difficulty:
",g+="
"+E[0].childNodes[0].nodeValue+"
",g+="
Cache size:
",g+="
"+B+"
",g+="
",g+='
',g+="
Date Hidden:
",g+="
"+k+"
",g+="
Terrain:
",g+="
"+M[0].childNodes[0].nodeValue+"
",g+="
",g+="
",_.bindPopup(L.popup({maxWidth:500}).setLatLng(d).setContent(g)),r.push(_),c=new L.circle(d,161,{weight:2,color:m,opacity:o.checked?p:0,fillColor:o.checked?m:"transparent",fillOpacity:o.checked?f:0,clickable:!1}),c.addTo(l),s.push(c),D.extend(d)}}},v=function(t){var e,i,n,o,s,r,h,u,c,d,p,m=0,f=t.length;for(m;f>m;++m)for(e=t[m],s=e.getElementsByTagName("trkseg"),n=0,c=s.length;c>n;++n){for(r=s[n],p=[],h=r.getElementsByTagName("trkpt"),o=0,d=h.length;d>o;++o)u=h[o],i=new L.latLng(parseFloat(u.getAttribute("lat")),parseFloat(u.getAttribute("lon"))),p.push(i),D.extend(i);var _=new L.Polyline(p,{color:"red"});_.addTo(l),a.push(_)}},y=function(t){var e=t.documentElement.getElementsByTagName("wpt"),i=t.documentElement.getElementsByTagName("trk");0===e.length&&0===i.length?alert("No waypoints found."):e.length>0&&g(e),0===e.length&&0===i.length?alert("No tracks found."):i.length>0&&v(i),D.isValid()&&l.fitBounds(D)},b=function(){t.each(r,function(t,e){n.checked?(r[e].setOpacity(1,!0),r[e].showLabel()):r[e].hideLabel()}),localStorage.setItem("option_label",+n.checked)},P=function(){t.each(r,function(t,e){s[e].setStyle({opacity:o.checked?p:0,fillColor:o.checked?m:"transparent",fillOpacity:o.checked?f:0})}),localStorage.setItem("option_perimeter",+o.checked)},w=function(){t.each(s,function(t,e){l.removeLayer(s[e])}),t.each(r,function(t,e){l.removeLayer(r[e])}),t.each(a,function(t,e){l.removeLayer(a[e])}),s.length=0,r.length=0,a.length=0,D=new L.LatLngBounds;for(var e=document.getElementById("list");e.firstChild;)e.removeChild(e.firstChild)},x=function(){localStorage.setItem("zoom",l.getZoom()),localStorage.setItem("latitude",l.getCenter().lat.toFixed(5)),localStorage.setItem("longitude",l.getCenter().lng.toFixed(5))},C=function(){localStorage.setItem("sidebar",+sidebar.isVisible())},E=function(){localStorage.setItem("baselayer",d.getActiveBaseLayer().name)},D=new L.LatLngBounds,M=function(){var e=L.tileLayer("http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © CloudMade'}),i=L.tileLayer("http://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Thunderforest'}),s=L.tileLayer("http://otile2.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapquest'}),a=L.tileLayer("http://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:18,minZoom:3,attribution:'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © OpenStreetMap'}),r=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"Aerial"}),h=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"AerialWithLabels"}),u=new L.BingLayer("AlBwVzyGYtseSIzUAiDWBVI6k8OLGHVnEYuSfWSzNtQJ7eltNWiL1wCkdbD6T_JJ",{type:"Road"}),c=new L.StamenTileLayer("toner"),p=new L.StamenTileLayer("watercolor"),m=46,f=2.9,_=6,g=1,v="OSM Legacy",y=1,D=1,M={"OSM Legacy":a,"Bing Aerial":r,"Bing Road":u,"Bing Hybrid":h,Mapquest:s,CloudMade:e,Transport:i,"Stamen Toner":c,"Stamen WaterColor":p},T={};window.localStorage&&(m=t.isNull(localStorage.getItem("latitude"))?m:parseFloat(localStorage.getItem("latitude")),f=t.isNull(localStorage.getItem("longitude"))?f:parseFloat(localStorage.getItem("longitude")),_=t.isNull(localStorage.getItem("zoom"))?_:+localStorage.getItem("zoom"),null!==localStorage.getItem("baselayer")&&t.has(M,localStorage.getItem("baselayer"))&&(v=localStorage.getItem("baselayer")),g=null===localStorage.getItem("sidebar")?g:+localStorage.getItem("sidebar"),y=null===localStorage.getItem("option_label")?y:+localStorage.getItem("option_label"),D=null===localStorage.getItem("option_perimeter")?D:+localStorage.getItem("option_perimeter")),l=L.map("map",{center:new L.LatLng(m,f),zoom:_,layers:t.values(t.pick(M,v)),attributionControl:!1,zoomControl:!0,inertia:!1}),d=L.control.activeLayers(M,T),d.addTo(l),L.control.scale({maxWidth:200}).addTo(l),sidebar=L.control.sidebar("sidebar",{position:"left",autoPan:!1}),l.addControl(sidebar),document.getElementById("sidebar").style.display="block",g&&t.delay(function(){sidebar.show()},250),y&&(n.checked="checked"),D&&(o.checked="checked"),l.addControl(new L.Control.FullScreen),L.control.locate({drawCircle:!1}).addTo(l),l.addControl(new L.Control.Options),document.getElementById("clear").addEventListener("click",w),n.addEventListener("change",b),o.addEventListener("change",P),L.DomEvent.addListener(l,"zoomend",x),L.DomEvent.addListener(l,"moveend",x),L.DomEvent.addListener(l,"baselayerchange",E),sidebar.on("hide",C),sidebar.on("show",C)},T=function(){return t.delay(function(){confirm("Geocaching GPX Viewer has been updated!\n\nDo you want to reload the page to use the new version?")&&window.location.reload(!0)},0),!1};window.applicationCache.addEventListener("updateready",T),window.applicationCache.status===window.applicationCache.UPDATEREADY&&T(),function(){var t,e=document.getElementById("flattr");t=document.createElement("iframe"),t.src="//api.flattr.com/button/view/?uid=Surfoo&button=compact&url="+encodeURIComponent(document.URL),t.title="Flattr",t.height=20,t.width=110,t.style.borderWidth=0,t.style.verticalAlign="middle",e.parentNode.insertBefore(t,e)}();var S=function(t){var e=document.createElement("li"),i=document.getElementById("list");e.innerHTML=t,i.appendChild(e)},k=function(t){var e=new FileReader,i=document.getElementById("loader"),n=[{name:t.name,size:t.size}];e.onprogress=function(){i.style.display="block"},e.onload=function(t){if(window.DOMParser?(h=new DOMParser,u=h.parseFromString(t.target.result,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(t.target.result)),u=h.parseFromString(t.target.result,"application/xml"),!u||"gpx"!==u.documentElement.tagName)return alert(n[0].name+" in an invalid file."),!1;for(var e=n[0].size,i=0;e>=1024;)e/=1024,++i;S(n[0].name+" ("+e.toFixed(2)+_[i]+")"),y(u)},e.onloadend=function(){i.style.display="none"},e.readAsText(t,"UTF-8")},B=function(e){var i=e.target.files||e.dataTransfer.files;t.each(i,function(t){k(t)})};window.File&&window.FileList&&window.FileReader?document.getElementById("files").addEventListener("change",B,!1):alert("Your browser doesn't support this feature, please upgrade it (or use Firefox or Chrome)."),window.onload=M()}(_); \ No newline at end of file