UNPKG

@sakitam-gis/react-map

Version:
13 lines 454 kB
/*! * author: sakitam-fdd <smilefdd@gmail.com> * @sakitam-gis/react-map v0.0.2 * build-time: 2018-7-22 20:12 * LICENSE: BSD-3-Clause * (c) 2018-2018 https://sakitam-gis.github.io/react-map/ */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactMap=e(require("react")):t.ReactMap=e(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=24)}([function(t,e,i){var r=i(14),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o},function(t,e,i){var r=i(38),n=i(43);t.exports=function(t,e){var i=n(t,e);return r(i)?i:void 0}},function(t,e,i){var r=i(28),n=i(29),o=i(30),s=i(31),a=i(32);function h(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=o,h.prototype.has=s,h.prototype.set=a,t.exports=h},function(t,e,i){var r=i(12);t.exports=function(t,e){for(var i=t.length;i--;)if(r(t[i][0],e))return i;return-1}},function(t,e,i){var r=i(9),n=i(39),o=i(40),s="[object Null]",a="[object Undefined]",h=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:s:h&&h in Object(t)?n(t):o(t)}},function(t,e,i){var r=i(1)(Object,"create");t.exports=r},function(t,e,i){var r=i(52);t.exports=function(t,e){var i=t.__data__;return r(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){var r=i(1)(i(0),"Map");t.exports=r},function(t,e,i){var r=i(0).Symbol;t.exports=r},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){var r=i(4),n=i(16),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",h="[object Proxy]";t.exports=function(t){if(!n(t))return!1;var e=r(t);return e==s||e==a||e==o||e==h}},function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(e,i(15))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){var i=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,i){var r=i(44),n=i(51),o=i(53),s=i(54),a=i(55);function h(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=o,h.prototype.has=s,h.prototype.set=a,t.exports=h},function(t,e,i){var r=i(56),n=i(59),o=i(60),s=1,a=2;t.exports=function(t,e,i,h,u,l){var p=i&s,c=t.length,f=e.length;if(c!=f&&!(p&&f>c))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,g=!0,m=i&a?new r:void 0;for(l.set(t,e),l.set(e,t);++y<c;){var _=t[y],v=e[y];if(h)var x=p?h(v,_,y,e,t,l):h(_,v,y,t,e,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!n(e,function(t,e){if(!o(m,e)&&(_===t||u(_,t,i,h,l)))return m.push(e)})){g=!1;break}}else if(_!==v&&!u(_,v,i,h,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},function(t,e,i){(function(t){var r=i(0),n=i(77),o="object"==typeof e&&e&&!e.nodeType&&e,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,h=(a?a.isBuffer:void 0)||n;t.exports=h}).call(e,i(21)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var r=i(79),n=i(80),o=i(81),s=o&&o.isTypedArray,a=s?n(s):r;t.exports=a},function(t,e){var i=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i(97);var r=i(98),n=i.n(r),o=i(99),s=i.n(o),a=i(100),h=i.n(a),u=i(101),l=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var p=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.setRef=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;i.container=t},i.state={isLoad:!1,isMounted:!1},i.map=null,i.container=null,i.events={},i}return 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,n.a.Component),l(e,[{key:"getChildContext",value:function(){return{map:this.map}}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.center,r=e.zoom,n=e.spatialReference,o=e.cursor,a=e.maxExtent,h=e.maxZoom,u=e.minZoom,l=e.pitch,p=e.bearing,c=e.fov;return this.map?(s()(t.center,i)&&s()(t.zoom,r)||(!s()(t.center,i)&&s()(t.zoom,r)&&this.map.setCenter(t.center),s()(t.center,i)&&!s()(t.zoom,r)&&this.map.setZoom(t.zoom),s()(t.center,i)||s()(t.zoom,r)||this.map.setCenterAndZoom(t.center,t.zoom)),s()(t.spatialReference,n)||this.map.setSpatialReference(t.zoom),s()(t.cursor,o)||this.map.setCursor(t.cursor),s()(t.maxExtent,a)||this.map.setMaxExtent(t.maxExtent),s()(t.maxZoom,h)||this.map.setMaxZoom(t.maxZoom),s()(t.minZoom,u)||this.map.setMinZoom(t.minZoom),s()(t.fov,c)||this.map.setFov(t.fov),s()(t.bearing,p)||this.map.setBearing(t.bearing),s()(t.pitch,l)||this.map.setPitch(t.pitch),null):null}},{key:"setBaseLayer",value:function(t){if(!this.map)return null;t&&t.length>0&&this.map.setBaseLayer()}},{key:"setLayers",value:function(t){if(!this.map)return null;t&&t.length}},{key:"componentDidMount",value:function(){var t=this.props,e=t.center,i=t.zoom,r=t.events,n=t.fov,o=t.bearing,s=t.pitch,a={zoom:i,center:e,fov:Math.max(.01,Math.min(59,n)),bearing:o,pitch:s};if(this.map=new u.e(this.container,a),this.map.isLoaded())for(var h in this.setState({isLoad:!0}),r)"onload"===h?r[h](this.map,this):this.map.on(h,r[h],this);this.setState({isMounted:!0})}},{key:"componentWillUnmount",value:function(){this.map&&(this.map=null,this.setState({isMounted:!1}))}},{key:"render",value:function(){var t=this.state,e=t.isMounted,i=t.isLoad,r=this.props,o=r.className,s=r.children;return n.a.createElement("div",{ref:this.setRef,className:o},e&&i?s:null)}}]),e}();p.defaultProps={},p.childContextTypes={map:h.a.instanceOf(u.e)};var c=p,f=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var d=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.layer=null,r}return 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,n.a.Component),f(e,[{key:"render",value:function(){return null}},{key:"createLayer",value:function(t){if(t){var e=this.context.map;if(!e)return;this.layer&&e.removeLayer(this.layer);var i=t.id;this.layer=new u.c(i,t),e.addLayer(this.layer)}}},{key:"componentDidMount",value:function(){this.createLayer(this.props)}},{key:"componentWillReceiveProps",value:function(t){return this.createLayer(t),null}},{key:"componentWillUnmount",value:function(){var t=this.context.map;t&&this.layer&&t.removeLayer(this.layer)}}]),e}();d.defaultProps={attribution:null,minZoom:null,maxZoom:null,visible:!0,opacity:1,globalCompositeOperation:null,renderer:"canvas",debugOutline:"#0f0",cssFilter:null,forceRenderOnMoving:!1,forceRenderOnZooming:!1,forceRenderOnRotating:!1},d.contextTypes={map:h.a.instanceOf(u.e)};var y=d,g=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var m=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.state={isAdd:!1},r.layer=null,r}return 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,y),g(e,[{key:"createLayer",value:function(t){var e=this;if(t){var i=this.context.map;if(!i)return;this.layer&&i.removeLayer(this.layer);var r=t.id;this.layer=new u.l(r,t),this.layer.on("add",function(){e.setState({isAdd:!0})}),i.addLayer(this.layer)}}}]),e}();m.defaultProps={subdomains:null,repeatWorld:!0,background:!0,backgroundZoomDiff:6,loadingLimitOnInteracting:3,placeholder:!1,crossOrigin:null,tileSize:[256,256],offset:[0,0],tileSystem:null,fadeAnimation:!0,debug:!1,spatialReference:null,maxCacheSize:256,clipByPitch:!0,maxAvailableZoom:null,cascadeTiles:!0,minPitchToCascade:35},m.propTypes={urlTemplate:h.a.oneOfType([h.a.string,h.a.func]).isRequired,subdomains:h.a.oneOfType([h.a.arrayOf(h.a.string),h.a.arrayOf(h.a.number)]),repeatWorld:h.a.bool,background:h.a.bool,backgroundZoomDiff:h.a.number,loadingLimitOnInteracting:h.a.number,placeholder:h.a.bool,crossOrigin:h.a.string,tileSize:h.a.arrayOf(h.a.number),offset:h.a.arrayOf(h.a.number),tileSystem:h.a.arrayOf(h.a.number),fadeAnimation:h.a.bool,debug:h.a.bool,spatialReference:h.a.object,maxCacheSize:h.a.number,clipByPitch:h.a.bool,maxAvailableZoom:h.a.number,cascadeTiles:h.a.bool,minPitchToCascade:h.a.number};var _=m,v=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var x=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.layer=null,r}return 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,y),v(e,[{key:"createLayer",value:function(t){if(t){var e=this.context.map;if(!e)return;this.layer&&e.removeLayer(this.layer);var i=t.id,r=t.geometries;this.layer=new u.j(i,r,t),e.addLayer(this.layer)}}}]),e}();x.defaultProps={drawImmediate:!1},x.propTypes={drawImmediate:h.a.bool};var w=x,b=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var C=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.layer=null,r.state={isAdd:!1},r}return 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,w),b(e,[{key:"createLayer",value:function(t){var e=this;if(t){var i=this.context.map;if(!i)return;this.layer&&i.removeLayer(this.layer);var r=t.id,n=t.geometries;this.layer=new u.m(r,n,t),this.layer.on("add",function(){e.setState({isAdd:!0})}),i.addLayer(this.layer)}}},{key:"componentWillReceiveProps",value:function(t){this.createLayer(t)}},{key:"getChildContext",value:function(){return{layer:this.layer}}},{key:"render",value:function(){var t=this.state.isAdd;console.log(t);var e=this.props.children;return t?e:null}}]),e}();C.defaultProps={cursor:"default",enableSimplify:!0,geometryEvents:!0,defaultIconSize:[20,20],cacheVectorOnCanvas:!0,cacheSvgOnCanvas:!0,enableAltitude:!1,altitudeProperty:"altitude",drawAltitude:!1},C.propTypes={cursor:h.a.string,enableSimplify:h.a.bool,geometryEvents:h.a.bool,defaultIconSize:h.a.arrayOf(h.a.number),cacheVectorOnCanvas:h.a.bool,cacheSvgOnCanvas:h.a.bool,enableAltitude:h.a.bool,altitudeProperty:h.a.string,drawAltitude:h.a.bool},C.childContextTypes={layer:h.a.instanceOf(u.c)};var P=C,M=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var T=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,n.a.Component),M(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;this.geometry=new u.b,e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){return this.createGeometry(t),null}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();T.contextTypes={layer:h.a.instanceOf(u.c)};var S=T,O=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var E=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),O(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.f(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();E.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.number),options:h.a.any},E.contextTypes={layer:h.a.instanceOf(u.c)};var k=E,L=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var A=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),L(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.d(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();A.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.any),options:h.a.any},A.contextTypes={layer:h.a.instanceOf(u.c)};var R=A,j=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var D=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),j(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.k(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();D.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.array),options:h.a.any},D.contextTypes={layer:h.a.instanceOf(u.c)};var I=D,z=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var H=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),z(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.h(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();H.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.arrayOf(h.a.number)),options:h.a.any},H.contextTypes={layer:h.a.instanceOf(u.c)};var Z=H,G=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var F=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),G(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.g(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();F.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.arrayOf(h.a.arrayOf(h.a.number))),options:h.a.any},F.contextTypes={layer:h.a.instanceOf(u.c)};var W=F,N=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var B=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),N(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.coordinates,n=t.options;this.geometry=new u.i(r,n),this.geometry.setId(i),this.geometry.setProperties(n),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){var e=this.props,i=e.id,r=e.coordinates,n=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.coordinates,r)||this.geometry.setCoordinates(t.coordinates),s()(t.options,n)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();B.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,coordinates:h.a.arrayOf(h.a.array),options:h.a.any},B.contextTypes={layer:h.a.instanceOf(u.c)};var V=B,U=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();var J=function(t){function e(t,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=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}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,i));return r.geometry=null,r}return 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,S),U(e,[{key:"createGeometry",value:function(t){if(t){var e=this.context.layer;if(!e)return;var i=t.id,r=t.center,n=t.radius,o=t.options;this.geometry=new u.a(r,n,o),this.geometry.setId(i),this.geometry.setProperties(o),e.addGeometry(this.geometry)}}},{key:"componentDidMount",value:function(){this.createGeometry(this.props)}},{key:"componentWillReceiveProps",value:function(t){console.log(t);var e=this.props,i=e.id,r=e.center,n=e.radius,o=e.options;if(!this.geometry)return null;s()(t.id,i)||this.geometry.setId(t.id),s()(t.center,r)||this.geometry.setCoordinates(t.center),s()(t.radius,n)||this.geometry.setRadius(t.radius),s()(t.options,o)||this.geometry.setProperties(t.options)}},{key:"componentWillUnmount",value:function(){var t=this.context.layer;t&&t.removeGeometry(this.geometry)}},{key:"render",value:function(){return null}}]),e}();J.propTypes={id:h.a.oneOfType([h.a.number,h.a.string]).isRequired,center:h.a.arrayOf(h.a.number),radius:h.a.number,options:h.a.any},J.contextTypes={layer:h.a.instanceOf(u.c)};var q=J;i.d(e,"Map",function(){return c}),i.d(e,"TileLayer",function(){return _}),i.d(e,"OverlayLayer",function(){return w}),i.d(e,"VectorLayer",function(){return P}),i.d(e,"Circle",function(){return q}),i.d(e,"Geometry",function(){return S}),i.d(e,"LineString",function(){return R}),i.d(e,"Marker",function(){return k}),i.d(e,"MultiLineString",function(){return W}),i.d(e,"MultiPoint",function(){return Z}),i.d(e,"MultiPolygon",function(){return V}),i.d(e,"Polygon",function(){return I});e.default={Map:c,TileLayer:_,OverlayLayer:w,VectorLayer:P,Circle:q,Geometry:S,LineString:R,Marker:k,MultiLineString:W,MultiPoint:Z,MultiPolygon:V,Polygon:I}},function(t,e,i){var r=i(26),n=i(7);t.exports=function t(e,i,o,s,a){return e===i||(null==e||null==i||!n(e)&&!n(i)?e!=e&&i!=i:r(e,i,o,s,t,a))}},function(t,e,i){var r=i(27),n=i(19),o=i(61),s=i(65),a=i(87),h=i(10),u=i(20),l=i(22),p=1,c="[object Arguments]",f="[object Array]",d="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,i,g,m,_){var v=h(t),x=h(e),w=v?f:a(t),b=x?f:a(e),C=(w=w==c?d:w)==d,P=(b=b==c?d:b)==d,M=w==b;if(M&&u(t)){if(!u(e))return!1;v=!0,C=!1}if(M&&!C)return _||(_=new r),v||l(t)?n(t,e,i,g,m,_):o(t,e,w,i,g,m,_);if(!(i&p)){var T=C&&y.call(t,"__wrapped__"),S=P&&y.call(e,"__wrapped__");if(T||S){var O=T?t.value():t,E=S?e.value():e;return _||(_=new r),m(O,E,i,g,_)}}return!!M&&(_||(_=new r),s(t,e,i,g,m,_))}},function(t,e,i){var r=i(2),n=i(33),o=i(34),s=i(35),a=i(36),h=i(37);function u(t){var e=this.__data__=new r(t);this.size=e.size}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=s,u.prototype.has=a,u.prototype.set=h,t.exports=u},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,i){var r=i(3),n=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=r(e,t);return!(i<0||(i==e.length-1?e.pop():n.call(e,i,1),--this.size,0))}},function(t,e,i){var r=i(3);t.exports=function(t){var e=this.__data__,i=r(e,t);return i<0?void 0:e[i][1]}},function(t,e,i){var r=i(3);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,i){var r=i(3);t.exports=function(t,e){var i=this.__data__,n=r(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this}},function(t,e,i){var r=i(2);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,i){var r=i(2),n=i(8),o=i(18),s=200;t.exports=function(t,e){var i=this.__data__;if(i instanceof r){var a=i.__data__;if(!n||a.length<s-1)return a.push([t,e]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(t,e),this.size=i.size,this}},function(t,e,i){var r=i(13),n=i(41),o=i(16),s=i(17),a=/^\[object .+?Constructor\]$/,h=Function.prototype,u=Object.prototype,l=h.toString,p=u.hasOwnProperty,c=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||n(t))&&(r(t)?c:a).test(s(t))}},function(t,e,i){var r=i(9),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var r=!0}catch(t){}var n=s.call(t);return r&&(e?t[a]=i:delete t[a]),n}},function(t,e){var i=Object.prototype.toString;t.exports=function(t){return i.call(t)}},function(t,e,i){var r,n=i(42),o=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,i){var r=i(0)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,i){var r=i(45),n=i(2),o=i(8);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}},function(t,e,i){var r=i(46),n=i(47),o=i(48),s=i(49),a=i(50);function h(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}h.prototype.clear=r,h.prototype.delete=n,h.prototype.get=o,h.prototype.has=s,h.prototype.set=a,t.exports=h},function(t,e,i){var r=i(5);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,i){var r=i(5),n="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var i=e[t];return i===n?void 0:i}return o.call(e,t)?e[t]:void 0}},function(t,e,i){var r=i(5),n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:n.call(e,t)}},function(t,e,i){var r=i(5),n="__lodash_hash_undefined__";t.exports=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=r&&void 0===e?n:e,this}},function(t,e,i){var r=i(6);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,i){var r=i(6);t.exports=function(t){return r(this,t).get(t)}},function(t,e,i){var r=i(6);t.exports=function(t){return r(this,t).has(t)}},function(t,e,i){var r=i(6);t.exports=function(t,e){var i=r(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this}},function(t,e,i){var r=i(18),n=i(57),o=i(58);function s(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new r;++e<i;)this.add(t[e])}s.prototype.add=s.prototype.push=n,s.prototype.has=o,t.exports=s},function(t,e){var i="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,i),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var i=-1,r=null==t?0:t.length;++i<r;)if(e(t[i],i,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,i){var r=i(9),n=i(62),o=i(12),s=i(19),a=i(63),h=i(64),u=1,l=2,p="[object Boolean]",c="[object Date]",f="[object Error]",d="[object Map]",y="[object Number]",g="[object RegExp]",m="[object Set]",_="[object String]",v="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",b=r?r.prototype:void 0,C=b?b.valueOf:void 0;t.exports=function(t,e,i,r,b,P,M){switch(i){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!P(new n(t),new n(e)));case p:case c:case y:return o(+t,+e);case f:return t.name==e.name&&t.message==e.message;case g:case _:return t==e+"";case d:var T=a;case m:var S=r&u;if(T||(T=h),t.size!=e.size&&!S)return!1;var O=M.get(t);if(O)return O==e;r|=l,M.set(t,e);var E=s(T(t),T(e),r,b,P,M);return M.delete(t),E;case v:if(C)return C.call(t)==C.call(e)}return!1}},function(t,e,i){var r=i(0).Uint8Array;t.exports=r},function(t,e){t.exports=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t,r){i[++e]=[r,t]}),i}},function(t,e){t.exports=function(t){var e=-1,i=Array(t.size);return t.forEach(function(t){i[++e]=t}),i}},function(t,e,i){var r=i(66),n=1,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i,s,a,h){var u=i&n,l=r(t),p=l.length;if(p!=r(e).length&&!u)return!1;for(var c=p;c--;){var f=l[c];if(!(u?f in e:o.call(e,f)))return!1}var d=h.get(t);if(d&&h.get(e))return d==e;var y=!0;h.set(t,e),h.set(e,t);for(var g=u;++c<p;){var m=t[f=l[c]],_=e[f];if(s)var v=u?s(_,m,f,e,t,h):s(m,_,f,t,e,h);if(!(void 0===v?m===_||a(m,_,i,s,h):v)){y=!1;break}g||(g="constructor"==f)}if(y&&!g){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(y=!1)}return h.delete(t),h.delete(e),y}},function(t,e,i){var r=i(67),n=i(69),o=i(72);t.exports=function(t){return r(t,o,n)}},function(t,e,i){var r=i(68),n=i(10);t.exports=function(t,e,i){var o=e(t);return n(t)?o:r(o,i(t))}},function(t,e){t.exports=function(t,e){for(var i=-1,r=e.length,n=t.length;++i<r;)t[n+i]=e[i];return t}},function(t,e,i){var r=i(70),n=i(71),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),r(s(t),function(e){return o.call(t,e)}))}:n;t.exports=a},function(t,e){t.exports=function(t,e){for(var i=-1,r=null==t?0:t.length,n=0,o=[];++i<r;){var s=t[i];e(s,i,t)&&(o[n++]=s)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,i){var r=i(73),n=i(82),o=i(86);t.exports=function(t){return o(t)?r(t):n(t)}},function(t,e,i){var r=i(74),n=i(75),o=i(10),s=i(20),a=i(78),h=i(22),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var i=o(t),l=!i&&n(t),p=!i&&!l&&s(t),c=!i&&!l&&!p&&h(t),f=i||l||p||c,d=f?r(t.length,String):[],y=d.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||c&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,y))||d.push(g);return d}},function(t,e){t.exports=function(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}},function(t,e,i){var r=i(76),n=i(7),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,h=r(function(){return arguments}())?r:function(t){return n(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=h},function(t,e,i){var r=i(4),n=i(7),o="[object Arguments]";t.exports=function(t){return n(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e){var i=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?i:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,i){var r=i(4),n=i(23),o=i(7),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&n(t.length)&&!!s[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,i){(function(t){var r=i(14),n="object"==typeof e&&e&&!e.nodeType&&e,o=n&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a}).call(e,i(21)(t))},function(t,e,i){var r=i(83),n=i(84),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return n(t);var e=[];for(var i in Object(t))o.call(t,i)&&"constructor"!=i&&e.push(i);return e}},function(t,e){var i=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},function(t,e,i){var r=i(85)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(i){return t(e(i))}}},function(t,e,i){var r=i(13),n=i(23);t.exports=function(t){return null!=t&&n(t.length)&&!r(t)}},function(t,e,i){var r=i(88),n=i(8),o=i(89),s=i(90),a=i(91),h=i(4),u=i(17),l=u(r),p=u(n),c=u(o),f=u(s),d=u(a),y=h;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||n&&"[object Map]"!=y(new n)||o&&"[object Promise]"!=y(o.resolve())||s&&"[object Set]"!=y(new s)||a&&"[object WeakMap]"!=y(new a))&&(y=function(t){var e=h(t),i="[object Object]"==e?t.constructor:void 0,r=i?u(i):"";if(r)switch(r){case l:return"[object DataView]";case p:return"[object Map]";case c:return"[object Promise]";case f:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,i){var r=i(1)(i(0),"DataView");t.exports=r},function(t,e,i){var r=i(1)(i(0),"Promise");t.exports=r},function(t,e,i){var r=i(1)(i(0),"Set");t.exports=r},function(t,e,i){var r=i(1)(i(0),"WeakMap");t.exports=r},function(t,e,i){"use strict";var r=i(93),n=i(11),o=i(94),s=function(){};function a(){return null}"production"!=="production".NODE_ENV&&(s=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),t.exports=function(t,e){var i="function"==typeof Symbol&&Symbol.iterator,h="@@iterator";var u="<<anonymous>>",l={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:f(a),arrayOf:function(t){return f(function(e,i,r,o,s){if("function"!=typeof t)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[i];if(!Array.isArray(a)){var h=g(a);return new c("Invalid "+o+" `"+s+"` of type `"+h+"` supplied to `"+r+"`, expected an array.")}for(var u=0;u<a.length;u++){var l=t(a,u,r,o,s+"["+u+"]",n);if(l instanceof Error)return l}return null})},element:function(){return f(function(e,i,r,n,o){var s=e[i];if(!t(s)){var a=g(s);return new c("Invalid "+n+" `"+o+"` of type `"+a+"` supplied to `"+r+"`, expected a single ReactElement.")}return null})}(),instanceOf:function(t){return f(function(e,i,r,n,o){if(!(e[i]instanceof t)){var s=t.name||u,a=function(t){if(!t.constructor||!t.constructor.name)return u;return t.constructor.name}(e[i]);return new c("Invalid "+n+" `"+o+"` of type `"+a+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}return null})},node:function(){return f(function(t,e,i,r,n){if(!y(t[e]))return new c("Invalid "+r+" `"+n+"` supplied to `"+i+"`, expected a ReactNode.");return null})}(),objectOf:function(t){return f(function(e,i,r,o,s){if("function"!=typeof t)return new c("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=e[i],h=g(a);if("object"!==h)return new c("Invalid "+o+" `"+s+"` of type `"+h+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var l=t(a,u,r,o,s+"."+u,n);if(l instanceof Error)return l}return null})},oneOf:function(t){if(!Array.isArray(t))return"production"!=="production".NODE_ENV&&s("Invalid argument supplied to oneOf, expected an instance of array."),a;return f(function(e,i,r,n,o){for(var s=e[i],a=0;a<t.length;a++)if(p(s,t[a]))return null;var h=JSON.stringify(t);return new c("Invalid "+n+" `"+o+"` of value `"+s+"` supplied to `"+r+"`, expected one of "+h+".")})},oneOfType:function(t){if(!Array.isArray(t))return"production"!=="production".NODE_ENV&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(i)+" at index "+e+"."),a}return f(function(e,i,r,o,s){for(var a=0;a<t.length;a++){var h=t[a];if(null==h(e,i,r,o,s,n))return null}return new c("Invalid "+o+" `"+s+"` supplied to `"+r+"`.")})},shape:function(t){return f(function(e,i,r,o,s){var a=e[i],h=g(a);if("object"!==h)return new c("Invalid "+o+" `"+s+"` of type `"+h+"` supplied to `"+r+"`, expected `object`.");for(var u in t){var l=t[u];if(l){var p=l(a,u,r,o,s+"."+u,n);if(p)return p}}return null})},exact:function(t){return f(function(e,i,o,s,a){var h=e[i],u=g(h);if("object"!==u)return new c("Invalid "+s+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var l=r({},e[i],t);for(var p in l){var f=t[p];if(!f)return new c("Invalid "+s+" `"+a+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(e[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=f(h,p,o,s,a+"."+p,n);if(d)return d}return null})}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function c(t){this.message=t,this.stack=""}function f(t){if("production"!=="production".NODE_ENV)var i={},r=0;function o(o,a,h,l,p,f,d){if(l=l||u,f=f||h,d!==n){if(e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!=="production".NODE_ENV&&"undefined"!=typeof console){var g=l+":"+h;!i[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),i[g]=!0,r++)}}return null==a[h]?o?null===a[h]?new c("The "+p+" `"+f+"` is marked as required in `"+l+"`, but its value is `null`."):new c("The "+p+" `"+f+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,h,l,p,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function d(t){return f(function(e,i,r,n,o,s){var a=e[i];return g(a)!==t?new c("Invalid "+n+" `"+o+"` of type `"+m(a)+"` supplied to `"+r+"`, expected `"+t+"`."):null})}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||t(e))return!0;var r=function(t){var e=t&&(i&&t[i]||t[h]);if("function"==typeof e)return e}(e);if(!r)return!1;var n,o=r.call(e);if(r!==e.entries){for(;!(n=o.next()).done;)if(!y(n.value))return!1}else for(;!(n=o.next()).done;){var s=n.value;if(s&&!y(s[1]))return!1}return!0;default:return!1}}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol}(e,t)?"symbol":e}function m(t){if(void 0===t||null===t)return""+t;var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function _(t){var e=m(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return c.prototype=Error.prototype,l.checkPropTypes=o,l.PropTypes=l,l}},function(t,e,i){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,s,a=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),h=1;h<arguments.length;h++){for(var u in i=Object(arguments[h]))n.call(i,u)&&(a[u]=i[u]);if(r){s=r(i);for(var l=0;l<s.length;l++)o.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},function(t,e,i){"use strict";var r=function(){};if("production"!=="production".NODE_ENV){var n=i(11),o={};r=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}t.exports=function(t,e,i,s,a){if("production"!=="production".NODE_ENV)for(var h in t)if(t.hasOwnProperty(h)){var u;try{if("function"!=typeof t[h]){var l=Error((s||"React class")+": "+i+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[h]+"`.");throw l.name="Invariant Violation",l}u=t[h](e,h,s,i,null,n)}catch(t){u=t}if(!u||u instanceof Error||r((s||"React class")+": type specification of "+i+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=a?a():"";r("Failed "+i+" type: "+u.message+(null!=p?p:""))}}}},function(t,e,i){"use strict";var r=i(11);function n(){}t.exports=function(){function t(t,e,i,n,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to c