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 2.0.0-rc.2 to 2.0.0-rc.3

4

CHANGELOG.md

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

## v2.0.0-rc.3 (2018-07-02)
Added `collapsed` as dynamic property to `LayersControl`.
## v2.0.0-rc.2 (2018-06-28)

@@ -2,0 +6,0 @@

2

dist/react-leaflet.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("leaflet"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","leaflet","react-dom"],e):e(t.ReactLeaflet={},t.React,t.L,t.ReactDOM)}(this,function(t,o,l,e){"use strict";var u="default"in o?o.default:o,p={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=d&&d(Object);var a=function t(e,n,r){if("string"!=typeof n){if(m){var o=d(n);o&&o!==m&&t(e,o,r)}var a=f(n);h&&(a=a.concat(h(n)));for(var i=0;i<a.length;++i){var l=a[i];if(!(p[l]||s[l]||r&&r[l])){var u=y(n,l);try{c(e,l,u)}catch(t){}}}return e}return e},v=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=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)},E=function(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},_=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},n=o.createContext({}),O=n.Consumer,r=n.Provider,L=O,j=r,w=function(r){var t=function(e,n){return u.createElement(O,null,function(t){return u.createElement(r,b({},e,{leaflet:t,ref:n}))})},e=r.displayName||r.name;t.displayName="Leaflet("+e+")";var n=o.forwardRef(t);return a(n,r),n},C=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.leafletElement=e.createLeafletElement(e.props),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setPosition(e.position)},r.prototype.componentDidMount=function(){this.leafletElement.addTo(this.props.leaflet.map)},r.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},r.prototype.componentWillUnmount=function(){this.leafletElement.remove()},r.prototype.render=function(){return null},r}(o.Component),P=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Control.Attribution(t)},e}(C)),x=Array.isArray,z="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,A=z||S||Function("return this")(),U=A.Symbol,M=Object.prototype,D=M.hasOwnProperty,T=M.toString,k=U?U.toStringTag:void 0;var V=Object.prototype.toString;var I="[object Null]",B="[object Undefined]",Z=U?U.toStringTag:void 0;function N(t){return null==t?void 0===t?B:I:Z&&Z in Object(t)?function(t){var e=D.call(t,k),n=t[k];try{t[k]=void 0}catch(t){}var r=T.call(t);return e?t[k]=n:delete t[k],r}(t):(e=t,V.call(e));var e}function R(t){return null!=t&&"object"==typeof t}var W="[object Symbol]";function F(t){return"symbol"==typeof t||R(t)&&N(t)==W}var $=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/;function q(t,e){if(x(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!F(t))||(G.test(t)||!$.test(t)||null!=e&&t in Object(e))}function J(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var H="[object AsyncFunction]",K="[object Function]",Q="[object GeneratorFunction]",X="[object Proxy]";function Y(t){if(!J(t))return!1;var e=N(t);return e==K||e==Q||e==H||e==X}var tt,et=A["__core-js_shared__"],nt=(tt=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"";var rt=Function.prototype.toString;function ot(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var at=/^\[object .+?Constructor\]$/,it=Function.prototype,lt=Object.prototype,ut=it.toString,pt=lt.hasOwnProperty,st=RegExp("^"+ut.call(pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ct(t){return!(!J(t)||(e=t,nt&&nt in e))&&(Y(t)?st:at).test(ot(t));var e}function ft(t,e){var n,r,o=(r=e,null==(n=t)?void 0:n[r]);return ct(o)?o:void 0}var ht=ft(Object,"create");var yt=Object.prototype.hasOwnProperty;var dt=Object.prototype.hasOwnProperty;function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vt(t,e){return t===e||t!=t&&e!=e}function bt(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1}mt.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(ht){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return yt.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return ht?void 0!==e[t]:dt.call(e,t)},mt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ht&&void 0===e?"__lodash_hash_undefined__":e,this};var gt=Array.prototype.splice;function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=function(){this.__data__=[],this.size=0},Et.prototype.delete=function(t){var e=this.__data__,n=bt(e,t);return!(n<0||(n==e.length-1?e.pop():gt.call(e,n,1),--this.size,0))},Et.prototype.get=function(t){var e=this.__data__,n=bt(e,t);return n<0?void 0:e[n][1]},Et.prototype.has=function(t){return-1<bt(this.__data__,t)},Et.prototype.set=function(t,e){var n=this.__data__,r=bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var _t=ft(A,"Map");function Ot(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(_t||Et),string:new mt}},Lt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},Lt.prototype.get=function(t){return Ot(this,t).get(t)},Lt.prototype.has=function(t){return Ot(this,t).has(t)},Lt.prototype.set=function(t,e){var n=Ot(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var jt="Expected a function";function wt(o,a){if("function"!=typeof o||null!=a&&"function"!=typeof a)throw new TypeError(jt);var i=function(){var t=arguments,e=a?a.apply(this,t):t[0],n=i.cache;if(n.has(e))return n.get(e);var r=o.apply(this,t);return i.cache=n.set(e,r)||n,r};return i.cache=new(wt.Cache||Lt),i}wt.Cache=Lt;var Ct,Pt,xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,St=(Pt=(Ct=wt(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(xt,function(t,e,n,r){o.push(n?r.replace(zt,"$1"):e||t)}),o},function(t){return 500===Pt.size&&Pt.clear(),t})).cache,Ct);function At(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var Ut=1/0,Mt=U?U.prototype:void 0,Dt=Mt?Mt.toString:void 0;function Tt(t){if("string"==typeof t)return t;if(x(t))return At(t,Tt)+"";if(F(t))return Dt?Dt.call(t):"";var e=t+"";return"0"==e&&1/t==-Ut?"-0":e}function kt(t){return null==t?"":Tt(t)}function Vt(t,e){return x(t)?t:q(t,e)?[t]:St(kt(t))}var It=1/0;function Bt(t){if("string"==typeof t||F(t))return t;var e=t+"";return"0"==e&&1/t==-It?"-0":e}function Zt(t,e){for(var n=0,r=(e=Vt(e,t)).length;null!=t&&n<r;)t=t[Bt(e[n++])];return n&&n==r?t:void 0}var Nt=function(){try{var t=ft(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Rt(t,e,n){"__proto__"==e&&Nt?Nt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Wt=Object.prototype.hasOwnProperty;function Ft(t,e,n){var r=t[e];Wt.call(t,e)&&vt(r,n)&&(void 0!==n||e in t)||Rt(t,e,n)}var $t=9007199254740991,Gt=/^(?:0|[1-9]\d*)$/;function qt(t,e){var n=typeof t;return!!(e=null==e?$t:e)&&("number"==n||"symbol"!=n&&Gt.test(t))&&-1<t&&t%1==0&&t<e}function Jt(t,e,n,r){if(!J(t))return t;for(var o=-1,a=(e=Vt(e,t)).length,i=a-1,l=t;null!=l&&++o<a;){var u=Bt(e[o]),p=n;if(o!=i){var s=l[u];void 0===(p=r?r(s,u,l):void 0)&&(p=J(s)?s:qt(e[o+1])?[]:{})}Ft(l,u,p),l=l[u]}return t}function Ht(t,e){return null!=t&&e in Object(t)}function Kt(t){return R(t)&&"[object Arguments]"==N(t)}var Qt=Object.prototype,Xt=Qt.hasOwnProperty,Yt=Qt.propertyIsEnumerable,te=Kt(function(){return arguments}())?Kt:function(t){return R(t)&&Xt.call(t,"callee")&&!Yt.call(t,"callee")},ee=9007199254740991;function ne(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=ee}function re(t,e){return null!=t&&function(t,e,n){for(var r=-1,o=(e=Vt(e,t)).length,a=!1;++r<o;){var i=Bt(e[r]);if(!(a=null!=t&&n(t,i)))break;t=t[i]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&ne(o)&&qt(i,o)&&(x(t)||te(t))}(t,e,Ht)}function oe(n,t){return function(t,e,n){for(var r=-1,o=e.length,a={};++r<o;){var i=e[r],l=Zt(t,i);n(l,i)&&Jt(a,Vt(i,t),l)}return a}(n,t,function(t,e){return re(n,e)})}function ae(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var ie=U?U.isConcatSpreadable:void 0;function le(t){return x(t)||te(t)||!!(ie&&t&&t[ie])}function ue(t){return(null==t?0:t.length)?function t(e,n,r,o,a){var i=-1,l=e.length;for(r||(r=le),a||(a=[]);++i<l;){var u=e[i];0<n&&r(u)?1<n?t(u,n-1,r,o,a):ae(a,u):o||(a[a.length]=u)}return a}(t,1):[]}var pe=Math.max;function se(t){return t}var ce=Nt?function(t,e){return Nt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:se,fe=Date.now;var he,ye,de,me=(he=ce,de=ye=0,function(){var t=fe(),e=16-(t-de);if(de=t,0<e){if(800<=++ye)return arguments[0]}else ye=0;return he.apply(void 0,arguments)});function ve(t){return me((a=t,l=ue,i=pe((i=void 0)===i?a.length-1:i,0),function(){for(var t=arguments,e=-1,n=pe(t.length-i,0),r=Array(n);++e<n;)r[e]=t[i+e];e=-1;for(var o=Array(i+1);++e<i;)o[e]=t[e];return o[i]=l(r),function(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)}(a,this,o)}),t+"");var a,i,l}var be=ve(function(t,e){return null==t?{}:oe(t,e)});function ge(t){var e=this.__data__=new Et(t);this.size=e.size}ge.prototype.clear=function(){this.__data__=new Et,this.size=0},ge.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ge.prototype.get=function(t){return this.__data__.get(t)},ge.prototype.has=function(t){return this.__data__.has(t)},ge.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Et){var r=n.__data__;if(!_t||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Lt(r)}return n.set(t,e),this.size=n.size,this};function Ee(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Lt;++e<n;)this.add(t[e])}function _e(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}Ee.prototype.add=Ee.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ee.prototype.has=function(t){return this.__data__.has(t)};var Oe=1,Le=2;function je(t,e,r,o,a,i){var n=r&Oe,l=t.length,u=e.length;if(l!=u&&!(n&&l<u))return!1;var p=i.get(t);if(p&&i.get(e))return p==e;var s=-1,c=!0,f=r&Le?new Ee:void 0;for(i.set(t,e),i.set(e,t);++s<l;){var h=t[s],y=e[s];if(o)var d=n?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(!_e(e,function(t,e){if(n=e,!f.has(n)&&(h===t||a(h,t,r,o,i)))return f.push(e);var n})){c=!1;break}}else if(h!==y&&!a(h,y,r,o,i)){c=!1;break}}return i.delete(t),i.delete(e),c}var we=A.Uint8Array;function Ce(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function Pe(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var xe=1,ze=2,Se="[object Boolean]",Ae="[object Date]",Ue="[object Error]",Me="[object Map]",De="[object Number]",Te="[object RegExp]",ke="[object Set]",Ve="[object String]",Ie="[object Symbol]",Be="[object ArrayBuffer]",Ze="[object DataView]",Ne=U?U.prototype:void 0,Re=Ne?Ne.valueOf:void 0;function We(t,e,n){var r=e(t);return x(t)?r:ae(r,n(t))}function Fe(){return[]}var $e=Object.prototype.propertyIsEnumerable,Ge=Object.getOwnPropertySymbols,qe=Ge?function(e){return null==e?[]:(e=Object(e),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a}(Ge(e),function(t){return $e.call(e,t)}))}:Fe;var Je="object"==typeof t&&t&&!t.nodeType&&t,He=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Ke=He&&He.exports===Je?A.Buffer:void 0,Qe=(Ke?Ke.isBuffer:void 0)||function(){return!1},Xe={};function Ye(e){return function(t){return e(t)}}Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var tn="object"==typeof t&&t&&!t.nodeType&&t,en=tn&&"object"==typeof module&&module&&!module.nodeType&&module,nn=en&&en.exports===tn&&z.process,rn=function(){try{var t=en&&en.require&&en.require("util").types;return t||nn&&nn.binding&&nn.binding("util")}catch(t){}}(),on=rn&&rn.isTypedArray,an=on?Ye(on):function(t){return R(t)&&ne(t.length)&&!!Xe[N(t)]},ln=Object.prototype.hasOwnProperty;function un(t,e){var n=x(t),r=!n&&te(t),o=!n&&!r&&Qe(t),a=!n&&!r&&!o&&an(t),i=n||r||o||a,l=i?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=l.length;for(var p in t)!e&&!ln.call(t,p)||i&&("length"==p||o&&("offset"==p||"parent"==p)||a&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||qt(p,u))||l.push(p);return l}var pn=Object.prototype;function sn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pn)}function cn(e,n){return function(t){return e(n(t))}}var fn=cn(Object.keys,Object),hn=Object.prototype.hasOwnProperty;function yn(t){return null!=t&&ne(t.length)&&!Y(t)}function dn(t){return yn(t)?un(t):function(t){if(!sn(t))return fn(t);var e=[];for(var n in Object(t))hn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}function mn(t){return We(t,dn,qe)}var vn=1,bn=Object.prototype.hasOwnProperty;var gn=ft(A,"DataView"),En=ft(A,"Promise"),_n=ft(A,"Set"),On=ft(A,"WeakMap"),Ln="[object Map]",jn="[object Promise]",wn="[object Set]",Cn="[object WeakMap]",Pn="[object DataView]",xn=ot(gn),zn=ot(_t),Sn=ot(En),An=ot(_n),Un=ot(On),Mn=N;(gn&&Mn(new gn(new ArrayBuffer(1)))!=Pn||_t&&Mn(new _t)!=Ln||En&&Mn(En.resolve())!=jn||_n&&Mn(new _n)!=wn||On&&Mn(new On)!=Cn)&&(Mn=function(t){var e=N(t),n="[object Object]"==e?t.constructor:void 0,r=n?ot(n):"";if(r)switch(r){case xn:return Pn;case zn:return Ln;case Sn:return jn;case An:return wn;case Un:return Cn}return e});var Dn=Mn,Tn=1,kn="[object Arguments]",Vn="[object Array]",In="[object Object]",Bn=Object.prototype.hasOwnProperty;function Zn(t,e,n,r,o,a){var i=x(t),l=x(e),u=i?Vn:Dn(t),p=l?Vn:Dn(e),s=(u=u==kn?In:u)==In,c=(p=p==kn?In:p)==In,f=u==p;if(f&&Qe(t)){if(!Qe(e))return!1;s=!(i=!0)}if(f&&!s)return a||(a=new ge),i||an(t)?je(t,e,n,r,o,a):function(t,e,n,r,o,a,i){switch(n){case Ze:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Be:return!(t.byteLength!=e.byteLength||!a(new we(t),new we(e)));case Se:case Ae:case De:return vt(+t,+e);case Ue:return t.name==e.name&&t.message==e.message;case Te:case Ve:return t==e+"";case Me:var l=Ce;case ke:var u=r&xe;if(l||(l=Pe),t.size!=e.size&&!u)return!1;var p=i.get(t);if(p)return p==e;r|=ze,i.set(t,e);var s=je(l(t),l(e),r,o,a,i);return i.delete(t),s;case Ie:if(Re)return Re.call(t)==Re.call(e)}return!1}(t,e,u,n,r,o,a);if(!(n&Tn)){var h=s&&Bn.call(t,"__wrapped__"),y=c&&Bn.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,m=y?e.value():e;return a||(a=new ge),o(d,m,n,r,a)}}return!!f&&(a||(a=new ge),function(t,e,n,r,o,a){var i=n&vn,l=mn(t),u=l.length;if(u!=mn(e).length&&!i)return!1;for(var p=u;p--;){var s=l[p];if(!(i?s in e:bn.call(e,s)))return!1}var c=a.get(t);if(c&&a.get(e))return c==e;var f=!0;a.set(t,e),a.set(e,t);for(var h=i;++p<u;){var y=t[s=l[p]],d=e[s];if(r)var m=i?r(d,y,s,e,t,a):r(y,d,s,t,e,a);if(!(void 0===m?y===d||o(y,d,n,r,a):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 a.delete(t),a.delete(e),f}(t,e,n,r,o,a))}function Nn(t,e,n,r,o){return t===e||(null==t||null==e||!R(t)&&!R(e)?t!=t&&e!=e:Zn(t,e,n,r,Nn,o))}function Rn(t,e){return Nn(t,e)}function Wn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}var Fn,$n=function(t,e,n){for(var r=-1,o=Object(t),a=n(t),i=a.length;i--;){var l=a[Fn?i:++r];if(!1===e(o[l],l,o))break}return t};var Gn,qn,Jn=(Gn=function(t,e){return t&&$n(t,e,dn)},function(t,e){if(null==t)return t;if(!yn(t))return Gn(t,e);for(var n=t.length,r=qn?n:-1,o=Object(t);(qn?r--:++r<n)&&!1!==e(o[r],r,o););return t});function Hn(t,e){var n;return(x(t)?Wn:Jn)(t,"function"==typeof(n=e)?n:se)}var Kn=/^on(.+)$/i,Qn=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e._leafletEvents=e.extractLeafletEvents(t),e}return g(r,n),r.prototype.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},r.prototype.componentDidUpdate=function(t){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},r.prototype.componentWillUnmount=function(){var n=this.leafletElement;n&&Hn(this._leafletEvents,function(t,e){n.off(e,t)})},r.prototype.extractLeafletEvents=function(n){return Object.keys(n).reduce(function(t,e){Kn.test(e)&&(null!=n[e]&&(t[e.replace(Kn,function(t,e){return e.toLowerCase()})]=n[e]));return t},{})},r.prototype.bindLeafletEvents=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=this.leafletElement;if(null==o||null==o.on)return{};var a=b({},r);return Hn(r,function(t,e){null!=n[e]&&t===n[e]||(delete a[e],o.off(e,t))}),Hn(n,function(t,e){null!=r[e]&&t===r[e]||(a[e]=t,o.on(e,t))}),a},r.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},r.prototype.getOptions=function(t){return null!=t.pane?t:null!=t.leaflet&&null!=t.leaflet.pane?b({},t,{pane:t.leaflet.pane}):t},r}(o.Component),Xn=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.leafletElement=e.createLeafletElement(t),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){},r.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},r.prototype.componentDidUpdate=function(t){n.prototype.componentDidUpdate.call(this,t),this.updateLeafletElement(t,this.props)},r.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},r.prototype.render=function(){var t=this.props.children;return null==t?null:null==this.contextValue?u.createElement(o.Fragment,null,t):u.createElement(j,{value:this.contextValue},t)},i(r,[{key:"layerContainer",get:function(){return this.props.leaflet.layerContainer||this.props.leaflet.map}}]),r}(Qn),Yn=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],tr=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return null==e.contextValue&&(e.contextValue=b({},t.leaflet,{popupContainer:e.leafletElement})),e}return g(r,n),r.prototype.componentDidUpdate=function(t){n.prototype.componentDidUpdate.call(this,t),this.setStyleIfChanged(t,this.props)},r.prototype.getPathOptions=function(t){return be(t,Yn)},r.prototype.setStyle=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},r.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);Rn(n,this.getPathOptions(t))||this.setStyle(n)},r}(Xn),er=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=t.center,n=t.radius,r=E(t,["center","radius"]);return new l.Circle(e,n,this.getOptions(r))},e.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},e}(tr)),nr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new l.CircleMarker(t.center,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},e}(tr)),rr=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").split(" ").filter(Boolean)},or=function(e,t,n){null!=e&&n!==t&&(null!=t&&0<t.length&&rr(t).forEach(function(t){l.DomUtil.removeClass(e,t)}),null!=n&&0<n.length&&rr(n).forEach(function(t){l.DomUtil.addClass(e,t)}))},ar=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.onClose=function(){e.props.onClose&&e.props.onClose()},e.onOpen=function(){e.forceUpdate(),e.props.onOpen&&e.props.onOpen()},e.leafletElement=e.createLeafletElement(t),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){},r.prototype.componentDidUpdate=function(t){or(this.leafletElement._container,t.className,this.props.className),this.updateLeafletElement(t,this.props),this.leafletElement.isOpen()&&(this.leafletElement.update(),this.onRender())},r.prototype.onRender=function(){},r.prototype.render=function(){return this.leafletElement._contentNode?e.createPortal(this.props.children,this.leafletElement._contentNode):null},r}(Qn),ir=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new l.FeatureGroup(this.getOptions(t));return this.contextValue=b({},t.leaflet,{layerContainer:e,popupContainer:e}),e},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setStyle(this.props)},e}(tr)),lr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.GeoJSON(t.data,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){Y(e.style)?this.setStyle(e.style):this.setStyleIfChanged(t,e)},e}(tr)),ur=function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.GridLayer(this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){var n=e.opacity,r=e.zIndex;n!==t.opacity&&this.leafletElement.setOpacity(n),r!==t.zIndex&&this.leafletElement.setZIndex(r)},e.prototype.render=function(){return null},e}(Xn),pr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new l.ImageOverlay(t.url,t.bounds,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.prototype.updateLeafletElement=function(t,e){e.url!==t.url&&this.leafletElement.setUrl(e.url),e.bounds!==t.bounds&&this.leafletElement.setBounds(l.latLngBounds(e.bounds)),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.zIndex!==t.zIndex&&this.leafletElement.setZIndex(e.zIndex)},e}(Xn)),sr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new l.LayerGroup(this.getOptions(t));return this.contextValue=b({},t.leaflet,{layerContainer:e}),e},e}(Xn)),cr=function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.componentDidUpdate=function(t){var e=t.checked;null!=this.props.leaflet.map&&(!0!==this.props.checked||null!=e&&!1!==e?!0!==e||null!=this.props.checked&&!1!==this.props.checked||this.props.leaflet.map.removeLayer(this.layer):this.props.leaflet.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(){var t=this.props.children;return t?u.createElement(j,{value:this.contextValue},t):null},e}(o.Component),fr=function(e){function n(t){v(this,n);var o=_(this,e.call(this,t));return o.addLayer=function(t){o.layer=t;var e=o.props,n=e.addBaseLayer,r=e.checked;n(t,e.name,r)},o.contextValue=b({},t.leaflet,{layerContainer:{addLayer:o.addLayer.bind(o),removeLayer:o.removeLayer.bind(o)}}),o}return g(n,e),n}(cr),hr=function(e){function n(t){v(this,n);var o=_(this,e.call(this,t));return o.addLayer=function(t){o.layer=t;var e=o.props,n=e.addOverlay,r=e.checked;n(t,e.name,r)},o.contextValue=b({},t.leaflet,{layerContainer:{addLayer:o.addLayer.bind(o),removeLayer:o.removeLayer.bind(o)}}),o}return g(n,e),n}(cr),yr=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.controlProps={addBaseLayer:e.addBaseLayer.bind(e),addOverlay:e.addOverlay.bind(e),leaflet:t.leaflet,removeLayer:e.removeLayer.bind(e),removeLayerControl:e.removeLayerControl.bind(e)},e}return g(r,n),r.prototype.createLeafletElement=function(t){t.children;var e=E(t,["children"]);return new l.Control.Layers(void 0,void 0,e)},r.prototype.componentWillUnmount=function(){var t=this;setTimeout(function(){n.prototype.componentWillUnmount.call(t)},0)},r.prototype.addBaseLayer=function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&null!=this.props.leaflet.map&&this.props.leaflet.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},r.prototype.addOverlay=function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&null!=this.props.leaflet.map&&this.props.leaflet.map.addLayer(t),this.leafletElement.addOverlay(t,e)},r.prototype.removeLayer=function(t){null!=this.props.leaflet.map&&this.props.leaflet.map.removeLayer(t)},r.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},r.prototype.render=function(){var e=this,t=o.Children.map(this.props.children,function(t){return t?o.cloneElement(t,e.controlProps):null});return u.createElement(o.Fragment,null,t)},r}(C);yr.BaseLayer=fr,yr.Overlay=hr;var dr=w(yr);function mr(t,e,n,r){var o=!n;n||(n={});for(var a=-1,i=e.length;++a<i;){var l=e[a],u=r?r(n[l],t[l],l,n,t):void 0;void 0===u&&(u=t[l]),o?Rt(n,l,u):Ft(n,l,u)}return n}var vr=Object.prototype.hasOwnProperty;function br(t){if(!J(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=sn(t),n=[];for(var r in t)("constructor"!=r||!e&&vr.call(t,r))&&n.push(r);return n}function gr(t){return yn(t)?un(t,!0):br(t)}var Er="object"==typeof t&&t&&!t.nodeType&&t,_r=Er&&"object"==typeof module&&module&&!module.nodeType&&module,Or=_r&&_r.exports===Er?A.Buffer:void 0,Lr=Or?Or.allocUnsafe:void 0;var jr=cn(Object.getPrototypeOf,Object),wr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ae(e,qe(t)),t=jr(t);return e}:Fe;function Cr(t){return We(t,gr,wr)}var Pr=Object.prototype.hasOwnProperty;var xr=U?U.prototype:void 0;xr&&xr.valueOf;var zr=Object.create,Sr=function(){function n(){}return function(t){if(!J(t))return{};if(zr)return zr(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();var Ar=rn&&rn.isMap,Ur=Ar?Ye(Ar):function(t){return R(t)&&"[object Map]"==Dn(t)};var Mr=rn&&rn.isSet,Dr=Mr?Ye(Mr):function(t){return R(t)&&"[object Set]"==Dn(t)},Tr=1,kr=2,Vr=4,Ir="[object Arguments]",Br="[object Function]",Zr="[object GeneratorFunction]",Nr="[object Object]";function Rr(n,r,o,t,e,a){var i,l=r&Tr,u=r&kr,p=r&Vr;if(o&&(i=e?o(n,t,e,a):o(n)),void 0!==i)return i;if(!J(n))return n;var s,c,f,h,y,d,m,v,b,g,E,_,O=x(n);if(O){if(E=(g=n).length,_=new g.constructor(E),E&&"string"==typeof g[0]&&Pr.call(g,"index")&&(_.index=g.index,_.input=g.input),i=_,!l)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(n,i)}else{var L=Dn(n),j=L==Br||L==Zr;if(Qe(n))return function(t,e){if(e)return t.slice();var n=t.length,r=Lr?Lr(n):new t.constructor(n);return t.copy(r),r}(n,l);if(L!=Nr&&L!=Ir&&(!j||e))return e?n:{};if(i=u||j?{}:"function"!=typeof(b=n).constructor||sn(b)?{}:Sr(jr(b)),!l)return u?(v=y=n,d=(m=i)&&mr(v,gr(v),m),mr(y,wr(y),d)):(h=s=n,c=(f=i)&&mr(h,dn(h),f),mr(s,qe(s),c))}a||(a=new ge);var w=a.get(n);if(w)return w;if(a.set(n,i),Dr(n))return n.forEach(function(t){i.add(Rr(t,r,o,t,n,a))}),i;if(Ur(n))return n.forEach(function(t,e){i.set(e,Rr(t,r,o,e,n,a))}),i;var C=p?u?Cr:mn:u?keysIn:dn,P=O?void 0:C(n);return Wn(P||n,function(t,e){P&&(t=n[e=t]),Ft(i,e,Rr(t,r,o,e,n,a))}),i}function Wr(t,e){return e.length<2?t:Zt(t,function(t,e,n){var r=-1,o=t.length;e<0&&(e=o<-e?0:o+e),(n=o<n?o:n)<0&&(n+=o),o=n<e?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a}(e,0,-1))}var Fr="[object Object]",$r=Function.prototype,Gr=Object.prototype,qr=$r.toString,Jr=Gr.hasOwnProperty,Hr=qr.call(Object);function Kr(t){return function(t){if(!R(t)||N(t)!=Fr)return!1;var e=jr(t);if(null===e)return!0;var n=Jr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&qr.call(n)==Hr}(t)?void 0:t}var Qr=ve(function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,function(t){return t=Vt(t,e),r||(r=1<t.length),t}),mr(e,Cr(e),n),r&&(n=Rr(n,7,Kr));for(var o,a,i,l,u=t.length;u--;)o=n,a=t[u],l=i=void 0,null==(o=Wr(o,a=Vt(a,o)))||delete o[Bt((i=a,l=null==i?0:i.length,l?i[l-1]:void 0))];return n}),Xr=["children","className","id","style","useFlyTo","whenReady"],Yr=function(t){return Array.isArray(t)?[t[0],t[1]]:[t.lat,t.lon?t.lon:t.lng]},to=function(a){function i(){var t,e;v(this,i);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).viewport={center:void 0,zoom:void 0},e._updating=!1,e.onViewportChange=function(){var t=e.leafletElement.getCenter();e.viewport={center:t?[t.lat,t.lng]:void 0,zoom:e.leafletElement.getZoom()},e.props.onViewportChange&&!e._updating&&e.props.onViewportChange(e.viewport)},e.onViewportChanged=function(){e.props.onViewportChanged&&!e._updating&&e.props.onViewportChanged(e.viewport)},e.bindContainer=function(t){e.container=t},_(e,t)}return g(i,a),i.prototype.createLeafletElement=function(t){var e=t.viewport,n=E(t,["viewport"]);return e&&(e.center&&(n.center=e.center),"number"==typeof e.zoom&&(n.zoom=e.zoom)),new l.Map(this.container,n)},i.prototype.updateLeafletElement=function(t,e){this._updating=!0;var n=e.animate,r=e.bounds,o=e.boundsOptions,a=e.boxZoom,i=e.center,l=e.className,u=e.doubleClickZoom,p=e.dragging,s=e.keyboard,c=e.maxBounds,f=e.scrollWheelZoom,h=e.tap,y=e.touchZoom,d=e.useFlyTo,m=e.viewport,v=e.zoom;if(or(this.container,t.className,l),m&&m!==t.viewport){var b=m.center?m.center:i,g=null==m.zoom?v:m.zoom;!0===d?this.leafletElement.flyTo(b,g,{animate:n}):this.leafletElement.setView(b,g,{animate:n})}else i&&this.shouldUpdateCenter(i,t.center)?!0===d?this.leafletElement.flyTo(i,v,{animate:n}):this.leafletElement.setView(i,v,{animate:n}):"number"==typeof v&&v!==t.zoom&&(null==t.zoom?this.leafletElement.setView(i,v):this.leafletElement.setZoom(v));c&&this.shouldUpdateBounds(c,t.maxBounds)&&this.leafletElement.setMaxBounds(c),r&&(this.shouldUpdateBounds(r,t.bounds)||o!==t.boundsOptions)&&(!0===d?this.leafletElement.flyToBounds(r,o):this.leafletElement.fitBounds(r,o)),a!==t.boxZoom&&(!0===a?this.leafletElement.boxZoom.enable():this.leafletElement.boxZoom.disable()),u!==t.doubleClickZoom&&(!0===u?this.leafletElement.doubleClickZoom.enable():this.leafletElement.doubleClickZoom.disable()),p!==t.dragging&&(!0===p?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable()),s!==t.keyboard&&(!0===s?this.leafletElement.keyboard.enable():this.leafletElement.keyboard.disable()),f!==t.scrollWheelZoom&&(!0===f||"string"==typeof f?(this.leafletElement.options.scrollWheelZoom=f,this.leafletElement.scrollWheelZoom.enable()):this.leafletElement.scrollWheelZoom.disable()),h!==t.tap&&(!0===h?this.leafletElement.tap.enable():this.leafletElement.tap.disable()),y!==t.touchZoom&&(!0===y||"string"==typeof y?(this.leafletElement.options.touchZoom=y,this.leafletElement.touchZoom.enable()):this.leafletElement.touchZoom.disable()),this._updating=!1},i.prototype.componentDidMount=function(){var t=Qr(this.props,Xr);this.leafletElement=this.createLeafletElement(t),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),null!=t.bounds&&this.leafletElement.fitBounds(t.bounds,t.boundsOptions),this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady),this.contextValue={layerContainer:this.leafletElement,map:this.leafletElement},a.prototype.componentDidMount.call(this),this.forceUpdate()},i.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},i.prototype.componentWillUnmount=function(){a.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),!0===this.props.preferCanvas?(this.leafletElement._initEvents(!0),this.leafletElement._stop()):this.leafletElement.remove()},i.prototype.shouldUpdateCenter=function(t,e){return!e||(t=Yr(t),e=Yr(e),t[0]!==e[0]||t[1]!==e[1])},i.prototype.shouldUpdateBounds=function(t,e){return!e||!l.latLngBounds(t).equals(l.latLngBounds(e))},i.prototype.render=function(){return u.createElement("div",{className:this.props.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},this.contextValue?u.createElement(j,{value:this.contextValue},this.props.children):null)},i}(Qn),eo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new l.Marker(t.position,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.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())},e.prototype.render=function(){var t=this.props.children;return null==t||null==this.contextValue?null:u.createElement(j,{value:this.contextValue},t)},e}(Xn)),no=0;var ro=["tile","shadow","overlay","map","marker","tooltip","popup"],oo=/-*pane/gi,ao={position:"absolute",top:0,right:0,bottom:0,left:0},io=w(function(a){function i(){var t,o;v(this,i);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o=_(this,a.call.apply(a,[this].concat(n)))).state={name:void 0,context:void 0},o.setStyle=function(){var t=0<arguments.length&&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&&Hn(e,function(t,e){r.style[e]=t}))},_(o,t)}return g(i,a),i.prototype.componentDidMount=function(){this.createPane(this.props)},i.prototype.componentDidUpdate=function(t){if(this.state.name)if(this.props.name!==t.name)this.removePane(),this.createPane(this.props);else{if(t.className&&this.props.className!==t.className){var e=this.getPane();null!=e&&null!=t.className&&e.classList.remove(t.className)}this.setStyle(this.props)}},i.prototype.componentWillUnmount=function(){this.removePane()},i.prototype.createPane=function(t){var e,n,r,o=t.leaflet.map,a=t.name||"pane-"+(n=++no,kt(e)+n);null!=o&&null!=o.createPane&&(null==((r=a,-1!==ro.indexOf(r.replace(oo,"")))||this.getPane(a))&&o.createPane(a,this.getParentPane()),this.setState({name:a,context:b({},t.leaflet,{pane:a})},this.setStyle))},i.prototype.removePane=function(){var t=this.state.name;if(null!=t){var e=this.getPane(t);null!=e&&e.remove&&e.remove();var n=this.props.leaflet.map;null!=n&&null!=n._panes&&(n._panes=Qr(n._panes,t),n._paneRenderers=Qr(n._paneRenderers,t))}},i.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.props.leaflet.pane)},i.prototype.getPane=function(t){if(null!=t&&null!=this.props.leaflet.map)return this.props.leaflet.map.getPane(t)},i.prototype.render=function(){var t=this.state.context;return t?u.createElement(j,{value:t},u.createElement("div",{style:ao},this.props.children)):null},i}(o.Component)),lo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Polygon(t.positions,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},e}(tr)),uo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Polyline(t.positions,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},e}(tr)),po=function(a){function i(){var t,e;v(this,i);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).onPopupOpen=function(t){t.popup===e.leafletElement&&e.onOpen()},e.onPopupClose=function(t){t.popup===e.leafletElement&&e.onClose()},e.onRender=function(){!1!==e.props.autoPan&&e.leafletElement.isOpen()&&(e.leafletElement._map&&e.leafletElement._map._panAnim&&(e.leafletElement._map._panAnim=void 0),e.leafletElement._adjustPan())},_(e,t)}return g(i,a),i.prototype.getOptions=function(t){return b({},a.prototype.getOptions.call(this,t),{autoPan:!1})},i.prototype.createLeafletElement=function(t){var e=this.getOptions(t);return e.autoPan=!1!==t.autoPan,new l.Popup(e,t.leaflet.popupContainer)},i.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position)},i.prototype.componentDidMount=function(){var t=this.props.position,e=this.props.leaflet,n=e.map,r=e.popupContainer,o=this.leafletElement;null!=n&&n.on({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),r?r.bindPopup(o):(t&&o.setLatLng(t),o.openOn(n))},i.prototype.componentWillUnmount=function(){var t=this.props.leaflet.map;null!=t&&(t.off({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),t.removeLayer(this.leafletElement)),a.prototype.componentWillUnmount.call(this)},i}(ar);po.defaultProps={pane:"popupPane"};var so=w(po),co=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Rectangle(t.bounds,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.bounds!==t.bounds&&this.leafletElement.setBounds(e.bounds),this.setStyleIfChanged(t,e)},e}(tr)),fo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Control.Scale(t)},e}(C)),ho=w(function(n){function t(){return v(this,t),_(this,n.apply(this,arguments))}return g(t,n),t.prototype.createLeafletElement=function(t){return new l.TileLayer(t.url,this.getOptions(t))},t.prototype.updateLeafletElement=function(t,e){n.prototype.updateLeafletElement.call(this,t,e),e.url!==t.url&&this.leafletElement.setUrl(e.url)},t}(ur)),yo=function(a){function i(){var t,e;v(this,i);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).onTooltipOpen=function(t){t.tooltip===e.leafletElement&&e.onOpen()},e.onTooltipClose=function(t){t.tooltip===e.leafletElement&&e.onClose()},_(e,t)}return g(i,a),i.prototype.createLeafletElement=function(t){return new l.Tooltip(this.getOptions(t),t.leaflet.popupContainer)},i.prototype.componentDidMount=function(){var t=this.props.leaflet.popupContainer;null!=t&&(t.on({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),t.bindTooltip(this.leafletElement))},i.prototype.componentWillUnmount=function(){var t=this.props.leaflet.popupContainer;null!=t&&(t.off({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),null!=t._map&&t.unbindTooltip(this.leafletElement))},i}(ar);yo.defaultProps={pane:"tooltipPane"};var mo=w(yo),vo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.VideoOverlay(t.url,t.bounds,this.getOptions(t))},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),!0===this.props.play&&this.leafletElement.getElement().play()},e.prototype.updateLeafletElement=function(t,e){e.url!==t.url&&this.leafletElement.setUrl(e.url),e.bounds!==t.bounds&&this.leafletElement.setBounds(l.latLngBounds(e.bounds)),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.zIndex!==t.zIndex&&this.leafletElement.setZIndex(e.zIndex),!0!==e.play||t.play?e.play||!0!==t.play||this.leafletElement.getElement().pause():this.leafletElement.getElement().play()},e}(Xn));function bo(t,e,n,r){var o=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++o]);++o<a;)n=e(n,t[o],o,t);return n}var go=1,Eo=2;function _o(t){return t==t&&!J(t)}function Oo(e,n){return function(t){return null!=t&&(t[e]===n&&(void 0!==n||e in Object(t)))}}function Lo(e){var n=function(t){for(var e=dn(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,_o(o)]}return e}(e);return 1==n.length&&n[0][2]?Oo(n[0][0],n[0][1]):function(t){return t===e||function(t,e,n,r){var o=n.length,a=o,i=!r;if(null==t)return!a;for(t=Object(t);o--;){var l=n[o];if(i&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=n[o])[0],p=t[u],s=l[1];if(i&&l[2]){if(void 0===p&&!(u in t))return!1}else{var c=new ge;if(r)var f=r(p,s,u,t,e,c);if(!(void 0===f?Nn(s,p,go|Eo,r,c):f))return!1}}return!0}(t,e,n)}}var jo=1,wo=2;function Co(i,l){return q(i)&&_o(l)?Oo(Bt(i),l):function(t){var e,n,r,o,a=(n=i,void 0===(o=null==(e=t)?void 0:Zt(e,n))?r:o);return void 0===a&&a===l?re(t,i):Nn(l,a,jo|wo)}}function Po(t){return q(t)?(n=Bt(t),function(t){return null==t?void 0:t[n]}):(e=t,function(t){return Zt(t,e)});var e,n}function xo(t,r,o,a,e){return e(t,function(t,e,n){o=a?(a=!1,t):r(o,t,e,n)}),o}function zo(t,e,n){var r,o=x(t)?bo:xo,a=arguments.length<3;return o(t,"function"==typeof(r=e)?r:null==r?se:"object"==typeof r?x(r)?Co(r[0],r[1]):Lo(r):Po(r),n,a,Jn)}var So=w(function(i){function t(){return v(this,t),_(this,i.apply(this,arguments))}return g(t,i),t.prototype.createLeafletElement=function(t){var e=t.url,n=E(t,["url"]);return new l.TileLayer.WMS(e,this.getOptions(n))},t.prototype.updateLeafletElement=function(t,e){i.prototype.updateLeafletElement.call(this,t,e);var n=t.url,r=(t.opacity,t.zIndex,E(t,["url","opacity","zIndex"])),o=e.url,a=(e.opacity,e.zIndex,E(e,["url","opacity","zIndex"]));o!==n&&this.leafletElement.setUrl(o),Rn(a,r)||this.leafletElement.setParams(a)},t.prototype.getOptions=function(t){return zo(i.prototype.getOptions.call(this,t),function(t,e,n){return Kn.test(n)||(t[n]=e),t},{})},t}(ur)),Ao=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new l.Control.Zoom(t)},e}(C));t.LeafletConsumer=L,t.LeafletProvider=j,t.withLeaflet=w,t.AttributionControl=P,t.Circle=er,t.CircleMarker=nr,t.DivOverlay=ar,t.FeatureGroup=ir,t.GeoJSON=lr,t.GridLayer=ur,t.ImageOverlay=pr,t.LayerGroup=sr,t.LayersControl=dr,t.ControlledLayer=cr,t.Map=to,t.MapComponent=Qn,t.MapControl=C,t.MapLayer=Xn,t.Marker=eo,t.Pane=io,t.Path=tr,t.Polygon=lo,t.Polyline=uo,t.Popup=so,t.Rectangle=co,t.ScaleControl=fo,t.TileLayer=ho,t.Tooltip=mo,t.VideoOverlay=vo,t.WMSTileLayer=So,t.ZoomControl=Ao,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("leaflet"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","leaflet","react-dom"],e):e(t.ReactLeaflet={},t.React,t.L,t.ReactDOM)}(this,function(t,o,i,e){"use strict";var u="default"in o?o.default:o,p={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=d&&d(Object);var a=function t(e,n,r){if("string"!=typeof n){if(m){var o=d(n);o&&o!==m&&t(e,o,r)}var a=f(n);h&&(a=a.concat(h(n)));for(var l=0;l<a.length;++l){var i=a[l];if(!(p[i]||s[i]||r&&r[i])){var u=y(n,i);try{c(e,i,u)}catch(t){}}}return e}return e},v=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},l=function(){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=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)},E=function(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},_=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},n=o.createContext({}),O=n.Consumer,r=n.Provider,L=O,j=r,w=function(r){var t=function(e,n){return u.createElement(O,null,function(t){return u.createElement(r,b({},e,{leaflet:t,ref:n}))})},e=r.displayName||r.name;t.displayName="Leaflet("+e+")";var n=o.forwardRef(t);return a(n,r),n},C=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.leafletElement=e.createLeafletElement(e.props),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setPosition(e.position)},r.prototype.componentDidMount=function(){this.leafletElement.addTo(this.props.leaflet.map)},r.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},r.prototype.componentWillUnmount=function(){this.leafletElement.remove()},r.prototype.render=function(){return null},r}(o.Component),P=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Control.Attribution(t)},e}(C)),x=Array.isArray,z="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,A=z||S||Function("return this")(),U=A.Symbol,M=Object.prototype,D=M.hasOwnProperty,T=M.toString,k=U?U.toStringTag:void 0;var V=Object.prototype.toString;var I="[object Null]",B="[object Undefined]",Z=U?U.toStringTag:void 0;function N(t){return null==t?void 0===t?B:I:Z&&Z in Object(t)?function(t){var e=D.call(t,k),n=t[k];try{t[k]=void 0}catch(t){}var r=T.call(t);return e?t[k]=n:delete t[k],r}(t):(e=t,V.call(e));var e}function R(t){return null!=t&&"object"==typeof t}var W="[object Symbol]";function F(t){return"symbol"==typeof t||R(t)&&N(t)==W}var $=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,G=/^\w*$/;function q(t,e){if(x(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!F(t))||(G.test(t)||!$.test(t)||null!=e&&t in Object(e))}function J(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var H="[object AsyncFunction]",K="[object Function]",Q="[object GeneratorFunction]",X="[object Proxy]";function Y(t){if(!J(t))return!1;var e=N(t);return e==K||e==Q||e==H||e==X}var tt,et=A["__core-js_shared__"],nt=(tt=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"";var rt=Function.prototype.toString;function ot(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var at=/^\[object .+?Constructor\]$/,lt=Function.prototype,it=Object.prototype,ut=lt.toString,pt=it.hasOwnProperty,st=RegExp("^"+ut.call(pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ct(t){return!(!J(t)||(e=t,nt&&nt in e))&&(Y(t)?st:at).test(ot(t));var e}function ft(t,e){var n,r,o=(r=e,null==(n=t)?void 0:n[r]);return ct(o)?o:void 0}var ht=ft(Object,"create");var yt=Object.prototype.hasOwnProperty;var dt=Object.prototype.hasOwnProperty;function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function vt(t,e){return t===e||t!=t&&e!=e}function bt(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1}mt.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(ht){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return yt.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return ht?void 0!==e[t]:dt.call(e,t)},mt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ht&&void 0===e?"__lodash_hash_undefined__":e,this};var gt=Array.prototype.splice;function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=function(){this.__data__=[],this.size=0},Et.prototype.delete=function(t){var e=this.__data__,n=bt(e,t);return!(n<0||(n==e.length-1?e.pop():gt.call(e,n,1),--this.size,0))},Et.prototype.get=function(t){var e=this.__data__,n=bt(e,t);return n<0?void 0:e[n][1]},Et.prototype.has=function(t){return-1<bt(this.__data__,t)},Et.prototype.set=function(t,e){var n=this.__data__,r=bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var _t=ft(A,"Map");function Ot(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Lt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(_t||Et),string:new mt}},Lt.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},Lt.prototype.get=function(t){return Ot(this,t).get(t)},Lt.prototype.has=function(t){return Ot(this,t).has(t)},Lt.prototype.set=function(t,e){var n=Ot(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var jt="Expected a function";function wt(o,a){if("function"!=typeof o||null!=a&&"function"!=typeof a)throw new TypeError(jt);var l=function(){var t=arguments,e=a?a.apply(this,t):t[0],n=l.cache;if(n.has(e))return n.get(e);var r=o.apply(this,t);return l.cache=n.set(e,r)||n,r};return l.cache=new(wt.Cache||Lt),l}wt.Cache=Lt;var Ct,Pt,xt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/\\(\\)?/g,St=(Pt=(Ct=wt(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(xt,function(t,e,n,r){o.push(n?r.replace(zt,"$1"):e||t)}),o},function(t){return 500===Pt.size&&Pt.clear(),t})).cache,Ct);function At(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}var Ut=1/0,Mt=U?U.prototype:void 0,Dt=Mt?Mt.toString:void 0;function Tt(t){if("string"==typeof t)return t;if(x(t))return At(t,Tt)+"";if(F(t))return Dt?Dt.call(t):"";var e=t+"";return"0"==e&&1/t==-Ut?"-0":e}function kt(t){return null==t?"":Tt(t)}function Vt(t,e){return x(t)?t:q(t,e)?[t]:St(kt(t))}var It=1/0;function Bt(t){if("string"==typeof t||F(t))return t;var e=t+"";return"0"==e&&1/t==-It?"-0":e}function Zt(t,e){for(var n=0,r=(e=Vt(e,t)).length;null!=t&&n<r;)t=t[Bt(e[n++])];return n&&n==r?t:void 0}var Nt=function(){try{var t=ft(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Rt(t,e,n){"__proto__"==e&&Nt?Nt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Wt=Object.prototype.hasOwnProperty;function Ft(t,e,n){var r=t[e];Wt.call(t,e)&&vt(r,n)&&(void 0!==n||e in t)||Rt(t,e,n)}var $t=9007199254740991,Gt=/^(?:0|[1-9]\d*)$/;function qt(t,e){var n=typeof t;return!!(e=null==e?$t:e)&&("number"==n||"symbol"!=n&&Gt.test(t))&&-1<t&&t%1==0&&t<e}function Jt(t,e,n,r){if(!J(t))return t;for(var o=-1,a=(e=Vt(e,t)).length,l=a-1,i=t;null!=i&&++o<a;){var u=Bt(e[o]),p=n;if(o!=l){var s=i[u];void 0===(p=r?r(s,u,i):void 0)&&(p=J(s)?s:qt(e[o+1])?[]:{})}Ft(i,u,p),i=i[u]}return t}function Ht(t,e){return null!=t&&e in Object(t)}function Kt(t){return R(t)&&"[object Arguments]"==N(t)}var Qt=Object.prototype,Xt=Qt.hasOwnProperty,Yt=Qt.propertyIsEnumerable,te=Kt(function(){return arguments}())?Kt:function(t){return R(t)&&Xt.call(t,"callee")&&!Yt.call(t,"callee")},ee=9007199254740991;function ne(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=ee}function re(t,e){return null!=t&&function(t,e,n){for(var r=-1,o=(e=Vt(e,t)).length,a=!1;++r<o;){var l=Bt(e[r]);if(!(a=null!=t&&n(t,l)))break;t=t[l]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&ne(o)&&qt(l,o)&&(x(t)||te(t))}(t,e,Ht)}function oe(n,t){return function(t,e,n){for(var r=-1,o=e.length,a={};++r<o;){var l=e[r],i=Zt(t,l);n(i,l)&&Jt(a,Vt(l,t),i)}return a}(n,t,function(t,e){return re(n,e)})}function ae(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var le=U?U.isConcatSpreadable:void 0;function ie(t){return x(t)||te(t)||!!(le&&t&&t[le])}function ue(t){return(null==t?0:t.length)?function t(e,n,r,o,a){var l=-1,i=e.length;for(r||(r=ie),a||(a=[]);++l<i;){var u=e[l];0<n&&r(u)?1<n?t(u,n-1,r,o,a):ae(a,u):o||(a[a.length]=u)}return a}(t,1):[]}var pe=Math.max;function se(t){return t}var ce=Nt?function(t,e){return Nt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:se,fe=Date.now;var he,ye,de,me=(he=ce,de=ye=0,function(){var t=fe(),e=16-(t-de);if(de=t,0<e){if(800<=++ye)return arguments[0]}else ye=0;return he.apply(void 0,arguments)});function ve(t){return me((a=t,i=ue,l=pe((l=void 0)===l?a.length-1:l,0),function(){for(var t=arguments,e=-1,n=pe(t.length-l,0),r=Array(n);++e<n;)r[e]=t[l+e];e=-1;for(var o=Array(l+1);++e<l;)o[e]=t[e];return o[l]=i(r),function(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)}(a,this,o)}),t+"");var a,l,i}var be=ve(function(t,e){return null==t?{}:oe(t,e)});function ge(t){var e=this.__data__=new Et(t);this.size=e.size}ge.prototype.clear=function(){this.__data__=new Et,this.size=0},ge.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ge.prototype.get=function(t){return this.__data__.get(t)},ge.prototype.has=function(t){return this.__data__.has(t)},ge.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Et){var r=n.__data__;if(!_t||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Lt(r)}return n.set(t,e),this.size=n.size,this};function Ee(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Lt;++e<n;)this.add(t[e])}function _e(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}Ee.prototype.add=Ee.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ee.prototype.has=function(t){return this.__data__.has(t)};var Oe=1,Le=2;function je(t,e,r,o,a,l){var n=r&Oe,i=t.length,u=e.length;if(i!=u&&!(n&&i<u))return!1;var p=l.get(t);if(p&&l.get(e))return p==e;var s=-1,c=!0,f=r&Le?new Ee:void 0;for(l.set(t,e),l.set(e,t);++s<i;){var h=t[s],y=e[s];if(o)var d=n?o(y,h,s,e,t,l):o(h,y,s,t,e,l);if(void 0!==d){if(d)continue;c=!1;break}if(f){if(!_e(e,function(t,e){if(n=e,!f.has(n)&&(h===t||a(h,t,r,o,l)))return f.push(e);var n})){c=!1;break}}else if(h!==y&&!a(h,y,r,o,l)){c=!1;break}}return l.delete(t),l.delete(e),c}var we=A.Uint8Array;function Ce(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function Pe(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var xe=1,ze=2,Se="[object Boolean]",Ae="[object Date]",Ue="[object Error]",Me="[object Map]",De="[object Number]",Te="[object RegExp]",ke="[object Set]",Ve="[object String]",Ie="[object Symbol]",Be="[object ArrayBuffer]",Ze="[object DataView]",Ne=U?U.prototype:void 0,Re=Ne?Ne.valueOf:void 0;function We(t,e,n){var r=e(t);return x(t)?r:ae(r,n(t))}function Fe(){return[]}var $e=Object.prototype.propertyIsEnumerable,Ge=Object.getOwnPropertySymbols,qe=Ge?function(e){return null==e?[]:(e=Object(e),function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var l=t[n];e(l,n,t)&&(a[o++]=l)}return a}(Ge(e),function(t){return $e.call(e,t)}))}:Fe;var Je="object"==typeof t&&t&&!t.nodeType&&t,He=Je&&"object"==typeof module&&module&&!module.nodeType&&module,Ke=He&&He.exports===Je?A.Buffer:void 0,Qe=(Ke?Ke.isBuffer:void 0)||function(){return!1},Xe={};function Ye(e){return function(t){return e(t)}}Xe["[object Float32Array]"]=Xe["[object Float64Array]"]=Xe["[object Int8Array]"]=Xe["[object Int16Array]"]=Xe["[object Int32Array]"]=Xe["[object Uint8Array]"]=Xe["[object Uint8ClampedArray]"]=Xe["[object Uint16Array]"]=Xe["[object Uint32Array]"]=!0,Xe["[object Arguments]"]=Xe["[object Array]"]=Xe["[object ArrayBuffer]"]=Xe["[object Boolean]"]=Xe["[object DataView]"]=Xe["[object Date]"]=Xe["[object Error]"]=Xe["[object Function]"]=Xe["[object Map]"]=Xe["[object Number]"]=Xe["[object Object]"]=Xe["[object RegExp]"]=Xe["[object Set]"]=Xe["[object String]"]=Xe["[object WeakMap]"]=!1;var tn="object"==typeof t&&t&&!t.nodeType&&t,en=tn&&"object"==typeof module&&module&&!module.nodeType&&module,nn=en&&en.exports===tn&&z.process,rn=function(){try{var t=en&&en.require&&en.require("util").types;return t||nn&&nn.binding&&nn.binding("util")}catch(t){}}(),on=rn&&rn.isTypedArray,an=on?Ye(on):function(t){return R(t)&&ne(t.length)&&!!Xe[N(t)]},ln=Object.prototype.hasOwnProperty;function un(t,e){var n=x(t),r=!n&&te(t),o=!n&&!r&&Qe(t),a=!n&&!r&&!o&&an(t),l=n||r||o||a,i=l?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=i.length;for(var p in t)!e&&!ln.call(t,p)||l&&("length"==p||o&&("offset"==p||"parent"==p)||a&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||qt(p,u))||i.push(p);return i}var pn=Object.prototype;function sn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||pn)}function cn(e,n){return function(t){return e(n(t))}}var fn=cn(Object.keys,Object),hn=Object.prototype.hasOwnProperty;function yn(t){return null!=t&&ne(t.length)&&!Y(t)}function dn(t){return yn(t)?un(t):function(t){if(!sn(t))return fn(t);var e=[];for(var n in Object(t))hn.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}function mn(t){return We(t,dn,qe)}var vn=1,bn=Object.prototype.hasOwnProperty;var gn=ft(A,"DataView"),En=ft(A,"Promise"),_n=ft(A,"Set"),On=ft(A,"WeakMap"),Ln="[object Map]",jn="[object Promise]",wn="[object Set]",Cn="[object WeakMap]",Pn="[object DataView]",xn=ot(gn),zn=ot(_t),Sn=ot(En),An=ot(_n),Un=ot(On),Mn=N;(gn&&Mn(new gn(new ArrayBuffer(1)))!=Pn||_t&&Mn(new _t)!=Ln||En&&Mn(En.resolve())!=jn||_n&&Mn(new _n)!=wn||On&&Mn(new On)!=Cn)&&(Mn=function(t){var e=N(t),n="[object Object]"==e?t.constructor:void 0,r=n?ot(n):"";if(r)switch(r){case xn:return Pn;case zn:return Ln;case Sn:return jn;case An:return wn;case Un:return Cn}return e});var Dn=Mn,Tn=1,kn="[object Arguments]",Vn="[object Array]",In="[object Object]",Bn=Object.prototype.hasOwnProperty;function Zn(t,e,n,r,o,a){var l=x(t),i=x(e),u=l?Vn:Dn(t),p=i?Vn:Dn(e),s=(u=u==kn?In:u)==In,c=(p=p==kn?In:p)==In,f=u==p;if(f&&Qe(t)){if(!Qe(e))return!1;s=!(l=!0)}if(f&&!s)return a||(a=new ge),l||an(t)?je(t,e,n,r,o,a):function(t,e,n,r,o,a,l){switch(n){case Ze:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Be:return!(t.byteLength!=e.byteLength||!a(new we(t),new we(e)));case Se:case Ae:case De:return vt(+t,+e);case Ue:return t.name==e.name&&t.message==e.message;case Te:case Ve:return t==e+"";case Me:var i=Ce;case ke:var u=r&xe;if(i||(i=Pe),t.size!=e.size&&!u)return!1;var p=l.get(t);if(p)return p==e;r|=ze,l.set(t,e);var s=je(i(t),i(e),r,o,a,l);return l.delete(t),s;case Ie:if(Re)return Re.call(t)==Re.call(e)}return!1}(t,e,u,n,r,o,a);if(!(n&Tn)){var h=s&&Bn.call(t,"__wrapped__"),y=c&&Bn.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,m=y?e.value():e;return a||(a=new ge),o(d,m,n,r,a)}}return!!f&&(a||(a=new ge),function(t,e,n,r,o,a){var l=n&vn,i=mn(t),u=i.length;if(u!=mn(e).length&&!l)return!1;for(var p=u;p--;){var s=i[p];if(!(l?s in e:bn.call(e,s)))return!1}var c=a.get(t);if(c&&a.get(e))return c==e;var f=!0;a.set(t,e),a.set(e,t);for(var h=l;++p<u;){var y=t[s=i[p]],d=e[s];if(r)var m=l?r(d,y,s,e,t,a):r(y,d,s,t,e,a);if(!(void 0===m?y===d||o(y,d,n,r,a):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 a.delete(t),a.delete(e),f}(t,e,n,r,o,a))}function Nn(t,e,n,r,o){return t===e||(null==t||null==e||!R(t)&&!R(e)?t!=t&&e!=e:Zn(t,e,n,r,Nn,o))}function Rn(t,e){return Nn(t,e)}function Wn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}var Fn,$n=function(t,e,n){for(var r=-1,o=Object(t),a=n(t),l=a.length;l--;){var i=a[Fn?l:++r];if(!1===e(o[i],i,o))break}return t};var Gn,qn,Jn=(Gn=function(t,e){return t&&$n(t,e,dn)},function(t,e){if(null==t)return t;if(!yn(t))return Gn(t,e);for(var n=t.length,r=qn?n:-1,o=Object(t);(qn?r--:++r<n)&&!1!==e(o[r],r,o););return t});function Hn(t,e){var n;return(x(t)?Wn:Jn)(t,"function"==typeof(n=e)?n:se)}var Kn=/^on(.+)$/i,Qn=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e._leafletEvents=e.extractLeafletEvents(t),e}return g(r,n),r.prototype.componentDidMount=function(){this.bindLeafletEvents(this._leafletEvents)},r.prototype.componentDidUpdate=function(t){this._leafletEvents=this.bindLeafletEvents(this.extractLeafletEvents(this.props),this._leafletEvents)},r.prototype.componentWillUnmount=function(){var n=this.leafletElement;n&&Hn(this._leafletEvents,function(t,e){n.off(e,t)})},r.prototype.extractLeafletEvents=function(n){return Object.keys(n).reduce(function(t,e){Kn.test(e)&&(null!=n[e]&&(t[e.replace(Kn,function(t,e){return e.toLowerCase()})]=n[e]));return t},{})},r.prototype.bindLeafletEvents=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=this.leafletElement;if(null==o||null==o.on)return{};var a=b({},r);return Hn(r,function(t,e){null!=n[e]&&t===n[e]||(delete a[e],o.off(e,t))}),Hn(n,function(t,e){null!=r[e]&&t===r[e]||(a[e]=t,o.on(e,t))}),a},r.prototype.fireLeafletEvent=function(t,e){var n=this.leafletElement;n&&n.fire(t,e)},r.prototype.getOptions=function(t){return null!=t.pane?t:null!=t.leaflet&&null!=t.leaflet.pane?b({},t,{pane:t.leaflet.pane}):t},r}(o.Component),Xn=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.leafletElement=e.createLeafletElement(t),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){},r.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this),this.layerContainer.addLayer(this.leafletElement)},r.prototype.componentDidUpdate=function(t){n.prototype.componentDidUpdate.call(this,t),this.updateLeafletElement(t,this.props)},r.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this),this.layerContainer.removeLayer(this.leafletElement)},r.prototype.render=function(){var t=this.props.children;return null==t?null:null==this.contextValue?u.createElement(o.Fragment,null,t):u.createElement(j,{value:this.contextValue},t)},l(r,[{key:"layerContainer",get:function(){return this.props.leaflet.layerContainer||this.props.leaflet.map}}]),r}(Qn),Yn=["stroke","color","weight","opacity","lineCap","lineJoin","dashArray","dashOffset","fill","fillColor","fillOpacity","fillRule","bubblingMouseEvents","renderer","className","interactive","pane","attribution"],tr=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return null==e.contextValue&&(e.contextValue=b({},t.leaflet,{popupContainer:e.leafletElement})),e}return g(r,n),r.prototype.componentDidUpdate=function(t){n.prototype.componentDidUpdate.call(this,t),this.setStyleIfChanged(t,this.props)},r.prototype.getPathOptions=function(t){return be(t,Yn)},r.prototype.setStyle=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.leafletElement.setStyle(t)},r.prototype.setStyleIfChanged=function(t,e){var n=this.getPathOptions(e);Rn(n,this.getPathOptions(t))||this.setStyle(n)},r}(Xn),er=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=t.center,n=t.radius,r=E(t,["center","radius"]);return new i.Circle(e,n,this.getOptions(r))},e.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},e}(tr)),nr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new i.CircleMarker(t.center,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.prototype.updateLeafletElement=function(t,e){e.center!==t.center&&this.leafletElement.setLatLng(e.center),e.radius!==t.radius&&this.leafletElement.setRadius(e.radius)},e}(tr)),rr=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").split(" ").filter(Boolean)},or=function(e,t,n){null!=e&&n!==t&&(null!=t&&0<t.length&&rr(t).forEach(function(t){i.DomUtil.removeClass(e,t)}),null!=n&&0<n.length&&rr(n).forEach(function(t){i.DomUtil.addClass(e,t)}))},ar=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.onClose=function(){e.props.onClose&&e.props.onClose()},e.onOpen=function(){e.forceUpdate(),e.props.onOpen&&e.props.onOpen()},e.leafletElement=e.createLeafletElement(t),e}return g(r,n),r.prototype.createLeafletElement=function(t){throw new Error("createLeafletElement() must be implemented")},r.prototype.updateLeafletElement=function(t,e){},r.prototype.componentDidUpdate=function(t){or(this.leafletElement._container,t.className,this.props.className),this.updateLeafletElement(t,this.props),this.leafletElement.isOpen()&&(this.leafletElement.update(),this.onRender())},r.prototype.onRender=function(){},r.prototype.render=function(){return this.leafletElement._contentNode?e.createPortal(this.props.children,this.leafletElement._contentNode):null},r}(Qn),lr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new i.FeatureGroup(this.getOptions(t));return this.contextValue=b({},t.leaflet,{layerContainer:e,popupContainer:e}),e},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setStyle(this.props)},e}(tr)),ir=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.GeoJSON(t.data,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){Y(e.style)?this.setStyle(e.style):this.setStyleIfChanged(t,e)},e}(tr)),ur=function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.GridLayer(this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){var n=e.opacity,r=e.zIndex;n!==t.opacity&&this.leafletElement.setOpacity(n),r!==t.zIndex&&this.leafletElement.setZIndex(r)},e.prototype.render=function(){return null},e}(Xn),pr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new i.ImageOverlay(t.url,t.bounds,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.prototype.updateLeafletElement=function(t,e){e.url!==t.url&&this.leafletElement.setUrl(e.url),e.bounds!==t.bounds&&this.leafletElement.setBounds(i.latLngBounds(e.bounds)),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.zIndex!==t.zIndex&&this.leafletElement.setZIndex(e.zIndex)},e}(Xn)),sr=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new i.LayerGroup(this.getOptions(t));return this.contextValue=b({},t.leaflet,{layerContainer:e}),e},e}(Xn)),cr=function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.componentDidUpdate=function(t){var e=t.checked;null!=this.props.leaflet.map&&(!0!==this.props.checked||null!=e&&!1!==e?!0!==e||null!=this.props.checked&&!1!==this.props.checked||this.props.leaflet.map.removeLayer(this.layer):this.props.leaflet.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(){var t=this.props.children;return t?u.createElement(j,{value:this.contextValue},t):null},e}(o.Component),fr=function(e){function n(t){v(this,n);var o=_(this,e.call(this,t));return o.addLayer=function(t){o.layer=t;var e=o.props,n=e.addBaseLayer,r=e.checked;n(t,e.name,r)},o.contextValue=b({},t.leaflet,{layerContainer:{addLayer:o.addLayer.bind(o),removeLayer:o.removeLayer.bind(o)}}),o}return g(n,e),n}(cr),hr=function(e){function n(t){v(this,n);var o=_(this,e.call(this,t));return o.addLayer=function(t){o.layer=t;var e=o.props,n=e.addOverlay,r=e.checked;n(t,e.name,r)},o.contextValue=b({},t.leaflet,{layerContainer:{addLayer:o.addLayer.bind(o),removeLayer:o.removeLayer.bind(o)}}),o}return g(n,e),n}(cr),yr=function(n){function r(t){v(this,r);var e=_(this,n.call(this,t));return e.controlProps={addBaseLayer:e.addBaseLayer.bind(e),addOverlay:e.addOverlay.bind(e),leaflet:t.leaflet,removeLayer:e.removeLayer.bind(e),removeLayerControl:e.removeLayerControl.bind(e)},e}return g(r,n),r.prototype.createLeafletElement=function(t){t.children;var e=E(t,["children"]);return new i.Control.Layers(void 0,void 0,e)},r.prototype.updateLeafletElement=function(t,e){n.prototype.updateLeafletElement.call(this,t,e),e.collapsed!==t.collapsed&&(!0===e.collapsed?this.leafletElement.collapse():this.leafletElement.expand())},r.prototype.componentWillUnmount=function(){var t=this;setTimeout(function(){n.prototype.componentWillUnmount.call(t)},0)},r.prototype.addBaseLayer=function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&null!=this.props.leaflet.map&&this.props.leaflet.map.addLayer(t),this.leafletElement.addBaseLayer(t,e)},r.prototype.addOverlay=function(t,e){2<arguments.length&&void 0!==arguments[2]&&arguments[2]&&null!=this.props.leaflet.map&&this.props.leaflet.map.addLayer(t),this.leafletElement.addOverlay(t,e)},r.prototype.removeLayer=function(t){null!=this.props.leaflet.map&&this.props.leaflet.map.removeLayer(t)},r.prototype.removeLayerControl=function(t){this.leafletElement.removeLayer(t)},r.prototype.render=function(){var e=this,t=o.Children.map(this.props.children,function(t){return t?o.cloneElement(t,e.controlProps):null});return u.createElement(o.Fragment,null,t)},r}(C);yr.BaseLayer=fr,yr.Overlay=hr;var dr=w(yr);function mr(t,e,n,r){var o=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var i=e[a],u=r?r(n[i],t[i],i,n,t):void 0;void 0===u&&(u=t[i]),o?Rt(n,i,u):Ft(n,i,u)}return n}var vr=Object.prototype.hasOwnProperty;function br(t){if(!J(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=sn(t),n=[];for(var r in t)("constructor"!=r||!e&&vr.call(t,r))&&n.push(r);return n}function gr(t){return yn(t)?un(t,!0):br(t)}var Er="object"==typeof t&&t&&!t.nodeType&&t,_r=Er&&"object"==typeof module&&module&&!module.nodeType&&module,Or=_r&&_r.exports===Er?A.Buffer:void 0,Lr=Or?Or.allocUnsafe:void 0;var jr=cn(Object.getPrototypeOf,Object),wr=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ae(e,qe(t)),t=jr(t);return e}:Fe;function Cr(t){return We(t,gr,wr)}var Pr=Object.prototype.hasOwnProperty;var xr=U?U.prototype:void 0;xr&&xr.valueOf;var zr=Object.create,Sr=function(){function n(){}return function(t){if(!J(t))return{};if(zr)return zr(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();var Ar=rn&&rn.isMap,Ur=Ar?Ye(Ar):function(t){return R(t)&&"[object Map]"==Dn(t)};var Mr=rn&&rn.isSet,Dr=Mr?Ye(Mr):function(t){return R(t)&&"[object Set]"==Dn(t)},Tr=1,kr=2,Vr=4,Ir="[object Arguments]",Br="[object Function]",Zr="[object GeneratorFunction]",Nr="[object Object]";function Rr(n,r,o,t,e,a){var l,i=r&Tr,u=r&kr,p=r&Vr;if(o&&(l=e?o(n,t,e,a):o(n)),void 0!==l)return l;if(!J(n))return n;var s,c,f,h,y,d,m,v,b,g,E,_,O=x(n);if(O){if(E=(g=n).length,_=new g.constructor(E),E&&"string"==typeof g[0]&&Pr.call(g,"index")&&(_.index=g.index,_.input=g.input),l=_,!i)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(n,l)}else{var L=Dn(n),j=L==Br||L==Zr;if(Qe(n))return function(t,e){if(e)return t.slice();var n=t.length,r=Lr?Lr(n):new t.constructor(n);return t.copy(r),r}(n,i);if(L!=Nr&&L!=Ir&&(!j||e))return e?n:{};if(l=u||j?{}:"function"!=typeof(b=n).constructor||sn(b)?{}:Sr(jr(b)),!i)return u?(v=y=n,d=(m=l)&&mr(v,gr(v),m),mr(y,wr(y),d)):(h=s=n,c=(f=l)&&mr(h,dn(h),f),mr(s,qe(s),c))}a||(a=new ge);var w=a.get(n);if(w)return w;if(a.set(n,l),Dr(n))return n.forEach(function(t){l.add(Rr(t,r,o,t,n,a))}),l;if(Ur(n))return n.forEach(function(t,e){l.set(e,Rr(t,r,o,e,n,a))}),l;var C=p?u?Cr:mn:u?keysIn:dn,P=O?void 0:C(n);return Wn(P||n,function(t,e){P&&(t=n[e=t]),Ft(l,e,Rr(t,r,o,e,n,a))}),l}function Wr(t,e){return e.length<2?t:Zt(t,function(t,e,n){var r=-1,o=t.length;e<0&&(e=o<-e?0:o+e),(n=o<n?o:n)<0&&(n+=o),o=n<e?0:n-e>>>0,e>>>=0;for(var a=Array(o);++r<o;)a[r]=t[r+e];return a}(e,0,-1))}var Fr="[object Object]",$r=Function.prototype,Gr=Object.prototype,qr=$r.toString,Jr=Gr.hasOwnProperty,Hr=qr.call(Object);function Kr(t){return function(t){if(!R(t)||N(t)!=Fr)return!1;var e=jr(t);if(null===e)return!0;var n=Jr.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&qr.call(n)==Hr}(t)?void 0:t}var Qr=ve(function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,function(t){return t=Vt(t,e),r||(r=1<t.length),t}),mr(e,Cr(e),n),r&&(n=Rr(n,7,Kr));for(var o,a,l,i,u=t.length;u--;)o=n,a=t[u],i=l=void 0,null==(o=Wr(o,a=Vt(a,o)))||delete o[Bt((l=a,i=null==l?0:l.length,i?l[i-1]:void 0))];return n}),Xr=["children","className","id","style","useFlyTo","whenReady"],Yr=function(t){return Array.isArray(t)?[t[0],t[1]]:[t.lat,t.lon?t.lon:t.lng]},to=function(a){function l(){var t,e;v(this,l);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).viewport={center:void 0,zoom:void 0},e._updating=!1,e.onViewportChange=function(){var t=e.leafletElement.getCenter();e.viewport={center:t?[t.lat,t.lng]:void 0,zoom:e.leafletElement.getZoom()},e.props.onViewportChange&&!e._updating&&e.props.onViewportChange(e.viewport)},e.onViewportChanged=function(){e.props.onViewportChanged&&!e._updating&&e.props.onViewportChanged(e.viewport)},e.bindContainer=function(t){e.container=t},_(e,t)}return g(l,a),l.prototype.createLeafletElement=function(t){var e=t.viewport,n=E(t,["viewport"]);return e&&(e.center&&(n.center=e.center),"number"==typeof e.zoom&&(n.zoom=e.zoom)),new i.Map(this.container,n)},l.prototype.updateLeafletElement=function(t,e){this._updating=!0;var n=e.animate,r=e.bounds,o=e.boundsOptions,a=e.boxZoom,l=e.center,i=e.className,u=e.doubleClickZoom,p=e.dragging,s=e.keyboard,c=e.maxBounds,f=e.scrollWheelZoom,h=e.tap,y=e.touchZoom,d=e.useFlyTo,m=e.viewport,v=e.zoom;if(or(this.container,t.className,i),m&&m!==t.viewport){var b=m.center?m.center:l,g=null==m.zoom?v:m.zoom;!0===d?this.leafletElement.flyTo(b,g,{animate:n}):this.leafletElement.setView(b,g,{animate:n})}else l&&this.shouldUpdateCenter(l,t.center)?!0===d?this.leafletElement.flyTo(l,v,{animate:n}):this.leafletElement.setView(l,v,{animate:n}):"number"==typeof v&&v!==t.zoom&&(null==t.zoom?this.leafletElement.setView(l,v):this.leafletElement.setZoom(v));c&&this.shouldUpdateBounds(c,t.maxBounds)&&this.leafletElement.setMaxBounds(c),r&&(this.shouldUpdateBounds(r,t.bounds)||o!==t.boundsOptions)&&(!0===d?this.leafletElement.flyToBounds(r,o):this.leafletElement.fitBounds(r,o)),a!==t.boxZoom&&(!0===a?this.leafletElement.boxZoom.enable():this.leafletElement.boxZoom.disable()),u!==t.doubleClickZoom&&(!0===u?this.leafletElement.doubleClickZoom.enable():this.leafletElement.doubleClickZoom.disable()),p!==t.dragging&&(!0===p?this.leafletElement.dragging.enable():this.leafletElement.dragging.disable()),s!==t.keyboard&&(!0===s?this.leafletElement.keyboard.enable():this.leafletElement.keyboard.disable()),f!==t.scrollWheelZoom&&(!0===f||"string"==typeof f?(this.leafletElement.options.scrollWheelZoom=f,this.leafletElement.scrollWheelZoom.enable()):this.leafletElement.scrollWheelZoom.disable()),h!==t.tap&&(!0===h?this.leafletElement.tap.enable():this.leafletElement.tap.disable()),y!==t.touchZoom&&(!0===y||"string"==typeof y?(this.leafletElement.options.touchZoom=y,this.leafletElement.touchZoom.enable()):this.leafletElement.touchZoom.disable()),this._updating=!1},l.prototype.componentDidMount=function(){var t=Qr(this.props,Xr);this.leafletElement=this.createLeafletElement(t),this.leafletElement.on("move",this.onViewportChange),this.leafletElement.on("moveend",this.onViewportChanged),null!=t.bounds&&this.leafletElement.fitBounds(t.bounds,t.boundsOptions),this.props.whenReady&&this.leafletElement.whenReady(this.props.whenReady),this.contextValue={layerContainer:this.leafletElement,map:this.leafletElement},a.prototype.componentDidMount.call(this),this.forceUpdate()},l.prototype.componentDidUpdate=function(t){this.updateLeafletElement(t,this.props)},l.prototype.componentWillUnmount=function(){a.prototype.componentWillUnmount.call(this),this.leafletElement.off("move",this.onViewportChange),this.leafletElement.off("moveend",this.onViewportChanged),!0===this.props.preferCanvas?(this.leafletElement._initEvents(!0),this.leafletElement._stop()):this.leafletElement.remove()},l.prototype.shouldUpdateCenter=function(t,e){return!e||(t=Yr(t),e=Yr(e),t[0]!==e[0]||t[1]!==e[1])},l.prototype.shouldUpdateBounds=function(t,e){return!e||!i.latLngBounds(t).equals(i.latLngBounds(e))},l.prototype.render=function(){return u.createElement("div",{className:this.props.className,id:this.props.id,ref:this.bindContainer,style:this.props.style},this.contextValue?u.createElement(j,{value:this.contextValue},this.props.children):null)},l}(Qn),eo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){var e=new i.Marker(t.position,this.getOptions(t));return this.contextValue=b({},t.leaflet,{popupContainer:e}),e},e.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())},e.prototype.render=function(){var t=this.props.children;return null==t||null==this.contextValue?null:u.createElement(j,{value:this.contextValue},t)},e}(Xn)),no=0;var ro=["tile","shadow","overlay","map","marker","tooltip","popup"],oo=/-*pane/gi,ao={position:"absolute",top:0,right:0,bottom:0,left:0},lo=w(function(a){function l(){var t,o;v(this,l);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o=_(this,a.call.apply(a,[this].concat(n)))).state={name:void 0,context:void 0},o.setStyle=function(){var t=0<arguments.length&&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&&Hn(e,function(t,e){r.style[e]=t}))},_(o,t)}return g(l,a),l.prototype.componentDidMount=function(){this.createPane(this.props)},l.prototype.componentDidUpdate=function(t){if(this.state.name)if(this.props.name!==t.name)this.removePane(),this.createPane(this.props);else{if(t.className&&this.props.className!==t.className){var e=this.getPane();null!=e&&null!=t.className&&e.classList.remove(t.className)}this.setStyle(this.props)}},l.prototype.componentWillUnmount=function(){this.removePane()},l.prototype.createPane=function(t){var e,n,r,o=t.leaflet.map,a=t.name||"pane-"+(n=++no,kt(e)+n);null!=o&&null!=o.createPane&&(null==((r=a,-1!==ro.indexOf(r.replace(oo,"")))||this.getPane(a))&&o.createPane(a,this.getParentPane()),this.setState({name:a,context:b({},t.leaflet,{pane:a})},this.setStyle))},l.prototype.removePane=function(){var t=this.state.name;if(null!=t){var e=this.getPane(t);null!=e&&e.remove&&e.remove();var n=this.props.leaflet.map;null!=n&&null!=n._panes&&(n._panes=Qr(n._panes,t),n._paneRenderers=Qr(n._paneRenderers,t))}},l.prototype.getParentPane=function(){return this.getPane(this.props.pane||this.props.leaflet.pane)},l.prototype.getPane=function(t){if(null!=t&&null!=this.props.leaflet.map)return this.props.leaflet.map.getPane(t)},l.prototype.render=function(){var t=this.state.context;return t?u.createElement(j,{value:t},u.createElement("div",{style:ao},this.props.children)):null},l}(o.Component)),io=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Polygon(t.positions,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},e}(tr)),uo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Polyline(t.positions,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.positions!==t.positions&&this.leafletElement.setLatLngs(e.positions),this.setStyleIfChanged(t,e)},e}(tr)),po=function(a){function l(){var t,e;v(this,l);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).onPopupOpen=function(t){t.popup===e.leafletElement&&e.onOpen()},e.onPopupClose=function(t){t.popup===e.leafletElement&&e.onClose()},e.onRender=function(){!1!==e.props.autoPan&&e.leafletElement.isOpen()&&(e.leafletElement._map&&e.leafletElement._map._panAnim&&(e.leafletElement._map._panAnim=void 0),e.leafletElement._adjustPan())},_(e,t)}return g(l,a),l.prototype.getOptions=function(t){return b({},a.prototype.getOptions.call(this,t),{autoPan:!1})},l.prototype.createLeafletElement=function(t){var e=this.getOptions(t);return e.autoPan=!1!==t.autoPan,new i.Popup(e,t.leaflet.popupContainer)},l.prototype.updateLeafletElement=function(t,e){e.position!==t.position&&this.leafletElement.setLatLng(e.position)},l.prototype.componentDidMount=function(){var t=this.props.position,e=this.props.leaflet,n=e.map,r=e.popupContainer,o=this.leafletElement;null!=n&&n.on({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),r?r.bindPopup(o):(t&&o.setLatLng(t),o.openOn(n))},l.prototype.componentWillUnmount=function(){var t=this.props.leaflet.map;null!=t&&(t.off({popupopen:this.onPopupOpen,popupclose:this.onPopupClose}),t.removeLayer(this.leafletElement)),a.prototype.componentWillUnmount.call(this)},l}(ar);po.defaultProps={pane:"popupPane"};var so=w(po),co=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Rectangle(t.bounds,this.getOptions(t))},e.prototype.updateLeafletElement=function(t,e){e.bounds!==t.bounds&&this.leafletElement.setBounds(e.bounds),this.setStyleIfChanged(t,e)},e}(tr)),fo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Control.Scale(t)},e}(C)),ho=w(function(n){function t(){return v(this,t),_(this,n.apply(this,arguments))}return g(t,n),t.prototype.createLeafletElement=function(t){return new i.TileLayer(t.url,this.getOptions(t))},t.prototype.updateLeafletElement=function(t,e){n.prototype.updateLeafletElement.call(this,t,e),e.url!==t.url&&this.leafletElement.setUrl(e.url)},t}(ur)),yo=function(a){function l(){var t,e;v(this,l);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=_(this,a.call.apply(a,[this].concat(r)))).onTooltipOpen=function(t){t.tooltip===e.leafletElement&&e.onOpen()},e.onTooltipClose=function(t){t.tooltip===e.leafletElement&&e.onClose()},_(e,t)}return g(l,a),l.prototype.createLeafletElement=function(t){return new i.Tooltip(this.getOptions(t),t.leaflet.popupContainer)},l.prototype.componentDidMount=function(){var t=this.props.leaflet.popupContainer;null!=t&&(t.on({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),t.bindTooltip(this.leafletElement))},l.prototype.componentWillUnmount=function(){var t=this.props.leaflet.popupContainer;null!=t&&(t.off({tooltipopen:this.onTooltipOpen,tooltipclose:this.onTooltipClose}),null!=t._map&&t.unbindTooltip(this.leafletElement))},l}(ar);yo.defaultProps={pane:"tooltipPane"};var mo=w(yo),vo=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.VideoOverlay(t.url,t.bounds,this.getOptions(t))},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),!0===this.props.play&&this.leafletElement.getElement().play()},e.prototype.updateLeafletElement=function(t,e){e.url!==t.url&&this.leafletElement.setUrl(e.url),e.bounds!==t.bounds&&this.leafletElement.setBounds(i.latLngBounds(e.bounds)),e.opacity!==t.opacity&&this.leafletElement.setOpacity(e.opacity),e.zIndex!==t.zIndex&&this.leafletElement.setZIndex(e.zIndex),!0!==e.play||t.play?e.play||!0!==t.play||this.leafletElement.getElement().pause():this.leafletElement.getElement().play()},e}(Xn));function bo(t,e,n,r){var o=-1,a=null==t?0:t.length;for(r&&a&&(n=t[++o]);++o<a;)n=e(n,t[o],o,t);return n}var go=1,Eo=2;function _o(t){return t==t&&!J(t)}function Oo(e,n){return function(t){return null!=t&&(t[e]===n&&(void 0!==n||e in Object(t)))}}function Lo(e){var n=function(t){for(var e=dn(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,_o(o)]}return e}(e);return 1==n.length&&n[0][2]?Oo(n[0][0],n[0][1]):function(t){return t===e||function(t,e,n,r){var o=n.length,a=o,l=!r;if(null==t)return!a;for(t=Object(t);o--;){var i=n[o];if(l&&i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++o<a;){var u=(i=n[o])[0],p=t[u],s=i[1];if(l&&i[2]){if(void 0===p&&!(u in t))return!1}else{var c=new ge;if(r)var f=r(p,s,u,t,e,c);if(!(void 0===f?Nn(s,p,go|Eo,r,c):f))return!1}}return!0}(t,e,n)}}var jo=1,wo=2;function Co(l,i){return q(l)&&_o(i)?Oo(Bt(l),i):function(t){var e,n,r,o,a=(n=l,void 0===(o=null==(e=t)?void 0:Zt(e,n))?r:o);return void 0===a&&a===i?re(t,l):Nn(i,a,jo|wo)}}function Po(t){return q(t)?(n=Bt(t),function(t){return null==t?void 0:t[n]}):(e=t,function(t){return Zt(t,e)});var e,n}function xo(t,r,o,a,e){return e(t,function(t,e,n){o=a?(a=!1,t):r(o,t,e,n)}),o}function zo(t,e,n){var r,o=x(t)?bo:xo,a=arguments.length<3;return o(t,"function"==typeof(r=e)?r:null==r?se:"object"==typeof r?x(r)?Co(r[0],r[1]):Lo(r):Po(r),n,a,Jn)}var So=w(function(l){function t(){return v(this,t),_(this,l.apply(this,arguments))}return g(t,l),t.prototype.createLeafletElement=function(t){var e=t.url,n=E(t,["url"]);return new i.TileLayer.WMS(e,this.getOptions(n))},t.prototype.updateLeafletElement=function(t,e){l.prototype.updateLeafletElement.call(this,t,e);var n=t.url,r=(t.opacity,t.zIndex,E(t,["url","opacity","zIndex"])),o=e.url,a=(e.opacity,e.zIndex,E(e,["url","opacity","zIndex"]));o!==n&&this.leafletElement.setUrl(o),Rn(a,r)||this.leafletElement.setParams(a)},t.prototype.getOptions=function(t){return zo(l.prototype.getOptions.call(this,t),function(t,e,n){return Kn.test(n)||(t[n]=e),t},{})},t}(ur)),Ao=w(function(t){function e(){return v(this,e),_(this,t.apply(this,arguments))}return g(e,t),e.prototype.createLeafletElement=function(t){return new i.Control.Zoom(t)},e}(C));t.LeafletConsumer=L,t.LeafletProvider=j,t.withLeaflet=w,t.AttributionControl=P,t.Circle=er,t.CircleMarker=nr,t.DivOverlay=ar,t.FeatureGroup=lr,t.GeoJSON=ir,t.GridLayer=ur,t.ImageOverlay=pr,t.LayerGroup=sr,t.LayersControl=dr,t.ControlledLayer=cr,t.Map=to,t.MapComponent=Qn,t.MapControl=C,t.MapLayer=Xn,t.Marker=eo,t.Pane=lo,t.Path=tr,t.Polygon=io,t.Polyline=uo,t.Popup=so,t.Rectangle=co,t.ScaleControl=fo,t.TileLayer=ho,t.Tooltip=mo,t.VideoOverlay=vo,t.WMSTileLayer=So,t.ZoomControl=Ao,Object.defineProperty(t,"__esModule",{value:!0})});

