New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-leaflet

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-leaflet - npm Package Compare versions

Comparing version 1.7.5 to 1.7.6

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## v1.7.6 (2017-11-23)
* Fixed supporting `Popup` children in `CircleMarker`.
* Fixed updating multiple classes in the `className` prop of `Map`.
## v1.7.5 (2017-11-20)

@@ -2,0 +7,0 @@

2

dist/react-leaflet.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","leaflet","react","react-dom"],e):e(t.ReactLeaflet={},t.L,t.React,t.ReactDOM)}(this,function(t,e,n,o){"use strict";function r(t){return function(){return t}}function i(t){var e=Je.call(t,Ye),n=t[Ye];try{t[Ye]=void 0;var o=!0}catch(t){}var r=He.call(t);return o&&(e?t[Ye]=n:delete t[Ye]),r}function a(t){return Ke.call(t)}function l(t){return null==t?void 0===t?Xe:Qe:tn&&tn in Object(t)?i(t):a(t)}function u(t){return null!=t&&"object"==typeof t}function p(t){return"symbol"==typeof t||u(t)&&l(t)==en}function s(t,e){if(Ve(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!p(t))||(on.test(t)||!nn.test(t)||null!=e&&t in Object(e))}function c(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function f(t){if(!c(t))return!1;var e=l(t);return e==an||e==ln||e==rn||e==un}function h(t){return!!sn&&sn in t}function y(t){if(null!=t){try{return cn.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function d(t){return!(!c(t)||h(t))&&(f(t)?bn:hn).test(y(t))}function m(t,e){return null==t?void 0:t[e]}function v(t,e){var n=m(t,e);return d(n)?n:void 0}function b(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function g(t,e){return t===e||t!==t&&e!==e}function E(t,e){for(var n=t.length;n--;)if(g(t[n][0],e))return n;return-1}function O(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function j(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function _(t,e){var n=t.__data__;return j(e)?n["string"==typeof e?"string":"hash"]:n.map}function C(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function L(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(wn);var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=t.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(L.Cache||C),n}function w(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}function x(t){if("string"==typeof t)return t;if(Ve(t))return w(t,x)+"";if(p(t))return Mn?Mn.call(t):"";var e=t+"";return"0"==e&&1/t==-In?"-0":e}function T(t){return null==t?"":x(t)}function P(t,e){return Ve(t)?t:s(t,e)?[t]:zn(T(t))}function A(t){if("string"==typeof t||p(t))return t;var e=t+"";return"0"==e&&1/t==-Rn?"-0":e}function z(t,e){for(var n=0,o=(e=P(e,t)).length;null!=t&&n<o;)t=t[A(e[n++])];return n&&n==o?t:void 0}function I(t,e,n){"__proto__"==e&&Un?Un(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function S(t,e,n){var o=t[e];Bn.call(t,e)&&g(o,n)&&(void 0!==n||e in t)||I(t,e,n)}function M(t,e){return!!(e=null==e?Dn:e)&&("number"==typeof t||Wn.test(t))&&t>-1&&t%1==0&&t<e}function R(t,e,n,o){if(!c(t))return t;for(var r=-1,i=(e=P(e,t)).length,a=i-1,l=t;null!=l&&++r<i;){var u=A(e[r]),p=n;if(r!=a){var s=l[u];void 0===(p=o?o(s,u,l):void 0)&&(p=c(s)?s:M(e[r+1])?[]:{})}S(l,u,p),l=l[u]}return t}function U(t,e,n){for(var o=-1,r=e.length,i={};++o<r;){var a=e[o],l=z(t,a);n(l,a)&&R(i,P(a,t),l)}return i}function B(t,e){return null!=t&&e in Object(t)}function D(t){return u(t)&&l(t)==Nn}function W(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=$n}function N(t,e,n){for(var o=-1,r=(e=P(e,t)).length,i=!1;++o<r;){var a=A(e[o]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++o!=r?i:!!(r=null==t?0:t.length)&&W(r)&&M(a,r)&&(Ve(t)||Fn(t))}function k(t,e){return null!=t&&N(t,e,B)}function V(t,e){return U(t,e,function(e,n){return k(t,n)})}function q(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}function F(t){return Ve(t)||Fn(t)||!!(Gn&&t&&t[Gn])}function $(t,e,n,o,r){var i=-1,a=t.length;for(n||(n=F),r||(r=[]);++i<a;){var l=t[i];e>0&&n(l)?e>1?$(l,e-1,n,o,r):q(r,l):o||(r[r.length]=l)}return r}function G(t){return(null==t?0:t.length)?$(t,1):[]}function Z(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function J(t,e,n){return e=Zn(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=Zn(o.length-e,0),a=Array(i);++r<i;)a[r]=o[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=o[r];return l[e]=n(a),Z(t,this,l)}}function H(t){return function(){return t}}function Y(t){return t}function K(t){return Qn(J(t,void 0,G),t+"")}function Q(t){var e=this.__data__=new O(t);this.size=e.size}function X(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new C;++e<n;)this.add(t[e])}function tt(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}function et(t,e){return t.has(e)}function nt(t,e,n,o,r,i){var a=n&no,l=t.length,u=e.length;if(l!=u&&!(a&&u>l))return!1;var p=i.get(t);if(p&&i.get(e))return p==e;var s=-1,c=!0,f=n&oo?new X:void 0;for(i.set(t,e),i.set(e,t);++s<l;){var h=t[s],y=e[s];if(o)var d=a?o(y,h,s,e,t,i):o(h,y,s,t,e,i);if(void 0!==d){if(d)continue;c=!1;break}if(f){if(!tt(e,function(t,e){if(!et(f,e)&&(h===t||r(h,t,n,o,i)))return f.push(e)})){c=!1;break}}else if(h!==y&&!r(h,y,n,o,i)){c=!1;break}}return i.delete(t),i.delete(e),c}function ot(t){var e=-1,n=Array(t.size);return t.forEach(function(t,o){n[++e]=[o,t]}),n}function rt(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function it(t,e,n,o,r,i,a){switch(n){case bo:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vo:return!(t.byteLength!=e.byteLength||!i(new ro(t),new ro(e)));case lo:case uo:case co:return g(+t,+e);case po:return t.name==e.name&&t.message==e.message;case fo:case yo:return t==e+"";case so:var l=ot;case ho:var u=o&io;if(l||(l=rt),t.size!=e.size&&!u)return!1;var p=a.get(t);if(p)return p==e;o|=ao,a.set(t,e);var s=nt(l(t),l(e),o,r,i,a);return a.delete(t),s;case mo:if(Eo)return Eo.call(t)==Eo.call(e)}return!1}function at(t,e,n){var o=e(t);return Ve(t)?o:q(o,n(t))}function lt(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var a=t[n];e(a,n,t)&&(i[r++]=a)}return i}function ut(){return[]}function pt(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}function st(t,e){var n=Ve(t),o=!n&&Fn(t),r=!n&&!o&&xo(t),i=!n&&!o&&!r&&Mo(t),a=n||o||r||i,l=a?pt(t.length,String):[],u=l.length;for(var p in t)!e&&!Ro.call(t,p)||a&&("length"==p||r&&("offset"==p||"parent"==p)||i&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||M(p,u))||l.push(p);return l}function ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Uo)}function ft(t,e){return function(n){return t(e(n))}}function ht(t){if(!ct(t))return Bo(t);var e=[];for(var n in Object(t))Do.call(t,n)&&"constructor"!=n&&e.push(n);return e}function yt(t){return null!=t&&W(t.length)&&!f(t)}function dt(t){return yt(t)?st(t):ht(t)}function mt(t){return at(t,dt,_o)}function vt(t,e,n,o,r,i){var a=n&Wo,l=mt(t),u=l.length;if(u!=mt(e).length&&!a)return!1;for(var p=u;p--;){var s=l[p];if(!(a?s in e:No.call(e,s)))return!1}var c=i.get(t);if(c&&i.get(e))return c==e;var f=!0;i.set(t,e),i.set(e,t);for(var h=a;++p<u;){var y=t[s=l[p]],d=e[s];if(o)var m=a?o(d,y,s,e,t,i):o(y,d,s,t,e,i);if(!(void 0===m?y===d||r(y,d,n,o,i):m)){f=!1;break}h||(h="constructor"==s)}if(f&&!h){var v=t.constructor,b=e.constructor;v!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(f=!1)}return i.delete(t),i.delete(e),f}function bt(t,e,n,o,r,i){var a=Ve(t),l=Ve(e),u=a?tr:Ko(t),p=l?tr:Ko(e),s=(u=u==Xo?er:u)==er,c=(p=p==Xo?er:p)==er,f=u==p;if(f&&xo(t)){if(!xo(e))return!1;a=!0,s=!1}if(f&&!s)return i||(i=new Q),a||Mo(t)?nt(t,e,n,o,r,i):it(t,e,u,n,o,r,i);if(!(n&Qo)){var h=s&&nr.call(t,"__wrapped__"),y=c&&nr.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,m=y?e.value():e;return i||(i=new Q),r(d,m,n,o,i)}}return!!f&&(i||(i=new Q),vt(t,e,n,o,r,i))}function gt(t,e,n,o,r){return t===e||(null==t||null==e||!u(t)&&!u(e)?t!==t&&e!==e:bt(t,e,n,o,gt,r))}function Et(t,e){return gt(t,e)}function Ot(t,e,n,o){var r=-1,i=null==t?0:t.length;for(o&&i&&(n=t[++r]);++r<i;)n=e(n,t[r],r,t);return n}function jt(t,e,n,o){var r=n.length,i=r,a=!o;if(null==t)return!i;for(t=Object(t);r--;){var l=n[r];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<i;){var u=(l=n[r])[0],p=t[u],s=l[1];if(a&&l[2]){if(void 0===p&&!(u in t))return!1}else{var c=new Q;if(o)var f=o(p,s,u,t,e,c);if(!(void 0===f?gt(s,p,ir|ar,o,c):f))return!1}}return!0}function _t(t){return t===t&&!c(t)}function Ct(t){for(var e=dt(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,_t(r)]}return e}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function wt(t){var e=Ct(t);return 1==e.length&&e[0][2]?Lt(e[0][0],e[0][1]):function(n){return n===t||jt(n,t,e)}}function xt(t,e,n){var o=null==t?void 0:z(t,e);return void 0===o?n:o}function Tt(t,e){return s(t)&&_t(e)?Lt(A(t),e):function(n){var o=xt(n,t);return void 0===o&&o===e?k(n,t):gt(e,o,lr|ur)}}function Pt(t){return function(e){return null==e?void 0:e[t]}}function At(t){return function(e){return z(e,t)}}function zt(t){return s(t)?Pt(A(t)):At(t)}function It(t){return"function"==typeof t?t:null==t?Y:"object"==typeof t?Ve(t)?Tt(t[0],t[1]):wt(t):zt(t)}function St(t,e,n,o,r){return r(t,function(t,r,i){n=o?(o=!1,t):e(n,t,r,i)}),n}function Mt(t,e,n){var o=Ve(t)?Ot:St,r=arguments.length<3;return o(t,It(e,4),n,r,rr)}function Rt(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t}function Ut(t){return"function"==typeof t?t:Y}function Bt(t,e){return(Ve(t)?Rt:rr)(t,Ut(e))}function Dt(t,e,n,o){var r=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var l=e[i],u=o?o(n[l],t[l],l,n,t):void 0;void 0===u&&(u=t[l]),r?I(n,l,u):S(n,l,u)}return n}function Wt(t,e){return t&&Dt(e,dt(e),t)}function Nt(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}function kt(t){if(!c(t))return Nt(t);var e=ct(t),n=[];for(var o in t)("constructor"!=o||!e&&pr.call(t,o))&&n.push(o);return n}function Vt(t){return yt(t)?st(t,!0):kt(t)}function qt(t,e){return t&&Dt(e,Vt(e),t)}function Ft(t,e){if(e)return t.slice();var n=t.length,o=hr?hr(n):new t.constructor(n);return t.copy(o),o}function $t(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}function Gt(t,e){return Dt(t,_o(t),e)}function Zt(t,e){return Dt(t,dr(t),e)}function Jt(t){return at(t,Vt,dr)}function Ht(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&mr.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Yt(t){var e=new t.constructor(t.byteLength);return new ro(e).set(new ro(t)),e}function Kt(t,e){var n=e?Yt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Qt(t,e){return t.set(e[0],e[1]),t}function Xt(t,e,n){return Ot(e?n(ot(t),vr):ot(t),Qt,new t.constructor)}function te(t){var e=new t.constructor(t.source,br.exec(t));return e.lastIndex=t.lastIndex,e}function ee(t,e){return t.add(e),t}function ne(t,e,n){return Ot(e?n(rt(t),gr):rt(t),ee,new t.constructor)}function oe(t){return Or?Object(Or.call(t)):{}}function re(t,e){var n=e?Yt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ie(t,e,n,o){var r=t.constructor;switch(e){case Ar:return Yt(t);case jr:case _r:return new r(+t);case zr:return Kt(t,o);case Ir:case Sr:case Mr:case Rr:case Ur:case Br:case Dr:case Wr:case Nr:return re(t,o);case Cr:return Xt(t,o,n);case Lr:case Tr:return new r(t);case wr:return te(t);case xr:return ne(t,o,n);case Pr:return oe(t)}}function ae(t){return"function"!=typeof t.constructor||ct(t)?{}:Vr(yr(t))}function le(t,e,n,o,r,i){var a,l=e&qr,u=e&Fr,p=e&$r;if(n&&(a=r?n(t,o,r,i):n(t)),void 0!==a)return a;if(!c(t))return t;var s=Ve(t);if(s){if(a=Ht(t),!l)return $t(t,a)}else{var f=Ko(t),h=f==Zr||f==Jr;if(xo(t))return Ft(t,l);if(f==Hr||f==Gr||h&&!r){if(a=u||h?{}:ae(t),!l)return u?Zt(t,qt(a,t)):Gt(t,Wt(a,t))}else{if(!Yr[f])return r?t:{};a=ie(t,f,le,l)}}i||(i=new Q);var y=i.get(t);if(y)return y;i.set(t,a);var d=p?u?Jt:mt:u?keysIn:dt,m=s?void 0:d(t);return Rt(m||t,function(o,r){m&&(o=t[r=o]),S(a,r,le(o,e,n,r,t,i))}),a}function ue(t){return le(t,Kr)}function pe(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function se(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}function ce(t,e){return e.length<2?t:z(t,se(e,0,-1))}function fe(t,e){return e=P(e,t),null==(t=ce(t,e))||delete t[A(pe(e))]}function he(t){if(!u(t)||l(t)!=mi)return!1;var e=yr(t);if(null===e)return!0;var n=Ei.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gi.call(n)==Oi}function ye(t){return he(t)?void 0:t}function de(t){return void 0===t}function me(t){var e=++xi;return T(t)+e}var ve="default"in n?n.default:n,be=function(){};be.thatReturns=r,be.thatReturnsFalse=r(!1),be.thatReturnsTrue=r(!0),be.thatReturnsNull=r(null),be.thatReturnsThis=function(){return this},be.thatReturnsArgument=function(t){return t};var ge=be,Ee=function(t,e,n,o,r,i,a,l){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,r,i,a,l],s=0;(u=new Error(e.replace(/%s/g,function(){return p[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},Oe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",je=function(){function t(t,e,n,o,r,i){i!==Oe&&Ee(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=ge,n.PropTypes=n,n},_e=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){t.exports=je()}),Ce=_e.oneOfType([_e.arrayOf(_e.number),_e.shape({lat:_e.number,lng:_e.number}),_e.shape({lat:_e.number,lon:_e.number})]),Le=_e.arrayOf(Ce),we=_e.oneOfType([_e.instanceOf(e.LatLngBounds),Le]),xe=_e.oneOfType([_e.arrayOf(_e.node),_e.node]),Te=_e.oneOf(["topleft","topright","bottomleft","bottomright"]),Pe=_e.object,Ae=_e.shape({addLayer:_e.func.isRequired,removeLayer:_e.func.isRequired}),ze=_e.instanceOf(e.Map),Ie=_e.shape({center:Ce,zoom:_e.number}),Se=Object.freeze({bounds:we,children:xe,controlPosition:Te,latlng:Ce,latlngList:Le,layer:Pe,layerContainer:Ae,map:ze,viewport:Ie}),Me=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Re=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),Ue=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Be=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},De=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},We=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Ne=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},e.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setPosition(e.position)},e.prototype.componentWillMount=function(){this.leafletElement=this.createLeafletElement(this.props)},e.prototype.componentDidMount=function(){this.leafletElement.addTo(this.context.map)},e.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},e.prototype.componentWillUnmount=function(){this.leafletElement.remove()},e.prototype.render=function(){return null},e}(n.Component);Ne.propTypes={position:Te},Ne.contextTypes={map:ze};var ke=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Attribution(t)},n}(Ne);ke.propTypes={position:Te,prefix:_e.string};var Ve=Array.isArray,qe="object"==typeof global&&global&&global.Object===Object&&global,Fe="object"==typeof self&&self&&self.Object===Object&&self,$e=qe||Fe||Function("return this")(),Ge=$e.Symbol,Ze=Object.prototype,Je=Ze.hasOwnProperty,He=Ze.toString,Ye=Ge?Ge.toStringTag:void 0,Ke=Object.prototype.toString,Qe="[object Null]",Xe="[object Undefined]",tn=Ge?Ge.toStringTag:void 0,en="[object Symbol]",nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/,rn="[object AsyncFunction]",an="[object Function]",ln="[object GeneratorFunction]",un="[object Proxy]",pn=$e["__core-js_shared__"],sn=function(){var t=/[^.]+$/.exec(pn&&pn.keys&&pn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),cn=Function.prototype.toString,fn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,yn=Function.prototype,dn=Object.prototype,mn=yn.toString,vn=dn.hasOwnProperty,bn=RegExp("^"+mn.call(vn).replace(fn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gn=v(Object,"create"),En="__lodash_hash_undefined__",On=Object.prototype.hasOwnProperty,jn=Object.prototype.hasOwnProperty,_n="__lodash_hash_undefined__";b.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},b.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},b.prototype.get=function(t){var e=this.__data__;if(gn){var n=e[t];return n===En?void 0:n}return On.call(e,t)?e[t]:void 0},b.prototype.has=function(t){var e=this.__data__;return gn?void 0!==e[t]:jn.call(e,t)},b.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gn&&void 0===e?_n:e,this};var Cn=Array.prototype.splice;O.prototype.clear=function(){this.__data__=[],this.size=0},O.prototype.delete=function(t){var e=this.__data__,n=E(e,t);return!(n<0||(n==e.length-1?e.pop():Cn.call(e,n,1),--this.size,0))},O.prototype.get=function(t){var e=this.__data__,n=E(e,t);return n<0?void 0:e[n][1]},O.prototype.has=function(t){return E(this.__data__,t)>-1},O.prototype.set=function(t,e){var n=this.__data__,o=E(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};var Ln=v($e,"Map");C.prototype.clear=function(){this.size=0,this.__data__={hash:new b,map:new(Ln||O),string:new b}},C.prototype.delete=function(t){var e=_(this,t).delete(t);return this.size-=e?1:0,e},C.prototype.get=function(t){return _(this,t).get(t)},C.prototype.has=function(t){return _(this,t).has(t)},C.prototype.set=function(t,e){var n=_(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};var wn="Expected a function";L.Cache=C;var xn=500,Tn=/^\./,Pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,An=/\\(\\)?/g,zn=function(t){var e=L(t,function(t){return n.size===xn&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return Tn.test(t)&&e.push(""),t.replace(Pn,function(t,n,o,r){e.push(o?r.replace(An,"$1"):n||t)}),e}),In=1/0,Sn=Ge?Ge.prototype:void 0,Mn=Sn?Sn.toString:void 0,Rn=1/0,Un=function(){try{var t=v(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Bn=Object.prototype.hasOwnProperty,Dn=9007199254740991,Wn=/^(?:0|[1-9]\d*)$/,Nn="[object Arguments]",kn=Object.prototype,Vn=kn.hasOwnProperty,qn=kn.propertyIsEnumerable,Fn=D(function(){return arguments}())?D:function(t){return u(t)&&Vn.call(t,"callee")&&!qn.call(t,"callee")},$n=9007199254740991,Gn=Ge?Ge.isConcatSpreadable:void 0,Zn=Math.max,Jn=Un?function(t,e){return Un(t,"toString",{configurable:!0,enumerable:!1,value:H(e),writable:!0})}:Y,Hn=800,Yn=16,Kn=Date.now,Qn=function(t){var e=0,n=0;return function(){var o=Kn(),r=Yn-(o-n);if(n=o,r>0){if(++e>=Hn)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Jn),Xn=K(function(t,e){return null==t?{}:V(t,e)}),to=200;Q.prototype.clear=function(){this.__data__=new O,this.size=0},Q.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Q.prototype.get=function(t){return this.__data__.get(t)},Q.prototype.has=function(t){return this.__data__.has(t)},Q.prototype.set=function(t,e){var n=this.__data__;if(n instanceof O){var o=n.__data__;if(!Ln||o.length<to-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new C(o)}return n.set(t,e),this.size=n.size,this};var eo="__lodash_hash_undefined__";X.prototype.add=X.prototype.push=function(t){return this.__data__.set(t,eo),this},X.prototype.has=function(t){return this.__data__.has(t)};var no=1,oo=2,ro=$e.Uint8Array,io=1,ao=2,lo="[object Boolean]",uo="[object Date]",po="[object Error]",so="[object Map]",co="[object Number]",fo="[object RegExp]",ho="[object Set]",yo="[object String]",mo="[object Symbol]",vo="[object ArrayBuffer]",bo="[object DataView]",go=Ge?Ge.prototype:void 0,Eo=go?go.valueOf:void 0,Oo=Object.prototype.propertyIsEnumerable,jo=Object.getOwnPropertySymbols,_o=jo?function(t){return null==t?[]:(t=Object(t),lt(jo(t),function(e){return Oo.call(t,e)}))}:ut,Co="object"==typeof t&&t&&!t.nodeType&&t,Lo=Co&&"object"==typeof module&&module&&!module.nodeType&&module,wo=Lo&&Lo.exports===Co?$e.Buffer:void 0,xo=(wo?wo.isBuffer:void 0)||function(){return!1},To={};To["[object Float32Array]"]=To["[object Float64Array]"]=To["[object Int8Array]"]=To["[object Int16Array]"]=To["[object Int32Array]"]=To["[object Uint8Array]"]=To["[object Uint8ClampedArray]"]=To["[object Uint16Array]"]=To["[object Uint32Array]"]=!0,To["[object Arguments]"]=To["[object Array]"]=To["[object ArrayBuffer]"]=To["[object Boolean]"]=To["[object DataView]"]=To["[object Date]"]=To["[object Error]"]=To["[object Function]"]=To["[object Map]"]=To["[object Number]"]=To["[object Object]"]=To["[object RegExp]"]=To["[object Set]"]=To["[object String]"]=To["[object WeakMap]"]=!1;var Po="object"==typeof t&&t&&!t.nodeType&&t,Ao=Po&&"object"==typeof module&&module&&!module.nodeType&&module,zo=Ao&&Ao.exports===Po&&qe.process,Io=function(){try{return zo&&zo.binding&&zo.binding("util")}catch(t){}}(),So=Io&&Io.isTypedArray,Mo=So?function(t){return function(e){return t(e)}}(So):function(t){return u(t)&&W(t.length)&&!!To[l(t)]},Ro=Object.prototype.hasOwnProperty,Uo=Object.prototype,Bo=ft(Object.keys,Object),Do=Object.prototype.hasOwnProperty,Wo=1,No=Object.prototype.hasOwnProperty,ko=v($e,"DataView"),Vo=v($e,"Promise"),qo=v($e,"Set"),Fo=v($e,"WeakMap"),$o=y(ko),Go=y(Ln),Zo=y(Vo),Jo=y(qo),Ho=y(Fo),Yo=l;(ko&&"[object DataView]"!=Yo(new ko(new ArrayBuffer(1)))||Ln&&"[object Map]"!=Yo(new Ln)||Vo&&"[object Promise]"!=Yo(Vo.resolve())||qo&&"[object Set]"!=Yo(new qo)||Fo&&"[object WeakMap]"!=Yo(new Fo))&&(Yo=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,o=n?y(n):"";if(o)switch(o){case $o:return"[object DataView]";case Go:return"[object Map]";case Zo:return"[object Promise]";case Jo:return"[object Set]";case Ho:return"[object WeakMap]"}return e});var Ko=Yo,Qo=1,Xo="[object Arguments]",tr="[object Array]",er="[object Object]",nr=Object.prototype.hasOwnProperty,or=function(t){return function(e,n,o){for(var r=-1,i=Object(e),a=o(e),l=a.length;l--;){var u=a[t?l:++r];if(!1===n(i[u],u,i))break}return e}}(),rr=function(t,e){return function(n,o){if(null==n)return n;if(!yt(n))return t(n,o);for(var r=n.length,i=e?r:-1,a=Object(n);(e?i--:++i<r)&&!1!==o(a[i],i,a););return n}}(function(t,e){return t&&or(t,e,dt)}),ir=1,ar=2,lr=1,ur=2,pr=Object.prototype.hasOwnProperty,sr="object"==typeof t&&t&&!t.nodeType&&t,cr=sr&&"object"==typeof module&&module&&!module.nodeType&&module,fr=cr&&cr.exports===sr?$e.Buffer:void 0,hr=fr?fr.allocUnsafe:void 0,yr=ft(Object.getPrototypeOf,Object),dr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)q(e,_o(t)),t=yr(t);return e}:ut,mr=Object.prototype.hasOwnProperty,vr=1,br=/\w*$/,gr=1,Er=Ge?Ge.prototype:void 0,Or=Er?Er.valueOf:void 0,jr="[object Boolean]",_r="[object Date]",Cr="[object Map]",Lr="[object Number]",wr="[object RegExp]",xr="[object Set]",Tr="[object String]",Pr="[object Symbol]",Ar="[object ArrayBuffer]",zr="[object DataView]",Ir="[object Float32Array]",Sr="[object Float64Array]",Mr="[object Int8Array]",Rr="[object Int16Array]",Ur="[object Int32Array]",Br="[object Uint8Array]",Dr="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Nr="[object Uint32Array]",kr=Object.create,Vr=function(){function t(){}return function(e){if(!c(e))return{};if(kr)return kr(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),qr=1,Fr=2,$r=4,Gr="[object Arguments]",Zr="[object Function]",Jr="[object GeneratorFunction]",Hr="[object Object]",Yr={};Yr[Gr]=Yr["[object Array]"]=Yr["[object ArrayBuffer]"]=Yr["[object DataView]"]=Yr["[object Boolean]"]=Yr["[object Date]"]=Yr["[object Float32Array]"]=Yr["[object Float64Array]"]=Yr["[object Int8Array]"]=Yr["[object Int16Array]"]=Yr["[object Int32Array]"]=Yr["[object Map]"]=Yr["[object Number]"]=Yr[Hr]=Yr["[object RegExp]"]=Yr["[object Set]"]=Yr["[object String]"]=Yr["[object Symbol]"]=Yr["[object Uint8Array]"]=Yr["[object Uint8ClampedArray]"]=Yr["[object Uint16Array]"]=Yr["[object Uint32Array]"]=!0,Yr["[object Error]"]=Yr[Zr]=Yr["[object WeakMap]"]=!1;var Kr=4,Qr=/^on(.+)$/i,Xr=function(t){function e(n,o){Me(this,e);var r=We(this,t.call(this,n,o));return r._leafletEvents={},r}return Be(e,t),e.prototype.componentWillMount=function(){this._leafletEvents=this.extractLeafletEvents(this.props)},e.prototype.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},e.prototype.componentWillReceiveProps=function(t){var e=this.extractLeafletEvents(t);this._leafletEvents=this.bindLeafletEvents(e,this._leafletEvents)},e.prototype.componentWillUnmount=function(){var t=this.leafletElement;t&&Bt(this._leafletEvents,function(e,n){t.off(n,e)})},e.prototype.extractLeafletEvents=function(t){return Mt(dt(t),function(e,n){if(Qr.test(n)){var o=n.replace(Qr,function(t,e){return e.toLowerCase()});null!=t[n]&&(e[o]=t[n])}return e},{})},e.prototype.bindLeafletEvents=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.leafletElement;if(null==n||null==n.on)return{};var o=ue(e);return Bt(e,function(e,r){t[r]&&e===t[r]||(delete o[r],n.off(r,e))}),Bt(t,function(t,r){e[r]&&t===e[r]||(o[r]=t,n.on(r,t))}),o},e.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e.prototype.getOptions=function(t){var e=null==t.pane?this.context.pane:t.pane;return e?Ue({},t,{pane:e}):t},e}(n.Component),ti=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},e.prototype.updateLeafletElement=function(t,e){},e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},e.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},e.prototype.render=function(){var t=this.props.children;return n.Children.count(t)>1?ve.createElement("div",{style:{display:"none"}},t):null==t?null:t},Re(e,[{key:"layerContainer",get:function(){return this.context.layerContainer||this.context.map}}]),e}(Xr);ti.propTypes={children:xe},ti.contextTypes={layerContainer:Ae,map:ze,pane:_e.string};var ei=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],ni=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e),this.setStyleIfChanged(e,this.props)},e.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},e.prototype.getPathOptions=function(t){return Xn(t,ei)},e.prototype.setStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},e.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);Et(n,this.getPathOptions(t))||this.setStyle(n)},e}(ti);ni.childContextTypes={children:xe,popupContainer:Pe};var oi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){var n=t.center,o=t.radius,r=De(t,["center","radius"]);return new e.Circle(n,o,this.getOptions(r))},n.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},n}(ni);oi.propTypes={center:Ce.isRequired,children:xe,radius:_e.number.isRequired};var ri=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.CircleMarker(t.center,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},n}(ni);ri.propTypes={center:Ce.isRequired,children:xe,radius:_e.number};var ii=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement,popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.FeatureGroup(this.getOptions(t))},n.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setStyle(this.props)},n}(ni);ii.childContextTypes={children:xe,layerContainer:Ae,popupContainer:Pe};var ai=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.GeoJSON(t.data,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){f(e.style)?this.setStyle(e.style):this.setStyleIfChanged(t,e)},n}(ni);ai.propTypes={children:xe,data:_e.oneOfType([_e.array,_e.object]).isRequired};var li=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.GridLayer(this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){var n=e.opacity,o=e.zIndex;n!==t.opacity&&this.leafletElement.setOpacity(n),o!==t.zIndex&&this.leafletElement.setZIndex(o)},n.prototype.render=function(){return null},n}(ti);li.propTypes={children:xe,opacity:_e.number,zIndex:_e.number};var ui=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.ImageOverlay(t.url,t.bounds,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,n){n.url!==t.url&&this.leafletElement.setUrl(n.url),n.bounds!==t.bounds&&this.leafletElement.setBounds(e.latLngBounds(n.bounds)),n.opacity!==t.opacity&&this.leafletElement.setOpacity(n.opacity),n.zIndex!==t.zIndex&&this.leafletElement.setZIndex(n.zIndex)},n}(ti);ui.propTypes={attribution:_e.string,bounds:we.isRequired,children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number},ui.childContextTypes={popupContainer:Pe};var pi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement}},n.prototype.createLeafletElement=function(){return new e.LayerGroup(this.getOptions(this.props))},n}(ti);pi.childContextTypes={layerContainer:Ae};var si={checked:_e.bool,children:_e.node.isRequired,removeLayer:_e.func,removeLayerControl:_e.func},ci=Ue({},si,{addBaseLayer:_e.func,addOverlay:_e.func,name:_e.string.isRequired}),fi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.getChildContext=function(){return{layerContainer:{addLayer:this.addLayer.bind(this),removeLayer:this.removeLayer.bind(this)}}},e.prototype.componentWillReceiveProps=function(t){var e=t.checked;!0!==e||null!=this.props.checked&&!1!==this.props.checked?!0!==this.props.checked||null!=e&&!1!==e||this.context.map.removeLayer(this.layer):this.context.map.addLayer(this.layer)},e.prototype.componentWillUnmount=function(){this.props.removeLayerControl(this.layer)},e.prototype.addLayer=function(){throw new Error("Must be implemented in extending class")},e.prototype.removeLayer=function(t){this.props.removeLayer(t)},e.prototype.render=function(){return this.props.children||null},e}(n.Component);fi.propTypes=si,fi.contextTypes={map:ze},fi.childContextTypes={layerContainer:Ae};var hi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.addLayer=function(t){this.layer=t;var e=this.props,n=e.addBaseLayer,o=e.checked;n(t,e.name,o)},e}(fi);hi.propTypes=ci;var yi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.addLayer=function(t){this.layer=t;var e=this.props,n=e.addOverlay,o=e.checked;n(t,e.name,o)},e}(fi);yi.propTypes=ci;var di=function(t){function o(){return Me(this,o),We(this,t.apply(this,arguments))}return Be(o,t),o.prototype.createLeafletElement=function(t){t.children;var n=De(t,["children"]);return new e.Control.Layers(void 0,void 0,n)},o.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.controlProps={addBaseLayer:this.addBaseLayer.bind(this),addOverlay:this.addOverlay.bind(this),removeLayer:this.removeLayer.bind(this),removeLayerControl:this.removeLayerControl.bind(this)}},o.prototype.componentWillUnmount=function(){var e=this;setTimeout(function(){t.prototype.componentWillUnmount.call(e)},0)},o.prototype.addBaseLayer=function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.context.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},o.prototype.addOverlay=function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.context.map.addLayer(t),this.leafletElement.addOverlay(t,e)},o.prototype.removeLayer=function(t){this.context.map.removeLayer(t)},o.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},o.prototype.render=function(){var t=this,e=n.Children.map(this.props.children,function(e){return e?n.cloneElement(e,t.controlProps):null});return ve.createElement("div",{style:{display:"none"}},e)},o}(Ne);di.propTypes={baseLayers:_e.object,children:xe,overlays:_e.object,position:Te},di.contextTypes={layerContainer:Ae,map:ze},di.BaseLayer=hi,di.Overlay=yi;var mi="[object Object]",vi=Function.prototype,bi=Object.prototype,gi=vi.toString,Ei=bi.hasOwnProperty,Oi=gi.call(Object),ji=K(function(t,e){var n={};if(null==t)return n;var o=!1;e=w(e,function(e){return e=P(e,t),o||(o=e.length>1),e}),Dt(t,Jt(t),n),o&&(n=le(n,7,ye));for(var r=e.length;r--;)fe(n,e[r]);return n}),_i=["children","className","id","style","useFlyTo","whenReady"],Ci=function(t){return Array.isArray(t)?[t[0],t[1]]:[t.lat,t.lon?t.lon:t.lng]},Li=function(t){function n(e,o){Me(this,n);var r=We(this,t.call(this,e,o));return r.viewport={center:void 0,zoom:void 0},r._updating=!1,r.onViewportChange=function(){var t=r.leafletElement.getCenter();r.viewport={center:t?[t.lat,t.lng]:void 0,zoom:r.leafletElement.getZoom()},r.props.onViewportChange&&!r._updating&&r.props.onViewportChange(r.viewport)},r.onViewportChanged=function(){r.props.onViewportChanged&&!r._updating&&r.props.onViewportChanged(r.viewport)},r.bindContainer=function(t){r.container=t},r.className=e.className,r}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement,map:this.leafletElement}},n.prototype.createLeafletElement=function(t){var n=t.viewport,o=De(t,["viewport"]);return n&&(n.center&&(o.center=n.center),"number"==typeof n.zoom&&(o.zoom=n.zoom)),new e.Map(this.container,o)},n.prototype.updateLeafletElement=function(t,n){this._updating=!0;var o=n.animate,r=n.bounds,i=n.boundsOptions,a=n.center,l=n.className,u=n.maxBounds,p=n.useFlyTo,s=n.viewport,c=n.zoom;if(l!==t.className&&(null!=t.className&&e.DomUtil.removeClass(this.container,t.className),null!=l&&e.DomUtil.addClass(this.container,l)),s&&s!==t.viewport){var f=s.center?s.center:a,h=null==s.zoom?c:s.zoom;!0===p?this.leafletElement.flyTo(f,h,{animate:o}):this.leafletElement.setView(f,h,{animate:o})}else a&&this.shouldUpdateCenter(a,t.center)?!0===p?this.leafletElement.flyTo(a,c,{animate:o}):this.leafletElement.setView(a,c,{animate:o}):"number"==typeof c&&c!==t.zoom&&(null==t.zoom?this.leafletElement.setView(a,c):this.leafletElement.setZoom(c));u&&this.shouldUpdateBounds(u,t.maxBounds)&&this.leafletElement.setMaxBounds(u),r&&(this.shouldUpdateBounds(r,t.bounds)||i!==t.boundsOptions)&&(!0===p?this.leafletElement.flyToBounds(r,i):this.leafletElement.fitBounds(r,i)),this._updating=!1},n.prototype.componentDidMount=function(){var e=ji(this.props,_i);this.leafletElement=this.createLeafletElement(e),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),de(e.bounds)||this.leafletElement.fitBounds(e.bounds,e.boundsOptions),this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady),t.prototype.componentDidMount.call(this),this.forceUpdate()},n.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},n.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),this.leafletElement.remove()},n.prototype.shouldUpdateCenter=function(t,e){return!e||(t=Ci(t),e=Ci(e),t[0]!==e[0]||t[1]!==e[1])},n.prototype.shouldUpdateBounds=function(t,n){return!n||!e.latLngBounds(t).equals(e.latLngBounds(n))},n.prototype.render=function(){var t=this.leafletElement?this.props.children:null;return ve.createElement("div",{className:this.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},t)},n}(Xr);Li.propTypes={animate:_e.bool,bounds:we,boundsOptions:_e.object,center:Ce,children:xe,className:_e.string,id:_e.string,maxBounds:we,maxZoom:_e.number,minZoom:_e.number,style:_e.object,useFlyTo:_e.bool,viewport:Ie,whenReady:_e.func,zoom:_e.number},Li.childContextTypes={layerContainer:Ae,map:ze};var wi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.Marker(t.position,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position),e.icon!==t.icon&&this.leafletElement.setIcon(e.icon),e.zIndexOffset!==t.zIndexOffset&&this.leafletElement.setZIndexOffset(e.zIndexOffset),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.draggable!==t.draggable&&(!0===e.draggable?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},n}(ti);wi.propTypes={children:xe,draggable:_e.bool,icon:_e.instanceOf(e.Icon),opacity:_e.number,position:Ce.isRequired,zIndexOffset:_e.number},wi.childContextTypes={popupContainer:Pe};var xi=0,Ti=["tile","shadow","overlay","map","marker","tooltip","popup"],Pi=function(t){return-1!==Ti.indexOf(t.replace(/-*pane/gi,""))},Ai={position:"absolute",top:0,right:0,bottom:0,left:0},zi=function(t){function e(){var n,o,r;Me(this,e);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=We(this,t.call.apply(t,[this].concat(a))),o.state={name:void 0},o.setStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props,e=t.style,n=t.className,r=o.getPane(o.state.name);r&&(n&&r.classList.add(n),e&&Bt(e,function(t,e){r.style[e]=t}))},r=n,We(o,r)}return Be(e,t),e.prototype.getChildContext=function(){return{pane:this.state.name}},e.prototype.componentDidMount=function(){this.createPane(this.props)},e.prototype.componentWillReceiveProps=function(t){if(this.state.name)if(t.name!==this.props.name)this.removePane(),this.createPane(t);else{if(this.props.className&&t.className!==this.props.className){var e=this.getPane();e&&this.props.className&&e.classList.remove(this.props.className)}this.setStyle(t)}},e.prototype.componentWillUnmount=function(){this.removePane()},e.prototype.createPane=function(t){var e=this.context.map,n=t.name||"pane-"+me();e&&e.createPane&&(Pi(n)||this.getPane(n)||e.createPane(n,this.getParentPane()),this.setState({name:n},this.setStyle))},e.prototype.removePane=function(){var t=this.state.name;if(t){var e=this.getPane(t);e&&e.remove&&e.remove();var n=this.context.map;n&&n._panes&&(n._panes=ji(n._panes,t),n._paneRenderers=ji(n._paneRenderers,t)),this.setState({name:void 0})}},e.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.context.pane)},e.prototype.getPane=function(t){return t?this.context.map.getPane(t):void 0},e.prototype.render=function(){return this.state.name?ve.createElement("div",{style:Ai},this.props.children):null},e}(n.Component);zi.propTypes={name:_e.string,children:xe,map:ze,className:_e.string,style:_e.object,pane:_e.string},zi.contextTypes={map:ze,pane:_e.string},zi.childContextTypes={pane:_e.string};var Ii=_e.arrayOf(Le),Si=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Polygon(t.positions,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},n}(ni);Si.propTypes={children:xe,positions:_e.oneOfType([Le,Ii,_e.arrayOf(Ii)]).isRequired};var Mi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Polyline(t.positions,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},n}(ni);Mi.propTypes={children:xe,positions:_e.oneOfType([Le,_e.arrayOf(Le)]).isRequired};var Ri=function(t){function r(){var e,i,a;Me(this,r);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return e=i=We(this,t.call.apply(t,[this].concat(u))),i.onPopupOpen=function(t){t.popup===i.leafletElement&&(i.renderPopupContent(),i.props.onOpen&&i.props.onOpen())},i.onPopupClose=function(t){t.popup===i.leafletElement&&(i.removePopupContent(),i.props.onClose&&i.props.onClose())},i.renderPopupContent=function(){null==i.props.children?i.removePopupContent():(o.render(n.Children.only(i.props.children),i.leafletElement._contentNode),i.leafletElement.update(),!1!==i.props.autoPan&&(i.leafletElement._map&&i.leafletElement._map._panAnim&&(i.leafletElement._map._panAnim=void 0),i.leafletElement._adjustPan()))},i.removePopupContent=function(){i.leafletElement._contentNode&&o.unmountComponentAtNode(i.leafletElement._contentNode)},a=e,We(i,a)}return Be(r,t),r.prototype.getOptions=function(e){return Ue({},t.prototype.getOptions.call(this,e),{autoPan:!1})},r.prototype.createLeafletElement=function(t){return new e.Popup(this.getOptions(t),this.context.popupContainer)},r.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position)},r.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props),this.leafletElement.options.autoPan=!1!==this.props.autoPan,this.context.map.on({popupopen:this.onPopupOpen,popupclose:this.onPopupClose})},r.prototype.componentDidMount=function(){var t=this.props.position,e=this.context,n=e.map,o=e.popupContainer,r=this.leafletElement;o?o.bindPopup(r):(t&&r.setLatLng(t),r.openOn(n))},r.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props),this.leafletElement.isOpen()&&this.renderPopupContent()},r.prototype.componentWillUnmount=function(){this.removePopupContent(),this.context.map.off({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),this.context.map.removeLayer(this.leafletElement),t.prototype.componentWillUnmount.call(this)},r.prototype.render=function(){return null},r}(Xr);Ri.propTypes={children:_e.node,onClose:_e.func,onOpen:_e.func,position:Ce},Ri.contextTypes={map:ze,popupContainer:Pe,pane:_e.string},Ri.defaultProps={pane:"popupPane"};var Ui=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Rectangle(t.bounds,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.bounds!==t.bounds&&this.leafletElement.setBounds(e.bounds),this.setStyleIfChanged(t,e)},n}(ni);Ui.propTypes={children:xe,bounds:we.isRequired};var Bi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Scale(t)},n}(Ne);Bi.propTypes={imperial:_e.bool,maxWidth:_e.number,metric:_e.bool,position:Te,updateWhenIdle:_e.bool};var Di=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.TileLayer(t.url,this.getOptions(t))},n.prototype.updateLeafletElement=function(e,n){t.prototype.updateLeafletElement.call(this,e,n),n.url!==e.url&&this.leafletElement.setUrl(n.url)},n}(li);Di.propTypes={children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number};var Wi=function(t){function r(){var e,i,a;Me(this,r);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return e=i=We(this,t.call.apply(t,[this].concat(u))),i.onTooltipOpen=function(t){t.tooltip===i.leafletElement&&(i.renderTooltipContent(),i.props.onOpen&&i.props.onOpen())},i.onTooltipClose=function(t){t.tooltip===i.leafletElement&&(i.removeTooltipContent(),i.props.onClose&&i.props.onClose())},i.renderTooltipContent=function(){null==i.props.children?i.removeTooltipContent():(o.render(n.Children.only(i.props.children),i.leafletElement._contentNode),i.leafletElement.update())},i.removeTooltipContent=function(){i.leafletElement._contentNode&&o.unmountComponentAtNode(i.leafletElement._contentNode)},a=e,We(i,a)}return Be(r,t),r.prototype.createLeafletElement=function(t){return new e.Tooltip(this.getOptions(t),this.context.popupContainer)},r.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props),this.context.popupContainer.on({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose})},r.prototype.componentDidMount=function(){this.context.popupContainer.bindTooltip(this.leafletElement)},r.prototype.componentDidUpdate=function(){this.leafletElement.isOpen()&&this.renderTooltipContent()},r.prototype.componentWillUnmount=function(){var e=this.context.popupContainer;this.removeTooltipContent(),e.off({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),!0!==this.props.interactive&&e.unbindTooltip(this.leafletElement),t.prototype.componentWillUnmount.call(this)},r.prototype.render=function(){return null},r}(Xr);Wi.propTypes={children:_e.node,onClose:_e.func,onOpen:_e.func},Wi.contextTypes={map:ze,popupContainer:Pe,pane:_e.string},Wi.defaultProps={pane:"tooltipPane"};var Ni=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.VideoOverlay(t.url,t.bounds,this.getOptions(t))},n.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),!0===this.props.play&&this.leafletElement.getElement().play()},n.prototype.updateLeafletElement=function(t,n){n.url!==t.url&&this.leafletElement.setUrl(n.url),n.bounds!==t.bounds&&this.leafletElement.setBounds(e.latLngBounds(n.bounds)),n.opacity!==t.opacity&&this.leafletElement.setOpacity(n.opacity),n.zIndex!==t.zIndex&&this.leafletElement.setZIndex(n.zIndex),!0!==n.play||t.play?n.play||!0!==t.play||this.leafletElement.getElement().pause():this.leafletElement.getElement().play()},n}(ti);Ni.propTypes={attribution:_e.string,bounds:we.isRequired,opacity:_e.number,play:_e.bool,url:_e.oneOfType([_e.string,_e.arrayOf(_e.string),_e.instanceOf(HTMLVideoElement)]).isRequired,zIndex:_e.number};var ki=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){var n=t.url,o=De(t,["url"]);return new e.TileLayer.WMS(n,this.getOptions(o))},n.prototype.updateLeafletElement=function(e,n){t.prototype.updateLeafletElement.call(this,e,n);var o=e.url,r=(e.opacity,e.zIndex,De(e,["url","opacity","zIndex"])),i=n.url,a=(n.opacity,n.zIndex,De(n,["url","opacity","zIndex"]));i!==o&&this.leafletElement.setUrl(i),Et(a,r)||this.leafletElement.setParams(a)},n.prototype.getOptions=function(e){return Mt(t.prototype.getOptions.call(this,e),function(t,e,n){return Qr.test(n)||(t[n]=e),t},{})},n}(li);ki.propTypes={children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number};var Vi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Zoom(t)},n}(Ne);Vi.propTypes={position:Te,zoomInText:_e.string,zoomInTitle:_e.string,zoomOutText:_e.string,zoomOutTitle:_e.string},t.PropTypes=Se,t.AttributionControl=ke,t.Circle=oi,t.CircleMarker=ri,t.FeatureGroup=ii,t.GeoJSON=ai,t.GridLayer=li,t.ImageOverlay=ui,t.LayerGroup=pi,t.LayersControl=di,t.Map=Li,t.MapComponent=Xr,t.MapControl=Ne,t.MapLayer=ti,t.Marker=wi,t.Pane=zi,t.Path=ni,t.Polygon=Si,t.Polyline=Mi,t.Popup=Ri,t.Rectangle=Ui,t.ScaleControl=Bi,t.TileLayer=Di,t.Tooltip=Wi,t.VideoOverlay=Ni,t.WMSTileLayer=ki,t.ZoomControl=Vi,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","leaflet","react","react-dom"],e):e(t.ReactLeaflet={},t.L,t.React,t.ReactDOM)}(this,function(t,e,n,o){"use strict";function r(t){return function(){return t}}function i(t){var e=Je.call(t,Ye),n=t[Ye];try{t[Ye]=void 0;var o=!0}catch(t){}var r=He.call(t);return o&&(e?t[Ye]=n:delete t[Ye]),r}function a(t){return Ke.call(t)}function l(t){return null==t?void 0===t?Xe:Qe:tn&&tn in Object(t)?i(t):a(t)}function u(t){return null!=t&&"object"==typeof t}function p(t){return"symbol"==typeof t||u(t)&&l(t)==en}function s(t,e){if(Ve(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!p(t))||(on.test(t)||!nn.test(t)||null!=e&&t in Object(e))}function c(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function f(t){if(!c(t))return!1;var e=l(t);return e==an||e==ln||e==rn||e==un}function h(t){return!!sn&&sn in t}function y(t){if(null!=t){try{return cn.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function d(t){return!(!c(t)||h(t))&&(f(t)?bn:hn).test(y(t))}function m(t,e){return null==t?void 0:t[e]}function v(t,e){var n=m(t,e);return d(n)?n:void 0}function b(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function g(t,e){return t===e||t!==t&&e!==e}function E(t,e){for(var n=t.length;n--;)if(g(t[n][0],e))return n;return-1}function O(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function j(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function _(t,e){var n=t.__data__;return j(e)?n["string"==typeof e?"string":"hash"]:n.map}function C(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}function L(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(wn);var n=function(){var o=arguments,r=e?e.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=t.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(L.Cache||C),n}function w(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r}function x(t){if("string"==typeof t)return t;if(Ve(t))return w(t,x)+"";if(p(t))return Mn?Mn.call(t):"";var e=t+"";return"0"==e&&1/t==-In?"-0":e}function T(t){return null==t?"":x(t)}function P(t,e){return Ve(t)?t:s(t,e)?[t]:zn(T(t))}function A(t){if("string"==typeof t||p(t))return t;var e=t+"";return"0"==e&&1/t==-Rn?"-0":e}function z(t,e){for(var n=0,o=(e=P(e,t)).length;null!=t&&n<o;)t=t[A(e[n++])];return n&&n==o?t:void 0}function I(t,e,n){"__proto__"==e&&Un?Un(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function S(t,e,n){var o=t[e];Bn.call(t,e)&&g(o,n)&&(void 0!==n||e in t)||I(t,e,n)}function M(t,e){return!!(e=null==e?Dn:e)&&("number"==typeof t||Wn.test(t))&&t>-1&&t%1==0&&t<e}function R(t,e,n,o){if(!c(t))return t;for(var r=-1,i=(e=P(e,t)).length,a=i-1,l=t;null!=l&&++r<i;){var u=A(e[r]),p=n;if(r!=a){var s=l[u];void 0===(p=o?o(s,u,l):void 0)&&(p=c(s)?s:M(e[r+1])?[]:{})}S(l,u,p),l=l[u]}return t}function U(t,e,n){for(var o=-1,r=e.length,i={};++o<r;){var a=e[o],l=z(t,a);n(l,a)&&R(i,P(a,t),l)}return i}function B(t,e){return null!=t&&e in Object(t)}function D(t){return u(t)&&l(t)==Nn}function W(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=$n}function N(t,e,n){for(var o=-1,r=(e=P(e,t)).length,i=!1;++o<r;){var a=A(e[o]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++o!=r?i:!!(r=null==t?0:t.length)&&W(r)&&M(a,r)&&(Ve(t)||Fn(t))}function k(t,e){return null!=t&&N(t,e,B)}function V(t,e){return U(t,e,function(e,n){return k(t,n)})}function q(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t}function F(t){return Ve(t)||Fn(t)||!!(Gn&&t&&t[Gn])}function $(t,e,n,o,r){var i=-1,a=t.length;for(n||(n=F),r||(r=[]);++i<a;){var l=t[i];e>0&&n(l)?e>1?$(l,e-1,n,o,r):q(r,l):o||(r[r.length]=l)}return r}function G(t){return(null==t?0:t.length)?$(t,1):[]}function Z(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function J(t,e,n){return e=Zn(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=Zn(o.length-e,0),a=Array(i);++r<i;)a[r]=o[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=o[r];return l[e]=n(a),Z(t,this,l)}}function H(t){return function(){return t}}function Y(t){return t}function K(t){return Qn(J(t,void 0,G),t+"")}function Q(t){var e=this.__data__=new O(t);this.size=e.size}function X(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new C;++e<n;)this.add(t[e])}function tt(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1}function et(t,e){return t.has(e)}function nt(t,e,n,o,r,i){var a=n&no,l=t.length,u=e.length;if(l!=u&&!(a&&u>l))return!1;var p=i.get(t);if(p&&i.get(e))return p==e;var s=-1,c=!0,f=n&oo?new X:void 0;for(i.set(t,e),i.set(e,t);++s<l;){var h=t[s],y=e[s];if(o)var d=a?o(y,h,s,e,t,i):o(h,y,s,t,e,i);if(void 0!==d){if(d)continue;c=!1;break}if(f){if(!tt(e,function(t,e){if(!et(f,e)&&(h===t||r(h,t,n,o,i)))return f.push(e)})){c=!1;break}}else if(h!==y&&!r(h,y,n,o,i)){c=!1;break}}return i.delete(t),i.delete(e),c}function ot(t){var e=-1,n=Array(t.size);return t.forEach(function(t,o){n[++e]=[o,t]}),n}function rt(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function it(t,e,n,o,r,i,a){switch(n){case bo:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case vo:return!(t.byteLength!=e.byteLength||!i(new ro(t),new ro(e)));case lo:case uo:case co:return g(+t,+e);case po:return t.name==e.name&&t.message==e.message;case fo:case yo:return t==e+"";case so:var l=ot;case ho:var u=o&io;if(l||(l=rt),t.size!=e.size&&!u)return!1;var p=a.get(t);if(p)return p==e;o|=ao,a.set(t,e);var s=nt(l(t),l(e),o,r,i,a);return a.delete(t),s;case mo:if(Eo)return Eo.call(t)==Eo.call(e)}return!1}function at(t,e,n){var o=e(t);return Ve(t)?o:q(o,n(t))}function lt(t,e){for(var n=-1,o=null==t?0:t.length,r=0,i=[];++n<o;){var a=t[n];e(a,n,t)&&(i[r++]=a)}return i}function ut(){return[]}function pt(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o}function st(t,e){var n=Ve(t),o=!n&&Fn(t),r=!n&&!o&&xo(t),i=!n&&!o&&!r&&Mo(t),a=n||o||r||i,l=a?pt(t.length,String):[],u=l.length;for(var p in t)!e&&!Ro.call(t,p)||a&&("length"==p||r&&("offset"==p||"parent"==p)||i&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||M(p,u))||l.push(p);return l}function ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Uo)}function ft(t,e){return function(n){return t(e(n))}}function ht(t){if(!ct(t))return Bo(t);var e=[];for(var n in Object(t))Do.call(t,n)&&"constructor"!=n&&e.push(n);return e}function yt(t){return null!=t&&W(t.length)&&!f(t)}function dt(t){return yt(t)?st(t):ht(t)}function mt(t){return at(t,dt,_o)}function vt(t,e,n,o,r,i){var a=n&Wo,l=mt(t),u=l.length;if(u!=mt(e).length&&!a)return!1;for(var p=u;p--;){var s=l[p];if(!(a?s in e:No.call(e,s)))return!1}var c=i.get(t);if(c&&i.get(e))return c==e;var f=!0;i.set(t,e),i.set(e,t);for(var h=a;++p<u;){var y=t[s=l[p]],d=e[s];if(o)var m=a?o(d,y,s,e,t,i):o(y,d,s,t,e,i);if(!(void 0===m?y===d||r(y,d,n,o,i):m)){f=!1;break}h||(h="constructor"==s)}if(f&&!h){var v=t.constructor,b=e.constructor;v!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(f=!1)}return i.delete(t),i.delete(e),f}function bt(t,e,n,o,r,i){var a=Ve(t),l=Ve(e),u=a?tr:Ko(t),p=l?tr:Ko(e),s=(u=u==Xo?er:u)==er,c=(p=p==Xo?er:p)==er,f=u==p;if(f&&xo(t)){if(!xo(e))return!1;a=!0,s=!1}if(f&&!s)return i||(i=new Q),a||Mo(t)?nt(t,e,n,o,r,i):it(t,e,u,n,o,r,i);if(!(n&Qo)){var h=s&&nr.call(t,"__wrapped__"),y=c&&nr.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,m=y?e.value():e;return i||(i=new Q),r(d,m,n,o,i)}}return!!f&&(i||(i=new Q),vt(t,e,n,o,r,i))}function gt(t,e,n,o,r){return t===e||(null==t||null==e||!u(t)&&!u(e)?t!==t&&e!==e:bt(t,e,n,o,gt,r))}function Et(t,e){return gt(t,e)}function Ot(t,e,n,o){var r=-1,i=null==t?0:t.length;for(o&&i&&(n=t[++r]);++r<i;)n=e(n,t[r],r,t);return n}function jt(t,e,n,o){var r=n.length,i=r,a=!o;if(null==t)return!i;for(t=Object(t);r--;){var l=n[r];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<i;){var u=(l=n[r])[0],p=t[u],s=l[1];if(a&&l[2]){if(void 0===p&&!(u in t))return!1}else{var c=new Q;if(o)var f=o(p,s,u,t,e,c);if(!(void 0===f?gt(s,p,ir|ar,o,c):f))return!1}}return!0}function _t(t){return t===t&&!c(t)}function Ct(t){for(var e=dt(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,_t(r)]}return e}function Lt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function wt(t){var e=Ct(t);return 1==e.length&&e[0][2]?Lt(e[0][0],e[0][1]):function(n){return n===t||jt(n,t,e)}}function xt(t,e,n){var o=null==t?void 0:z(t,e);return void 0===o?n:o}function Tt(t,e){return s(t)&&_t(e)?Lt(A(t),e):function(n){var o=xt(n,t);return void 0===o&&o===e?k(n,t):gt(e,o,lr|ur)}}function Pt(t){return function(e){return null==e?void 0:e[t]}}function At(t){return function(e){return z(e,t)}}function zt(t){return s(t)?Pt(A(t)):At(t)}function It(t){return"function"==typeof t?t:null==t?Y:"object"==typeof t?Ve(t)?Tt(t[0],t[1]):wt(t):zt(t)}function St(t,e,n,o,r){return r(t,function(t,r,i){n=o?(o=!1,t):e(n,t,r,i)}),n}function Mt(t,e,n){var o=Ve(t)?Ot:St,r=arguments.length<3;return o(t,It(e,4),n,r,rr)}function Rt(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t}function Ut(t){return"function"==typeof t?t:Y}function Bt(t,e){return(Ve(t)?Rt:rr)(t,Ut(e))}function Dt(t,e,n,o){var r=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var l=e[i],u=o?o(n[l],t[l],l,n,t):void 0;void 0===u&&(u=t[l]),r?I(n,l,u):S(n,l,u)}return n}function Wt(t,e){return t&&Dt(e,dt(e),t)}function Nt(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}function kt(t){if(!c(t))return Nt(t);var e=ct(t),n=[];for(var o in t)("constructor"!=o||!e&&pr.call(t,o))&&n.push(o);return n}function Vt(t){return yt(t)?st(t,!0):kt(t)}function qt(t,e){return t&&Dt(e,Vt(e),t)}function Ft(t,e){if(e)return t.slice();var n=t.length,o=hr?hr(n):new t.constructor(n);return t.copy(o),o}function $t(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}function Gt(t,e){return Dt(t,_o(t),e)}function Zt(t,e){return Dt(t,dr(t),e)}function Jt(t){return at(t,Vt,dr)}function Ht(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&mr.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Yt(t){var e=new t.constructor(t.byteLength);return new ro(e).set(new ro(t)),e}function Kt(t,e){var n=e?Yt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Qt(t,e){return t.set(e[0],e[1]),t}function Xt(t,e,n){return Ot(e?n(ot(t),vr):ot(t),Qt,new t.constructor)}function te(t){var e=new t.constructor(t.source,br.exec(t));return e.lastIndex=t.lastIndex,e}function ee(t,e){return t.add(e),t}function ne(t,e,n){return Ot(e?n(rt(t),gr):rt(t),ee,new t.constructor)}function oe(t){return Or?Object(Or.call(t)):{}}function re(t,e){var n=e?Yt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ie(t,e,n,o){var r=t.constructor;switch(e){case Ar:return Yt(t);case jr:case _r:return new r(+t);case zr:return Kt(t,o);case Ir:case Sr:case Mr:case Rr:case Ur:case Br:case Dr:case Wr:case Nr:return re(t,o);case Cr:return Xt(t,o,n);case Lr:case Tr:return new r(t);case wr:return te(t);case xr:return ne(t,o,n);case Pr:return oe(t)}}function ae(t){return"function"!=typeof t.constructor||ct(t)?{}:Vr(yr(t))}function le(t,e,n,o,r,i){var a,l=e&qr,u=e&Fr,p=e&$r;if(n&&(a=r?n(t,o,r,i):n(t)),void 0!==a)return a;if(!c(t))return t;var s=Ve(t);if(s){if(a=Ht(t),!l)return $t(t,a)}else{var f=Ko(t),h=f==Zr||f==Jr;if(xo(t))return Ft(t,l);if(f==Hr||f==Gr||h&&!r){if(a=u||h?{}:ae(t),!l)return u?Zt(t,qt(a,t)):Gt(t,Wt(a,t))}else{if(!Yr[f])return r?t:{};a=ie(t,f,le,l)}}i||(i=new Q);var y=i.get(t);if(y)return y;i.set(t,a);var d=p?u?Jt:mt:u?keysIn:dt,m=s?void 0:d(t);return Rt(m||t,function(o,r){m&&(o=t[r=o]),S(a,r,le(o,e,n,r,t,i))}),a}function ue(t){return le(t,Kr)}function pe(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function se(t,e,n){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(r);++o<r;)i[o]=t[o+e];return i}function ce(t,e){return e.length<2?t:z(t,se(e,0,-1))}function fe(t,e){return e=P(e,t),null==(t=ce(t,e))||delete t[A(pe(e))]}function he(t){if(!u(t)||l(t)!=mi)return!1;var e=yr(t);if(null===e)return!0;var n=Ei.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&gi.call(n)==Oi}function ye(t){return he(t)?void 0:t}function de(t){return void 0===t}function me(t){var e=++xi;return T(t)+e}var ve="default"in n?n.default:n,be=function(){};be.thatReturns=r,be.thatReturnsFalse=r(!1),be.thatReturnsTrue=r(!0),be.thatReturnsNull=r(null),be.thatReturnsThis=function(){return this},be.thatReturnsArgument=function(t){return t};var ge=be,Ee=function(t,e,n,o,r,i,a,l){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,o,r,i,a,l],s=0;(u=new Error(e.replace(/%s/g,function(){return p[s++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},Oe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",je=function(){function t(t,e,n,o,r,i){i!==Oe&&Ee(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=ge,n.PropTypes=n,n},_e=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){t.exports=je()}),Ce=_e.oneOfType([_e.arrayOf(_e.number),_e.shape({lat:_e.number,lng:_e.number}),_e.shape({lat:_e.number,lon:_e.number})]),Le=_e.arrayOf(Ce),we=_e.oneOfType([_e.instanceOf(e.LatLngBounds),Le]),xe=_e.oneOfType([_e.arrayOf(_e.node),_e.node]),Te=_e.oneOf(["topleft","topright","bottomleft","bottomright"]),Pe=_e.object,Ae=_e.shape({addLayer:_e.func.isRequired,removeLayer:_e.func.isRequired}),ze=_e.instanceOf(e.Map),Ie=_e.shape({center:Ce,zoom:_e.number}),Se=Object.freeze({bounds:we,children:xe,controlPosition:Te,latlng:Ce,latlngList:Le,layer:Pe,layerContainer:Ae,map:ze,viewport:Ie}),Me=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Re=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),Ue=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Be=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},De=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},We=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},Ne=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},e.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setPosition(e.position)},e.prototype.componentWillMount=function(){this.leafletElement=this.createLeafletElement(this.props)},e.prototype.componentDidMount=function(){this.leafletElement.addTo(this.context.map)},e.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},e.prototype.componentWillUnmount=function(){this.leafletElement.remove()},e.prototype.render=function(){return null},e}(n.Component);Ne.propTypes={position:Te},Ne.contextTypes={map:ze};var ke=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Attribution(t)},n}(Ne);ke.propTypes={position:Te,prefix:_e.string};var Ve=Array.isArray,qe="object"==typeof global&&global&&global.Object===Object&&global,Fe="object"==typeof self&&self&&self.Object===Object&&self,$e=qe||Fe||Function("return this")(),Ge=$e.Symbol,Ze=Object.prototype,Je=Ze.hasOwnProperty,He=Ze.toString,Ye=Ge?Ge.toStringTag:void 0,Ke=Object.prototype.toString,Qe="[object Null]",Xe="[object Undefined]",tn=Ge?Ge.toStringTag:void 0,en="[object Symbol]",nn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/,rn="[object AsyncFunction]",an="[object Function]",ln="[object GeneratorFunction]",un="[object Proxy]",pn=$e["__core-js_shared__"],sn=function(){var t=/[^.]+$/.exec(pn&&pn.keys&&pn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),cn=Function.prototype.toString,fn=/[\\^$.*+?()[\]{}|]/g,hn=/^\[object .+?Constructor\]$/,yn=Function.prototype,dn=Object.prototype,mn=yn.toString,vn=dn.hasOwnProperty,bn=RegExp("^"+mn.call(vn).replace(fn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gn=v(Object,"create"),En="__lodash_hash_undefined__",On=Object.prototype.hasOwnProperty,jn=Object.prototype.hasOwnProperty,_n="__lodash_hash_undefined__";b.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},b.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},b.prototype.get=function(t){var e=this.__data__;if(gn){var n=e[t];return n===En?void 0:n}return On.call(e,t)?e[t]:void 0},b.prototype.has=function(t){var e=this.__data__;return gn?void 0!==e[t]:jn.call(e,t)},b.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gn&&void 0===e?_n:e,this};var Cn=Array.prototype.splice;O.prototype.clear=function(){this.__data__=[],this.size=0},O.prototype.delete=function(t){var e=this.__data__,n=E(e,t);return!(n<0||(n==e.length-1?e.pop():Cn.call(e,n,1),--this.size,0))},O.prototype.get=function(t){var e=this.__data__,n=E(e,t);return n<0?void 0:e[n][1]},O.prototype.has=function(t){return E(this.__data__,t)>-1},O.prototype.set=function(t,e){var n=this.__data__,o=E(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};var Ln=v($e,"Map");C.prototype.clear=function(){this.size=0,this.__data__={hash:new b,map:new(Ln||O),string:new b}},C.prototype.delete=function(t){var e=_(this,t).delete(t);return this.size-=e?1:0,e},C.prototype.get=function(t){return _(this,t).get(t)},C.prototype.has=function(t){return _(this,t).has(t)},C.prototype.set=function(t,e){var n=_(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};var wn="Expected a function";L.Cache=C;var xn=500,Tn=/^\./,Pn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,An=/\\(\\)?/g,zn=function(t){var e=L(t,function(t){return n.size===xn&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return Tn.test(t)&&e.push(""),t.replace(Pn,function(t,n,o,r){e.push(o?r.replace(An,"$1"):n||t)}),e}),In=1/0,Sn=Ge?Ge.prototype:void 0,Mn=Sn?Sn.toString:void 0,Rn=1/0,Un=function(){try{var t=v(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Bn=Object.prototype.hasOwnProperty,Dn=9007199254740991,Wn=/^(?:0|[1-9]\d*)$/,Nn="[object Arguments]",kn=Object.prototype,Vn=kn.hasOwnProperty,qn=kn.propertyIsEnumerable,Fn=D(function(){return arguments}())?D:function(t){return u(t)&&Vn.call(t,"callee")&&!qn.call(t,"callee")},$n=9007199254740991,Gn=Ge?Ge.isConcatSpreadable:void 0,Zn=Math.max,Jn=Un?function(t,e){return Un(t,"toString",{configurable:!0,enumerable:!1,value:H(e),writable:!0})}:Y,Hn=800,Yn=16,Kn=Date.now,Qn=function(t){var e=0,n=0;return function(){var o=Kn(),r=Yn-(o-n);if(n=o,r>0){if(++e>=Hn)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Jn),Xn=K(function(t,e){return null==t?{}:V(t,e)}),to=200;Q.prototype.clear=function(){this.__data__=new O,this.size=0},Q.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Q.prototype.get=function(t){return this.__data__.get(t)},Q.prototype.has=function(t){return this.__data__.has(t)},Q.prototype.set=function(t,e){var n=this.__data__;if(n instanceof O){var o=n.__data__;if(!Ln||o.length<to-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new C(o)}return n.set(t,e),this.size=n.size,this};var eo="__lodash_hash_undefined__";X.prototype.add=X.prototype.push=function(t){return this.__data__.set(t,eo),this},X.prototype.has=function(t){return this.__data__.has(t)};var no=1,oo=2,ro=$e.Uint8Array,io=1,ao=2,lo="[object Boolean]",uo="[object Date]",po="[object Error]",so="[object Map]",co="[object Number]",fo="[object RegExp]",ho="[object Set]",yo="[object String]",mo="[object Symbol]",vo="[object ArrayBuffer]",bo="[object DataView]",go=Ge?Ge.prototype:void 0,Eo=go?go.valueOf:void 0,Oo=Object.prototype.propertyIsEnumerable,jo=Object.getOwnPropertySymbols,_o=jo?function(t){return null==t?[]:(t=Object(t),lt(jo(t),function(e){return Oo.call(t,e)}))}:ut,Co="object"==typeof t&&t&&!t.nodeType&&t,Lo=Co&&"object"==typeof module&&module&&!module.nodeType&&module,wo=Lo&&Lo.exports===Co?$e.Buffer:void 0,xo=(wo?wo.isBuffer:void 0)||function(){return!1},To={};To["[object Float32Array]"]=To["[object Float64Array]"]=To["[object Int8Array]"]=To["[object Int16Array]"]=To["[object Int32Array]"]=To["[object Uint8Array]"]=To["[object Uint8ClampedArray]"]=To["[object Uint16Array]"]=To["[object Uint32Array]"]=!0,To["[object Arguments]"]=To["[object Array]"]=To["[object ArrayBuffer]"]=To["[object Boolean]"]=To["[object DataView]"]=To["[object Date]"]=To["[object Error]"]=To["[object Function]"]=To["[object Map]"]=To["[object Number]"]=To["[object Object]"]=To["[object RegExp]"]=To["[object Set]"]=To["[object String]"]=To["[object WeakMap]"]=!1;var Po="object"==typeof t&&t&&!t.nodeType&&t,Ao=Po&&"object"==typeof module&&module&&!module.nodeType&&module,zo=Ao&&Ao.exports===Po&&qe.process,Io=function(){try{return zo&&zo.binding&&zo.binding("util")}catch(t){}}(),So=Io&&Io.isTypedArray,Mo=So?function(t){return function(e){return t(e)}}(So):function(t){return u(t)&&W(t.length)&&!!To[l(t)]},Ro=Object.prototype.hasOwnProperty,Uo=Object.prototype,Bo=ft(Object.keys,Object),Do=Object.prototype.hasOwnProperty,Wo=1,No=Object.prototype.hasOwnProperty,ko=v($e,"DataView"),Vo=v($e,"Promise"),qo=v($e,"Set"),Fo=v($e,"WeakMap"),$o=y(ko),Go=y(Ln),Zo=y(Vo),Jo=y(qo),Ho=y(Fo),Yo=l;(ko&&"[object DataView]"!=Yo(new ko(new ArrayBuffer(1)))||Ln&&"[object Map]"!=Yo(new Ln)||Vo&&"[object Promise]"!=Yo(Vo.resolve())||qo&&"[object Set]"!=Yo(new qo)||Fo&&"[object WeakMap]"!=Yo(new Fo))&&(Yo=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,o=n?y(n):"";if(o)switch(o){case $o:return"[object DataView]";case Go:return"[object Map]";case Zo:return"[object Promise]";case Jo:return"[object Set]";case Ho:return"[object WeakMap]"}return e});var Ko=Yo,Qo=1,Xo="[object Arguments]",tr="[object Array]",er="[object Object]",nr=Object.prototype.hasOwnProperty,or=function(t){return function(e,n,o){for(var r=-1,i=Object(e),a=o(e),l=a.length;l--;){var u=a[t?l:++r];if(!1===n(i[u],u,i))break}return e}}(),rr=function(t,e){return function(n,o){if(null==n)return n;if(!yt(n))return t(n,o);for(var r=n.length,i=e?r:-1,a=Object(n);(e?i--:++i<r)&&!1!==o(a[i],i,a););return n}}(function(t,e){return t&&or(t,e,dt)}),ir=1,ar=2,lr=1,ur=2,pr=Object.prototype.hasOwnProperty,sr="object"==typeof t&&t&&!t.nodeType&&t,cr=sr&&"object"==typeof module&&module&&!module.nodeType&&module,fr=cr&&cr.exports===sr?$e.Buffer:void 0,hr=fr?fr.allocUnsafe:void 0,yr=ft(Object.getPrototypeOf,Object),dr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)q(e,_o(t)),t=yr(t);return e}:ut,mr=Object.prototype.hasOwnProperty,vr=1,br=/\w*$/,gr=1,Er=Ge?Ge.prototype:void 0,Or=Er?Er.valueOf:void 0,jr="[object Boolean]",_r="[object Date]",Cr="[object Map]",Lr="[object Number]",wr="[object RegExp]",xr="[object Set]",Tr="[object String]",Pr="[object Symbol]",Ar="[object ArrayBuffer]",zr="[object DataView]",Ir="[object Float32Array]",Sr="[object Float64Array]",Mr="[object Int8Array]",Rr="[object Int16Array]",Ur="[object Int32Array]",Br="[object Uint8Array]",Dr="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Nr="[object Uint32Array]",kr=Object.create,Vr=function(){function t(){}return function(e){if(!c(e))return{};if(kr)return kr(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),qr=1,Fr=2,$r=4,Gr="[object Arguments]",Zr="[object Function]",Jr="[object GeneratorFunction]",Hr="[object Object]",Yr={};Yr[Gr]=Yr["[object Array]"]=Yr["[object ArrayBuffer]"]=Yr["[object DataView]"]=Yr["[object Boolean]"]=Yr["[object Date]"]=Yr["[object Float32Array]"]=Yr["[object Float64Array]"]=Yr["[object Int8Array]"]=Yr["[object Int16Array]"]=Yr["[object Int32Array]"]=Yr["[object Map]"]=Yr["[object Number]"]=Yr[Hr]=Yr["[object RegExp]"]=Yr["[object Set]"]=Yr["[object String]"]=Yr["[object Symbol]"]=Yr["[object Uint8Array]"]=Yr["[object Uint8ClampedArray]"]=Yr["[object Uint16Array]"]=Yr["[object Uint32Array]"]=!0,Yr["[object Error]"]=Yr[Zr]=Yr["[object WeakMap]"]=!1;var Kr=4,Qr=/^on(.+)$/i,Xr=function(t){function e(n,o){Me(this,e);var r=We(this,t.call(this,n,o));return r._leafletEvents={},r}return Be(e,t),e.prototype.componentWillMount=function(){this._leafletEvents=this.extractLeafletEvents(this.props)},e.prototype.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},e.prototype.componentWillReceiveProps=function(t){var e=this.extractLeafletEvents(t);this._leafletEvents=this.bindLeafletEvents(e,this._leafletEvents)},e.prototype.componentWillUnmount=function(){var t=this.leafletElement;t&&Bt(this._leafletEvents,function(e,n){t.off(n,e)})},e.prototype.extractLeafletEvents=function(t){return Mt(dt(t),function(e,n){if(Qr.test(n)){var o=n.replace(Qr,function(t,e){return e.toLowerCase()});null!=t[n]&&(e[o]=t[n])}return e},{})},e.prototype.bindLeafletEvents=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.leafletElement;if(null==n||null==n.on)return{};var o=ue(e);return Bt(e,function(e,r){t[r]&&e===t[r]||(delete o[r],n.off(r,e))}),Bt(t,function(t,r){e[r]&&t===e[r]||(o[r]=t,n.on(r,t))}),o},e.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},e.prototype.getOptions=function(t){var e=null==t.pane?this.context.pane:t.pane;return e?Ue({},t,{pane:e}):t},e}(n.Component),ti=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},e.prototype.updateLeafletElement=function(t,e){},e.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},e.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},e.prototype.render=function(){var t=this.props.children;return n.Children.count(t)>1?ve.createElement("div",{style:{display:"none"}},t):null==t?null:t},Re(e,[{key:"layerContainer",get:function(){return this.context.layerContainer||this.context.map}}]),e}(Xr);ti.propTypes={children:xe},ti.contextTypes={layerContainer:Ae,map:ze,pane:_e.string};var ei=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],ni=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.componentDidUpdate=function(e){t.prototype.componentDidUpdate.call(this,e),this.setStyleIfChanged(e,this.props)},e.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},e.prototype.getPathOptions=function(t){return Xn(t,ei)},e.prototype.setStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},e.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);Et(n,this.getPathOptions(t))||this.setStyle(n)},e}(ti);ni.childContextTypes={children:xe,popupContainer:Pe};var oi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){var n=t.center,o=t.radius,r=De(t,["center","radius"]);return new e.Circle(n,o,this.getOptions(r))},n.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},n}(ni);oi.propTypes={center:Ce.isRequired,children:xe,radius:_e.number.isRequired};var ri=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.CircleMarker(t.center,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},n}(ni);ri.propTypes={center:Ce.isRequired,children:xe,radius:_e.number},ri.childContextTypes={popupContainer:Pe};var ii=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement,popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.FeatureGroup(this.getOptions(t))},n.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setStyle(this.props)},n}(ni);ii.childContextTypes={children:xe,layerContainer:Ae,popupContainer:Pe};var ai=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.GeoJSON(t.data,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){f(e.style)?this.setStyle(e.style):this.setStyleIfChanged(t,e)},n}(ni);ai.propTypes={children:xe,data:_e.oneOfType([_e.array,_e.object]).isRequired};var li=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.GridLayer(this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){var n=e.opacity,o=e.zIndex;n!==t.opacity&&this.leafletElement.setOpacity(n),o!==t.zIndex&&this.leafletElement.setZIndex(o)},n.prototype.render=function(){return null},n}(ti);li.propTypes={children:xe,opacity:_e.number,zIndex:_e.number};var ui=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.ImageOverlay(t.url,t.bounds,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,n){n.url!==t.url&&this.leafletElement.setUrl(n.url),n.bounds!==t.bounds&&this.leafletElement.setBounds(e.latLngBounds(n.bounds)),n.opacity!==t.opacity&&this.leafletElement.setOpacity(n.opacity),n.zIndex!==t.zIndex&&this.leafletElement.setZIndex(n.zIndex)},n}(ti);ui.propTypes={attribution:_e.string,bounds:we.isRequired,children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number},ui.childContextTypes={popupContainer:Pe};var pi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement}},n.prototype.createLeafletElement=function(){return new e.LayerGroup(this.getOptions(this.props))},n}(ti);pi.childContextTypes={layerContainer:Ae};var si={checked:_e.bool,children:_e.node.isRequired,removeLayer:_e.func,removeLayerControl:_e.func},ci=Ue({},si,{addBaseLayer:_e.func,addOverlay:_e.func,name:_e.string.isRequired}),fi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.getChildContext=function(){return{layerContainer:{addLayer:this.addLayer.bind(this),removeLayer:this.removeLayer.bind(this)}}},e.prototype.componentWillReceiveProps=function(t){var e=t.checked;!0!==e||null!=this.props.checked&&!1!==this.props.checked?!0!==this.props.checked||null!=e&&!1!==e||this.context.map.removeLayer(this.layer):this.context.map.addLayer(this.layer)},e.prototype.componentWillUnmount=function(){this.props.removeLayerControl(this.layer)},e.prototype.addLayer=function(){throw new Error("Must be implemented in extending class")},e.prototype.removeLayer=function(t){this.props.removeLayer(t)},e.prototype.render=function(){return this.props.children||null},e}(n.Component);fi.propTypes=si,fi.contextTypes={map:ze},fi.childContextTypes={layerContainer:Ae};var hi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.addLayer=function(t){this.layer=t;var e=this.props,n=e.addBaseLayer,o=e.checked;n(t,e.name,o)},e}(fi);hi.propTypes=ci;var yi=function(t){function e(){return Me(this,e),We(this,t.apply(this,arguments))}return Be(e,t),e.prototype.addLayer=function(t){this.layer=t;var e=this.props,n=e.addOverlay,o=e.checked;n(t,e.name,o)},e}(fi);yi.propTypes=ci;var di=function(t){function o(){return Me(this,o),We(this,t.apply(this,arguments))}return Be(o,t),o.prototype.createLeafletElement=function(t){t.children;var n=De(t,["children"]);return new e.Control.Layers(void 0,void 0,n)},o.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.controlProps={addBaseLayer:this.addBaseLayer.bind(this),addOverlay:this.addOverlay.bind(this),removeLayer:this.removeLayer.bind(this),removeLayerControl:this.removeLayerControl.bind(this)}},o.prototype.componentWillUnmount=function(){var e=this;setTimeout(function(){t.prototype.componentWillUnmount.call(e)},0)},o.prototype.addBaseLayer=function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.context.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},o.prototype.addOverlay=function(t,e){arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.context.map.addLayer(t),this.leafletElement.addOverlay(t,e)},o.prototype.removeLayer=function(t){this.context.map.removeLayer(t)},o.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},o.prototype.render=function(){var t=this,e=n.Children.map(this.props.children,function(e){return e?n.cloneElement(e,t.controlProps):null});return ve.createElement("div",{style:{display:"none"}},e)},o}(Ne);di.propTypes={baseLayers:_e.object,children:xe,overlays:_e.object,position:Te},di.contextTypes={layerContainer:Ae,map:ze},di.BaseLayer=hi,di.Overlay=yi;var mi="[object Object]",vi=Function.prototype,bi=Object.prototype,gi=vi.toString,Ei=bi.hasOwnProperty,Oi=gi.call(Object),ji=K(function(t,e){var n={};if(null==t)return n;var o=!1;e=w(e,function(e){return e=P(e,t),o||(o=e.length>1),e}),Dt(t,Jt(t),n),o&&(n=le(n,7,ye));for(var r=e.length;r--;)fe(n,e[r]);return n}),_i=["children","className","id","style","useFlyTo","whenReady"],Ci=function(t){return Array.isArray(t)?[t[0],t[1]]:[t.lat,t.lon?t.lon:t.lng]},Li=function(t){function n(e,o){Me(this,n);var r=We(this,t.call(this,e,o));return r.viewport={center:void 0,zoom:void 0},r._updating=!1,r.onViewportChange=function(){var t=r.leafletElement.getCenter();r.viewport={center:t?[t.lat,t.lng]:void 0,zoom:r.leafletElement.getZoom()},r.props.onViewportChange&&!r._updating&&r.props.onViewportChange(r.viewport)},r.onViewportChanged=function(){r.props.onViewportChanged&&!r._updating&&r.props.onViewportChanged(r.viewport)},r.bindContainer=function(t){r.container=t},r.className=e.className,r}return Be(n,t),n.prototype.getChildContext=function(){return{layerContainer:this.leafletElement,map:this.leafletElement}},n.prototype.createLeafletElement=function(t){var n=t.viewport,o=De(t,["viewport"]);return n&&(n.center&&(o.center=n.center),"number"==typeof n.zoom&&(o.zoom=n.zoom)),new e.Map(this.container,o)},n.prototype.updateLeafletElement=function(t,n){var o=this;this._updating=!0;var r=n.animate,i=n.bounds,a=n.boundsOptions,l=n.center,u=n.className,p=n.maxBounds,s=n.useFlyTo,c=n.viewport,f=n.zoom;if(u!==t.className&&(null!=t.className&&t.className.length>0&&Bt(t.className.split(" "),function(t){e.DomUtil.removeClass(o.container,t)}),null!=u&&u.length>0&&Bt(u.split(" "),function(t){e.DomUtil.addClass(o.container,t)})),c&&c!==t.viewport){var h=c.center?c.center:l,y=null==c.zoom?f:c.zoom;!0===s?this.leafletElement.flyTo(h,y,{animate:r}):this.leafletElement.setView(h,y,{animate:r})}else l&&this.shouldUpdateCenter(l,t.center)?!0===s?this.leafletElement.flyTo(l,f,{animate:r}):this.leafletElement.setView(l,f,{animate:r}):"number"==typeof f&&f!==t.zoom&&(null==t.zoom?this.leafletElement.setView(l,f):this.leafletElement.setZoom(f));p&&this.shouldUpdateBounds(p,t.maxBounds)&&this.leafletElement.setMaxBounds(p),i&&(this.shouldUpdateBounds(i,t.bounds)||a!==t.boundsOptions)&&(!0===s?this.leafletElement.flyToBounds(i,a):this.leafletElement.fitBounds(i,a)),this._updating=!1},n.prototype.componentDidMount=function(){var e=ji(this.props,_i);this.leafletElement=this.createLeafletElement(e),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),de(e.bounds)||this.leafletElement.fitBounds(e.bounds,e.boundsOptions),this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady),t.prototype.componentDidMount.call(this),this.forceUpdate()},n.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},n.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),this.leafletElement.remove()},n.prototype.shouldUpdateCenter=function(t,e){return!e||(t=Ci(t),e=Ci(e),t[0]!==e[0]||t[1]!==e[1])},n.prototype.shouldUpdateBounds=function(t,n){return!n||!e.latLngBounds(t).equals(e.latLngBounds(n))},n.prototype.render=function(){var t=this.leafletElement?this.props.children:null;return ve.createElement("div",{className:this.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},t)},n}(Xr);Li.propTypes={animate:_e.bool,bounds:we,boundsOptions:_e.object,center:Ce,children:xe,className:_e.string,id:_e.string,maxBounds:we,maxZoom:_e.number,minZoom:_e.number,style:_e.object,useFlyTo:_e.bool,viewport:Ie,whenReady:_e.func,zoom:_e.number},Li.childContextTypes={layerContainer:Ae,map:ze};var wi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.getChildContext=function(){return{popupContainer:this.leafletElement}},n.prototype.createLeafletElement=function(t){return new e.Marker(t.position,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position),e.icon!==t.icon&&this.leafletElement.setIcon(e.icon),e.zIndexOffset!==t.zIndexOffset&&this.leafletElement.setZIndexOffset(e.zIndexOffset),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.draggable!==t.draggable&&(!0===e.draggable?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable())},n}(ti);wi.propTypes={children:xe,draggable:_e.bool,icon:_e.instanceOf(e.Icon),opacity:_e.number,position:Ce.isRequired,zIndexOffset:_e.number},wi.childContextTypes={popupContainer:Pe};var xi=0,Ti=["tile","shadow","overlay","map","marker","tooltip","popup"],Pi=function(t){return-1!==Ti.indexOf(t.replace(/-*pane/gi,""))},Ai={position:"absolute",top:0,right:0,bottom:0,left:0},zi=function(t){function e(){var n,o,r;Me(this,e);for(var i=arguments.length,a=Array(i),l=0;l<i;l++)a[l]=arguments[l];return n=o=We(this,t.call.apply(t,[this].concat(a))),o.state={name:void 0},o.setStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.props,e=t.style,n=t.className,r=o.getPane(o.state.name);r&&(n&&r.classList.add(n),e&&Bt(e,function(t,e){r.style[e]=t}))},r=n,We(o,r)}return Be(e,t),e.prototype.getChildContext=function(){return{pane:this.state.name}},e.prototype.componentDidMount=function(){this.createPane(this.props)},e.prototype.componentWillReceiveProps=function(t){if(this.state.name)if(t.name!==this.props.name)this.removePane(),this.createPane(t);else{if(this.props.className&&t.className!==this.props.className){var e=this.getPane();e&&this.props.className&&e.classList.remove(this.props.className)}this.setStyle(t)}},e.prototype.componentWillUnmount=function(){this.removePane()},e.prototype.createPane=function(t){var e=this.context.map,n=t.name||"pane-"+me();e&&e.createPane&&(Pi(n)||this.getPane(n)||e.createPane(n,this.getParentPane()),this.setState({name:n},this.setStyle))},e.prototype.removePane=function(){var t=this.state.name;if(t){var e=this.getPane(t);e&&e.remove&&e.remove();var n=this.context.map;n&&n._panes&&(n._panes=ji(n._panes,t),n._paneRenderers=ji(n._paneRenderers,t)),this.setState({name:void 0})}},e.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.context.pane)},e.prototype.getPane=function(t){return t?this.context.map.getPane(t):void 0},e.prototype.render=function(){return this.state.name?ve.createElement("div",{style:Ai},this.props.children):null},e}(n.Component);zi.propTypes={name:_e.string,children:xe,map:ze,className:_e.string,style:_e.object,pane:_e.string},zi.contextTypes={map:ze,pane:_e.string},zi.childContextTypes={pane:_e.string};var Ii=_e.arrayOf(Le),Si=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Polygon(t.positions,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},n}(ni);Si.propTypes={children:xe,positions:_e.oneOfType([Le,Ii,_e.arrayOf(Ii)]).isRequired};var Mi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Polyline(t.positions,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},n}(ni);Mi.propTypes={children:xe,positions:_e.oneOfType([Le,_e.arrayOf(Le)]).isRequired};var Ri=function(t){function r(){var e,i,a;Me(this,r);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return e=i=We(this,t.call.apply(t,[this].concat(u))),i.onPopupOpen=function(t){t.popup===i.leafletElement&&(i.renderPopupContent(),i.props.onOpen&&i.props.onOpen())},i.onPopupClose=function(t){t.popup===i.leafletElement&&(i.removePopupContent(),i.props.onClose&&i.props.onClose())},i.renderPopupContent=function(){null==i.props.children?i.removePopupContent():(o.render(n.Children.only(i.props.children),i.leafletElement._contentNode),i.leafletElement.update(),!1!==i.props.autoPan&&(i.leafletElement._map&&i.leafletElement._map._panAnim&&(i.leafletElement._map._panAnim=void 0),i.leafletElement._adjustPan()))},i.removePopupContent=function(){i.leafletElement._contentNode&&o.unmountComponentAtNode(i.leafletElement._contentNode)},a=e,We(i,a)}return Be(r,t),r.prototype.getOptions=function(e){return Ue({},t.prototype.getOptions.call(this,e),{autoPan:!1})},r.prototype.createLeafletElement=function(t){return new e.Popup(this.getOptions(t),this.context.popupContainer)},r.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position)},r.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props),this.leafletElement.options.autoPan=!1!==this.props.autoPan,this.context.map.on({popupopen:this.onPopupOpen,popupclose:this.onPopupClose})},r.prototype.componentDidMount=function(){var t=this.props.position,e=this.context,n=e.map,o=e.popupContainer,r=this.leafletElement;o?o.bindPopup(r):(t&&r.setLatLng(t),r.openOn(n))},r.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props),this.leafletElement.isOpen()&&this.renderPopupContent()},r.prototype.componentWillUnmount=function(){this.removePopupContent(),this.context.map.off({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),this.context.map.removeLayer(this.leafletElement),t.prototype.componentWillUnmount.call(this)},r.prototype.render=function(){return null},r}(Xr);Ri.propTypes={children:_e.node,onClose:_e.func,onOpen:_e.func,position:Ce},Ri.contextTypes={map:ze,popupContainer:Pe,pane:_e.string},Ri.defaultProps={pane:"popupPane"};var Ui=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Rectangle(t.bounds,this.getOptions(t))},n.prototype.updateLeafletElement=function(t,e){e.bounds!==t.bounds&&this.leafletElement.setBounds(e.bounds),this.setStyleIfChanged(t,e)},n}(ni);Ui.propTypes={children:xe,bounds:we.isRequired};var Bi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Scale(t)},n}(Ne);Bi.propTypes={imperial:_e.bool,maxWidth:_e.number,metric:_e.bool,position:Te,updateWhenIdle:_e.bool};var Di=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.TileLayer(t.url,this.getOptions(t))},n.prototype.updateLeafletElement=function(e,n){t.prototype.updateLeafletElement.call(this,e,n),n.url!==e.url&&this.leafletElement.setUrl(n.url)},n}(li);Di.propTypes={children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number};var Wi=function(t){function r(){var e,i,a;Me(this,r);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return e=i=We(this,t.call.apply(t,[this].concat(u))),i.onTooltipOpen=function(t){t.tooltip===i.leafletElement&&(i.renderTooltipContent(),i.props.onOpen&&i.props.onOpen())},i.onTooltipClose=function(t){t.tooltip===i.leafletElement&&(i.removeTooltipContent(),i.props.onClose&&i.props.onClose())},i.renderTooltipContent=function(){null==i.props.children?i.removeTooltipContent():(o.render(n.Children.only(i.props.children),i.leafletElement._contentNode),i.leafletElement.update())},i.removeTooltipContent=function(){i.leafletElement._contentNode&&o.unmountComponentAtNode(i.leafletElement._contentNode)},a=e,We(i,a)}return Be(r,t),r.prototype.createLeafletElement=function(t){return new e.Tooltip(this.getOptions(t),this.context.popupContainer)},r.prototype.componentWillMount=function(){t.prototype.componentWillMount.call(this),this.leafletElement=this.createLeafletElement(this.props),this.context.popupContainer.on({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose})},r.prototype.componentDidMount=function(){this.context.popupContainer.bindTooltip(this.leafletElement)},r.prototype.componentDidUpdate=function(){this.leafletElement.isOpen()&&this.renderTooltipContent()},r.prototype.componentWillUnmount=function(){var e=this.context.popupContainer;this.removeTooltipContent(),e.off({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),!0!==this.props.interactive&&e.unbindTooltip(this.leafletElement),t.prototype.componentWillUnmount.call(this)},r.prototype.render=function(){return null},r}(Xr);Wi.propTypes={children:_e.node,onClose:_e.func,onOpen:_e.func},Wi.contextTypes={map:ze,popupContainer:Pe,pane:_e.string},Wi.defaultProps={pane:"tooltipPane"};var Ni=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.VideoOverlay(t.url,t.bounds,this.getOptions(t))},n.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),!0===this.props.play&&this.leafletElement.getElement().play()},n.prototype.updateLeafletElement=function(t,n){n.url!==t.url&&this.leafletElement.setUrl(n.url),n.bounds!==t.bounds&&this.leafletElement.setBounds(e.latLngBounds(n.bounds)),n.opacity!==t.opacity&&this.leafletElement.setOpacity(n.opacity),n.zIndex!==t.zIndex&&this.leafletElement.setZIndex(n.zIndex),!0!==n.play||t.play?n.play||!0!==t.play||this.leafletElement.getElement().pause():this.leafletElement.getElement().play()},n}(ti);Ni.propTypes={attribution:_e.string,bounds:we.isRequired,opacity:_e.number,play:_e.bool,url:_e.oneOfType([_e.string,_e.arrayOf(_e.string),_e.instanceOf(HTMLVideoElement)]).isRequired,zIndex:_e.number};var ki=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){var n=t.url,o=De(t,["url"]);return new e.TileLayer.WMS(n,this.getOptions(o))},n.prototype.updateLeafletElement=function(e,n){t.prototype.updateLeafletElement.call(this,e,n);var o=e.url,r=(e.opacity,e.zIndex,De(e,["url","opacity","zIndex"])),i=n.url,a=(n.opacity,n.zIndex,De(n,["url","opacity","zIndex"]));i!==o&&this.leafletElement.setUrl(i),Et(a,r)||this.leafletElement.setParams(a)},n.prototype.getOptions=function(e){return Mt(t.prototype.getOptions.call(this,e),function(t,e,n){return Qr.test(n)||(t[n]=e),t},{})},n}(li);ki.propTypes={children:xe,opacity:_e.number,url:_e.string.isRequired,zIndex:_e.number};var Vi=function(t){function n(){return Me(this,n),We(this,t.apply(this,arguments))}return Be(n,t),n.prototype.createLeafletElement=function(t){return new e.Control.Zoom(t)},n}(Ne);Vi.propTypes={position:Te,zoomInText:_e.string,zoomInTitle:_e.string,zoomOutText:_e.string,zoomOutTitle:_e.string},t.PropTypes=Se,t.AttributionControl=ke,t.Circle=oi,t.CircleMarker=ri,t.FeatureGroup=ii,t.GeoJSON=ai,t.GridLayer=li,t.ImageOverlay=ui,t.LayerGroup=pi,t.LayersControl=di,t.Map=Li,t.MapComponent=Xr,t.MapControl=Ne,t.MapLayer=ti,t.Marker=wi,t.Pane=zi,t.Path=ni,t.Polygon=Si,t.Polyline=Mi,t.Popup=Ri,t.Rectangle=Ui,t.ScaleControl=Bi,t.TileLayer=Di,t.Tooltip=Wi,t.VideoOverlay=Ni,t.WMSTileLayer=ki,t.ZoomControl=Vi,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -15,2 +15,3 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }

