PageSourceSearch

https://www.hotelsinpuntarenas.com/build/packs/js/leaflet.pack.js

js hotelsinpuntarenas.com collected 2026-10-09 05:11:19 UTC 231,652 bytes, 1 lines download raw bytes

1!function(r,p,a){var e,i,t=r.L,_={};_.version="0.7.7","object"==typeof module&&"object"==typeof module.exports?module.exports=_:"function"==typeof define&&define.amd&&define(_),_.noConflict=function(){return r.L=t,this},(r.L=_).Util={extend:function(t){var e,i,n,o,s=Array.prototype.slice.call(arguments,1);for(i=0,n=s.length;i<n;i++)for(e in o=s[i]||{})o.hasOwnProperty(e)&&(t[e]=o[e]);return t},bind:function(t,e){var i=2<arguments.length?Array.prototype.slice.call(arguments,2):null;return function(){return t.apply(e,i||arguments)}},stamp:(e=0,i="_leaflet_id",function(t){return t[i]=t[i]||++e,t[i]}),invokeEach:function(t,e,i){var n,o;if("object"==typeof t){for(n in o=Array.prototype.slice.call(arguments,3),t)e.apply(i,[n,t[n]].concat(o));return!0}return!1},limitExecByInterval:function(i,n,o){var s,r;return function t(){var e=arguments;return s?void(r=!0):(s=!0,setTimeout(function(){s=!1,r&&(t.apply(o,e),r=!1)},n),void i.apply(o,e))}},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 _.Util.trim(t).split(/\s+/)},setOptions:function(t,e){return t.options=_.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,n){return t.replace(/\{ *([\w_]+) *\}/g,function(t,e){var i=n[e];if(i===a)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(n)),i})},isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function t(t){var e,i,n=["webkit","moz","o","ms"];for(e=0;e<n.length&&!i;e++)i=r[n[e]+t];return i}function o(t){var e=+new Date,i=Math.max(0,16-(e-n));return n=e+i,r.setTimeout(t,i)}var n=0,s=r.requestAnimationFrame||t("RequestAnimationFrame")||o,e=r.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){r.clearTimeout(t)};_.Util.requestAnimFrame=function(t,e,i,n){return t=_.bind(t,e),i&&s===o?void t():s.call(r,t,n)},_.Util.cancelAnimFrame=function(t){t&&e.call(r,t)}}(),_.extend=_.Util.extend,_.bind=_.Util.bind,_.stamp=_.Util.stamp,_.setOptions=_.Util.setOptions,_.Class=function(){},_.Class.extend=function(t){var e=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},i=function(){};i.prototype=this.prototype;var n=new i;for(var o in(n.constructor=e).prototype=n,this)this.hasOwnProperty(o)&&"prototype"!==o&&(e[o]=this[o]);t.statics&&(_.extend(e,t.statics),delete t.statics),t.includes&&(_.Util.extend.apply(null,[n].concat(t.includes)),delete t.includes),t.options&&n.options&&(t.options=_.extend({},n.options,t.options)),_.extend(n,t),n._initHooks=[];var s=this;return e.__super__=s.prototype,n.callInitHooks=function(){if(!this._initHooksCalled){s.prototype.callInitHooks&&s.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=n._initHooks.length;t<e;t++)n._initHooks[t].call(this)}},e},_.Class.include=function(t){_.extend(this.prototype,t)},_.Class.mergeOptions=function(t){_.extend(this.prototype.options,t)},_.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 n,o,s,l,h,u,d,c,m,f,g,v,y,L,w,P,b,C,x,S,T,D,E,M="_leaflet_events";_.Mixin={},_.Mixin.Events={addEventListener:function(t,e,i){if(_.Util.invokeEach(t,this.addEventListener,this,e,i))return this;var n,o,s,r,a,l,h,u=this[M]=this[M]||{},d=i&&i!==this&&_.stamp(i);for(n=0,o=(t=_.Util.splitWords(t)).length;n<o;n++)s={action:e,context:i||this},r=t[n],d?(l=(a=r+"_idx")+"_len",(h=u[a]=u[a]||{})[d]||(h[d]=[],u[l]=(u[l]||0)+1),h[d].push(s)):(u[r]=u[r]||[],u[r].push(s));return this},hasEventListeners:function(t){var e=this[M];return!!e&&(t in e&&0<e[t].length||t+"_idx"in e&&0<e[t+"_idx_len"])}
1,removeEventListener:function(t,e,i){if(!this[M])return this;if(!t)return this.clearAllEventListeners();if(_.Util.invokeEach(t,this.removeEventListener,this,e,i))return this;var n,o,s,r,a,l,h,u,d=this[M],c=i&&i!==this&&_.stamp(i);for(n=0,o=(t=_.Util.splitWords(t)).length;n<o;n++)if(h=(l=(s=t[n])+"_idx")+"_len",u=d[l],e){if(r=c&&u?u[c]:d[s]){for(a=r.length-1;0<=a;a--)r[a].action!==e||i&&r[a].context!==i||(r.splice(a,1)[0].action=_.Util.falseFn);i&&u&&0===r.length&&(delete u[c],d[h]--)}}else delete d[s],delete d[l],delete d[h];return this},clearAllEventListeners:function(){return delete this[M],this},fireEvent:function(t,e){if(!this.hasEventListeners(t))return this;var i,n,o,s,r,a=_.Util.extend({},e,{type:t,target:this}),l=this[M];if(l[t])for(n=0,o=(i=l[t].slice()).length;n<o;n++)i[n].action.call(i[n].context,a);for(r in s=l[t+"_idx"])if(i=s[r].slice())for(n=0,o=i.length;n<o;n++)i[n].action.call(i[n].context,a);return this},addOneTimeEventListener:function(t,e,i){if(_.Util.invokeEach(t,this.addOneTimeEventListener,this,e,i))return this;var n=_.bind(function(){this.removeEventListener(t,e,i).removeEventListener(t,n,i)},this);return this.addEventListener(t,e,i).addEventListener(t,n,i)}},_.Mixin.Events.on=_.Mixin.Events.addEventListener,_.Mixin.Events.off=_.Mixin.Events.removeEventListener,_.Mixin.Events.once=_.Mixin.Events.addOneTimeEventListener,_.Mixin.Events.fire=_.Mixin.Events.fireEvent,h=(l="ActiveXObject"in r)&&!p.addEventListener,u=navigator.userAgent.toLowerCase(),d=-1!==u.indexOf("webkit"),c=-1!==u.indexOf("chrome"),m=-1!==u.indexOf("phantom"),f=-1!==u.indexOf("android"),g=-1!==u.search("android [23]"),v=-1!==u.indexOf("gecko"),y=typeof orientation!=a+"",L=!r.PointerEvent&&r.MSPointerEvent,w=r.PointerEvent&&r.navigator.pointerEnabled||L,P="devicePixelRatio"in r&&1<r.devicePixelRatio||"matchMedia"in r&&r.matchMedia("(min-resolution:144dpi)")&&r.matchMedia("(min-resolution:144dpi)").matches,b=p.documentElement,C=l&&"transition"in b.style,x="WebKitCSSMatrix"in r&&"m11"in new r.WebKitCSSMatrix&&!g,S="MozPerspective"in b.style,T="OTransition"in b.style,D=!r.L_DISABLE_3D&&(C||x||S||T)&&!m,E=!r.L_NO_TOUCH&&!m&&(w||"ontouchstart"in r||r.DocumentTouch&&p instanceof r.DocumentTouch),_.Browser={ie:l,ielt9:h,webkit:d,gecko:v&&!d&&!r.opera&&!l,android:f,android23:g,chrome:c,ie3d:C,webkit3d:x,gecko3d:S,opera3d:T,any3d:D,mobile:y,mobileWebkit:y&&d,mobileWebkit3d:y&&x,mobileOpera:y&&r.opera,touch:E,msPointer:L,pointer:w,retina:P},_.Point=function(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e},_.Point.prototype={clone:function(){return new _.Point(this.x,this.y)},add:function(t){return this.clone()._add(_.point(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(_.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){var e=(t=_.point(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=_.point(t)).x===this.x&&t.y===this.y},contains:function(t){return t=_.point(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+_.Util.formatNum(this.x)+", "+_.Util.formatNum(this.y)+")"}},_.point=function(t,e,i){return t instanceof _.Point?t:_.Util.isArray(t)?new _.Point(t[0],t[1]):t===a||null===t?t:new _.Point(t,e,i)},_.Bounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])},_.Bounds.prototype={extend:function(t){return t=_.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 _.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new _.Point(this.min.x,this.max.y)},getTopRight:function(){return new _.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 _.Point?_.point(t):_.bounds(t))instanceof _.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=_.bounds(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},_.bounds=function(t,e){return!t||t instanceof _.Bounds?t:new _.Bounds(t,e)}
1,_.Transformation=function(t,e,i,n){this._a=t,this._b=e,this._c=i,this._d=n},_.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 _.Point((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}},_.DomUtil={get:function(t){return"string"==typeof t?p.getElementById(t):t},getStyle:function(t,e){var i=t.style[e];if(!i&&t.currentStyle&&(i=t.currentStyle[e]),(!i||"auto"===i)&&p.defaultView){var n=p.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i},getViewportOffset:function(t){var e,i=0,n=0,o=t,s=p.body,r=p.documentElement;do{if(i+=o.offsetTop||0,n+=o.offsetLeft||0,i+=parseInt(_.DomUtil.getStyle(o,"borderTopWidth"),10)||0,n+=parseInt(_.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,e=_.DomUtil.getStyle(o,"position"),o.offsetParent===s&&"absolute"===e)break;if("fixed"===e){i+=s.scrollTop||r.scrollTop||0,n+=s.scrollLeft||r.scrollLeft||0;break}if("relative"===e&&!o.offsetLeft){var a=_.DomUtil.getStyle(o,"width"),l=_.DomUtil.getStyle(o,"max-width"),h=o.getBoundingClientRect();("none"!==a||"none"!==l)&&(n+=h.left+o.clientLeft),i+=h.top+(s.scrollTop||r.scrollTop||0);break}o=o.offsetParent}while(o);o=t;do{if(o===s)break;i-=o.scrollTop||0,n-=o.scrollLeft||0,o=o.parentNode}while(o);return new _.Point(n,i)},documentIsLtr:function(){return _.DomUtil._docIsLtrCached||(_.DomUtil._docIsLtrCached=!0,_.DomUtil._docIsLtr="ltr"===_.DomUtil.getStyle(p.body,"direction")),_.DomUtil._docIsLtr},create:function(t,e,i){var n=p.createElement(t);return n.className=e,i&&i.appendChild(n),n},hasClass:function(t,e){if(t.classList!==a)return t.classList.contains(e);var i=_.DomUtil._getClass(t);return 0<i.length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)},addClass:function(t,e){if(t.classList!==a)for(var i=_.Util.splitWords(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!_.DomUtil.hasClass(t,e)){var s=_.DomUtil._getClass(t);_.DomUtil._setClass(t,(s?s+" ":"")+e)}},removeClass:function(t,e){t.classList!==a?t.classList.remove(e):_.DomUtil._setClass(t,_.Util.trim((" "+_.DomUtil._getClass(t)+" ").replace(" "+e+" "," ")))},_setClass:function(t,e){t.className.baseVal===a?t.className=e:t.className.baseVal=e},_getClass:function(t){return t.className.baseVal===a?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(t){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 e=p.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1},getTranslateString:function(t){var e=_.Browser.webkit3d,i=(e?",0":"")+")";return"translate"+(e?"3d":"")+"("+t.x+"px,"+t.y+"px"+i},getScaleString:function(t,e){return _.DomUtil.getTranslateString(e.add(e.multiplyBy(-1*t)))+(" scale("+t+") ")},setPosition:function(t,e,i){t._leaflet_pos=e,!i&&_.Browser.any3d?t.style[_.DomUtil.TRANSFORM]=_.DomUtil.getTranslateString(e):(t.style.left=e.x+"px",t.style.top=e.y+"px")},getPosition:function(t){return t._leaflet_pos}},_.DomUtil.TRANSFORM=_.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),_.DomUtil.TRANSITION=_.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_.DomUtil.TRANSITION_END="webkitTransition"===_.DomUtil.TRANSITION||"OTransition"===_.DomUtil.TRANSITION?_.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in p)_.extend(_.DomUtil,{disableTextSelection:function(){_.DomEvent.on(r,"selectstart",_.DomEvent.preventDefault)},enableTextSelection:function(){_.DomEvent.off(r,"selectstart",_.DomEvent.preventDefault)}});else{var e=_.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);_.extend(_.DomUtil,{disableTextSelection:function(){if(e){var t=p.documentElement.style;this._userSelect=t[e],t[e]="none"}},enableTextSelection:function(){e&&(p.documentElement.style[e]=this._userSelect,delete this._userSelect)}})}_.extend(_.DomUtil,{disableImageDrag:function(){_.DomEvent.on(r,"dragstart",_.DomEvent.preventDefault)},enableImageDrag:function(){_.DomEvent.off(r,"dragstart",_.DomEvent.preventDefault)}})}
1(),_.LatLng=function(t,e,i){if(t=parseFloat(t),e=parseFloat(e),isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=t,this.lng=e,i!==a&&(this.alt=parseFloat(i))},_.extend(_.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),_.LatLng.prototype={equals:function(t){return!!t&&(t=_.latLng(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=_.LatLng.MAX_MARGIN)},toString:function(t){return"LatLng("+_.Util.formatNum(this.lat,t)+", "+_.Util.formatNum(this.lng,t)+")"},distanceTo:function(t){t=_.latLng(t);var e=_.LatLng.DEG_TO_RAD,i=(t.lat-this.lat)*e,n=(t.lng-this.lng)*e,o=this.lat*e,s=t.lat*e,r=Math.sin(i/2),a=Math.sin(n/2),l=r*r+a*a*Math.cos(o)*Math.cos(s);return 12756274*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(t,e){var i=this.lng;return i=(i+(e=e||180))%(e-(t=t||-180))+(i<t||i===e?e:t),new _.LatLng(this.lat,i)}},_.latLng=function(t,e){return t instanceof _.LatLng?t:_.Util.isArray(t)?"number"==typeof t[0]||"string"==typeof t[0]?new _.LatLng(t[0],t[1],t[2]):null:t===a||null===t?t:"object"==typeof t&&"lat"in t?new _.LatLng(t.lat,"lng"in t?t.lng:t.lon):e===a?null:new _.LatLng(t,e)},_.LatLngBounds=function(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])},_.LatLngBounds.prototype={extend:function(t){if(!t)return this;var e=_.latLng(t);return(t=null!==e?e:_.latLngBounds(t))instanceof _.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 _.LatLng(t.lat,t.lng),this._northEast=new _.LatLng(t.lat,t.lng)):t instanceof _.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,o=Math.abs(e.lng-i.lng)*t;return new _.LatLngBounds(new _.LatLng(e.lat-n,e.lng-o),new _.LatLng(i.lat+n,i.lng+o))},getCenter:function(){return new _.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 _.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new _.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 _.LatLng?_.latLng(t):_.latLngBounds(t);var e,i,n=this._southWest,o=this._northEast;
1return t instanceof _.LatLngBounds?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=_.latLngBounds(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t){return!!t&&(t=_.latLngBounds(t),this._southWest.equals(t.getSouthWest())&&this._northEast.equals(t.getNorthEast()))},isValid:function(){return!(!this._southWest||!this._northEast)}},_.latLngBounds=function(t,e){return!t||t instanceof _.LatLngBounds?t:new _.LatLngBounds(t,e)},_.Projection={},_.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(t){var e=_.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=t.lng*e,s=n*e;return s=Math.log(Math.tan(Math.PI/4+s/2)),new _.Point(o,s)},unproject:function(t){var e=_.LatLng.RAD_TO_DEG,i=t.x*e,n=(2*Math.atan(Math.exp(t.y))-Math.PI/2)*e;return new _.LatLng(n,i)}},_.Projection.LonLat={project:function(t){return new _.Point(t.lng,t.lat)},unproject:function(t){return new _.LatLng(t.y,t.x)}},_.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 _.point(e,e)}},_.CRS.Simple=_.extend({},_.CRS,{projection:_.Projection.LonLat,transformation:new _.Transformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)}}),_.CRS.EPSG3857=_.extend({},_.CRS,{code:"EPSG:3857",projection:_.Projection.SphericalMercator,transformation:new _.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(t){return this.projection.project(t).multiplyBy(6378137)}}),_.CRS.EPSG900913=_.extend({},_.CRS.EPSG3857,{code:"EPSG:900913"}),_.CRS.EPSG4326=_.extend({},_.CRS,{code:"EPSG:4326",projection:_.Projection.LonLat,transformation:new _.Transformation(1/360,.5,-1/360,.5)}),_.Map=_.Class.extend({includes:_.Mixin.Events,options:{crs:_.CRS.EPSG3857,fadeAnimation:_.DomUtil.TRANSITION&&!_.Browser.android23,trackResize:!0,markerZoomAnimation:_.DomUtil.TRANSITION&&_.Browser.any3d},initialize:function(t,e){e=_.setOptions(this,e),this._initContainer(t),this._initLayout(),this._onResize=_.bind(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.center&&e.zoom!==a&&this.setView(_.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===a?this.getZoom():e,this._resetView(_.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),o=this.getSize().divideBy(2),s=(t instanceof _.Point?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,e,{zoom:i})},fitBounds:function(t,e){e=e||{},t=t.getBounds?t.getBounds():_.latLngBounds(t);var i=_.point(e.paddingTopLeft||e.padding||[0,0]),n=_.point(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));o=e.maxZoom?Math.min(e.maxZoom,o):o;
1var s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(r.add(a).divideBy(2).add(s),o);return this.setView(l,o,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(_.point(t)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(t){return t=_.latLngBounds(t),(this.options.maxBounds=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=_.stamp(t);return this._layers[e]||(!(this._layers[e]=t).options||isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[e]=t,this._updateZoomLevels()),this.options.zoomAnimation&&_.TileLayer&&t instanceof _.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,t.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(t)),this},removeLayer:function(t){var e=_.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&&_.TileLayer&&t instanceof _.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,t.off("load",this._onTileLayerLoad,this))),this},hasLayer:function(t){return!!t&&_.stamp(t)in this._layers},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=_.extend({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(_.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=a}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 _.LatLngBounds(e,i)},getMinZoom:function(){return this.options.minZoom===a?this._layersMinZoom===a?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===a?this._layersMaxZoom===a?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=_.latLngBounds(t);var n,o=this.getMinZoom()-(e?1:0),s=this.getMaxZoom(),r=this.getSize(),a=t.getNorthWest(),l=t.getSouthEast(),h=!0;for(i=_.point(i||[0,0]);o++,n=this.project(l,o).subtract(this.project(a,o)).add(i),(h=e?n.x<r.x||n.y<r.y:r.contains(n))&&o<=s;);return h&&e?null:e?o:o-1},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new _.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var t=this._getTopLeftPoint();return new _.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===a?this._zoom:e,this.options.crs.latLngToPoint(_.latLng(t),e)},unproject:function(t,e){return e=e===a?this._zoom:e,this.options.crs.pointToLatLng(_.point(t),e)},layerPointToLatLng:function(t){var e=_.point(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(_.latLng(t))._round()._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(t){return _.point(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return _.point(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(_.point(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(_.latLng(t)))},mouseEventToContainerPoint:function(t){return _.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=_.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;_.DomUtil.addClass(t,"leaflet-container"+(_.Browser.touch?" leaflet-touch":"")+(_.Browser.retina?" leaflet-retina":"")+(_.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var e=_.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-
1pane"),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||(_.DomUtil.addClass(t.markerPane,e),_.DomUtil.addClass(t.shadowPane,e),_.DomUtil.addClass(t.popupPane,e))},_createPane:function(t,e){return _.DomUtil.create("div",t,e||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(t){for(var e=0,i=(t=t?_.Util.isArray(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_resetView:function(t,e,i,n){var o=this._zoom!==e;n||(this.fire("movestart"),o&&this.fire("zoomstart")),this._zoom=e,this._initialCenter=t,this._initialTopLeftPoint=this._getNewTopLeftPoint(t),i?this._initialTopLeftPoint._add(this._getMapPanePos()):_.DomUtil.setPosition(this._mapPane,new _.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var s=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!i}),s&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(o||n)&&this.fire("zoomend"),this.fire("moveend",{hard:!i})},_rawPanBy:function(t){_.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var t,e=1/0,i=-1/0,n=this._getZoomSpan();for(t in this._zoomBoundLayers){var o=this._zoomBoundLayers[t];isNaN(o.options.minZoom)||(e=Math.min(e,o.options.minZoom)),isNaN(o.options.maxZoom)||(i=Math.max(i,o.options.maxZoom))}t===a?this._layersMaxZoom=this._layersMinZoom=a:(this._layersMaxZoom=i,this._layersMinZoom=e),n!==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(t){if(_.DomEvent){t=t||"on",_.DomEvent[t](this._container,"click",this._onMouseClick,this);var e,i,n=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(e=0,i=n.length;e<i;e++)_.DomEvent[t](this._container,n[e],this._fireMouseEvent,this);this.options.trackResize&&_.DomEvent[t](r,"resize",this._onResize,this)}},_onResize:function(){_.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=_.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())||_.DomEvent._skipped(t)||(this.fire("preclick"),this._fireMouseEvent(t))},_fireMouseEvent:function(t){if(this._loaded&&!_.DomEvent._skipped(t)){var e=t.type;if(e="mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,this.hasEventListeners(e)){"contextmenu"===e&&_.DomEvent.preventDefault(t);var i=this.mouseEventToContainerPoint(t),n=this.containerPointToLayerPoint(i),o=this.layerPointToLatLng(n);this.fire(e,{latlng:o,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;t<e;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 _.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())}
1,_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new _.Bounds(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);return this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new _.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),o=this.project(e.getSouthEast(),i).subtract(t.max),s=this._rebound(n.x,-o.x),r=this._rebound(n.y,-o.y);return new _.Point(s,r)},_rebound:function(t,e){return 0<t+e?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))}}),_.map=function(t,e){return new _.Map(t,e)},_.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(t){var e=_.LatLng.DEG_TO_RAD,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=this.R_MAJOR,s=this.R_MINOR,r=t.lng*e*o,a=n*e,l=s/o,h=Math.sqrt(1-l*l),u=h*Math.sin(a);u=Math.pow((1-u)/(1+u),.5*h);var d=Math.tan(.5*(.5*Math.PI-a))/u;return a=-o*Math.log(d),new _.Point(r,a)},unproject:function(t){for(var e,i=_.LatLng.RAD_TO_DEG,n=this.R_MAJOR,o=this.R_MINOR,s=t.x*i/n,r=o/n,a=Math.sqrt(1-r*r),l=Math.exp(-t.y/n),h=Math.PI/2-2*Math.atan(l),u=15,d=.1;1e-7<Math.abs(d)&&0<--u;)e=a*Math.sin(h),h+=d=Math.PI/2-2*Math.atan(l*Math.pow((1-e)/(1+e),.5*a))-h;return new _.LatLng(h*i,s)}},_.CRS.EPSG3395=_.extend({},_.CRS,{code:"EPSG:3395",projection:_.Projection.Mercator,transformation:(o=_.Projection.Mercator.R_MAJOR,s=.5/(Math.PI*o),new _.Transformation(s,.5,-s,.5))}),_.TileLayer=_.Class.extend({includes:_.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:_.Browser.mobile,updateWhenIdle:_.Browser.mobile},initialize:function(t,e){(e=_.setOptions(this,e)).detectRetina&&_.Browser.retina&&0<e.maxZoom&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomOffset++,0<e.minZoom&&e.minZoom--,this.options.maxZoom--),e.bounds&&(e.bounds=_.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=_.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!==a&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t,e){var i,n,o,s=t.children,r=-e(1/0,-1/0);for(n=0,o=s.length;n<o;n++)s[n]!==this._container&&(i=parseInt(s[n].style.zIndex,10),isNaN(i)||(r=e(r,i)));this.options.zIndex=this._container.style.zIndex=(isFinite(r)?r:0)+e(1,-1)},_updateOpacity:function(){var t,e=this._tiles;if(_.Browser.ielt9)for(t in e)_.DomUtil.setOpacity(e[t],this.options.opacity);else _.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var t=this._map._panes.tilePane;if(!this._container){if(this._container=_.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var e="leaflet-tile-container";this._bgBuffer=_.DomUtil.create("div",e,this._container),this._tileContainer=_.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&&i<e&&(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||i<this.options.minZoom)){var o=_.bounds(e.min.divideBy(n)._floor(),e.max.divideBy(n)._floor());this._addTilesFromCenterOut(o),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(o)}}},_addTilesFromCenterOut:function(t){var e,i,n,o=[],s=t.getCenter();for(e=t.min.y;e<=t.max.y;e++)for(i=t.min.x;i<=t.max.x;i++)n=new _.Point(i,e),this._tileShouldBeLoaded(n)&&o.push(n);var r=o.length;if(0!==r){o.sort(function(t,e){return t.distanceTo(s)-e.distanceTo(s)});var a=p.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=r,i=0;i<r;i++)this._addTile(o[i],a);this._tileContainer.appendChild(a)}},_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=this._getTileSize(),o=t.multiplyBy(n),s=o.add([n,n]),r=this._map.unproject(o),a=this._map.unproject(s);if(e.continuousWorld||e.noWrap||(r=r.wrap(),a=a.wrap()),!e.bounds.intersects([r,a]))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),(i<t.min.x||i>t.max.x||n<t.min.y||n>t.max.y)&&this._removeTile(o)},_removeTile:function(t){var e=this._tiles[t];this.fire("tileunload",{tile:e,url:e.src}),this.options.reuseTiles?(_.DomUtil.removeClass(e,"leaflet-tile-loaded"),this._unusedTiles.push(e)):e.parentNode===this._tileContainer&&this._tileContainer.removeChild(e),_.Browser.android||(e.onload=null,e.src=_.Util.emptyImageUrl),delete this._tiles[t]},_addTile:function(t,e){var i=this._getTilePos(t),n=this._getTile();_.DomUtil.setPosition(n,i,_.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 _.Util.template(this._url,_.extend({s:this._getSubdomain(t),z:t.z,x:t.x,y:t.y},this.options))},_getWrapTileNum:function(){return this._map.options.crs.getSize(this._map.getZoom()).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&&0<this._unusedTiles.length){var t=this._unusedTiles.pop();return this._resetTile(t),t}return this._createTile()},_resetTile:function(){},_createTile:function(){var t=_.DomUtil.create("img","leaflet-tile");return t.style.width=t.style.height=this._getTileSize()+"px",t.galleryimg="no",t.onselectstart=t.onmousemove=_.Util.falseFn,_.Browser.ielt9&&this.options.opacity!==a&&_.DomUtil.setOpacity(t,this.options.opacity),_.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&&_.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(_.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var t=this._layer;this.src!==_.Util.emptyImageUrl&&(_.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()}}),_.tileLayer=function(t,e){return new _.TileLayer(t,e)},_.TileLayer.WMS=_.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=_.extend({},this.defaultWmsParams),n=e.tileSize||this.options.tileSize;
1for(var o in e.detectRetina&&_.Browser.retina?i.width=i.height=2*n:i.width=i.height=n,e)this.options.hasOwnProperty(o)||"crs"===o||(i[o]=e[o]);this.wmsParams=i,_.setOptions(this,e)},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,_.TileLayer.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._map,i=this.options.tileSize,n=t.multiplyBy(i),o=n.add([i,i]),s=this._crs.project(e.unproject(n,t.z)),r=this._crs.project(e.unproject(o,t.z)),a=1.3<=this._wmsVersion&&this._crs===_.CRS.EPSG4326?[r.y,s.x,s.y,r.x].join(","):[s.x,r.y,r.x,s.y].join(","),l=_.Util.template(this._url,{s:this._getSubdomain(t)});return l+_.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+a},setParams:function(t,e){return _.extend(this.wmsParams,t),e||this.redraw(),this}}),_.tileLayer.wms=function(t,e){return new _.TileLayer.WMS(t,e)},_.TileLayer.Canvas=_.TileLayer.extend({options:{async:!1},initialize:function(t){_.setOptions(this,t)},redraw:function(){for(var t in this._map&&(this._reset({hard:!0}),this._update()),this._tiles)this._redrawTile(this._tiles[t]);return this},_redrawTile:function(t){this.drawTile(t,t._tilePoint,this._map._zoom)},_createTile:function(){var t=_.DomUtil.create("canvas","leaflet-tile");return t.width=t.height=this.options.tileSize,t.onselectstart=t.onmousemove=_.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)}}),_.tileLayer.canvas=function(t){return new _.TileLayer.Canvas(t)},_.ImageOverlay=_.Class.extend({includes:_.Mixin.Events,options:{opacity:1},initialize:function(t,e,i){this._url=t,this._bounds=_.latLngBounds(e),_.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&&_.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=_.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&_.Browser.any3d?_.DomUtil.addClass(this._image,"leaflet-zoom-animated"):_.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),_.extend(this._image,{galleryimg:"no",onselectstart:_.Util.falseFn,onmousemove:_.Util.falseFn,onload:_.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(t){var e=this._map,i=this._image,n=e.getZoomScale(t.zoom),o=this._bounds.getNorthWest(),s=this._bounds.getSouthEast(),r=e._latLngToNewLayerPoint(o,t.zoom,t.center),a=e._latLngToNewLayerPoint(s,t.zoom,t.center)._subtract(r),l=r._add(a._multiplyBy(.5*(1-1/n)));i.style[_.DomUtil.TRANSFORM]=_.DomUtil.getTranslateString(l)+" scale("+n+") "},_reset:function(){var t=this._image,e=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),i=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(e);_.DomUtil.setPosition(t,e),t.style.width=i.x+"px",t.style.height=i.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){_.DomUtil.setOpacity(this._image,this.options.opacity)}}),_.imageOverlay=function(t,e,i){return new _.ImageOverlay(t,e,i)},_.Icon=_.Class.extend({options:{className:""},initialize:function(t){_.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,n=this._getIconUrl(t);
1if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}return i=e&&"IMG"===e.tagName?this._createImg(n,e):this._createImg(n),this._setIconStyles(i,t),i},_setIconStyles:function(t,e){var i,n=this.options,o=_.point(n[e+"Size"]);!(i="shadow"===e?_.point(n.shadowAnchor||n.iconAnchor):_.point(n.iconAnchor))&&o&&(i=o.divideBy(2,!0)),t.className="leaflet-marker-"+e+" "+n.className,i&&(t.style.marginLeft=-i.x+"px",t.style.marginTop=-i.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||p.createElement("img")).src=t,e},_getIconUrl:function(t){return _.Browser.retina&&this.options[t+"RetinaUrl"]?this.options[t+"RetinaUrl"]:this.options[t+"Url"]}}),_.icon=function(t){return new _.Icon(t)},_.Icon.Default=_.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];_.Browser.retina&&"icon"===t&&(t+="-2x");var i=_.Icon.Default.imagePath;if(!i)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return i+"/marker-"+t+".png"}}),_.Icon.Default.imagePath=function(){var t,e,i,n,o=p.getElementsByTagName("script"),s=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(t=0,e=o.length;t<e;t++)if((i=o[t].src).match(s))return((n=i.split(s)[0])?n+"/":"")+"images"}(),_.Marker=_.Class.extend({includes:_.Mixin.Events,options:{icon:new _.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(t,e){_.setOptions(this,e),this._latlng=_.latLng(t)},onAdd:function(t){(this._map=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=_.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(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var t=this.options,e=this._map,i=e.options.zoomAnimation&&e.options.markerZoomAnimation?"leaflet-zoom-animated":"leaflet-zoom-hide",n=t.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),t.alt&&(n.alt=t.alt)),_.DomUtil.addClass(n,i),t.keyboard&&(n.tabIndex="0"),this._icon=n,this._initInteraction(),t.riseOnHover&&_.DomEvent.on(n,"mouseover",this._bringToFront,this).on(n,"mouseout",this._resetZIndex,this);var s=t.icon.createShadow(this._shadow),r=!1;s!==this._shadow&&(this._removeShadow(),r=!0),s&&_.DomUtil.addClass(s,i),this._shadow=s,t.opacity<1&&this._updateOpacity();var a=this._map._panes;o&&a.markerPane.appendChild(this._icon),s&&r&&a.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&_.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){_.DomUtil.setPosition(this._icon,t),this._shadow&&_.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"];_.DomUtil.addClass(t,"leaflet-clickable"),_.DomEvent.on(t,"click",this._onMouseClick,this),_.DomEvent.on(t,"keypress",this._onKeyPress,this);for(var i=0;i<e.length;i++)_.DomEvent.on(t,e[i],this._fireMouseEvent,this);_.Handler.MarkerDrag&&(this.dragging=new _.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(t){var e=this.dragging&&this.dragging.moved();(this.hasEventListeners(t.type)||e)&&_.DomEvent.stopPropagation(t),e||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(t.type,{originalEvent:t,latlng:this._latlng})},_onKeyPress:function(t){13===t.keyCode&&this.fire("click",{originalEvent:t,latlng:this._latlng})},_fireMouseEvent:function(t){this.fire(t.type,{originalEvent:t,latlng:this._latlng}),"contextmenu"===t.type&&this.hasEventListeners(t.type)&&_.DomEvent.preventDefault(t),"mousedown"!==t.type?_.DomEvent.stopPropagation(t):_.DomEvent.preventDefault(t)},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){_.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&_.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),_.marker=function(t,e){return new _.Marker(t,e)},_.DivIcon=_.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:p.createElement("div"),i=this.options;return!1!==i.html?e.innerHTML=i.html:e.innerHTML="",i.bgPos&&(e.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"),this._setIconStyles(e,"icon"),e},createShadow:function(){return null}}),_.divIcon=function(t){return new _.DivIcon(t)},_.Map.mergeOptions({closePopupOnClick:!0}),_.Popup=_.Class.extend({includes:_.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(t,e){_.setOptions(this,t),this._source=e,this._animated=_.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(t){this._map=t,this._container||this._initLayout();var e=t.options.fadeAnimation;e&&_.DomUtil.setOpacity(this._container,0),t._panes.popupPane.appendChild(this._container),t.on(this._getEvents(),this),this.update(),e&&_.DomUtil.setOpacity(this._container,1),this.fire("open"),t.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(t){return t.addLayer(this),this},openOn:function(t){return t.openPopup(this),this},onRemove:function(t){t._panes.popupPane.removeChild(this._container),_.Util.falseFn(this._container.offsetWidth),t.off(this._getEvents(),this),t.options.fadeAnimation&&_.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),t.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=_.latLng(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var t={viewreset:this._updatePosition};return this._animated&&(t.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&
1(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t,e="leaflet-popup",i=e+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),n=this._container=_.DomUtil.create("div",i);this.options.closeButton&&((t=this._closeButton=_.DomUtil.create("a",e+"-close-button",n)).href="#close",t.innerHTML="&#215;",_.DomEvent.disableClickPropagation(t),_.DomEvent.on(t,"click",this._onCloseButtonClick,this));var o=this._wrapper=_.DomUtil.create("div",e+"-content-wrapper",n);_.DomEvent.disableClickPropagation(o),this._contentNode=_.DomUtil.create("div",e+"-content",o),_.DomEvent.disableScrollPropagation(this._contentNode),_.DomEvent.on(o,"contextmenu",_.DomEvent.stopPropagation),this._tipContainer=_.DomUtil.create("div",e+"-tip-container",n),this._tip=_.DomUtil.create("div",e+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&o<n?(e.height=o+"px",_.DomUtil.addClass(t,s)):_.DomUtil.removeClass(t,s),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._animated,i=_.point(this.options.offset);e&&_.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);_.DomUtil.setPosition(this._container,e)},_adjustPan:function(){if(this.options.autoPan){var t=this._map,e=this._container.offsetHeight,i=this._containerWidth,n=new _.Point(this._containerLeft,-e-this._containerBottom);this._animated&&n._add(_.DomUtil.getPosition(this._container));var o=t.layerPointToContainerPoint(n),s=_.point(this.options.autoPanPadding),r=_.point(this.options.autoPanPaddingTopLeft||s),a=_.point(this.options.autoPanPaddingBottomRight||s),l=t.getSize(),h=0,u=0;o.x+i+a.x>l.x&&(h=o.x+i-l.x+a.x),o.x-h-r.x<0&&(h=o.x-r.x),o.y+e+a.y>l.y&&(u=o.y+e-l.y+a.y),o.y-u-r.y<0&&(u=o.y-r.y),(h||u)&&t.fire("autopanstart").panBy([h,u])}},_onCloseButtonClick:function(t){this._close(),_.DomEvent.stop(t)}}),_.popup=function(t,e){return new _.Popup(t,e)},_.Map.include({openPopup:function(t,e,i){if(this.closePopup(),!(t instanceof _.Popup)){var n=t;t=new _.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}}),_.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=_.point(this.options.icon.options.popupAnchor||[0,0]);return i=i.add(_.Popup.prototype.options.offset),e&&e.offset&&(i=i.add(e.offset)),e=_.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 _.Popup?(_.setOptions(t,e),(this._popup=t)._source=this):this._popup=new _.Popup(e,this).setContent(t),this}
1,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)}}),_.LayerGroup=_.Class.extend({initialize:function(t){var e,i;if(this._layers={},t)for(e=0,i=t.length;e<i;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)},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])[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 _.stamp(t)}}),_.layerGroup=function(t){return new _.LayerGroup(t)},_.FeatureGroup=_.LayerGroup.extend({includes:_.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(_.FeatureGroup.EVENTS,this._propagateEvent,this),_.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]),"off"in t&&t.off(_.FeatureGroup.EVENTS,this._propagateEvent,this),_.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 e=new _.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof _.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(t){t=_.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),_.featureGroup=function(t){return new _.FeatureGroup(t)},_.Path=_.Class.extend({includes:[_.Mixin.Events],statics:{CLIP_PADDING:(n=((_.Browser.mobile?1280:2e3)/Math.max(r.outerWidth,r.outerHeight)-1)/2,Math.max(0,Math.min(.5,n)))},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){_.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,_.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 _.setOptions(this,t),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),_.Map.include({_updatePathViewport:function(){var t=_.Path.CLIP_PADDING,e=this.getSize(),i=_.DomUtil.getPosition(this._mapPane).multiplyBy(-1)._subtract(e.multiplyBy(t)._roun
1d()),n=i.add(e.multiplyBy(1+2*t)._round());this._pathViewport=new _.Bounds(i,n)}}),_.Path.SVG_NS="http://www.w3.org/2000/svg",_.Browser.svg=!(!p.createElementNS||!p.createElementNS(_.Path.SVG_NS,"svg").createSVGRect),_.Path=_.Path.extend({statics:{SVG:_.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 p.createElementNS(_.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&&_.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){(_.Browser.svg||!_.Browser.vml)&&_.DomUtil.addClass(this._path,"leaflet-clickable"),_.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var t=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],e=0;e<t.length;e++)_.DomEvent.on(this._container,t[e],this._fireMouseEvent,this)}},_onMouseClick:function(t){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(t)},_fireMouseEvent:function(t){if(this._map&&this.hasEventListeners(t.type)){var e=this._map,i=e.mouseEventToContainerPoint(t),n=e.containerPointToLayerPoint(i),o=e.layerPointToLatLng(n);this.fire(t.type,{latlng:o,layerPoint:n,containerPoint:i,originalEvent:t}),"contextmenu"===t.type&&_.DomEvent.preventDefault(t),"mousemove"!==t.type&&_.DomEvent.stopPropagation(t)}}}),_.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=_.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&_.Browser.any3d?(_.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):_.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(t){var e=this.getZoomScale(t.zoom),i=this._getCenterOffset(t.center)._multiplyBy(-e)._add(this._pathViewport.min);this._pathRoot.style[_.DomUtil.TRANSFORM]=_.DomUtil.getTranslateString(i)+" scale("+e+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var t=this._pathViewport,e=t.min,i=t.max,n=i.x-e.x,o=i.y-e.y,s=this._pathRoot,r=this._panes.overlayPane;_.Browser.mobileWebkit&&r.removeChild(s),_.DomUtil.setPosition(s,e),s.setAttribute("width",n),s.setAttribute("height",o),s.setAttribute("viewBox",[e.x,e.y,n,o].join(" ")),_.Browser.mobileWebkit&&r.appendChild(s)}}}),_.Path.include({bindPopup:function(t,e){return t instanceof _.Popup?this._popup=t:((!this._popup||e)&&(this._popup=new _.Popup(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(t){return this._popup&&(t=t||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:t})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(t){this._popup.setLatLng(t.latlng),this._map.openPopup(this._popup)}}),_.Browser.vml=!_.Browser.svg&&function(){try{var t=p.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),_.Path=_.Browser.svg||!_.Browser.vml?_.Path:_.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return p.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return p.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return p.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var t=this._container=this._createElement("shape");_.DomUtil.addClass(t,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&_.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")).endcap="round",n.appendChild(t)),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,i.dashArray?t.dashStyle=_.Util.isArray(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):t.dashStyle="",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;
1t.display="none",this._path.v=this.getPathString()+" ",t.display=""}}),_.Map.include(_.Browser.svg||!_.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var t=this._pathRoot=p.createElement("div");t.className="leaflet-vml-container",this._panes.overlayPane.appendChild(t),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),_.Browser.canvas=!!p.createElement("canvas").getContext,_.Path=_.Path.SVG&&!r.L_PREFER_CANVAS||!_.Browser.canvas?_.Path:_.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(t){return _.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.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!_.Path._updateRequest&&(_.Path._updateRequest=_.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){_.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),t.lineCap&&(this._ctx.lineCap=t.lineCap),t.lineJoin&&(this._ctx.lineJoin=t.lineJoin)},_drawPath:function(){var t,e,i,n,o,s;for(this._ctx.beginPath(),t=0,i=this._parts.length;t<i;t++){for(e=0,n=this._parts[t].length;e<n;e++)o=this._parts[t][e],s=(0===e?"move":"line")+"To",this._ctx[s](o.x,o.y);this instanceof _.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.fillRule||"evenodd")),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 dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(t){this._containsPoint(t.layerPoint)&&this.fire(t.type,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)))}}),_.Map.include(_.Path.SVG&&!r.L_PREFER_CANVAS||!_.Browser.canvas?{}:{_initPathRoot:function(){var t,e=this._pathRoot;e||((e=this._pathRoot=p.createElement("canvas")).style.position="absolute",(t=this._canvasCtx=e.getContext("2d")).lineCap="round",t.lineJoin="round",this._panes.overlayPane.appendChild(e),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;_.DomUtil.setPosition(n,e),n.width=i.x,n.height=i.y,n.getContext("2d").translate(-e.x,-e.y)}}}),_.LineUtil={simplify:function(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=this._reducePoints(t,i),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 i=t.length,n=new(typeof Uint8Array!=a+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,this._simplifyDPStep(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s},_simplifyDPStep:function(t,e,i,n,o){var s,r,a,l=0;for(r=n+1;r<=o-1;r++)l<(a=this._sqClosestPointOnSegment(t[r],t[n],t[o],!0))&&(s=r,l=a);i<l&&(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;n<s;n++)this._sqDist(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}
1,clipSegment:function(t,e,i,n){var o,s,r,a=n?this._lastCode:this._getBitCode(t,i),l=this._getBitCode(e,i);for(this._lastCode=l;;){if(!(a|l))return[t,e];if(a&l)return!1;o=a||l,s=this._getEdgeIntersection(t,e,o,i),r=this._getBitCode(s,i),o===a?(t=s,a=r):(e=s,l=r)}},_getEdgeIntersection:function(t,e,i,n){var o=e.x-t.x,s=e.y-t.y,r=n.min,a=n.max;return 8&i?new _.Point(t.x+o*(a.y-t.y)/s,a.y):4&i?new _.Point(t.x+o*(r.y-t.y)/s,r.y):2&i?new _.Point(a.x,t.y+s*(a.x-t.x)/o):1&i?new _.Point(r.x,t.y+s*(r.x-t.x)/o):void 0},_getBitCode:function(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.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 o,s=e.x,r=e.y,a=i.x-s,l=i.y-r,h=a*a+l*l;return 0<h&&(1<(o=((t.x-s)*a+(t.y-r)*l)/h)?(s=i.x,r=i.y):0<o&&(s+=a*o,r+=l*o)),a=t.x-s,l=t.y-r,n?a*a+l*l:new _.Point(s,r)}},_.Polyline=_.Path.extend({initialize:function(t,e){_.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;t<e;t++)this._originalPoints[t]=this._map.latLngToLayerPoint(this._latlngs[t])},getPathString:function(){for(var t=0,e=this._parts.length,i="";t<e;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(_.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,o=this._parts,s=null,r=0,a=o.length;r<a;r++)for(var l=o[r],h=1,u=l.length;h<u;h++){e=l[h-1],i=l[h];var d=_.LineUtil._sqClosestPointOnSegment(t,e,i,!0);d<n&&(n=d,s=_.LineUtil._sqClosestPointOnSegment(t,e,i))}return s&&(s.distance=Math.sqrt(n)),s},getBounds:function(){return new _.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(t,e){var i,n,o=e?t:[];for(i=0,n=t.length;i<n;i++){if(_.Util.isArray(t[i])&&"number"!=typeof t[i][0])return;o[i]=_.latLng(t[i])}return o},_initEvents:function(){_.Path.prototype._initEvents.call(this)},_getPathPartStr:function(t){for(var e,i=_.Path.VML,n=0,o=t.length,s="";n<o;n++)e=t[n],i&&e._round(),s+=(n?"L":"M")+e.x+" "+e.y;return s},_clipPoints:function(){var t,e,i,n=this._originalPoints,o=n.length;if(this.options.noClip)this._parts=[n];else{this._parts=[];var s=this._parts,r=this._map._pathViewport,a=_.LineUtil;for(e=t=0;t<o-1;t++)(i=a.clipSegment(n[t],n[t+1],r,t))&&(s[e]=s[e]||[],s[e].push(i[0]),(i[1]!==n[t+1]||t===o-2)&&(s[e].push(i[1]),e++))}},_simplifyPoints:function(){for(var t=this._parts,e=_.LineUtil,i=0,n=t.length;i<n;i++)t[i]=e.simplify(t[i],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),_.Path.prototype._updatePath.call(this))}}),_.polyline=function(t,e){return new _.Polyline(t,e)},_.PolyUtil={},_.PolyUtil.clipPolygon=function(t,e){var i,n,o,s,r,a,l,h,u,d=[1,4,2,8],c=_.LineUtil;for(n=0,l=t.length;n<l;n++)t[n]._code=c._getBitCode(t[n],e);for(s=0;s<4;s++){for(h=d[s],i=[],n=0,o=(l=t.length)-1;n<l;o=n++)r=t[n],a=t[o],r._code&h?a._code&h||((u=c._getEdgeIntersection(a,r,h,e))._code=c._getBitCode(u,e),i.push(u)):(a._code&h&&((u=c._getEdgeIntersection(a,r,h,e))._code=c._getBitCode(u,e),i.push(u)),i.push(r));t=i}return t},_.Polygon=_.Polyline.extend({options:{fill:!0},initialize:function(t,e){_.Polyline.prototype.initialize.call(this,t,e),this._initWithHoles(t)},_initWithHoles:function(t){var e,i,n;if(t&&_.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;e<i;e++)(n=this._holes[e]=this._convertLatLngs(this._holes[e]))[0].equals(n[n.length-1])&&n.pop();2<=(t=this._latlngs).length&&t[0].equals(t[t.length-1])&&t.pop()},projectLatlngs:function(){var t,e,i,n;if(_.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes)for(t=0,i=this._holes.length;t<i;t++)for(this._holePoints[t]=[],e=0,n=this._holes[t].length;e<n;e++)this._holePoints[t][e]=this._map.latLngToLayerPoint(this._holes[t][e])},setLatLngs:function(t){return t&&_.Util.isArray(t[0])&&"number"!=typeof t[0][0]?(this._initWithHoles(t),this.redraw()):_.Polyline.prototype.setLatLngs.call(this,t)},_clipPoints:function(){var t=this._originalPoints,e=[];
1if(this._parts=[t].concat(this._holePoints),!this.options.noClip){for(var i=0,n=this._parts.length;i<n;i++){var o=_.PolyUtil.clipPolygon(this._parts[i],this._map._pathViewport);o.length&&e.push(o)}this._parts=e}},_getPathPartStr:function(t){return _.Polyline.prototype._getPathPartStr.call(this,t)+(_.Browser.svg?"z":"x")}}),_.polygon=function(t,e){return new _.Polygon(t,e)},function(){function t(t){return _.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){i<n?t.setLatLngs(e[i++]):this.removeLayer(t)},this);i<n;)this.addLayer(new t(e[i++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}_.MultiPolyline=t(_.Polyline),_.MultiPolygon=t(_.Polygon),_.multiPolyline=function(t,e){return new _.MultiPolyline(t,e)},_.multiPolygon=function(t,e){return new _.MultiPolygon(t,e)}}(),_.Rectangle=_.Polygon.extend({initialize:function(t,e){_.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=_.latLngBounds(t)).getSouthWest
1(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}),_.rectangle=function(t,e){return new _.Rectangle(t,e)},_.Circle=_.Path.extend({initialize:function(t,e,i){_.Path.prototype.initialize.call(this,i),this._latlng=_.latLng(t),this._mRadius=e},options:{fill:!0},setLatLng:function(t){return this._latlng=_.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 _.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()?"":_.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(_.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+e<t.min.x||i.y+e<t.min.y}}),_.circle=function(t,e,i){return new _.Circle(t,e,i)},_.CircleMarker=_.Circle.extend({options:{radius:10,weight:2},initialize:function(t,e){_.Circle.prototype.initialize.call(this,t,null,e),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){_.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(t){return _.Circle.prototype.setLatLng.call(this,t),this._popup&&this._popup._isOpen&&this._popup.setLatLng(t),this},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}}),_.circleMarker=function(t,e){return new _.CircleMarker(t,e)},_.Polyline.include(_.Path.CANVAS?{_containsPoint:function(t,e){var i,n,o,s,r,a,l=this.options.weight/2;for(_.Browser.touch&&(l+=10),i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&_.LineUtil.pointToSegmentDistance(t,a[o],a[n])<=l)return!0;return!1}}:{}),_.Polygon.include(_.Path.CANVAS?{_containsPoint:function(t){var e,i,n,o,s,r,a,l,h=!1;if(_.Polyline.prototype._containsPoint.call(this,t,!0))return!0;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)i=e[s],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&&(h=!h);return h}}:{}),_.Circle.include(_.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}}:{}),_.CircleMarker.include(_.Path.CANVAS?{_updateStyle:function(){_.Path.prototype._updateStyle.call(this)}}:{}),_.GeoJSON=_.FeatureGroup.extend({initialize:function(t,e){_.setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=_.Util.isArray(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(o[e]);return this}var s=this.options;if(!s.filter||s.filter(t)){var r=_.GeoJSON.geometryToLayer(t,s.pointToLayer,s.coordsToLatLng,s);return r.feature=_.GeoJSON.asFeature(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)}},resetStyle:function(t){var e=this.options.style;e&&(_.Util.extend(t.options,t.defaultOptions),this._setLayerStyle(t,e))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),_.extend(_.GeoJSON,{geometryToLayer:function(t,e,i,n){var o,s,r,a,l="Feature"===t.type?t.geometry:t,h=l.coordinates,u=[];switch(i=i||this.coordsToLatLng,l.type){case"Point":return o=i(h),e?e(t,o):new _.Marker(o);case"MultiPoint":for(r=0,a=h.length;r<a;r++)o=i(h[r]),u.push(e?e(t,o):new _.Marker(o));return new _.FeatureGroup(u);case"LineString":return s=this.coordsToLatLngs(h,0,i),new _.Polyline(s,n);case"Polygon":if(2===h.length&&!h[1].length)throw new Error("Invalid GeoJSON object.");return s=this.coordsToLatLngs(h,1,i),new _.Polygon(s,n);case"MultiLineString":return s=this.coordsToLatLngs(h,1,i),new _.MultiPolyline(s,n);case"MultiPolygon":return s=this.coordsToLatLngs(h,2,i),new _.MultiPolygon(s,n);case"GeometryCollection":for(r=0,a=l.geometries.length;r<a;r++)u.push(this.geometryToLayer({geometry:l.geometries[r],type:"Feature",properties:t.properties},e,i,n));return new _.FeatureGroup(u);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(t){return new _.LatLng(t[1],t[0],t[2])}
1,coordsToLatLngs:function(t,e,i){var n,o,s,r=[];for(o=0,s=t.length;o<s;o++)n=e?this.coordsToLatLngs(t[o],e-1,i):(i||this.coordsToLatLng)(t[o]),r.push(n);return r},latLngToCoords:function(t){var e=[t.lng,t.lat];return t.alt!==a&&e.push(t.alt),e},latLngsToCoords:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(_.GeoJSON.latLngToCoords(t[i]));return e},getFeature:function(t,e){return t.feature?_.extend({},t.feature,{geometry:e}):_.GeoJSON.asFeature(e)},asFeature:function(t){return"Feature"===t.type?t:{type:"Feature",properties:{},geometry:t}}});var k={toGeoJSON:function(){return _.GeoJSON.getFeature(this,{type:"Point",coordinates:_.GeoJSON.latLngToCoords(this.getLatLng())})}};_.Marker.include(k),_.Circle.include(k),_.CircleMarker.include(k),_.Polyline.include({toGeoJSON:function(){return _.GeoJSON.getFeature(this,{type:"LineString",coordinates:_.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),_.Polygon.include({toGeoJSON:function(){var t,e,i,n=[_.GeoJSON.latLngsToCoords(this.getLatLngs())];if(n[0].push(n[0][0]),this._holes)for(t=0,e=this._holes.length;t<e;t++)(i=_.GeoJSON.latLngsToCoords(this._holes[t])).push(i[0]),n.push(i);return _.GeoJSON.getFeature(this,{type:"Polygon",coordinates:n})}}),function(){function o(t){return function(){var e=[];return this.eachLayer(function(t){e.push(t.toGeoJSON().geometry.coordinates)}),_.GeoJSON.getFeature(this,{type:t,coordinates:e})}}_.MultiPolyline.include({toGeoJSON:o("MultiLineString")}),_.MultiPolygon.include({toGeoJSON:o("MultiPolygon")}),_.LayerGroup.include({toGeoJSON:function(){var e,t=this.feature&&this.feature.geometry,i=[];if(t&&"MultiPoint"===t.type)return o("MultiPoint").call(this);var n=t&&"GeometryCollection"===t.type;return this.eachLayer(function(t){t.toGeoJSON&&(e=t.toGeoJSON(),i.push(n?e.geometry:_.GeoJSON.asFeature(e)))}),n?_.GeoJSON.getFeature(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}})}(),_.geoJson=function(t,e){return new _.GeoJSON(t,e)},_.DomEvent={addListener:function(e,t,i,n){var o,s,r,a=_.stamp(i),l="_leaflet_"+t+a;return e[l]?this:(o=function(t){return i.call(n||e,t||_.DomEvent._getEvent())},_.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,o,a):(_.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,o,a),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",o,!1),e.addEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?(s=o,r="mouseenter"===t?"mouseover":"mouseout",o=function(t){return _.DomEvent._checkMouse(e,t)?s(t):void 0},e.addEventListener(r,o,!1)):("click"===t&&_.Browser.android&&(s=o,o=function(t){return _.DomEvent._filterClick(t,s)}),e.addEventListener(t,o,!1)):"attachEvent"in e&&e.attachEvent("on"+t,o),e[l]=o,this))},removeListener:function(t,e,i){var n=_.stamp(i),o="_leaflet_"+e+n,s=t[o];return s&&(_.Browser.pointer&&0===e.indexOf("touch")?this.removePointerListener(t,e,n):_.Browser.touch&&"dblclick"===e&&this.removeDoubleTapListener?this.removeDoubleTapListener(t,n):"removeEventListener"in t?"mousewheel"===e?(t.removeEventListener("DOMMouseScroll",s,!1),t.removeEventListener(e,s,!1)):"mouseenter"===e||"mouseleave"===e?t.removeEventListener("mouseenter"===e?"mouseover":"mouseout",s,!1):t.removeEventListener(e,s,!1):"detachEvent"in t&&t.detachEvent("on"+e,s),t[o]=null),this},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,_.DomEvent._skipped(t),this},disableScrollPropagation:function(t){var e=_.DomEvent.stopPropagation;return _.DomEvent.on(t,"mousewheel",e).on(t,"MozMousePixelScroll",e)},disableClickPropagation:function(t){for(var e=_.DomEvent.stopPropagation,i=_.Draggable.START.length-1;0<=i;i--)_.DomEvent.on(t,_.Draggable.START[i],e);return _.DomEvent.on(t,"click",_.DomEvent._fakeStop).on(t,"dblclick",e)},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return _.DomEvent.preventDefault(t).stopPropagation(t)},getMousePosition:function(t,e){if(!e)return new _.Point(t.clientX,t.clientY);var i=e.getBoundingClientRect();return new _.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){_.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(t){return!1}return i!==t},_getEvent:function(){var t=r.event;if(!t)for(var e=arguments.callee.caller;e&&(!(t=e.arguments[0])||r.Event!==t.constructor);)e=e.caller;return t},_filterClick:function(t,e){var i=t.timeStamp||t.originalEvent.timeStamp,n=_.DomEvent._lastClick&&i-_.DomEvent._lastClick;return n&&100<n&&n<500||t.target._simulatedClick&&!t._simulated?void _.DomEvent.stop(t):(_.DomEvent._lastClick=i,e(t))}},_.DomEvent.on=_.DomEvent.addListener,_.DomEvent.off=_.DomEvent.removeListener,_.Draggable=_.Class.extend({includes:_.Mixin.Events,statics:{START:_.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=_.Draggable.START.length-1;0<=t;t--)_.DomEvent.on(this._dragStartTarget,_.Draggable.START[t],this._onDown,this);this._enabled=!0}},disable:function(){if(this._enabled){for(var t=_.Draggable.START.length-1;0<=t;t--)_.DomEvent.off(this._dragStartTarget,_.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)&&(_.DomEvent.stopPropagation(t),!_.Draggable._disabled&&(_.DomUtil.disableImageDrag(),_.DomUtil.disableTextSelection(),!this._moving))){var e=t.touches?t.touches[0]:t;this._startPoint=new _.Point(e.clientX,e.clientY),this._startPos=this._newPos=_.DomUtil.getPosition(this._element),_.DomEvent.on(p,_.Draggable.MOVE[t.type],this._onMove,this).on(p,_.Draggable.END[t.type],this._onUp,this)}},_onMove:function(t){if(t.touches&&1<t.touches.length)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new _.Point(e.clientX,e.clientY).subtract(this._startPoint);(i.x||i.y)&&(_.Browser.touch&&Math.abs(i.x)+Math.abs(i.y)<3||(_.DomEvent.preventDefault(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=_.DomUtil.getPosition(this._element).subtract(i),_.DomUtil.addClass(p.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,_.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,_.Util.cancelAnimFrame
1(this._animRequest),this._animRequest=_.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))}},_updatePosition:function(){this.fire("predrag"),_.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){for(var t in _.DomUtil.removeClass(p.body,"leaflet-dragging"),this._lastTarget&&(_.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_.Draggable.MOVE)_.DomEvent.off(p,_.Draggable.MOVE[t],this._onMove).off(p,_.Draggable.END[t],this._onUp);_.DomUtil.enableImageDrag(),_.DomUtil.enableTextSelection(),this._moved&&this._moving&&(_.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),_.Handler=_.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}}),_.Map.mergeOptions({dragging:!0,inertia:!_.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:_.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),_.Map.Drag=_.Handler.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new _.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),200<t-this._times[0]&&(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,r=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=+new Date-this._lastTime,o=!i.inertia||n>i.inertiaThreshold||!this._positions[0];if(e.fire("dragend",t),o)e.fire("moveend");else{var s=this._lastPos.subtract(this._positions[0]),r=(this._lastTime+n-this._times[0])/1e3,a=i.easeLinearity,l=s.multiplyBy(a/r),h=l.distanceTo([0,0]),u=Math.min(i.inertiaMaxSpeed,h),d=l.multiplyBy(u/h),c=u/(i.inertiaDeceleration*a),p=d.multiplyBy(-c/2).round();p.x&&p.y?(p=e._limitOffset(p,e.options.maxBounds),_.Util.requestAnimFrame(function(){e.panBy(p,{duration:c,easeLinearity:a,noMoveStart:!0})})):e.fire("moveend")}}}),_.Map.addInitHook("addHandler","dragging",_.Map.Drag),_.Map.mergeOptions({doubleClickZoom:!0}),_.Map.DoubleClickZoom=_.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)}}),_.Map.addInitHook("addHandler","doubleClickZoom",_.Map.DoubleClickZoom),_.Map.mergeOptions({scrollWheelZoom:!0}),_.Map.ScrollWheelZoom=_.Handler.extend({addHooks:function(){_.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),_.DomEvent.on(this._map._container,"MozMousePixelScroll",_.DomEvent.preventDefault),this._delta=0},removeHooks:function(){_.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),_.DomEvent.off(this._map._container,"MozMousePixelScroll",_.DomEvent.preventDefault)},_onWheelScroll:function(t){var e=_.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(_.bind(this._performZoom,this),i),_.DomEvent.preventDefault(t),_.DomEvent.stopPropagation(t)},_performZoom:function(){var t=this._map,e=this._delta,i=t.getZoom();e=0<e?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))}}),_.Map.addInitHook("addHandler","scrollWheelZoom",_.Map.ScrollWheelZoom),_.extend(_.DomEvent,{_touchstart:_.Browser.msPointer?"MSPointerDown":_.Browser.pointer?"pointerdown":"touchstart",_touchend:_.Browser.msPointer?"MSPointerUp":_.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(t,s,e){function i(t){var e;if(_.Browser.pointer?(d.push(t.pointerId),e=d.length):e=t.touches.length,!(1<e)){var i=Date.now(),n=i-(r||i);a=t.touches?t.touches[0]:t,l=0<n&&n<=250,r=i}}function n(t){if(_.Browser.pointer){var e=d.indexOf(t.pointerId);if(-1===e)return;d.splice(e,1)}if(l){if(_.Browser.pointer){var i,n={};for(var o in a)i=a[o],n[o]="function"==typeof i?i.bind(a):i;a=n}
1a.type="dblclick",s(a),r=null}}var r,a,l=!1,o="_leaflet_",h=this._touchstart,u=this._touchend,d=[];t[o+h+e]=i,t[o+u+e]=n;var c=_.Browser.pointer?p.documentElement:t;return t.addEventListener(h,i,!1),c.addEventListener(u,n,!1),_.Browser.pointer&&c.addEventListener(_.DomEvent.POINTER_CANCEL,n,!1),this},removeDoubleTapListener:function(t,e){var i="_leaflet_";return t.removeEventListener(this._touchstart,t[i+this._touchstart+e],!1),(_.Browser.pointer?p.documentElement:t).removeEventListener(this._touchend,t[i+this._touchend+e],!1),_.Browser.pointer&&p.documentElement.removeEventListener(_.DomEvent.POINTER_CANCEL,t[i+this._touchend+e],!1),this}}),_.extend(_.DomEvent,{POINTER_DOWN:_.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:_.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:_.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:_.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,e,n,i){var o=this._pointers,s=function(t){"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&_.DomEvent.preventDefault(t);for(var e=!1,i=0;i<o.length;i++)if(o[i].pointerId===t.pointerId){e=!0;break}e||o.push(t),t.touches=o.slice(),t.changedTouches=[t],n(t)};if(t["_leaflet_touchstart"+i]=s,t.addEventListener(this.POINTER_DOWN,s,!1),!this._pointerDocumentListener){var r=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}};p.documentElement.addEventListener(this.POINTER_UP,r,!1),p.documentElement.addEventListener(this.POINTER_CANCEL,r,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(t,e,i,n){function o(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons){for(var e=0;e<s.length;e++)if(s[e].pointerId===t.pointerId){s[e]=t;break}t.touches=s.slice(),t.changedTouches=[t],i(t)}}var s=this._pointers;return t["_leaflet_touchmove"+n]=o,t.addEventListener(this.POINTER_MOVE,o,!1),this},addPointerListenerEnd:function(t,e,i,n){var o=this._pointers,s=function(t){for(var e=0;e<o.length;e++)if(o[e].pointerId===t.pointerId){o.splice(e,1);break}t.touches=o.slice(),t.changedTouches=[t],i(t)};return t["_leaflet_touchend"+n]=s,t.addEventListener(this.POINTER_UP,s,!1),t.addEventListener(this.POINTER_CANCEL,s,!1),this},removePointerListener:function(t,e,i){var n=t["_leaflet_"+e+i];switch(e){case"touchstart":t.removeEventListener(this.POINTER_DOWN,n,!1);break;case"touchmove":t.removeEventListener(this.POINTER_MOVE,n,!1);break;case"touchend":t.removeEventListener(this.POINTER_UP,n,!1),t.removeEventListener(this.POINTER_CANCEL,n,!1)}return this}}),_.Map.mergeOptions({touchZoom:_.Browser.touch&&!_.Browser.android23,bounceAtZoomLimits:!0}),_.Map.TouchZoom=_.Handler.extend({addHooks:function(){_.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]),o=e._getCenterLayerPoint();this._startCenter=i.add(n)._divideBy(2),this._startDist=i.distanceTo(n),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),e._panAnim&&e._panAnim.stop(),_.DomEvent.on(p,"touchmove",this._onTouchMove,this).on(p,"touchend",this._onTouchEnd,this),_.DomEvent.preventDefault(t)}},_onTouchMove:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&this._zooming){var i=e.mouseEventToLayerPoint(t.touches[0]),n=e.mouseEventToLayerPoint(t.touches[1]);this._scale=i.distanceTo(n)/this._startDist,this._delta=i._add(n)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(e.options.bounceAtZoomLimits||!(e.getZoom()===e.getMin
1Zoom()&&this._scale<1||e.getZoom()===e.getMaxZoom()&&1<this._scale))&&(this._moved||(_.DomUtil.addClass(e._mapPane,"leaflet-touching"),e.fire("movestart").fire("zoomstart"),this._moved=!0),_.Util.cancelAnimFrame(this._animRequest),this._animRequest=_.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),_.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,!1,!0)},_onTouchEnd:function(){if(this._moved&&this._zooming){var t=this._map;this._zooming=!1,_.DomUtil.removeClass(t._mapPane,"leaflet-touching"),_.Util.cancelAnimFrame(this._animRequest),_.DomEvent.off(p,"touchmove",this._onTouchMove).off(p,"touchend",this._onTouchEnd);var e=this._getScaleOrigin(),i=t.layerPointToLatLng(e),n=t.getZoom(),o=t.getScaleZoom(this._scale)-n,s=0<o?Math.ceil(o):Math.floor(o),r=t._limitZoom(n+s),a=t.getZoomScale(r)/this._scale;t._animateZoom(i,r,e,a)}else this._zooming=!1},_getScaleOrigin:function(){var t=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(t)}}),_.Map.addInitHook("addHandler","touchZoom",_.Map.TouchZoom),_.Map.mergeOptions({tap:!0,tapTolerance:15}),_.Map.Tap=_.Handler.extend({addHooks:function(){_.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(_.DomEvent.preventDefault(t),this._fireClick=!0,1<t.touches.length)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new _.Point(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&_.DomUtil.addClass(i,"leaflet-active"),this._holdTimeout=setTimeout(_.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),_.DomEvent.on(p,"touchmove",this._onMove,this).on(p,"touchend",this._onUp,this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),_.DomEvent.off(p,"touchmove",this._onMove,this).off(p,"touchend",this._onUp,this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&_.DomUtil.removeClass(i,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new _.Point(e.clientX,e.clientY)},_simulateEvent:function(t,e){var i=p.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,r,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}}),_.Browser.touch&&!_.Browser.pointer&&_.Map.addInitHook("addHandler","tap",_.Map.Tap),_.Map.mergeOptions({boxZoom:!0}),_.Map.BoxZoom=_.Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._moved=!1},addHooks:function(){_.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_.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)&&(_.DomUtil.disableTextSelection(),_.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(t),void _.DomEvent.on(p,"mousemove",this._onMouseMove,this).on(p,"mouseup",this._onMouseUp,this).on(p,"keydown",this._onKeyDown,this))},_onMouseMove:function(t){this._moved||(this._box=_.DomUtil.create("div","leaflet-zoom-box",this._pane),_.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),o=n.subtract(e),s=new _.Point(Math.min(n.x,e.x),Math.min(n.y,e.y));_.DomUtil.setPosition(i,s),this._moved=!0,i.style.width=Math.max(0,Math.abs(o.x)-4)+"px",i.style.height=Math.max(0,Math.abs(o.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),_.DomUtil.enableTextSelection(),_.DomUtil.enableImageDrag(),_.DomEvent.off(p,"mousemove",this._onMouseMove).off(p,"mouseup",this._onMouseUp).off(p,"ke
1ydown",this._onKeyDown)},_onMouseUp:function(t){this._finish();var e=this._map,i=e.mouseEventToLayerPoint(t);if(!this._startLayerPoint.equals(i)){var n=new _.LatLngBounds(e.layerPointToLatLng(this._startLayerPoint),e.layerPointToLatLng(i));e.fitBounds(n),e.fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}}),_.Map.addInitHook("addHandler","boxZoom",_.Map.BoxZoom),_.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),_.Map.Keyboard=_.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"),_.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;_.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 t=p.body,e=p.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),r.scrollTo(n,i)}},_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;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;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;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){_.DomEvent.on(p,"keydown",this._onKeyDown,this)},_removeHooks:function(){_.DomEvent.off(p,"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])}_.DomEvent.stop(t)}}),_.Map.addInitHook("addHandler","keyboard",_.Map.Keyboard),_.Handler.MarkerDrag=_.Handler.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new _.Draggable(t,t)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),_.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(),_.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=_.DomUtil.getPosition(t._icon),n=t._map.layerPointToLatLng(i);e&&_.DomUtil.setPosition(e,i),t._latlng=n,t.fire("move",{latlng:n}).fire("drag")},_onDragEnd:function(t){this._marker.fire("moveend").fire("dragend",t)}}),_.Control=_.Class.extend({options:{position:"topright"},initialize:function(t){_.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 _.DomUtil.addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?
1n.insertBefore(e,n.firstChild):n.appendChild(e),this},removeFrom:function(t){var e=this.getPosition();return t._controlCorners[e].removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(t),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),_.control=function(t){return new _.Control(t)},_.Map.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.removeFrom(this),this},_initControlPos:function(){function t(t,e){var i=o+t+" "+o+e;n[t+e]=_.DomUtil.create("div",i,s)}var n=this._controlCorners={},o="leaflet-",s=this._controlContainer=_.DomUtil.create("div",o+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),_.Control.Zoom=_.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=_.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,o,s){var r=_.DomUtil.create("a",i,n);r.innerHTML=t,r.href="#",r.title=e;var a=_.DomEvent.stopPropagation;return _.DomEvent.on(r,"click",a).on(r,"mousedown",a).on(r,"dblclick",a).on(r,"click",_.DomEvent.preventDefault).on(r,"click",o,s).on(r,"click",this._refocusOnMap,s),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";_.DomUtil.removeClass(this._zoomInButton,e),_.DomUtil.removeClass(this._zoomOutButton,e),t._zoom===t.getMinZoom()&&_.DomUtil.addClass(this._zoomOutButton,e),t._zoom===t.getMaxZoom()&&_.DomUtil.addClass(this._zoomInButton,e)}}),_.Map.mergeOptions({zoomControl:!0}),_.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new _.Control.Zoom,this.addControl(this.zoomControl))}),_.control.zoom=function(t){return new _.Control.Zoom(t)},_.Control.Attribution=_.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){_.setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in this._container=_.DomUtil.create("div","leaflet-control-attribution"),_.DomEvent.disableClickPropagation(this._container),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())}}),_.Map.mergeOptions({attributionControl:!0}),_.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new _.Control.Attribution).addTo(this))}),_.control.attribution=function(t){return new _.Control.Attribution(t)},_.Control.Scale=_.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=_.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)}
1,_addScales:function(t,e,i){t.metric&&(this._mScale=_.DomUtil.create("div",e+"-line",i)),t.imperial&&(this._iScale=_.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)*(t.getNorthEast().lng-t.getSouthWest().lng)/180,n=this._map.getSize(),o=this.options,s=0;0<n.x&&(s=i*(o.maxWidth/n.x)),this._updateScales(o,s)},_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=e<1e3?e+" m":e/1e3+" km"},_updateImperial:function(t){var e,i,n,o=3.2808399*t,s=this._iScale;5280<o?(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 e*(i=10<=i?10:5<=i?5:3<=i?3:2<=i?2:1)}}),_.control.scale=function(t){return new _.Control.Scale(t)},_.Control.Layers=_.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(t,e,i){for(var n in _.setOptions(this,i),this._layers={},this._lastZIndex=0,this._handlingClick=!1,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,this).off("layerremove",this._onLayerChange,this)},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=_.stamp(t);return delete this._layers[e],this._update(),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=_.DomUtil.create("div",t);e.setAttribute("aria-haspopup",!0),_.Browser.touch?_.DomEvent.on(e,"click",_.DomEvent.stopPropagation):_.DomEvent.disableClickPropagation(e).disableScrollPropagation(e);var i=this._form=_.DomUtil.create("form",t+"-list");if(this.options.collapsed){_.Browser.android||_.DomEvent.on(e,"mouseover",this._expand,this).on(e,"mouseout",this._collapse,this);var n=this._layersLink=_.DomUtil.create("a",t+"-toggle",e);n.href="#",n.title="Layers",_.Browser.touch?_.DomEvent.on(n,"click",_.DomEvent.stop).on(n,"click",this._expand,this):_.DomEvent.on(n,"focus",this._expand,this),_.DomEvent.on(i,"click",function(){setTimeout(_.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=_.DomUtil.create("div",t+"-base",i),this._separator=_.DomUtil.create("div",t+"-separator",i),this._overlaysList=_.DomUtil.create("div",t+"-overlays",i),e.appendChild(i)},_addLayer:function(t,e,i){var n=_.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[_.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,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"';e&&(i+=' checked="checked"'),i+="/>";var n=p.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=p.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=p.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers",n),e.layerId=_.stamp(t.layer),_.DomEvent.on(e,"click",this._onInputClick,this);var o=p.createElement("span");return o.innerHTML=" "+t.name,i.appendChild(e),i.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),i},_onInputClick:function(){var t,e,i,n=this._form.getElementsByTagName("input"),o=n.length;for(this._handlingClick=!0,t=0;t<o;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(){_.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}
1),_.control.layers=function(t,e,i){return new _.Control.Layers(t,e,i)},_.PosAnimation=_.Class.extend({includes:_.Mixin.Events,run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._newPos=e,this.fire("start"),t.style[_.DomUtil.TRANSITION]="all "+(i||.25)+"s cubic-bezier(0,0,"+(n||.5)+",1)",_.DomEvent.on(t,_.DomUtil.TRANSITION_END,this._onTransitionEnd,this),_.DomUtil.setPosition(t,e),_.Util.falseFn(t.offsetWidth),this._stepTimer=setInterval(_.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(_.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),_.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 t,e,i,n=this._el,o=r.getComputedStyle(n);if(_.Browser.any3d){if(!(i=o[_.DomUtil.TRANSFORM].match(this._transformRe)))return;t=parseFloat(i[1]),e=parseFloat(i[2])}else t=parseFloat(o.left),e=parseFloat(o.top);return new _.Point(t,e,!0)},_onTransitionEnd:function(){_.DomEvent.off(this._el,_.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[_.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}
1),_.Map.include({setView:function(t,e,i){if((e=e===a?this._zoom:this._limitZoom(e),t=this._limitCenter(_.latLng(t),e,this.options.maxBounds),i=i||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!i.reset&&!0!==i)&&(i.animate!==a&&(i.zoom=_.extend({animate:i.animate},i.zoom),i.pan=_.extend({animate:i.animate},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan)))return clearTimeout(this._sizeTimer),this;return this._resetView(t,e),this},panBy:function(t,e){if(e=e||{},!(t=_.point(t).round()).x&&!t.y)return this;if(this._panAnim||(this._panAnim=new _.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){_.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(){_.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._floor();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i))&&(this.panBy(i,e),!0)}}),_.PosAnimation=_.DomUtil.TRANSITION?_.PosAnimation:_.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=_.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=_.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var t=+new Date-this._startTime,e=1e3*this._duration;t<e?this._runFrame(this._easeOut(t/e)):(this._runFrame(1),this._complete())},_runFrame:function(t){var e=this._startPos.add(this._offset.multiplyBy(t));_.DomUtil.setPosition(this._el,e),this.fire("step")},_complete:function(){_.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),_.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),_.DomUtil.TRANSITION&&_.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&_.DomUtil.TRANSITION&&_.Browser.any3d&&!_.Browser.android23&&!_.Browser.mobileOpera,this._zoomAnimated&&_.DomEvent.on(this._mapPane,_.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),_.Map.include(_.DomUtil.TRANSITION?{_catchTransitionEnd:function(t){this._animatingZoom&&0<=t.propertyName.indexOf("transform")&&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||!1===i.animate||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!(!0!==i.animate&&!this.getSize().contains(o))&&(this.fire("movestart").fire("zoomstart"),this._animateZoom(t,e,s,n,null,!0),!0)},_animateZoom:function(t,e,i,n,o,s,r){r||(this._animatingZoom=!0),_.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=t,this._animateToZoom=e,_.Draggable&&(_.Draggable._disabled=!0),_.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:t,zoom:e,origin:i,scale:n,delta:o,backwards:s}),setTimeout(_.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,_.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),_.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),_.Draggable&&(_.Draggable._disabled=!1)},this))}}:{}),_.TileLayer.include({_animateZoom:function(t){this._animating||(this._animating=!0,this._prepareBgBuffer());var e=this._bgBuffer,i=_.DomUtil.TRANSFORM,n=t.delta?_.DomUtil.getTranslateString(t.delta):e.style[i],o=_.DomUtil.getScaleStr
1ing(t.scale,t.origin);e.style[i]=t.backwards?o+" "+n:n+" "+o},_endZoomAnim:function(){var t=this._tileContainer,e=this._bgBuffer;t.style.visibility="",t.parentNode.appendChild(t),_.Util.falseFn(e.offsetWidth);var i=this._map.getZoom();(i>this.options.maxZoom||i<this.options.minZoom)&&this._clearBgBuffer(),this._animating=!1},_clearBgBuffer:function(){var t=this._map;!t||t._animatingZoom||t.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[_.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var t=this._tileContainer,e=this._bgBuffer,i=this._getLoadedTilesPercentage(e),n=this._getLoadedTilesPercentage(t);return e&&.5<i&&n<.5?(t.style.visibility="hidden",void this._stopLoadingImages(t)):(e.style.visibility="hidden",e.style[_.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;e<i;e++)n[e].complete&&o++;return o/i},_stopLoadingImages:function(t){var e,i,n,o=Array.prototype.slice.call(t.getElementsByTagName("img"));for(e=0,i=o.length;e<i;e++)(n=o[e]).complete||(n.onload=_.Util.falseFn,n.onerror=_.Util.falseFn,n.src=_.Util.emptyImageUrl,n.parentNode.removeChild(n))}}),_.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(t){if(t=this._locateOptions=_.extend(this._defaultLocateOptions,t),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=_.bind(this._handleGeolocationResponse,this),i=_.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 _.LatLng(e,i),o=180*t.coords.accuracy/40075017,s=o/Math.cos(_.LatLng.DEG_TO_RAD*e),r=_.latLngBounds([e-o,i-s],[e+o,i+s]),a=this._locateOptions;if(a.setView){var l=Math.min(this.getBoundsZoom(r),a.maxZoom);this.setView(n,l)}var h={latlng:n,bounds:r,timestamp:t.timestamp};for(var u in t.coords)"number"==typeof t.coords[u]&&(h[u]=t.coords[u]);this.fire("locationfound",h)}})}(window,document),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._providers=[],this.metaRequested=!1},tile2quad:function(t,e,i){for(var n="",o=i;0<o;o--){var s=0,r=1<<o-1;0!=(t&r)&&(s+=1),0!=(e&r)&&(s+=2),n+=s}return n},getTileUrl:function(t){var e=this._getZoomForUrl(),i=this.options.subdomains,n=this.options.subdomains[Math.abs((t.x+t.y)%i.length)];return this._url.replace("{subdomain}",n).replace("{quadkey}",this.tile2quad(t.x,t.y,e)).replace("{culture}",this.options.culture)},loadMetadata:function(){if(!this.metaRequested){this.metaRequested=!0;var i=this,n="_bing_metadata_"+L.Util.stamp(this);window[n]=function(t){window[n]=void 0;var e=document.getElementById(n);if(e.parentNode.removeChild(e),t.errorDetails)throw new Error(t.errorDetails);i.initMetadata(t)};var t="file:"===document.location.protocol?"http":document.location.protocol.slice(0,-1),e=t+"://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.options.type+"?include=ImageryProviders&jsonp="+n+"&key="+this._key+"&UriScheme="+t,o=document.createElement("script");o.type="text/javascript",o.src=e,o.id=n,document.getElementsByTagName("head")[0].appendChild(o)}},initMetadata:function(t){var e=t.resourceSets[0].resources[0];if(this.options.subdomains=e.imageUrlSubdomains,this._url=e.imageUrl,e.imageryProviders)for(var i=0;i<e.imageryProviders.length;i++)for(var n=e.imageryProviders[i],o=0;o<n.coverageAreas.length;o++){var s=n.coverageAreas[o],r={zoomMin:s.zoomMin,zoomMax:s.zoomMax,active:!1},a=new L.LatLngBounds(new L.LatLng(s.bbox[0]+.01,s.bbox[1]+.01),new L.LatLng(s.bbox[2]-.01,s.bbox[3]-.01));r.bounds=a,r.attrib=n.attribution,this._providers.push(r)}this._update()},_update:function(){null!==this._url&&this._map&&(this._update_attribution(),L.TileLayer.prototype._update.apply(this,[]))},_update_attribution:function(){for(var t=L.latLngBounds(this._map.getBounds().getSouthWest
1().wrap(),this._map.getBounds().getNorthEast().wrap()),e=this._map.getZoom(),i=0;i<this._providers.length;i++){var n=this._providers[i];e<=n.zoomMax&&e>=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)}},onAdd:function(t){this.loadMetadata(),L.TileLayer.prototype.onAdd.apply(this,[t])},onRemove:function(t){for(var e=0;e<this._providers.length;e++){var i=this._providers[e];i.active&&this._map.attributionControl&&(this._map.attributionControl.removeAttribution(i.attrib),i.active=!1)}L.TileLayer.prototype.onRemove.apply(this,[t])}}),L.bingLayer=function(t,e){return new L.BingLayer(t,e)},function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;((e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).L||(e.L={})).Routing=t()}}(function(){return function s(r,a,l){function h(i,t){if(!a[i]){if(!r[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(u)return u(i,!0);var n=new Error("Cannot find module '"+i+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[i]={exports:{}};r[i][0].call(o.exports,function(t){var e=r[i][1][t];return h(e||t)},o,o.exports,s,r,a,l)}return a[i].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)h(l[t]);return h}({1:[function(t,e,i){void 0!==e&&(e.exports=function(t,e,i){var n=!1;if(void 0===window.XMLHttpRequest)return e(Error("Browser not supported"));if(void 0===i){var o=t.match(/^\s*https?:\/\/[^\/]*/);i=o&&o[0]!==location.protocol+"//"+location.domain+(location.port?":"+location.port:"")}var s=new window.XMLHttpRequest;if(i&&!("withCredentials"in s)){s=new window.XDomainRequest;var r=e;e=function(){if(n)r.apply(this,arguments);else{var t=this,e=arguments;setTimeout(function(){r.apply(t,e)},0)}}}function a(){var t;void 0===s.status||200<=(t=s.status)&&t<300||304===t?e.call(s,null,s):e.call(s,s,null)}return"onload"in s?s.onload=a:s.onreadystatechange=function(){4===s.readyState&&a()},s.onerror=function(t){e.call(this,t||!0,null),e=function(){}},s.onprogress=function(){},s.ontimeout=function(t){e.call(this,t,null),e=function(){}},s.onabort=function(t){e.call(this,t,null),e=function(){}},s.open("GET",t,!0),s.send(null),n=!0,s})},{}],2:[function(t,e,i){var n={};function a(t,e){t=Math.round(t*e),(t<<=1)<0&&(t=~t);for(var i="";32<=t;)i+=String.fromCharCode(63+(32|31&t)),t>>=5;return i+=String.fromCharCode(t+63)}n.decode=function(t,e){for(var i,n=0,o=0,s=0,r=[],a=0,l=0,h=null,u=Math.pow(10,e||5);n<t.length;){for(h=null,l=a=0;l|=(31&(h=t.charCodeAt(n++)-63))<<a,a+=5,32<=h;);for(i=1&l?~(l>>1):l>>1,a=l=0;l|=(31&(h=t.charCodeAt(n++)-63))<<a,a+=5,32<=h;);o+=i,s+=1&l?~(l>>1):l>>1,r.push([o/u,s/u])}return r},n.encode=function(t,e){if(!t.length)return"";for(var i=Math.pow(10,e||5),n=a(t[0][0],i)+a(t[0][1],i),o=1;o<t.length;o++){var s=t[o],r=t[o-1];n+=a(s[0]-r[0],i),n+=a(s[1]-r[1],i)}return n},void 0!==typeof e&&(e.exports=n)},{}],3:[function(t,e,i){!function(){"use strict";L.Routing=L.Routing||{},L.Routing.Autocomplete=L.Class.extend({options:{timeout:500,blurTimeout:100,noResultsMessage:"No results found."},initialize:function(t,e,i,n){L.setOptions(this,n),this._elem=t,this._resultFn=n.resultFn?L.Util.bind(n.resultFn,n.resultContext):null,this._autocomplete=n.autocompleteFn?L.Util.bind(n.autocompleteFn,n.autocompleteContext):null,this._selectFn=L.Util.bind(e,i),this._container=L.DomUtil.create("div","leaflet-routing-geocoder-result"),this._resultTable=L.DomUtil.create("table","",this._container),L.DomEvent.addListener(this._elem,"input",this._keyPressed,this),L.DomEvent.addListener(this._elem,"keypress",this._keyPressed,this),L.DomEvent.addListener(this._elem,"keydown",this._keyDown,this),L.DomEvent.addListener(this._elem,"blur",function(){this._isOpen&&this.close()},this)},close:function(){L.DomUtil.removeClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!1},_open:function(){var t=this._elem.getBoundingClientRect();if(!this._container.parentElement){var e=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,i=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;this._container.style.left=t.left+e+"px",this._container.style.top=t.bottom+i+"px",this._container.style.width=t.right-t.left+"px",document.body.appendChild(this._container)}L.DomUtil.addClass(this._container,"leaflet-routing-geocoder-result-open"),this._isOpen=!0},_setResults:function(t){var e,i,n,o;for(delete this._selection,this._results=t;this._resultTable.firstChild;)this._resultTable.removeChild(this._resultTable.firstChild);for(e=0;e<t.length;e++)(i=L.DomUtil.create("tr","",this._resultTable)).setAttribute("data-result-index",e),n=L.DomUtil.create("td","",i),o=document.createTextNode(t[e].name),n.appendChild(o),L.DomEvent.addListener(n,"mousedown",L.DomEvent.preventDefault),L.DomEvent.addListener(n,"click",this._createClickListener(t[e]));e||(i=L.DomUtil.create("tr","",this._resultTable),(n=L.DomUtil.create("td","leaflet-routing-geocoder-no-results",i)).innerHTML=this.options.noResultsMessage),this._open(),0<t.length&&this._select(1)},_createClickListener:function(t){var e=this._resultSelected(t);return L.bind(function(){this._elem.blur(),e()},this)},_resultSelected:function(t){return L.bind(function(){this.close(),this._elem.value=t.name,this._lastCompletedText=t.name,this._selectFn(t)},this)},_keyPressed:function(t){var e;return this._isOpen&&13===t.keyCode&&this._selection?(e=parseInt(this._selection.getAttribute("data-result-index"),10),this._resultSelected(this._results[e])(),void L.DomEvent.preventDefault(t)):13!==t.keyCode?this._autocomplete&&document.activeElement===this._elem?(this._timer&&clearTimeout(this._timer),void(this._timer=setTimeout(L.Util.bind(function(){this._complete(this._autocomplete)},this),this.options.timeout))):void this._unselect():void this._complete(this._resultFn,!0)},_select:function(t){var e=this._selection;e&&(L.DomUtil.removeClass(e.firstChild,"leaflet-routing-geocoder-selected"),e=e[0<t?"nextSibling":"previousSibling"]),e||(e=this._resultTable[0<t?"firstChild":"lastChild"]),e&&(L.DomUtil.addClass(e.firstChild,"leaflet-routing-geocoder-selected"),this._selection=e)},_unselect:function(){this._selection&&L.DomUtil.removeClass(this._selection.firstChild,"leaflet-routing-geocoder-selected"),delete this._selection},_keyDown:function(t){if(this._isOpen)switch(t.keyCode){case 27:return this.close(),void L.DomEvent.preventDefault(t);case 38:return this._select(-1),void L.DomEvent.preventDefault(t);case 40:return this._select(1),void L.DomEvent.preventDefault(t)}},_complete:function(t,e){var i=this._elem.value;function n(t){this._lastCompletedText=i,e&&1===t.length?this._resultSelected(t[0])():this._setResults(t)}i&&(i!==this._lastCompletedText?t(i,n,this):e&&n.call(this,this._results))}})}()},{}],4:[function(e,i,t){(function(t){!function(){"use strict";var r="undefined"!=typeof window?window.L:void 0!==t?t.L:null;r.Routing=r.Routing||{},r.extend(r.Routing,e("./L.Routing.Itinerary")),r.extend(r.Routing,e("./L.Routing.Line")),r.extend(r.Routing,e("./L.Routing.Plan")),r.extend(r.Routing,e("./L.Routing.OSRMv1")),r.extend(r.Routing,e("./L.Routing.Mapbox")),r.extend(r.Routing,e("./L.Routing.ErrorControl")),r.Routing.Control=r.Routing.Itinerary.extend({options:{fitSelectedRoutes:"smart",routeLine:function(t,e){return r.Routing.line(t,e)},autoRoute:!0,routeWhileDragging:!1,routeDragInterval:500,waypointMode:"connect",showAlternatives:!1,defaultErrorHandler:function(t){console.error("Routing error:",t.error)}},initialize:function(t){r.Util.setOptions(this,t),this._router=this.options.router||new r.Routing.OSRMv1(t),this._plan=this.options.plan||r.Routing.plan(this.options.waypoints,t),this._requestCount=0,r.Routing.Itinerary.prototype.initialize.call(this,t),this.on("routeselected",this._routeSelected,this),this.options.defaultErrorHandler&&this.on("routingerror",this.options.defaultErrorHandler),this._plan.on("waypointschanged",this._onWaypointsChanged,this),t.routeWhileDragging&&this._setupRouteDragging(),this.options.autoRoute&&this.route()},onAdd:function(t){var e=r.Routing.Itinerary.prototype.onAdd.call(this,t);return this._map=t,this._map.addLayer(this._plan),this._map.on("zoomend",function(){if(this._selectedRoute&&this._router.requiresMoreDetail){var t=this._map;this._router.requiresMoreDetail(this._selectedRoute,t.getZoom(),t.getBounds())&&this.route({callback:r.bind(function(t,e){var i;if(!t){for(i=0;i<e.length;i++)this._routes[i].properties=e[i].properties;this._updateLineCallback(t,e)}},this),simplifyGeometry:!1,geometryOnly:!0})}},this),this._plan.options.geocoder&&e.insertBefore(this._plan.createGeocoders(),e.firstChild),e},onRemove:function(t){return this._line&&t.removeLayer(this._line),t.removeLayer(this._plan),r.Routing.Itinerary.prototype.onRemove.call(this,t)},getWaypoints:function(){return this._plan.getWaypoints()},setWaypoints:function(t){return this._plan.setWaypoints(t),this},spliceWaypoints:function(){return this._plan.spliceWaypoints.apply(this._plan,arguments)},getPlan:function(){return this._plan},getRouter:function(){return this._router},_routeSelected:function(t){var e=this._selectedRoute=t.route,i=this.options.showAlternatives&&t.alternatives,n=this.options.fitSelectedRoutes,o="smart"===n&&!this._waypointsVisible()||"smart"!==n&&n;this._updateLines({route:e,alternatives:i}),o&&this._map.fitBounds(this._line.getBounds()),"snap"===this.options.waypointMode&&(this._plan.off("waypointschanged",this._onWaypointsChanged,this),this.setWaypoints(e.waypoints),this._plan.on("waypointschanged",this._onWaypointsChanged,this))},_waypointsVisible:function(){var t,e,i,n,o,s=this.getWaypoints();try{for(t=this._map.getSize(),n=0;n<s.length;n++)o=this._map.latLngToLayerPoint(s[n].latLng),e?e.extend(o):e=r.bounds([o]);return((i=e.getSize()).x>t.x/5||i.y>t.y/5)&&this._waypointsInViewport()}catch(t){return!1}},_waypointsInViewport:function(){var t,e,i=this.getWaypoints();try{t=this._map.getBounds()}catch(t){return!1}for(e=0;e<i.length;e++)if(t.contains(i[e].latLng))return!0;return!1},_updateLines:function(t){var e=void 0===this.options.addWaypoints||this.options.addWaypoints;this._clearLines(),this._alternatives=[],t.alternatives&&t.alternatives.forEac
1h(function(t,e){this._alternatives[e]=this.options.routeLine(t,r.extend({isAlternative:!0},this.options.altLineOptions||this.options.lineOptions)),this._alternatives[e].addTo(this._map),this._hookAltEvents(this._alternatives[e])},this),this._line=this.options.routeLine(t.route,r.extend({addWaypoints:e,extendToWaypoints:"connect"===this.options.waypointMode},this.options.lineOptions)),this._line.addTo(this._map),this._hookEvents(this._line)},_hookEvents:function(t){t.on("linetouched",function(t){this._plan.dragNewWaypoint(t)},this)},_hookAltEvents:function(t){t.on("linetouched",function(t){var e=this._routes.slice(),i=e.splice(t.target._route.routesIndex,1)[0];this.fire("routeselected",{route:i,alternatives:e})},this)},_onWaypointsChanged:function(t){this.options.autoRoute&&this.route({}),this._plan.isReady()||(this._clearLines(),this._clearAlts()),this.fire("waypointschanged",{waypoints:t.waypoints})},_setupRouteDragging:function(){var e,i=0;this._plan.on("waypointdrag",r.bind(function(t){e=t.waypoints,i||(i=setTimeout(r.bind(function(){this.route({waypoints:e,geometryOnly:!0,callback:r.bind(this._updateLineCallback,this)}),i=void 0},this),this.options.routeDragInterval))},this)),this._plan.on("waypointdragend",function(){i&&(clearTimeout(i),i=void 0),this.route()},this)},_updateLineCallback:function(t,e){if(t)this._clearLines();else{var i=(e=e.slice()).splice(this._selectedRoute.routesIndex,1)[0];this._updateLines({route:i,alternatives:e})}},route:function(n){var o,s=++this._requestCount;n=n||{},this._plan.isReady()&&(this.options.useZoomParameter&&(n.z=this._map&&this._map.getZoom()),o=n&&n.waypoints||this._plan.getWaypoints(),this.fire("routingstart",{waypoints:o}),this._router.route(o,n.callback||function(t,e){if(s===this._requestCount){if(this._clearLines(),this._clearAlts(),t)return void this.fire("routingerror",{error:t});if(e.forEach(function(t,e){t.routesIndex=e}),n.geometryOnly){var i=e.splice(0,1)[0];this._routeSelected({route:i,alternatives:e})}else this.fire("routesfound",{waypoints:o,routes:e}),this.setAlternatives(e)}},this,n))},_clearLines:function(){if(this._line&&(this._map.removeLayer(this._line),delete this._line),this._alternatives&&this._alternatives.length){for(var t in this._alternatives)this._map.removeLayer(this._alternatives[t]);this._alternatives=[]}}}),r.Routing.control=function(t){return new r.Routing.Control(t)},i.exports=r.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.ErrorControl":5,"./L.Routing.Itinerary":8,"./L.Routing.Line":10,"./L.Routing.Mapbox":12,"./L.Routing.OSRMv1":13,"./L.Routing.Plan":14}],5:[function(t,e,i){!function(){"use strict";L.Routing=L.Routing||{},L.Routing.ErrorControl=L.Control.extend({options:{header:"Routing error",formatMessage:function(t){return t.status<0?"Calculating the route caused an error. Technical description follows: <code><pre>"+t.message+"</pre></code":"The route could not be calculated. "+t.message}},initialize:function(t,e){L.Control.prototype.initialize.call(this,e),t.on("routingerror",L.bind(function(t){this._element&&(this._element.children[1].innerHTML=this.options.formatMessage(t.error),this._element.style.visibility="visible")},this)).on("routingstart",L.bind(function(){this._element&&(this._element.style.visibility="hidden")},this))},onAdd:function(){var t;return this._element=L.DomUtil.create("div","leaflet-bar leaflet-routing-error"),this._element.style.visibility="hidden",t=L.DomUtil.create("h3",null,this._element),L.DomUtil.create("span",null,this._element),t.innerHTML=this.options.header,this._element},onRemove:function(){delete this._element}}),L.Routing.errorControl=function(t,e){return new L.Routing.ErrorControl(t,e)}}()},{}],6:[function(e,i,t){(function(t){!function(){"use strict";var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null;l.Routing=l.Routing||{},l.extend(l.Routing,e("./L.Routing.Localization")),l.Routing.Formatter=l.Class.extend({options:{units:"metric",unitNames:null,language:"en",roundingSensitivity:1,distanceTemplate:"{value} {unit}"},initialize:function(t){l.setOptions(this,t);var e=l.Util.isArray(this.options.language)?this.options.language:[this.options.language,"en"];this._localization=new l.Routing.Localization(e)},formatDistance:function(t,e){var i,n,o,s=this.options.unitNames||this._localization.localize("units"),r=e<=0,a=r?function(t){return t}:l.bind(this._round,this);return o="imperial"===this.options.units?1e3<=(n=t/.9144)?{value:a(t/1609.344,e),unit:s.miles}:{value:a(n,e),unit:s.yards}:{value:1e3<=(i=a(t,e))?i/1e3:i,unit:1e3<=i?s.kilometers:s.meters},r&&(o.value=o.value.toFixed(-e)),l.Util.template(this.options.distanceTemplate,o)},_round:function(t,e){var i=e||this.options.roundingSensitivity,n=Math.pow(10,(Math.floor(t/i)+"").length-1),o=5<Math.floor(t/n)?n:n/2;return Math.round(t/o)*o},formatTime:function(t){var e=this.options.unitNames||this._localization.localize("units");return 86400<(t=30*Math.round(t/30))?Math.round(t/3600)+" "+e.hours:3600<t?Math.floor(t/3600)+" "+e.hours+" "+Math.round(t%3600/60)+" "+e.minutes:300<t?Math.round(t/60)+" "+e.minutes:60<t?Math.floor(t/60)+" "+e.minutes+(t%60!=0?" "+t%60+" "+e.seconds:""):t+" "+e.seconds},formatInstruction:function(t,e){return void 0===t.text?this.capitalize(l.Util.template(this._getInstructionTemplate(t,e),l.extend({},t,{exitStr:t.exit?this._localization.localize("formatOrder")(t.exit):"",dir:this._localization.localize(["directions",t.direction]),modifier:this._localization.localize(["directions",t.modifier])}))):t.text},getIconName:function(t,e){switch(t.type){case"Head":if(0===e)return"depart";break;case"WaypointReached":return"via";
1case"Roundabout":return"enter-roundabout";case"DestinationReached":return"arrive"}switch(t.modifier){case"Straight":return"continue";case"SlightRight":return"bear-right";case"Right":return"turn-right";case"SharpRight":return"sharp-right";case"TurnAround":case"Uturn":return"u-turn";case"SharpLeft":return"sharp-left";case"Left":return"turn-left";case"SlightLeft":return"bear-left"}},capitalize:function(t){return t.charAt(0).toUpperCase()+t.substring(1)},_getInstructionTemplate:function(t,e){var i="Straight"===t.type?0===e?"Head":"Continue":t.type,n=this._localization.localize(["instructions",i]);return n||(n=[this._localization.localize(["directions",i])," "+this._localization.localize(["instructions","Onto"])]),n[0]+(1<n.length&&t.road?n[1]:"")}}),i.exports=l.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.Localization":11}],7:[function(e,i,t){(function(t){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null;function l(t){t.setSelectionRange?t.setSelectionRange(0,9999):t.select()}a.Routing=a.Routing||{},a.extend(a.Routing,e("./L.Routing.Autocomplete")),a.Routing.GeocoderElement=a.Class.extend({includes:a.Mixin.Events,options:{createGeocoder:function(t,e,i){var n=a.DomUtil.create("div","leaflet-routing-geocoder"),o=a.DomUtil.create("input","",n),s=i.addWaypoints?a.DomUtil.create("span","leaflet-routing-remove-waypoint",n):void 0;return o.disabled=!i.addWaypoints,{container:n,input:o,closeButton:s}},geocoderPlaceholder:function(t,e,i){var n=new a.Routing.Localization(i.options.language).localize("ui");return 0===t?n.startPlaceholder:t<e-1?a.Util.template(n.viaPlaceholder,{viaNumber:t}):n.endPlaceholder},geocoderClass:function(){return""},waypointNameFallback:function(t){var e=t.lat<0?"S":"N",i=t.lng<0?"W":"E";return e+(Math.round(1e4*Math.abs(t.lat))/1e4).toString()+", "+i+(Math.round(1e4*Math.abs(t.lng))/1e4).toString()},maxGeocoderTolerance:200,autocompleteOptions:{},language:"en"},initialize:function(e,t,i,n){a.setOptions(this,n);var o=this.options.createGeocoder(t,i,this.options),s=o.closeButton,r=o.input;r.setAttribute("placeholder",this.options.geocoderPlaceholder(t,i,this)),r.className=this.options.geocoderClass(t,i),this._element=o,this._waypoint=e,this.update(),r.value=e.name,a.DomEvent.addListener(r,"click",function(){l(this)},r),s&&a.DomEvent.addListener(s,"click",function(){this.fire("delete",{waypoint:this._waypoint})},this),new a.Routing.Autocomplete(r,function(t){r.value=t.name,e.name=t.name,e.latLng=t.center,this.fire("geocoded",{waypoint:e,value:t})},this,a.extend({resultFn:this.options.geocoder.geocode,resultContext:this.options.geocoder,autocompleteFn:this.options.geocoder.suggest,autocompleteContext:this.options.geocoder},this.options.autocompleteOptions))},getContainer:function(){return this._element.container},setValue:function(t){this._element.input.value=t},update:function(t){var e,i=this._waypoint;i.name=i.name||"",!i.latLng||!t&&i.name||(e=this.options.waypointNameFallback(i.latLng),this.options.geocoder&&this.options.geocoder.reverse?this.options.geocoder.reverse(i.latLng,67108864,function(t){0<t.length&&t[0].center.distanceTo(i.latLng)<this.options.maxGeocoderTolerance?i.name=t[0].name:i.name=e,this._update()},this):(i.name=e,this._update()))},focus:function(){var t=this._element.input;t.focus(),l(t)},_update:function(){var t=this._waypoint,e=t&&t.name?t.name:"";this.setValue(e),this.fire("reversegeocoded",{waypoint:t,value:e})}}),a.Routing.geocoderElement=function(t,e,i,n){return new a.Routing.GeocoderElement(t,e,i,n)},i.exports=a.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.Autocomplete":3}],8:[function(e,i,t){(function(t){!function(){"use strict";var s="undefined"!=typeof window?window.L:void 0!==t?t.L:null;s.Routing=s.Routing||{},s.extend(s.Routing,e("./L.Routing.Formatter")),s.extend(s.Routing,e("./L.Routing.ItineraryBuilder")),s.Routing.Itinerary=s.Control.extend({includes:s.Mixin.Events,options:{pointMarkerStyle:{radius:5,color:"#03f",fillColor:"white",opacity:1,fillOpacity:.7},summaryTemplate:"<h2>{name}</h2><h3>{distance}, {time}</h3>",timeTemplate:"{time}",containerClassName:"",alternativeClassName:"",minimizedClassName:"",itineraryClassName:"",totalDistanceRoundingSensitivity:-1,show:!0,collapsible:void 0,collapseBtn:function(t){var e=s.DomUtil.create("span",t.options.collapseBtnClass);s.DomEvent.on(e,"click",t._toggle,t),t._container.insertBefore(e,t._container.firstChild)},collapseBtnClass:"leaflet-routing-collapse-btn"},initialize:function(t){s.setOptions(this,t),this._formatter=this.options.formatter||new s.Routing.Formatter(this.options),this._itineraryBuilder=this.options.itineraryBuilder||new s.Routing.ItineraryBuilder({containerClassName:this.options.itineraryClassName})},onAdd:function(t){var e=this.options.collapsible;return e=e||void 0===e&&t.getSize().x<=640,this._container=s.DomUtil.create("div","leaflet-routing-container leaflet-bar "+(this.options.show?"":"leaflet-routing-container-hide ")+(e?"leaflet-routing-collapsible ":"")+this.options.containerClassName),this._altContainer=this.createAlternativesContainer(),this._container.appendChild(this._altContainer),s.DomEvent.disableClickPropagation(this._container),s.DomEvent.addListener(this._container,"mousewheel",function(t){s.DomEvent.stopPropagation(t)}),e&&this.options.collapseBtn(this),this._container},onRemove:function(){},createAlternativesContainer:function(){return s.DomUtil.create("div","leaflet-routing-alternatives-container")},setAlternatives:function(t){var e,i,n;for(this._clearAlts(),this._routes=t,e=0;e<this._routes.length;e++)i=this._routes[e],n=this._createAlternative(i,e),this._altContainer.appendChild(n),this._altElements.push(n);return this._selectRoute({route:this._routes[0],alternatives:this._routes.slice(1)}),this},show:function(){s.DomUtil.removeClass(this._container,"leaflet-routing-container-hide")},hide:function(){s.DomUtil.addClass(this._container,"leaflet-routing-container-hide")},_toggle:function(){this[s.DomUtil.hasClass(this._container,"leaflet-routing-container-hide")?"
1show":"hide"]()},_createAlternative:function(t,e){var i=s.DomUtil.create("div","leaflet-routing-alt "+this.options.alternativeClassName+(0<e?" leaflet-routing-alt-minimized "+this.options.minimizedClassName:"")),n=this.options.summaryTemplate,o=s.extend({name:t.name,distance:this._formatter.formatDistance(t.summary.totalDistance,this.options.totalDistanceRoundingSensitivity),time:this._formatter.formatTime(t.summary.totalTime)},t);return i.innerHTML="function"==typeof n?n(o):s.Util.template(n,o),s.DomEvent.addListener(i,"click",this._onAltClicked,this),this.on("routeselected",this._selectAlt,this),i.appendChild(this._createItineraryContainer(t)),i},_clearAlts:function(){for(var t=this._altContainer;t&&t.firstChild;)t.removeChild(t.firstChild);this._altElements=[]},_createItineraryContainer:function(t){var e,i,n,o,s,r,a=this._itineraryBuilder.createContainer(),l=this._itineraryBuilder.createStepsContainer();for(a.appendChild(l),e=0;e<t.instructions.length;e++)i=t.instructions[e],s=this._formatter.formatInstruction(i,e),o=this._formatter.formatDistance(i.distance),r=this._formatter.getIconName(i,e),n=this._itineraryBuilder.createStep(s,o,r,l),this._addRowListeners(n,t.coordinates[i.index]);return a},_addRowListeners:function(t,e){s.DomEvent.addListener(t,"mouseover",function(){this._marker=s.circleMarker(e,this.options.pointMarkerStyle).addTo(this._map)},this),s.DomEvent.addListener(t,"mouseout",function(){this._marker&&(this._map.removeLayer(this._marker),delete this._marker)},this),s.DomEvent.addListener(t,"click",function(t){this._map.panTo(e),s.DomEvent.stopPropagation(t)},this)},_onAltClicked:function(t){for(var e=t.target||window.event.srcElement;!s.DomUtil.hasClass(e,"leaflet-routing-alt");)e=e.parentElement;var i=this._altElements.indexOf(e),n=this._routes.slice(),o=n.splice(i,1)[0];this.fire("routeselected",{route:o,alternatives:n})},_selectAlt:function(t){var e,i,n,o;if(e=this._altElements[t.route.routesIndex],s.DomUtil.hasClass(e,"leaflet-routing-alt-minimized"))for(i=0;i<this._altElements.length;i++)n=this._altElements[i],o=i===t.route.routesIndex?"removeClass":"addClass",s.DomUtil[o](n,"leaflet-routing-alt-minimized"),this.options.minimizedClassName&&s.DomUtil[o](n,this.options.minimizedClassName),i!==t.route.routesIndex&&(n.scrollTop=0);s.DomEvent.stop(t)},_selectRoute:function(t){this._marker&&(this._map.removeLayer(this._marker),delete this._marker),this.fire("routeselected",t)}}),s.Routing.itinerary=function(t){return new s.Routing.Itinerary(t)},i.exports=s.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.Formatter":6,"./L.Routing.ItineraryBuilder":9}],9:[function(t,e,i){(function(t){!function(){"use strict";var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null;a.Routing=a.Routing||{},a.Routing.ItineraryBuilder=a.Class.extend({options:{containerClassName:""},initialize:function(t){a.setOptions(this,t)},createContainer:function(t){var e=a.DomUtil.create("table",t||""),i=a.DomUtil.create("colgroup","",e);return a.DomUtil.create("col","leaflet-routing-instruction-icon",i),a.DomUtil.create("col","leaflet-routing-instruction-text",i),a.DomUtil.create("col","leaflet-routing-instruction-distance",i),e},createStepsContainer:function(){return a.DomUtil.create("tbody","")},createStep:function(t,e,i,n){var o,s,r=a.DomUtil.create("tr","",n);return s=a.DomUtil.create("td","",r),o=a.DomUtil.create("span","leaflet-routing-icon leaflet-routing-icon-"+i,s),s.appendChild(o),(s=a.DomUtil.create("td","",r)).appendChild(document.createTextNode(t)),(s=a.DomUtil.create("td","",r)).appendChild(document.createTextNode(e)),r}}),e.exports=a.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(t,e,i){(function(t){!function(){"use strict";var s="undefined"!=typeof window?window.L:void 0!==t?t.L:null;s.Routing=s.Routing||{},s.Routing.Line=s.LayerGroup.extend({includes:s.Mixin.Events,options:{styles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2}],missingRouteStyles:[{color:"black",opacity:.15,weight:7},{color:"white",opacity:.6,weight:4},{color:"gray",opacity:.8,weight:2,dashArray:"7,12"}],addWaypoints:!0,extendToWaypoints:!0,missingRouteTolerance:10},initialize:function(t,e){s.setOptions(this,e),s.LayerGroup.prototype.initialize.call(this,e),this._route=t,this.options.extendToWaypoints&&this._extendToWaypoints(),this._addSegment(t.coordinates,this.options.styles,this.options.addWaypoints)},getBounds:function(){return s.latLngBounds(this._route.coordinates)},_findWaypointIndices:function(){var t,e=this._route.inputWaypoints,i=[];for(t=0;t<e.length;t++)i.push(this._findClosestRoutePoint(e[t].latLng));return i},_findClosestRoutePoint:function(t){var e,i,n,o=Number.MAX_VALUE;for(i=this._route.coordinates.length-1;0<=i;i--)(n=t.distanceTo(this._route.coordinates[i]))<o&&(e=i,o=n);return e},_extendToWaypoints:function(){var t,e,i,n=this._route.inputWaypoints,o=this._getWaypointIndices();for(t=0;t<n.length;t++)e=n[t].latLng,i=s.latLng(this._route.coordinates[o[t]]),e.distanceTo(i)>this.options.missingRouteTolerance&&this._addSegment([e,i],this.options.missingRouteStyles)}
1,_addSegment:function(t,e,i){var n,o;for(n=0;n<e.length;n++)o=s.polyline(t,e[n]),this.addLayer(o),i&&o.on("mousedown",this._onLineTouched,this)},_findNearestWpBefore:function(t){for(var e=this._getWaypointIndices(),i=e.length-1;0<=i&&e[i]>t;)i--;return i},_onLineTouched:function(t){var e=this._findNearestWpBefore(this._findClosestRoutePoint(t.latlng));this.fire("linetouched",{afterIndex:e,latlng:t.latlng})},_getWaypointIndices:function(){return this._wpIndices||(this._wpIndices=this._route.waypointIndices||this._findWaypointIndices()),this._wpIndices}}),s.Routing.line=function(t,e){return new s.Routing.Line(t,e)},e.exports=s.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(t,e,i){!function(){"use strict";L.Routing=L.Routing||{},L.Routing.Localization=L.Class.extend({initialize:function(t){this._langs=L.Util.isArray(t)?t:[t,"en"];for(var e=0,i=this._langs.length;e<i;e++)if(!L.Routing.Localization[this._langs[e]])throw new Error('No localization for language "'+this._langs[e]+'".')},localize:function(t){var e,i;t=L.Util.isArray(t)?t:[t];for(var n=0,o=this._langs.length;n<o;n++){e=L.Routing.Localization[this._langs[n]];for(var s=0,r=t.length;e&&s<r;s++)e=i=e[t[s]];if(i)return i}}}),L.Routing.Localization=L.extend(L.Routing.Localization,{en:{directions:{N:"north",NE:"northeast",E:"east",SE:"southeast",S:"south",SW:"southwest",W:"west",NW:"northwest",SlightRight:"slight right",Right:"right",SharpRight:"sharp right",SlightLeft:"slight left",Left:"left",SharpLeft:"sharp left"},instructions:{Head:["Head {dir}"," on {road}"],Continue:["Continue {dir}"],TurnAround:["Turn around"],WaypointReached:["Waypoint reached"],Roundabout:["Take the {exitStr} exit in the roundabout"," onto {road}"],DestinationReached:["Destination reached"],Fork:["At the fork, turn {modifier}"," onto {road}"],Merge:["Merge {modifier}"," onto {road}"],OnRamp:["Turn {modifier} on the ramp"," onto {road}"],OffRamp:["Take the ramp on the {modifier}"," onto {road}"],EndOfRoad:["Turn {modifier} at the end of the road"," onto {road}"],Onto:"onto {road}"},formatOrder:function(t){var e=t%10-1,i=["st","nd","rd"];return i[e]?t+i[e]:t+"th"},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"End"},units:{meters:"m",kilometers:"km",yards:"yd",miles:"mi",hours:"h",minutes:"mín",seconds:"s"}},de:{directions:{N:"Norden",NE:"Nordosten",E:"Osten",SE:"Südosten",S:"Süden",SW:"Südwesten",W:"Westen",NW:"Nordwesten"},instructions:{Head:["Richtung {dir}"," auf {road}"],Continue:["Geradeaus Richtung {dir}"," auf {road}"],SlightRight:["Leicht rechts abbiegen"," auf {road}"],Right:["Rechts abbiegen"," auf {road}"],SharpRight:["Scharf rechts abbiegen"," auf {road}"],TurnAround:["Wenden"],SharpLeft:["Scharf links abbiegen"," auf {road}"],Left:["Links abbiegen"," auf {road}"],SlightLeft:["Leicht links abbiegen"," auf {road}"],WaypointReached:["Zwischenhalt erreicht"],Roundabout:["Nehmen Sie die {exitStr} Ausfahrt im Kreisverkehr"," auf {road}"],DestinationReached:["Sie haben ihr Ziel erreicht"]},formatOrder:function(t){return t+"."},ui:{startPlaceholder:"Start",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Ziel"}},sv:{directions:{N:"norr",NE:"nordost",E:"öst",SE:"sydost",S:"syd",SW:"sydväst",W:"väst",NW:"nordväst",SlightRight:"svagt höger",Right:"höger",SharpRight:"skarpt höger",SlightLeft:"svagt vänster",Left:"vänster",SharpLeft:"skarpt vänster"},instructions:{Head:["Åk åt {dir}"," till {road}"],Continue:["Fortsätt {dir}"],SlightRight:["Svagt höger"," till {road}"],Right:["Sväng höger"," till {road}"],SharpRight:["Skarpt höger"," till {road}"],TurnAround:["Vänd"],SharpLeft:["Skarpt vänster"," till {road}"],Left:["Sväng vänster"," till {road}"],SlightLeft:["Svagt vänster"," till {road}"],WaypointReached:["Viapunkt nådd"],Roundabout:["Tag {exitStr} avfarten i rondellen"," till {road}"],DestinationReached:["Framme vid resans mål"],Fork:["Tag av {modifier}"," till {road}"],Merge:["Anslut {modifier} "," till {road}"],OnRamp:["Tag påfarten {modifier}"," till {road}"],OffRamp:["Tag avfarten {modifier}"," till {road}"],EndOfRoad:["Sväng {modifier} vid vägens slut"," till {road}"],Onto:"till {road}"}
1,formatOrder:function(t){return["första","andra","tredje","fjärde","femte","sjätte","sjunde","åttonde","nionde","tionde"][t-1]},ui:{startPlaceholder:"Från",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Till"}},sp:{directions:{N:"norte",NE:"noreste",E:"este",SE:"sureste",S:"sur",SW:"suroeste",W:"oeste",NW:"noroeste"},instructions:{Head:["Derecho {dir}"," sobre {road}"],Continue:["Continuar {dir}"," en {road}"],SlightRight:["Leve giro a la derecha"," sobre {road}"],Right:["Derecha"," sobre {road}"],SharpRight:["Giro pronunciado a la derecha"," sobre {road}"],TurnAround:["Dar vuelta"],SharpLeft:["Giro pronunciado a la izquierda"," sobre {road}"],Left:["Izquierda"," en {road}"],SlightLeft:["Leve giro a la izquierda"," en {road}"],WaypointReached:["Llegó a un punto del camino"],Roundabout:["Tomar {exitStr} salida en la rotonda"," en {road}"],DestinationReached:["Llegada a destino"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Inicio",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Destino"}},nl:{directions:{N:"noordelijke",NE:"noordoostelijke",E:"oostelijke",SE:"zuidoostelijke",S:"zuidelijke",SW:"zuidewestelijke",W:"westelijke",NW:"noordwestelijke"},instructions:{Head:["Vertrek in {dir} richting"," de {road} op"],Continue:["Ga in {dir} richting"," de {road} op"],SlightRight:["Volg de weg naar rechts"," de {road} op"],Right:["Ga rechtsaf"," de {road} op"],SharpRight:["Ga scherpe bocht naar rechts"," de {road} op"],TurnAround:["Keer om"],SharpLeft:["Ga scherpe bocht naar links"," de {road} op"],Left:["Ga linksaf"," de {road} op"],SlightLeft:["Volg de weg naar links"," de {road} op"],WaypointReached:["Aangekomen bij tussenpunt"],Roundabout:["Neem de {exitStr} afslag op de rotonde"," de {road} op"],DestinationReached:["Aangekomen op eindpunt"]},formatOrder:function(t){return 1===t||20<=t?t+"ste":t+"de"},ui:{startPlaceholder:"Vertrekpunt",viaPlaceholder:"Via {viaNumber}",endPlaceholder:"Bestemming"}},fr:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ouest",W:"ouest",NW:"nord-ouest"},instructions:{Head:["Tout droit au {dir}"," sur {road}"],Continue:["Continuer au {dir}"," sur {road}"],SlightRight:["Légèrement à droite"," sur {road}"],Right:["A droite"," sur {road}"],SharpRight:["Complètement à droite"," sur {road}"],TurnAround:["Faire demi-tour"],SharpLeft:["Complètement à gauche"," sur {road}"],Left:["A gauche"," sur {road}"],SlightLeft:["Légèrement à gauche"," sur {road}"],WaypointReached:["Point d'étape atteint"],Roundabout:["Au rond-point, prenez la {exitStr} sortie"," sur {road}"],DestinationReached:["Destination atteinte"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Départ",viaPlaceholder:"Intermédiaire {viaNumber}",endPlaceholder:"Arrivée"}},it:{directions:{N:"nord",NE:"nord-est",E:"est",SE:"sud-est",S:"sud",SW:"sud-ovest",W:"ovest",NW:"nord-ovest"},instructions:{Head:["Dritto verso {dir}"," su {road}"],Continue:["Continuare verso {dir}"," su {road}"],SlightRight:["Mantenere la destra"," su {road}"],Right:["A destra"," su {road}"],SharpRight:["Strettamente a destra"," su {road}"],TurnAround:["Fare inversione di marcia"],SharpLeft:["Strettamente a sinistra"," su {road}"],Left:["A sinistra"," sur {road}"],SlightLeft:["Mantenere la sinistra"," su {road}"],WaypointReached:["Punto di passaggio raggiunto"],Roundabout:["Alla rotonda, prendere la {exitStr} uscita"],DestinationReached:["Destinazione raggiunta"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Partenza",viaPlaceholder:"Intermedia {viaNumber}",endPlaceholder:"Destinazione"}},pt:{directions:{N:"norte",NE:"nordeste",E:"leste",SE:"sudeste",S:"sul",SW:"sudoeste",W:"oeste",NW:"noroeste"},instructions:{Head:["Siga {dir}"," na {road}"],Continue:["Continue {dir}"," na {road}"],SlightRight:["Curva ligeira a direita"," na {road}"],Right:["Curva a direita"," na {road}"],SharpRight:["Curva fechada a direita"," na {road}"],TurnAround:["Retorne"],SharpLeft:["Curva fechada a esquerda"," na {road}"],Left:["Curva a esquerda"," na {road}"],SlightLeft:["Curva ligueira a esquerda"," na {road}"],WaypointReached:["Ponto de interesse atingido"],Roundabout:["Pegue a {exitStr} saída na rotatória"," na {road}"],DestinationReached:["Destino atingido"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Origem",viaPlaceholder:"Intermédio {viaNumber}",endPlaceholder:"Destino"}},sk:{directions:{N:"sever",NE:"serverovýchod",E:"východ",SE:"juhovýchod",S:"juh",SW:"juhozápad",W:"západ",NW:"serverozápad"},instructions:{Head:["Mierte na {dir}"," na {road}"],Continue:["Pokračujte na {dir}"," na {road}"],SlightRight:["Mierne doprava"," na {road}"],Right:["Doprava"," na {road}"],SharpRight:["Prudko doprava"," na {road}"],TurnAround:["Otočte sa"],SharpLeft:["Prudko doľava"," na {road}"],Left:["Doľava"," na {road}"],SlightLeft:["Mierne doľava"," na {road}"],WaypointReached:["Ste v prejazdovom bode."],Roundabout:["Odbočte na {exitStr} výjazde"," na {road}"],DestinationReached:["Prišli ste do cieľa."]},formatOrder:function(t){var e=t%10-1,i=[".",".","."];return i[e]?t+i[e]:t+"."},ui:{startPlaceholder:"Začiatok",viaPlaceholder:"Cez {viaNumber}",endPlaceholder:"Koniec"}},el:{directions:{N:"βόρεια",NE:"βορειοανατολικά",E:"ανατολικά",SE:"νοτιοανατολικά",S:"νότια",SW:"νοτιοδυτικά",W:"δυτικά",NW:"βορειοδυτικά"},instructions:{Head:["Κατευθυνθείτε {dir}"," στην {road}"],Continue:["Συνεχίστε {dir}"," στην {road}"],SlightRight:["Ελαφρώς δεξιά"," στην {road}"],Right:["Δεξιά"," στην {road}"],SharpRight:["Απότομη δεξιά στροφή"," στην {road}"],TurnAround:["Κάντε αναστροφή"],SharpLeft:["Απότομη αριστερή στροφή"," στην {road}"],Left:["Αριστερά"," στην {road}"],SlightLeft:["Ελαφρώς αριστερά"," στην {road}"],WaypointReached:["Φτάσατε στο σημείο αναφοράς"],Roundabout:["Ακολουθήστε την {exitStr} έξοδο στο κυκλικό κόμβο"," στην {road}
1"],DestinationReached:["Φτάσατε στον προορισμό σας"]},formatOrder:function(t){return t+"º"},ui:{startPlaceholder:"Αφετηρία",viaPlaceholder:"μέσω {viaNumber}",endPlaceholder:"Προορισμός"}}}),e.exports=L.Routing}()},{}],12:[function(e,n,t){(function(t){!function(){"use strict";var i="undefined"!=typeof window?window.L:void 0!==t?t.L:null;i.Routing=i.Routing||{},i.extend(i.Routing,e("./L.Routing.OSRMv1")),i.Routing.Mapbox=i.Routing.OSRMv1.extend({options:{serviceUrl:"https://api.mapbox.com/directions/v5",profile:"mapbox/driving",useHints:!1},initialize:function(t,e){i.Routing.OSRMv1.prototype.initialize.call(this,e),this.options.requestParameters=this.options.requestParameters||{},this.options.requestParameters.access_token=t}}),i.Routing.mapbox=function(t,e){return new i.Routing.Mapbox(t,e)},n.exports=i.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.OSRMv1":13}],13:[function(e,i,t){(function(t){!function(){"use strict";var o="undefined"!=typeof window?window.L:void 0!==t?t.L:null,d=e("corslite"),s=e("polyline");o.Routing=o.Routing||{},o.extend(o.Routing,e("./L.Routing.Waypoint")),o.Routing.OSRMv1=o.Class.extend({options:{serviceUrl:"https://router.project-osrm.org/route/v1",profile:"driving",timeout:3e4,routingOptions:{alternatives:!0,steps:!0},polylinePrecision:5,useHints:!0},initialize:function(t){o.Util.setOptions(this,t),this._hints={locations:{}}},route:function(t,s,r,a){var e,l,i,n,h=!1,u=[];for(a=o.extend({},this.options.routingOptions,a),e=this.buildRouteUrl(t,a),this.options.requestParameters&&(e+=o.Util.getParamString(this.options.requestParameters,e)),l=setTimeout(function(){h=!0,s.call(r||s,{status:-1,message:"OSRM request timed out."})},this.options.timeout),n=0;n<t.length;n++)i=t[n],u.push(new o.Routing.Waypoint(i.latLng,i.name,i.options));return d(e,o.bind(function(t,e){var i,n,o;if(clearTimeout(l),!h){if(n="HTTP request failed: "+t,o=-1,!t)try{i=JSON.parse(e.responseText);try{return this._routeDone(i,u,a,s,r)}catch(t){o=-3,n=t.toString()}}catch(t){o=-2,n="Error parsing OSRM response: "+t.toString()}s.call(r||s,{status:o,message:n})}},this)),this},requiresMoreDetail:function(t,e,i){if(!t.properties.isSimplified)return!1;var n,o=t.inputWaypoints;for(n=0;n<o.length;++n)if(!i.contains(o[n].latLng))return!0;return!1},_routeDone:function(t,e,i,n,o){var s,r,a,l=[];if(o=o||n,"Ok"===t.code){for(s=this._toWaypoints(e,t.waypoints),r=0;r<t.routes.length;r++)(a=this._convertRoute(t.routes[r])).inputWaypoints=e,a.waypoints=s,a.properties={isSimplified:!i||!i.geometryOnly||i.simplifyGeometry},l.push(a);this._saveHintData(t.waypoints,e),n.call(o,null,l)}else n.call(o,{status:t.code})},_convertRoute:function(t){var e,i,n,o,s,r,a,l={name:"",coordinates:[],instructions:[],summary:{totalDistance:t.distance,totalTime:t.duration}},h=[],u=0,d=t.legs.length,c=0<t.legs[0].steps.length;for(e=0;e<d;e++)for(n=t.legs[e],h.push(n.summary&&n.summary.charAt(0).toUpperCase()+n.summary.substring(1)),i=0;i<n.steps.length;i++)o=n.steps[i],s=this._decodePolyline(o.geometry),l.coordinates.push.apply(l.coordinates,s),r=this._maneuverToInstructionType(o.maneuver,e===d-1),a=this._maneuverToModifier(o.maneuver),r&&l.instructions.push({type:r,distance:o.distance,time:o.duration,road:o.name,direction:this._bearingToDirection(o.maneuver.bearing_after),exit:o.maneuver.exit,index:u,mode:o.mode,modifier:a}),u+=s.length;return l.name=h.join(", "),c||(l.coordinates=this._decodePolyline(t.geometry)),l},_bearingToDirection:function(t){return["N","NE","E","SE","S","SW","W","NW"][Math.round(t/45)%8]},_maneuverToInstructionType:function(t,e){switch(t.type){case"new name":return"Continue";case"depart":return"Head";case"arrive":return e?"DestinationReached":"WaypointReached";case"roundabout":case"rotary":return"Roundabout";case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":return this._camelCase(t.type);default:return this._camelCase(t.modifier)}},_maneuverToModifier:function(t){var e=t.modifier;switch(t.type){case"merge":case"fork":case"on ramp":case"off ramp":case"end of road":e=this._leftOrRight(e)}
1return e&&this._camelCase(e)},_camelCase:function(t){for(var e=t.split(" "),i="",n=0,o=e.length;n<o;n++)i+=e[n].charAt(0).toUpperCase()+e[n].substring(1);return i},_leftOrRight:function(t){return 0<=t.indexOf("left")?"Left":"Right"},_decodePolyline:function(t){var e,i=s.decode(t,this.options.polylinePrecision),n=new Array(i.length);for(e=i.length-1;0<=e;e--)n[e]=o.latLng(i[e]);return n},_toWaypoints:function(t,e){var i,n=[];for(i=0;i<e.length;i++)n.push(o.Routing.waypoint(o.latLng(e[i].location),t[i].name,t[i].options));return n},buildRouteUrl:function(t,e){for(var i,n,o=[],s=[],r=0;r<t.length;r++)i=t[r].latLng,o.push(i.lng+","+i.lat),s.push(this._hints.locations[this._locationKey(i)]||"");return n=!(e&&e.geometryOnly),this.options.serviceUrl+"/"+this.options.profile+"/"+o.join(";")+"?"+(e.geometryOnly?e.simplifyGeometry?"":"overview=full":"overview=false")+"&alternatives="+(!0).toString()+"&steps="+n.toString()+(this.options.useHints?"&hints="+s.join(";"):"")+(e.allowUTurns?"&continue_straight="+!e.allowUTurns:"")},_locationKey:function(t){return t.lat+","+t.lng},_saveHintData:function(t,e){var i;this._hints={locations:{}};for(var n=t.length-1;0<=n;n--)i=e[n].latLng,this._hints.locations[this._locationKey(i)]=t[n].hint}}),o.Routing.osrmv1=function(t){return new o.Routing.OSRMv1(t)},i.exports=o.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.Waypoint":15,corslite:1,polyline:2}],14:[function(e,i,t){(function(t){!function(){"use strict";var u="undefined"!=typeof window?window.L:void 0!==t?t.L:null;u.Routing=u.Routing||{},u.extend(u.Routing,e("./L.Routing.GeocoderElement")),u.extend(u.Routing,e("./L.Routing.Waypoint")),u.Routing.Plan=u.Class.extend({includes:u.Mixin.Events,options:{dragStyles:[{color:"black",opacity:.15,weight:9},{color:"white",opacity:.8,weight:6},{color:"red",opacity:1,weight:2,dashArray:"7,12"}],draggableWaypoints:!0,routeWhileDragging:!1,addWaypoints:!0,reverseWaypoints:!1,addButtonClassName:"",language:"en",createGeocoderElement:u.Routing.geocoderElement,createMarker:function(t,e){var i={draggable:this.draggableWaypoints};return u.marker(e.latLng,i)},geocodersClassName:""},initialize:function(t,e){u.Util.setOptions(this,e),this._waypoints=[],this.setWaypoints(t)},isReady:function(){var t;for(t=0;t<this._waypoints.length;t++)if(!this._waypoints[t].latLng)return!1;return!0},getWaypoints:function(){var t,e=[];for(t=0;t<this._waypoints.length;t++)e.push(this._waypoints[t]);return e},setWaypoints:function(t){var e=[0,this._waypoints.length].concat(t);return this.spliceWaypoints.apply(this,e),this},spliceWaypoints:function(){var t,e=[arguments[0],arguments[1]];for(t=2;t<arguments.length;t++)e.push(arguments[t]&&arguments[t].hasOwnProperty("latLng")?arguments[t]:u.Routing.waypoint(arguments[t]));for([].splice.apply(this._waypoints,e);this._waypoints.length<2;)this.spliceWaypoints(this._waypoints.length,0,null);this._updateMarkers(),this._fireChanged.apply(this,e)},onAdd:function(t){this._map=t,this._updateMarkers()},onRemove:function(){var t;if(this._removeMarkers(),this._newWp)for(t=0;t<this._newWp.lines.length;t++)this._map.removeLayer(this._newWp.lines[t]);delete this._map},createGeocoders:function(){var t,e,i=u.DomUtil.create("div","leaflet-routing-geocoders "+this.options.geocodersClassName),n=this._waypoints;return this._geocoderContainer=i,this._geocoderElems=[],this.options.addWaypoints&&((t=u.DomUtil.create("button","leaflet-routing-add-waypoint "+this.options.addButtonClassName,i)).setAttribute("type","button"),u.DomEvent.addListener(t,"click",function(){this.spliceWaypoints(n.length,0,null)},this)),this.options.reverseWaypoints&&((e=u.DomUtil.create("button","leaflet-routing-reverse-waypoints",i)).setAttribute("type","button"),u.DomEvent.addListener(e,"click",function(){this._waypoints.reverse(),this.setWaypoints(this._waypoints)},this)),this._updateGeocoders(),this.on("waypointsspliced",this._updateGeocoders),i},_createGeocoder:function(e){var t=this.options.createGeocoderElement(this._waypoints[e],e,this._waypoints.length,this.options);return t.on("delete",function(){0<e||2<this._waypoints.length?this.spliceWaypoints(e,1):this.spliceWaypoints(e,1,new u.Routing.Waypoint)},this).on("geocoded",function(t){this._updateMarkers(),this._fireChanged(),this._focusGeocoder(e+1),this.fire("waypointgeocoded",{waypointIndex:e,waypoint:t.waypoint})},this).on("reversegeocoded",function(t){this.fire("waypointgeocoded",{waypointIndex:e,waypoint:t.waypoint})},this),t},_updateGeocoders:function(){var t,e,i=[];for(t=0;t<this._geocoderElems.length;t++)this._geocoderContainer.removeChild(this._geocoderElems[t].getContainer());for(t=this._waypoints.length-1;0<=t;t--)e=this._createGeocoder(t),this._geocoderContainer.insertBefore(e.getContainer(),this._geocoderContainer.firstChild),i.push(e);this._geocoderElems=i.reverse()},_removeMarkers:function(){var t;if(this._markers)for(t=0;t<this._markers.length;t++)this._markers[t]&&this._map.removeLayer(this._markers[t]);this._markers=[]},_updateMarkers:function(){var t,e;if(this._map)for(this._removeMarkers(),t=0;t<this._waypoints.length;t++)this._waypoints[t].latLng?(e=this.options.createMarker(t,this._waypoints[t],this._waypoints.length))&&(e.addTo(this._map),this.options.draggableWaypoints&&this._hookWaypointEvents(e,t)):e=null,this._markers.push(e)},_fireChanged:function(){this.fire("waypointschanged",{waypoints:this.getWaypoints()}),2<=arguments.length&&this.fire("waypointsspliced",{index:Array.prototype.shift.call(arguments),nRemoved:Array.prototype.shift.call(arguments),added:arguments})}
1,_hookWaypointEvents:function(t,e,i){var n,o,s=function(t){return i?t.latlng:t.target.getLatLng()},r=u.bind(function(t){this.fire("waypointdragstart",{index:e,latlng:s(t)})},this),a=u.bind(function(t){this._waypoints[e].latLng=s(t),this.fire("waypointdrag",{index:e,latlng:s(t)})},this),l=u.bind(function(t){this._waypoints[e].latLng=s(t),this._waypoints[e].name="",this._geocoderElems&&this._geocoderElems[e].update(!0),this.fire("waypointdragend",{index:e,latlng:s(t)}),this._fireChanged()},this);i?(n=u.bind(function(t){this._markers[e].setLatLng(t.latlng),a(t)},this),o=u.bind(function(t){this._map.dragging.enable(),this._map.off("mouseup",o),this._map.off("mousemove",n),l(t)},this),this._map.dragging.disable(),this._map.on("mousemove",n),this._map.on("mouseup",o),r({latlng:this._waypoints[e].latLng})):(t.on("dragstart",r),t.on("drag",a),t.on("dragend",l))},dragNewWaypoint:function(t){var e=t.afterIndex+1;this.options.routeWhileDragging?(this.spliceWaypoints(e,0,t.latlng),this._hookWaypointEvents(this._markers[e],e,!0)):this._dragNewWaypoint(e,t.latlng)},_dragNewWaypoint:function(i,t){var e,n=new u.Routing.Waypoint(t),o=this._waypoints[i-1],s=this._waypoints[i],r=this.options.createMarker(i,n,this._waypoints.length+1),a=[],l=u.bind(function(t){var e;for(r&&r.setLatLng(t.latlng),e=0;e<a.length;e++)a[e].spliceLatLngs(1,1,t.latlng)},this),h=u.bind(function(t){var e;for(r&&this._map.removeLayer(r),e=0;e<a.length;e++)this._map.removeLayer(a[e]);this._map.off("mousemove",l),this._map.off("mouseup",h),this.spliceWaypoints(i,0,t.latlng)},this);for(r&&r.addTo(this._map),e=0;e<this.options.dragStyles.length;e++)a.push(u.polyline([o.latLng,t,s.latLng],this.options.dragStyles[e]).addTo(this._map));this._map.on("mousemove",l),this._map.on("mouseup",h)},_focusGeocoder:function(t){this._geocoderElems[t]?this._geocoderElems[t].focus():document.activeElement.blur()}}),u.Routing.plan=function(t,e){return new u.Routing.Plan(t,e)},i.exports=u.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./L.Routing.GeocoderElement":7,"./L.Routing.Waypoint":15}],15:[function(t,e,i){(function(t){!function(){"use strict";var n="undefined"!=typeof window?window.L:void 0!==t?t.L:null;n.Routing=n.Routing||{},n.Routing.Waypoint=n.Class.extend({options:{allowUTurn:!1},initialize:function(t,e,i){n.Util.setOptions(this,i),this.latLng=n.latLng(t),this.name=e}}),n.Routing.waypoint=function(t,e,i){return new n.Routing.Waypoint(t,e,i)},e.exports=n.Routing}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[4])(4)}),function s(r,a,l){function h(i,t){if(!a[i]){if(!r[i]){var e="function"==typeof require&&require;if(!t&&e)return e(i,!0);if(u)return u(i,!0);var n=new Error("Cannot find module '"+i+"'");throw n.code="MODULE_NOT_FOUND",n}var o=a[i]={exports:{}};r[i][0].call(o.exports,function(t){var e=r[i][1][t];return h(e||t)},o,o.exports,s,r,a,l)}return a[i].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)h(l[t]);return h}({1:[function(i,n,t){(function(t){var r="undefined"!=typeof window?window.L:void 0!==t?t.L:null,e=i("./geocoders/nominatim").class;n.exports={class:r.Control.extend({options:{showResultIcons:!1,collapsed:!0,expand:"click",position:"topright",placeholder:"Search...",errorMessage:"Nothing found.",suggestMinLength:3,suggestTimeout:250,defaultMarkGeocode:!0},includes:r.Mixin.Events,initialize:function(t){r.Util.setOptions(this,t),this.options.geocoder||(this.options.geocoder=new e),this._requestCount=0},onAdd:function(t){var e,i="leaflet-control-geocoder",n=r.DomUtil.create("div",i+" leaflet-bar"),o=r.DomUtil.create("button",i+"-icon",n),s=this._form=r.DomUtil.create("div",i+"-form",n);return this._map=t,this._container=n,o.innerHTML="&nbsp;",o.type="button",(e=this._input=r.DomUtil.create("input","",s)).type="text",e.placeholder=this.options.placeholder,this._errorElement=r.DomUtil.create("div",i+"-form-no-error",n),this._errorElement.innerHTML=this.options.errorMessage,this._alts=r.DomUtil.create("ul",i+"-alternatives leaflet-control-geocoder-alternatives-minimized",n),r.DomEvent.addListener(e,"keydown",this._key
1down,this),r.DomEvent.addListener(e,"blur",function(){this.options.collapsed&&this._collapse()},this),this.options.collapsed?"click"===this.options.expand?r.DomEvent.addListener(o,"click",function(t){0===t.button&&2!==t.detail&&this._toggle()},this):(r.DomEvent.addListener(o,"mouseover",this._expand,this),r.DomEvent.addListener(o,"mouseout",this._collapse,this),this._map.on("movestart",this._collapse,this)):(r.DomEvent.addListener(o,"click",function(t){this._geocode(t)},this),this._expand()),this.options.defaultMarkGeocode&&this.on("markgeocode",this.markGeocode,this),this.on("startgeocode",function(){r.DomUtil.addClass(this._container,"leaflet-control-geocoder-throbber")},this),this.on("finishgeocode",function(){r.DomUtil.removeClass(this._container,"leaflet-control-geocoder-throbber")},this),r.DomEvent.disableClickPropagation(n),n},_geocodeResult:function(t,e){if(e||1!==t.length)if(0<t.length){this._alts.innerHTML="",this._results=t,r.DomUtil.removeClass(this._alts,"leaflet-control-geocoder-alternatives-minimized");for(var i=0;i<t.length;i++)this._alts.appendChild(this._createAlt(t[i],i))}else r.DomUtil.addClass(this._errorElement,"leaflet-control-geocoder-error");else this._geocodeResultSelected(t[0])},markGeocode:function(t){return t=t.geocode||t,this._map.fitBounds(t.bbox),this._geocodeMarker&&this._map.removeLayer(this._geocodeMarker),this._geocodeMarker=new r.Marker(t.center).bindPopup(t.html||t.name).addTo(this._map).openPopup(),this},_geocode:function(e){var i=++this._requestCount,n=e?"suggest":"geocode";this._lastGeocode=this._input.value,e||this._clearResults(),this.fire("start"+n),this.options.geocoder[n](this._input.value,function(t){i===this._requestCount&&(this.fire("finish"+n),this._geocodeResult(t,e))},this)},_geocodeResultSelected:function(t){this.options.collapsed?this._collapse():this._clearResults(),this.fire("markgeocode",{geocode:t})},_toggle:function(){0<=this._container.className.indexOf("leaflet-control-geocoder-expanded")?this._collapse():this._expand()},_expand:function(){r.DomUtil.addClass(this._container,"leaflet-control-geocoder-expanded"),this._input.select(),this.fire("expand")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-geocoder-expanded",""),r.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized"),r.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error"),this.fire("collapse")},_clearResults:function(){r.DomUtil.addClass(this._alts,"leaflet-control-geocoder-alternatives-minimized"),this._selection=null,r.DomUtil.removeClass(this._errorElement,"leaflet-control-geocoder-error")},_createAlt:function(e,t){var i=r.DomUtil.create("li",""),n=r.DomUtil.create("a","",i),o=this.options.showResultIcons&&e.icon?r.DomUtil.create("img","",n):null,s=e.html?void 0:document.createTextNode(e.name);return o&&(o.src=e.icon),i.setAttribute("data-result-index",t),e.html?n.innerHTML=n.innerHTML+e.html:n.appendChild(s),r.DomEvent.addListener(i,"mousedown",function(t){r.DomEvent.preventDefault(t),this._geocodeResultSelected(e)},this),i},_keydown:function(t){var e=this,i=function(t){e._selection&&(r.DomUtil.removeClass(e._selection,"leaflet-control-geocoder-selected"),e._selection=e._selection[0<t?"nextSibling":"previousSibling"]),e._selection||(e._selection=e._alts[0<t?"firstChild":"lastChild"]),e._selection&&r.DomUtil.addClass(e._selection,"leaflet-control-geocoder-selected")};switch(t.keyCode){case 27:this.options.collapsed&&this._collapse();break;case 38:i(-1),r.DomEvent.preventDefault(t);break;case 40:i(1),r.DomEvent.preventDefault(t);break;case 13:if(this._selection){var n=parseInt(this._selection.getAttribute("data-result-index"),10);this._geocodeResultSelected(this._results[n]),this._clearResults()}else this._geocode();r.DomEvent.preventDefault(t);break;default:var o=this._input.value;this.options.geocoder.suggest&&o!==this._lastGeocode&&(clearTimeout(this._suggestTimeout),o.length>=this.options.suggestMinLength?this._suggestTimeout=setTimeout(r.bind(function(){this._geocode(!0)},this),this.options.suggestTimeout):this._clearResults())}}}),factory:function(t){return new r.Control.Geocoder(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./geocoders/nominatim":9}],2:[function(e,i,t){(function(t){var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null,
1s=e("../util");i.exports={class:l.Class.extend({options:{service_url:"http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"},initialize:function(t,e){l.setOptions(this,e),this._accessToken=t},geocode:function(t,r,a){var e={SingleLine:t,outFields:"Addr_Type",forStorage:!1,maxLocations:10,f:"json"};this._key&&this._key.length&&(e.token=this._key),s.getJSON(this.options.service_url+"/findAddressCandidates",e,function(t){var e,i,n,o=[];if(t.candidates&&t.candidates.length)for(var s=0;s<=t.candidates.length-1;s++)e=t.candidates[s],i=l.latLng(e.location.y,e.location.x),n=l.latLngBounds(l.latLng(e.extent.ymax,e.extent.xmax),l.latLng(e.extent.ymin,e.extent.xmin)),o[s]={name:e.address,bbox:n,center:i};r.call(a,o)})},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,n,o){var i={location:encodeURIComponent(t.lng)+","+encodeURIComponent(t.lat),distance:100,f:"json"};s.getJSON(this.options.service_url+"/reverseGeocode",i,function(t){var e,i=[];t&&!t.error&&(e=l.latLng(t.location.y,t.location.x),i.push({name:t.address.Match_addr,center:e,bounds:l.latLngBounds(e,e)})),n.call(o,i)})}}),factory:function(t,e){return new l.Control.Geocoder.ArcGis(t,e)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],3:[function(e,n,t){(function(t){var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=e("../util");n.exports={class:a.Class.extend({initialize:function(t){this.key=t},geocode:function(t,s,r){i.jsonp("https://dev.virtualearth.net/REST/v1/Locations",{query:t,key:this.key},function(t){var e=[];if(0<t.resourceSets.length)for(var i=t.resourceSets[0].resources.length-1;0<=i;i--){var n=t.resourceSets[0].resources[i],o=n.bbox;
1e[i]={name:n.name,bbox:a.latLngBounds([o[0],o[1]],[o[2],o[3]]),center:a.latLng(n.point.coordinates)}}s.call(r,e)},this,"jsonp")},reverse:function(t,e,s,r){i.jsonp("//dev.virtualearth.net/REST/v1/Locations/"+t.lat+","+t.lng,{key:this.key},function(t){for(var e=[],i=t.resourceSets[0].resources.length-1;0<=i;i--){var n=t.resourceSets[0].resources[i],o=n.bbox;e[i]={name:n.name,bbox:a.latLngBounds([o[0],o[1]],[o[2],o[3]]),center:a.latLng(n.point.coordinates)}}s.call(r,e)},this,"jsonp")}}),factory:function(t){return new a.Control.Geocoder.Bing(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],4:[function(e,i,t){(function(t){var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null,n=e("../util");i.exports={class:l.Class.extend({options:{serviceUrl:"https://maps.googleapis.com/maps/api/geocode/json",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t,e){this._key=t,l.setOptions(this,e),this.options.serviceUrl=this.options.service_url||this.options.serviceUrl},geocode:function(t,r,a){var e={address:t};this._key&&this._key.length&&(e.key=this._key),e=l.Util.extend(e,this.options.geocodingQueryParams),n.getJSON(this.options.serviceUrl,e,function(t){var e,i,n,o=[];if(t.results&&t.results.length)for(var s=0;s<=t.results.length-1;s++)e=t.results[s],i=l.latLng(e.geometry.location),n=l.latLngBounds(l.latLng(e.geometry.viewport.northeast),l.latLng(e.geometry.viewport.southwest)),o[s]={name:e.formatted_address,bbox:n,center:i,properties:e.address_components};r.call(a,o)})},reverse:function(t,e,r,a){var i={latlng:encodeURIComponent(t.lat)+","+encodeURIComponent(t.lng)};i=l.Util.extend(i,this.options.reverseQueryParams),this._key&&this._key.length&&(i.key=this._key),n.getJSON(this.options.serviceUrl,i,function(t){var e,i,n,o=[];if(t.results&&t.results.length)for(var s=0;s<=t.results.length-1;s++)e=t.results[s],i=l.latLng(e.geometry.location),n=l.latLngBounds(l.latLng(e.geometry.viewport.northeast),l.latLng(e.geometry.viewport.southwest)),o[s]={name:e.formatted_address,bbox:n,center:i,properties:e.address_components};r.call(a,o)})}}),factory:function(t,e){return new l.Control.Geocoder.Google(t,e)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],5:[function(e,n,t){(function(t){var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=e("../util");n.exports={class:l.Class.extend({options:{geocodeUrl:"http://geocoder.api.here.com/6.2/geocode.json",reverseGeocodeUrl:"http://reverse.geocoder.api.here.com/6.2/reversegeocode.json",app_id:"<insert your app_id here>",app_code:"<insert your app_code here>",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t){l.setOptions(this,t)},geocode:function(t,e,i){var n={searchtext:t,gen:9,app_id:this.options.app_id,app_code:this.options.app_code,jsonattributes:1};n=l.Util.extend(n,this.options.geocodingQueryParams),this.getJSON(this.options.geocodeUrl,n,e,i)},reverse:function(t,e,i,n){var o={prox:encodeURIComponent(t.lat)+","+encodeURIComponent(t.lng),mode:"retrieveAddresses",app_id:this.options.app_id,app_code:this.options.app_code,gen:9,jsonattributes:1};o=l.Util.extend(o,this.options.reverseQueryParams),this.getJSON(this.options.reverseGeocodeUrl,o,i,n)},getJSON:function(t,e,r,a){i.getJSON(t,e,function(t){var e,i,n,o=[];if(t.response.view&&t.response.view.length)for(var s=0;s<=t.response.view[0].result.length-1;s++)e=t.response.view[0].result[s].location,i=l.latLng(e.displayPosition.latitude,e.displayPosition.longitude),n=l.latLngBounds(l.latLng(e.mapView.topLeft.latitude,e.mapView.topLeft.longitude),l.latLng(e.mapView.bottomRight.latitude,e.mapView.bottomRight.longitude)),o[s]={name:e.address.label,bbox:n,center:i};r.call(a,o)})}}),factory:function(t){return new l.Control.Geocoder.HERE(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],6:[function(e,n,t){(function(t){var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=e("../util");n.exports={class:l.Class.extend({options:{serviceUrl:"https://api.tiles.mapbox.com/v4/geocode/mapbox.places-v1/"},initialize:function(t,e){l.setOptions(this,e),this._accessToken=t},geocode:function(t,r,a){i.getJSON(this.options.serviceUrl+encodeURIComponent(t)+".json",{access_token:this._accessToken},function(t){var e,i,n,o=[];if(t.features&&t.features.length)for(var s=0;s<=t.features.length-1;s++)e=t.features[s],i=l.latLng(e.center.reverse()),n=e.hasOwnProperty("bbox")?l.latLngBounds(l.latLng(e.bbox.slice(0,2).reverse()),l.latLng(e.bbox.slice(2,4).reverse())):l.latLngBounds(i,i),o[s]={name:e.place_name,bbox:n,center:i};r.call(a,o)})}
1,suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,r,a){i.getJSON(this.options.serviceUrl+encodeURIComponent(t.lng)+","+encodeURIComponent(t.lat)+".json",{access_token:this._accessToken},function(t){var e,i,n,o=[];if(t.features&&t.features.length)for(var s=0;s<=t.features.length-1;s++)e=t.features[s],i=l.latLng(e.center.reverse()),n=e.hasOwnProperty("bbox")?l.latLngBounds(l.latLng(e.bbox.slice(0,2).reverse()),l.latLng(e.bbox.slice(2,4).reverse())):l.latLngBounds(i,i),o[s]={name:e.place_name,bbox:n,center:i};r.call(a,o)})}}),factory:function(t,e){return new l.Control.Geocoder.Mapbox(t,e)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],7:[function(e,n,t){(function(t){var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=e("../util");n.exports={class:a.Class.extend({options:{serviceUrl:"https://www.mapquestapi.com/geocoding/v1"},initialize:function(t,e){this._key=decodeURIComponent(t),a.Util.setOptions(this,e)},_formatName:function(){var t,e=[];for(t=0;t<arguments.length;t++)arguments[t]&&e.push(arguments[t]);return e.join(", ")},geocode:function(t,s,r){i.jsonp(this.options.serviceUrl+"/address",{key:this._key,location:t,limit:5,outFormat:"json"},function(t){var e,i,n=[];if(t.results&&t.results[0].locations)for(var o=t.results[0].locations.length-1;0<=o;o--)e=t.results[0].locations[o],i=a.latLng(e.latLng),n[o]={name:this._formatName(e.street,e.adminArea4,e.adminArea3,e.adminArea1),bbox:a.latLngBounds(i,i),center:i};s.call(r,n)},this)},reverse:function(t,e,s,r){i.jsonp(this.options.serviceUrl+"/reverse",{key:this._key,location:t.lat+","+t.lng,outputFormat:"json"},function(t){var e,i,n=[];if(t.results&&t.results[0].locations)for(var o=t.results[0].locations.length-1;0<=o;o--)e=t.results[0].locations[o],i=a.latLng(e.latLng),n[o]={name:this._formatName(e.street,e.adminArea4,e.adminArea3,e.adminArea1),bbox:a.latLngBounds(i,i),center:i};s.call(r,n)},this)}}),factory:function(t,e){return new a.Control.Geocoder.MapQuest(t,e)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],8:[function(e,i,t){(function(t){var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null,s=e("../util");i.exports={class:a.Class.extend({options:{serviceUrl:"https://search.mapzen.com/v1",geocodingQueryParams:{},reverseQueryParams:{}},initialize:function(t,e){a.Util.setOptions(this,e),this._apiKey=t,this._lastSuggest=0},geocode:function(t,e,i){var n=this;s.getJSON(this.options.serviceUrl+"/search",a.extend({api_key:this._apiKey,text:t},this.options.geocodingQueryParams),function(t){e.call(i,n._parseResults(t,"bbox"))})},suggest:function(t,e,i){var n=this;s.getJSON(this.options.serviceUrl+"/autocomplete",a.extend({api_key:this._apiKey,text:t},this.options.geocodingQueryParams),a.bind(function(t){t.geocoding.timestamp>this._lastSuggest&&(this._lastSuggest=t.geocoding.timestamp,e.call(i,n._parseResults(t,"bbox")))},this))},reverse:function(t,e,i,n){var o=this;s.getJSON(this.options.serviceUrl+"/reverse",a.extend({api_key:this._apiKey,"point.lat":t.lat,"point.lon":t.lng},this.options.reverseQueryParams),function(t){i.call(n,o._parseResults(t,"bounds"))})},_parseResults:function(t,s){var r=[];return a.geoJson(t,{pointToLayer:function(t,e){return a.circleMarker(e)},onEachFeature:function(t,e){var i,n,o={};e.getBounds?n=(i=e.getBounds()).getCenter():(n=e.getLatLng(),i=a.latLngBounds(n,n)),o.name=e.feature.properties.label,o.center=n,o[s]=i,o.properties=e.feature.properties,r.push(o)}}),r}}),factory:function(t,e){return new a.Control.Geocoder.Mapzen(t,e)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],9:[function(e,i,t){(function(t){var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null,l=e("../util");i.exports={class:a.Class.extend({options:{serviceUrl:"https://nominatim.openstreetmap.org/",geocodingQueryParams:{},reverseQueryParams:{},htmlTemplate:function(t){var e=t.address,i=[];return(e.road||e.building)&&i.push("{building} {road} {house_number}"),(e.city||e.town||e.village||e.hamlet)&&i.push('<span class="'+(0<i.length?"leaflet-control-geocoder-a
1ddress-detail":"")+'">{postcode} {city} {town} {village} {hamlet}</span>'),(e.state||e.country)&&i.push('<span class="'+(0<i.length?"leaflet-control-geocoder-address-context":"")+'">{state} {country}</span>'),l.template(i.join("<br/>"),e,!0)}},initialize:function(t){a.Util.setOptions(this,t)},geocode:function(t,s,r){l.jsonp(this.options.serviceUrl+"search",a.extend({q:t,limit:5,format:"json",addressdetails:1},this.options.geocodingQueryParams),function(t){for(var e=[],i=t.length-1;0<=i;i--){for(var n=t[i].boundingbox,o=0;o<4;o++)n[o]=parseFloat(n[o]);e[i]={icon:t[i].icon,name:t[i].display_name,html:this.options.htmlTemplate?this.options.htmlTemplate(t[i]):void 0,bbox:a.latLngBounds([n[0],n[2]],[n[1],n[3]]),center:a.latLng(t[i].lat,t[i].lon),properties:t[i]}}s.call(r,e)},this,"json_callback")},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,n,o){l.jsonp(this.options.serviceUrl+"reverse",a.extend({lat:t.lat,lon:t.lng,zoom:Math.round(Math.log(e/256)/Math.log(2)),addressdetails:1,format:"json"},this.options.reverseQueryParams),function(t){var e,i=[];t&&t.lat&&t.lon&&(e=a.latLng(t.lat,t.lon),i.push({name:t.display_name,html:this.options.htmlTemplate?this.options.htmlTemplate(t):void 0,center:e,bounds:a.latLngBounds(e,e),properties:t})),n.call(o,i)},this,"json_callback")}}),factory:function(t){return new a.Control.Geocoder.Nominatim(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],10:[function(e,i,t){(function(t){var l="undefined"!=typeof window?window.L:void 0!==t?t.L:null,s=e("../util");i.exports={class:l.Class.extend({options:{serviceUrl:"https://photon.komoot.de/api/",reverseUrl:"https://photon.komoot.de/reverse/",nameProperties:["name","street","suburb","hamlet","town","city","state","country"]},initialize:function(t){l.setOptions(this,t)},geocode:function(t,e,i){var n=l.extend({q:t},this.options.geocodingQueryParams);s.getJSON(this.options.serviceUrl,n,l.bind(function(t){e.call(i,this._decodeFeatures(t))},this))},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,i,n){var o=l.extend({lat:t.lat,lon:t.lng},this.options.geocodingQueryParams);s.getJSON(this.options.reverseUrl,o,l.bind(function(t){i.call(n,this._decodeFeatures(t))},this))},_decodeFeatures:function(t){var e,i,n,o,s,r,a=[];if(t&&t.features)for(e=0;e<t.features.length;e++)n=(i=t.features[e]).geometry.coordinates,o=l.latLng(n[1],n[0]),r=(s=i.properties.extent)?l.latLngBounds([s[1],s[0]],[s[3],s[2]]):l.latLngBounds(o,o),a.push({name:this._deocodeFeatureName(i),center:o,bbox:r,properties:i.properties});return a},_deocodeFeatureName:function(t){var e,i;for(e=0;!i&&e<this.options.nameProperties.length;e++)i=t.properties[this.options.nameProperties[e]];return i}}),factory:function(t){return new l.Control.Geocoder.Photon(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],11:[function(e,n,t){(function(t){var r="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=e("../util");n.exports={class:r.Class.extend({options:{serviceUrl:"https://api.what3words.com/v2/"},initialize:function(t){this._accessToken=t},geocode:function(t,o,s){i.getJSON(this.options.serviceUrl+"forward",{key:this._accessToken,addr:t.split(/\s+/).join(".")},function(t){var e,i,n=[];t.hasOwnProperty("geometry")&&(e=r.latLng(t.geometry.lat,t.geometry.lng),i=r.latLngBounds(e,e),n[0]={name:t.words,bbox:i,center:e}),o.call(s,n)})},suggest:function(t,e,i){return this.geocode(t,e,i)},reverse:function(t,e,o,s){i.getJSON(this.options.serviceUrl+"reverse",{key:this._accessToken,coords:[t.lat,t.lng].join(",")},function(t){var e,i,n=[];200==t.status.status&&(e=r.latLng(t.geometry.lat,t.geometry.lng),i=r.latLngBounds(e,e),n[0]={name:t.words,bbox:i,center:e}),o.call(s,n)})}}),factory:function(t){return new r.Control.Geocoder.What3Words(t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util":13}],12:[function(p,_,t){(function(t){var e="undefined"!=typeof window?window.L:void 0!==t?t.L:null,i=p("./control"),n=p("./geocoders/nominatim"),o=p("./geocoders/bing"),s=p("./geocoders/mapquest"),r=p("./geocoders/mapbox"),a=p("./geocoders/what3words"),l=p("./geocoders/google"),h=p("./geocoders/photon"),u=p("./geocoders/mapzen"),d=p("./geocoders/arcgis"),c=p("./geocoders/here");_.exports=e.Util.extend(i.class,{Nominatim:n.class,nominatim:n.factory,Bing:o.class,bing:o.factory,MapQuest:s.class,mapQuest:s.factory,Mapbox:r.class,mapbox:r.factory,What3Words:a.class,what3words:a.factory,Google:l.class,google:l.factory,Photon:h.class,photon:h.factory,Mapzen:u.class,mapzen:u.factory,ArcGis:d.class,arcgis:d.factory,HERE:c.class,here:c.factory}),e.Util.extend(e.Control,{Geocoder:_.exports,geocoder:i.factory})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./control":1,"./geocoders/arcgis":2,"./geocoders/bing":3,"./geocoders/google":4,"./geocoders/here":5,"./geocoders/mapbox":6,"./geocoders/mapquest":7,"./geocoders/mapzen":8,"./geocoders/nominatim":9,"./geocoders/photon":10,"./geocoders/what3words":11}
1],13:[function(t,e,i){(function(t){var a="undefined"!=typeof window?window.L:void 0!==t?t.L:null,l=0,o=function(){var e=/[&<>"'`]/g,i=/[&<>"'`]/,n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};function o(t){return n[t]}return function(t){return null==t?"":t?(t=""+t,i.test(t)?t.replace(e,o):t):t+""}}();e.exports={jsonp:function(t,e,i,n,o){var s="_l_geocoder_"+l++;e[o||"callback"]=s,window[s]=a.Util.bind(i,n);var r=document.createElement("script");r.type="text/javascript",r.src=t+a.Util.getParamString(e),r.id=s,document.getElementsByTagName("head")[0].appendChild(r)},getJSON:function(t,e,i){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&(200===n.status||304===n.status?i(JSON.parse(n.response)):i(""))},n.open("GET",t+a.Util.getParamString(e),!0),n.setRequestHeader("Accept","application/json"),n.send(null)},template:function(t,n){return t.replace(/\{ *([\w_]+) *\}/g,function(t,e){var i=n[e];return void 0===i?i="":"function"==typeof i&&(i=i(n)),o(i)})},htmlEscape:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[12]),function(t,e,i){L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.on(L.FeatureGroup.EVENTS,this._propagateEvent,this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.on(L.FeatureGroup.EVENTS,this._propagateEvent,this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[];var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup){var e=[];for(var i in t._layers)e.push(t._layers[i]);return this.addLayers(e)}if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this;if(!this._map)return this._needsClustering.push(t),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this._topClusterLevel._recalculateBounds();var n=t,o=this._map.getZoom();if(t.__parent)for(;n.__parent._zoom>=o;)n=n.__parent;return this._currentShownBounds.contains(n.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,n):this._animationAddLayerNonAnimated(t,n)),this},removeLayer:function(t){if(t instanceof L.LayerGroup){var e=[];for(var i in t._layers)e.push(t._layers[i]);return this.removeLayers(e)}return t.getLatLng?this._map?t.__parent&&(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this._topClusterLevel._recalculateBounds(),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow())):!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push(t):this._nonPointGroup.removeLayer(t),this},addLayers:function(o){var t,e,i,s,r=this._featureGroup,a=this._nonPointGroup,l=this.options.chunkedLoading,h=this.options.chunkInterval,u=this.options.chunkProgress;if(this._map){var d=0,c=(new Date).getTime(),p=L.bind(function(){for(var t=(new Date).getTime();d<o.length;d++){if(l&&d%200==0){var e=(new Date).getTime()-t;if(h<e)break}if((s=o[d]).getLatLng){if(!this.hasLayer(s)&&(this._addLayer(s,this._maxZoom),s.__parent&&2===s.__parent.getChildCount())){var i=s.__parent.getAllChildMarkers(),n=i[0]===s?i[1]:i[0];r.removeLayer(n)}}else a.addLayer(s)}u&&u(d,o.length,(new Date).getTime()-c),d===o.length?(this._topClusterLevel._recalculateBounds(),this._featureGroup.eachLayer(function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()}),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(p,this.options.chunkDelay)},this);p()}else{for(t=[],e=0,i=o.length;e<i;e++)(s=o[e]).getLatLng?this.hasLayer(s)||t.push(s):a.addLayer(s);this._needsClustering=this._needsClustering.concat(t)}return this},removeLayers:function(t){var e,i,n,o=this._featureGroup,s=this._nonPointGroup;if(!this._map){for(e=0,i=t.length;e<i;e++)n=t[e],this._arraySplice(this._needsClustering,n),s.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push(n);return this}if(this._unspiderfy)for(this._unspiderfy(),e=0,i=t.length;e<i;e++)n=t[e],this._unspiderfyLayer(n);for(e=0,i=t.length;e<i;e++)(n=t[e]).__parent?(this._removeLayer(n,!0,!0),o.hasLayer(n)&&(o.removeLayer(n),n.clusterShow&&n.clusterShow())):s.removeLayer(n);return this._topClusterLevel._recalculateBounds(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),o.eachLayer(function(t){t instanceof L.MarkerCluster&&t._updateIcon()}),this},clearLayers:function(){return this._map||(this._needsClustering=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(t){delete t.__parent}),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;0<=e;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n=this._needsClustering.slice();for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),i=n.length-1;0<=i;i--)t.call(e,n[i]);this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var i=null;return e=parseInt(e,10),this.eachLayer(function(t){L.stamp(t)===e&&(i=t)}),i},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;0<=e;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;0<=e;e--)if(i[e]===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){"function"!=typeof e&&(e=function(){});var i=function(){!t._icon&&!t.__parent._icon||this._inZoomAnimation||(this._map.off("moveend",i,this),this.off("animationend",i,this),t._icon?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};if(t._icon&&this._map.getBounds().contains(t.getLatLng()))e();else if(t.__parent._zoom<this._map.getZoom())this._map.on("moveend",i,this),this._map.panTo(t.getLatLng());else{var n=function(){this._map.off("movestart",n,this),n=null};this._map.on("movestart",n,this),this._map.on("moveend",i,this),this.on("animationend",i,this),t.__parent.zoomToBounds(),n&&i.call(this)}},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
1for(this._featureGroup.onAdd(t),this._nonPointGroup.onAdd(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n,!0);this._needsRemoving=[],this._zoom=this._map.getZoom(),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.onRemove(t),this._nonPointGroup.onRemove(t),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;0<=i;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered;0<=e&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,s=this._featureGroup,r=this._map;e&&this._removeFromGridUnclustered(t,this._maxZoom);var a,l=t.__parent,h=l._markers;for(this._arraySplice(h,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<0));)e&&l._childCount<=1?(a=l._markers[0]===t?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,r.project(l._cLatLng,l._zoom)),o[l._zoom].addObject(a,r.project(a.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(a),a.__parent=l.__parent,l._icon&&(s.removeLayer(l),i||s.addLayer(a))):i&&l._icon||l._updateIcon(),l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},_propagateEvent:function(t){if(t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;t.type="cluster"+t.type}this.fire(t.type,t)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;(e||n)&&this.on("clusterclick",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){for(var e=t.layer,i=e;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount?this.options.spiderfyOnMaxZoom&&e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),2<t.layer.getChildCount()&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;(t||i)&&this.off("clusterclick",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),n.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=this._map._zoom,this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._map._zoom,t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=this._map.getMaxZoom(),e=this.options.maxClusterRadius,i=e;"function"!=typeof e&&(i=function(){return e}),this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var n=t;0<=n;n--)this._gridClusters[n]=new L.DistanceGrid(i(n)),this._gridUnclustered[n]=new L.DistanceGrid(i(n));this._topClusterLevel=new this._markerCluster(this,-1)},_addLayer:function(t,e){var i,n,o=this._gridClusters,s=this._gridUnclustered;
vendor: 19,461 bytes, line 1
1for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t);0<=e;e--){i=this._map.project(t.getLatLng(),e);var r=o[e].getNearObject(i);if(r)return r._addChild(t),void(t.__parent=r);if(r=s[e].getNearObject(i)){var a=r.__parent;a&&this._removeLayer(r,!1);var l=new this._markerCluster(this,e,r,t);o[e].addObject(l,this._map.project(l._cLatLng,e)),r.__parent=l;var h=t.__parent=l;for(n=e-1;n>a._zoom;n--)h=new this._markerCluster(this,n,h),o[n].addObject(h,this._map.project(r.getLatLng(),n));return a._addChild(h),void this._removeFromGridUnclustered(r,e)}s[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){this._processQueue(),this._zoom<this._map._zoom&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,this._map._zoom)):this._zoom>this._map._zoom?(this._animationStart(),this._animationZoomOut(this._zoom,this._map._zoom)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}}),L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(o,s){var r,a=this._getExpandedVisibleBounds(),l=this._featureGroup;this._topClusterLevel._recursively(a,o,0,function(t){var e,i=t._latlng,n=t._markers;for(a.contains(i)||(i=null),t._isSingleParent()&&o+1===s?(l.removeLayer(t),t._recursivelyAddChildrenToMap(null,s,a)):(t.clusterHide(),t._recursivelyAddChildrenToMap(i,s,a)),r=n.length-1;0<=r;r--)e=n[r],a.contains(e._latlng)||l.removeLayer(e)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,s),l.eachLayer(function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()}),this._topClusterLevel._recursively(a,o,s,function(t){t._recursivelyRestoreChildPositions(s)}),this._enqueue(function(){this._topClusterLevel._recursively(a,o,0,function(t){l.removeLayer(t),t.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(2<e._childCount?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue(function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._map.getZoom())))}},_animationZoomOutSingle:function(e,i,n){var o=this._getExpandedVisibleBounds();e._recursivelyAnimateChildrenInAndAddSelfToMap(o,i+1,n);var s=this;this._forceLayout(),e._recursivelyBecomeVisible(o,n),this._enqueue(function(){if(1===e._childCount){var t=e._markers[0];t.setLatLng(t.getLatLng()),t.clusterShow&&t.clusterShow()}else e._recursively(o,n,0,function(t){t._recursivelyRemoveChildrenFromMap(o,i+1)});s._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(e.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)},L.MarkerCluster=L.Marker.extend({initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t){t=t||[];for(var e=this._childClusters.length-1;0<=e;e--)this._childClusters[e].getAllChildMarkers(t);for(var i=this._markers.length-1;0<=i;i--)t.push(this._markers[i]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(){for(var t,e=this._childClusters.slice(),i=this._group._map,n=i.getBoundsZoom(this._bounds),o=this._zoom+1,s=i.getZoom();0<e.length&&o<n;){o++;var r=[];for(t=0;t<e.length;t++)r=r.concat(e[t]._childClusters);e=r}o<n?this._group._map.setView(this._latlng,o):n<=s?this._group._map.setView(this._latlng,s+1):this._group._map.fitBounds(this._bounds)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,o=this._markers,s=this._childClusters,r=0,a=0,l=this._childCount;if(0!==l){for(this._resetBounds(),t=0;t<o.length;t++)i=o[t]._latlng,this._bounds.extend(i),r+=i.lat,a+=i.lng;for(t=0;t<s.length;t++)(e=s[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,r+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(r/l,a/l),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,o,e){this._recursively(t,0,e-1,function(t){var e,i,n=t._markers;for(e=n.length-1;0<=e;e--)(i=n[e])._icon&&(i._setPos(o),i.clusterHide())},function(t){var e,i,n=t._childClusters;for(e=n.length-1;0<=e;e--)(i=n[e])._icon&&(i._setPos(o),i.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,i,n){this._recursively(e,n,0,function(t){t._recursivelyAnimateChildrenIn(e,t._group._map.latLngToLayerPoint(t.getLatLng()).round(),i),t._isSingleParent()&&i-1===n?(t.clusterShow(),t._recursivelyRemoveChildrenFromMap(e,i)):t.clusterHide(),t._addToMap()})},_recursivelyBecomeVisible:function(t,e){this._recursively(t,0,e,null,function(t){t.clusterShow()})},_recursivelyAddChildrenToMap:function(n,o,s){this._recursively(s,-1,o,function(t){if(o!==t._zoom)for(var e=t._markers.length-1;0<=e;e--){var i=t._markers[e];s.contains(i._latlng)&&(n&&(i._backupLatlng=i.getLatLng(),i.setLatLng(n),i.clusterHide&&i.clusterHide()),t._group._featureGroup.addLayer(i))}},function(t){t._addToMap(n)})},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;0<=e;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;0<=n;n--)this._childClusters[n]._restorePosition();else for(var o=this._childClusters.length-1;0<=o;o--)this._childClusters[o]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i){var n,o;this._recursively(t,-1,e-1,function(t){for(o=t._markers.length-1;0<=o;o--)n=t._markers[o],i&&i.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())},function(t){for(o=t._childClusters.length-1;0<=o;o--)n=t._childClusters[o],i&&i.contains(n._latlng)||(t._group._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow())})},_recursively:function(t,e,i,n,o){var s,r,a=this._childClusters,l=this._zoom;if(l<e)for(s=a.length-1;0<=s;s--)r=a[s],t.intersects(r._bounds)&&r._recursively(t,e,i,n,o);else if(n&&n(this),o&&this._zoom===i&&o(this),l<i)for(s=a.length-1;0<=s;s--)r=a[s],t.intersects(r._bounds)&&r._recursively(t,e,i,n,o)},_isSingleParent:function(){return 0<this._childClusters.length&&this._childClusters[0]._childCount===this._childCount}}),L.Marker.include({clusterHide:function(){return this.options.opacityWhenUnclustered=this.options.opacity||1,this.setOpacity(0)},clusterShow:function(){var t=this.setOpacity(this.options.opacity||this.options.opacityWhenUnclustered);return delete this.options.opacityWhenUnclustered,t}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,s=o[n]=o[n]||{},r=s[i]=s[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,o=this._getCoord(e.x),s=this._getCoord(e.y),r=this._grid,a=r[s]=r[s]||{},l=a[o]=a[o]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=l.length;i<n;i++)if(l[i]===t)return l.splice(i,1),1===n&&delete a[o],!0},eachObject:function(t,e){var i,n,o,s,r,a,l=this._grid;for(i in l)for(n in r=l[i])for(o=0,s=(a=r[n]).length;o<s;o++)t.call(e,a[o])&&(o--,s--)},getNearObject:function(t){var e,i,n,o,s,r,a,l,h=this._getCoord(t.x),u=this._getCoord(t.y),d=this._objectPoint,c=this._sqCellSize,p=null;for(e=u-1;e<=u+1;e++)if(o=this._grid[e])for(i=h-1;i<=h+1;i++)if(s=o[i])for(n=0,r=s.length;n<r;n++)a=s[n],(l=this._sqDist(d[L.Util.stamp(a)],t))<c&&(c=l,p=a);return p},_getCoord:function(t){return Math.floor(t/this._cellSize)},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,o,s=0,r=null,a=[];for(i=e.length-1;0<=i;i--)n=e[i],0<(o=this.getDistant(n,t))&&(a.push(n),s<o&&(s=o,r=n));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,o=!1,s=!1,r=null,a=null,l=null,h=null,u=null,d=null;for(e=t.length-1;0<=e;e--){var c=t[e];(!1===i||c.lat>i)&&(i=(r=c).lat),(!1===n||c.lat<n)&&(n=(a=c).lat),(!1===o||c.lng>o)&&(o=(l=c).lng),(!1===s||c.lng<s)&&(s=(h=c).lng)}return n!==i?(d=a,u=r):(d=h,u=l),[].concat(this.buildConvexHull([d,u],t),this.buildConvexHull([u,d],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;0<=e;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:Math.PI/6,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,i):(i.y+=10,t=this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,o=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,s=this._2PI/t,r=[];for(i=(r.length=t)-1;0<=i;i--)n=this._circleStartAngle+i*s,r[i]=new L.Point(e.x+o*Math.cos(n),e.y+o*Math.sin(n))._round();return r},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,o=n*this._spiralLengthStart,s=n*this._spiralFootSeparation,r=n*this._spiralLengthFactor*this._2PI,a=0,l=[];for(i=(l.length=t)-1;0<=i;i--)a+=s/o+5e-4*i,l[i]=new L.Point(e.x+o*Math.cos(a),e.y+o*Math.sin(a))._round(),o+=r/a;return l},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,o=i._featureGroup,s=this.getAllChildMarkers();for(this.setOpacity(1),e=s.length-1;0<=e;e--)t=s[e],o.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:s}),i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,o,s,r=this._group,a=r._map,l=r._featureGroup,h=this._group.options.spiderLegPolylineOptions;for(i=0;i<t.length;i++)s=a.layerPointToLatLng(e[i]),n=t[i],o=new L.Polyline([this._latlng,s],h),a.addLayer(o),n._spiderLeg=o,n._preSpiderfyLatlng=n._latlng,n.setLatLng(s),n.setZIndexOffset&&n.setZIndexOffset(1e6),l.addLayer(n);this.setOpacity(.3),r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,n,o,s,r,a,l=this,h=this._group,u=h._map,d=h._featureGroup,c=this._latlng,p=u.latLngToLayerPoint(c),_=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),f=m.opacity;for(void 0===f&&(f=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=f,i=0;i<t.length;i++)n=t[i],a=u.layerPointToLatLng(e[i]),o=new L.Polyline([c,a],m),u.addLayer(o),n._spiderLeg=o,_&&(r=(s=o._path).getTotalLength()+.1,s.style.strokeDasharray=r,s.style.strokeDashoffset=r),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),d.addLayer(n),n._setPos&&n._setPos(p);for(h._forceLayout(),h._animationStart(),i=t.length-1;0<=i;i--)a=u.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),_&&((s=(o=n._spiderLeg)._path).style.strokeDashoffset=0,o.setStyle({opacity:f}));this.setOpacity(.3),setTimeout(function(){h._animationEnd(),h.fire("spiderfied",{cluster:l,markers:t})},200)},_animationUnspiderfy:function(t){var e,i,n,o,s,r,a=this,l=this._group,h=l._map,u=l._featureGroup,d=t?h._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):h.latLngToLayerPoint(this._latlng),c=this.getAllChildMarkers(),p=L.Path.SVG;for(l._animationStart(),this.setOpacity(1),i=c.length-1;0<=i;i--)(e=c[i])._preSpiderfyLatlng&&(e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(d),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&u.removeLayer(e),p&&(s=(o=(n=e._spiderLeg)._path).getTotalLength()+.1,o.style.strokeDashoffset=s,n.setStyle({opacity:0})));setTimeout(function(){var t=0;for(i=c.length-1;0<=i;i--)(e=c[i])._spiderLeg&&t++;for(i=c.length-1;0<=i;i--)(e=c[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),1<t&&u.removeLayer(e),h.removeLayer(e._spiderLeg),delete e._spiderLeg);l._animationEnd(),l.fire("unspiderfied",{cluster:a,markers:c})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()})},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}})}(window,document);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.