@@ -154,2 +154,13 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

LayersControl.prototype.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {
_MapControl.prototype.updateLeafletElement.call(this, fromProps, toProps);
if (toProps.collapsed !== fromProps.collapsed) {
if (toProps.collapsed === true) {
this.leafletElement.collapse();
} else {
this.leafletElement.expand();
}
}
};
LayersControl.prototype.componentWillUnmount = function componentWillUnmount() {

@@ -156,0 +167,0 @@ var _this5 = this;

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

LayersControl.prototype.updateLeafletElement = function updateLeafletElement(fromProps, toProps) {
_MapControl.prototype.updateLeafletElement.call(this, fromProps, toProps);
if (toProps.collapsed !== fromProps.collapsed) {
if (toProps.collapsed === true) {
this.leafletElement.collapse();
} else {
this.leafletElement.expand();
}
}
};
LayersControl.prototype.componentWillUnmount = function componentWillUnmount() {

@@ -168,0 +179,0 @@ var _this5 = this;

{
"name": "react-leaflet",
"version": "2.0.0-rc.2",
"version": "2.0.0-rc.3",
"description": "React components for Leaflet maps",

@@ -85,3 +85,3 @@ "main": "lib/index.js",

"flow-bin": "^0.75.0",
"flow-copy-source": "^2.0.0",
"flow-copy-source": "^2.0.1",
"flow-typed": "^2.4.0",

@@ -96,3 +96,3 @@ "jest": "^23.2.0",

"rollup": "^0.62.0",
"rollup-plugin-babel": "^3.0.5",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-commonjs": "^9.1.3",

@@ -102,3 +102,3 @@ "rollup-plugin-node-resolve": "^3.3.0",

"rollup-plugin-uglify": "^4.0.0",
"webpack": "^4.13.0",
"webpack": "^4.14.0",
"webpack-serve": "^1.0.4"

@@ -105,0 +105,0 @@ },

@@ -114,2 +114,3 @@ // @flow

children: ChildrenArray<*>,
collapsed?: boolean,
} & MapControlProps

@@ -144,2 +145,16 @@

updateLeafletElement(
fromProps: LayersControlProps,
toProps: LayersControlProps,
) {
super.updateLeafletElement(fromProps, toProps)
if (toProps.collapsed !== fromProps.collapsed) {
if (toProps.collapsed === true) {
this.leafletElement.collapse()
} else {
this.leafletElement.expand()
}
}
}
componentWillUnmount() {

@@ -146,0 +161,0 @@ setTimeout(() => {

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

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