import latlng from './propTypes/latlng';
import layer from './propTypes/layer';

@@ -26,2 +27,8 @@ var CircleMarker = function (_Path) {

CircleMarker.prototype.getChildContext = function getChildContext() {
return {
popupContainer: this.leafletElement
};
};
CircleMarker.prototype.createLeafletElement = function createLeafletElement(props) {

@@ -48,2 +55,5 @@ return new LeafletCircleMarker(props.center, this.getOptions(props));

};
CircleMarker.childContextTypes = {
popupContainer: layer
};
export default CircleMarker;
import _omit from 'lodash-es/omit';
import _isUndefined from 'lodash-es/isUndefined';
import _forEach from 'lodash-es/forEach';

@@ -96,2 +97,4 @@ function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }

Map.prototype.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {
var _this2 = this;
this._updating = true;

@@ -111,7 +114,11 @@

if (className !== fromProps.className) {
if (fromProps.className != null) {
DomUtil.removeClass(this.container, fromProps.className);
if (fromProps.className != null && fromProps.className.length > 0) {
_forEach(fromProps.className.split(' '), function (cls) {
DomUtil.removeClass(_this2.container, cls);
});
}
if (className != null) {
DomUtil.addClass(this.container, className);
if (className != null && className.length > 0) {
_forEach(className.split(' '), function (cls) {
DomUtil.addClass(_this2.container, cls);
});
}

@@ -118,0 +125,0 @@ }

@@ -23,2 +23,6 @@ 'use strict';

var _layer = require('./propTypes/layer');
var _layer2 = _interopRequireDefault(_layer);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -43,2 +47,8 @@

CircleMarker.prototype.getChildContext = function getChildContext() {
return {
popupContainer: this.leafletElement
};
};
CircleMarker.prototype.createLeafletElement = function createLeafletElement(props) {

@@ -65,2 +75,5 @@ return new _leaflet.CircleMarker(props.center, this.getOptions(props));

};
CircleMarker.childContextTypes = {
popupContainer: _layer2.default
};
exports.default = CircleMarker;

@@ -13,2 +13,6 @@ 'use strict';

var _forEach2 = require('lodash/forEach');
var _forEach3 = _interopRequireDefault(_forEach2);
var _leaflet = require('leaflet');

@@ -132,2 +136,4 @@

Map.prototype.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {
var _this2 = this;
this._updating = true;

@@ -147,7 +153,11 @@

if (className !== fromProps.className) {
if (fromProps.className != null) {
_leaflet.DomUtil.removeClass(this.container, fromProps.className);
if (fromProps.className != null && fromProps.className.length > 0) {
(0, _forEach3.default)(fromProps.className.split(' '), function (cls) {
_leaflet.DomUtil.removeClass(_this2.container, cls);
});
}
if (className != null) {
_leaflet.DomUtil.addClass(this.container, className);
if (className != null && className.length > 0) {
(0, _forEach3.default)(className.split(' '), function (cls) {
_leaflet.DomUtil.addClass(_this2.container, cls);
});
}

@@ -154,0 +164,0 @@ }

{
"name": "react-leaflet",
"version": "1.7.5",
"version": "1.7.6",
"description": "React components for Leaflet maps",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -7,11 +7,12 @@ # React-Leaflet [![Build Status](https://img.shields.io/travis/PaulLeCam/react-leaflet/master.svg)](https://travis-ci.org/PaulLeCam/react-leaflet) [![npm version](https://img.shields.io/npm/v/react-leaflet.svg)](https://www.npmjs.com/package/react-leaflet) [![CDNJS version](https://img.shields.io/cdnjs/v/react-leaflet.svg)](https://cdnjs.com/libraries/react-leaflet)

- [Getting started](docs/Getting%20started.md)
- [How it works](docs/How%20it%20works.md)
- [API](docs/API.md)
- [Extending](docs/Extending.md)
- [Plugins](docs/Plugins.md)
* [Getting started](docs/Getting%20started.md)
* [How it works](docs/How%20it%20works.md)
* [API](docs/API.md)
* [Extending](docs/Extending.md)
* [Plugins](docs/Plugins.md)
## Examples
Run a simple example using [WebpackBin](https://www.webpackbin.com/bins/-Kl_ZeUx4I05ETYoT26O).
Run a simple example using
[WebpackBin](https://www.webpackbin.com/bins/-Kl_ZeUx4I05ETYoT26O).\
Other examples are available in the [example](example) folder of this project.

@@ -29,7 +30,9 @@

Please **do not** use GitHub issues for support, but instead post your questions on [StackOverflow](https://stackoverflow.com/) using the [`react-leaflet` tag](https://stackoverflow.com/questions/tagged/react-leaflet).
Please **do not** use GitHub issues for support, but instead post your questions
on [StackOverflow](https://stackoverflow.com/) using the
[`react-leaflet` tag](https://stackoverflow.com/questions/tagged/react-leaflet).
## License
MIT
MIT\
See [LICENSE](LICENSE) file.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc